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
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
753 HAVE_LINK_VERSION_SCRIPT
756 CONVENIENCE_LTDL_TRUE
757 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
790 ENABLE_VISIBILITY_INLINES_HIDDEN
796 ac_precious_vars='build_alias
807 ac_subdirs_all='projects/llvm-gcc
811 projects/llvm-poolalloc
814 projects/llvm-stacker
819 projects/llvm-kernel'
821 # Initialize some variables set by options.
823 ac_init_version=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name=s,x,x,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir='${exec_prefix}/bin'
848 sbindir='${exec_prefix}/sbin'
849 libexecdir='${exec_prefix}/libexec'
850 datarootdir='${prefix}/share'
851 datadir='${datarootdir}'
852 sysconfdir='${prefix}/etc'
853 sharedstatedir='${prefix}/com'
854 localstatedir='${prefix}/var'
855 includedir='${prefix}/include'
856 oldincludedir='/usr/include'
857 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir='${datarootdir}/info'
863 libdir='${exec_prefix}/lib'
864 localedir='${datarootdir}/locale'
865 mandir='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\$ac_option
879 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir | --bindir | --bindi | --bind | --bin | --bi)
891 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894 -build | --build | --buil | --bui | --bu)
895 ac_prev=build_alias ;;
896 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
897 build_alias=$ac_optarg ;;
899 -cache-file | --cache-file | --cache-fil | --cache-fi \
900 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
901 ac_prev=cache_file ;;
902 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
903 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
904 cache_file=$ac_optarg ;;
907 cache_file=config.cache ;;
909 -datadir | --datadir | --datadi | --datad)
911 -datadir=* | --datadir=* | --datadi=* | --datad=*)
912 datadir=$ac_optarg ;;
914 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
915 | --dataroo | --dataro | --datar)
916 ac_prev=datarootdir ;;
917 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
918 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
919 datarootdir=$ac_optarg ;;
921 -disable-* | --disable-*)
922 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_$ac_feature=no ;;
930 -docdir | --docdir | --docdi | --doc | --do)
932 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
935 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
940 -enable-* | --enable-*)
941 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_$ac_feature=\$ac_optarg ;;
949 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
950 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
951 | --exec | --exe | --ex)
952 ac_prev=exec_prefix ;;
953 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
954 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
955 | --exec=* | --exe=* | --ex=*)
956 exec_prefix=$ac_optarg ;;
958 -gas | --gas | --ga | --g)
959 # Obsolete; use --with-gas.
962 -help | --help | --hel | --he | -h)
964 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
965 ac_init_help=recursive ;;
966 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
967 ac_init_help=short ;;
969 -host | --host | --hos | --ho)
970 ac_prev=host_alias ;;
971 -host=* | --host=* | --hos=* | --ho=*)
972 host_alias=$ac_optarg ;;
974 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 htmldir=$ac_optarg ;;
980 -includedir | --includedir | --includedi | --included | --include \
981 | --includ | --inclu | --incl | --inc)
982 ac_prev=includedir ;;
983 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
984 | --includ=* | --inclu=* | --incl=* | --inc=*)
985 includedir=$ac_optarg ;;
987 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
990 infodir=$ac_optarg ;;
992 -libdir | --libdir | --libdi | --libd)
994 -libdir=* | --libdir=* | --libdi=* | --libd=*)
997 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
998 | --libexe | --libex | --libe)
999 ac_prev=libexecdir ;;
1000 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1001 | --libexe=* | --libex=* | --libe=*)
1002 libexecdir=$ac_optarg ;;
1004 -localedir | --localedir | --localedi | --localed | --locale)
1005 ac_prev=localedir ;;
1006 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1007 localedir=$ac_optarg ;;
1009 -localstatedir | --localstatedir | --localstatedi | --localstated \
1010 | --localstate | --localstat | --localsta | --localst | --locals)
1011 ac_prev=localstatedir ;;
1012 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1013 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1014 localstatedir=$ac_optarg ;;
1016 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1019 mandir=$ac_optarg ;;
1021 -nfp | --nfp | --nf)
1022 # Obsolete; use --without-fp.
1025 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1026 | --no-cr | --no-c | -n)
1029 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1030 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1033 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1034 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1035 | --oldin | --oldi | --old | --ol | --o)
1036 ac_prev=oldincludedir ;;
1037 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1038 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1039 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1040 oldincludedir=$ac_optarg ;;
1042 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1045 prefix=$ac_optarg ;;
1047 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1048 | --program-pre | --program-pr | --program-p)
1049 ac_prev=program_prefix ;;
1050 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1051 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1052 program_prefix=$ac_optarg ;;
1054 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1055 | --program-suf | --program-su | --program-s)
1056 ac_prev=program_suffix ;;
1057 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1058 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1059 program_suffix=$ac_optarg ;;
1061 -program-transform-name | --program-transform-name \
1062 | --program-transform-nam | --program-transform-na \
1063 | --program-transform-n | --program-transform- \
1064 | --program-transform | --program-transfor \
1065 | --program-transfo | --program-transf \
1066 | --program-trans | --program-tran \
1067 | --progr-tra | --program-tr | --program-t)
1068 ac_prev=program_transform_name ;;
1069 -program-transform-name=* | --program-transform-name=* \
1070 | --program-transform-nam=* | --program-transform-na=* \
1071 | --program-transform-n=* | --program-transform-=* \
1072 | --program-transform=* | --program-transfor=* \
1073 | --program-transfo=* | --program-transf=* \
1074 | --program-trans=* | --program-tran=* \
1075 | --progr-tra=* | --program-tr=* | --program-t=*)
1076 program_transform_name=$ac_optarg ;;
1078 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1081 pdfdir=$ac_optarg ;;
1083 -psdir | --psdir | --psdi | --psd | --ps)
1085 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1088 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1089 | -silent | --silent | --silen | --sile | --sil)
1092 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 sbindir=$ac_optarg ;;
1098 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1099 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1100 | --sharedst | --shareds | --shared | --share | --shar \
1102 ac_prev=sharedstatedir ;;
1103 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1104 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1105 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 sharedstatedir=$ac_optarg ;;
1109 -site | --site | --sit)
1111 -site=* | --site=* | --sit=*)
1114 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1117 srcdir=$ac_optarg ;;
1119 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1120 | --syscon | --sysco | --sysc | --sys | --sy)
1121 ac_prev=sysconfdir ;;
1122 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1123 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1124 sysconfdir=$ac_optarg ;;
1126 -target | --target | --targe | --targ | --tar | --ta | --t)
1127 ac_prev=target_alias ;;
1128 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1129 target_alias=$ac_optarg ;;
1131 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1134 -version | --version | --versio | --versi | --vers | -V)
1135 ac_init_version=: ;;
1138 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_$ac_package=\$ac_optarg ;;
1146 -without-* | --without-*)
1147 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_$ac_package=no ;;
1156 # Obsolete; use --with-x.
1159 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1160 | --x-incl | --x-inc | --x-in | --x-i)
1161 ac_prev=x_includes ;;
1162 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1163 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1164 x_includes=$ac_optarg ;;
1166 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1167 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1168 ac_prev=x_libraries ;;
1169 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1170 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1171 x_libraries=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val=\$$ac_var
1212 [\\/$]* | ?:[\\/]* ) continue;;
1213 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x; then
1228 if test "x$build_alias" = x; then
1229 cross_compiling=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240 test "$silent" = yes && exec 6>/dev/null
1243 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di=`ls -di .` &&
1245 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var in $ac_precious_vars; do
1308 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_${ac_var}_value=\$${ac_var}
1310 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --build=BUILD configure for building on BUILD [guessed]
1380 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1381 --target=TARGET configure for building compilers for TARGET [HOST]
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive ) echo "Configuration of llvm 2.8svn:";;
1392 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1393 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1394 --enable-optimized Compile with optimizations enabled (default is NO)
1395 --enable-profiling Compile with profiling enabled (default is NO)
1396 --enable-assertions Compile with assertion checks enabled (default is
1398 --enable-expensive-checks
1399 Compile with expensive debug checks enabled (default
1401 --enable-debug-runtime Build runtime libs with debug symbols (default is
1403 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1404 optimization is on and YES if it's off)
1405 --enable-jit Enable Just In Time Compiling (default is YES)
1406 --enable-doxygen Build doxygen documentation (default is NO)
1407 --enable-threads Use threads if available (default is YES)
1408 --enable-pic Build LLVM with Position Independent Code (default
1410 --enable-shared Build a shared library and link tools against it
1412 --enable-timestamps Enable embedding timestamp information in build
1414 --enable-targets Build specific host targets: all or
1415 target1,target2,... Valid targets are: host, x86,
1416 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1417 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1418 and cpp (default=all)
1419 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
1423 --enable-libffi Check for the presence of libffi (default is NO)
1424 --enable-ltdl-install install libltdl
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 --with-optimize-option Select the compiler options to use for optimized
1441 --with-extra-options Specify additional options to compile LLVM with
1442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 --with-c-include-dirs Colon separated list of directories clang will
1446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
1452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
1454 --with-tclinclude directory where tcl headers are
1455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 llvm configure 2.8svn
1537 generated by GNU Autoconf 2.60
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1544 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 2.8svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next=false
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next=true ;;
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1956 if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1961 if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1966 if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1971 if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1976 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1981 for i in `ls ${srcdir}/projects`
1983 if test -d ${srcdir}/projects/${i} ; then
1985 sample) subdirs="$subdirs projects/sample"
1987 privbracket) subdirs="$subdirs projects/privbracket"
1989 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1991 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1993 llvm-java) subdirs="$subdirs projects/llvm-java"
1995 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1997 safecode) subdirs="$subdirs projects/safecode"
1999 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2007 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
2021 { echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 ac_build_alias=$build_alias
2027 test "x$ac_build_alias" = x &&
2028 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x &&
2030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
2033 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
2048 ac_save_IFS=$IFS; IFS='-'
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2058 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061 { echo "$as_me:$LINENO: checking host system type" >&5
2062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test "x$host_alias" = x; then
2067 ac_cv_host=$ac_cv_build
2069 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 echo "${ECHO_T}$ac_cv_host" >&6; }
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
2085 ac_save_IFS=$IFS; IFS='-'
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2095 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098 { echo "$as_me:$LINENO: checking target system type" >&5
2099 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_target+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test "x$target_alias" = x; then
2104 ac_cv_target=$ac_cv_host
2106 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114 echo "${ECHO_T}$ac_cv_target" >&6; }
2115 case $ac_cv_target in
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118 echo "$as_me: error: invalid value of canonical target" >&2;}
2119 { (exit 1); exit 1; }; };;
2121 target=$ac_cv_target
2122 ac_save_IFS=$IFS; IFS='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2135 # The aliases save the names the user supplied, while $host etc.
2136 # will get canonicalized.
2137 test -n "$target_alias" &&
2138 test "$program_prefix$program_suffix$program_transform_name" = \
2140 program_prefix=${target_alias}-
2142 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144 if test "${llvm_cv_os_type+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 llvm_cv_link_all_option="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2151 llvm_cv_os_type="AIX"
2152 llvm_cv_platform_type="Unix" ;;
2154 llvm_cv_link_all_option="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2156 llvm_cv_os_type="IRIX"
2157 llvm_cv_platform_type="Unix" ;;
2159 llvm_cv_link_all_option="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2161 llvm_cv_os_type="Cygwin"
2162 llvm_cv_platform_type="Unix" ;;
2164 llvm_cv_link_all_option="-Wl,-all_load"
2165 llvm_cv_no_link_all_option="-Wl,-noall_load"
2166 llvm_cv_os_type="Darwin"
2167 llvm_cv_platform_type="Unix" ;;
2169 llvm_cv_link_all_option="-Wl,-all_load"
2170 llvm_cv_no_link_all_option="-Wl,-noall_load"
2171 llvm_cv_os_type="Minix"
2172 llvm_cv_platform_type="Unix" ;;
2174 llvm_cv_link_all_option="-Wl,--whole-archive"
2175 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2176 llvm_cv_os_type="FreeBSD"
2177 llvm_cv_platform_type="Unix" ;;
2179 llvm_cv_link_all_option="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2181 llvm_cv_os_type="OpenBSD"
2182 llvm_cv_platform_type="Unix" ;;
2184 llvm_cv_link_all_option="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2186 llvm_cv_os_type="NetBSD"
2187 llvm_cv_platform_type="Unix" ;;
2189 llvm_cv_link_all_option="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2191 llvm_cv_os_type="DragonFly"
2192 llvm_cv_platform_type="Unix" ;;
2194 llvm_cv_link_all_option="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2196 llvm_cv_os_type="HP-UX"
2197 llvm_cv_platform_type="Unix" ;;
2199 llvm_cv_link_all_option="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2201 llvm_cv_os_type="Interix"
2202 llvm_cv_platform_type="Unix" ;;
2204 llvm_cv_link_all_option="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2206 llvm_cv_os_type="Linux"
2207 llvm_cv_platform_type="Unix" ;;
2209 llvm_cv_link_all_option="-Wl,-z,allextract"
2210 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2211 llvm_cv_os_type="SunOS"
2212 llvm_cv_platform_type="Unix" ;;
2214 llvm_cv_link_all_option="-Wl,-z,allextract"
2215 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2216 llvm_cv_os_type="AuroraUX"
2217 llvm_cv_platform_type="Unix" ;;
2219 llvm_cv_link_all_option="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2221 llvm_cv_os_type="Win32"
2222 llvm_cv_platform_type="Win32" ;;
2224 llvm_cv_link_all_option="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2226 llvm_cv_os_type="MingW"
2227 llvm_cv_platform_type="Win32" ;;
2229 llvm_cv_link_all_option="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2231 llvm_cv_os_type="Haiku"
2232 llvm_cv_platform_type="Unix" ;;
2234 llvm_cv_link_all_option="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2236 llvm_cv_os_type="Freestanding"
2237 llvm_cv_platform_type="Unix" ;;
2239 llvm_cv_link_all_option="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2241 llvm_cv_os_type="Freestanding"
2242 llvm_cv_platform_type="Unix" ;;
2244 llvm_cv_link_all_option=""
2245 llvm_cv_no_link_all_option=""
2246 llvm_cv_os_type="Unknown"
2247 llvm_cv_platform_type="Unknown" ;;
2250 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255 if test "${llvm_cv_target_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 llvm_cv_target_os_type="AIX" ;;
2262 llvm_cv_target_os_type="IRIX" ;;
2264 llvm_cv_target_os_type="Cygwin" ;;
2266 llvm_cv_target_os_type="Darwin" ;;
2268 llvm_cv_target_os_type="Minix" ;;
2270 llvm_cv_target_os_type="FreeBSD" ;;
2272 llvm_cv_target_os_type="OpenBSD" ;;
2274 llvm_cv_target_os_type="NetBSD" ;;
2276 llvm_cv_target_os_type="DragonFly" ;;
2278 llvm_cv_target_os_type="HP-UX" ;;
2280 llvm_cv_target_os_type="Interix" ;;
2282 llvm_cv_target_os_type="Linux" ;;
2284 llvm_cv_target_os_type="SunOS" ;;
2286 llvm_cv_target_os_type="AuroraUX" ;;
2288 llvm_cv_target_os_type="Win32" ;;
2290 llvm_cv_target_os_type="MingW" ;;
2292 llvm_cv_target_os_type="Haiku" ;;
2294 llvm_cv_target_os_type="Freestanding" ;;
2296 llvm_cv_target_os_type="Unknown" ;;
2299 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2302 if test "$llvm_cv_os_type" = "Unknown" ; then
2303 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305 { (exit 1); exit 1; }; }
2310 HOST_OS=$llvm_cv_os_type
2312 TARGET_OS=$llvm_cv_target_os_type
2315 LINKALL=$llvm_cv_link_all_option
2317 NOLINKALL=$llvm_cv_no_link_all_option
2320 case $llvm_cv_platform_type in
2323 cat >>confdefs.h <<\_ACEOF
2324 #define LLVM_ON_UNIX 1
2334 cat >>confdefs.h <<\_ACEOF
2335 #define LLVM_ON_WIN32 1
2345 { echo "$as_me:$LINENO: checking target architecture" >&5
2346 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347 if test "${llvm_cv_target_arch+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 i?86-*) llvm_cv_target_arch="x86" ;;
2352 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2353 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2354 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2355 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2356 arm*-*) llvm_cv_target_arch="ARM" ;;
2357 mips-*) llvm_cv_target_arch="Mips" ;;
2358 pic16-*) llvm_cv_target_arch="PIC16" ;;
2359 xcore-*) llvm_cv_target_arch="XCore" ;;
2360 msp430-*) llvm_cv_target_arch="MSP430" ;;
2361 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2362 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2363 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2364 *) llvm_cv_target_arch="Unknown" ;;
2367 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2368 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2370 if test "$llvm_cv_target_arch" = "Unknown" ; then
2371 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2372 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2375 # Determine the LLVM native architecture for the target
2376 case "$llvm_cv_target_arch" in
2377 x86) LLVM_NATIVE_ARCH="X86" ;;
2378 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2379 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2382 ARCH=$llvm_cv_target_arch
2386 ac_cpp='$CPP $CPPFLAGS'
2387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_CC+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC="$CC" # Let the user override the test.
2401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir=.
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2408 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 if test -n "$CC"; then
2420 { echo "$as_me:$LINENO: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6; }
2423 { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2429 if test -z "$ac_cv_prog_CC"; then
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432 set dummy gcc; ac_word=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir=.
2446 for ac_exec_ext in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_ac_ct_CC="gcc"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 echo "${ECHO_T}$ac_ct_CC" >&6; }
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2467 if test "x$ac_ct_CC" = x; then
2470 case $cross_compiling:$ac_tool_warned in
2472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet. If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&5
2475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2476 whose name does not start with the host triplet. If you think this
2477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2478 ac_tool_warned=yes ;;
2486 if test -z "$CC"; then
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2489 set dummy ${ac_tool_prefix}cc; ac_word=$2
2490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC="$CC" # Let the user override the test.
2498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir=.
2503 for ac_exec_ext in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_CC="${ac_tool_prefix}cc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 if test -n "$CC"; then
2517 { echo "$as_me:$LINENO: result: $CC" >&5
2518 echo "${ECHO_T}$CC" >&6; }
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2527 if test -z "$CC"; then
2528 # Extract the first word of "cc", so it can be a program name with args.
2529 set dummy cc; ac_word=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC="$CC" # Let the user override the test.
2539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir=.
2544 for ac_exec_ext in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547 ac_prog_rejected=yes
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy $ac_cv_prog_CC
2562 if test $# != 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2567 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2573 if test -n "$CC"; then
2574 { echo "$as_me:$LINENO: result: $CC" >&5
2575 echo "${ECHO_T}$CC" >&6; }
2577 { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2583 if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
2585 for ac_prog in cl.exe
2587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC="$CC" # Let the user override the test.
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 if test -n "$CC"; then
2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2624 test -n "$CC" && break
2627 if test -z "$CC"; then
2629 for ac_prog in cl.exe
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632 set dummy $ac_prog; ac_word=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_ac_ct_CC="$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2659 if test -n "$ac_ct_CC"; then
2660 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668 test -n "$ac_ct_CC" && break
2671 if test "x$ac_ct_CC" = x; then
2674 case $cross_compiling:$ac_tool_warned in
2676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&5
2679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2682 ac_tool_warned=yes ;;
2691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
2697 # Provide some information about the compiler.
2698 echo "$as_me:$LINENO: checking for C compiler version" >&5
2699 ac_compiler=`set X $ac_compile; echo $2`
2700 { (ac_try="$ac_compiler --version >&5"
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler --version >&5") 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (ac_try="$ac_compiler -v >&5"
2712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2713 *) ac_try_echo=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -v >&5") 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720 { (ac_try="$ac_compiler -V >&5"
2722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler -V >&5") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
2731 cat >conftest.$ac_ext <<_ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2746 ac_clean_files_save=$ac_clean_files
2747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2748 # Try to create an executable without -o first, disregard a.out.
2749 # It will help us diagnose broken compilers, and finding out an intuition
2751 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2753 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755 # List of possible output files, starting from the most likely.
2756 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2757 # only as a last resort. b.out is created by i960 compilers.
2758 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760 # The IRIX 6 linker writes into existing files which may not be
2761 # executable, retaining their permissions. Remove them first so a
2762 # subsequent execution test works.
2764 for ac_file in $ac_files
2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 if { (ac_try="$ac_link_default"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_link_default") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
2783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2784 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2785 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2786 # so that the user can short-circuit this test for compilers unknown to
2788 for ac_file in $ac_files
2790 test -f "$ac_file" || continue
2792 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2795 # We found the default executable, but exeext='' is most
2799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2801 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 # We set ac_cv_exeext here because the later test for it is not
2804 # safe: cross compilers may not add the suffix if given an `-o'
2805 # argument, so we may need to know it at that point already.
2806 # Even if this section looks crufty: it has the advantage of
2813 test "$ac_cv_exeext" = no && ac_cv_exeext=
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&2;}
2823 { (exit 77); exit 77; }; }
2826 ac_exeext=$ac_cv_exeext
2827 { echo "$as_me:$LINENO: result: $ac_file" >&5
2828 echo "${ECHO_T}$ac_file" >&6; }
2830 # Check that the compiler produces executables we can run. If not, either
2831 # the compiler is broken, or we cross compile.
2832 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2833 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2834 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2835 # If not cross compiling, check that we can run a simple program.
2836 if test "$cross_compiling" != yes; then
2837 if { ac_try='./$ac_file'
2838 { (case "(($ac_try" in
2839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_try") 2>&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2849 if test "$cross_compiling" = maybe; then
2852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2853 If you meant to cross compile, use \`--host'.
2854 See \`config.log' for more details." >&5
2855 echo "$as_me: error: cannot run C compiled programs.
2856 If you meant to cross compile, use \`--host'.
2857 See \`config.log' for more details." >&2;}
2858 { (exit 1); exit 1; }; }
2862 { echo "$as_me:$LINENO: result: yes" >&5
2863 echo "${ECHO_T}yes" >&6; }
2865 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2866 ac_clean_files=$ac_clean_files_save
2867 # Check that the compiler produces executables we can run. If not, either
2868 # the compiler is broken, or we cross compile.
2869 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2870 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2871 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2872 echo "${ECHO_T}$cross_compiling" >&6; }
2874 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2875 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2876 if { (ac_try="$ac_link"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_link") 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; then
2886 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2887 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2888 # work properly (i.e., refer to `conftest.exe'), while it won't with
2890 for ac_file in conftest.exe conftest conftest.*; do
2891 test -f "$ac_file" || continue
2893 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2894 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2901 See \`config.log' for more details." >&5
2902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
2907 rm -f conftest$ac_cv_exeext
2908 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2909 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2911 rm -f conftest.$ac_ext
2912 EXEEXT=$ac_cv_exeext
2914 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2916 if test "${ac_cv_objext+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 cat >conftest.$ac_ext <<_ACEOF
2922 cat confdefs.h >>conftest.$ac_ext
2923 cat >>conftest.$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2934 rm -f conftest.o conftest.obj
2935 if { (ac_try="$ac_compile"
2937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compile") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
2945 for ac_file in conftest.o conftest.obj conftest.*; do
2946 test -f "$ac_file" || continue;
2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2958 See \`config.log' for more details." >&5
2959 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details." >&2;}
2961 { (exit 1); exit 1; }; }
2964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2967 echo "${ECHO_T}$ac_cv_objext" >&6; }
2968 OBJEXT=$ac_cv_objext
2970 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2971 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2973 echo $ECHO_N "(cached) $ECHO_C" >&6
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2993 rm -f conftest.$ac_objext
2994 if { (ac_try="$ac_compile"
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3002 grep -v '^ *+' conftest.er1 >conftest.err
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_try") 2>&5
3015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3016 (exit $ac_status); }; } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_try") 2>&5
3025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3026 (exit $ac_status); }; }; then
3029 echo "$as_me: failed program was:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3040 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3041 GCC=`test $ac_compiler_gnu = yes && echo yes`
3042 ac_test_CFLAGS=${CFLAGS+set}
3043 ac_save_CFLAGS=$CFLAGS
3044 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3045 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3046 if test "${ac_cv_prog_cc_g+set}" = set; then
3047 echo $ECHO_N "(cached) $ECHO_C" >&6
3049 ac_save_c_werror_flag=$ac_c_werror_flag
3050 ac_c_werror_flag=yes
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); }; }; then
3104 echo "$as_me: failed program was:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3108 cat >conftest.$ac_ext <<_ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3156 (exit $ac_status); }; }; then
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 ac_c_werror_flag=$ac_save_c_werror_flag
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3179 rm -f conftest.$ac_objext
3180 if { (ac_try="$ac_compile"
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3188 grep -v '^ *+' conftest.er1 >conftest.err
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3212 (exit $ac_status); }; }; then
3215 echo "$as_me: failed program was:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3230 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3231 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3232 if test "$ac_test_CFLAGS" = set; then
3233 CFLAGS=$ac_save_CFLAGS
3234 elif test $ac_cv_prog_cc_g = yes; then
3235 if test "$GCC" = yes; then
3241 if test "$GCC" = yes; then
3247 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3248 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3249 if test "${ac_cv_prog_cc_c89+set}" = set; then
3250 echo $ECHO_N "(cached) $ECHO_C" >&6
3252 ac_cv_prog_cc_c89=no
3254 cat >conftest.$ac_ext <<_ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3262 #include <sys/types.h>
3263 #include <sys/stat.h>
3264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3265 struct buf { int x; };
3266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3267 static char *e (p, i)
3273 static char *f (char * (*g) (char **, int), char **p, ...)
3278 s = g (p, va_arg (v,int));
3283 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3284 function prototypes and stuff, but not '\xHH' hex character constants.
3285 These don't provoke an error unfortunately, instead are silently treated
3286 as 'x'. The following induces an error, until -std is added to get
3287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3288 array size at least. It's necessary to write '\x00'==0 to get something
3289 that's true only with -std. */
3290 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293 inside strings and character constants. */
3295 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297 int test (int i, double x);
3298 struct s1 {int (*f) (int a);};
3299 struct s2 {int (*f) (double a);};
3300 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3306 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314 CC="$ac_save_CC $ac_arg"
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3330 { (case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_try") 2>&5
3337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_try") 2>&5
3347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_cv_prog_cc_c89=$ac_arg
3351 echo "$as_me: failed program was:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3357 rm -f core conftest.err conftest.$ac_objext
3358 test "x$ac_cv_prog_cc_c89" != "xno" && break
3360 rm -f conftest.$ac_ext
3365 case "x$ac_cv_prog_cc_c89" in
3367 { echo "$as_me:$LINENO: result: none needed" >&5
3368 echo "${ECHO_T}none needed" >&6; } ;;
3370 { echo "$as_me:$LINENO: result: unsupported" >&5
3371 echo "${ECHO_T}unsupported" >&6; } ;;
3373 CC="$CC $ac_cv_prog_cc_c89"
3374 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3375 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3392 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3393 # On Suns, sometimes $CPP names a directory.
3394 if test -n "$CPP" && test -d "$CPP"; then
3397 if test -z "$CPP"; then
3398 if test "${ac_cv_prog_CPP+set}" = set; then
3399 echo $ECHO_N "(cached) $ECHO_C" >&6
3401 # Double quotes because CPP needs to be expanded
3402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3405 for ac_c_preproc_warn_flag in '' yes
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error" is here to catch this case.
3413 cat >conftest.$ac_ext <<_ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3420 # include <limits.h>
3422 # include <assert.h>
3426 if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 if test -z "$ac_cpp_err"; then
3451 echo "$as_me: failed program was:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 # Broken: fails on valid input.
3458 rm -f conftest.err conftest.$ac_ext
3460 # OK, works on sane cases. Now check whether nonexistent headers
3461 # can be detected and how.
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #include <ac_nonexistent.h>
3470 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 if test -z "$ac_cpp_err"; then
3493 # Broken: success on invalid input.
3496 echo "$as_me: failed program was:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Passes both tests.
3504 rm -f conftest.err conftest.$ac_ext
3507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3508 rm -f conftest.err conftest.$ac_ext
3509 if $ac_preproc_ok; then
3521 { echo "$as_me:$LINENO: result: $CPP" >&5
3522 echo "${ECHO_T}$CPP" >&6; }
3524 for ac_c_preproc_warn_flag in '' yes
3526 # Use a header file that comes with gcc, so configuring glibc
3527 # with a fresh cross-compiler works.
3528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3529 # <limits.h> exists even on freestanding compilers.
3530 # On the NeXT, cc -E runs the code through the compiler's parser,
3531 # not just through cpp. "Syntax error" is here to catch this case.
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3539 # include <limits.h>
3541 # include <assert.h>
3545 if { (ac_try="$ac_cpp conftest.$ac_ext"
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553 grep -v '^ *+' conftest.er1 >conftest.err
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 if test -z "$ac_cpp_err"; then
3570 echo "$as_me: failed program was:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 # Broken: fails on valid input.
3577 rm -f conftest.err conftest.$ac_ext
3579 # OK, works on sane cases. Now check whether nonexistent headers
3580 # can be detected and how.
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #include <ac_nonexistent.h>
3589 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597 grep -v '^ *+' conftest.er1 >conftest.err
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611 if test -z "$ac_cpp_err"; then
3612 # Broken: success on invalid input.
3615 echo "$as_me: failed program was:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 # Passes both tests.
3623 rm -f conftest.err conftest.$ac_ext
3626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3627 rm -f conftest.err conftest.$ac_ext
3628 if $ac_preproc_ok; then
3631 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3632 See \`config.log' for more details." >&5
3633 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3634 See \`config.log' for more details." >&2;}
3635 { (exit 1); exit 1; }; }
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3641 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3646 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3647 if test "${ac_cv_path_GREP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 # Extract the first word of "grep ggrep" to use in msg output
3651 if test -z "$GREP"; then
3652 set dummy grep ggrep; ac_prog_name=$2
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 ac_path_GREP_found=false
3657 # Loop through the user's path and test for each of PROGNAME-LIST
3658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3662 test -z "$as_dir" && as_dir=.
3663 for ac_prog in grep ggrep; do
3664 for ac_exec_ext in '' $ac_executable_extensions; do
3665 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3666 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3667 # Check for GNU ac_path_GREP and select it if it is found.
3668 # Check for GNU $ac_path_GREP
3669 case `"$ac_path_GREP" --version 2>&1` in
3671 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3674 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677 cat "conftest.in" "conftest.in" >"conftest.tmp"
3678 mv "conftest.tmp" "conftest.in"
3679 cp "conftest.in" "conftest.nl"
3680 echo 'GREP' >> "conftest.nl"
3681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3683 ac_count=`expr $ac_count + 1`
3684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3685 # Best one so far, save it but keep looking for a better one
3686 ac_cv_path_GREP="$ac_path_GREP"
3687 ac_path_GREP_max=$ac_count
3689 # 10*(2^10) chars as input seems more than enough
3690 test $ac_count -gt 10 && break
3692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3696 $ac_path_GREP_found && break 3
3706 GREP="$ac_cv_path_GREP"
3707 if test -z "$GREP"; then
3708 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3709 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3710 { (exit 1); exit 1; }; }
3714 ac_cv_path_GREP=$GREP
3719 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3720 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3721 GREP="$ac_cv_path_GREP"
3724 { echo "$as_me:$LINENO: checking for egrep" >&5
3725 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3726 if test "${ac_cv_path_EGREP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3730 then ac_cv_path_EGREP="$GREP -E"
3732 # Extract the first word of "egrep" to use in msg output
3733 if test -z "$EGREP"; then
3734 set dummy egrep; ac_prog_name=$2
3735 if test "${ac_cv_path_EGREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 ac_path_EGREP_found=false
3739 # Loop through the user's path and test for each of PROGNAME-LIST
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3744 test -z "$as_dir" && as_dir=.
3745 for ac_prog in egrep; do
3746 for ac_exec_ext in '' $ac_executable_extensions; do
3747 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3748 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3749 # Check for GNU ac_path_EGREP and select it if it is found.
3750 # Check for GNU $ac_path_EGREP
3751 case `"$ac_path_EGREP" --version 2>&1` in
3753 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3756 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3759 cat "conftest.in" "conftest.in" >"conftest.tmp"
3760 mv "conftest.tmp" "conftest.in"
3761 cp "conftest.in" "conftest.nl"
3762 echo 'EGREP' >> "conftest.nl"
3763 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3765 ac_count=`expr $ac_count + 1`
3766 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3767 # Best one so far, save it but keep looking for a better one
3768 ac_cv_path_EGREP="$ac_path_EGREP"
3769 ac_path_EGREP_max=$ac_count
3771 # 10*(2^10) chars as input seems more than enough
3772 test $ac_count -gt 10 && break
3774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3778 $ac_path_EGREP_found && break 3
3788 EGREP="$ac_cv_path_EGREP"
3789 if test -z "$EGREP"; then
3790 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3791 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3792 { (exit 1); exit 1; }; }
3796 ac_cv_path_EGREP=$EGREP
3802 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3803 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3804 EGREP="$ac_cv_path_EGREP"
3807 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3809 if test "${ac_cv_header_stdc+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 cat >conftest.$ac_ext <<_ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3831 rm -f conftest.$ac_objext
3832 if { (ac_try="$ac_compile"
3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3840 grep -v '^ *+' conftest.er1 >conftest.err
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3846 { (case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_try") 2>&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try='test -s conftest.$ac_objext'
3856 { (case "(($ac_try" in
3857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_try") 2>&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 ac_cv_header_stdc=yes
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 ac_cv_header_stdc=no
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 if test $ac_cv_header_stdc = yes; then
3876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3877 cat >conftest.$ac_ext <<_ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887 $EGREP "memchr" >/dev/null 2>&1; then
3890 ac_cv_header_stdc=no
3896 if test $ac_cv_header_stdc = yes; then
3897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 $EGREP "free" >/dev/null 2>&1; then
3911 ac_cv_header_stdc=no
3917 if test $ac_cv_header_stdc = yes; then
3918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3919 if test "$cross_compiling" = yes; then
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3930 #if ((' ' & 0x0FF) == 0x020)
3931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934 # define ISLOWER(c) \
3935 (('a' <= (c) && (c) <= 'i') \
3936 || ('j' <= (c) && (c) <= 'r') \
3937 || ('s' <= (c) && (c) <= 'z'))
3938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3946 for (i = 0; i < 256; i++)
3947 if (XOR (islower (i), ISLOWER (i))
3948 || toupper (i) != TOUPPER (i))
3953 rm -f conftest$ac_exeext
3954 if { (ac_try="$ac_link"
3956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3957 *) ac_try_echo=$ac_try;;
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_link") 2>&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3964 { (case "(($ac_try" in
3965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3975 echo "$as_me: program exited with status $ac_status" >&5
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3980 ac_cv_header_stdc=no
3982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3988 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3990 if test $ac_cv_header_stdc = yes; then
3992 cat >>confdefs.h <<\_ACEOF
3993 #define STDC_HEADERS 1
3998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009 inttypes.h stdint.h unistd.h
4011 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 $ac_includes_default
4025 #include <$ac_header>
4027 rm -f conftest.$ac_objext
4028 if { (ac_try="$ac_compile"
4030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4031 *) ac_try_echo=$ac_try;;
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4036 grep -v '^ *+' conftest.er1 >conftest.err
4038 cat conftest.err >&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4042 { (case "(($ac_try" in
4043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_try") 2>&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (case "(($ac_try" in
4053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4054 *) ac_try_echo=$ac_try;;
4056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_try") 2>&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 eval "$as_ac_Header=yes"
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.$ac_ext >&5
4066 eval "$as_ac_Header=no"
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 ac_res=`eval echo '${'$as_ac_Header'}'`
4072 { echo "$as_me:$LINENO: result: $ac_res" >&5
4073 echo "${ECHO_T}$ac_res" >&6; }
4074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4075 cat >>confdefs.h <<_ACEOF
4076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4085 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4086 if test "${ac_cv_c_bigendian+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 # See if sys/param.h defines the BYTE_ORDER macro.
4090 cat >conftest.$ac_ext <<_ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4096 #include <sys/types.h>
4097 #include <sys/param.h>
4102 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4110 rm -f conftest.$ac_objext
4111 if { (ac_try="$ac_compile"
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4119 grep -v '^ *+' conftest.er1 >conftest.err
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4125 { (case "(($ac_try" in
4126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4127 *) ac_try_echo=$ac_try;;
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_try") 2>&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try='test -s conftest.$ac_objext'
4135 { (case "(($ac_try" in
4136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_try") 2>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4144 # It does; now see whether it defined to BIG_ENDIAN or not.
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4151 #include <sys/types.h>
4152 #include <sys/param.h>
4157 #if BYTE_ORDER != BIG_ENDIAN
4165 rm -f conftest.$ac_objext
4166 if { (ac_try="$ac_compile"
4168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4169 *) ac_try_echo=$ac_try;;
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_compile") 2>conftest.er1
4174 grep -v '^ *+' conftest.er1 >conftest.err
4176 cat conftest.err >&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180 { (case "(($ac_try" in
4181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (case "(($ac_try" in
4191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4192 *) ac_try_echo=$ac_try;;
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_try") 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 ac_cv_c_bigendian=yes
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.$ac_ext >&5
4204 ac_cv_c_bigendian=no
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.$ac_ext >&5
4212 # It does not; compile a test program.
4213 if test "$cross_compiling" = yes; then
4214 # try to guess the endianness by grepping values into an object file
4215 ac_cv_c_bigendian=unknown
4216 cat >conftest.$ac_ext <<_ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4223 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4224 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4225 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4226 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4227 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4231 _ascii (); _ebcdic ();
4236 rm -f conftest.$ac_objext
4237 if { (ac_try="$ac_compile"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4245 grep -v '^ *+' conftest.er1 >conftest.err
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251 { (case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_try") 2>&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; } &&
4260 { ac_try='test -s conftest.$ac_objext'
4261 { (case "(($ac_try" in
4262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_try") 2>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4271 ac_cv_c_bigendian=yes
4273 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4274 if test "$ac_cv_c_bigendian" = unknown; then
4275 ac_cv_c_bigendian=no
4277 # finding both strings is unlikely to happen, but who knows?
4278 ac_cv_c_bigendian=unknown
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 cat >conftest.$ac_ext <<_ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 $ac_includes_default
4301 /* Are we little or big endian? From Harbison&Steele. */
4305 char c[sizeof (long int)];
4308 return u.c[sizeof (long int) - 1] == 1;
4314 rm -f conftest$ac_exeext
4315 if { (ac_try="$ac_link"
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_link") 2>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 ac_cv_c_bigendian=no
4336 echo "$as_me: program exited with status $ac_status" >&5
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4341 ac_cv_c_bigendian=yes
4343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4352 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4353 case $ac_cv_c_bigendian in
4361 { { echo "$as_me:$LINENO: error: unknown endianness
4362 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4363 echo "$as_me: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4365 { (exit 1); exit 1; }; } ;;
4369 if test "$cross_compiling" = yes; then
4370 LLVM_CROSS_COMPILING=1
4373 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4374 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4375 if test "${ac_cv_build_exeext+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4379 ac_cv_build_exeext=.exe
4381 ac_build_prefix=${build_alias}-
4383 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4384 set dummy ${ac_build_prefix}gcc; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 if test -n "$BUILD_CC"; then
4391 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 BUILD_CC=$ac_cv_prog_BUILD_CC
4411 if test -n "$BUILD_CC"; then
4412 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4413 echo "${ECHO_T}$BUILD_CC" >&6; }
4415 { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4420 if test -z "$BUILD_CC"; then
4421 # Extract the first word of "gcc", so it can be a program name with args.
4422 set dummy gcc; ac_word=$2
4423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 if test -n "$BUILD_CC"; then
4429 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_BUILD_CC="gcc"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 BUILD_CC=$ac_cv_prog_BUILD_CC
4449 if test -n "$BUILD_CC"; then
4450 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451 echo "${ECHO_T}$BUILD_CC" >&6; }
4453 { echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6; }
4458 if test -z "$BUILD_CC"; then
4459 # Extract the first word of "cc", so it can be a program name with args.
4460 set dummy cc; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 if test -n "$BUILD_CC"; then
4467 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected=yes
4481 ac_cv_prog_BUILD_CC="cc"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy $ac_cv_prog_BUILD_CC
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set BUILD_CC to just the basename; use the full file name.
4498 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4503 BUILD_CC=$ac_cv_prog_BUILD_CC
4504 if test -n "$BUILD_CC"; then
4505 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4506 echo "${ECHO_T}$BUILD_CC" >&6; }
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4515 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4516 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4517 { (exit 1); exit 1; }; }
4518 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520 echo 'int main () { return 0; }' > conftest.$ac_ext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4523 (eval $ac_build_link) 2>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; then
4527 for file in conftest.*; do
4529 *.c | *.o | *.obj | *.dSYM) ;;
4530 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4534 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4535 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4536 { (exit 1); exit 1; }; }
4539 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4544 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4545 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4546 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4547 ac_build_exeext=$BUILD_EXEEXT
4549 ac_build_prefix=${build_alias}-
4550 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4551 set dummy ${ac_build_prefix}g++; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 if test -n "$BUILD_CXX"; then
4558 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4578 if test -n "$BUILD_CXX"; then
4579 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4580 echo "${ECHO_T}$BUILD_CXX" >&6; }
4582 { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4587 if test -z "$BUILD_CXX"; then
4588 # Extract the first word of "g++", so it can be a program name with args.
4589 set dummy g++; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test -n "$BUILD_CXX"; then
4596 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_BUILD_CXX="g++"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616 if test -n "$BUILD_CXX"; then
4617 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618 echo "${ECHO_T}$BUILD_CXX" >&6; }
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4625 if test -z "$BUILD_CXX"; then
4626 # Extract the first word of "c++", so it can be a program name with args.
4627 set dummy c++; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$BUILD_CXX"; then
4634 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4645 ac_prog_rejected=yes
4648 ac_cv_prog_BUILD_CXX="c++"
4649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test $ac_prog_rejected = yes; then
4657 # We found a bogon in the path, so make sure we never use it.
4658 set dummy $ac_cv_prog_BUILD_CXX
4660 if test $# != 0; then
4661 # We chose a different compiler from the bogus one.
4662 # However, it has the same basename, so the bogon will be chosen
4663 # first if we set BUILD_CXX to just the basename; use the full file name.
4665 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4670 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4671 if test -n "$BUILD_CXX"; then
4672 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4673 echo "${ECHO_T}$BUILD_CXX" >&6; }
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4683 LLVM_CROSS_COMPILING=0
4687 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4698 # Check whether --enable-optimized was given.
4699 if test "${enable_optimized+set}" = set; then
4700 enableval=$enable_optimized;
4705 if test ${enableval} = "no" ; then
4709 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4713 # Check whether --enable-profiling was given.
4714 if test "${enable_profiling+set}" = set; then
4715 enableval=$enable_profiling;
4720 if test ${enableval} = "no" ; then
4724 ENABLE_PROFILING=ENABLE_PROFILING=1
4728 # Check whether --enable-assertions was given.
4729 if test "${enable_assertions+set}" = set; then
4730 enableval=$enable_assertions;
4735 if test ${enableval} = "yes" ; then
4739 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4743 # Check whether --enable-expensive-checks was given.
4744 if test "${enable_expensive_checks+set}" = set; then
4745 enableval=$enable_expensive_checks;
4750 if test ${enableval} = "yes" ; then
4751 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4753 EXPENSIVE_CHECKS=yes
4756 ENABLE_EXPENSIVE_CHECKS=
4762 # Check whether --enable-debug-runtime was given.
4763 if test "${enable_debug_runtime+set}" = set; then
4764 enableval=$enable_debug_runtime;
4769 if test ${enableval} = "no" ; then
4773 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4777 # Check whether --enable-debug-symbols was given.
4778 if test "${enable_debug_symbols+set}" = set; then
4779 enableval=$enable_debug_symbols;
4784 if test ${enableval} = "no" ; then
4788 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4792 # Check whether --enable-jit was given.
4793 if test "${enable_jit+set}" = set; then
4794 enableval=$enable_jit;
4799 if test ${enableval} = "no"
4804 case "$llvm_cv_target_arch" in
4805 x86) TARGET_HAS_JIT=1
4807 Sparc) TARGET_HAS_JIT=0
4809 PowerPC) TARGET_HAS_JIT=1
4811 x86_64) TARGET_HAS_JIT=1
4813 Alpha) TARGET_HAS_JIT=1
4815 ARM) TARGET_HAS_JIT=1
4817 Mips) TARGET_HAS_JIT=0
4819 PIC16) TARGET_HAS_JIT=0
4821 XCore) TARGET_HAS_JIT=0
4823 MSP430) TARGET_HAS_JIT=0
4825 SystemZ) TARGET_HAS_JIT=0
4827 Blackfin) TARGET_HAS_JIT=0
4829 MBlaze) TARGET_HAS_JIT=0
4836 # Check whether --enable-doxygen was given.
4837 if test "${enable_doxygen+set}" = set; then
4838 enableval=$enable_doxygen;
4843 case "$enableval" in
4844 yes) ENABLE_DOXYGEN=1
4846 no) ENABLE_DOXYGEN=0
4848 default) ENABLE_DOXYGEN=0
4850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
4855 # Check whether --enable-threads was given.
4856 if test "${enable_threads+set}" = set; then
4857 enableval=$enable_threads;
4862 case "$enableval" in
4863 yes) ENABLE_THREADS=1
4865 no) ENABLE_THREADS=0
4867 default) ENABLE_THREADS=1
4869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4870 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
4874 cat >>confdefs.h <<_ACEOF
4875 #define ENABLE_THREADS $ENABLE_THREADS
4879 # Check whether --enable-pic was given.
4880 if test "${enable_pic+set}" = set; then
4881 enableval=$enable_pic;
4886 case "$enableval" in
4891 default) ENABLE_PIC=1
4893 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4894 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4895 { (exit 1); exit 1; }; } ;;
4898 cat >>confdefs.h <<_ACEOF
4899 #define ENABLE_PIC $ENABLE_PIC
4903 # Check whether --enable-shared was given.
4904 if test "${enable_shared+set}" = set; then
4905 enableval=$enable_shared;
4910 case "$enableval" in
4911 yes) ENABLE_SHARED=1
4915 default) ENABLE_SHARED=0
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4918 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4922 # Check whether --enable-timestamps was given.
4923 if test "${enable_timestamps+set}" = set; then
4924 enableval=$enable_timestamps;
4929 case "$enableval" in
4930 yes) ENABLE_TIMESTAMPS=1
4932 no) ENABLE_TIMESTAMPS=0
4934 default) ENABLE_TIMESTAMPS=1
4936 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4937 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4941 cat >>confdefs.h <<_ACEOF
4942 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4947 # Check whether --enable-targets was given.
4948 if test "${enable_targets+set}" = set; then
4949 enableval=$enable_targets;
4954 if test "$enableval" = host-only ; then
4957 case "$enableval" in
4958 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4959 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4961 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4962 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4964 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4965 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4966 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4967 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4968 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4969 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4970 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4975 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4976 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4977 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4978 host) case "$llvm_cv_target_arch" in
4979 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4981 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4982 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4983 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4984 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4985 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4986 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4987 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4988 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4989 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4990 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4991 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4992 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4993 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4994 echo "$as_me: error: Can not set target to build" >&2;}
4995 { (exit 1); exit 1; }; } ;;
4997 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4998 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5004 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5007 # Determine whether we are building LLVM support for the native architecture.
5008 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5009 for a_target in $TARGETS_TO_BUILD; do
5010 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5011 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
5013 cat >>confdefs.h <<_ACEOF
5014 #define LLVM_NATIVE_ARCHNAME $LLVM_NATIVE_ARCH
5018 cat >>confdefs.h <<_ACEOF
5019 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
5025 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5026 # target feature def files.
5027 LLVM_ENUM_TARGETS=""
5028 LLVM_ENUM_ASM_PRINTERS=""
5029 LLVM_ENUM_ASM_PARSERS=""
5030 LLVM_ENUM_DISASSEMBLERS=""
5031 for target_to_build in $TARGETS_TO_BUILD; do
5032 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5033 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5034 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5036 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5037 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5039 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5040 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5048 # Check whether --enable-cbe-printf-a was given.
5049 if test "${enable_cbe_printf_a+set}" = set; then
5050 enableval=$enable_cbe_printf_a;
5055 case "$enableval" in
5056 yes) ENABLE_CBE_PRINTF_A=1
5058 no) ENABLE_CBE_PRINTF_A=0
5060 default) ENABLE_CBE_PRINTF_A=1
5062 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5063 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5064 { (exit 1); exit 1; }; } ;;
5067 cat >>confdefs.h <<_ACEOF
5068 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5073 # Check whether --with-llvmgccdir was given.
5074 if test "${with_llvmgccdir+set}" = set; then
5075 withval=$with_llvmgccdir;
5081 default) WITH_LLVMGCCDIR=default ;;
5082 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5083 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5084 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5085 { (exit 1); exit 1; }; } ;;
5089 # Check whether --with-llvmgcc was given.
5090 if test "${with_llvmgcc+set}" = set; then
5091 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5097 # Check whether --with-llvmgxx was given.
5098 if test "${with_llvmgxx+set}" = set; then
5099 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5104 if test -n "$LLVMGCC"; then
5105 LLVMGCCCOMMAND="$LLVMGCC"
5108 if test -n "$LLVMGXX"; then
5109 LLVMGXXCOMMAND="$LLVMGXX"
5112 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5113 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5114 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5115 { (exit 1); exit 1; }; };
5118 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5119 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5120 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5121 { (exit 1); exit 1; }; };
5125 # Check whether --with-clang was given.
5126 if test "${with_clang+set}" = set; then
5127 withval=$with_clang;
5134 # Check whether --with-built-clang was given.
5135 if test "${with_built_clang+set}" = set; then
5136 withval=$with_built_clang;
5138 with_built_clang=check
5142 { echo "$as_me:$LINENO: checking clang compiler" >&5
5143 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5146 if test "$with_clang" != "default"; then
5147 WITH_CLANGPATH="$with_clang"
5148 if ! test -x "$WITH_CLANGPATH"; then
5149 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5150 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5151 { (exit 1); exit 1; }; }
5153 elif test "$with_built_clang" = "yes"; then
5155 elif test "$with_built_clang" = "no"; then
5158 if test "$with_built_clang" != "check"; then
5159 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5160 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5161 { (exit 1); exit 1; }; }
5164 if test -f ${srcdir}/tools/clang/README.txt; then
5169 if ! test -z "$WITH_CLANGPATH"; then
5170 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5171 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5172 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5173 elif test "$WITH_BUILT_CLANG" = "1"; then
5174 { echo "$as_me:$LINENO: result: built" >&5
5175 echo "${ECHO_T}built" >&6; }
5177 { echo "$as_me:$LINENO: result: none" >&5
5178 echo "${ECHO_T}none" >&6; }
5180 CLANGPATH=$WITH_CLANGPATH
5182 CLANGXXPATH=$WITH_CLANGXXPATH
5184 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5188 # Check whether --with-optimize-option was given.
5189 if test "${with_optimize_option+set}" = set; then
5190 withval=$with_optimize_option;
5195 { echo "$as_me:$LINENO: checking optimization flags" >&5
5196 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5199 case "$llvm_cv_os_type" in
5200 FreeBSD) optimize_option=-O2 ;;
5201 MingW) optimize_option=-O2 ;;
5202 *) optimize_option=-O3 ;;
5204 *) optimize_option="$withval" ;;
5206 OPTIMIZE_OPTION=$optimize_option
5208 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5209 echo "${ECHO_T}$optimize_option" >&6; }
5212 # Check whether --with-extra-options was given.
5213 if test "${with_extra_options+set}" = set; then
5214 withval=$with_extra_options;
5220 default) EXTRA_OPTIONS= ;;
5221 *) EXTRA_OPTIONS=$withval ;;
5223 EXTRA_OPTIONS=$EXTRA_OPTIONS
5226 # Check whether --enable-bindings was given.
5227 if test "${enable_bindings+set}" = set; then
5228 enableval=$enable_bindings;
5233 BINDINGS_TO_BUILD=""
5234 case "$enableval" in
5235 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5236 all ) BINDINGS_TO_BUILD="ocaml" ;;
5237 none | no) BINDINGS_TO_BUILD="" ;;
5238 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5239 case "$a_binding" in
5240 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5241 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5242 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5243 { (exit 1); exit 1; }; } ;;
5250 # Check whether --with-ocaml-libdir was given.
5251 if test "${with_ocaml_libdir+set}" = set; then
5252 withval=$with_ocaml_libdir;
5258 auto) with_ocaml_libdir="$withval" ;;
5259 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5260 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5261 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5262 { (exit 1); exit 1; }; } ;;
5266 # Check whether --with-c-include-dirs was given.
5267 if test "${with_c_include_dirs+set}" = set; then
5268 withval=$with_c_include_dirs;
5274 cat >>confdefs.h <<_ACEOF
5275 #define C_INCLUDE_DIRS "$withval"
5280 # Check whether --with-cxx-include-root was given.
5281 if test "${with_cxx_include_root+set}" = set; then
5282 withval=$with_cxx_include_root;
5288 cat >>confdefs.h <<_ACEOF
5289 #define CXX_INCLUDE_ROOT "$withval"
5294 # Check whether --with-cxx-include-arch was given.
5295 if test "${with_cxx_include_arch+set}" = set; then
5296 withval=$with_cxx_include_arch;
5302 cat >>confdefs.h <<_ACEOF
5303 #define CXX_INCLUDE_ARCH "$withval"
5308 # Check whether --with-cxx-include-32bit-dir was given.
5309 if test "${with_cxx_include_32bit_dir+set}" = set; then
5310 withval=$with_cxx_include_32bit_dir;
5316 cat >>confdefs.h <<_ACEOF
5317 #define CXX_INCLUDE_32BIT_DIR "$withval"
5322 # Check whether --with-cxx-include-64bit-dir was given.
5323 if test "${with_cxx_include_64bit_dir+set}" = set; then
5324 withval=$with_cxx_include_64bit_dir;
5330 cat >>confdefs.h <<_ACEOF
5331 #define CXX_INCLUDE_64BIT_DIR "$withval"
5336 # Check whether --with-binutils-include was given.
5337 if test "${with_binutils_include+set}" = set; then
5338 withval=$with_binutils_include;
5344 default) WITH_BINUTILS_INCDIR=default ;;
5345 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5346 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5347 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5348 { (exit 1); exit 1; }; } ;;
5350 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5351 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5353 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5354 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5355 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5356 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5357 { (exit 1); exit 1; }; };
5361 # Check whether --enable-libffi was given.
5362 if test "${enable_libffi+set}" = set; then
5363 enableval=$enable_libffi; case "$enableval" in
5364 yes) llvm_cv_enable_libffi="yes" ;;
5365 no) llvm_cv_enable_libffi="no" ;;
5366 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5367 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5368 { (exit 1); exit 1; }; } ;;
5371 llvm_cv_enable_libffi=no
5377 ac_cpp='$CPP $CPPFLAGS'
5378 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5379 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5380 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5381 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5382 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5383 # On Suns, sometimes $CPP names a directory.
5384 if test -n "$CPP" && test -d "$CPP"; then
5387 if test -z "$CPP"; then
5388 if test "${ac_cv_prog_CPP+set}" = set; then
5389 echo $ECHO_N "(cached) $ECHO_C" >&6
5391 # Double quotes because CPP needs to be expanded
5392 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5395 for ac_c_preproc_warn_flag in '' yes
5397 # Use a header file that comes with gcc, so configuring glibc
5398 # with a fresh cross-compiler works.
5399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5400 # <limits.h> exists even on freestanding compilers.
5401 # On the NeXT, cc -E runs the code through the compiler's parser,
5402 # not just through cpp. "Syntax error" is here to catch this case.
5403 cat >conftest.$ac_ext <<_ACEOF
5406 cat confdefs.h >>conftest.$ac_ext
5407 cat >>conftest.$ac_ext <<_ACEOF
5408 /* end confdefs.h. */
5410 # include <limits.h>
5412 # include <assert.h>
5416 if { (ac_try="$ac_cpp conftest.$ac_ext"
5418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5419 *) ac_try_echo=$ac_try;;
5421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5424 grep -v '^ *+' conftest.er1 >conftest.err
5426 cat conftest.err >&5
5427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5428 (exit $ac_status); } >/dev/null; then
5429 if test -s conftest.err; then
5430 ac_cpp_err=$ac_c_preproc_warn_flag
5431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5438 if test -z "$ac_cpp_err"; then
5441 echo "$as_me: failed program was:" >&5
5442 sed 's/^/| /' conftest.$ac_ext >&5
5444 # Broken: fails on valid input.
5448 rm -f conftest.err conftest.$ac_ext
5450 # OK, works on sane cases. Now check whether nonexistent headers
5451 # can be detected and how.
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <ac_nonexistent.h>
5460 if { (ac_try="$ac_cpp conftest.$ac_ext"
5462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5463 *) ac_try_echo=$ac_try;;
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5468 grep -v '^ *+' conftest.er1 >conftest.err
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } >/dev/null; then
5473 if test -s conftest.err; then
5474 ac_cpp_err=$ac_c_preproc_warn_flag
5475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5482 if test -z "$ac_cpp_err"; then
5483 # Broken: success on invalid input.
5486 echo "$as_me: failed program was:" >&5
5487 sed 's/^/| /' conftest.$ac_ext >&5
5489 # Passes both tests.
5494 rm -f conftest.err conftest.$ac_ext
5497 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5498 rm -f conftest.err conftest.$ac_ext
5499 if $ac_preproc_ok; then
5511 { echo "$as_me:$LINENO: result: $CPP" >&5
5512 echo "${ECHO_T}$CPP" >&6; }
5514 for ac_c_preproc_warn_flag in '' yes
5516 # Use a header file that comes with gcc, so configuring glibc
5517 # with a fresh cross-compiler works.
5518 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5519 # <limits.h> exists even on freestanding compilers.
5520 # On the NeXT, cc -E runs the code through the compiler's parser,
5521 # not just through cpp. "Syntax error" is here to catch this case.
5522 cat >conftest.$ac_ext <<_ACEOF
5525 cat confdefs.h >>conftest.$ac_ext
5526 cat >>conftest.$ac_ext <<_ACEOF
5527 /* end confdefs.h. */
5529 # include <limits.h>
5531 # include <assert.h>
5535 if { (ac_try="$ac_cpp conftest.$ac_ext"
5537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5538 *) ac_try_echo=$ac_try;;
5540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5541 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5543 grep -v '^ *+' conftest.er1 >conftest.err
5545 cat conftest.err >&5
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); } >/dev/null; then
5548 if test -s conftest.err; then
5549 ac_cpp_err=$ac_c_preproc_warn_flag
5550 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5557 if test -z "$ac_cpp_err"; then
5560 echo "$as_me: failed program was:" >&5
5561 sed 's/^/| /' conftest.$ac_ext >&5
5563 # Broken: fails on valid input.
5567 rm -f conftest.err conftest.$ac_ext
5569 # OK, works on sane cases. Now check whether nonexistent headers
5570 # can be detected and how.
5571 cat >conftest.$ac_ext <<_ACEOF
5574 cat confdefs.h >>conftest.$ac_ext
5575 cat >>conftest.$ac_ext <<_ACEOF
5576 /* end confdefs.h. */
5577 #include <ac_nonexistent.h>
5579 if { (ac_try="$ac_cpp conftest.$ac_ext"
5581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5582 *) ac_try_echo=$ac_try;;
5584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5587 grep -v '^ *+' conftest.er1 >conftest.err
5589 cat conftest.err >&5
5590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5591 (exit $ac_status); } >/dev/null; then
5592 if test -s conftest.err; then
5593 ac_cpp_err=$ac_c_preproc_warn_flag
5594 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5601 if test -z "$ac_cpp_err"; then
5602 # Broken: success on invalid input.
5605 echo "$as_me: failed program was:" >&5
5606 sed 's/^/| /' conftest.$ac_ext >&5
5608 # Passes both tests.
5613 rm -f conftest.err conftest.$ac_ext
5616 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5617 rm -f conftest.err conftest.$ac_ext
5618 if $ac_preproc_ok; then
5621 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5622 See \`config.log' for more details." >&5
5623 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5624 See \`config.log' for more details." >&2;}
5625 { (exit 1); exit 1; }; }
5629 ac_cpp='$CPP $CPPFLAGS'
5630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5639 if test -n "$ac_tool_prefix"; then
5642 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5643 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5644 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5645 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5646 if test "${ac_cv_prog_CC+set}" = set; then
5647 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 if test -n "$CC"; then
5650 ac_cv_prog_CC="$CC" # Let the user override the test.
5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5656 test -z "$as_dir" && as_dir=.
5657 for ac_exec_ext in '' $ac_executable_extensions; do
5658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5659 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5660 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5670 if test -n "$CC"; then
5671 { echo "$as_me:$LINENO: result: $CC" >&5
5672 echo "${ECHO_T}$CC" >&6; }
5674 { echo "$as_me:$LINENO: result: no" >&5
5675 echo "${ECHO_T}no" >&6; }
5679 test -n "$CC" && break
5682 if test -z "$CC"; then
5686 # Extract the first word of "$ac_prog", so it can be a program name with args.
5687 set dummy $ac_prog; ac_word=$2
5688 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5689 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5690 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5693 if test -n "$ac_ct_CC"; then
5694 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 test -z "$as_dir" && as_dir=.
5701 for ac_exec_ext in '' $ac_executable_extensions; do
5702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5703 ac_cv_prog_ac_ct_CC="$ac_prog"
5704 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5713 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5714 if test -n "$ac_ct_CC"; then
5715 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5716 echo "${ECHO_T}$ac_ct_CC" >&6; }
5718 { echo "$as_me:$LINENO: result: no" >&5
5719 echo "${ECHO_T}no" >&6; }
5723 test -n "$ac_ct_CC" && break
5726 if test "x$ac_ct_CC" = x; then
5729 case $cross_compiling:$ac_tool_warned in
5731 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5732 whose name does not start with the host triplet. If you think this
5733 configuration is useful to you, please write to autoconf@gnu.org." >&5
5734 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5735 whose name does not start with the host triplet. If you think this
5736 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5737 ac_tool_warned=yes ;;
5744 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5745 See \`config.log' for more details." >&5
5746 echo "$as_me: error: no acceptable C compiler found in \$PATH
5747 See \`config.log' for more details." >&2;}
5748 { (exit 1); exit 1; }; }
5750 # Provide some information about the compiler.
5751 echo "$as_me:$LINENO: checking for C compiler version" >&5
5752 ac_compiler=`set X $ac_compile; echo $2`
5753 { (ac_try="$ac_compiler --version >&5"
5755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5756 *) ac_try_echo=$ac_try;;
5758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5759 (eval "$ac_compiler --version >&5") 2>&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); }
5763 { (ac_try="$ac_compiler -v >&5"
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_compiler -v >&5") 2>&5
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }
5773 { (ac_try="$ac_compiler -V >&5"
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_compiler -V >&5") 2>&5
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }
5784 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5785 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5786 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5807 rm -f conftest.$ac_objext
5808 if { (ac_try="$ac_compile"
5810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5811 *) ac_try_echo=$ac_try;;
5813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5814 (eval "$ac_compile") 2>conftest.er1
5816 grep -v '^ *+' conftest.er1 >conftest.err
5818 cat conftest.err >&5
5819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5820 (exit $ac_status); } &&
5821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5822 { (case "(($ac_try" in
5823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5824 *) ac_try_echo=$ac_try;;
5826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5827 (eval "$ac_try") 2>&5
5829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); }; } &&
5831 { ac_try='test -s conftest.$ac_objext'
5832 { (case "(($ac_try" in
5833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5834 *) ac_try_echo=$ac_try;;
5836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5837 (eval "$ac_try") 2>&5
5839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5840 (exit $ac_status); }; }; then
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5853 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5854 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5855 GCC=`test $ac_compiler_gnu = yes && echo yes`
5856 ac_test_CFLAGS=${CFLAGS+set}
5857 ac_save_CFLAGS=$CFLAGS
5858 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5859 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5860 if test "${ac_cv_prog_cc_g+set}" = set; then
5861 echo $ECHO_N "(cached) $ECHO_C" >&6
5863 ac_save_c_werror_flag=$ac_c_werror_flag
5864 ac_c_werror_flag=yes
5867 cat >conftest.$ac_ext <<_ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5882 rm -f conftest.$ac_objext
5883 if { (ac_try="$ac_compile"
5885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5886 *) ac_try_echo=$ac_try;;
5888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5889 (eval "$ac_compile") 2>conftest.er1
5891 grep -v '^ *+' conftest.er1 >conftest.err
5893 cat conftest.err >&5
5894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5895 (exit $ac_status); } &&
5896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5897 { (case "(($ac_try" in
5898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5899 *) ac_try_echo=$ac_try;;
5901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5902 (eval "$ac_try") 2>&5
5904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5905 (exit $ac_status); }; } &&
5906 { ac_try='test -s conftest.$ac_objext'
5907 { (case "(($ac_try" in
5908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5909 *) ac_try_echo=$ac_try;;
5911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5912 (eval "$ac_try") 2>&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); }; }; then
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5922 cat >conftest.$ac_ext <<_ACEOF
5925 cat confdefs.h >>conftest.$ac_ext
5926 cat >>conftest.$ac_ext <<_ACEOF
5927 /* end confdefs.h. */
5937 rm -f conftest.$ac_objext
5938 if { (ac_try="$ac_compile"
5940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5941 *) ac_try_echo=$ac_try;;
5943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5944 (eval "$ac_compile") 2>conftest.er1
5946 grep -v '^ *+' conftest.er1 >conftest.err
5948 cat conftest.err >&5
5949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5950 (exit $ac_status); } &&
5951 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5952 { (case "(($ac_try" in
5953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5954 *) ac_try_echo=$ac_try;;
5956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5957 (eval "$ac_try") 2>&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); }; } &&
5961 { ac_try='test -s conftest.$ac_objext'
5962 { (case "(($ac_try" in
5963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5964 *) ac_try_echo=$ac_try;;
5966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5967 (eval "$ac_try") 2>&5
5969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5970 (exit $ac_status); }; }; then
5973 echo "$as_me: failed program was:" >&5
5974 sed 's/^/| /' conftest.$ac_ext >&5
5976 ac_c_werror_flag=$ac_save_c_werror_flag
5978 cat >conftest.$ac_ext <<_ACEOF
5981 cat confdefs.h >>conftest.$ac_ext
5982 cat >>conftest.$ac_ext <<_ACEOF
5983 /* end confdefs.h. */
5993 rm -f conftest.$ac_objext
5994 if { (ac_try="$ac_compile"
5996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997 *) ac_try_echo=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_compile") 2>conftest.er1
6002 grep -v '^ *+' conftest.er1 >conftest.err
6004 cat conftest.err >&5
6005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6006 (exit $ac_status); } &&
6007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6008 { (case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6013 (eval "$ac_try") 2>&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); }; } &&
6017 { ac_try='test -s conftest.$ac_objext'
6018 { (case "(($ac_try" in
6019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6020 *) ac_try_echo=$ac_try;;
6022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6023 (eval "$ac_try") 2>&5
6025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6026 (exit $ac_status); }; }; then
6029 echo "$as_me: failed program was:" >&5
6030 sed 's/^/| /' conftest.$ac_ext >&5
6035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 ac_c_werror_flag=$ac_save_c_werror_flag
6044 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6045 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6046 if test "$ac_test_CFLAGS" = set; then
6047 CFLAGS=$ac_save_CFLAGS
6048 elif test $ac_cv_prog_cc_g = yes; then
6049 if test "$GCC" = yes; then
6055 if test "$GCC" = yes; then
6061 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6062 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6063 if test "${ac_cv_prog_cc_c89+set}" = set; then
6064 echo $ECHO_N "(cached) $ECHO_C" >&6
6066 ac_cv_prog_cc_c89=no
6068 cat >conftest.$ac_ext <<_ACEOF
6071 cat confdefs.h >>conftest.$ac_ext
6072 cat >>conftest.$ac_ext <<_ACEOF
6073 /* end confdefs.h. */
6076 #include <sys/types.h>
6077 #include <sys/stat.h>
6078 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6079 struct buf { int x; };
6080 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6081 static char *e (p, i)
6087 static char *f (char * (*g) (char **, int), char **p, ...)
6092 s = g (p, va_arg (v,int));
6097 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6098 function prototypes and stuff, but not '\xHH' hex character constants.
6099 These don't provoke an error unfortunately, instead are silently treated
6100 as 'x'. The following induces an error, until -std is added to get
6101 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6102 array size at least. It's necessary to write '\x00'==0 to get something
6103 that's true only with -std. */
6104 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6106 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6107 inside strings and character constants. */
6109 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6111 int test (int i, double x);
6112 struct s1 {int (*f) (int a);};
6113 struct s2 {int (*f) (double a);};
6114 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6120 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6125 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6126 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6128 CC="$ac_save_CC $ac_arg"
6129 rm -f conftest.$ac_objext
6130 if { (ac_try="$ac_compile"
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6136 (eval "$ac_compile") 2>conftest.er1
6138 grep -v '^ *+' conftest.er1 >conftest.err
6140 cat conftest.err >&5
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } &&
6143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6144 { (case "(($ac_try" in
6145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_try") 2>&5
6151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6152 (exit $ac_status); }; } &&
6153 { ac_try='test -s conftest.$ac_objext'
6154 { (case "(($ac_try" in
6155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6156 *) ac_try_echo=$ac_try;;
6158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6159 (eval "$ac_try") 2>&5
6161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6162 (exit $ac_status); }; }; then
6163 ac_cv_prog_cc_c89=$ac_arg
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6171 rm -f core conftest.err conftest.$ac_objext
6172 test "x$ac_cv_prog_cc_c89" != "xno" && break
6174 rm -f conftest.$ac_ext
6179 case "x$ac_cv_prog_cc_c89" in
6181 { echo "$as_me:$LINENO: result: none needed" >&5
6182 echo "${ECHO_T}none needed" >&6; } ;;
6184 { echo "$as_me:$LINENO: result: unsupported" >&5
6185 echo "${ECHO_T}unsupported" >&6; } ;;
6187 CC="$CC $ac_cv_prog_cc_c89"
6188 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6189 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6194 ac_cpp='$CPP $CPPFLAGS'
6195 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6196 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6197 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6200 ac_cpp='$CXXCPP $CPPFLAGS'
6201 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6202 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6203 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6204 if test -z "$CXX"; then
6205 if test -n "$CCC"; then
6208 if test -n "$ac_tool_prefix"; then
6211 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6212 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6213 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6214 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6215 if test "${ac_cv_prog_CXX+set}" = set; then
6216 echo $ECHO_N "(cached) $ECHO_C" >&6
6218 if test -n "$CXX"; then
6219 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir=.
6226 for ac_exec_ext in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6239 if test -n "$CXX"; then
6240 { echo "$as_me:$LINENO: result: $CXX" >&5
6241 echo "${ECHO_T}$CXX" >&6; }
6243 { echo "$as_me:$LINENO: result: no" >&5
6244 echo "${ECHO_T}no" >&6; }
6248 test -n "$CXX" && break
6251 if test -z "$CXX"; then
6255 # Extract the first word of "$ac_prog", so it can be a program name with args.
6256 set dummy $ac_prog; ac_word=$2
6257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6259 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6260 echo $ECHO_N "(cached) $ECHO_C" >&6
6262 if test -n "$ac_ct_CXX"; then
6263 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6269 test -z "$as_dir" && as_dir=.
6270 for ac_exec_ext in '' $ac_executable_extensions; do
6271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6272 ac_cv_prog_ac_ct_CXX="$ac_prog"
6273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6282 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6283 if test -n "$ac_ct_CXX"; then
6284 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6285 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6287 { echo "$as_me:$LINENO: result: no" >&5
6288 echo "${ECHO_T}no" >&6; }
6292 test -n "$ac_ct_CXX" && break
6295 if test "x$ac_ct_CXX" = x; then
6298 case $cross_compiling:$ac_tool_warned in
6300 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6301 whose name does not start with the host triplet. If you think this
6302 configuration is useful to you, please write to autoconf@gnu.org." >&5
6303 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6304 whose name does not start with the host triplet. If you think this
6305 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6306 ac_tool_warned=yes ;;
6314 # Provide some information about the compiler.
6315 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6316 ac_compiler=`set X $ac_compile; echo $2`
6317 { (ac_try="$ac_compiler --version >&5"
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6323 (eval "$ac_compiler --version >&5") 2>&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); }
6327 { (ac_try="$ac_compiler -v >&5"
6329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6330 *) ac_try_echo=$ac_try;;
6332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6333 (eval "$ac_compiler -v >&5") 2>&5
6335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6336 (exit $ac_status); }
6337 { (ac_try="$ac_compiler -V >&5"
6339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6340 *) ac_try_echo=$ac_try;;
6342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6343 (eval "$ac_compiler -V >&5") 2>&5
6345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6346 (exit $ac_status); }
6348 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6349 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6350 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6351 echo $ECHO_N "(cached) $ECHO_C" >&6
6353 cat >conftest.$ac_ext <<_ACEOF
6356 cat confdefs.h >>conftest.$ac_ext
6357 cat >>conftest.$ac_ext <<_ACEOF
6358 /* end confdefs.h. */
6371 rm -f conftest.$ac_objext
6372 if { (ac_try="$ac_compile"
6374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6375 *) ac_try_echo=$ac_try;;
6377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6378 (eval "$ac_compile") 2>conftest.er1
6380 grep -v '^ *+' conftest.er1 >conftest.err
6382 cat conftest.err >&5
6383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6384 (exit $ac_status); } &&
6385 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6386 { (case "(($ac_try" in
6387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6388 *) ac_try_echo=$ac_try;;
6390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6391 (eval "$ac_try") 2>&5
6393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6394 (exit $ac_status); }; } &&
6395 { ac_try='test -s conftest.$ac_objext'
6396 { (case "(($ac_try" in
6397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6398 *) ac_try_echo=$ac_try;;
6400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6401 (eval "$ac_try") 2>&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); }; }; then
6407 echo "$as_me: failed program was:" >&5
6408 sed 's/^/| /' conftest.$ac_ext >&5
6413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6414 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6417 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6418 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6419 GXX=`test $ac_compiler_gnu = yes && echo yes`
6420 ac_test_CXXFLAGS=${CXXFLAGS+set}
6421 ac_save_CXXFLAGS=$CXXFLAGS
6422 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6423 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6424 if test "${ac_cv_prog_cxx_g+set}" = set; then
6425 echo $ECHO_N "(cached) $ECHO_C" >&6
6427 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6428 ac_cxx_werror_flag=yes
6431 cat >conftest.$ac_ext <<_ACEOF
6434 cat confdefs.h >>conftest.$ac_ext
6435 cat >>conftest.$ac_ext <<_ACEOF
6436 /* end confdefs.h. */
6446 rm -f conftest.$ac_objext
6447 if { (ac_try="$ac_compile"
6449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6450 *) ac_try_echo=$ac_try;;
6452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6453 (eval "$ac_compile") 2>conftest.er1
6455 grep -v '^ *+' conftest.er1 >conftest.err
6457 cat conftest.err >&5
6458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6459 (exit $ac_status); } &&
6460 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6461 { (case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_try") 2>&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); }; } &&
6470 { ac_try='test -s conftest.$ac_objext'
6471 { (case "(($ac_try" in
6472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6473 *) ac_try_echo=$ac_try;;
6475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6476 (eval "$ac_try") 2>&5
6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6479 (exit $ac_status); }; }; then
6480 ac_cv_prog_cxx_g=yes
6482 echo "$as_me: failed program was:" >&5
6483 sed 's/^/| /' conftest.$ac_ext >&5
6486 cat >conftest.$ac_ext <<_ACEOF
6489 cat confdefs.h >>conftest.$ac_ext
6490 cat >>conftest.$ac_ext <<_ACEOF
6491 /* end confdefs.h. */
6501 rm -f conftest.$ac_objext
6502 if { (ac_try="$ac_compile"
6504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6505 *) ac_try_echo=$ac_try;;
6507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6508 (eval "$ac_compile") 2>conftest.er1
6510 grep -v '^ *+' conftest.er1 >conftest.err
6512 cat conftest.err >&5
6513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6514 (exit $ac_status); } &&
6515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6516 { (case "(($ac_try" in
6517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6518 *) ac_try_echo=$ac_try;;
6520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6521 (eval "$ac_try") 2>&5
6523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6524 (exit $ac_status); }; } &&
6525 { ac_try='test -s conftest.$ac_objext'
6526 { (case "(($ac_try" in
6527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_try") 2>&5
6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6534 (exit $ac_status); }; }; then
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6542 cat >conftest.$ac_ext <<_ACEOF
6545 cat confdefs.h >>conftest.$ac_ext
6546 cat >>conftest.$ac_ext <<_ACEOF
6547 /* end confdefs.h. */
6557 rm -f conftest.$ac_objext
6558 if { (ac_try="$ac_compile"
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_compile") 2>conftest.er1
6566 grep -v '^ *+' conftest.er1 >conftest.err
6568 cat conftest.err >&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } &&
6571 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6572 { (case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_try") 2>&5
6579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6580 (exit $ac_status); }; } &&
6581 { ac_try='test -s conftest.$ac_objext'
6582 { (case "(($ac_try" in
6583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6584 *) ac_try_echo=$ac_try;;
6586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6587 (eval "$ac_try") 2>&5
6589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6590 (exit $ac_status); }; }; then
6591 ac_cv_prog_cxx_g=yes
6593 echo "$as_me: failed program was:" >&5
6594 sed 's/^/| /' conftest.$ac_ext >&5
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6608 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6609 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6610 if test "$ac_test_CXXFLAGS" = set; then
6611 CXXFLAGS=$ac_save_CXXFLAGS
6612 elif test $ac_cv_prog_cxx_g = yes; then
6613 if test "$GXX" = yes; then
6619 if test "$GXX" = yes; then
6626 ac_cpp='$CPP $CPPFLAGS'
6627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6632 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6633 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6634 if test "${lt_cv_path_NM+set}" = set; then
6635 echo $ECHO_N "(cached) $ECHO_C" >&6
6637 if test -n "$NM"; then
6638 # Let the user override the test.
6641 lt_nm_to_check="${ac_tool_prefix}nm"
6642 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6643 lt_nm_to_check="$lt_nm_to_check nm"
6645 for lt_tmp_nm in $lt_nm_to_check; do
6646 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6647 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6649 test -z "$ac_dir" && ac_dir=.
6650 tmp_nm="$ac_dir/$lt_tmp_nm"
6651 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6652 # Check to see if the nm accepts a BSD-compat flag.
6653 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6654 # nm: unknown option "B" ignored
6655 # Tru64's nm complains that /dev/null is an invalid object file
6656 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6657 */dev/null* | *'Invalid file or object type'*)
6658 lt_cv_path_NM="$tmp_nm -B"
6662 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6664 lt_cv_path_NM="$tmp_nm -p"
6668 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6669 continue # so that we can try to find one that supports BSD flags
6678 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6681 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6682 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6687 { echo "$as_me:$LINENO: checking for GNU make" >&5
6688 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6689 if test "${llvm_cv_gnu_make_command+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 llvm_cv_gnu_make_command=''
6693 for a in "$MAKE" make gmake gnumake ; do
6694 if test -z "$a" ; then continue ; fi ;
6695 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6697 llvm_cv_gnu_make_command=$a ;
6702 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6703 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6704 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6708 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6709 echo "${ECHO_T}\"Not found\"" >&6; };
6713 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6714 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6716 if test "$LN_S" = "ln -s"; then
6717 { echo "$as_me:$LINENO: result: yes" >&5
6718 echo "${ECHO_T}yes" >&6; }
6720 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6721 echo "${ECHO_T}no, using $LN_S" >&6; }
6724 # Extract the first word of "cmp", so it can be a program name with args.
6725 set dummy cmp; ac_word=$2
6726 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6727 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6728 if test "${ac_cv_path_CMP+set}" = set; then
6729 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6756 if test -n "$CMP"; then
6757 { echo "$as_me:$LINENO: result: $CMP" >&5
6758 echo "${ECHO_T}$CMP" >&6; }
6760 { echo "$as_me:$LINENO: result: no" >&5
6761 echo "${ECHO_T}no" >&6; }
6765 # Extract the first word of "cp", so it can be a program name with args.
6766 set dummy cp; ac_word=$2
6767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6769 if test "${ac_cv_path_CP+set}" = set; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6774 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6781 test -z "$as_dir" && as_dir=.
6782 for ac_exec_ext in '' $ac_executable_extensions; do
6783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6784 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6792 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6797 if test -n "$CP"; then
6798 { echo "$as_me:$LINENO: result: $CP" >&5
6799 echo "${ECHO_T}$CP" >&6; }
6801 { echo "$as_me:$LINENO: result: no" >&5
6802 echo "${ECHO_T}no" >&6; }
6806 # Extract the first word of "date", so it can be a program name with args.
6807 set dummy date; ac_word=$2
6808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6810 if test "${ac_cv_path_DATE+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6815 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6822 test -z "$as_dir" && as_dir=.
6823 for ac_exec_ext in '' $ac_executable_extensions; do
6824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6825 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6833 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6837 DATE=$ac_cv_path_DATE
6838 if test -n "$DATE"; then
6839 { echo "$as_me:$LINENO: result: $DATE" >&5
6840 echo "${ECHO_T}$DATE" >&6; }
6842 { echo "$as_me:$LINENO: result: no" >&5
6843 echo "${ECHO_T}no" >&6; }
6847 # Extract the first word of "find", so it can be a program name with args.
6848 set dummy find; ac_word=$2
6849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6851 if test "${ac_cv_path_FIND+set}" = set; then
6852 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6863 test -z "$as_dir" && as_dir=.
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6866 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6874 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6878 FIND=$ac_cv_path_FIND
6879 if test -n "$FIND"; then
6880 { echo "$as_me:$LINENO: result: $FIND" >&5
6881 echo "${ECHO_T}$FIND" >&6; }
6883 { echo "$as_me:$LINENO: result: no" >&5
6884 echo "${ECHO_T}no" >&6; }
6888 # Extract the first word of "grep", so it can be a program name with args.
6889 set dummy grep; ac_word=$2
6890 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6891 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6892 if test "${ac_cv_path_GREP+set}" = set; then
6893 echo $ECHO_N "(cached) $ECHO_C" >&6
6897 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6904 test -z "$as_dir" && as_dir=.
6905 for ac_exec_ext in '' $ac_executable_extensions; do
6906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6907 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6908 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6919 GREP=$ac_cv_path_GREP
6920 if test -n "$GREP"; then
6921 { echo "$as_me:$LINENO: result: $GREP" >&5
6922 echo "${ECHO_T}$GREP" >&6; }
6924 { echo "$as_me:$LINENO: result: no" >&5
6925 echo "${ECHO_T}no" >&6; }
6929 # Extract the first word of "mkdir", so it can be a program name with args.
6930 set dummy mkdir; ac_word=$2
6931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6933 if test "${ac_cv_path_MKDIR+set}" = set; then
6934 echo $ECHO_N "(cached) $ECHO_C" >&6
6938 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6945 test -z "$as_dir" && as_dir=.
6946 for ac_exec_ext in '' $ac_executable_extensions; do
6947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6948 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6956 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6960 MKDIR=$ac_cv_path_MKDIR
6961 if test -n "$MKDIR"; then
6962 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6963 echo "${ECHO_T}$MKDIR" >&6; }
6965 { echo "$as_me:$LINENO: result: no" >&5
6966 echo "${ECHO_T}no" >&6; }
6970 # Extract the first word of "mv", so it can be a program name with args.
6971 set dummy mv; ac_word=$2
6972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6974 if test "${ac_cv_path_MV+set}" = set; then
6975 echo $ECHO_N "(cached) $ECHO_C" >&6
6979 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6986 test -z "$as_dir" && as_dir=.
6987 for ac_exec_ext in '' $ac_executable_extensions; do
6988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6989 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6997 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7002 if test -n "$MV"; then
7003 { echo "$as_me:$LINENO: result: $MV" >&5
7004 echo "${ECHO_T}$MV" >&6; }
7006 { echo "$as_me:$LINENO: result: no" >&5
7007 echo "${ECHO_T}no" >&6; }
7011 if test -n "$ac_tool_prefix"; then
7012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7013 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7016 if test "${ac_cv_prog_RANLIB+set}" = set; then
7017 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 if test -n "$RANLIB"; then
7020 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 test -z "$as_dir" && as_dir=.
7027 for ac_exec_ext in '' $ac_executable_extensions; do
7028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7029 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7039 RANLIB=$ac_cv_prog_RANLIB
7040 if test -n "$RANLIB"; then
7041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7042 echo "${ECHO_T}$RANLIB" >&6; }
7044 { echo "$as_me:$LINENO: result: no" >&5
7045 echo "${ECHO_T}no" >&6; }
7050 if test -z "$ac_cv_prog_RANLIB"; then
7051 ac_ct_RANLIB=$RANLIB
7052 # Extract the first word of "ranlib", so it can be a program name with args.
7053 set dummy ranlib; ac_word=$2
7054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7057 echo $ECHO_N "(cached) $ECHO_C" >&6
7059 if test -n "$ac_ct_RANLIB"; then
7060 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7066 test -z "$as_dir" && as_dir=.
7067 for ac_exec_ext in '' $ac_executable_extensions; do
7068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7069 ac_cv_prog_ac_ct_RANLIB="ranlib"
7070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7079 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7080 if test -n "$ac_ct_RANLIB"; then
7081 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7082 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7084 { echo "$as_me:$LINENO: result: no" >&5
7085 echo "${ECHO_T}no" >&6; }
7088 if test "x$ac_ct_RANLIB" = x; then
7091 case $cross_compiling:$ac_tool_warned in
7093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7094 whose name does not start with the host triplet. If you think this
7095 configuration is useful to you, please write to autoconf@gnu.org." >&5
7096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7097 whose name does not start with the host triplet. If you think this
7098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7099 ac_tool_warned=yes ;;
7101 RANLIB=$ac_ct_RANLIB
7104 RANLIB="$ac_cv_prog_RANLIB"
7107 if test -n "$ac_tool_prefix"; then
7108 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7109 set dummy ${ac_tool_prefix}ar; ac_word=$2
7110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7112 if test "${ac_cv_prog_AR+set}" = set; then
7113 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 if test -n "$AR"; then
7116 ac_cv_prog_AR="$AR" # Let the user override the test.
7118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7122 test -z "$as_dir" && as_dir=.
7123 for ac_exec_ext in '' $ac_executable_extensions; do
7124 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7125 ac_cv_prog_AR="${ac_tool_prefix}ar"
7126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7136 if test -n "$AR"; then
7137 { echo "$as_me:$LINENO: result: $AR" >&5
7138 echo "${ECHO_T}$AR" >&6; }
7140 { echo "$as_me:$LINENO: result: no" >&5
7141 echo "${ECHO_T}no" >&6; }
7146 if test -z "$ac_cv_prog_AR"; then
7148 # Extract the first word of "ar", so it can be a program name with args.
7149 set dummy ar; ac_word=$2
7150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7152 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7153 echo $ECHO_N "(cached) $ECHO_C" >&6
7155 if test -n "$ac_ct_AR"; then
7156 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7162 test -z "$as_dir" && as_dir=.
7163 for ac_exec_ext in '' $ac_executable_extensions; do
7164 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7165 ac_cv_prog_ac_ct_AR="ar"
7166 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7175 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7176 if test -n "$ac_ct_AR"; then
7177 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7178 echo "${ECHO_T}$ac_ct_AR" >&6; }
7180 { echo "$as_me:$LINENO: result: no" >&5
7181 echo "${ECHO_T}no" >&6; }
7184 if test "x$ac_ct_AR" = x; then
7187 case $cross_compiling:$ac_tool_warned in
7189 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7190 whose name does not start with the host triplet. If you think this
7191 configuration is useful to you, please write to autoconf@gnu.org." >&5
7192 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7193 whose name does not start with the host triplet. If you think this
7194 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7195 ac_tool_warned=yes ;;
7203 # Extract the first word of "rm", so it can be a program name with args.
7204 set dummy rm; ac_word=$2
7205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7207 if test "${ac_cv_path_RM+set}" = set; then
7208 echo $ECHO_N "(cached) $ECHO_C" >&6
7212 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7235 if test -n "$RM"; then
7236 { echo "$as_me:$LINENO: result: $RM" >&5
7237 echo "${ECHO_T}$RM" >&6; }
7239 { echo "$as_me:$LINENO: result: no" >&5
7240 echo "${ECHO_T}no" >&6; }
7244 # Extract the first word of "sed", so it can be a program name with args.
7245 set dummy sed; ac_word=$2
7246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7248 if test "${ac_cv_path_SED+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7253 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7260 test -z "$as_dir" && as_dir=.
7261 for ac_exec_ext in '' $ac_executable_extensions; do
7262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7263 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7276 if test -n "$SED"; then
7277 { echo "$as_me:$LINENO: result: $SED" >&5
7278 echo "${ECHO_T}$SED" >&6; }
7280 { echo "$as_me:$LINENO: result: no" >&5
7281 echo "${ECHO_T}no" >&6; }
7285 # Extract the first word of "tar", so it can be a program name with args.
7286 set dummy tar; ac_word=$2
7287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7289 if test "${ac_cv_path_TAR+set}" = set; then
7290 echo $ECHO_N "(cached) $ECHO_C" >&6
7294 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7301 test -z "$as_dir" && as_dir=.
7302 for ac_exec_ext in '' $ac_executable_extensions; do
7303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7304 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7312 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7317 if test -n "$TAR"; then
7318 { echo "$as_me:$LINENO: result: $TAR" >&5
7319 echo "${ECHO_T}$TAR" >&6; }
7321 { echo "$as_me:$LINENO: result: no" >&5
7322 echo "${ECHO_T}no" >&6; }
7326 # Extract the first word of "pwd", so it can be a program name with args.
7327 set dummy pwd; ac_word=$2
7328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7330 if test "${ac_cv_path_BINPWD+set}" = set; then
7331 echo $ECHO_N "(cached) $ECHO_C" >&6
7335 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7345 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7353 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7357 BINPWD=$ac_cv_path_BINPWD
7358 if test -n "$BINPWD"; then
7359 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7360 echo "${ECHO_T}$BINPWD" >&6; }
7362 { echo "$as_me:$LINENO: result: no" >&5
7363 echo "${ECHO_T}no" >&6; }
7368 # Extract the first word of "Graphviz", so it can be a program name with args.
7369 set dummy Graphviz; ac_word=$2
7370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7372 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7377 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384 test -z "$as_dir" && as_dir=.
7385 for ac_exec_ext in '' $ac_executable_extensions; do
7386 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7387 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7388 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7395 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7399 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7400 if test -n "$GRAPHVIZ"; then
7401 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7402 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7404 { echo "$as_me:$LINENO: result: no" >&5
7405 echo "${ECHO_T}no" >&6; }
7409 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_GRAPHVIZ 1
7415 if test "$llvm_cv_os_type" = "MingW" ; then
7416 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7419 cat >>confdefs.h <<_ACEOF
7420 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7424 # Extract the first word of "dot", so it can be a program name with args.
7425 set dummy dot; ac_word=$2
7426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7428 if test "${ac_cv_path_DOT+set}" = set; then
7429 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7456 if test -n "$DOT"; then
7457 { echo "$as_me:$LINENO: result: $DOT" >&5
7458 echo "${ECHO_T}$DOT" >&6; }
7460 { echo "$as_me:$LINENO: result: no" >&5
7461 echo "${ECHO_T}no" >&6; }
7465 if test "$DOT" != "echo dot" ; then
7467 cat >>confdefs.h <<\_ACEOF
7471 if test "$llvm_cv_os_type" = "MingW" ; then
7472 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7475 cat >>confdefs.h <<_ACEOF
7476 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7480 # Extract the first word of "fdp", so it can be a program name with args.
7481 set dummy fdp; ac_word=$2
7482 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7483 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7484 if test "${ac_cv_path_FDP+set}" = set; then
7485 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 test -z "$as_dir" && as_dir=.
7497 for ac_exec_ext in '' $ac_executable_extensions; do
7498 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7499 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7500 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7507 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7512 if test -n "$FDP"; then
7513 { echo "$as_me:$LINENO: result: $FDP" >&5
7514 echo "${ECHO_T}$FDP" >&6; }
7516 { echo "$as_me:$LINENO: result: no" >&5
7517 echo "${ECHO_T}no" >&6; }
7521 if test "$FDP" != "echo fdp" ; then
7523 cat >>confdefs.h <<\_ACEOF
7527 if test "$llvm_cv_os_type" = "MingW" ; then
7528 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7531 cat >>confdefs.h <<_ACEOF
7532 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7536 # Extract the first word of "neato", so it can be a program name with args.
7537 set dummy neato; ac_word=$2
7538 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7539 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7540 if test "${ac_cv_path_NEATO+set}" = set; then
7541 echo $ECHO_N "(cached) $ECHO_C" >&6
7545 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7552 test -z "$as_dir" && as_dir=.
7553 for ac_exec_ext in '' $ac_executable_extensions; do
7554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7555 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7563 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7567 NEATO=$ac_cv_path_NEATO
7568 if test -n "$NEATO"; then
7569 { echo "$as_me:$LINENO: result: $NEATO" >&5
7570 echo "${ECHO_T}$NEATO" >&6; }
7572 { echo "$as_me:$LINENO: result: no" >&5
7573 echo "${ECHO_T}no" >&6; }
7577 if test "$NEATO" != "echo neato" ; then
7579 cat >>confdefs.h <<\_ACEOF
7580 #define HAVE_NEATO 1
7583 if test "$llvm_cv_os_type" = "MingW" ; then
7584 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7587 cat >>confdefs.h <<_ACEOF
7588 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7592 # Extract the first word of "twopi", so it can be a program name with args.
7593 set dummy twopi; ac_word=$2
7594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7596 if test "${ac_cv_path_TWOPI+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7608 test -z "$as_dir" && as_dir=.
7609 for ac_exec_ext in '' $ac_executable_extensions; do
7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7611 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7619 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7623 TWOPI=$ac_cv_path_TWOPI
7624 if test -n "$TWOPI"; then
7625 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7626 echo "${ECHO_T}$TWOPI" >&6; }
7628 { echo "$as_me:$LINENO: result: no" >&5
7629 echo "${ECHO_T}no" >&6; }
7633 if test "$TWOPI" != "echo twopi" ; then
7635 cat >>confdefs.h <<\_ACEOF
7636 #define HAVE_TWOPI 1
7639 if test "$llvm_cv_os_type" = "MingW" ; then
7640 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7643 cat >>confdefs.h <<_ACEOF
7644 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7648 # Extract the first word of "circo", so it can be a program name with args.
7649 set dummy circo; ac_word=$2
7650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7652 if test "${ac_cv_path_CIRCO+set}" = set; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7657 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7664 test -z "$as_dir" && as_dir=.
7665 for ac_exec_ext in '' $ac_executable_extensions; do
7666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7667 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7675 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7679 CIRCO=$ac_cv_path_CIRCO
7680 if test -n "$CIRCO"; then
7681 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7682 echo "${ECHO_T}$CIRCO" >&6; }
7684 { echo "$as_me:$LINENO: result: no" >&5
7685 echo "${ECHO_T}no" >&6; }
7689 if test "$CIRCO" != "echo circo" ; then
7691 cat >>confdefs.h <<\_ACEOF
7692 #define HAVE_CIRCO 1
7695 if test "$llvm_cv_os_type" = "MingW" ; then
7696 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7699 cat >>confdefs.h <<_ACEOF
7700 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7704 for ac_prog in gv gsview32
7706 # Extract the first word of "$ac_prog", so it can be a program name with args.
7707 set dummy $ac_prog; ac_word=$2
7708 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7709 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7710 if test "${ac_cv_path_GV+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7715 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 test -z "$as_dir" && as_dir=.
7723 for ac_exec_ext in '' $ac_executable_extensions; do
7724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7725 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7737 if test -n "$GV"; then
7738 { echo "$as_me:$LINENO: result: $GV" >&5
7739 echo "${ECHO_T}$GV" >&6; }
7741 { echo "$as_me:$LINENO: result: no" >&5
7742 echo "${ECHO_T}no" >&6; }
7746 test -n "$GV" && break
7748 test -n "$GV" || GV="echo gv"
7750 if test "$GV" != "echo gv" ; then
7752 cat >>confdefs.h <<\_ACEOF
7756 if test "$llvm_cv_os_type" = "MingW" ; then
7757 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7760 cat >>confdefs.h <<_ACEOF
7761 #define LLVM_PATH_GV "$GV${EXEEXT}"
7765 # Extract the first word of "dotty", so it can be a program name with args.
7766 set dummy dotty; ac_word=$2
7767 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7768 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7769 if test "${ac_cv_path_DOTTY+set}" = set; then
7770 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7781 test -z "$as_dir" && as_dir=.
7782 for ac_exec_ext in '' $ac_executable_extensions; do
7783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7784 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7785 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7792 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7796 DOTTY=$ac_cv_path_DOTTY
7797 if test -n "$DOTTY"; then
7798 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7799 echo "${ECHO_T}$DOTTY" >&6; }
7801 { echo "$as_me:$LINENO: result: no" >&5
7802 echo "${ECHO_T}no" >&6; }
7806 if test "$DOTTY" != "echo dotty" ; then
7808 cat >>confdefs.h <<\_ACEOF
7809 #define HAVE_DOTTY 1
7812 if test "$llvm_cv_os_type" = "MingW" ; then
7813 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7816 cat >>confdefs.h <<_ACEOF
7817 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7823 # Extract the first word of "perl", so it can be a program name with args.
7824 set dummy perl; ac_word=$2
7825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7827 if test "${ac_cv_path_PERL+set}" = set; then
7828 echo $ECHO_N "(cached) $ECHO_C" >&6
7832 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 test -z "$as_dir" && as_dir=.
7840 for ac_exec_ext in '' $ac_executable_extensions; do
7841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7842 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7854 PERL=$ac_cv_path_PERL
7855 if test -n "$PERL"; then
7856 { echo "$as_me:$LINENO: result: $PERL" >&5
7857 echo "${ECHO_T}$PERL" >&6; }
7859 { echo "$as_me:$LINENO: result: no" >&5
7860 echo "${ECHO_T}no" >&6; }
7864 if test "$PERL" != "none"; then
7865 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7866 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7867 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7868 { echo "$as_me:$LINENO: result: yes" >&5
7869 echo "${ECHO_T}yes" >&6; }
7872 { echo "$as_me:$LINENO: result: not found" >&5
7873 echo "${ECHO_T}not found" >&6; }
7878 if test x"$PERL" = xnone; then
7881 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7882 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7883 { (exit 1); exit 1; }; }
7889 # Find a good install program. We prefer a C program (faster),
7890 # so one script is as good as another. But avoid the broken or
7891 # incompatible versions:
7892 # SysV /etc/install, /usr/sbin/install
7893 # SunOS /usr/etc/install
7894 # IRIX /sbin/install
7896 # AmigaOS /C/install, which installs bootblocks on floppy discs
7897 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7898 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7899 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7900 # OS/2's system install, which has a completely different semantic
7901 # ./install, which can be erroneously created by make from ./install.sh.
7902 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7903 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7904 if test -z "$INSTALL"; then
7905 if test "${ac_cv_path_install+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7912 test -z "$as_dir" && as_dir=.
7913 # Account for people who put trailing slashes in PATH elements.
7915 ./ | .// | /cC/* | \
7916 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7917 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7920 # OSF1 and SCO ODT 3.0 have their own names for install.
7921 # Don't use installbsd from OSF since it installs stuff as root
7923 for ac_prog in ginstall scoinst install; do
7924 for ac_exec_ext in '' $ac_executable_extensions; do
7925 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7926 if test $ac_prog = install &&
7927 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7928 # AIX install. It has an incompatible calling convention.
7930 elif test $ac_prog = install &&
7931 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7932 # program-specific install script used by HP pwplus--don't use.
7935 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7948 if test "${ac_cv_path_install+set}" = set; then
7949 INSTALL=$ac_cv_path_install
7951 # As a last resort, use the slow shell script. Don't cache a
7952 # value for INSTALL within a source directory, because that will
7953 # break other packages using the cache if that directory is
7954 # removed, or if the value is a relative name.
7955 INSTALL=$ac_install_sh
7958 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7959 echo "${ECHO_T}$INSTALL" >&6; }
7961 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7962 # It thinks the first close brace ends the variable substitution.
7963 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7965 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7967 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7970 [\\/$]* | ?:[\\/]* ) ;;
7971 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7974 # Extract the first word of "bzip2", so it can be a program name with args.
7975 set dummy bzip2; ac_word=$2
7976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7978 if test "${ac_cv_path_BZIP2+set}" = set; then
7979 echo $ECHO_N "(cached) $ECHO_C" >&6
7983 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7990 test -z "$as_dir" && as_dir=.
7991 for ac_exec_ext in '' $ac_executable_extensions; do
7992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7993 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8004 BZIP2=$ac_cv_path_BZIP2
8005 if test -n "$BZIP2"; then
8006 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8007 echo "${ECHO_T}$BZIP2" >&6; }
8009 { echo "$as_me:$LINENO: result: no" >&5
8010 echo "${ECHO_T}no" >&6; }
8014 # Extract the first word of "cat", so it can be a program name with args.
8015 set dummy cat; ac_word=$2
8016 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8017 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8018 if test "${ac_cv_path_CAT+set}" = set; then
8019 echo $ECHO_N "(cached) $ECHO_C" >&6
8023 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8030 test -z "$as_dir" && as_dir=.
8031 for ac_exec_ext in '' $ac_executable_extensions; do
8032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8033 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 if test -n "$CAT"; then
8046 { echo "$as_me:$LINENO: result: $CAT" >&5
8047 echo "${ECHO_T}$CAT" >&6; }
8049 { echo "$as_me:$LINENO: result: no" >&5
8050 echo "${ECHO_T}no" >&6; }
8054 # Extract the first word of "doxygen", so it can be a program name with args.
8055 set dummy doxygen; ac_word=$2
8056 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8057 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8058 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8059 echo $ECHO_N "(cached) $ECHO_C" >&6
8063 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070 test -z "$as_dir" && as_dir=.
8071 for ac_exec_ext in '' $ac_executable_extensions; do
8072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8073 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8084 DOXYGEN=$ac_cv_path_DOXYGEN
8085 if test -n "$DOXYGEN"; then
8086 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8087 echo "${ECHO_T}$DOXYGEN" >&6; }
8089 { echo "$as_me:$LINENO: result: no" >&5
8090 echo "${ECHO_T}no" >&6; }
8094 # Extract the first word of "groff", so it can be a program name with args.
8095 set dummy groff; ac_word=$2
8096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8098 if test "${ac_cv_path_GROFF+set}" = set; then
8099 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8110 test -z "$as_dir" && as_dir=.
8111 for ac_exec_ext in '' $ac_executable_extensions; do
8112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8113 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124 GROFF=$ac_cv_path_GROFF
8125 if test -n "$GROFF"; then
8126 { echo "$as_me:$LINENO: result: $GROFF" >&5
8127 echo "${ECHO_T}$GROFF" >&6; }
8129 { echo "$as_me:$LINENO: result: no" >&5
8130 echo "${ECHO_T}no" >&6; }
8134 # Extract the first word of "gzip", so it can be a program name with args.
8135 set dummy gzip; ac_word=$2
8136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8138 if test "${ac_cv_path_GZIP+set}" = set; then
8139 echo $ECHO_N "(cached) $ECHO_C" >&6
8143 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8150 test -z "$as_dir" && as_dir=.
8151 for ac_exec_ext in '' $ac_executable_extensions; do
8152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8153 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8164 GZIP=$ac_cv_path_GZIP
8165 if test -n "$GZIP"; then
8166 { echo "$as_me:$LINENO: result: $GZIP" >&5
8167 echo "${ECHO_T}$GZIP" >&6; }
8169 { echo "$as_me:$LINENO: result: no" >&5
8170 echo "${ECHO_T}no" >&6; }
8174 # Extract the first word of "pod2html", so it can be a program name with args.
8175 set dummy pod2html; ac_word=$2
8176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8178 if test "${ac_cv_path_POD2HTML+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8183 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 test -z "$as_dir" && as_dir=.
8191 for ac_exec_ext in '' $ac_executable_extensions; do
8192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8193 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8204 POD2HTML=$ac_cv_path_POD2HTML
8205 if test -n "$POD2HTML"; then
8206 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8207 echo "${ECHO_T}$POD2HTML" >&6; }
8209 { echo "$as_me:$LINENO: result: no" >&5
8210 echo "${ECHO_T}no" >&6; }
8214 # Extract the first word of "pod2man", so it can be a program name with args.
8215 set dummy pod2man; ac_word=$2
8216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8218 if test "${ac_cv_path_POD2MAN+set}" = set; then
8219 echo $ECHO_N "(cached) $ECHO_C" >&6
8223 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir=.
8231 for ac_exec_ext in '' $ac_executable_extensions; do
8232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8233 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 POD2MAN=$ac_cv_path_POD2MAN
8245 if test -n "$POD2MAN"; then
8246 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8247 echo "${ECHO_T}$POD2MAN" >&6; }
8249 { echo "$as_me:$LINENO: result: no" >&5
8250 echo "${ECHO_T}no" >&6; }
8254 # Extract the first word of "pdfroff", so it can be a program name with args.
8255 set dummy pdfroff; ac_word=$2
8256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8258 if test "${ac_cv_path_PDFROFF+set}" = set; then
8259 echo $ECHO_N "(cached) $ECHO_C" >&6
8263 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8270 test -z "$as_dir" && as_dir=.
8271 for ac_exec_ext in '' $ac_executable_extensions; do
8272 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8273 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8274 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284 PDFROFF=$ac_cv_path_PDFROFF
8285 if test -n "$PDFROFF"; then
8286 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8287 echo "${ECHO_T}$PDFROFF" >&6; }
8289 { echo "$as_me:$LINENO: result: no" >&5
8290 echo "${ECHO_T}no" >&6; }
8294 # Extract the first word of "runtest", so it can be a program name with args.
8295 set dummy runtest; 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_RUNTEST+set}" = set; then
8299 echo $ECHO_N "(cached) $ECHO_C" >&6
8303 ac_cv_path_RUNTEST="$RUNTEST" # 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_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8314 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8324 RUNTEST=$ac_cv_path_RUNTEST
8325 if test -n "$RUNTEST"; then
8326 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8327 echo "${ECHO_T}$RUNTEST" >&6; }
8329 { echo "$as_me:$LINENO: result: no" >&5
8330 echo "${ECHO_T}no" >&6; }
8336 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8337 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8339 # Check whether --with-tclinclude was given.
8340 if test "${with_tclinclude+set}" = set; then
8341 withval=$with_tclinclude; with_tclinclude=${withval}
8346 if test "${ac_cv_path_tclsh+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8350 if test x"${with_tclinclude}" != x ; then
8351 if test -f ${with_tclinclude}/tclsh ; then
8352 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8353 elif test -f ${with_tclinclude}/src/tclsh ; then
8354 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8356 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8357 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8358 { (exit 1); exit 1; }; }
8364 if test x"${ac_cv_path_tclsh}" = x ; then
8365 { echo "$as_me:$LINENO: result: none" >&5
8366 echo "${ECHO_T}none" >&6; }
8367 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
8369 # Extract the first word of "$ac_prog", so it can be a program name with args.
8370 set dummy $ac_prog; ac_word=$2
8371 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8372 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8373 if test "${ac_cv_path_TCLSH+set}" = set; then
8374 echo $ECHO_N "(cached) $ECHO_C" >&6
8378 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8385 test -z "$as_dir" && as_dir=.
8386 for ac_exec_ext in '' $ac_executable_extensions; do
8387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8388 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 TCLSH=$ac_cv_path_TCLSH
8400 if test -n "$TCLSH"; then
8401 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8402 echo "${ECHO_T}$TCLSH" >&6; }
8404 { echo "$as_me:$LINENO: result: no" >&5
8405 echo "${ECHO_T}no" >&6; }
8409 test -n "$TCLSH" && break
8412 if test x"${TCLSH}" = x ; then
8413 ac_cv_path_tclsh='';
8415 ac_cv_path_tclsh="${TCLSH}";
8418 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8419 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8420 TCLSH="${ac_cv_path_tclsh}"
8424 # Extract the first word of "zip", so it can be a program name with args.
8425 set dummy zip; ac_word=$2
8426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8428 if test "${ac_cv_path_ZIP+set}" = set; then
8429 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8440 test -z "$as_dir" && as_dir=.
8441 for ac_exec_ext in '' $ac_executable_extensions; do
8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8443 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8455 if test -n "$ZIP"; then
8456 { echo "$as_me:$LINENO: result: $ZIP" >&5
8457 echo "${ECHO_T}$ZIP" >&6; }
8459 { echo "$as_me:$LINENO: result: no" >&5
8460 echo "${ECHO_T}no" >&6; }
8464 for ac_prog in ocamlc
8466 # Extract the first word of "$ac_prog", so it can be a program name with args.
8467 set dummy $ac_prog; ac_word=$2
8468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470 if test "${ac_cv_path_OCAMLC+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8485 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 OCAMLC=$ac_cv_path_OCAMLC
8497 if test -n "$OCAMLC"; then
8498 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8499 echo "${ECHO_T}$OCAMLC" >&6; }
8501 { echo "$as_me:$LINENO: result: no" >&5
8502 echo "${ECHO_T}no" >&6; }
8506 test -n "$OCAMLC" && break
8509 for ac_prog in ocamlopt
8511 # Extract the first word of "$ac_prog", so it can be a program name with args.
8512 set dummy $ac_prog; ac_word=$2
8513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8515 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527 test -z "$as_dir" && as_dir=.
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8530 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8541 OCAMLOPT=$ac_cv_path_OCAMLOPT
8542 if test -n "$OCAMLOPT"; then
8543 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8544 echo "${ECHO_T}$OCAMLOPT" >&6; }
8546 { echo "$as_me:$LINENO: result: no" >&5
8547 echo "${ECHO_T}no" >&6; }
8551 test -n "$OCAMLOPT" && break
8554 for ac_prog in ocamldep
8556 # Extract the first word of "$ac_prog", so it can be a program name with args.
8557 set dummy $ac_prog; ac_word=$2
8558 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8559 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8560 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8575 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8586 OCAMLDEP=$ac_cv_path_OCAMLDEP
8587 if test -n "$OCAMLDEP"; then
8588 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8589 echo "${ECHO_T}$OCAMLDEP" >&6; }
8591 { echo "$as_me:$LINENO: result: no" >&5
8592 echo "${ECHO_T}no" >&6; }
8596 test -n "$OCAMLDEP" && break
8599 for ac_prog in ocamldoc
8601 # Extract the first word of "$ac_prog", so it can be a program name with args.
8602 set dummy $ac_prog; ac_word=$2
8603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8605 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8606 echo $ECHO_N "(cached) $ECHO_C" >&6
8610 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8617 test -z "$as_dir" && as_dir=.
8618 for ac_exec_ext in '' $ac_executable_extensions; do
8619 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8620 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 OCAMLDOC=$ac_cv_path_OCAMLDOC
8632 if test -n "$OCAMLDOC"; then
8633 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8634 echo "${ECHO_T}$OCAMLDOC" >&6; }
8636 { echo "$as_me:$LINENO: result: no" >&5
8637 echo "${ECHO_T}no" >&6; }
8641 test -n "$OCAMLDOC" && break
8644 for ac_prog in gas as
8646 # Extract the first word of "$ac_prog", so it can be a program name with args.
8647 set dummy $ac_prog; ac_word=$2
8648 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8649 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8650 if test "${ac_cv_path_GAS+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662 test -z "$as_dir" && as_dir=.
8663 for ac_exec_ext in '' $ac_executable_extensions; do
8664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8665 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8666 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8677 if test -n "$GAS"; then
8678 { echo "$as_me:$LINENO: result: $GAS" >&5
8679 echo "${ECHO_T}$GAS" >&6; }
8681 { echo "$as_me:$LINENO: result: no" >&5
8682 echo "${ECHO_T}no" >&6; }
8686 test -n "$GAS" && break
8690 { echo "$as_me:$LINENO: checking for linker version" >&5
8691 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8692 if test "${llvm_cv_link_version+set}" = set; then
8693 echo $ECHO_N "(cached) $ECHO_C" >&6
8696 version_string="$(ld -v 2>&1 | head -1)"
8699 if (echo "$version_string" | grep -q "ld64"); then
8700 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8702 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8706 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8707 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8709 cat >>confdefs.h <<_ACEOF
8710 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8715 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8716 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8717 if test "${llvm_cv_link_use_r+set}" = set; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 ac_cpp='$CPP $CPPFLAGS'
8722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8727 CFLAGS="$CFLAGS -Wl,-R."
8728 cat >conftest.$ac_ext <<_ACEOF
8731 cat confdefs.h >>conftest.$ac_ext
8732 cat >>conftest.$ac_ext <<_ACEOF
8733 /* end confdefs.h. */
8743 rm -f conftest.$ac_objext conftest$ac_exeext
8744 if { (ac_try="$ac_link"
8746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8747 *) ac_try_echo=$ac_try;;
8749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8750 (eval "$ac_link") 2>conftest.er1
8752 grep -v '^ *+' conftest.er1 >conftest.err
8754 cat conftest.err >&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); } &&
8757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8758 { (case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_try") 2>&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; } &&
8767 { ac_try='test -s conftest$ac_exeext'
8768 { (case "(($ac_try" in
8769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8770 *) ac_try_echo=$ac_try;;
8772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8773 (eval "$ac_try") 2>&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); }; }; then
8777 llvm_cv_link_use_r=yes
8779 echo "$as_me: failed program was:" >&5
8780 sed 's/^/| /' conftest.$ac_ext >&5
8782 llvm_cv_link_use_r=no
8785 rm -f core conftest.err conftest.$ac_objext \
8786 conftest$ac_exeext conftest.$ac_ext
8789 ac_cpp='$CPP $CPPFLAGS'
8790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8796 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8797 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8798 if test "$llvm_cv_link_use_r" = yes ; then
8800 cat >>confdefs.h <<\_ACEOF
8801 #define HAVE_LINK_R 1
8807 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8808 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8809 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8810 echo $ECHO_N "(cached) $ECHO_C" >&6
8813 ac_cpp='$CPP $CPPFLAGS'
8814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8819 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8820 cat >conftest.$ac_ext <<_ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8835 rm -f conftest.$ac_objext conftest$ac_exeext
8836 if { (ac_try="$ac_link"
8838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8839 *) ac_try_echo=$ac_try;;
8841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8842 (eval "$ac_link") 2>conftest.er1
8844 grep -v '^ *+' conftest.er1 >conftest.err
8846 cat conftest.err >&5
8847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848 (exit $ac_status); } &&
8849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8850 { (case "(($ac_try" in
8851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8852 *) ac_try_echo=$ac_try;;
8854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8855 (eval "$ac_try") 2>&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); }; } &&
8859 { ac_try='test -s conftest$ac_exeext'
8860 { (case "(($ac_try" in
8861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8862 *) ac_try_echo=$ac_try;;
8864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8865 (eval "$ac_try") 2>&5
8867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8868 (exit $ac_status); }; }; then
8869 llvm_cv_link_use_export_dynamic=yes
8871 echo "$as_me: failed program was:" >&5
8872 sed 's/^/| /' conftest.$ac_ext >&5
8874 llvm_cv_link_use_export_dynamic=no
8877 rm -f core conftest.err conftest.$ac_objext \
8878 conftest$ac_exeext conftest.$ac_ext
8881 ac_cpp='$CPP $CPPFLAGS'
8882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8888 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8889 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8890 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8892 cat >>confdefs.h <<\_ACEOF
8893 #define HAVE_LINK_EXPORT_DYNAMIC 1
8899 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8900 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8901 if test "${llvm_cv_link_use_version_script+set}" = set; then
8902 echo $ECHO_N "(cached) $ECHO_C" >&6
8905 ac_cpp='$CPP $CPPFLAGS'
8906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8912 # The following code is from the autoconf manual,
8913 # "11.13: Limitations of Usual Tools".
8914 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8915 # Use mktemp if possible; otherwise fall back on mkdir,
8916 # with $RANDOM to make collisions less likely.
8920 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8922 test -n "$tmp" && test -d "$tmp"
8924 tmp=$TMPDIR/foo$$-$RANDOM
8925 (umask 077 && mkdir "$tmp")
8928 echo "{" > "$tmp/export.map"
8929 echo " global: main;" >> "$tmp/export.map"
8930 echo " local: *;" >> "$tmp/export.map"
8931 echo "};" >> "$tmp/export.map"
8933 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
8934 cat >conftest.$ac_ext <<_ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8949 rm -f conftest.$ac_objext conftest$ac_exeext
8950 if { (ac_try="$ac_link"
8952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_link") 2>conftest.er1
8958 grep -v '^ *+' conftest.er1 >conftest.err
8960 cat conftest.err >&5
8961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8962 (exit $ac_status); } &&
8963 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8964 { (case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_try") 2>&5
8971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8972 (exit $ac_status); }; } &&
8973 { ac_try='test -s conftest$ac_exeext'
8974 { (case "(($ac_try" in
8975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8976 *) ac_try_echo=$ac_try;;
8978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8979 (eval "$ac_try") 2>&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); }; }; then
8983 llvm_cv_link_use_version_script=yes
8985 echo "$as_me: failed program was:" >&5
8986 sed 's/^/| /' conftest.$ac_ext >&5
8988 llvm_cv_link_use_version_script=no
8991 rm -f core conftest.err conftest.$ac_objext \
8992 conftest$ac_exeext conftest.$ac_ext
8993 rm "$tmp/export.map"
8997 ac_cpp='$CPP $CPPFLAGS'
8998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9004 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9005 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9006 if test "$llvm_cv_link_use_version_script" = yes ; then
9007 HAVE_LINK_VERSION_SCRIPT=1
9014 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9015 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9016 if test "${ac_cv_c_const+set}" = set; then
9017 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 cat >conftest.$ac_ext <<_ACEOF
9022 cat confdefs.h >>conftest.$ac_ext
9023 cat >>conftest.$ac_ext <<_ACEOF
9024 /* end confdefs.h. */
9029 /* FIXME: Include the comments suggested by Paul. */
9031 /* Ultrix mips cc rejects this. */
9032 typedef int charset[2];
9034 /* SunOS 4.1.1 cc rejects this. */
9035 char const *const *ccp;
9037 /* NEC SVR4.0.2 mips cc rejects this. */
9038 struct point {int x, y;};
9039 static struct point const zero = {0,0};
9040 /* AIX XL C 1.02.0.0 rejects this.
9041 It does not let you subtract one const X* pointer from another in
9042 an arm of an if-expression whose if-part is not a constant
9044 const char *g = "string";
9045 ccp = &g + (g ? g-g : 0);
9046 /* HPUX 7.0 cc rejects these. */
9049 ccp = (char const *const *) p;
9050 { /* SCO 3.2v4 cc rejects this. */
9052 char const *s = 0 ? (char *) 0 : (char const *) 0;
9057 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9059 const int *foo = &x[0];
9062 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9063 typedef const int *iptr;
9067 { /* AIX XL C 1.02.0.0 rejects this saying
9068 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9069 struct s { int j; const int *ap[3]; };
9070 struct s *b; b->j = 5;
9072 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9076 return !x[0] && !zero.x;
9083 rm -f conftest.$ac_objext
9084 if { (ac_try="$ac_compile"
9086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9087 *) ac_try_echo=$ac_try;;
9089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9090 (eval "$ac_compile") 2>conftest.er1
9092 grep -v '^ *+' conftest.er1 >conftest.err
9094 cat conftest.err >&5
9095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9096 (exit $ac_status); } &&
9097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9098 { (case "(($ac_try" in
9099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9100 *) ac_try_echo=$ac_try;;
9102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9103 (eval "$ac_try") 2>&5
9105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9106 (exit $ac_status); }; } &&
9107 { ac_try='test -s conftest.$ac_objext'
9108 { (case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_try") 2>&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); }; }; then
9119 echo "$as_me: failed program was:" >&5
9120 sed 's/^/| /' conftest.$ac_ext >&5
9125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9127 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9128 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9129 if test $ac_cv_c_const = no; then
9131 cat >>confdefs.h <<\_ACEOF
9143 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9144 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9145 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9146 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9150 cat >conftest.$ac_ext <<_ACEOF
9153 cat confdefs.h >>conftest.$ac_ext
9154 cat >>conftest.$ac_ext <<_ACEOF
9155 /* end confdefs.h. */
9156 #include <sys/types.h>
9168 rm -f conftest.$ac_objext
9169 if { (ac_try="$ac_compile"
9171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172 *) ac_try_echo=$ac_try;;
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175 (eval "$ac_compile") 2>conftest.er1
9177 grep -v '^ *+' conftest.er1 >conftest.err
9179 cat conftest.err >&5
9180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9181 (exit $ac_status); } &&
9182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
9192 { ac_try='test -s conftest.$ac_objext'
9193 { (case "(($ac_try" in
9194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9195 *) ac_try_echo=$ac_try;;
9197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9198 (eval "$ac_try") 2>&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); }; }; then
9202 eval "$as_ac_Header=yes"
9204 echo "$as_me: failed program was:" >&5
9205 sed 's/^/| /' conftest.$ac_ext >&5
9207 eval "$as_ac_Header=no"
9210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9212 ac_res=`eval echo '${'$as_ac_Header'}'`
9213 { echo "$as_me:$LINENO: result: $ac_res" >&5
9214 echo "${ECHO_T}$ac_res" >&6; }
9215 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9216 cat >>confdefs.h <<_ACEOF
9217 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9220 ac_header_dirent=$ac_hdr; break
9224 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9225 if test $ac_header_dirent = dirent.h; then
9226 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9227 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9228 if test "${ac_cv_search_opendir+set}" = set; then
9229 echo $ECHO_N "(cached) $ECHO_C" >&6
9231 ac_func_search_save_LIBS=$LIBS
9232 cat >conftest.$ac_ext <<_ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9239 /* Override any GCC internal prototype to avoid an error.
9240 Use char because int might match the return type of a GCC
9241 builtin and then its argument prototype would still apply. */
9254 for ac_lib in '' dir; do
9255 if test -z "$ac_lib"; then
9256 ac_res="none required"
9259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9261 rm -f conftest.$ac_objext conftest$ac_exeext
9262 if { (ac_try="$ac_link"
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_link") 2>conftest.er1
9270 grep -v '^ *+' conftest.er1 >conftest.err
9272 cat conftest.err >&5
9273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9274 (exit $ac_status); } &&
9275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9276 { (case "(($ac_try" in
9277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9278 *) ac_try_echo=$ac_try;;
9280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9281 (eval "$ac_try") 2>&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; } &&
9285 { ac_try='test -s conftest$ac_exeext'
9286 { (case "(($ac_try" in
9287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9288 *) ac_try_echo=$ac_try;;
9290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9291 (eval "$ac_try") 2>&5
9293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9294 (exit $ac_status); }; }; then
9295 ac_cv_search_opendir=$ac_res
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9303 rm -f core conftest.err conftest.$ac_objext \
9305 if test "${ac_cv_search_opendir+set}" = set; then
9309 if test "${ac_cv_search_opendir+set}" = set; then
9312 ac_cv_search_opendir=no
9315 LIBS=$ac_func_search_save_LIBS
9317 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9318 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9319 ac_res=$ac_cv_search_opendir
9320 if test "$ac_res" != no; then
9321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9326 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9327 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9328 if test "${ac_cv_search_opendir+set}" = set; then
9329 echo $ECHO_N "(cached) $ECHO_C" >&6
9331 ac_func_search_save_LIBS=$LIBS
9332 cat >conftest.$ac_ext <<_ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9339 /* Override any GCC internal prototype to avoid an error.
9340 Use char because int might match the return type of a GCC
9341 builtin and then its argument prototype would still apply. */
9354 for ac_lib in '' x; do
9355 if test -z "$ac_lib"; then
9356 ac_res="none required"
9359 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9361 rm -f conftest.$ac_objext conftest$ac_exeext
9362 if { (ac_try="$ac_link"
9364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9365 *) ac_try_echo=$ac_try;;
9367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9368 (eval "$ac_link") 2>conftest.er1
9370 grep -v '^ *+' conftest.er1 >conftest.err
9372 cat conftest.err >&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); } &&
9375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9376 { (case "(($ac_try" in
9377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_try") 2>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; } &&
9385 { ac_try='test -s conftest$ac_exeext'
9386 { (case "(($ac_try" in
9387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9388 *) ac_try_echo=$ac_try;;
9390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9391 (eval "$ac_try") 2>&5
9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9394 (exit $ac_status); }; }; then
9395 ac_cv_search_opendir=$ac_res
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9403 rm -f core conftest.err conftest.$ac_objext \
9405 if test "${ac_cv_search_opendir+set}" = set; then
9409 if test "${ac_cv_search_opendir+set}" = set; then
9412 ac_cv_search_opendir=no
9415 LIBS=$ac_func_search_save_LIBS
9417 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9418 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9419 ac_res=$ac_cv_search_opendir
9420 if test "$ac_res" != no; then
9421 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9428 for ac_header in dlfcn.h
9430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 ac_res=`eval echo '${'$as_ac_Header'}'`
9438 { echo "$as_me:$LINENO: result: $ac_res" >&5
9439 echo "${ECHO_T}$ac_res" >&6; }
9441 # Is the header compilable?
9442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9444 cat >conftest.$ac_ext <<_ACEOF
9447 cat confdefs.h >>conftest.$ac_ext
9448 cat >>conftest.$ac_ext <<_ACEOF
9449 /* end confdefs.h. */
9450 $ac_includes_default
9451 #include <$ac_header>
9453 rm -f conftest.$ac_objext
9454 if { (ac_try="$ac_compile"
9456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9457 *) ac_try_echo=$ac_try;;
9459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9460 (eval "$ac_compile") 2>conftest.er1
9462 grep -v '^ *+' conftest.er1 >conftest.err
9464 cat conftest.err >&5
9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466 (exit $ac_status); } &&
9467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9468 { (case "(($ac_try" in
9469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9470 *) ac_try_echo=$ac_try;;
9472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9473 (eval "$ac_try") 2>&5
9475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9476 (exit $ac_status); }; } &&
9477 { ac_try='test -s conftest.$ac_objext'
9478 { (case "(($ac_try" in
9479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9480 *) ac_try_echo=$ac_try;;
9482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9483 (eval "$ac_try") 2>&5
9485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9486 (exit $ac_status); }; }; then
9487 ac_header_compiler=yes
9489 echo "$as_me: failed program was:" >&5
9490 sed 's/^/| /' conftest.$ac_ext >&5
9492 ac_header_compiler=no
9495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9497 echo "${ECHO_T}$ac_header_compiler" >&6; }
9499 # Is the header present?
9500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9502 cat >conftest.$ac_ext <<_ACEOF
9505 cat confdefs.h >>conftest.$ac_ext
9506 cat >>conftest.$ac_ext <<_ACEOF
9507 /* end confdefs.h. */
9508 #include <$ac_header>
9510 if { (ac_try="$ac_cpp conftest.$ac_ext"
9512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9513 *) ac_try_echo=$ac_try;;
9515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9518 grep -v '^ *+' conftest.er1 >conftest.err
9520 cat conftest.err >&5
9521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9522 (exit $ac_status); } >/dev/null; then
9523 if test -s conftest.err; then
9524 ac_cpp_err=$ac_c_preproc_warn_flag
9525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9532 if test -z "$ac_cpp_err"; then
9533 ac_header_preproc=yes
9535 echo "$as_me: failed program was:" >&5
9536 sed 's/^/| /' conftest.$ac_ext >&5
9538 ac_header_preproc=no
9541 rm -f conftest.err conftest.$ac_ext
9542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9543 echo "${ECHO_T}$ac_header_preproc" >&6; }
9545 # So? What about this header?
9546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9552 ac_header_preproc=yes
9555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9568 ## ----------------------------------- ##
9569 ## Report this to llvmbugs@cs.uiuc.edu ##
9570 ## ----------------------------------- ##
9572 ) | sed "s/^/$as_me: WARNING: /" >&2
9575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9578 echo $ECHO_N "(cached) $ECHO_C" >&6
9580 eval "$as_ac_Header=\$ac_header_preproc"
9582 ac_res=`eval echo '${'$as_ac_Header'}'`
9583 { echo "$as_me:$LINENO: result: $ac_res" >&5
9584 echo "${ECHO_T}$ac_res" >&6; }
9587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9588 cat >>confdefs.h <<_ACEOF
9589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9596 # Check whether --enable-ltdl-install was given.
9597 if test "${enable_ltdl_install+set}" = set; then
9598 enableval=$enable_ltdl_install;
9604 if test x"${enable_ltdl_install-no}" != xno; then
9606 INSTALL_LTDL_FALSE='#'
9608 INSTALL_LTDL_TRUE='#'
9614 if test x"${enable_ltdl_convenience-no}" != xno; then
9615 CONVENIENCE_LTDL_TRUE=
9616 CONVENIENCE_LTDL_FALSE='#'
9618 CONVENIENCE_LTDL_TRUE='#'
9619 CONVENIENCE_LTDL_FALSE=
9623 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9624 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9626 libname_spec='lib$name'
9634 shlibpath_overrides_runpath=unknown
9636 dynamic_linker="$host_os ld.so"
9637 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9638 if test "$GCC" = yes; then
9639 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9640 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9641 # if the path contains ";" then we assume it to be the separator
9642 # otherwise default to the standard path separator (i.e. ":") - it is
9643 # assumed that no part of a normal pathname contains ";" but that should
9644 # okay in the real world where ";" in dirpaths is itself problematic.
9645 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9647 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9650 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9652 need_lib_prefix=unknown
9653 hardcode_into_libs=no
9655 # when you set need_version to no, make sure it does not cause -set_version
9656 # flags to be left without arguments
9657 need_version=unknown
9662 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9663 shlibpath_var=LIBPATH
9665 # AIX 3 has no versioning support, so we append a major version to the name.
9666 soname_spec='${libname}${release}${shared_ext}$major'
9673 hardcode_into_libs=yes
9674 if test "$host_cpu" = ia64; then
9675 # AIX 5 supports IA64
9676 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9677 shlibpath_var=LD_LIBRARY_PATH
9679 # With GCC up to 2.95.x, collect2 would create an import file
9680 # for dependence libraries. The import file would start with
9681 # the line `#! .'. This would cause the generated library to
9682 # depend on `.', always an invalid library. This was fixed in
9683 # development snapshots of GCC prior to 3.0.
9685 aix4 | aix4.[01] | aix4.[01].*)
9686 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9688 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9695 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9696 # soname into executable. Probably we can add versioning support to
9697 # collect2, so additional links can be useful in future.
9698 if test "$aix_use_runtimelinking" = yes; then
9699 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9700 # instead of lib<name>.a to let people know that these are not
9701 # typical AIX shared libraries.
9702 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9704 # We preserve .a as extension for shared libraries through AIX4.2
9705 # and later when we are not doing run time linking.
9706 library_names_spec='${libname}${release}.a $libname.a'
9707 soname_spec='${libname}${release}${shared_ext}$major'
9709 shlibpath_var=LIBPATH
9714 library_names_spec='$libname.ixlibrary $libname.a'
9715 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9716 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'
9720 library_names_spec='${libname}${shared_ext}'
9721 dynamic_linker="$host_os ld.so"
9722 shlibpath_var=LIBRARY_PATH
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729 soname_spec='${libname}${release}${shared_ext}$major'
9730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9731 shlibpath_var=LD_LIBRARY_PATH
9732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9734 # the default ld.so.conf also contains /usr/contrib/lib and
9735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9736 # libtool to hard-code these into programs
9739 cygwin* | mingw* | pw32*)
9740 version_type=windows
9745 case $GCC,$host_os in
9746 yes,cygwin* | yes,mingw* | yes,pw32*)
9747 library_names_spec='$libname.dll.a'
9748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9749 postinstall_cmds='base_file=`basename \${file}`~
9750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9751 dldir=$destdir/`dirname \$dlpath`~
9752 test -d \$dldir || mkdir -p \$dldir~
9753 $install_prog $dir/$dlname \$dldir/$dlname~
9754 chmod a+x \$dldir/$dlname'
9755 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9756 dlpath=$dir/\$dldll~
9758 shlibpath_overrides_runpath=yes
9762 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9763 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9764 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9767 # MinGW DLLs use traditional 'lib' prefix
9768 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9769 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9770 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9771 # It is most probably a Windows format PATH printed by
9772 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9773 # path with ; separators, and with drive letters. We can handle the
9774 # drive letters (cygwin fileutils understands them), so leave them,
9775 # especially as we might pass files found there to a mingw objdump,
9776 # which wouldn't understand a cygwinified path. Ahh.
9777 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9779 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9783 # pw32 DLLs use 'pw' prefix rather than 'lib'
9784 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9790 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9793 dynamic_linker='Win32 ld.exe'
9794 # FIXME: first we should search . and the directory the executable is in
9798 darwin* | rhapsody*)
9799 dynamic_linker="$host_os dyld"
9803 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9804 soname_spec='${libname}${release}${major}$shared_ext'
9805 shlibpath_overrides_runpath=yes
9806 shlibpath_var=DYLD_LIBRARY_PATH
9807 shrext_cmds='.dylib'
9808 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9809 if test "$GCC" = yes; then
9810 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"`
9812 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9814 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
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 shlibpath_var=LD_LIBRARY_PATH
9834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9835 soname_spec='${libname}${release}${shared_ext}$major'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=no
9838 hardcode_into_libs=yes
9839 dynamic_linker='GNU ld.so'
9842 freebsd* | dragonfly*)
9843 # DragonFly does not have aout. When/if they implement a new
9844 # versioning mechanism, adjust this.
9845 if test -x /usr/bin/objformat; then
9846 objformat=`/usr/bin/objformat`
9849 freebsd[123]*) objformat=aout ;;
9853 version_type=freebsd-$objformat
9854 case $version_type in
9856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9861 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9865 shlibpath_var=LD_LIBRARY_PATH
9868 shlibpath_overrides_runpath=yes
9870 freebsd3.[01]* | freebsdelf3.[01]*)
9871 shlibpath_overrides_runpath=yes
9872 hardcode_into_libs=yes
9874 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9875 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9876 shlibpath_overrides_runpath=no
9877 hardcode_into_libs=yes
9879 freebsd*) # from 4.6 on
9880 shlibpath_overrides_runpath=yes
9881 hardcode_into_libs=yes
9890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9891 soname_spec='${libname}${release}${shared_ext}$major'
9892 shlibpath_var=LD_LIBRARY_PATH
9893 hardcode_into_libs=yes
9896 hpux9* | hpux10* | hpux11*)
9897 # Give a soname corresponding to the major version so that dld.sl refuses to
9898 # link against other versions.
9905 hardcode_into_libs=yes
9906 dynamic_linker="$host_os dld.so"
9907 shlibpath_var=LD_LIBRARY_PATH
9908 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9910 soname_spec='${libname}${release}${shared_ext}$major'
9911 if test "X$HPUX_IA64_MODE" = X32; then
9912 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9914 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9916 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9920 hardcode_into_libs=yes
9921 dynamic_linker="$host_os dld.sl"
9922 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9923 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9925 soname_spec='${libname}${release}${shared_ext}$major'
9926 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9931 dynamic_linker="$host_os dld.sl"
9932 shlibpath_var=SHLIB_PATH
9933 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9935 soname_spec='${libname}${release}${shared_ext}$major'
9938 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9939 postinstall_cmds='chmod 555 $lib'
9946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9947 soname_spec='${libname}${release}${shared_ext}$major'
9948 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9949 shlibpath_var=LD_LIBRARY_PATH
9950 shlibpath_overrides_runpath=no
9951 hardcode_into_libs=yes
9954 irix5* | irix6* | nonstopux*)
9956 nonstopux*) version_type=nonstopux ;;
9958 if test "$lt_cv_prog_gnu_ld" = yes; then
9966 soname_spec='${libname}${release}${shared_ext}$major'
9967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9969 irix5* | nonstopux*)
9973 case $LD in # libtool.m4 will add one of these switches to LD
9974 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9975 libsuff= shlibsuff= libmagic=32-bit;;
9976 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9977 libsuff=32 shlibsuff=N32 libmagic=N32;;
9978 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9979 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9980 *) libsuff= shlibsuff= libmagic=never-match;;
9984 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9985 shlibpath_overrides_runpath=no
9986 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9987 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9988 hardcode_into_libs=yes
9991 # No shared lib support for Linux oldld, aout, or coff.
9992 linux*oldld* | linux*aout* | linux*coff*)
9996 # This must be Linux ELF.
10001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10002 soname_spec='${libname}${release}${shared_ext}$major'
10003 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10004 shlibpath_var=LD_LIBRARY_PATH
10005 shlibpath_overrides_runpath=no
10006 # This implies no fast_install, which is unacceptable.
10007 # Some rework will be needed to allow for fast_install
10008 # before this can be enabled.
10009 hardcode_into_libs=yes
10011 # Append ld.so.conf contents to the search path
10012 if test -f /etc/ld.so.conf; then
10013 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' ' '`
10014 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10017 # We used to test for /lib/ld.so.1 and disable shared libraries on
10018 # powerpc, because MkLinux only supported shared libraries with the
10019 # GNU dynamic linker. Since this was broken with cross compilers,
10020 # most powerpc-linux boxes support dynamic linking these days and
10021 # people can always --disable-shared, the test was removed, and we
10022 # assume the GNU/Linux dynamic linker is in use.
10023 dynamic_linker='GNU/Linux ld.so'
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10031 soname_spec='${libname}${release}${shared_ext}$major'
10032 shlibpath_var=LD_LIBRARY_PATH
10033 shlibpath_overrides_runpath=no
10034 hardcode_into_libs=yes
10035 dynamic_linker='GNU ld.so'
10042 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10044 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10045 dynamic_linker='NetBSD (a.out) ld.so'
10047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10048 soname_spec='${libname}${release}${shared_ext}$major'
10049 dynamic_linker='NetBSD ld.elf_so'
10051 shlibpath_var=LD_LIBRARY_PATH
10052 shlibpath_overrides_runpath=yes
10053 hardcode_into_libs=yes
10058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10059 shlibpath_var=LD_LIBRARY_PATH
10060 shlibpath_overrides_runpath=yes
10067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10068 soname_spec='${libname}${release}${shared_ext}$major'
10069 shlibpath_var=LD_LIBRARY_PATH
10070 shlibpath_overrides_runpath=yes
10075 sys_lib_dlsearch_path_spec="/usr/lib"
10077 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10079 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10080 *) need_version=no ;;
10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10083 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10084 shlibpath_var=LD_LIBRARY_PATH
10085 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10087 openbsd2.[89] | openbsd2.[89].*)
10088 shlibpath_overrides_runpath=no
10091 shlibpath_overrides_runpath=yes
10095 shlibpath_overrides_runpath=yes
10100 libname_spec='$name'
10103 library_names_spec='$libname${shared_ext} $libname.a'
10104 dynamic_linker='OS/2 ld.exe'
10105 shlibpath_var=LIBPATH
10108 osf3* | osf4* | osf5*)
10112 soname_spec='${libname}${release}${shared_ext}$major'
10113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10114 shlibpath_var=LD_LIBRARY_PATH
10115 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10116 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10124 soname_spec='${libname}${release}${shared_ext}$major'
10125 shlibpath_var=LD_LIBRARY_PATH
10126 shlibpath_overrides_runpath=yes
10127 hardcode_into_libs=yes
10128 # ldd complains unless libraries are executable
10129 postinstall_cmds='chmod +x $lib'
10134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10135 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10136 shlibpath_var=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath=yes
10138 if test "$with_gnu_ld" = yes; then
10146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10147 soname_spec='${libname}${release}${shared_ext}$major'
10148 shlibpath_var=LD_LIBRARY_PATH
10149 case $host_vendor in
10151 shlibpath_overrides_runpath=no
10153 export_dynamic_flag_spec='${wl}-Blargedynsym'
10154 runpath_var=LD_RUN_PATH
10162 shlibpath_overrides_runpath=no
10163 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10169 if test -d /usr/nec ;then
10171 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10172 soname_spec='$libname${shared_ext}.$major'
10173 shlibpath_var=LD_LIBRARY_PATH
10177 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10178 version_type=freebsd-elf
10181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10182 soname_spec='${libname}${release}${shared_ext}$major'
10183 shlibpath_var=LD_LIBRARY_PATH
10184 hardcode_into_libs=yes
10185 if test "$with_gnu_ld" = yes; then
10186 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10187 shlibpath_overrides_runpath=no
10189 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10190 shlibpath_overrides_runpath=yes
10193 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10197 sys_lib_dlsearch_path_spec='/usr/lib'
10202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 soname_spec='${libname}${release}${shared_ext}$major'
10204 shlibpath_var=LD_LIBRARY_PATH
10211 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10212 echo "${ECHO_T}$dynamic_linker" >&6; }
10213 test "$dynamic_linker" = no && can_build_shared=no
10215 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10216 if test "$GCC" = yes; then
10217 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10221 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10222 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10223 if test "${libltdl_cv_shlibext+set}" = set; then
10224 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 eval libltdl_cv_shlibext=$shrext_cmds
10231 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10232 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10233 if test -n "$libltdl_cv_shlibext"; then
10235 cat >>confdefs.h <<_ACEOF
10236 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10242 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10243 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10244 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10245 echo $ECHO_N "(cached) $ECHO_C" >&6
10247 libltdl_cv_shlibpath_var="$shlibpath_var"
10249 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10250 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10251 if test -n "$libltdl_cv_shlibpath_var"; then
10253 cat >>confdefs.h <<_ACEOF
10254 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10260 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10261 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10262 if test "${libltdl_cv_sys_search_path+set}" = set; then
10263 echo $ECHO_N "(cached) $ECHO_C" >&6
10265 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10267 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10268 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10269 if test -n "$libltdl_cv_sys_search_path"; then
10271 for dir in $libltdl_cv_sys_search_path; do
10272 if test -z "$sys_search_path"; then
10273 sys_search_path="$dir"
10275 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10279 cat >>confdefs.h <<_ACEOF
10280 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10285 { echo "$as_me:$LINENO: checking for objdir" >&5
10286 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10287 if test "${libltdl_cv_objdir+set}" = set; then
10288 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 libltdl_cv_objdir="$objdir"
10291 if test -n "$objdir"; then
10294 rm -f .libs 2>/dev/null
10295 mkdir .libs 2>/dev/null
10296 if test -d .libs; then
10297 libltdl_cv_objdir=.libs
10299 # MS-DOS does not allow filenames that begin with a dot.
10300 libltdl_cv_objdir=_libs
10302 rmdir .libs 2>/dev/null
10306 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10307 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10309 cat >>confdefs.h <<_ACEOF
10310 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10318 # Check for command to grab the raw symbol name followed by C symbol from nm.
10319 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10320 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10321 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10322 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 # These are sane defaults that work on at least a few old systems.
10326 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10328 # Character class describing NM global symbol codes.
10329 symcode='[BCDEGRST]'
10331 # Regexp to match symbols that can be accessed directly from C.
10332 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10334 # Transform an extracted symbol line into a proper C declaration
10335 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10337 # Transform an extracted symbol line into symbol name and symbol address
10338 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10340 # Define system-specific variables.
10345 cygwin* | mingw* | pw32*)
10346 symcode='[ABCDGISTW]'
10348 hpux*) # Its linker distinguishes data from code symbols
10349 if test "$host_cpu" = ia64; then
10350 symcode='[ABCDEGRST]'
10352 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10353 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
10356 if test "$host_cpu" = ia64; then
10357 symcode='[ABCDGIRSTW]'
10358 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10359 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'"
10362 irix* | nonstopux*)
10363 symcode='[BCDEGRST]'
10366 symcode='[BCDEGQRST]'
10377 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10385 # Handle CRLF in mingw tool chain
10389 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10393 # If we're using GNU nm, then use its standard symbol codes.
10394 case `$NM -V 2>&1` in
10395 *GNU* | *'with BFD'*)
10396 symcode='[ABCDGIRSTW]' ;;
10399 # Try without a prefix undercore, then with it.
10400 for ac_symprfx in "" "_"; do
10402 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10403 symxfrm="\\1 $ac_symprfx\\2 \\2"
10405 # Write the raw and C identifiers.
10406 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10408 # Check to see that the pipe works correctly.
10412 cat > conftest.$ac_ext <<EOF
10417 void nm_test_func(){}
10421 int main(){nm_test_var='a';nm_test_func();return(0);}
10424 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10425 (eval $ac_compile) 2>&5
10427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10428 (exit $ac_status); }; then
10429 # Now try to grab the symbols.
10431 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10432 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } && test -s "$nlist"; then
10436 # Try sorting and uniquifying the output.
10437 if sort "$nlist" | uniq > "$nlist"T; then
10438 mv -f "$nlist"T "$nlist"
10443 # Make sure that we snagged all the symbols we need.
10444 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10445 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10446 cat <<EOF > conftest.$ac_ext
10452 # Now generate the symbol file.
10453 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10455 cat <<EOF >> conftest.$ac_ext
10456 #if defined (__STDC__) && __STDC__
10457 # define lt_ptr_t void *
10459 # define lt_ptr_t char *
10463 /* The mapping between symbol names and symbols. */
10468 lt_preloaded_symbols[] =
10471 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10472 cat <<\EOF >> conftest.$ac_ext
10480 # Now try linking the two files.
10481 mv conftest.$ac_objext conftstm.$ac_objext
10482 lt_save_LIBS="$LIBS"
10483 lt_save_CFLAGS="$CFLAGS"
10484 LIBS="conftstm.$ac_objext"
10485 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10486 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10487 (eval $ac_link) 2>&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10493 LIBS="$lt_save_LIBS"
10494 CFLAGS="$lt_save_CFLAGS"
10496 echo "cannot find nm_test_func in $nlist" >&5
10499 echo "cannot find nm_test_var in $nlist" >&5
10502 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10505 echo "$progname: failed program was:" >&5
10506 cat conftest.$ac_ext >&5
10508 rm -f conftest* conftst*
10510 # Do not use the global_symbol_pipe unless it works.
10511 if test "$pipe_works" = yes; then
10514 lt_cv_sys_global_symbol_pipe=
10520 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10521 lt_cv_sys_global_symbol_to_cdecl=
10523 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10524 { echo "$as_me:$LINENO: result: failed" >&5
10525 echo "${ECHO_T}failed" >&6; }
10527 { echo "$as_me:$LINENO: result: ok" >&5
10528 echo "${ECHO_T}ok" >&6; }
10532 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10533 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10534 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10535 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10538 libltdl_cv_preloaded_symbols=yes
10540 libltdl_cv_preloaded_symbols=no
10544 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10545 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10546 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10548 cat >>confdefs.h <<\_ACEOF
10549 #define HAVE_PRELOADED_SYMBOLS 1
10557 ac_cpp='$CPP $CPPFLAGS'
10558 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10559 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10560 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10563 { echo "$as_me:$LINENO: checking for shl_load" >&5
10564 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10565 if test "${ac_cv_func_shl_load+set}" = set; then
10566 echo $ECHO_N "(cached) $ECHO_C" >&6
10568 cat >conftest.$ac_ext <<_ACEOF
10571 cat confdefs.h >>conftest.$ac_ext
10572 cat >>conftest.$ac_ext <<_ACEOF
10573 /* end confdefs.h. */
10574 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10575 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10576 #define shl_load innocuous_shl_load
10578 /* System header to define __stub macros and hopefully few prototypes,
10579 which can conflict with char shl_load (); below.
10580 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10581 <limits.h> exists even on freestanding compilers. */
10584 # include <limits.h>
10586 # include <assert.h>
10591 /* Override any GCC internal prototype to avoid an error.
10592 Use char because int might match the return type of a GCC
10593 builtin and then its argument prototype would still apply. */
10598 /* The GNU C library defines this for functions which it implements
10599 to always fail with ENOSYS. Some functions are actually named
10600 something starting with __ and the normal name is an alias. */
10601 #if defined __stub_shl_load || defined __stub___shl_load
10608 return shl_load ();
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_link") 2>conftest.er1
10622 grep -v '^ *+' conftest.er1 >conftest.err
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } &&
10627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10628 { (case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_try") 2>&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); }; } &&
10637 { ac_try='test -s conftest$ac_exeext'
10638 { (case "(($ac_try" in
10639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10640 *) ac_try_echo=$ac_try;;
10642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10643 (eval "$ac_try") 2>&5
10645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10646 (exit $ac_status); }; }; then
10647 ac_cv_func_shl_load=yes
10649 echo "$as_me: failed program was:" >&5
10650 sed 's/^/| /' conftest.$ac_ext >&5
10652 ac_cv_func_shl_load=no
10655 rm -f core conftest.err conftest.$ac_objext \
10656 conftest$ac_exeext conftest.$ac_ext
10658 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10659 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10660 if test $ac_cv_func_shl_load = yes; then
10662 cat >>confdefs.h <<\_ACEOF
10663 #define HAVE_SHL_LOAD 1
10667 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10668 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10669 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10670 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 ac_check_lib_save_LIBS=$LIBS
10674 cat >conftest.$ac_ext <<_ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10681 /* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
10691 return shl_load ();
10696 rm -f conftest.$ac_objext conftest$ac_exeext
10697 if { (ac_try="$ac_link"
10698 case "(($ac_try" in
10699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10700 *) ac_try_echo=$ac_try;;
10702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10703 (eval "$ac_link") 2>conftest.er1
10705 grep -v '^ *+' conftest.er1 >conftest.err
10707 cat conftest.err >&5
10708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10709 (exit $ac_status); } &&
10710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10711 { (case "(($ac_try" in
10712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10713 *) ac_try_echo=$ac_try;;
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_try") 2>&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); }; } &&
10720 { ac_try='test -s conftest$ac_exeext'
10721 { (case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_try") 2>&5
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; }; then
10730 ac_cv_lib_dld_shl_load=yes
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 ac_cv_lib_dld_shl_load=no
10738 rm -f core conftest.err conftest.$ac_objext \
10739 conftest$ac_exeext conftest.$ac_ext
10740 LIBS=$ac_check_lib_save_LIBS
10742 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10743 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10744 if test $ac_cv_lib_dld_shl_load = yes; then
10746 cat >>confdefs.h <<\_ACEOF
10747 #define HAVE_SHL_LOAD 1
10750 LIBADD_DL="$LIBADD_DL -ldld"
10752 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10753 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10754 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10755 echo $ECHO_N "(cached) $ECHO_C" >&6
10757 ac_check_lib_save_LIBS=$LIBS
10759 cat >conftest.$ac_ext <<_ACEOF
10762 cat confdefs.h >>conftest.$ac_ext
10763 cat >>conftest.$ac_ext <<_ACEOF
10764 /* end confdefs.h. */
10766 /* Override any GCC internal prototype to avoid an error.
10767 Use char because int might match the return type of a GCC
10768 builtin and then its argument prototype would still apply. */
10781 rm -f conftest.$ac_objext conftest$ac_exeext
10782 if { (ac_try="$ac_link"
10783 case "(($ac_try" in
10784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785 *) ac_try_echo=$ac_try;;
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788 (eval "$ac_link") 2>conftest.er1
10790 grep -v '^ *+' conftest.er1 >conftest.err
10792 cat conftest.err >&5
10793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10794 (exit $ac_status); } &&
10795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10796 { (case "(($ac_try" in
10797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10798 *) ac_try_echo=$ac_try;;
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_try") 2>&5
10803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10804 (exit $ac_status); }; } &&
10805 { ac_try='test -s conftest$ac_exeext'
10806 { (case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_try") 2>&5
10813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10814 (exit $ac_status); }; }; then
10815 ac_cv_lib_dl_dlopen=yes
10817 echo "$as_me: failed program was:" >&5
10818 sed 's/^/| /' conftest.$ac_ext >&5
10820 ac_cv_lib_dl_dlopen=no
10823 rm -f core conftest.err conftest.$ac_objext \
10824 conftest$ac_exeext conftest.$ac_ext
10825 LIBS=$ac_check_lib_save_LIBS
10827 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10828 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10829 if test $ac_cv_lib_dl_dlopen = yes; then
10831 cat >>confdefs.h <<\_ACEOF
10832 #define HAVE_LIBDL 1
10835 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10837 cat >conftest.$ac_ext <<_ACEOF
10840 cat confdefs.h >>conftest.$ac_ext
10841 cat >>conftest.$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10844 # include <dlfcn.h>
10855 rm -f conftest.$ac_objext conftest$ac_exeext
10856 if { (ac_try="$ac_link"
10857 case "(($ac_try" in
10858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10859 *) ac_try_echo=$ac_try;;
10861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10862 (eval "$ac_link") 2>conftest.er1
10864 grep -v '^ *+' conftest.er1 >conftest.err
10866 cat conftest.err >&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); } &&
10869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; } &&
10879 { ac_try='test -s conftest$ac_exeext'
10880 { (case "(($ac_try" in
10881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10882 *) ac_try_echo=$ac_try;;
10884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10885 (eval "$ac_try") 2>&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10890 cat >>confdefs.h <<\_ACEOF
10891 #define HAVE_LIBDL 1
10893 libltdl_cv_func_dlopen="yes"
10895 echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10898 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10899 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10900 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10901 echo $ECHO_N "(cached) $ECHO_C" >&6
10903 ac_check_lib_save_LIBS=$LIBS
10904 LIBS="-lsvld $LIBS"
10905 cat >conftest.$ac_ext <<_ACEOF
10908 cat confdefs.h >>conftest.$ac_ext
10909 cat >>conftest.$ac_ext <<_ACEOF
10910 /* end confdefs.h. */
10912 /* Override any GCC internal prototype to avoid an error.
10913 Use char because int might match the return type of a GCC
10914 builtin and then its argument prototype would still apply. */
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931 *) ac_try_echo=$ac_try;;
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934 (eval "$ac_link") 2>conftest.er1
10936 grep -v '^ *+' conftest.er1 >conftest.err
10938 cat conftest.err >&5
10939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940 (exit $ac_status); } &&
10941 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942 { (case "(($ac_try" in
10943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944 *) ac_try_echo=$ac_try;;
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947 (eval "$ac_try") 2>&5
10949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950 (exit $ac_status); }; } &&
10951 { ac_try='test -s conftest$ac_exeext'
10952 { (case "(($ac_try" in
10953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954 *) ac_try_echo=$ac_try;;
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957 (eval "$ac_try") 2>&5
10959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960 (exit $ac_status); }; }; then
10961 ac_cv_lib_svld_dlopen=yes
10963 echo "$as_me: failed program was:" >&5
10964 sed 's/^/| /' conftest.$ac_ext >&5
10966 ac_cv_lib_svld_dlopen=no
10969 rm -f core conftest.err conftest.$ac_objext \
10970 conftest$ac_exeext conftest.$ac_ext
10971 LIBS=$ac_check_lib_save_LIBS
10973 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10974 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10975 if test $ac_cv_lib_svld_dlopen = yes; then
10977 cat >>confdefs.h <<\_ACEOF
10978 #define HAVE_LIBDL 1
10981 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10983 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10984 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10985 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10986 echo $ECHO_N "(cached) $ECHO_C" >&6
10988 ac_check_lib_save_LIBS=$LIBS
10990 cat >conftest.$ac_ext <<_ACEOF
10993 cat confdefs.h >>conftest.$ac_ext
10994 cat >>conftest.$ac_ext <<_ACEOF
10995 /* end confdefs.h. */
10997 /* Override any GCC internal prototype to avoid an error.
10998 Use char because int might match the return type of a GCC
10999 builtin and then its argument prototype would still apply. */
11007 return dld_link ();
11012 rm -f conftest.$ac_objext conftest$ac_exeext
11013 if { (ac_try="$ac_link"
11014 case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019 (eval "$ac_link") 2>conftest.er1
11021 grep -v '^ *+' conftest.er1 >conftest.err
11023 cat conftest.err >&5
11024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11025 (exit $ac_status); } &&
11026 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11027 { (case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_try") 2>&5
11034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11035 (exit $ac_status); }; } &&
11036 { ac_try='test -s conftest$ac_exeext'
11037 { (case "(($ac_try" in
11038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11039 *) ac_try_echo=$ac_try;;
11041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11042 (eval "$ac_try") 2>&5
11044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11045 (exit $ac_status); }; }; then
11046 ac_cv_lib_dld_dld_link=yes
11048 echo "$as_me: failed program was:" >&5
11049 sed 's/^/| /' conftest.$ac_ext >&5
11051 ac_cv_lib_dld_dld_link=no
11054 rm -f core conftest.err conftest.$ac_objext \
11055 conftest$ac_exeext conftest.$ac_ext
11056 LIBS=$ac_check_lib_save_LIBS
11058 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11059 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11060 if test $ac_cv_lib_dld_dld_link = yes; then
11062 cat >>confdefs.h <<\_ACEOF
11066 LIBADD_DL="$LIBADD_DL -ldld"
11068 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11069 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11070 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11071 echo $ECHO_N "(cached) $ECHO_C" >&6
11073 cat >conftest.$ac_ext <<_ACEOF
11076 cat confdefs.h >>conftest.$ac_ext
11077 cat >>conftest.$ac_ext <<_ACEOF
11078 /* end confdefs.h. */
11079 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11080 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11081 #define _dyld_func_lookup innocuous__dyld_func_lookup
11083 /* System header to define __stub macros and hopefully few prototypes,
11084 which can conflict with char _dyld_func_lookup (); below.
11085 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11086 <limits.h> exists even on freestanding compilers. */
11089 # include <limits.h>
11091 # include <assert.h>
11094 #undef _dyld_func_lookup
11096 /* Override any GCC internal prototype to avoid an error.
11097 Use char because int might match the return type of a GCC
11098 builtin and then its argument prototype would still apply. */
11102 char _dyld_func_lookup ();
11103 /* The GNU C library defines this for functions which it implements
11104 to always fail with ENOSYS. Some functions are actually named
11105 something starting with __ and the normal name is an alias. */
11106 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11113 return _dyld_func_lookup ();
11118 rm -f conftest.$ac_objext conftest$ac_exeext
11119 if { (ac_try="$ac_link"
11120 case "(($ac_try" in
11121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11122 *) ac_try_echo=$ac_try;;
11124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11125 (eval "$ac_link") 2>conftest.er1
11127 grep -v '^ *+' conftest.er1 >conftest.err
11129 cat conftest.err >&5
11130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11131 (exit $ac_status); } &&
11132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11133 { (case "(($ac_try" in
11134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11135 *) ac_try_echo=$ac_try;;
11137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11138 (eval "$ac_try") 2>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); }; } &&
11142 { ac_try='test -s conftest$ac_exeext'
11143 { (case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_try") 2>&5
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); }; }; then
11152 ac_cv_func__dyld_func_lookup=yes
11154 echo "$as_me: failed program was:" >&5
11155 sed 's/^/| /' conftest.$ac_ext >&5
11157 ac_cv_func__dyld_func_lookup=no
11160 rm -f core conftest.err conftest.$ac_objext \
11161 conftest$ac_exeext conftest.$ac_ext
11163 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11164 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11165 if test $ac_cv_func__dyld_func_lookup = yes; then
11167 cat >>confdefs.h <<\_ACEOF
11168 #define HAVE_DYLD 1
11182 rm -f core conftest.err conftest.$ac_objext \
11183 conftest$ac_exeext conftest.$ac_ext
11194 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11196 lt_save_LIBS="$LIBS"
11197 LIBS="$LIBS $LIBADD_DL"
11199 for ac_func in dlerror
11201 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11202 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11203 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11204 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11205 echo $ECHO_N "(cached) $ECHO_C" >&6
11207 cat >conftest.$ac_ext <<_ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11214 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11215 #define $ac_func innocuous_$ac_func
11217 /* System header to define __stub macros and hopefully few prototypes,
11218 which can conflict with char $ac_func (); below.
11219 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11220 <limits.h> exists even on freestanding compilers. */
11223 # include <limits.h>
11225 # include <assert.h>
11230 /* Override any GCC internal prototype to avoid an error.
11231 Use char because int might match the return type of a GCC
11232 builtin and then its argument prototype would still apply. */
11237 /* The GNU C library defines this for functions which it implements
11238 to always fail with ENOSYS. Some functions are actually named
11239 something starting with __ and the normal name is an alias. */
11240 #if defined __stub_$ac_func || defined __stub___$ac_func
11247 return $ac_func ();
11252 rm -f conftest.$ac_objext conftest$ac_exeext
11253 if { (ac_try="$ac_link"
11254 case "(($ac_try" in
11255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11256 *) ac_try_echo=$ac_try;;
11258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11259 (eval "$ac_link") 2>conftest.er1
11261 grep -v '^ *+' conftest.er1 >conftest.err
11263 cat conftest.err >&5
11264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11265 (exit $ac_status); } &&
11266 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11267 { (case "(($ac_try" in
11268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11269 *) ac_try_echo=$ac_try;;
11271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11272 (eval "$ac_try") 2>&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); }; } &&
11276 { ac_try='test -s conftest$ac_exeext'
11277 { (case "(($ac_try" in
11278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11279 *) ac_try_echo=$ac_try;;
11281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11282 (eval "$ac_try") 2>&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); }; }; then
11286 eval "$as_ac_var=yes"
11288 echo "$as_me: failed program was:" >&5
11289 sed 's/^/| /' conftest.$ac_ext >&5
11291 eval "$as_ac_var=no"
11294 rm -f core conftest.err conftest.$ac_objext \
11295 conftest$ac_exeext conftest.$ac_ext
11297 ac_res=`eval echo '${'$as_ac_var'}'`
11298 { echo "$as_me:$LINENO: result: $ac_res" >&5
11299 echo "${ECHO_T}$ac_res" >&6; }
11300 if test `eval echo '${'$as_ac_var'}'` = yes; then
11301 cat >>confdefs.h <<_ACEOF
11302 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11308 LIBS="$lt_save_LIBS"
11311 ac_cpp='$CPP $CPPFLAGS'
11312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11318 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11319 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11320 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11321 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 ac_cv_sys_symbol_underscore=no
11324 cat > conftest.$ac_ext <<EOF
11325 void nm_test_func(){}
11326 int main(){nm_test_func;return 0;}
11328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11329 (eval $ac_compile) 2>&5
11331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11332 (exit $ac_status); }; then
11333 # Now try to grab the symbols.
11334 ac_nlist=conftest.nm
11335 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11336 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } && test -s "$ac_nlist"; then
11340 # See whether the symbols have a leading underscore.
11341 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11342 ac_cv_sys_symbol_underscore=yes
11344 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11347 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11351 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11354 echo "configure: failed program was:" >&5
11360 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11361 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11364 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11365 if test x"$libltdl_cv_func_dlopen" = xyes ||
11366 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11367 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11368 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11369 if test "${libltdl_cv_need_uscore+set}" = set; then
11370 echo $ECHO_N "(cached) $ECHO_C" >&6
11372 libltdl_cv_need_uscore=unknown
11374 LIBS="$LIBS $LIBADD_DL"
11375 if test "$cross_compiling" = yes; then :
11376 libltdl_cv_need_uscore=cross
11378 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11379 lt_status=$lt_dlunknown
11380 cat > conftest.$ac_ext <<EOF
11381 #line 11381 "configure"
11382 #include "confdefs.h"
11391 # define LT_DLGLOBAL RTLD_GLOBAL
11394 # define LT_DLGLOBAL DL_GLOBAL
11396 # define LT_DLGLOBAL 0
11400 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11401 find out it does not work in some platform. */
11402 #ifndef LT_DLLAZY_OR_NOW
11404 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11407 # define LT_DLLAZY_OR_NOW DL_LAZY
11410 # define LT_DLLAZY_OR_NOW RTLD_NOW
11413 # define LT_DLLAZY_OR_NOW DL_NOW
11415 # define LT_DLLAZY_OR_NOW 0
11423 extern "C" void exit (int);
11426 void fnord() { int i=42;}
11429 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11430 int status = $lt_dlunknown;
11434 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11435 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11436 /* dlclose (self); */
11444 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11445 (eval $ac_link) 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11449 (./conftest; exit; ) >&5 2>/dev/null
11451 case x$lt_status in
11452 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11453 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11454 x$lt_dlunknown|x*) ;;
11457 # compilation failed
11466 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11467 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11471 if test x"$libltdl_cv_need_uscore" = xyes; then
11473 cat >>confdefs.h <<\_ACEOF
11474 #define NEED_USCORE 1
11480 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11481 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11482 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11485 # PORTME does your system automatically load deplibs for dlopen?
11486 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11487 # For now, we just catch OSes we know something about -- in the
11488 # future, we'll try test this programmatically.
11489 libltdl_cv_sys_dlopen_deplibs=unknown
11491 aix3*|aix4.1.*|aix4.2.*)
11492 # Unknown whether this is true for these versions of AIX, but
11493 # we want this `case' here to explicitly catch those versions.
11494 libltdl_cv_sys_dlopen_deplibs=unknown
11497 libltdl_cv_sys_dlopen_deplibs=yes
11500 # Assuming the user has installed a libdl from somewhere, this is true
11501 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11502 libltdl_cv_sys_dlopen_deplibs=yes
11504 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11505 # GNU and its variants, using gnu ld.so (Glibc)
11506 libltdl_cv_sys_dlopen_deplibs=yes
11509 libltdl_cv_sys_dlopen_deplibs=yes
11512 libltdl_cv_sys_dlopen_deplibs=yes
11514 irix[12345]*|irix6.[01]*)
11515 # Catch all versions of IRIX before 6.2, and indicate that we don't
11516 # know how it worked for any of those versions.
11517 libltdl_cv_sys_dlopen_deplibs=unknown
11520 # The case above catches anything before 6.2, and it's known that
11521 # at 6.2 and later dlopen does load deplibs.
11522 libltdl_cv_sys_dlopen_deplibs=yes
11525 libltdl_cv_sys_dlopen_deplibs=yes
11528 libltdl_cv_sys_dlopen_deplibs=yes
11531 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11532 # it did *not* use an RPATH in a shared library to find objects the
11533 # library depends on, so we explictly say `no'.
11534 libltdl_cv_sys_dlopen_deplibs=no
11536 osf5.0|osf5.0a|osf5.1)
11537 # dlopen *does* load deplibs and with the right loader patch applied
11538 # it even uses RPATH in a shared library to search for shared objects
11539 # that the library depends on, but there's no easy way to know if that
11540 # patch is installed. Since this is the case, all we can really
11541 # say is unknown -- it depends on the patch being installed. If
11542 # it is, this changes to `yes'. Without it, it would be `no'.
11543 libltdl_cv_sys_dlopen_deplibs=unknown
11546 # the two cases above should catch all versions of osf <= 5.1. Read
11547 # the comments above for what we know about them.
11548 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11549 # is used to find them so we can finally say `yes'.
11550 libltdl_cv_sys_dlopen_deplibs=yes
11553 libltdl_cv_sys_dlopen_deplibs=yes
11555 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11556 libltdl_cv_sys_dlopen_deplibs=yes
11561 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11562 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11563 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11565 cat >>confdefs.h <<\_ACEOF
11566 #define LTDL_DLOPEN_DEPLIBS 1
11572 for ac_header in argz.h
11574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11579 echo $ECHO_N "(cached) $ECHO_C" >&6
11581 ac_res=`eval echo '${'$as_ac_Header'}'`
11582 { echo "$as_me:$LINENO: result: $ac_res" >&5
11583 echo "${ECHO_T}$ac_res" >&6; }
11585 # Is the header compilable?
11586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11588 cat >conftest.$ac_ext <<_ACEOF
11591 cat confdefs.h >>conftest.$ac_ext
11592 cat >>conftest.$ac_ext <<_ACEOF
11593 /* end confdefs.h. */
11594 $ac_includes_default
11595 #include <$ac_header>
11597 rm -f conftest.$ac_objext
11598 if { (ac_try="$ac_compile"
11599 case "(($ac_try" in
11600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11601 *) ac_try_echo=$ac_try;;
11603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11604 (eval "$ac_compile") 2>conftest.er1
11606 grep -v '^ *+' conftest.er1 >conftest.err
11608 cat conftest.err >&5
11609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11610 (exit $ac_status); } &&
11611 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11612 { (case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_try") 2>&5
11619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11620 (exit $ac_status); }; } &&
11621 { ac_try='test -s conftest.$ac_objext'
11622 { (case "(($ac_try" in
11623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11624 *) ac_try_echo=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_try") 2>&5
11629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11630 (exit $ac_status); }; }; then
11631 ac_header_compiler=yes
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11636 ac_header_compiler=no
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11640 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11641 echo "${ECHO_T}$ac_header_compiler" >&6; }
11643 # Is the header present?
11644 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11645 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11646 cat >conftest.$ac_ext <<_ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11652 #include <$ac_header>
11654 if { (ac_try="$ac_cpp conftest.$ac_ext"
11655 case "(($ac_try" in
11656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11657 *) ac_try_echo=$ac_try;;
11659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11660 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11662 grep -v '^ *+' conftest.er1 >conftest.err
11664 cat conftest.err >&5
11665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11666 (exit $ac_status); } >/dev/null; then
11667 if test -s conftest.err; then
11668 ac_cpp_err=$ac_c_preproc_warn_flag
11669 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11676 if test -z "$ac_cpp_err"; then
11677 ac_header_preproc=yes
11679 echo "$as_me: failed program was:" >&5
11680 sed 's/^/| /' conftest.$ac_ext >&5
11682 ac_header_preproc=no
11685 rm -f conftest.err conftest.$ac_ext
11686 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11687 echo "${ECHO_T}$ac_header_preproc" >&6; }
11689 # So? What about this header?
11690 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11692 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11693 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11695 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11696 ac_header_preproc=yes
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11700 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11702 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11704 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11706 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11707 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11708 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11709 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11710 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11712 ## ----------------------------------- ##
11713 ## Report this to llvmbugs@cs.uiuc.edu ##
11714 ## ----------------------------------- ##
11716 ) | sed "s/^/$as_me: WARNING: /" >&2
11719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11724 eval "$as_ac_Header=\$ac_header_preproc"
11726 ac_res=`eval echo '${'$as_ac_Header'}'`
11727 { echo "$as_me:$LINENO: result: $ac_res" >&5
11728 echo "${ECHO_T}$ac_res" >&6; }
11731 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11732 cat >>confdefs.h <<_ACEOF
11733 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11741 { echo "$as_me:$LINENO: checking for error_t" >&5
11742 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11743 if test "${ac_cv_type_error_t+set}" = set; then
11744 echo $ECHO_N "(cached) $ECHO_C" >&6
11746 cat >conftest.$ac_ext <<_ACEOF
11749 cat confdefs.h >>conftest.$ac_ext
11750 cat >>conftest.$ac_ext <<_ACEOF
11751 /* end confdefs.h. */
11756 typedef error_t ac__type_new_;
11760 if ((ac__type_new_ *) 0)
11762 if (sizeof (ac__type_new_))
11768 rm -f conftest.$ac_objext
11769 if { (ac_try="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11777 grep -v '^ *+' conftest.er1 >conftest.err
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } &&
11782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11783 { (case "(($ac_try" in
11784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11785 *) ac_try_echo=$ac_try;;
11787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11788 (eval "$ac_try") 2>&5
11790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11791 (exit $ac_status); }; } &&
11792 { ac_try='test -s conftest.$ac_objext'
11793 { (case "(($ac_try" in
11794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11795 *) ac_try_echo=$ac_try;;
11797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11798 (eval "$ac_try") 2>&5
11800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11801 (exit $ac_status); }; }; then
11802 ac_cv_type_error_t=yes
11804 echo "$as_me: failed program was:" >&5
11805 sed 's/^/| /' conftest.$ac_ext >&5
11807 ac_cv_type_error_t=no
11810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11812 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11813 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11814 if test $ac_cv_type_error_t = yes; then
11816 cat >>confdefs.h <<_ACEOF
11817 #define HAVE_ERROR_T 1
11823 cat >>confdefs.h <<\_ACEOF
11824 #define error_t int
11835 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11837 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11838 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11839 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11841 echo $ECHO_N "(cached) $ECHO_C" >&6
11843 cat >conftest.$ac_ext <<_ACEOF
11846 cat confdefs.h >>conftest.$ac_ext
11847 cat >>conftest.$ac_ext <<_ACEOF
11848 /* end confdefs.h. */
11849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11851 #define $ac_func innocuous_$ac_func
11853 /* System header to define __stub macros and hopefully few prototypes,
11854 which can conflict with char $ac_func (); below.
11855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11856 <limits.h> exists even on freestanding compilers. */
11859 # include <limits.h>
11861 # include <assert.h>
11866 /* Override any GCC internal prototype to avoid an error.
11867 Use char because int might match the return type of a GCC
11868 builtin and then its argument prototype would still apply. */
11873 /* The GNU C library defines this for functions which it implements
11874 to always fail with ENOSYS. Some functions are actually named
11875 something starting with __ and the normal name is an alias. */
11876 #if defined __stub_$ac_func || defined __stub___$ac_func
11883 return $ac_func ();
11888 rm -f conftest.$ac_objext conftest$ac_exeext
11889 if { (ac_try="$ac_link"
11890 case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_link") 2>conftest.er1
11897 grep -v '^ *+' conftest.er1 >conftest.err
11899 cat conftest.err >&5
11900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11901 (exit $ac_status); } &&
11902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11903 { (case "(($ac_try" in
11904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11905 *) ac_try_echo=$ac_try;;
11907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11908 (eval "$ac_try") 2>&5
11910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11911 (exit $ac_status); }; } &&
11912 { ac_try='test -s conftest$ac_exeext'
11913 { (case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_try") 2>&5
11920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11921 (exit $ac_status); }; }; then
11922 eval "$as_ac_var=yes"
11924 echo "$as_me: failed program was:" >&5
11925 sed 's/^/| /' conftest.$ac_ext >&5
11927 eval "$as_ac_var=no"
11930 rm -f core conftest.err conftest.$ac_objext \
11931 conftest$ac_exeext conftest.$ac_ext
11933 ac_res=`eval echo '${'$as_ac_var'}'`
11934 { echo "$as_me:$LINENO: result: $ac_res" >&5
11935 echo "${ECHO_T}$ac_res" >&6; }
11936 if test `eval echo '${'$as_ac_var'}'` = yes; then
11937 cat >>confdefs.h <<_ACEOF
11938 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11971 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11974 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11979 echo $ECHO_N "(cached) $ECHO_C" >&6
11981 ac_res=`eval echo '${'$as_ac_Header'}'`
11982 { echo "$as_me:$LINENO: result: $ac_res" >&5
11983 echo "${ECHO_T}$ac_res" >&6; }
11985 # Is the header compilable?
11986 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11987 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11988 cat >conftest.$ac_ext <<_ACEOF
11991 cat confdefs.h >>conftest.$ac_ext
11992 cat >>conftest.$ac_ext <<_ACEOF
11993 /* end confdefs.h. */
11994 $ac_includes_default
11995 #include <$ac_header>
11997 rm -f conftest.$ac_objext
11998 if { (ac_try="$ac_compile"
11999 case "(($ac_try" in
12000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_compile") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } &&
12011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12012 { (case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_try") 2>&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); }; } &&
12021 { ac_try='test -s conftest.$ac_objext'
12022 { (case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_try") 2>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; }; then
12031 ac_header_compiler=yes
12033 echo "$as_me: failed program was:" >&5
12034 sed 's/^/| /' conftest.$ac_ext >&5
12036 ac_header_compiler=no
12039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12040 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12041 echo "${ECHO_T}$ac_header_compiler" >&6; }
12043 # Is the header present?
12044 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12045 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12046 cat >conftest.$ac_ext <<_ACEOF
12049 cat confdefs.h >>conftest.$ac_ext
12050 cat >>conftest.$ac_ext <<_ACEOF
12051 /* end confdefs.h. */
12052 #include <$ac_header>
12054 if { (ac_try="$ac_cpp conftest.$ac_ext"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12062 grep -v '^ *+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } >/dev/null; then
12067 if test -s conftest.err; then
12068 ac_cpp_err=$ac_c_preproc_warn_flag
12069 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12076 if test -z "$ac_cpp_err"; then
12077 ac_header_preproc=yes
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.$ac_ext >&5
12082 ac_header_preproc=no
12085 rm -f conftest.err conftest.$ac_ext
12086 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12087 echo "${ECHO_T}$ac_header_preproc" >&6; }
12089 # So? What about this header?
12090 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12092 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12093 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12095 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12096 ac_header_preproc=yes
12099 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12100 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12101 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12102 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12104 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12106 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12107 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12108 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12109 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12110 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12112 ## ----------------------------------- ##
12113 ## Report this to llvmbugs@cs.uiuc.edu ##
12114 ## ----------------------------------- ##
12116 ) | sed "s/^/$as_me: WARNING: /" >&2
12119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 eval "$as_ac_Header=\$ac_header_preproc"
12126 ac_res=`eval echo '${'$as_ac_Header'}'`
12127 { echo "$as_me:$LINENO: result: $ac_res" >&5
12128 echo "${ECHO_T}$ac_res" >&6; }
12131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12132 cat >>confdefs.h <<_ACEOF
12133 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12144 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12146 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12151 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 ac_res=`eval echo '${'$as_ac_Header'}'`
12154 { echo "$as_me:$LINENO: result: $ac_res" >&5
12155 echo "${ECHO_T}$ac_res" >&6; }
12157 # Is the header compilable?
12158 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12159 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12160 cat >conftest.$ac_ext <<_ACEOF
12163 cat confdefs.h >>conftest.$ac_ext
12164 cat >>conftest.$ac_ext <<_ACEOF
12165 /* end confdefs.h. */
12166 $ac_includes_default
12167 #include <$ac_header>
12169 rm -f conftest.$ac_objext
12170 if { (ac_try="$ac_compile"
12171 case "(($ac_try" in
12172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12173 *) ac_try_echo=$ac_try;;
12175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12176 (eval "$ac_compile") 2>conftest.er1
12178 grep -v '^ *+' conftest.er1 >conftest.err
12180 cat conftest.err >&5
12181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12182 (exit $ac_status); } &&
12183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12184 { (case "(($ac_try" in
12185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12186 *) ac_try_echo=$ac_try;;
12188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12189 (eval "$ac_try") 2>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); }; } &&
12193 { ac_try='test -s conftest.$ac_objext'
12194 { (case "(($ac_try" in
12195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_try") 2>&5
12201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12202 (exit $ac_status); }; }; then
12203 ac_header_compiler=yes
12205 echo "$as_me: failed program was:" >&5
12206 sed 's/^/| /' conftest.$ac_ext >&5
12208 ac_header_compiler=no
12211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12212 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12213 echo "${ECHO_T}$ac_header_compiler" >&6; }
12215 # Is the header present?
12216 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12217 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12218 cat >conftest.$ac_ext <<_ACEOF
12221 cat confdefs.h >>conftest.$ac_ext
12222 cat >>conftest.$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12224 #include <$ac_header>
12226 if { (ac_try="$ac_cpp conftest.$ac_ext"
12227 case "(($ac_try" in
12228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12229 *) ac_try_echo=$ac_try;;
12231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12232 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12234 grep -v '^ *+' conftest.er1 >conftest.err
12236 cat conftest.err >&5
12237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12238 (exit $ac_status); } >/dev/null; then
12239 if test -s conftest.err; then
12240 ac_cpp_err=$ac_c_preproc_warn_flag
12241 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12248 if test -z "$ac_cpp_err"; then
12249 ac_header_preproc=yes
12251 echo "$as_me: failed program was:" >&5
12252 sed 's/^/| /' conftest.$ac_ext >&5
12254 ac_header_preproc=no
12257 rm -f conftest.err conftest.$ac_ext
12258 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12259 echo "${ECHO_T}$ac_header_preproc" >&6; }
12261 # So? What about this header?
12262 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12264 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12265 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12267 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12268 ac_header_preproc=yes
12271 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12272 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12273 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12274 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12276 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12278 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12279 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12280 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12281 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12282 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12284 ## ----------------------------------- ##
12285 ## Report this to llvmbugs@cs.uiuc.edu ##
12286 ## ----------------------------------- ##
12288 ) | sed "s/^/$as_me: WARNING: /" >&2
12291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12294 echo $ECHO_N "(cached) $ECHO_C" >&6
12296 eval "$as_ac_Header=\$ac_header_preproc"
12298 ac_res=`eval echo '${'$as_ac_Header'}'`
12299 { echo "$as_me:$LINENO: result: $ac_res" >&5
12300 echo "${ECHO_T}$ac_res" >&6; }
12303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12304 cat >>confdefs.h <<_ACEOF
12305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12314 for ac_header in string.h strings.h
12316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12321 echo $ECHO_N "(cached) $ECHO_C" >&6
12323 ac_res=`eval echo '${'$as_ac_Header'}'`
12324 { echo "$as_me:$LINENO: result: $ac_res" >&5
12325 echo "${ECHO_T}$ac_res" >&6; }
12327 # Is the header compilable?
12328 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12329 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12330 cat >conftest.$ac_ext <<_ACEOF
12333 cat confdefs.h >>conftest.$ac_ext
12334 cat >>conftest.$ac_ext <<_ACEOF
12335 /* end confdefs.h. */
12336 $ac_includes_default
12337 #include <$ac_header>
12339 rm -f conftest.$ac_objext
12340 if { (ac_try="$ac_compile"
12341 case "(($ac_try" in
12342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12343 *) ac_try_echo=$ac_try;;
12345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12346 (eval "$ac_compile") 2>conftest.er1
12348 grep -v '^ *+' conftest.er1 >conftest.err
12350 cat conftest.err >&5
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); } &&
12353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12354 { (case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_try") 2>&5
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; } &&
12363 { ac_try='test -s conftest.$ac_objext'
12364 { (case "(($ac_try" in
12365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12366 *) ac_try_echo=$ac_try;;
12368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12369 (eval "$ac_try") 2>&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); }; }; then
12373 ac_header_compiler=yes
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12378 ac_header_compiler=no
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12383 echo "${ECHO_T}$ac_header_compiler" >&6; }
12385 # Is the header present?
12386 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12387 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12388 cat >conftest.$ac_ext <<_ACEOF
12391 cat confdefs.h >>conftest.$ac_ext
12392 cat >>conftest.$ac_ext <<_ACEOF
12393 /* end confdefs.h. */
12394 #include <$ac_header>
12396 if { (ac_try="$ac_cpp conftest.$ac_ext"
12397 case "(($ac_try" in
12398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12399 *) ac_try_echo=$ac_try;;
12401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12404 grep -v '^ *+' conftest.er1 >conftest.err
12406 cat conftest.err >&5
12407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12408 (exit $ac_status); } >/dev/null; then
12409 if test -s conftest.err; then
12410 ac_cpp_err=$ac_c_preproc_warn_flag
12411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12418 if test -z "$ac_cpp_err"; then
12419 ac_header_preproc=yes
12421 echo "$as_me: failed program was:" >&5
12422 sed 's/^/| /' conftest.$ac_ext >&5
12424 ac_header_preproc=no
12427 rm -f conftest.err conftest.$ac_ext
12428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12429 echo "${ECHO_T}$ac_header_preproc" >&6; }
12431 # So? What about this header?
12432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12434 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12435 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12437 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12438 ac_header_preproc=yes
12441 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12442 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12443 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12444 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12446 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12448 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12450 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12451 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12452 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12454 ## ----------------------------------- ##
12455 ## Report this to llvmbugs@cs.uiuc.edu ##
12456 ## ----------------------------------- ##
12458 ) | sed "s/^/$as_me: WARNING: /" >&2
12461 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12462 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12463 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12464 echo $ECHO_N "(cached) $ECHO_C" >&6
12466 eval "$as_ac_Header=\$ac_header_preproc"
12468 ac_res=`eval echo '${'$as_ac_Header'}'`
12469 { echo "$as_me:$LINENO: result: $ac_res" >&5
12470 echo "${ECHO_T}$ac_res" >&6; }
12473 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12474 cat >>confdefs.h <<_ACEOF
12475 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12485 for ac_func in strchr index
12487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12491 echo $ECHO_N "(cached) $ECHO_C" >&6
12493 cat >conftest.$ac_ext <<_ACEOF
12496 cat confdefs.h >>conftest.$ac_ext
12497 cat >>conftest.$ac_ext <<_ACEOF
12498 /* end confdefs.h. */
12499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12501 #define $ac_func innocuous_$ac_func
12503 /* System header to define __stub macros and hopefully few prototypes,
12504 which can conflict with char $ac_func (); below.
12505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12506 <limits.h> exists even on freestanding compilers. */
12509 # include <limits.h>
12511 # include <assert.h>
12516 /* Override any GCC internal prototype to avoid an error.
12517 Use char because int might match the return type of a GCC
12518 builtin and then its argument prototype would still apply. */
12523 /* The GNU C library defines this for functions which it implements
12524 to always fail with ENOSYS. Some functions are actually named
12525 something starting with __ and the normal name is an alias. */
12526 #if defined __stub_$ac_func || defined __stub___$ac_func
12533 return $ac_func ();
12538 rm -f conftest.$ac_objext conftest$ac_exeext
12539 if { (ac_try="$ac_link"
12540 case "(($ac_try" in
12541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12542 *) ac_try_echo=$ac_try;;
12544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12545 (eval "$ac_link") 2>conftest.er1
12547 grep -v '^ *+' conftest.er1 >conftest.err
12549 cat conftest.err >&5
12550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12551 (exit $ac_status); } &&
12552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12553 { (case "(($ac_try" in
12554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12555 *) ac_try_echo=$ac_try;;
12557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12558 (eval "$ac_try") 2>&5
12560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12561 (exit $ac_status); }; } &&
12562 { ac_try='test -s conftest$ac_exeext'
12563 { (case "(($ac_try" in
12564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12565 *) ac_try_echo=$ac_try;;
12567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_try") 2>&5
12570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12571 (exit $ac_status); }; }; then
12572 eval "$as_ac_var=yes"
12574 echo "$as_me: failed program was:" >&5
12575 sed 's/^/| /' conftest.$ac_ext >&5
12577 eval "$as_ac_var=no"
12580 rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12583 ac_res=`eval echo '${'$as_ac_var'}'`
12584 { echo "$as_me:$LINENO: result: $ac_res" >&5
12585 echo "${ECHO_T}$ac_res" >&6; }
12586 if test `eval echo '${'$as_ac_var'}'` = yes; then
12587 cat >>confdefs.h <<_ACEOF
12588 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12596 for ac_func in strrchr rindex
12598 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12599 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12600 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12602 echo $ECHO_N "(cached) $ECHO_C" >&6
12604 cat >conftest.$ac_ext <<_ACEOF
12607 cat confdefs.h >>conftest.$ac_ext
12608 cat >>conftest.$ac_ext <<_ACEOF
12609 /* end confdefs.h. */
12610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12612 #define $ac_func innocuous_$ac_func
12614 /* System header to define __stub macros and hopefully few prototypes,
12615 which can conflict with char $ac_func (); below.
12616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12617 <limits.h> exists even on freestanding compilers. */
12620 # include <limits.h>
12622 # include <assert.h>
12627 /* Override any GCC internal prototype to avoid an error.
12628 Use char because int might match the return type of a GCC
12629 builtin and then its argument prototype would still apply. */
12634 /* The GNU C library defines this for functions which it implements
12635 to always fail with ENOSYS. Some functions are actually named
12636 something starting with __ and the normal name is an alias. */
12637 #if defined __stub_$ac_func || defined __stub___$ac_func
12644 return $ac_func ();
12649 rm -f conftest.$ac_objext conftest$ac_exeext
12650 if { (ac_try="$ac_link"
12651 case "(($ac_try" in
12652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_link") 2>conftest.er1
12658 grep -v '^ *+' conftest.er1 >conftest.err
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } &&
12663 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12664 { (case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_try") 2>&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 (exit $ac_status); }; } &&
12673 { ac_try='test -s conftest$ac_exeext'
12674 { (case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_try") 2>&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); }; }; then
12683 eval "$as_ac_var=yes"
12685 echo "$as_me: failed program was:" >&5
12686 sed 's/^/| /' conftest.$ac_ext >&5
12688 eval "$as_ac_var=no"
12691 rm -f core conftest.err conftest.$ac_objext \
12692 conftest$ac_exeext conftest.$ac_ext
12694 ac_res=`eval echo '${'$as_ac_var'}'`
12695 { echo "$as_me:$LINENO: result: $ac_res" >&5
12696 echo "${ECHO_T}$ac_res" >&6; }
12697 if test `eval echo '${'$as_ac_var'}'` = yes; then
12698 cat >>confdefs.h <<_ACEOF
12699 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12707 for ac_func in memcpy bcopy
12709 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12710 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12711 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12712 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12713 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 cat >conftest.$ac_ext <<_ACEOF
12718 cat confdefs.h >>conftest.$ac_ext
12719 cat >>conftest.$ac_ext <<_ACEOF
12720 /* end confdefs.h. */
12721 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12722 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12723 #define $ac_func innocuous_$ac_func
12725 /* System header to define __stub macros and hopefully few prototypes,
12726 which can conflict with char $ac_func (); below.
12727 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12728 <limits.h> exists even on freestanding compilers. */
12731 # include <limits.h>
12733 # include <assert.h>
12738 /* Override any GCC internal prototype to avoid an error.
12739 Use char because int might match the return type of a GCC
12740 builtin and then its argument prototype would still apply. */
12745 /* The GNU C library defines this for functions which it implements
12746 to always fail with ENOSYS. Some functions are actually named
12747 something starting with __ and the normal name is an alias. */
12748 #if defined __stub_$ac_func || defined __stub___$ac_func
12755 return $ac_func ();
12760 rm -f conftest.$ac_objext conftest$ac_exeext
12761 if { (ac_try="$ac_link"
12762 case "(($ac_try" in
12763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12764 *) ac_try_echo=$ac_try;;
12766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12767 (eval "$ac_link") 2>conftest.er1
12769 grep -v '^ *+' conftest.er1 >conftest.err
12771 cat conftest.err >&5
12772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12773 (exit $ac_status); } &&
12774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12775 { (case "(($ac_try" in
12776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12777 *) ac_try_echo=$ac_try;;
12779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12780 (eval "$ac_try") 2>&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); }; } &&
12784 { ac_try='test -s conftest$ac_exeext'
12785 { (case "(($ac_try" in
12786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12787 *) ac_try_echo=$ac_try;;
12789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12790 (eval "$ac_try") 2>&5
12792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12793 (exit $ac_status); }; }; then
12794 eval "$as_ac_var=yes"
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12799 eval "$as_ac_var=no"
12802 rm -f core conftest.err conftest.$ac_objext \
12803 conftest$ac_exeext conftest.$ac_ext
12805 ac_res=`eval echo '${'$as_ac_var'}'`
12806 { echo "$as_me:$LINENO: result: $ac_res" >&5
12807 echo "${ECHO_T}$ac_res" >&6; }
12808 if test `eval echo '${'$as_ac_var'}'` = yes; then
12809 cat >>confdefs.h <<_ACEOF
12810 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12818 for ac_func in memmove strcmp
12820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12821 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12823 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 cat >conftest.$ac_ext <<_ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */
12832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12834 #define $ac_func innocuous_$ac_func
12836 /* System header to define __stub macros and hopefully few prototypes,
12837 which can conflict with char $ac_func (); below.
12838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12839 <limits.h> exists even on freestanding compilers. */
12842 # include <limits.h>
12844 # include <assert.h>
12849 /* Override any GCC internal prototype to avoid an error.
12850 Use char because int might match the return type of a GCC
12851 builtin and then its argument prototype would still apply. */
12856 /* The GNU C library defines this for functions which it implements
12857 to always fail with ENOSYS. Some functions are actually named
12858 something starting with __ and the normal name is an alias. */
12859 #if defined __stub_$ac_func || defined __stub___$ac_func
12866 return $ac_func ();
12871 rm -f conftest.$ac_objext conftest$ac_exeext
12872 if { (ac_try="$ac_link"
12873 case "(($ac_try" in
12874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12875 *) ac_try_echo=$ac_try;;
12877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12878 (eval "$ac_link") 2>conftest.er1
12880 grep -v '^ *+' conftest.er1 >conftest.err
12882 cat conftest.err >&5
12883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12884 (exit $ac_status); } &&
12885 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12886 { (case "(($ac_try" in
12887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12888 *) ac_try_echo=$ac_try;;
12890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12891 (eval "$ac_try") 2>&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); }; } &&
12895 { ac_try='test -s conftest$ac_exeext'
12896 { (case "(($ac_try" in
12897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12898 *) ac_try_echo=$ac_try;;
12900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12901 (eval "$ac_try") 2>&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); }; }; then
12905 eval "$as_ac_var=yes"
12907 echo "$as_me: failed program was:" >&5
12908 sed 's/^/| /' conftest.$ac_ext >&5
12910 eval "$as_ac_var=no"
12913 rm -f core conftest.err conftest.$ac_objext \
12914 conftest$ac_exeext conftest.$ac_ext
12916 ac_res=`eval echo '${'$as_ac_var'}'`
12917 { echo "$as_me:$LINENO: result: $ac_res" >&5
12918 echo "${ECHO_T}$ac_res" >&6; }
12919 if test `eval echo '${'$as_ac_var'}'` = yes; then
12920 cat >>confdefs.h <<_ACEOF
12921 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12930 for ac_func in closedir opendir readdir
12932 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12933 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12934 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12935 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12936 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 cat >conftest.$ac_ext <<_ACEOF
12941 cat confdefs.h >>conftest.$ac_ext
12942 cat >>conftest.$ac_ext <<_ACEOF
12943 /* end confdefs.h. */
12944 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12945 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12946 #define $ac_func innocuous_$ac_func
12948 /* System header to define __stub macros and hopefully few prototypes,
12949 which can conflict with char $ac_func (); below.
12950 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12951 <limits.h> exists even on freestanding compilers. */
12954 # include <limits.h>
12956 # include <assert.h>
12961 /* Override any GCC internal prototype to avoid an error.
12962 Use char because int might match the return type of a GCC
12963 builtin and then its argument prototype would still apply. */
12968 /* The GNU C library defines this for functions which it implements
12969 to always fail with ENOSYS. Some functions are actually named
12970 something starting with __ and the normal name is an alias. */
12971 #if defined __stub_$ac_func || defined __stub___$ac_func
12978 return $ac_func ();
12983 rm -f conftest.$ac_objext conftest$ac_exeext
12984 if { (ac_try="$ac_link"
12985 case "(($ac_try" in
12986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987 *) ac_try_echo=$ac_try;;
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_link") 2>conftest.er1
12992 grep -v '^ *+' conftest.er1 >conftest.err
12994 cat conftest.err >&5
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); } &&
12997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12998 { (case "(($ac_try" in
12999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13000 *) ac_try_echo=$ac_try;;
13002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13003 (eval "$ac_try") 2>&5
13005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13006 (exit $ac_status); }; } &&
13007 { ac_try='test -s conftest$ac_exeext'
13008 { (case "(($ac_try" in
13009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13010 *) ac_try_echo=$ac_try;;
13012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13013 (eval "$ac_try") 2>&5
13015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13016 (exit $ac_status); }; }; then
13017 eval "$as_ac_var=yes"
13019 echo "$as_me: failed program was:" >&5
13020 sed 's/^/| /' conftest.$ac_ext >&5
13022 eval "$as_ac_var=no"
13025 rm -f core conftest.err conftest.$ac_objext \
13026 conftest$ac_exeext conftest.$ac_ext
13028 ac_res=`eval echo '${'$as_ac_var'}'`
13029 { echo "$as_me:$LINENO: result: $ac_res" >&5
13030 echo "${ECHO_T}$ac_res" >&6; }
13031 if test `eval echo '${'$as_ac_var'}'` = yes; then
13032 cat >>confdefs.h <<_ACEOF
13033 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13041 if test "$WITH_LLVMGCCDIR" = "default" ; then
13042 LLVMGCC="llvm-gcc${EXEEXT}"
13043 LLVMGXX="llvm-g++${EXEEXT}"
13044 LLVMGCCCOMMAND="$LLVMGCC"
13045 LLVMGXXCOMMAND="$LLVMGXX"
13046 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13048 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13050 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13051 set dummy $LLVMGCC; ac_word=$2
13052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13054 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13055 echo $ECHO_N "(cached) $ECHO_C" >&6
13059 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13063 for as_dir in $PATH
13066 test -z "$as_dir" && as_dir=.
13067 for ac_exec_ext in '' $ac_executable_extensions; do
13068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13069 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13080 LLVMGCC=$ac_cv_path_LLVMGCC
13081 if test -n "$LLVMGCC"; then
13082 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13083 echo "${ECHO_T}$LLVMGCC" >&6; }
13085 { echo "$as_me:$LINENO: result: no" >&5
13086 echo "${ECHO_T}no" >&6; }
13090 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13091 set dummy $LLVMGXX; ac_word=$2
13092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13094 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13095 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13103 for as_dir in $PATH
13106 test -z "$as_dir" && as_dir=.
13107 for ac_exec_ext in '' $ac_executable_extensions; do
13108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13109 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13120 LLVMGXX=$ac_cv_path_LLVMGXX
13121 if test -n "$LLVMGXX"; then
13122 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13123 echo "${ECHO_T}$LLVMGXX" >&6; }
13125 { echo "$as_me:$LINENO: result: no" >&5
13126 echo "${ECHO_T}no" >&6; }
13131 if test -z "$LLVMGCC"; then
13132 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13133 LLVMGCCCOMMAND="$LLVMGCC"
13135 if test -z "$LLVMGXX"; then
13136 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13137 LLVMGXXCOMMAND="$LLVMGXX"
13144 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13146 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13151 # Check whether --with-llvmcc was given.
13152 if test "${with_llvmcc+set}" = set; then
13153 withval=$with_llvmcc;
13158 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13159 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13160 if test "$with_llvmcc" != "check"; then
13161 if (test "$with_llvmcc" != "llvm-gcc" &&
13162 test "$with_llvmcc" != "clang" &&
13163 test "$with_llvmcc" != "none"); then
13164 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13165 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13166 { (exit 1); exit 1; }; }
13168 WITH_LLVMCC="$with_llvmcc"
13169 elif test -n "$LLVMGCC"; then
13170 WITH_LLVMCC=llvm-gcc
13171 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13176 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13177 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13178 LLVMCC_OPTION=$WITH_LLVMCC
13181 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13182 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13195 if test "$GCC" != "yes" && test "$ICC" != "yes"
13197 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13198 echo "$as_me: error: gcc|icc required but not found" >&2;}
13199 { (exit 1); exit 1; }; }
13202 if test "$GXX" != "yes" && test "$IXX" != "yes"
13204 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13205 echo "$as_me: error: g++|icc required but not found" >&2;}
13206 { (exit 1); exit 1; }; }
13209 if test "$GCC" = "yes"
13211 cat >conftest.$ac_ext <<_ACEOF
13212 #if !defined(__GNUC__) || __GNUC__ < 3
13213 #error Unsupported GCC version
13217 rm -f conftest.$ac_objext
13218 if { (ac_try="$ac_compile"
13219 case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_compile") 2>conftest.er1
13226 grep -v '^ *+' conftest.er1 >conftest.err
13228 cat conftest.err >&5
13229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13230 (exit $ac_status); } &&
13231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13232 { (case "(($ac_try" in
13233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13234 *) ac_try_echo=$ac_try;;
13236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13237 (eval "$ac_try") 2>&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); }; } &&
13241 { ac_try='test -s conftest.$ac_objext'
13242 { (case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_try") 2>&5
13249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13250 (exit $ac_status); }; }; then
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.$ac_ext >&5
13256 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13257 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13258 { (exit 1); exit 1; }; }
13261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13264 if test -z "$llvm_cv_gnu_make_command"
13266 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13267 echo "$as_me: error: GNU Make required but not found" >&2;}
13268 { (exit 1); exit 1; }; }
13271 { echo "$as_me:$LINENO: result: ok" >&5
13272 echo "${ECHO_T}ok" >&6; }
13274 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13275 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13276 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13278 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13280 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13281 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13285 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13286 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13287 if test "${ac_cv_lib_m_sin+set}" = set; then
13288 echo $ECHO_N "(cached) $ECHO_C" >&6
13290 ac_check_lib_save_LIBS=$LIBS
13292 cat >conftest.$ac_ext <<_ACEOF
13295 cat confdefs.h >>conftest.$ac_ext
13296 cat >>conftest.$ac_ext <<_ACEOF
13297 /* end confdefs.h. */
13299 /* Override any GCC internal prototype to avoid an error.
13300 Use char because int might match the return type of a GCC
13301 builtin and then its argument prototype would still apply. */
13314 rm -f conftest.$ac_objext conftest$ac_exeext
13315 if { (ac_try="$ac_link"
13316 case "(($ac_try" in
13317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13318 *) ac_try_echo=$ac_try;;
13320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13321 (eval "$ac_link") 2>conftest.er1
13323 grep -v '^ *+' conftest.er1 >conftest.err
13325 cat conftest.err >&5
13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13327 (exit $ac_status); } &&
13328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13329 { (case "(($ac_try" in
13330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13331 *) ac_try_echo=$ac_try;;
13333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13334 (eval "$ac_try") 2>&5
13336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13337 (exit $ac_status); }; } &&
13338 { ac_try='test -s conftest$ac_exeext'
13339 { (case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_try") 2>&5
13346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13347 (exit $ac_status); }; }; then
13348 ac_cv_lib_m_sin=yes
13350 echo "$as_me: failed program was:" >&5
13351 sed 's/^/| /' conftest.$ac_ext >&5
13356 rm -f core conftest.err conftest.$ac_objext \
13357 conftest$ac_exeext conftest.$ac_ext
13358 LIBS=$ac_check_lib_save_LIBS
13360 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13361 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13362 if test $ac_cv_lib_m_sin = yes; then
13363 cat >>confdefs.h <<_ACEOF
13364 #define HAVE_LIBM 1
13371 if test "$llvm_cv_os_type" = "MingW" ; then
13373 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13374 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13375 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 ac_check_lib_save_LIBS=$LIBS
13379 LIBS="-limagehlp $LIBS"
13380 cat >conftest.$ac_ext <<_ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13396 rm -f conftest.$ac_objext conftest$ac_exeext
13397 if { (ac_try="$ac_link"
13398 case "(($ac_try" in
13399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13400 *) ac_try_echo=$ac_try;;
13402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13403 (eval "$ac_link") 2>conftest.er1
13405 grep -v '^ *+' conftest.er1 >conftest.err
13407 cat conftest.err >&5
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); } &&
13410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13411 { (case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_try") 2>&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); }; } &&
13420 { ac_try='test -s conftest$ac_exeext'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; }; then
13430 ac_cv_lib_imagehlp_main=yes
13432 echo "$as_me: failed program was:" >&5
13433 sed 's/^/| /' conftest.$ac_ext >&5
13435 ac_cv_lib_imagehlp_main=no
13438 rm -f core conftest.err conftest.$ac_objext \
13439 conftest$ac_exeext conftest.$ac_ext
13440 LIBS=$ac_check_lib_save_LIBS
13442 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13443 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13444 if test $ac_cv_lib_imagehlp_main = yes; then
13445 cat >>confdefs.h <<_ACEOF
13446 #define HAVE_LIBIMAGEHLP 1
13449 LIBS="-limagehlp $LIBS"
13454 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13455 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13456 if test "${ac_cv_lib_psapi_main+set}" = set; then
13457 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 ac_check_lib_save_LIBS=$LIBS
13460 LIBS="-lpsapi $LIBS"
13461 cat >conftest.$ac_ext <<_ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13477 rm -f conftest.$ac_objext conftest$ac_exeext
13478 if { (ac_try="$ac_link"
13479 case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_link") 2>conftest.er1
13486 grep -v '^ *+' conftest.er1 >conftest.err
13488 cat conftest.err >&5
13489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13490 (exit $ac_status); } &&
13491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13492 { (case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_try") 2>&5
13499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); }; } &&
13501 { ac_try='test -s conftest$ac_exeext'
13502 { (case "(($ac_try" in
13503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13504 *) ac_try_echo=$ac_try;;
13506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13507 (eval "$ac_try") 2>&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); }; }; then
13511 ac_cv_lib_psapi_main=yes
13513 echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13516 ac_cv_lib_psapi_main=no
13519 rm -f core conftest.err conftest.$ac_objext \
13520 conftest$ac_exeext conftest.$ac_ext
13521 LIBS=$ac_check_lib_save_LIBS
13523 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13524 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13525 if test $ac_cv_lib_psapi_main = yes; then
13526 cat >>confdefs.h <<_ACEOF
13527 #define HAVE_LIBPSAPI 1
13530 LIBS="-lpsapi $LIBS"
13536 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13537 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13538 if test "${ac_cv_search_dlopen+set}" = set; then
13539 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 ac_func_search_save_LIBS=$LIBS
13542 cat >conftest.$ac_ext <<_ACEOF
13545 cat confdefs.h >>conftest.$ac_ext
13546 cat >>conftest.$ac_ext <<_ACEOF
13547 /* end confdefs.h. */
13549 /* Override any GCC internal prototype to avoid an error.
13550 Use char because int might match the return type of a GCC
13551 builtin and then its argument prototype would still apply. */
13564 for ac_lib in '' dl; do
13565 if test -z "$ac_lib"; then
13566 ac_res="none required"
13569 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13571 rm -f conftest.$ac_objext conftest$ac_exeext
13572 if { (ac_try="$ac_link"
13573 case "(($ac_try" in
13574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13575 *) ac_try_echo=$ac_try;;
13577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13578 (eval "$ac_link") 2>conftest.er1
13580 grep -v '^ *+' conftest.er1 >conftest.err
13582 cat conftest.err >&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); } &&
13585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13586 { (case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_try") 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; } &&
13595 { ac_try='test -s conftest$ac_exeext'
13596 { (case "(($ac_try" in
13597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13598 *) ac_try_echo=$ac_try;;
13600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13601 (eval "$ac_try") 2>&5
13603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); }; }; then
13605 ac_cv_search_dlopen=$ac_res
13607 echo "$as_me: failed program was:" >&5
13608 sed 's/^/| /' conftest.$ac_ext >&5
13613 rm -f core conftest.err conftest.$ac_objext \
13615 if test "${ac_cv_search_dlopen+set}" = set; then
13619 if test "${ac_cv_search_dlopen+set}" = set; then
13622 ac_cv_search_dlopen=no
13624 rm conftest.$ac_ext
13625 LIBS=$ac_func_search_save_LIBS
13627 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13628 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13629 ac_res=$ac_cv_search_dlopen
13630 if test "$ac_res" != no; then
13631 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13633 cat >>confdefs.h <<\_ACEOF
13634 #define HAVE_DLOPEN 1
13638 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13639 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13643 if test "$llvm_cv_enable_libffi" = "yes" ; then
13644 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13645 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13646 if test "${ac_cv_search_ffi_call+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 ac_func_search_save_LIBS=$LIBS
13650 cat >conftest.$ac_ext <<_ACEOF
13653 cat confdefs.h >>conftest.$ac_ext
13654 cat >>conftest.$ac_ext <<_ACEOF
13655 /* end confdefs.h. */
13657 /* Override any GCC internal prototype to avoid an error.
13658 Use char because int might match the return type of a GCC
13659 builtin and then its argument prototype would still apply. */
13667 return ffi_call ();
13672 for ac_lib in '' ffi; do
13673 if test -z "$ac_lib"; then
13674 ac_res="none required"
13677 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13679 rm -f conftest.$ac_objext conftest$ac_exeext
13680 if { (ac_try="$ac_link"
13681 case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_link") 2>conftest.er1
13688 grep -v '^ *+' conftest.er1 >conftest.err
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } &&
13693 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13694 { (case "(($ac_try" in
13695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13696 *) ac_try_echo=$ac_try;;
13698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13699 (eval "$ac_try") 2>&5
13701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13702 (exit $ac_status); }; } &&
13703 { ac_try='test -s conftest$ac_exeext'
13704 { (case "(($ac_try" in
13705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_try") 2>&5
13711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13712 (exit $ac_status); }; }; then
13713 ac_cv_search_ffi_call=$ac_res
13715 echo "$as_me: failed program was:" >&5
13716 sed 's/^/| /' conftest.$ac_ext >&5
13721 rm -f core conftest.err conftest.$ac_objext \
13723 if test "${ac_cv_search_ffi_call+set}" = set; then
13727 if test "${ac_cv_search_ffi_call+set}" = set; then
13730 ac_cv_search_ffi_call=no
13732 rm conftest.$ac_ext
13733 LIBS=$ac_func_search_save_LIBS
13735 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13736 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13737 ac_res=$ac_cv_search_ffi_call
13738 if test "$ac_res" != no; then
13739 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13741 cat >>confdefs.h <<\_ACEOF
13742 #define HAVE_FFI_CALL 1
13746 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13747 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13748 { (exit 1); exit 1; }; }
13753 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13754 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13755 if test "${ac_cv_search_mallinfo+set}" = set; then
13756 echo $ECHO_N "(cached) $ECHO_C" >&6
13758 ac_func_search_save_LIBS=$LIBS
13759 cat >conftest.$ac_ext <<_ACEOF
13762 cat confdefs.h >>conftest.$ac_ext
13763 cat >>conftest.$ac_ext <<_ACEOF
13764 /* end confdefs.h. */
13766 /* Override any GCC internal prototype to avoid an error.
13767 Use char because int might match the return type of a GCC
13768 builtin and then its argument prototype would still apply. */
13776 return mallinfo ();
13781 for ac_lib in '' malloc; do
13782 if test -z "$ac_lib"; then
13783 ac_res="none required"
13786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13788 rm -f conftest.$ac_objext conftest$ac_exeext
13789 if { (ac_try="$ac_link"
13790 case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_link") 2>conftest.er1
13797 grep -v '^ *+' conftest.er1 >conftest.err
13799 cat conftest.err >&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); } &&
13802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13803 { (case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_try") 2>&5
13810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13811 (exit $ac_status); }; } &&
13812 { ac_try='test -s conftest$ac_exeext'
13813 { (case "(($ac_try" in
13814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13815 *) ac_try_echo=$ac_try;;
13817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13818 (eval "$ac_try") 2>&5
13820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13821 (exit $ac_status); }; }; then
13822 ac_cv_search_mallinfo=$ac_res
13824 echo "$as_me: failed program was:" >&5
13825 sed 's/^/| /' conftest.$ac_ext >&5
13830 rm -f core conftest.err conftest.$ac_objext \
13832 if test "${ac_cv_search_mallinfo+set}" = set; then
13836 if test "${ac_cv_search_mallinfo+set}" = set; then
13839 ac_cv_search_mallinfo=no
13841 rm conftest.$ac_ext
13842 LIBS=$ac_func_search_save_LIBS
13844 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13845 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13846 ac_res=$ac_cv_search_mallinfo
13847 if test "$ac_res" != no; then
13848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13850 cat >>confdefs.h <<\_ACEOF
13851 #define HAVE_MALLINFO 1
13857 if test "$ENABLE_THREADS" -eq 1 ; then
13859 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13860 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13861 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 ac_check_lib_save_LIBS=$LIBS
13865 LIBS="-lpthread $LIBS"
13866 cat >conftest.$ac_ext <<_ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13873 /* Override any GCC internal prototype to avoid an error.
13874 Use char because int might match the return type of a GCC
13875 builtin and then its argument prototype would still apply. */
13879 char pthread_mutex_init ();
13883 return pthread_mutex_init ();
13888 rm -f conftest.$ac_objext conftest$ac_exeext
13889 if { (ac_try="$ac_link"
13890 case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_link") 2>conftest.er1
13897 grep -v '^ *+' conftest.er1 >conftest.err
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } &&
13902 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13903 { (case "(($ac_try" in
13904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13905 *) ac_try_echo=$ac_try;;
13907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13908 (eval "$ac_try") 2>&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); }; } &&
13912 { ac_try='test -s conftest$ac_exeext'
13913 { (case "(($ac_try" in
13914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13915 *) ac_try_echo=$ac_try;;
13917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13918 (eval "$ac_try") 2>&5
13920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13921 (exit $ac_status); }; }; then
13922 ac_cv_lib_pthread_pthread_mutex_init=yes
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.$ac_ext >&5
13927 ac_cv_lib_pthread_pthread_mutex_init=no
13930 rm -f core conftest.err conftest.$ac_objext \
13931 conftest$ac_exeext conftest.$ac_ext
13932 LIBS=$ac_check_lib_save_LIBS
13934 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13935 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13936 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13937 cat >>confdefs.h <<_ACEOF
13938 #define HAVE_LIBPTHREAD 1
13941 LIBS="-lpthread $LIBS"
13945 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13946 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13947 if test "${ac_cv_search_pthread_mutex_lock+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_mutex_lock ();
13968 return pthread_mutex_lock ();
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_mutex_lock=$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_mutex_lock+set}" = set; then
14028 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14031 ac_cv_search_pthread_mutex_lock=no
14033 rm conftest.$ac_ext
14034 LIBS=$ac_func_search_save_LIBS
14036 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14037 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14038 ac_res=$ac_cv_search_pthread_mutex_lock
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_MUTEX_LOCK 1
14048 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14049 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14050 if test "${ac_cv_search_pthread_rwlock_init+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_rwlock_init ();
14071 return pthread_rwlock_init ();
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_rwlock_init=$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_rwlock_init+set}" = set; then
14131 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14134 ac_cv_search_pthread_rwlock_init=no
14136 rm conftest.$ac_ext
14137 LIBS=$ac_func_search_save_LIBS
14139 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14140 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14141 ac_res=$ac_cv_search_pthread_rwlock_init
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_RWLOCK_INIT 1
14151 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14152 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14153 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14154 echo $ECHO_N "(cached) $ECHO_C" >&6
14156 ac_func_search_save_LIBS=$LIBS
14157 cat >conftest.$ac_ext <<_ACEOF
14160 cat confdefs.h >>conftest.$ac_ext
14161 cat >>conftest.$ac_ext <<_ACEOF
14162 /* end confdefs.h. */
14164 /* Override any GCC internal prototype to avoid an error.
14165 Use char because int might match the return type of a GCC
14166 builtin and then its argument prototype would still apply. */
14170 char pthread_getspecific ();
14174 return pthread_getspecific ();
14179 for ac_lib in '' pthread; do
14180 if test -z "$ac_lib"; then
14181 ac_res="none required"
14184 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14186 rm -f conftest.$ac_objext conftest$ac_exeext
14187 if { (ac_try="$ac_link"
14188 case "(($ac_try" in
14189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14190 *) ac_try_echo=$ac_try;;
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_link") 2>conftest.er1
14195 grep -v '^ *+' conftest.er1 >conftest.err
14197 cat conftest.err >&5
14198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14199 (exit $ac_status); } &&
14200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14201 { (case "(($ac_try" in
14202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14203 *) ac_try_echo=$ac_try;;
14205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14206 (eval "$ac_try") 2>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); }; } &&
14210 { ac_try='test -s conftest$ac_exeext'
14211 { (case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_try") 2>&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); }; }; then
14220 ac_cv_search_pthread_getspecific=$ac_res
14222 echo "$as_me: failed program was:" >&5
14223 sed 's/^/| /' conftest.$ac_ext >&5
14228 rm -f core conftest.err conftest.$ac_objext \
14230 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14234 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14237 ac_cv_search_pthread_getspecific=no
14239 rm conftest.$ac_ext
14240 LIBS=$ac_func_search_save_LIBS
14242 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14243 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14244 ac_res=$ac_cv_search_pthread_getspecific
14245 if test "$ac_res" != no; then
14246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14248 cat >>confdefs.h <<\_ACEOF
14249 #define HAVE_PTHREAD_GETSPECIFIC 1
14257 # Check whether --with-udis86 was given.
14258 if test "${with_udis86+set}" = set; then
14259 withval=$with_udis86;
14264 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14267 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14268 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14269 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14270 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 ac_check_lib_save_LIBS=$LIBS
14273 LIBS="-ludis86 $LIBS"
14274 cat >conftest.$ac_ext <<_ACEOF
14277 cat confdefs.h >>conftest.$ac_ext
14278 cat >>conftest.$ac_ext <<_ACEOF
14279 /* end confdefs.h. */
14281 /* Override any GCC internal prototype to avoid an error.
14282 Use char because int might match the return type of a GCC
14283 builtin and then its argument prototype would still apply. */
14296 rm -f conftest.$ac_objext conftest$ac_exeext
14297 if { (ac_try="$ac_link"
14298 case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_link") 2>conftest.er1
14305 grep -v '^ *+' conftest.er1 >conftest.err
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } &&
14310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14311 { (case "(($ac_try" in
14312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14313 *) ac_try_echo=$ac_try;;
14315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14316 (eval "$ac_try") 2>&5
14318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14319 (exit $ac_status); }; } &&
14320 { ac_try='test -s conftest$ac_exeext'
14321 { (case "(($ac_try" in
14322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14323 *) ac_try_echo=$ac_try;;
14325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14326 (eval "$ac_try") 2>&5
14328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14329 (exit $ac_status); }; }; then
14330 ac_cv_lib_udis86_ud_init=yes
14332 echo "$as_me: failed program was:" >&5
14333 sed 's/^/| /' conftest.$ac_ext >&5
14335 ac_cv_lib_udis86_ud_init=no
14338 rm -f core conftest.err conftest.$ac_objext \
14339 conftest$ac_exeext conftest.$ac_ext
14340 LIBS=$ac_check_lib_save_LIBS
14342 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14343 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14344 if test $ac_cv_lib_udis86_ud_init = yes; then
14345 cat >>confdefs.h <<_ACEOF
14346 #define HAVE_LIBUDIS86 1
14349 LIBS="-ludis86 $LIBS"
14353 echo "Error! You need to have libudis86 around."
14365 cat >>confdefs.h <<_ACEOF
14366 #define USE_UDIS86 $USE_UDIS86
14371 # Check whether --with-oprofile was given.
14372 if test "${with_oprofile+set}" = set; then
14373 withval=$with_oprofile;
14377 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14378 no) llvm_cv_oppath=
14381 *) llvm_cv_oppath="${withval}/lib/oprofile"
14382 CPPFLAGS="-I${withval}/include";;
14384 if test -n "$llvm_cv_oppath" ; then
14385 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14386 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14387 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14388 if test "${ac_cv_search_bfd_init+set}" = set; then
14389 echo $ECHO_N "(cached) $ECHO_C" >&6
14391 ac_func_search_save_LIBS=$LIBS
14392 cat >conftest.$ac_ext <<_ACEOF
14395 cat confdefs.h >>conftest.$ac_ext
14396 cat >>conftest.$ac_ext <<_ACEOF
14397 /* end confdefs.h. */
14399 /* Override any GCC internal prototype to avoid an error.
14400 Use char because int might match the return type of a GCC
14401 builtin and then its argument prototype would still apply. */
14409 return bfd_init ();
14414 for ac_lib in '' bfd; do
14415 if test -z "$ac_lib"; then
14416 ac_res="none required"
14419 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14421 rm -f conftest.$ac_objext conftest$ac_exeext
14422 if { (ac_try="$ac_link"
14423 case "(($ac_try" in
14424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14425 *) ac_try_echo=$ac_try;;
14427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14428 (eval "$ac_link") 2>conftest.er1
14430 grep -v '^ *+' conftest.er1 >conftest.err
14432 cat conftest.err >&5
14433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } &&
14435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14436 { (case "(($ac_try" in
14437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14438 *) ac_try_echo=$ac_try;;
14440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14441 (eval "$ac_try") 2>&5
14443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14444 (exit $ac_status); }; } &&
14445 { ac_try='test -s conftest$ac_exeext'
14446 { (case "(($ac_try" in
14447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14448 *) ac_try_echo=$ac_try;;
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_try") 2>&5
14453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14454 (exit $ac_status); }; }; then
14455 ac_cv_search_bfd_init=$ac_res
14457 echo "$as_me: failed program was:" >&5
14458 sed 's/^/| /' conftest.$ac_ext >&5
14463 rm -f core conftest.err conftest.$ac_objext \
14465 if test "${ac_cv_search_bfd_init+set}" = set; then
14469 if test "${ac_cv_search_bfd_init+set}" = set; then
14472 ac_cv_search_bfd_init=no
14474 rm conftest.$ac_ext
14475 LIBS=$ac_func_search_save_LIBS
14477 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14478 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14479 ac_res=$ac_cv_search_bfd_init
14480 if test "$ac_res" != no; then
14481 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14485 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14486 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14487 if test "${ac_cv_search_op_open_agent+set}" = set; then
14488 echo $ECHO_N "(cached) $ECHO_C" >&6
14490 ac_func_search_save_LIBS=$LIBS
14491 cat >conftest.$ac_ext <<_ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14498 /* Override any GCC internal prototype to avoid an error.
14499 Use char because int might match the return type of a GCC
14500 builtin and then its argument prototype would still apply. */
14504 char op_open_agent ();
14508 return op_open_agent ();
14513 for ac_lib in '' opagent; do
14514 if test -z "$ac_lib"; then
14515 ac_res="none required"
14518 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14520 rm -f conftest.$ac_objext conftest$ac_exeext
14521 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
14529 grep -v '^ *+' conftest.er1 >conftest.err
14531 cat conftest.err >&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } &&
14534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; } &&
14544 { ac_try='test -s conftest$ac_exeext'
14545 { (case "(($ac_try" in
14546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14547 *) ac_try_echo=$ac_try;;
14549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14550 (eval "$ac_try") 2>&5
14552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14553 (exit $ac_status); }; }; then
14554 ac_cv_search_op_open_agent=$ac_res
14556 echo "$as_me: failed program was:" >&5
14557 sed 's/^/| /' conftest.$ac_ext >&5
14562 rm -f core conftest.err conftest.$ac_objext \
14564 if test "${ac_cv_search_op_open_agent+set}" = set; then
14568 if test "${ac_cv_search_op_open_agent+set}" = set; then
14571 ac_cv_search_op_open_agent=no
14573 rm conftest.$ac_ext
14574 LIBS=$ac_func_search_save_LIBS
14576 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14577 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14578 ac_res=$ac_cv_search_op_open_agent
14579 if test "$ac_res" != no; then
14580 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14584 echo "Error! You need to have libopagent around."
14589 if test "${ac_cv_header_opagent_h+set}" = set; then
14590 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14591 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14592 if test "${ac_cv_header_opagent_h+set}" = set; then
14593 echo $ECHO_N "(cached) $ECHO_C" >&6
14595 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14596 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14598 # Is the header compilable?
14599 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14600 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14601 cat >conftest.$ac_ext <<_ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607 $ac_includes_default
14608 #include <opagent.h>
14610 rm -f conftest.$ac_objext
14611 if { (ac_try="$ac_compile"
14612 case "(($ac_try" in
14613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14614 *) ac_try_echo=$ac_try;;
14616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14617 (eval "$ac_compile") 2>conftest.er1
14619 grep -v '^ *+' conftest.er1 >conftest.err
14621 cat conftest.err >&5
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } &&
14624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14625 { (case "(($ac_try" in
14626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14627 *) ac_try_echo=$ac_try;;
14629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14630 (eval "$ac_try") 2>&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); }; } &&
14634 { ac_try='test -s conftest.$ac_objext'
14635 { (case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_try") 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_header_compiler=yes
14646 echo "$as_me: failed program was:" >&5
14647 sed 's/^/| /' conftest.$ac_ext >&5
14649 ac_header_compiler=no
14652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14654 echo "${ECHO_T}$ac_header_compiler" >&6; }
14656 # Is the header present?
14657 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14658 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14659 cat >conftest.$ac_ext <<_ACEOF
14662 cat confdefs.h >>conftest.$ac_ext
14663 cat >>conftest.$ac_ext <<_ACEOF
14664 /* end confdefs.h. */
14665 #include <opagent.h>
14667 if { (ac_try="$ac_cpp conftest.$ac_ext"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14675 grep -v '^ *+' conftest.er1 >conftest.err
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } >/dev/null; then
14680 if test -s conftest.err; then
14681 ac_cpp_err=$ac_c_preproc_warn_flag
14682 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14689 if test -z "$ac_cpp_err"; then
14690 ac_header_preproc=yes
14692 echo "$as_me: failed program was:" >&5
14693 sed 's/^/| /' conftest.$ac_ext >&5
14695 ac_header_preproc=no
14698 rm -f conftest.err conftest.$ac_ext
14699 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14700 echo "${ECHO_T}$ac_header_preproc" >&6; }
14702 # So? What about this header?
14703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14705 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14706 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14707 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14708 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14709 ac_header_preproc=yes
14712 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14713 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14715 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14717 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14719 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14721 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14723 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14725 ## ----------------------------------- ##
14726 ## Report this to llvmbugs@cs.uiuc.edu ##
14727 ## ----------------------------------- ##
14729 ) | sed "s/^/$as_me: WARNING: /" >&2
14732 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14733 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14734 if test "${ac_cv_header_opagent_h+set}" = set; then
14735 echo $ECHO_N "(cached) $ECHO_C" >&6
14737 ac_cv_header_opagent_h=$ac_header_preproc
14739 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14740 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14743 if test $ac_cv_header_opagent_h = yes; then
14747 echo "Error! You need to have opagent.h around."
14763 cat >>confdefs.h <<_ACEOF
14764 #define USE_OPROFILE $USE_OPROFILE
14774 ac_header_dirent=no
14775 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14776 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14777 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14778 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14782 cat >conftest.$ac_ext <<_ACEOF
14785 cat confdefs.h >>conftest.$ac_ext
14786 cat >>conftest.$ac_ext <<_ACEOF
14787 /* end confdefs.h. */
14788 #include <sys/types.h>
14800 rm -f conftest.$ac_objext
14801 if { (ac_try="$ac_compile"
14802 case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_compile") 2>conftest.er1
14809 grep -v '^ *+' conftest.er1 >conftest.err
14811 cat conftest.err >&5
14812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14813 (exit $ac_status); } &&
14814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
14824 { ac_try='test -s conftest.$ac_objext'
14825 { (case "(($ac_try" in
14826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14827 *) ac_try_echo=$ac_try;;
14829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14830 (eval "$ac_try") 2>&5
14832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14833 (exit $ac_status); }; }; then
14834 eval "$as_ac_Header=yes"
14836 echo "$as_me: failed program was:" >&5
14837 sed 's/^/| /' conftest.$ac_ext >&5
14839 eval "$as_ac_Header=no"
14842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14844 ac_res=`eval echo '${'$as_ac_Header'}'`
14845 { echo "$as_me:$LINENO: result: $ac_res" >&5
14846 echo "${ECHO_T}$ac_res" >&6; }
14847 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14848 cat >>confdefs.h <<_ACEOF
14849 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14852 ac_header_dirent=$ac_hdr; break
14856 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14857 if test $ac_header_dirent = dirent.h; then
14858 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14859 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14860 if test "${ac_cv_search_opendir+set}" = set; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14863 ac_func_search_save_LIBS=$LIBS
14864 cat >conftest.$ac_ext <<_ACEOF
14867 cat confdefs.h >>conftest.$ac_ext
14868 cat >>conftest.$ac_ext <<_ACEOF
14869 /* end confdefs.h. */
14871 /* Override any GCC internal prototype to avoid an error.
14872 Use char because int might match the return type of a GCC
14873 builtin and then its argument prototype would still apply. */
14886 for ac_lib in '' dir; do
14887 if test -z "$ac_lib"; then
14888 ac_res="none required"
14891 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14893 rm -f conftest.$ac_objext conftest$ac_exeext
14894 if { (ac_try="$ac_link"
14895 case "(($ac_try" in
14896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14897 *) ac_try_echo=$ac_try;;
14899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14900 (eval "$ac_link") 2>conftest.er1
14902 grep -v '^ *+' conftest.er1 >conftest.err
14904 cat conftest.err >&5
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); } &&
14907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14908 { (case "(($ac_try" in
14909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14910 *) ac_try_echo=$ac_try;;
14912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14913 (eval "$ac_try") 2>&5
14915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14916 (exit $ac_status); }; } &&
14917 { ac_try='test -s conftest$ac_exeext'
14918 { (case "(($ac_try" in
14919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14920 *) ac_try_echo=$ac_try;;
14922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14923 (eval "$ac_try") 2>&5
14925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14926 (exit $ac_status); }; }; then
14927 ac_cv_search_opendir=$ac_res
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.$ac_ext >&5
14935 rm -f core conftest.err conftest.$ac_objext \
14937 if test "${ac_cv_search_opendir+set}" = set; then
14941 if test "${ac_cv_search_opendir+set}" = set; then
14944 ac_cv_search_opendir=no
14946 rm conftest.$ac_ext
14947 LIBS=$ac_func_search_save_LIBS
14949 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14950 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14951 ac_res=$ac_cv_search_opendir
14952 if test "$ac_res" != no; then
14953 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14958 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14959 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14960 if test "${ac_cv_search_opendir+set}" = set; then
14961 echo $ECHO_N "(cached) $ECHO_C" >&6
14963 ac_func_search_save_LIBS=$LIBS
14964 cat >conftest.$ac_ext <<_ACEOF
14967 cat confdefs.h >>conftest.$ac_ext
14968 cat >>conftest.$ac_ext <<_ACEOF
14969 /* end confdefs.h. */
14971 /* Override any GCC internal prototype to avoid an error.
14972 Use char because int might match the return type of a GCC
14973 builtin and then its argument prototype would still apply. */
14986 for ac_lib in '' x; do
14987 if test -z "$ac_lib"; then
14988 ac_res="none required"
14991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14993 rm -f conftest.$ac_objext conftest$ac_exeext
14994 if { (ac_try="$ac_link"
14995 case "(($ac_try" in
14996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14997 *) ac_try_echo=$ac_try;;
14999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15000 (eval "$ac_link") 2>conftest.er1
15002 grep -v '^ *+' conftest.er1 >conftest.err
15004 cat conftest.err >&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); } &&
15007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15010 *) ac_try_echo=$ac_try;;
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; } &&
15017 { ac_try='test -s conftest$ac_exeext'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; }; then
15027 ac_cv_search_opendir=$ac_res
15029 echo "$as_me: failed program was:" >&5
15030 sed 's/^/| /' conftest.$ac_ext >&5
15035 rm -f core conftest.err conftest.$ac_objext \
15037 if test "${ac_cv_search_opendir+set}" = set; then
15041 if test "${ac_cv_search_opendir+set}" = set; then
15044 ac_cv_search_opendir=no
15046 rm conftest.$ac_ext
15047 LIBS=$ac_func_search_save_LIBS
15049 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15050 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15051 ac_res=$ac_cv_search_opendir
15052 if test "$ac_res" != no; then
15053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15059 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15060 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15061 if test "${ac_cv_header_mmap_anon+set}" = set; then
15062 echo $ECHO_N "(cached) $ECHO_C" >&6
15065 ac_cpp='$CPP $CPPFLAGS'
15066 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15067 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15068 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15070 cat >conftest.$ac_ext <<_ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #include <sys/mman.h>
15077 #include <unistd.h>
15082 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15087 rm -f conftest.$ac_objext
15088 if { (ac_try="$ac_compile"
15089 case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_compile") 2>conftest.er1
15096 grep -v '^ *+' conftest.er1 >conftest.err
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } &&
15101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15102 { (case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_try") 2>&5
15109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15110 (exit $ac_status); }; } &&
15111 { ac_try='test -s conftest.$ac_objext'
15112 { (case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15117 (eval "$ac_try") 2>&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); }; }; then
15121 ac_cv_header_mmap_anon=yes
15123 echo "$as_me: failed program was:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ac_cv_header_mmap_anon=no
15129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15131 ac_cpp='$CPP $CPPFLAGS'
15132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15138 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15139 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15140 if test "$ac_cv_header_mmap_anon" = yes; then
15142 cat >>confdefs.h <<\_ACEOF
15143 #define HAVE_MMAP_ANONYMOUS 1
15148 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15149 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15150 if test "${ac_cv_header_stat_broken+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15153 cat >conftest.$ac_ext <<_ACEOF
15156 cat confdefs.h >>conftest.$ac_ext
15157 cat >>conftest.$ac_ext <<_ACEOF
15158 /* end confdefs.h. */
15159 #include <sys/types.h>
15160 #include <sys/stat.h>
15162 #if defined S_ISBLK && defined S_IFDIR
15163 # if S_ISBLK (S_IFDIR)
15168 #if defined S_ISBLK && defined S_IFCHR
15169 # if S_ISBLK (S_IFCHR)
15174 #if defined S_ISLNK && defined S_IFREG
15175 # if S_ISLNK (S_IFREG)
15180 #if defined S_ISSOCK && defined S_IFREG
15181 # if S_ISSOCK (S_IFREG)
15187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15188 $EGREP "You lose" >/dev/null 2>&1; then
15189 ac_cv_header_stat_broken=yes
15191 ac_cv_header_stat_broken=no
15196 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15197 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15198 if test $ac_cv_header_stat_broken = yes; then
15200 cat >>confdefs.h <<\_ACEOF
15201 #define STAT_MACROS_BROKEN 1
15206 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15207 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15208 if test "${ac_cv_header_stdc+set}" = set; then
15209 echo $ECHO_N "(cached) $ECHO_C" >&6
15211 cat >conftest.$ac_ext <<_ACEOF
15214 cat confdefs.h >>conftest.$ac_ext
15215 cat >>conftest.$ac_ext <<_ACEOF
15216 /* end confdefs.h. */
15217 #include <stdlib.h>
15218 #include <stdarg.h>
15219 #include <string.h>
15230 rm -f conftest.$ac_objext
15231 if { (ac_try="$ac_compile"
15232 case "(($ac_try" in
15233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15234 *) ac_try_echo=$ac_try;;
15236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15237 (eval "$ac_compile") 2>conftest.er1
15239 grep -v '^ *+' conftest.er1 >conftest.err
15241 cat conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 (exit $ac_status); } &&
15244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15245 { (case "(($ac_try" in
15246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15247 *) ac_try_echo=$ac_try;;
15249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15250 (eval "$ac_try") 2>&5
15252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15253 (exit $ac_status); }; } &&
15254 { ac_try='test -s conftest.$ac_objext'
15255 { (case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15260 (eval "$ac_try") 2>&5
15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); }; }; then
15264 ac_cv_header_stdc=yes
15266 echo "$as_me: failed program was:" >&5
15267 sed 's/^/| /' conftest.$ac_ext >&5
15269 ac_cv_header_stdc=no
15272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15274 if test $ac_cv_header_stdc = yes; then
15275 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15276 cat >conftest.$ac_ext <<_ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 #include <string.h>
15285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15286 $EGREP "memchr" >/dev/null 2>&1; then
15289 ac_cv_header_stdc=no
15295 if test $ac_cv_header_stdc = yes; then
15296 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15297 cat >conftest.$ac_ext <<_ACEOF
15300 cat confdefs.h >>conftest.$ac_ext
15301 cat >>conftest.$ac_ext <<_ACEOF
15302 /* end confdefs.h. */
15303 #include <stdlib.h>
15306 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15307 $EGREP "free" >/dev/null 2>&1; then
15310 ac_cv_header_stdc=no
15316 if test $ac_cv_header_stdc = yes; then
15317 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15318 if test "$cross_compiling" = yes; then
15321 cat >conftest.$ac_ext <<_ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15328 #include <stdlib.h>
15329 #if ((' ' & 0x0FF) == 0x020)
15330 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15331 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15333 # define ISLOWER(c) \
15334 (('a' <= (c) && (c) <= 'i') \
15335 || ('j' <= (c) && (c) <= 'r') \
15336 || ('s' <= (c) && (c) <= 'z'))
15337 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15340 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15345 for (i = 0; i < 256; i++)
15346 if (XOR (islower (i), ISLOWER (i))
15347 || toupper (i) != TOUPPER (i))
15352 rm -f conftest$ac_exeext
15353 if { (ac_try="$ac_link"
15354 case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_link") 2>&5
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15363 { (case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15368 (eval "$ac_try") 2>&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); }; }; then
15374 echo "$as_me: program exited with status $ac_status" >&5
15375 echo "$as_me: failed program was:" >&5
15376 sed 's/^/| /' conftest.$ac_ext >&5
15378 ( exit $ac_status )
15379 ac_cv_header_stdc=no
15381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15387 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15388 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15389 if test $ac_cv_header_stdc = yes; then
15391 cat >>confdefs.h <<\_ACEOF
15392 #define STDC_HEADERS 1
15397 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15398 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15399 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15402 cat >conftest.$ac_ext <<_ACEOF
15405 cat confdefs.h >>conftest.$ac_ext
15406 cat >>conftest.$ac_ext <<_ACEOF
15407 /* end confdefs.h. */
15408 #include <sys/types.h>
15409 #include <sys/wait.h>
15410 #ifndef WEXITSTATUS
15411 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15414 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15422 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15427 rm -f conftest.$ac_objext
15428 if { (ac_try="$ac_compile"
15429 case "(($ac_try" in
15430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15431 *) ac_try_echo=$ac_try;;
15433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15434 (eval "$ac_compile") 2>conftest.er1
15436 grep -v '^ *+' conftest.er1 >conftest.err
15438 cat conftest.err >&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } &&
15441 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15442 { (case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_try") 2>&5
15449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15450 (exit $ac_status); }; } &&
15451 { ac_try='test -s conftest.$ac_objext'
15452 { (case "(($ac_try" in
15453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454 *) ac_try_echo=$ac_try;;
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_try") 2>&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
15461 ac_cv_header_sys_wait_h=yes
15463 echo "$as_me: failed program was:" >&5
15464 sed 's/^/| /' conftest.$ac_ext >&5
15466 ac_cv_header_sys_wait_h=no
15469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15471 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15472 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15473 if test $ac_cv_header_sys_wait_h = yes; then
15475 cat >>confdefs.h <<\_ACEOF
15476 #define HAVE_SYS_WAIT_H 1
15481 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15482 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15483 if test "${ac_cv_header_time+set}" = set; then
15484 echo $ECHO_N "(cached) $ECHO_C" >&6
15486 cat >conftest.$ac_ext <<_ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15492 #include <sys/types.h>
15493 #include <sys/time.h>
15499 if ((struct tm *) 0)
15505 rm -f conftest.$ac_objext
15506 if { (ac_try="$ac_compile"
15507 case "(($ac_try" in
15508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_compile") 2>conftest.er1
15514 grep -v '^ *+' conftest.er1 >conftest.err
15516 cat conftest.err >&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } &&
15519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15520 { (case "(($ac_try" in
15521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15522 *) ac_try_echo=$ac_try;;
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_try") 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; } &&
15529 { ac_try='test -s conftest.$ac_objext'
15530 { (case "(($ac_try" in
15531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15532 *) ac_try_echo=$ac_try;;
15534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535 (eval "$ac_try") 2>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
15539 ac_cv_header_time=yes
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_cv_header_time=no
15547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15550 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15551 if test $ac_cv_header_time = yes; then
15553 cat >>confdefs.h <<\_ACEOF
15554 #define TIME_WITH_SYS_TIME 1
15566 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15568 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 ac_res=`eval echo '${'$as_ac_Header'}'`
15576 { echo "$as_me:$LINENO: result: $ac_res" >&5
15577 echo "${ECHO_T}$ac_res" >&6; }
15579 # Is the header compilable?
15580 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15582 cat >conftest.$ac_ext <<_ACEOF
15585 cat confdefs.h >>conftest.$ac_ext
15586 cat >>conftest.$ac_ext <<_ACEOF
15587 /* end confdefs.h. */
15588 $ac_includes_default
15589 #include <$ac_header>
15591 rm -f conftest.$ac_objext
15592 if { (ac_try="$ac_compile"
15593 case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_compile") 2>conftest.er1
15600 grep -v '^ *+' conftest.er1 >conftest.err
15602 cat conftest.err >&5
15603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15604 (exit $ac_status); } &&
15605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15606 { (case "(($ac_try" in
15607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15608 *) ac_try_echo=$ac_try;;
15610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15611 (eval "$ac_try") 2>&5
15613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15614 (exit $ac_status); }; } &&
15615 { ac_try='test -s conftest.$ac_objext'
15616 { (case "(($ac_try" in
15617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15618 *) ac_try_echo=$ac_try;;
15620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15621 (eval "$ac_try") 2>&5
15623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15624 (exit $ac_status); }; }; then
15625 ac_header_compiler=yes
15627 echo "$as_me: failed program was:" >&5
15628 sed 's/^/| /' conftest.$ac_ext >&5
15630 ac_header_compiler=no
15633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15635 echo "${ECHO_T}$ac_header_compiler" >&6; }
15637 # Is the header present?
15638 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15640 cat >conftest.$ac_ext <<_ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 #include <$ac_header>
15648 if { (ac_try="$ac_cpp conftest.$ac_ext"
15649 case "(($ac_try" in
15650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651 *) ac_try_echo=$ac_try;;
15653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15656 grep -v '^ *+' conftest.er1 >conftest.err
15658 cat conftest.err >&5
15659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15660 (exit $ac_status); } >/dev/null; then
15661 if test -s conftest.err; then
15662 ac_cpp_err=$ac_c_preproc_warn_flag
15663 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15670 if test -z "$ac_cpp_err"; then
15671 ac_header_preproc=yes
15673 echo "$as_me: failed program was:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ac_header_preproc=no
15679 rm -f conftest.err conftest.$ac_ext
15680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15681 echo "${ECHO_T}$ac_header_preproc" >&6; }
15683 # So? What about this header?
15684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15690 ac_header_preproc=yes
15693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15706 ## ----------------------------------- ##
15707 ## Report this to llvmbugs@cs.uiuc.edu ##
15708 ## ----------------------------------- ##
15710 ) | sed "s/^/$as_me: WARNING: /" >&2
15713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15716 echo $ECHO_N "(cached) $ECHO_C" >&6
15718 eval "$as_ac_Header=\$ac_header_preproc"
15720 ac_res=`eval echo '${'$as_ac_Header'}'`
15721 { echo "$as_me:$LINENO: result: $ac_res" >&5
15722 echo "${ECHO_T}$ac_res" >&6; }
15725 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15726 cat >>confdefs.h <<_ACEOF
15727 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15740 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15747 echo $ECHO_N "(cached) $ECHO_C" >&6
15749 ac_res=`eval echo '${'$as_ac_Header'}'`
15750 { echo "$as_me:$LINENO: result: $ac_res" >&5
15751 echo "${ECHO_T}$ac_res" >&6; }
15753 # Is the header compilable?
15754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15756 cat >conftest.$ac_ext <<_ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 $ac_includes_default
15763 #include <$ac_header>
15765 rm -f conftest.$ac_objext
15766 if { (ac_try="$ac_compile"
15767 case "(($ac_try" in
15768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15769 *) ac_try_echo=$ac_try;;
15771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15772 (eval "$ac_compile") 2>conftest.er1
15774 grep -v '^ *+' conftest.er1 >conftest.err
15776 cat conftest.err >&5
15777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15778 (exit $ac_status); } &&
15779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15780 { (case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_try") 2>&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); }; } &&
15789 { ac_try='test -s conftest.$ac_objext'
15790 { (case "(($ac_try" in
15791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15792 *) ac_try_echo=$ac_try;;
15794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15795 (eval "$ac_try") 2>&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); }; }; then
15799 ac_header_compiler=yes
15801 echo "$as_me: failed program was:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 ac_header_compiler=no
15807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15808 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15809 echo "${ECHO_T}$ac_header_compiler" >&6; }
15811 # Is the header present?
15812 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15813 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15814 cat >conftest.$ac_ext <<_ACEOF
15817 cat confdefs.h >>conftest.$ac_ext
15818 cat >>conftest.$ac_ext <<_ACEOF
15819 /* end confdefs.h. */
15820 #include <$ac_header>
15822 if { (ac_try="$ac_cpp conftest.$ac_ext"
15823 case "(($ac_try" in
15824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15825 *) ac_try_echo=$ac_try;;
15827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15830 grep -v '^ *+' conftest.er1 >conftest.err
15832 cat conftest.err >&5
15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15834 (exit $ac_status); } >/dev/null; then
15835 if test -s conftest.err; then
15836 ac_cpp_err=$ac_c_preproc_warn_flag
15837 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15844 if test -z "$ac_cpp_err"; then
15845 ac_header_preproc=yes
15847 echo "$as_me: failed program was:" >&5
15848 sed 's/^/| /' conftest.$ac_ext >&5
15850 ac_header_preproc=no
15853 rm -f conftest.err conftest.$ac_ext
15854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15855 echo "${ECHO_T}$ac_header_preproc" >&6; }
15857 # So? What about this header?
15858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15861 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15862 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15863 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15864 ac_header_preproc=yes
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15868 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15870 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15872 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15874 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15876 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15877 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15878 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15880 ## ----------------------------------- ##
15881 ## Report this to llvmbugs@cs.uiuc.edu ##
15882 ## ----------------------------------- ##
15884 ) | sed "s/^/$as_me: WARNING: /" >&2
15887 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15888 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890 echo $ECHO_N "(cached) $ECHO_C" >&6
15892 eval "$as_ac_Header=\$ac_header_preproc"
15894 ac_res=`eval echo '${'$as_ac_Header'}'`
15895 { echo "$as_me:$LINENO: result: $ac_res" >&5
15896 echo "${ECHO_T}$ac_res" >&6; }
15899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15900 cat >>confdefs.h <<_ACEOF
15901 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15910 for ac_header in utime.h windows.h
15912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15917 echo $ECHO_N "(cached) $ECHO_C" >&6
15919 ac_res=`eval echo '${'$as_ac_Header'}'`
15920 { echo "$as_me:$LINENO: result: $ac_res" >&5
15921 echo "${ECHO_T}$ac_res" >&6; }
15923 # Is the header compilable?
15924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15926 cat >conftest.$ac_ext <<_ACEOF
15929 cat confdefs.h >>conftest.$ac_ext
15930 cat >>conftest.$ac_ext <<_ACEOF
15931 /* end confdefs.h. */
15932 $ac_includes_default
15933 #include <$ac_header>
15935 rm -f conftest.$ac_objext
15936 if { (ac_try="$ac_compile"
15937 case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_compile") 2>conftest.er1
15944 grep -v '^ *+' conftest.er1 >conftest.err
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15948 (exit $ac_status); } &&
15949 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15950 { (case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_try") 2>&5
15957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15958 (exit $ac_status); }; } &&
15959 { ac_try='test -s conftest.$ac_objext'
15960 { (case "(($ac_try" in
15961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15962 *) ac_try_echo=$ac_try;;
15964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15965 (eval "$ac_try") 2>&5
15967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15968 (exit $ac_status); }; }; then
15969 ac_header_compiler=yes
15971 echo "$as_me: failed program was:" >&5
15972 sed 's/^/| /' conftest.$ac_ext >&5
15974 ac_header_compiler=no
15977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15978 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15979 echo "${ECHO_T}$ac_header_compiler" >&6; }
15981 # Is the header present?
15982 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15983 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15990 #include <$ac_header>
15992 if { (ac_try="$ac_cpp conftest.$ac_ext"
15993 case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16000 grep -v '^ *+' conftest.er1 >conftest.err
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } >/dev/null; then
16005 if test -s conftest.err; then
16006 ac_cpp_err=$ac_c_preproc_warn_flag
16007 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16014 if test -z "$ac_cpp_err"; then
16015 ac_header_preproc=yes
16017 echo "$as_me: failed program was:" >&5
16018 sed 's/^/| /' conftest.$ac_ext >&5
16020 ac_header_preproc=no
16023 rm -f conftest.err conftest.$ac_ext
16024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16025 echo "${ECHO_T}$ac_header_preproc" >&6; }
16027 # So? What about this header?
16028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16034 ac_header_preproc=yes
16037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16050 ## ----------------------------------- ##
16051 ## Report this to llvmbugs@cs.uiuc.edu ##
16052 ## ----------------------------------- ##
16054 ) | sed "s/^/$as_me: WARNING: /" >&2
16057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16060 echo $ECHO_N "(cached) $ECHO_C" >&6
16062 eval "$as_ac_Header=\$ac_header_preproc"
16064 ac_res=`eval echo '${'$as_ac_Header'}'`
16065 { echo "$as_me:$LINENO: result: $ac_res" >&5
16066 echo "${ECHO_T}$ac_res" >&6; }
16069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16070 cat >>confdefs.h <<_ACEOF
16071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16082 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16084 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16085 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16086 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16087 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16088 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16089 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 ac_res=`eval echo '${'$as_ac_Header'}'`
16092 { echo "$as_me:$LINENO: result: $ac_res" >&5
16093 echo "${ECHO_T}$ac_res" >&6; }
16095 # Is the header compilable?
16096 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16097 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16098 cat >conftest.$ac_ext <<_ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16104 $ac_includes_default
16105 #include <$ac_header>
16107 rm -f conftest.$ac_objext
16108 if { (ac_try="$ac_compile"
16109 case "(($ac_try" in
16110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16111 *) ac_try_echo=$ac_try;;
16113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16114 (eval "$ac_compile") 2>conftest.er1
16116 grep -v '^ *+' conftest.er1 >conftest.err
16118 cat conftest.err >&5
16119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } &&
16121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16122 { (case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_try") 2>&5
16129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16130 (exit $ac_status); }; } &&
16131 { ac_try='test -s conftest.$ac_objext'
16132 { (case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_try") 2>&5
16139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); }; }; then
16141 ac_header_compiler=yes
16143 echo "$as_me: failed program was:" >&5
16144 sed 's/^/| /' conftest.$ac_ext >&5
16146 ac_header_compiler=no
16149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16151 echo "${ECHO_T}$ac_header_compiler" >&6; }
16153 # Is the header present?
16154 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16155 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16156 cat >conftest.$ac_ext <<_ACEOF
16159 cat confdefs.h >>conftest.$ac_ext
16160 cat >>conftest.$ac_ext <<_ACEOF
16161 /* end confdefs.h. */
16162 #include <$ac_header>
16164 if { (ac_try="$ac_cpp conftest.$ac_ext"
16165 case "(($ac_try" in
16166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16167 *) ac_try_echo=$ac_try;;
16169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16172 grep -v '^ *+' conftest.er1 >conftest.err
16174 cat conftest.err >&5
16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16176 (exit $ac_status); } >/dev/null; then
16177 if test -s conftest.err; then
16178 ac_cpp_err=$ac_c_preproc_warn_flag
16179 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16186 if test -z "$ac_cpp_err"; then
16187 ac_header_preproc=yes
16189 echo "$as_me: failed program was:" >&5
16190 sed 's/^/| /' conftest.$ac_ext >&5
16192 ac_header_preproc=no
16195 rm -f conftest.err conftest.$ac_ext
16196 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16197 echo "${ECHO_T}$ac_header_preproc" >&6; }
16199 # So? What about this header?
16200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16202 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16203 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16204 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16206 ac_header_preproc=yes
16209 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16210 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16211 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16212 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16214 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16216 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16217 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16219 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16220 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16222 ## ----------------------------------- ##
16223 ## Report this to llvmbugs@cs.uiuc.edu ##
16224 ## ----------------------------------- ##
16226 ) | sed "s/^/$as_me: WARNING: /" >&2
16229 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16230 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16234 eval "$as_ac_Header=\$ac_header_preproc"
16236 ac_res=`eval echo '${'$as_ac_Header'}'`
16237 { echo "$as_me:$LINENO: result: $ac_res" >&5
16238 echo "${ECHO_T}$ac_res" >&6; }
16241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16242 cat >>confdefs.h <<_ACEOF
16243 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16254 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16256 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16258 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16259 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16261 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 ac_res=`eval echo '${'$as_ac_Header'}'`
16264 { echo "$as_me:$LINENO: result: $ac_res" >&5
16265 echo "${ECHO_T}$ac_res" >&6; }
16267 # Is the header compilable?
16268 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16269 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16270 cat >conftest.$ac_ext <<_ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h. */
16276 $ac_includes_default
16277 #include <$ac_header>
16279 rm -f conftest.$ac_objext
16280 if { (ac_try="$ac_compile"
16281 case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_compile") 2>conftest.er1
16288 grep -v '^ *+' conftest.er1 >conftest.err
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } &&
16293 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16294 { (case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_try") 2>&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); }; } &&
16303 { ac_try='test -s conftest.$ac_objext'
16304 { (case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_try") 2>&5
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_header_compiler=yes
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 ac_header_compiler=no
16321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16323 echo "${ECHO_T}$ac_header_compiler" >&6; }
16325 # Is the header present?
16326 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16327 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16328 cat >conftest.$ac_ext <<_ACEOF
16331 cat confdefs.h >>conftest.$ac_ext
16332 cat >>conftest.$ac_ext <<_ACEOF
16333 /* end confdefs.h. */
16334 #include <$ac_header>
16336 if { (ac_try="$ac_cpp conftest.$ac_ext"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16344 grep -v '^ *+' conftest.er1 >conftest.err
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } >/dev/null; then
16349 if test -s conftest.err; then
16350 ac_cpp_err=$ac_c_preproc_warn_flag
16351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16358 if test -z "$ac_cpp_err"; then
16359 ac_header_preproc=yes
16361 echo "$as_me: failed program was:" >&5
16362 sed 's/^/| /' conftest.$ac_ext >&5
16364 ac_header_preproc=no
16367 rm -f conftest.err conftest.$ac_ext
16368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16369 echo "${ECHO_T}$ac_header_preproc" >&6; }
16371 # So? What about this header?
16372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16378 ac_header_preproc=yes
16381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16394 ## ----------------------------------- ##
16395 ## Report this to llvmbugs@cs.uiuc.edu ##
16396 ## ----------------------------------- ##
16398 ) | sed "s/^/$as_me: WARNING: /" >&2
16401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16404 echo $ECHO_N "(cached) $ECHO_C" >&6
16406 eval "$as_ac_Header=\$ac_header_preproc"
16408 ac_res=`eval echo '${'$as_ac_Header'}'`
16409 { echo "$as_me:$LINENO: result: $ac_res" >&5
16410 echo "${ECHO_T}$ac_res" >&6; }
16413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16414 cat >>confdefs.h <<_ACEOF
16415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16423 for ac_header in valgrind/valgrind.h
16425 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16427 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16428 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16429 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16430 echo $ECHO_N "(cached) $ECHO_C" >&6
16432 ac_res=`eval echo '${'$as_ac_Header'}'`
16433 { echo "$as_me:$LINENO: result: $ac_res" >&5
16434 echo "${ECHO_T}$ac_res" >&6; }
16436 # Is the header compilable?
16437 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16438 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16439 cat >conftest.$ac_ext <<_ACEOF
16442 cat confdefs.h >>conftest.$ac_ext
16443 cat >>conftest.$ac_ext <<_ACEOF
16444 /* end confdefs.h. */
16445 $ac_includes_default
16446 #include <$ac_header>
16448 rm -f conftest.$ac_objext
16449 if { (ac_try="$ac_compile"
16450 case "(($ac_try" in
16451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16452 *) ac_try_echo=$ac_try;;
16454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16455 (eval "$ac_compile") 2>conftest.er1
16457 grep -v '^ *+' conftest.er1 >conftest.err
16459 cat conftest.err >&5
16460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16461 (exit $ac_status); } &&
16462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16463 { (case "(($ac_try" in
16464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16465 *) ac_try_echo=$ac_try;;
16467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16468 (eval "$ac_try") 2>&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); }; } &&
16472 { ac_try='test -s conftest.$ac_objext'
16473 { (case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_try") 2>&5
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; }; then
16482 ac_header_compiler=yes
16484 echo "$as_me: failed program was:" >&5
16485 sed 's/^/| /' conftest.$ac_ext >&5
16487 ac_header_compiler=no
16490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16491 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16492 echo "${ECHO_T}$ac_header_compiler" >&6; }
16494 # Is the header present?
16495 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16496 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16497 cat >conftest.$ac_ext <<_ACEOF
16500 cat confdefs.h >>conftest.$ac_ext
16501 cat >>conftest.$ac_ext <<_ACEOF
16502 /* end confdefs.h. */
16503 #include <$ac_header>
16505 if { (ac_try="$ac_cpp conftest.$ac_ext"
16506 case "(($ac_try" in
16507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16508 *) ac_try_echo=$ac_try;;
16510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16513 grep -v '^ *+' conftest.er1 >conftest.err
16515 cat conftest.err >&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); } >/dev/null; then
16518 if test -s conftest.err; then
16519 ac_cpp_err=$ac_c_preproc_warn_flag
16520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16527 if test -z "$ac_cpp_err"; then
16528 ac_header_preproc=yes
16530 echo "$as_me: failed program was:" >&5
16531 sed 's/^/| /' conftest.$ac_ext >&5
16533 ac_header_preproc=no
16536 rm -f conftest.err conftest.$ac_ext
16537 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16538 echo "${ECHO_T}$ac_header_preproc" >&6; }
16540 # So? What about this header?
16541 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16543 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16544 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16545 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16546 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16547 ac_header_preproc=yes
16550 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16551 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16552 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16553 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16555 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16557 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16558 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16559 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16560 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16561 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16563 ## ----------------------------------- ##
16564 ## Report this to llvmbugs@cs.uiuc.edu ##
16565 ## ----------------------------------- ##
16567 ) | sed "s/^/$as_me: WARNING: /" >&2
16570 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16571 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16573 echo $ECHO_N "(cached) $ECHO_C" >&6
16575 eval "$as_ac_Header=\$ac_header_preproc"
16577 ac_res=`eval echo '${'$as_ac_Header'}'`
16578 { echo "$as_me:$LINENO: result: $ac_res" >&5
16579 echo "${ECHO_T}$ac_res" >&6; }
16582 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16583 cat >>confdefs.h <<_ACEOF
16584 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16591 if test "$ENABLE_THREADS" -eq 1 ; then
16593 for ac_header in pthread.h
16595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 ac_res=`eval echo '${'$as_ac_Header'}'`
16603 { echo "$as_me:$LINENO: result: $ac_res" >&5
16604 echo "${ECHO_T}$ac_res" >&6; }
16606 # Is the header compilable?
16607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16609 cat >conftest.$ac_ext <<_ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16615 $ac_includes_default
16616 #include <$ac_header>
16618 rm -f conftest.$ac_objext
16619 if { (ac_try="$ac_compile"
16620 case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_compile") 2>conftest.er1
16627 grep -v '^ *+' conftest.er1 >conftest.err
16629 cat conftest.err >&5
16630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16631 (exit $ac_status); } &&
16632 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16633 { (case "(($ac_try" in
16634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_try") 2>&5
16640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16641 (exit $ac_status); }; } &&
16642 { ac_try='test -s conftest.$ac_objext'
16643 { (case "(($ac_try" in
16644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16645 *) ac_try_echo=$ac_try;;
16647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16648 (eval "$ac_try") 2>&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); }; }; then
16652 ac_header_compiler=yes
16654 echo "$as_me: failed program was:" >&5
16655 sed 's/^/| /' conftest.$ac_ext >&5
16657 ac_header_compiler=no
16660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16661 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16662 echo "${ECHO_T}$ac_header_compiler" >&6; }
16664 # Is the header present?
16665 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16666 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16667 cat >conftest.$ac_ext <<_ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */
16673 #include <$ac_header>
16675 if { (ac_try="$ac_cpp conftest.$ac_ext"
16676 case "(($ac_try" in
16677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16678 *) ac_try_echo=$ac_try;;
16680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16681 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16683 grep -v '^ *+' conftest.er1 >conftest.err
16685 cat conftest.err >&5
16686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16687 (exit $ac_status); } >/dev/null; then
16688 if test -s conftest.err; then
16689 ac_cpp_err=$ac_c_preproc_warn_flag
16690 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16697 if test -z "$ac_cpp_err"; then
16698 ac_header_preproc=yes
16700 echo "$as_me: failed program was:" >&5
16701 sed 's/^/| /' conftest.$ac_ext >&5
16703 ac_header_preproc=no
16706 rm -f conftest.err conftest.$ac_ext
16707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16708 echo "${ECHO_T}$ac_header_preproc" >&6; }
16710 # So? What about this header?
16711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16713 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16714 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16716 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16717 ac_header_preproc=yes
16720 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16721 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16722 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16723 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16725 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16727 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16729 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16731 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16733 ## ----------------------------------- ##
16734 ## Report this to llvmbugs@cs.uiuc.edu ##
16735 ## ----------------------------------- ##
16737 ) | sed "s/^/$as_me: WARNING: /" >&2
16740 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16741 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16743 echo $ECHO_N "(cached) $ECHO_C" >&6
16745 eval "$as_ac_Header=\$ac_header_preproc"
16747 ac_res=`eval echo '${'$as_ac_Header'}'`
16748 { echo "$as_me:$LINENO: result: $ac_res" >&5
16749 echo "${ECHO_T}$ac_res" >&6; }
16752 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16753 cat >>confdefs.h <<_ACEOF
16754 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16770 if test "$llvm_cv_enable_libffi" = "yes" ; then
16773 for ac_header in ffi.h ffi/ffi.h
16775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 ac_res=`eval echo '${'$as_ac_Header'}'`
16783 { echo "$as_me:$LINENO: result: $ac_res" >&5
16784 echo "${ECHO_T}$ac_res" >&6; }
16786 # Is the header compilable?
16787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 $ac_includes_default
16796 #include <$ac_header>
16798 rm -f conftest.$ac_objext
16799 if { (ac_try="$ac_compile"
16800 case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_compile") 2>conftest.er1
16807 grep -v '^ *+' conftest.er1 >conftest.err
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } &&
16812 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16813 { (case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_try") 2>&5
16820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16821 (exit $ac_status); }; } &&
16822 { ac_try='test -s conftest.$ac_objext'
16823 { (case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_try") 2>&5
16830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16831 (exit $ac_status); }; }; then
16832 ac_header_compiler=yes
16834 echo "$as_me: failed program was:" >&5
16835 sed 's/^/| /' conftest.$ac_ext >&5
16837 ac_header_compiler=no
16840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16842 echo "${ECHO_T}$ac_header_compiler" >&6; }
16844 # Is the header present?
16845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16847 cat >conftest.$ac_ext <<_ACEOF
16850 cat confdefs.h >>conftest.$ac_ext
16851 cat >>conftest.$ac_ext <<_ACEOF
16852 /* end confdefs.h. */
16853 #include <$ac_header>
16855 if { (ac_try="$ac_cpp conftest.$ac_ext"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16863 grep -v '^ *+' conftest.er1 >conftest.err
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } >/dev/null; then
16868 if test -s conftest.err; then
16869 ac_cpp_err=$ac_c_preproc_warn_flag
16870 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16877 if test -z "$ac_cpp_err"; then
16878 ac_header_preproc=yes
16880 echo "$as_me: failed program was:" >&5
16881 sed 's/^/| /' conftest.$ac_ext >&5
16883 ac_header_preproc=no
16886 rm -f conftest.err conftest.$ac_ext
16887 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16888 echo "${ECHO_T}$ac_header_preproc" >&6; }
16890 # So? What about this header?
16891 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16893 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16894 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16895 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16896 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16897 ac_header_preproc=yes
16900 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16901 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16903 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16905 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16907 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16909 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16911 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16913 ## ----------------------------------- ##
16914 ## Report this to llvmbugs@cs.uiuc.edu ##
16915 ## ----------------------------------- ##
16917 ) | sed "s/^/$as_me: WARNING: /" >&2
16920 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16921 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16923 echo $ECHO_N "(cached) $ECHO_C" >&6
16925 eval "$as_ac_Header=\$ac_header_preproc"
16927 ac_res=`eval echo '${'$as_ac_Header'}'`
16928 { echo "$as_me:$LINENO: result: $ac_res" >&5
16929 echo "${ECHO_T}$ac_res" >&6; }
16932 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16933 cat >>confdefs.h <<_ACEOF
16934 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16944 for ac_header in CrashReporterClient.h
16946 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16948 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16949 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16951 echo $ECHO_N "(cached) $ECHO_C" >&6
16953 ac_res=`eval echo '${'$as_ac_Header'}'`
16954 { echo "$as_me:$LINENO: result: $ac_res" >&5
16955 echo "${ECHO_T}$ac_res" >&6; }
16957 # Is the header compilable?
16958 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16959 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16960 cat >conftest.$ac_ext <<_ACEOF
16963 cat confdefs.h >>conftest.$ac_ext
16964 cat >>conftest.$ac_ext <<_ACEOF
16965 /* end confdefs.h. */
16966 $ac_includes_default
16967 #include <$ac_header>
16969 rm -f conftest.$ac_objext
16970 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
16978 grep -v '^ *+' conftest.er1 >conftest.err
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } &&
16983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16984 { (case "(($ac_try" in
16985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16986 *) ac_try_echo=$ac_try;;
16988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16989 (eval "$ac_try") 2>&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; } &&
16993 { ac_try='test -s conftest.$ac_objext'
16994 { (case "(($ac_try" in
16995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16996 *) ac_try_echo=$ac_try;;
16998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16999 (eval "$ac_try") 2>&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); }; }; then
17003 ac_header_compiler=yes
17005 echo "$as_me: failed program was:" >&5
17006 sed 's/^/| /' conftest.$ac_ext >&5
17008 ac_header_compiler=no
17011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17012 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17013 echo "${ECHO_T}$ac_header_compiler" >&6; }
17015 # Is the header present?
17016 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17017 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17018 cat >conftest.$ac_ext <<_ACEOF
17021 cat confdefs.h >>conftest.$ac_ext
17022 cat >>conftest.$ac_ext <<_ACEOF
17023 /* end confdefs.h. */
17024 #include <$ac_header>
17026 if { (ac_try="$ac_cpp conftest.$ac_ext"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17034 grep -v '^ *+' conftest.er1 >conftest.err
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17038 (exit $ac_status); } >/dev/null; then
17039 if test -s conftest.err; then
17040 ac_cpp_err=$ac_c_preproc_warn_flag
17041 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17048 if test -z "$ac_cpp_err"; then
17049 ac_header_preproc=yes
17051 echo "$as_me: failed program was:" >&5
17052 sed 's/^/| /' conftest.$ac_ext >&5
17054 ac_header_preproc=no
17057 rm -f conftest.err conftest.$ac_ext
17058 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17059 echo "${ECHO_T}$ac_header_preproc" >&6; }
17061 # So? What about this header?
17062 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17064 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17065 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17066 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17067 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17068 ac_header_preproc=yes
17071 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17072 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17073 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17074 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17075 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17076 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17078 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17080 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17081 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17082 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17084 ## ----------------------------------- ##
17085 ## Report this to llvmbugs@cs.uiuc.edu ##
17086 ## ----------------------------------- ##
17088 ) | sed "s/^/$as_me: WARNING: /" >&2
17091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17096 eval "$as_ac_Header=\$ac_header_preproc"
17098 ac_res=`eval echo '${'$as_ac_Header'}'`
17099 { echo "$as_me:$LINENO: result: $ac_res" >&5
17100 echo "${ECHO_T}$ac_res" >&6; }
17103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17104 cat >>confdefs.h <<_ACEOF
17105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17116 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17117 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17118 if test "${ac_cv_huge_val_sanity+set}" = set; then
17119 echo $ECHO_N "(cached) $ECHO_C" >&6
17123 ac_cpp='$CXXCPP $CPPFLAGS'
17124 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17125 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17126 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17128 ac_save_CXXFLAGS=$CXXFLAGS
17130 if test "$cross_compiling" = yes; then
17131 ac_cv_huge_val_sanity=yes
17133 cat >conftest.$ac_ext <<_ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17143 double x = HUGE_VAL; return x != x;
17148 rm -f conftest$ac_exeext
17149 if { (ac_try="$ac_link"
17150 case "(($ac_try" in
17151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17152 *) ac_try_echo=$ac_try;;
17154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17155 (eval "$ac_link") 2>&5
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17159 { (case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_try") 2>&5
17166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17167 (exit $ac_status); }; }; then
17168 ac_cv_huge_val_sanity=yes
17170 echo "$as_me: program exited with status $ac_status" >&5
17171 echo "$as_me: failed program was:" >&5
17172 sed 's/^/| /' conftest.$ac_ext >&5
17174 ( exit $ac_status )
17175 ac_cv_huge_val_sanity=no
17177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17181 CXXFLAGS=$ac_save_CXXFLAGS
17183 ac_cpp='$CPP $CPPFLAGS'
17184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17190 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17191 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17192 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17195 { echo "$as_me:$LINENO: checking for pid_t" >&5
17196 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17197 if test "${ac_cv_type_pid_t+set}" = set; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 cat >conftest.$ac_ext <<_ACEOF
17203 cat confdefs.h >>conftest.$ac_ext
17204 cat >>conftest.$ac_ext <<_ACEOF
17205 /* end confdefs.h. */
17206 $ac_includes_default
17207 typedef pid_t ac__type_new_;
17211 if ((ac__type_new_ *) 0)
17213 if (sizeof (ac__type_new_))
17219 rm -f conftest.$ac_objext
17220 if { (ac_try="$ac_compile"
17221 case "(($ac_try" in
17222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17223 *) ac_try_echo=$ac_try;;
17225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17226 (eval "$ac_compile") 2>conftest.er1
17228 grep -v '^ *+' conftest.er1 >conftest.err
17230 cat conftest.err >&5
17231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } &&
17233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17234 { (case "(($ac_try" in
17235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17236 *) ac_try_echo=$ac_try;;
17238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17239 (eval "$ac_try") 2>&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); }; } &&
17243 { ac_try='test -s conftest.$ac_objext'
17244 { (case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_try") 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; }; then
17253 ac_cv_type_pid_t=yes
17255 echo "$as_me: failed program was:" >&5
17256 sed 's/^/| /' conftest.$ac_ext >&5
17258 ac_cv_type_pid_t=no
17261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17263 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17264 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17265 if test $ac_cv_type_pid_t = yes; then
17269 cat >>confdefs.h <<_ACEOF
17275 { echo "$as_me:$LINENO: checking for size_t" >&5
17276 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17277 if test "${ac_cv_type_size_t+set}" = set; then
17278 echo $ECHO_N "(cached) $ECHO_C" >&6
17280 cat >conftest.$ac_ext <<_ACEOF
17283 cat confdefs.h >>conftest.$ac_ext
17284 cat >>conftest.$ac_ext <<_ACEOF
17285 /* end confdefs.h. */
17286 $ac_includes_default
17287 typedef size_t ac__type_new_;
17291 if ((ac__type_new_ *) 0)
17293 if (sizeof (ac__type_new_))
17299 rm -f conftest.$ac_objext
17300 if { (ac_try="$ac_compile"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_compile") 2>conftest.er1
17308 grep -v '^ *+' conftest.er1 >conftest.err
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } &&
17313 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17314 { (case "(($ac_try" in
17315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17316 *) ac_try_echo=$ac_try;;
17318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17319 (eval "$ac_try") 2>&5
17321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17322 (exit $ac_status); }; } &&
17323 { ac_try='test -s conftest.$ac_objext'
17324 { (case "(($ac_try" in
17325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17326 *) ac_try_echo=$ac_try;;
17328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17329 (eval "$ac_try") 2>&5
17331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17332 (exit $ac_status); }; }; then
17333 ac_cv_type_size_t=yes
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17338 ac_cv_type_size_t=no
17341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17343 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17344 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17345 if test $ac_cv_type_size_t = yes; then
17349 cat >>confdefs.h <<_ACEOF
17350 #define size_t unsigned int
17356 cat >>confdefs.h <<_ACEOF
17357 #define RETSIGTYPE void
17360 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17361 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17362 if test "${ac_cv_struct_tm+set}" = set; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17365 cat >conftest.$ac_ext <<_ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 #include <sys/types.h>
17377 struct tm *tp; tp->tm_sec;
17382 rm -f conftest.$ac_objext
17383 if { (ac_try="$ac_compile"
17384 case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_compile") 2>conftest.er1
17391 grep -v '^ *+' conftest.er1 >conftest.err
17393 cat conftest.err >&5
17394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17395 (exit $ac_status); } &&
17396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17397 { (case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_try") 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); }; } &&
17406 { ac_try='test -s conftest.$ac_objext'
17407 { (case "(($ac_try" in
17408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17409 *) ac_try_echo=$ac_try;;
17411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17412 (eval "$ac_try") 2>&5
17414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17415 (exit $ac_status); }; }; then
17416 ac_cv_struct_tm=time.h
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17421 ac_cv_struct_tm=sys/time.h
17424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17426 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17427 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17428 if test $ac_cv_struct_tm = sys/time.h; then
17430 cat >>confdefs.h <<\_ACEOF
17431 #define TM_IN_SYS_TIME 1
17436 { echo "$as_me:$LINENO: checking for int64_t" >&5
17437 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17438 if test "${ac_cv_type_int64_t+set}" = set; then
17439 echo $ECHO_N "(cached) $ECHO_C" >&6
17441 cat >conftest.$ac_ext <<_ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h. */
17447 $ac_includes_default
17448 typedef int64_t ac__type_new_;
17452 if ((ac__type_new_ *) 0)
17454 if (sizeof (ac__type_new_))
17460 rm -f conftest.$ac_objext
17461 if { (ac_try="$ac_compile"
17462 case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_compile") 2>conftest.er1
17469 grep -v '^ *+' conftest.er1 >conftest.err
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17475 { (case "(($ac_try" in
17476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477 *) ac_try_echo=$ac_try;;
17479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480 (eval "$ac_try") 2>&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest.$ac_objext'
17485 { (case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_try") 2>&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 ac_cv_type_int64_t=yes
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17499 ac_cv_type_int64_t=no
17502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17504 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17505 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17506 if test $ac_cv_type_int64_t = yes; then
17508 cat >>confdefs.h <<_ACEOF
17509 #define HAVE_INT64_T 1
17514 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17515 echo "$as_me: error: Type int64_t required but not found" >&2;}
17516 { (exit 1); exit 1; }; }
17519 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17520 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17521 if test "${ac_cv_type_uint64_t+set}" = set; then
17522 echo $ECHO_N "(cached) $ECHO_C" >&6
17524 cat >conftest.$ac_ext <<_ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17530 $ac_includes_default
17531 typedef uint64_t ac__type_new_;
17535 if ((ac__type_new_ *) 0)
17537 if (sizeof (ac__type_new_))
17543 rm -f conftest.$ac_objext
17544 if { (ac_try="$ac_compile"
17545 case "(($ac_try" in
17546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17547 *) ac_try_echo=$ac_try;;
17549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17550 (eval "$ac_compile") 2>conftest.er1
17552 grep -v '^ *+' conftest.er1 >conftest.err
17554 cat conftest.err >&5
17555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17556 (exit $ac_status); } &&
17557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17558 { (case "(($ac_try" in
17559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17560 *) ac_try_echo=$ac_try;;
17562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17563 (eval "$ac_try") 2>&5
17565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17566 (exit $ac_status); }; } &&
17567 { ac_try='test -s conftest.$ac_objext'
17568 { (case "(($ac_try" in
17569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17570 *) ac_try_echo=$ac_try;;
17572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17573 (eval "$ac_try") 2>&5
17575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17576 (exit $ac_status); }; }; then
17577 ac_cv_type_uint64_t=yes
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17582 ac_cv_type_uint64_t=no
17585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17587 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17588 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17589 if test $ac_cv_type_uint64_t = yes; then
17591 cat >>confdefs.h <<_ACEOF
17592 #define HAVE_UINT64_T 1
17597 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17598 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17599 if test "${ac_cv_type_u_int64_t+set}" = set; then
17600 echo $ECHO_N "(cached) $ECHO_C" >&6
17602 cat >conftest.$ac_ext <<_ACEOF
17605 cat confdefs.h >>conftest.$ac_ext
17606 cat >>conftest.$ac_ext <<_ACEOF
17607 /* end confdefs.h. */
17608 $ac_includes_default
17609 typedef u_int64_t ac__type_new_;
17613 if ((ac__type_new_ *) 0)
17615 if (sizeof (ac__type_new_))
17621 rm -f conftest.$ac_objext
17622 if { (ac_try="$ac_compile"
17623 case "(($ac_try" in
17624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17625 *) ac_try_echo=$ac_try;;
17627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17628 (eval "$ac_compile") 2>conftest.er1
17630 grep -v '^ *+' conftest.er1 >conftest.err
17632 cat conftest.err >&5
17633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17634 (exit $ac_status); } &&
17635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17636 { (case "(($ac_try" in
17637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17638 *) ac_try_echo=$ac_try;;
17640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17641 (eval "$ac_try") 2>&5
17643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17644 (exit $ac_status); }; } &&
17645 { ac_try='test -s conftest.$ac_objext'
17646 { (case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_try") 2>&5
17653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17654 (exit $ac_status); }; }; then
17655 ac_cv_type_u_int64_t=yes
17657 echo "$as_me: failed program was:" >&5
17658 sed 's/^/| /' conftest.$ac_ext >&5
17660 ac_cv_type_u_int64_t=no
17663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17665 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17666 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17667 if test $ac_cv_type_u_int64_t = yes; then
17669 cat >>confdefs.h <<_ACEOF
17670 #define HAVE_U_INT64_T 1
17675 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17676 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17677 { (exit 1); exit 1; }; }
17691 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 cat >conftest.$ac_ext <<_ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17707 #define $ac_func innocuous_$ac_func
17709 /* System header to define __stub macros and hopefully few prototypes,
17710 which can conflict with char $ac_func (); below.
17711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17712 <limits.h> exists even on freestanding compilers. */
17715 # include <limits.h>
17717 # include <assert.h>
17722 /* Override any GCC internal prototype to avoid an error.
17723 Use char because int might match the return type of a GCC
17724 builtin and then its argument prototype would still apply. */
17729 /* The GNU C library defines this for functions which it implements
17730 to always fail with ENOSYS. Some functions are actually named
17731 something starting with __ and the normal name is an alias. */
17732 #if defined __stub_$ac_func || defined __stub___$ac_func
17739 return $ac_func ();
17744 rm -f conftest.$ac_objext conftest$ac_exeext
17745 if { (ac_try="$ac_link"
17746 case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_link") 2>conftest.er1
17753 grep -v '^ *+' conftest.er1 >conftest.err
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); } &&
17758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17759 { (case "(($ac_try" in
17760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17761 *) ac_try_echo=$ac_try;;
17763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17764 (eval "$ac_try") 2>&5
17766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17767 (exit $ac_status); }; } &&
17768 { ac_try='test -s conftest$ac_exeext'
17769 { (case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_try") 2>&5
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); }; }; then
17778 eval "$as_ac_var=yes"
17780 echo "$as_me: failed program was:" >&5
17781 sed 's/^/| /' conftest.$ac_ext >&5
17783 eval "$as_ac_var=no"
17786 rm -f core conftest.err conftest.$ac_objext \
17787 conftest$ac_exeext conftest.$ac_ext
17789 ac_res=`eval echo '${'$as_ac_var'}'`
17790 { echo "$as_me:$LINENO: result: $ac_res" >&5
17791 echo "${ECHO_T}$ac_res" >&6; }
17792 if test `eval echo '${'$as_ac_var'}'` = yes; then
17793 cat >>confdefs.h <<_ACEOF
17794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17804 for ac_func in powf fmodf strtof round
17806 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17807 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17808 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17809 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17810 echo $ECHO_N "(cached) $ECHO_C" >&6
17812 cat >conftest.$ac_ext <<_ACEOF
17815 cat confdefs.h >>conftest.$ac_ext
17816 cat >>conftest.$ac_ext <<_ACEOF
17817 /* end confdefs.h. */
17818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17820 #define $ac_func innocuous_$ac_func
17822 /* System header to define __stub macros and hopefully few prototypes,
17823 which can conflict with char $ac_func (); below.
17824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17825 <limits.h> exists even on freestanding compilers. */
17828 # include <limits.h>
17830 # include <assert.h>
17835 /* Override any GCC internal prototype to avoid an error.
17836 Use char because int might match the return type of a GCC
17837 builtin and then its argument prototype would still apply. */
17842 /* The GNU C library defines this for functions which it implements
17843 to always fail with ENOSYS. Some functions are actually named
17844 something starting with __ and the normal name is an alias. */
17845 #if defined __stub_$ac_func || defined __stub___$ac_func
17852 return $ac_func ();
17857 rm -f conftest.$ac_objext conftest$ac_exeext
17858 if { (ac_try="$ac_link"
17859 case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_link") 2>conftest.er1
17866 grep -v '^ *+' conftest.er1 >conftest.err
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } &&
17871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17872 { (case "(($ac_try" in
17873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17874 *) ac_try_echo=$ac_try;;
17876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17877 (eval "$ac_try") 2>&5
17879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17880 (exit $ac_status); }; } &&
17881 { ac_try='test -s conftest$ac_exeext'
17882 { (case "(($ac_try" in
17883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17884 *) ac_try_echo=$ac_try;;
17886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17887 (eval "$ac_try") 2>&5
17889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17890 (exit $ac_status); }; }; then
17891 eval "$as_ac_var=yes"
17893 echo "$as_me: failed program was:" >&5
17894 sed 's/^/| /' conftest.$ac_ext >&5
17896 eval "$as_ac_var=no"
17899 rm -f core conftest.err conftest.$ac_objext \
17900 conftest$ac_exeext conftest.$ac_ext
17902 ac_res=`eval echo '${'$as_ac_var'}'`
17903 { echo "$as_me:$LINENO: result: $ac_res" >&5
17904 echo "${ECHO_T}$ac_res" >&6; }
17905 if test `eval echo '${'$as_ac_var'}'` = yes; then
17906 cat >>confdefs.h <<_ACEOF
17907 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17918 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17924 echo $ECHO_N "(cached) $ECHO_C" >&6
17926 cat >conftest.$ac_ext <<_ACEOF
17929 cat confdefs.h >>conftest.$ac_ext
17930 cat >>conftest.$ac_ext <<_ACEOF
17931 /* end confdefs.h. */
17932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17934 #define $ac_func innocuous_$ac_func
17936 /* System header to define __stub macros and hopefully few prototypes,
17937 which can conflict with char $ac_func (); below.
17938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17939 <limits.h> exists even on freestanding compilers. */
17942 # include <limits.h>
17944 # include <assert.h>
17949 /* Override any GCC internal prototype to avoid an error.
17950 Use char because int might match the return type of a GCC
17951 builtin and then its argument prototype would still apply. */
17956 /* The GNU C library defines this for functions which it implements
17957 to always fail with ENOSYS. Some functions are actually named
17958 something starting with __ and the normal name is an alias. */
17959 #if defined __stub_$ac_func || defined __stub___$ac_func
17966 return $ac_func ();
17971 rm -f conftest.$ac_objext conftest$ac_exeext
17972 if { (ac_try="$ac_link"
17973 case "(($ac_try" in
17974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17975 *) ac_try_echo=$ac_try;;
17977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17978 (eval "$ac_link") 2>conftest.er1
17980 grep -v '^ *+' conftest.er1 >conftest.err
17982 cat conftest.err >&5
17983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17984 (exit $ac_status); } &&
17985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17986 { (case "(($ac_try" in
17987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17988 *) ac_try_echo=$ac_try;;
17990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17991 (eval "$ac_try") 2>&5
17993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17994 (exit $ac_status); }; } &&
17995 { ac_try='test -s conftest$ac_exeext'
17996 { (case "(($ac_try" in
17997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17998 *) ac_try_echo=$ac_try;;
18000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18001 (eval "$ac_try") 2>&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); }; }; then
18005 eval "$as_ac_var=yes"
18007 echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18010 eval "$as_ac_var=no"
18013 rm -f core conftest.err conftest.$ac_objext \
18014 conftest$ac_exeext conftest.$ac_ext
18016 ac_res=`eval echo '${'$as_ac_var'}'`
18017 { echo "$as_me:$LINENO: result: $ac_res" >&5
18018 echo "${ECHO_T}$ac_res" >&6; }
18019 if test `eval echo '${'$as_ac_var'}'` = yes; then
18020 cat >>confdefs.h <<_ACEOF
18021 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18030 for ac_func in isatty mkdtemp mkstemp
18032 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18033 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18034 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18035 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18036 echo $ECHO_N "(cached) $ECHO_C" >&6
18038 cat >conftest.$ac_ext <<_ACEOF
18041 cat confdefs.h >>conftest.$ac_ext
18042 cat >>conftest.$ac_ext <<_ACEOF
18043 /* end confdefs.h. */
18044 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18045 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18046 #define $ac_func innocuous_$ac_func
18048 /* System header to define __stub macros and hopefully few prototypes,
18049 which can conflict with char $ac_func (); below.
18050 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18051 <limits.h> exists even on freestanding compilers. */
18054 # include <limits.h>
18056 # include <assert.h>
18061 /* Override any GCC internal prototype to avoid an error.
18062 Use char because int might match the return type of a GCC
18063 builtin and then its argument prototype would still apply. */
18068 /* The GNU C library defines this for functions which it implements
18069 to always fail with ENOSYS. Some functions are actually named
18070 something starting with __ and the normal name is an alias. */
18071 #if defined __stub_$ac_func || defined __stub___$ac_func
18078 return $ac_func ();
18083 rm -f conftest.$ac_objext conftest$ac_exeext
18084 if { (ac_try="$ac_link"
18085 case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_link") 2>conftest.er1
18092 grep -v '^ *+' conftest.er1 >conftest.err
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } &&
18097 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18098 { (case "(($ac_try" in
18099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18100 *) ac_try_echo=$ac_try;;
18102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18103 (eval "$ac_try") 2>&5
18105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); }; } &&
18107 { ac_try='test -s conftest$ac_exeext'
18108 { (case "(($ac_try" in
18109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18110 *) ac_try_echo=$ac_try;;
18112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18113 (eval "$ac_try") 2>&5
18115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 eval "$as_ac_var=yes"
18119 echo "$as_me: failed program was:" >&5
18120 sed 's/^/| /' conftest.$ac_ext >&5
18122 eval "$as_ac_var=no"
18125 rm -f core conftest.err conftest.$ac_objext \
18126 conftest$ac_exeext conftest.$ac_ext
18128 ac_res=`eval echo '${'$as_ac_var'}'`
18129 { echo "$as_me:$LINENO: result: $ac_res" >&5
18130 echo "${ECHO_T}$ac_res" >&6; }
18131 if test `eval echo '${'$as_ac_var'}'` = yes; then
18132 cat >>confdefs.h <<_ACEOF
18133 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18145 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18151 echo $ECHO_N "(cached) $ECHO_C" >&6
18153 cat >conftest.$ac_ext <<_ACEOF
18156 cat confdefs.h >>conftest.$ac_ext
18157 cat >>conftest.$ac_ext <<_ACEOF
18158 /* end confdefs.h. */
18159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18161 #define $ac_func innocuous_$ac_func
18163 /* System header to define __stub macros and hopefully few prototypes,
18164 which can conflict with char $ac_func (); below.
18165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18166 <limits.h> exists even on freestanding compilers. */
18169 # include <limits.h>
18171 # include <assert.h>
18176 /* Override any GCC internal prototype to avoid an error.
18177 Use char because int might match the return type of a GCC
18178 builtin and then its argument prototype would still apply. */
18183 /* The GNU C library defines this for functions which it implements
18184 to always fail with ENOSYS. Some functions are actually named
18185 something starting with __ and the normal name is an alias. */
18186 #if defined __stub_$ac_func || defined __stub___$ac_func
18193 return $ac_func ();
18198 rm -f conftest.$ac_objext conftest$ac_exeext
18199 if { (ac_try="$ac_link"
18200 case "(($ac_try" in
18201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18202 *) ac_try_echo=$ac_try;;
18204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18205 (eval "$ac_link") 2>conftest.er1
18207 grep -v '^ *+' conftest.er1 >conftest.err
18209 cat conftest.err >&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); } &&
18212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18213 { (case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_try") 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; } &&
18222 { ac_try='test -s conftest$ac_exeext'
18223 { (case "(($ac_try" in
18224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18225 *) ac_try_echo=$ac_try;;
18227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18228 (eval "$ac_try") 2>&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); }; }; then
18232 eval "$as_ac_var=yes"
18234 echo "$as_me: failed program was:" >&5
18235 sed 's/^/| /' conftest.$ac_ext >&5
18237 eval "$as_ac_var=no"
18240 rm -f core conftest.err conftest.$ac_objext \
18241 conftest$ac_exeext conftest.$ac_ext
18243 ac_res=`eval echo '${'$as_ac_var'}'`
18244 { echo "$as_me:$LINENO: result: $ac_res" >&5
18245 echo "${ECHO_T}$ac_res" >&6; }
18246 if test `eval echo '${'$as_ac_var'}'` = yes; then
18247 cat >>confdefs.h <<_ACEOF
18248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18258 for ac_func in strerror strerror_r strerror_s setenv
18260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18266 cat >conftest.$ac_ext <<_ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18274 #define $ac_func innocuous_$ac_func
18276 /* System header to define __stub macros and hopefully few prototypes,
18277 which can conflict with char $ac_func (); below.
18278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18279 <limits.h> exists even on freestanding compilers. */
18282 # include <limits.h>
18284 # include <assert.h>
18289 /* Override any GCC internal prototype to avoid an error.
18290 Use char because int might match the return type of a GCC
18291 builtin and then its argument prototype would still apply. */
18296 /* The GNU C library defines this for functions which it implements
18297 to always fail with ENOSYS. Some functions are actually named
18298 something starting with __ and the normal name is an alias. */
18299 #if defined __stub_$ac_func || defined __stub___$ac_func
18306 return $ac_func ();
18311 rm -f conftest.$ac_objext conftest$ac_exeext
18312 if { (ac_try="$ac_link"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_link") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18324 (exit $ac_status); } &&
18325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18326 { (case "(($ac_try" in
18327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328 *) ac_try_echo=$ac_try;;
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331 (eval "$ac_try") 2>&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); }; } &&
18335 { ac_try='test -s conftest$ac_exeext'
18336 { (case "(($ac_try" in
18337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18338 *) ac_try_echo=$ac_try;;
18340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18341 (eval "$ac_try") 2>&5
18343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18344 (exit $ac_status); }; }; then
18345 eval "$as_ac_var=yes"
18347 echo "$as_me: failed program was:" >&5
18348 sed 's/^/| /' conftest.$ac_ext >&5
18350 eval "$as_ac_var=no"
18353 rm -f core conftest.err conftest.$ac_objext \
18354 conftest$ac_exeext conftest.$ac_ext
18356 ac_res=`eval echo '${'$as_ac_var'}'`
18357 { echo "$as_me:$LINENO: result: $ac_res" >&5
18358 echo "${ECHO_T}$ac_res" >&6; }
18359 if test `eval echo '${'$as_ac_var'}'` = yes; then
18360 cat >>confdefs.h <<_ACEOF
18361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18371 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18374 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18376 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18377 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 cat >conftest.$ac_ext <<_ACEOF
18382 cat confdefs.h >>conftest.$ac_ext
18383 cat >>conftest.$ac_ext <<_ACEOF
18384 /* end confdefs.h. */
18385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18387 #define $ac_func innocuous_$ac_func
18389 /* System header to define __stub macros and hopefully few prototypes,
18390 which can conflict with char $ac_func (); below.
18391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18392 <limits.h> exists even on freestanding compilers. */
18395 # include <limits.h>
18397 # include <assert.h>
18402 /* Override any GCC internal prototype to avoid an error.
18403 Use char because int might match the return type of a GCC
18404 builtin and then its argument prototype would still apply. */
18409 /* The GNU C library defines this for functions which it implements
18410 to always fail with ENOSYS. Some functions are actually named
18411 something starting with __ and the normal name is an alias. */
18412 #if defined __stub_$ac_func || defined __stub___$ac_func
18419 return $ac_func ();
18424 rm -f conftest.$ac_objext conftest$ac_exeext
18425 if { (ac_try="$ac_link"
18426 case "(($ac_try" in
18427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18428 *) ac_try_echo=$ac_try;;
18430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18431 (eval "$ac_link") 2>conftest.er1
18433 grep -v '^ *+' conftest.er1 >conftest.err
18435 cat conftest.err >&5
18436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18437 (exit $ac_status); } &&
18438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18439 { (case "(($ac_try" in
18440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18441 *) ac_try_echo=$ac_try;;
18443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18444 (eval "$ac_try") 2>&5
18446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18447 (exit $ac_status); }; } &&
18448 { ac_try='test -s conftest$ac_exeext'
18449 { (case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_try") 2>&5
18456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18457 (exit $ac_status); }; }; then
18458 eval "$as_ac_var=yes"
18460 echo "$as_me: failed program was:" >&5
18461 sed 's/^/| /' conftest.$ac_ext >&5
18463 eval "$as_ac_var=no"
18466 rm -f core conftest.err conftest.$ac_objext \
18467 conftest$ac_exeext conftest.$ac_ext
18469 ac_res=`eval echo '${'$as_ac_var'}'`
18470 { echo "$as_me:$LINENO: result: $ac_res" >&5
18471 echo "${ECHO_T}$ac_res" >&6; }
18472 if test `eval echo '${'$as_ac_var'}'` = yes; then
18473 cat >>confdefs.h <<_ACEOF
18474 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18484 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18486 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18490 echo $ECHO_N "(cached) $ECHO_C" >&6
18492 cat >conftest.$ac_ext <<_ACEOF
18495 cat confdefs.h >>conftest.$ac_ext
18496 cat >>conftest.$ac_ext <<_ACEOF
18497 /* end confdefs.h. */
18498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18500 #define $ac_func innocuous_$ac_func
18502 /* System header to define __stub macros and hopefully few prototypes,
18503 which can conflict with char $ac_func (); below.
18504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18505 <limits.h> exists even on freestanding compilers. */
18508 # include <limits.h>
18510 # include <assert.h>
18515 /* Override any GCC internal prototype to avoid an error.
18516 Use char because int might match the return type of a GCC
18517 builtin and then its argument prototype would still apply. */
18522 /* The GNU C library defines this for functions which it implements
18523 to always fail with ENOSYS. Some functions are actually named
18524 something starting with __ and the normal name is an alias. */
18525 #if defined __stub_$ac_func || defined __stub___$ac_func
18532 return $ac_func ();
18537 rm -f conftest.$ac_objext conftest$ac_exeext
18538 if { (ac_try="$ac_link"
18539 case "(($ac_try" in
18540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18541 *) ac_try_echo=$ac_try;;
18543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18544 (eval "$ac_link") 2>conftest.er1
18546 grep -v '^ *+' conftest.er1 >conftest.err
18548 cat conftest.err >&5
18549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18550 (exit $ac_status); } &&
18551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18552 { (case "(($ac_try" in
18553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18554 *) ac_try_echo=$ac_try;;
18556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18557 (eval "$ac_try") 2>&5
18559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18560 (exit $ac_status); }; } &&
18561 { ac_try='test -s conftest$ac_exeext'
18562 { (case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_try") 2>&5
18569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18570 (exit $ac_status); }; }; then
18571 eval "$as_ac_var=yes"
18573 echo "$as_me: failed program was:" >&5
18574 sed 's/^/| /' conftest.$ac_ext >&5
18576 eval "$as_ac_var=no"
18579 rm -f core conftest.err conftest.$ac_objext \
18580 conftest$ac_exeext conftest.$ac_ext
18582 ac_res=`eval echo '${'$as_ac_var'}'`
18583 { echo "$as_me:$LINENO: result: $ac_res" >&5
18584 echo "${ECHO_T}$ac_res" >&6; }
18585 if test `eval echo '${'$as_ac_var'}'` = yes; then
18586 cat >>confdefs.h <<_ACEOF
18587 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18593 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18594 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18595 if test "${llvm_cv_c_printf_a+set}" = set; then
18596 echo $ECHO_N "(cached) $ECHO_C" >&6
18599 ac_cpp='$CPP $CPPFLAGS'
18600 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18601 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18602 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18604 if test "$cross_compiling" = yes; then
18605 llvmac_cv_c_printf_a=no
18607 cat >conftest.$ac_ext <<_ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h. */
18616 #include <stdlib.h>
18622 volatile double A, B;
18626 sprintf(Buffer, "%a", A);
18630 if (A != 0x1.999999999999ap-4)
18637 rm -f conftest$ac_exeext
18638 if { (ac_try="$ac_link"
18639 case "(($ac_try" in
18640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18641 *) ac_try_echo=$ac_try;;
18643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18644 (eval "$ac_link") 2>&5
18646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18647 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18648 { (case "(($ac_try" in
18649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18650 *) ac_try_echo=$ac_try;;
18652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18653 (eval "$ac_try") 2>&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); }; }; then
18657 llvm_cv_c_printf_a=yes
18659 echo "$as_me: program exited with status $ac_status" >&5
18660 echo "$as_me: failed program was:" >&5
18661 sed 's/^/| /' conftest.$ac_ext >&5
18663 ( exit $ac_status )
18664 llvmac_cv_c_printf_a=no
18666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18671 ac_cpp='$CPP $CPPFLAGS'
18672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18677 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18678 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18679 if test "$llvm_cv_c_printf_a" = "yes"; then
18681 cat >>confdefs.h <<\_ACEOF
18682 #define HAVE_PRINTF_A 1
18688 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18689 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18690 if test "${ac_cv_func_rand48+set}" = set; then
18691 echo $ECHO_N "(cached) $ECHO_C" >&6
18694 ac_cpp='$CXXCPP $CPPFLAGS'
18695 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18696 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18697 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18699 cat >conftest.$ac_ext <<_ACEOF
18702 cat confdefs.h >>conftest.$ac_ext
18703 cat >>conftest.$ac_ext <<_ACEOF
18704 /* end confdefs.h. */
18705 #include <stdlib.h>
18709 srand48(0);lrand48();drand48();
18714 rm -f conftest.$ac_objext
18715 if { (ac_try="$ac_compile"
18716 case "(($ac_try" in
18717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18718 *) ac_try_echo=$ac_try;;
18720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18721 (eval "$ac_compile") 2>conftest.er1
18723 grep -v '^ *+' conftest.er1 >conftest.err
18725 cat conftest.err >&5
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } &&
18728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18729 { (case "(($ac_try" in
18730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18731 *) ac_try_echo=$ac_try;;
18733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18734 (eval "$ac_try") 2>&5
18736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); }; } &&
18738 { ac_try='test -s conftest.$ac_objext'
18739 { (case "(($ac_try" in
18740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18741 *) ac_try_echo=$ac_try;;
18743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18744 (eval "$ac_try") 2>&5
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }; }; then
18748 ac_cv_func_rand48=yes
18750 echo "$as_me: failed program was:" >&5
18751 sed 's/^/| /' conftest.$ac_ext >&5
18753 ac_cv_func_rand48=no
18756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18758 ac_cpp='$CPP $CPPFLAGS'
18759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18764 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18765 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18767 if test "$ac_cv_func_rand48" = "yes" ; then
18769 cat >>confdefs.h <<\_ACEOF
18770 #define HAVE_RAND48 1
18777 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18778 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18779 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18780 echo $ECHO_N "(cached) $ECHO_C" >&6
18783 ac_cpp='$CXXCPP $CPPFLAGS'
18784 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18785 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18786 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18788 cat >conftest.$ac_ext <<_ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18803 rm -f conftest.$ac_objext
18804 if { (ac_try="$ac_compile"
18805 case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_compile") 2>conftest.er1
18812 grep -v '^ *+' conftest.er1 >conftest.err
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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); }; } &&
18827 { ac_try='test -s conftest.$ac_objext'
18828 { (case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_try") 2>&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
18837 ac_cv_func_isnan_in_math_h=yes
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 ac_cv_func_isnan_in_math_h=no
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18847 ac_cpp='$CPP $CPPFLAGS'
18848 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18849 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18850 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18853 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18854 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18857 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18859 cat >>confdefs.h <<\_ACEOF
18860 #define HAVE_ISNAN_IN_MATH_H 1
18865 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18866 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18867 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18868 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 ac_cpp='$CXXCPP $CPPFLAGS'
18872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18876 cat >conftest.$ac_ext <<_ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18891 rm -f conftest.$ac_objext
18892 if { (ac_try="$ac_compile"
18893 case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898 (eval "$ac_compile") 2>conftest.er1
18900 grep -v '^ *+' conftest.er1 >conftest.err
18902 cat conftest.err >&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } &&
18905 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18906 { (case "(($ac_try" in
18907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908 *) ac_try_echo=$ac_try;;
18910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911 (eval "$ac_try") 2>&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; } &&
18915 { ac_try='test -s conftest.$ac_objext'
18916 { (case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_try") 2>&5
18923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18924 (exit $ac_status); }; }; then
18925 ac_cv_func_isnan_in_cmath=yes
18927 echo "$as_me: failed program was:" >&5
18928 sed 's/^/| /' conftest.$ac_ext >&5
18930 ac_cv_func_isnan_in_cmath=no
18933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935 ac_cpp='$CPP $CPPFLAGS'
18936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18941 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18942 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18944 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18946 cat >>confdefs.h <<\_ACEOF
18947 #define HAVE_ISNAN_IN_CMATH 1
18952 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18953 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18954 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18955 echo $ECHO_N "(cached) $ECHO_C" >&6
18958 ac_cpp='$CXXCPP $CPPFLAGS'
18959 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18960 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18961 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18963 cat >conftest.$ac_ext <<_ACEOF
18966 cat confdefs.h >>conftest.$ac_ext
18967 cat >>conftest.$ac_ext <<_ACEOF
18968 /* end confdefs.h. */
18973 float f; std::isnan(f);
18978 rm -f conftest.$ac_objext
18979 if { (ac_try="$ac_compile"
18980 case "(($ac_try" in
18981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982 *) ac_try_echo=$ac_try;;
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985 (eval "$ac_compile") 2>conftest.er1
18987 grep -v '^ *+' conftest.er1 >conftest.err
18989 cat conftest.err >&5
18990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18991 (exit $ac_status); } &&
18992 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18993 { (case "(($ac_try" in
18994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18995 *) ac_try_echo=$ac_try;;
18997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18998 (eval "$ac_try") 2>&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); }; } &&
19002 { ac_try='test -s conftest.$ac_objext'
19003 { (case "(($ac_try" in
19004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19005 *) ac_try_echo=$ac_try;;
19007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19008 (eval "$ac_try") 2>&5
19010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19011 (exit $ac_status); }; }; then
19012 ac_cv_func_std_isnan_in_cmath=yes
19014 echo "$as_me: failed program was:" >&5
19015 sed 's/^/| /' conftest.$ac_ext >&5
19017 ac_cv_func_std_isnan_in_cmath=no
19020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19022 ac_cpp='$CPP $CPPFLAGS'
19023 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19024 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19025 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19028 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19029 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19031 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19033 cat >>confdefs.h <<\_ACEOF
19034 #define HAVE_STD_ISNAN_IN_CMATH 1
19040 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19041 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19042 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19043 echo $ECHO_N "(cached) $ECHO_C" >&6
19046 ac_cpp='$CXXCPP $CPPFLAGS'
19047 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19048 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19049 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19051 cat >conftest.$ac_ext <<_ACEOF
19054 cat confdefs.h >>conftest.$ac_ext
19055 cat >>conftest.$ac_ext <<_ACEOF
19056 /* end confdefs.h. */
19066 rm -f conftest.$ac_objext
19067 if { (ac_try="$ac_compile"
19068 case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19073 (eval "$ac_compile") 2>conftest.er1
19075 grep -v '^ *+' conftest.er1 >conftest.err
19077 cat conftest.err >&5
19078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19079 (exit $ac_status); } &&
19080 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19081 { (case "(($ac_try" in
19082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19083 *) ac_try_echo=$ac_try;;
19085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19086 (eval "$ac_try") 2>&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); }; } &&
19090 { ac_try='test -s conftest.$ac_objext'
19091 { (case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_try") 2>&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); }; }; then
19100 ac_cv_func_isinf_in_math_h=yes
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 ac_cv_func_isinf_in_math_h=no
19108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19110 ac_cpp='$CPP $CPPFLAGS'
19111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19116 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19117 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19119 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19121 cat >>confdefs.h <<\_ACEOF
19122 #define HAVE_ISINF_IN_MATH_H 1
19127 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19128 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19129 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19133 ac_cpp='$CXXCPP $CPPFLAGS'
19134 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19135 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19136 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19138 cat >conftest.$ac_ext <<_ACEOF
19141 cat confdefs.h >>conftest.$ac_ext
19142 cat >>conftest.$ac_ext <<_ACEOF
19143 /* end confdefs.h. */
19153 rm -f conftest.$ac_objext
19154 if { (ac_try="$ac_compile"
19155 case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_compile") 2>conftest.er1
19162 grep -v '^ *+' conftest.er1 >conftest.err
19164 cat conftest.err >&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); } &&
19167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19168 { (case "(($ac_try" in
19169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 *) ac_try_echo=$ac_try;;
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_try") 2>&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; } &&
19177 { ac_try='test -s conftest.$ac_objext'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 ac_cv_func_isinf_in_cmath=yes
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19192 ac_cv_func_isinf_in_cmath=no
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19197 ac_cpp='$CPP $CPPFLAGS'
19198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19203 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19204 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19206 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19208 cat >>confdefs.h <<\_ACEOF
19209 #define HAVE_ISINF_IN_CMATH 1
19214 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19215 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19216 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19217 echo $ECHO_N "(cached) $ECHO_C" >&6
19220 ac_cpp='$CXXCPP $CPPFLAGS'
19221 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19222 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19223 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19225 cat >conftest.$ac_ext <<_ACEOF
19228 cat confdefs.h >>conftest.$ac_ext
19229 cat >>conftest.$ac_ext <<_ACEOF
19230 /* end confdefs.h. */
19235 float f; std::isinf(f)}
19240 rm -f conftest.$ac_objext
19241 if { (ac_try="$ac_compile"
19242 case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_compile") 2>conftest.er1
19249 grep -v '^ *+' conftest.er1 >conftest.err
19251 cat conftest.err >&5
19252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19253 (exit $ac_status); } &&
19254 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19255 { (case "(($ac_try" in
19256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19257 *) ac_try_echo=$ac_try;;
19259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19260 (eval "$ac_try") 2>&5
19262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19263 (exit $ac_status); }; } &&
19264 { ac_try='test -s conftest.$ac_objext'
19265 { (case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_try") 2>&5
19272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19273 (exit $ac_status); }; }; then
19274 ac_cv_func_std_isinf_in_cmath=yes
19276 echo "$as_me: failed program was:" >&5
19277 sed 's/^/| /' conftest.$ac_ext >&5
19279 ac_cv_func_std_isinf_in_cmath=no
19282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19284 ac_cpp='$CPP $CPPFLAGS'
19285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19290 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19291 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19293 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19295 cat >>confdefs.h <<\_ACEOF
19296 #define HAVE_STD_ISINF_IN_CMATH 1
19301 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19302 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19303 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19304 echo $ECHO_N "(cached) $ECHO_C" >&6
19307 ac_cpp='$CXXCPP $CPPFLAGS'
19308 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19309 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19310 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19312 cat >conftest.$ac_ext <<_ACEOF
19315 cat confdefs.h >>conftest.$ac_ext
19316 cat >>conftest.$ac_ext <<_ACEOF
19317 /* end confdefs.h. */
19318 #include <ieeefp.h>
19322 float f; finite(f);
19327 rm -f conftest.$ac_objext
19328 if { (ac_try="$ac_compile"
19329 case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_compile") 2>conftest.er1
19336 grep -v '^ *+' conftest.er1 >conftest.err
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } &&
19341 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19342 { (case "(($ac_try" in
19343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19344 *) ac_try_echo=$ac_try;;
19346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19347 (eval "$ac_try") 2>&5
19349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19350 (exit $ac_status); }; } &&
19351 { ac_try='test -s conftest.$ac_objext'
19352 { (case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_try") 2>&5
19359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19360 (exit $ac_status); }; }; then
19361 ac_cv_func_finite_in_ieeefp_h=yes
19363 echo "$as_me: failed program was:" >&5
19364 sed 's/^/| /' conftest.$ac_ext >&5
19366 ac_cv_func_finite_in_ieeefp_h=no
19369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19371 ac_cpp='$CPP $CPPFLAGS'
19372 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19373 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19374 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19377 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19378 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19380 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19382 cat >>confdefs.h <<\_ACEOF
19383 #define HAVE_FINITE_IN_IEEEFP_H 1
19390 if test "$llvm_cv_platform_type" = "Unix" ; then
19393 for ac_header in stdlib.h unistd.h
19395 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19396 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19400 echo $ECHO_N "(cached) $ECHO_C" >&6
19402 ac_res=`eval echo '${'$as_ac_Header'}'`
19403 { echo "$as_me:$LINENO: result: $ac_res" >&5
19404 echo "${ECHO_T}$ac_res" >&6; }
19406 # Is the header compilable?
19407 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19408 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415 $ac_includes_default
19416 #include <$ac_header>
19418 rm -f conftest.$ac_objext
19419 if { (ac_try="$ac_compile"
19420 case "(($ac_try" in
19421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19422 *) ac_try_echo=$ac_try;;
19424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19425 (eval "$ac_compile") 2>conftest.er1
19427 grep -v '^ *+' conftest.er1 >conftest.err
19429 cat conftest.err >&5
19430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19431 (exit $ac_status); } &&
19432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19433 { (case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_try") 2>&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); }; } &&
19442 { ac_try='test -s conftest.$ac_objext'
19443 { (case "(($ac_try" in
19444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19445 *) ac_try_echo=$ac_try;;
19447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19448 (eval "$ac_try") 2>&5
19450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19451 (exit $ac_status); }; }; then
19452 ac_header_compiler=yes
19454 echo "$as_me: failed program was:" >&5
19455 sed 's/^/| /' conftest.$ac_ext >&5
19457 ac_header_compiler=no
19460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19462 echo "${ECHO_T}$ac_header_compiler" >&6; }
19464 # Is the header present?
19465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19467 cat >conftest.$ac_ext <<_ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19473 #include <$ac_header>
19475 if { (ac_try="$ac_cpp conftest.$ac_ext"
19476 case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19483 grep -v '^ *+' conftest.er1 >conftest.err
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } >/dev/null; then
19488 if test -s conftest.err; then
19489 ac_cpp_err=$ac_c_preproc_warn_flag
19490 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19497 if test -z "$ac_cpp_err"; then
19498 ac_header_preproc=yes
19500 echo "$as_me: failed program was:" >&5
19501 sed 's/^/| /' conftest.$ac_ext >&5
19503 ac_header_preproc=no
19506 rm -f conftest.err conftest.$ac_ext
19507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19508 echo "${ECHO_T}$ac_header_preproc" >&6; }
19510 # So? What about this header?
19511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19513 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19514 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19515 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19516 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19517 ac_header_preproc=yes
19520 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19521 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19522 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19523 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19524 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19525 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19526 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19527 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19528 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19529 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19530 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19531 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19533 ## ----------------------------------- ##
19534 ## Report this to llvmbugs@cs.uiuc.edu ##
19535 ## ----------------------------------- ##
19537 ) | sed "s/^/$as_me: WARNING: /" >&2
19540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19543 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 eval "$as_ac_Header=\$ac_header_preproc"
19547 ac_res=`eval echo '${'$as_ac_Header'}'`
19548 { echo "$as_me:$LINENO: result: $ac_res" >&5
19549 echo "${ECHO_T}$ac_res" >&6; }
19552 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19553 cat >>confdefs.h <<_ACEOF
19554 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19562 for ac_func in getpagesize
19564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19568 echo $ECHO_N "(cached) $ECHO_C" >&6
19570 cat >conftest.$ac_ext <<_ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19578 #define $ac_func innocuous_$ac_func
19580 /* System header to define __stub macros and hopefully few prototypes,
19581 which can conflict with char $ac_func (); below.
19582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19583 <limits.h> exists even on freestanding compilers. */
19586 # include <limits.h>
19588 # include <assert.h>
19593 /* Override any GCC internal prototype to avoid an error.
19594 Use char because int might match the return type of a GCC
19595 builtin and then its argument prototype would still apply. */
19600 /* The GNU C library defines this for functions which it implements
19601 to always fail with ENOSYS. Some functions are actually named
19602 something starting with __ and the normal name is an alias. */
19603 #if defined __stub_$ac_func || defined __stub___$ac_func
19610 return $ac_func ();
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_link") 2>conftest.er1
19624 grep -v '^ *+' conftest.er1 >conftest.err
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19630 { (case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest$ac_exeext'
19640 { (case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_try") 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 eval "$as_ac_var=yes"
19651 echo "$as_me: failed program was:" >&5
19652 sed 's/^/| /' conftest.$ac_ext >&5
19654 eval "$as_ac_var=no"
19657 rm -f core conftest.err conftest.$ac_objext \
19658 conftest$ac_exeext conftest.$ac_ext
19660 ac_res=`eval echo '${'$as_ac_var'}'`
19661 { echo "$as_me:$LINENO: result: $ac_res" >&5
19662 echo "${ECHO_T}$ac_res" >&6; }
19663 if test `eval echo '${'$as_ac_var'}'` = yes; then
19664 cat >>confdefs.h <<_ACEOF
19665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19671 { echo "$as_me:$LINENO: checking for working mmap" >&5
19672 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19673 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19674 echo $ECHO_N "(cached) $ECHO_C" >&6
19676 if test "$cross_compiling" = yes; then
19677 ac_cv_func_mmap_fixed_mapped=no
19679 cat >conftest.$ac_ext <<_ACEOF
19682 cat confdefs.h >>conftest.$ac_ext
19683 cat >>conftest.$ac_ext <<_ACEOF
19684 /* end confdefs.h. */
19685 $ac_includes_default
19686 /* malloc might have been renamed as rpl_malloc. */
19689 /* Thanks to Mike Haertel and Jim Avera for this test.
19690 Here is a matrix of mmap possibilities:
19691 mmap private not fixed
19692 mmap private fixed at somewhere currently unmapped
19693 mmap private fixed at somewhere already mapped
19694 mmap shared not fixed
19695 mmap shared fixed at somewhere currently unmapped
19696 mmap shared fixed at somewhere already mapped
19697 For private mappings, we should verify that changes cannot be read()
19698 back from the file, nor mmap's back from the file at a different
19699 address. (There have been systems where private was not correctly
19700 implemented like the infamous i386 svr4.0, and systems where the
19701 VM page cache was not coherent with the file system buffer cache
19702 like early versions of FreeBSD and possibly contemporary NetBSD.)
19703 For shared mappings, we should conversely verify that changes get
19704 propagated back to all the places they're supposed to be.
19706 Grep wants private fixed already mapped.
19707 The main things grep needs to know about mmap are:
19708 * does it exist and is it safe to write into the mmap'd area
19709 * how to use it (BSD variants) */
19712 #include <sys/mman.h>
19714 #if !STDC_HEADERS && !HAVE_STDLIB_H
19718 /* This mess was copied from the GNU getpagesize.h. */
19719 #if !HAVE_GETPAGESIZE
19720 /* Assume that all systems that can run configure have sys/param.h. */
19721 # if !HAVE_SYS_PARAM_H
19722 # define HAVE_SYS_PARAM_H 1
19725 # ifdef _SC_PAGESIZE
19726 # define getpagesize() sysconf(_SC_PAGESIZE)
19727 # else /* no _SC_PAGESIZE */
19728 # if HAVE_SYS_PARAM_H
19729 # include <sys/param.h>
19730 # ifdef EXEC_PAGESIZE
19731 # define getpagesize() EXEC_PAGESIZE
19732 # else /* no EXEC_PAGESIZE */
19734 # define getpagesize() NBPG * CLSIZE
19737 # endif /* no CLSIZE */
19738 # else /* no NBPG */
19740 # define getpagesize() NBPC
19741 # else /* no NBPC */
19743 # define getpagesize() PAGESIZE
19744 # endif /* PAGESIZE */
19745 # endif /* no NBPC */
19746 # endif /* no NBPG */
19747 # endif /* no EXEC_PAGESIZE */
19748 # else /* no HAVE_SYS_PARAM_H */
19749 # define getpagesize() 8192 /* punt totally */
19750 # endif /* no HAVE_SYS_PARAM_H */
19751 # endif /* no _SC_PAGESIZE */
19753 #endif /* no HAVE_GETPAGESIZE */
19758 char *data, *data2, *data3;
19762 pagesize = getpagesize ();
19764 /* First, make a file with some known garbage in it. */
19765 data = (char *) malloc (pagesize);
19768 for (i = 0; i < pagesize; ++i)
19769 *(data + i) = rand ();
19771 fd = creat ("conftest.mmap", 0600);
19774 if (write (fd, data, pagesize) != pagesize)
19778 /* Next, try to mmap the file at a fixed address which already has
19779 something else allocated at it. If we can, also make sure that
19780 we see the same garbage. */
19781 fd = open ("conftest.mmap", O_RDWR);
19784 data2 = (char *) malloc (2 * pagesize);
19787 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19788 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19789 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19791 for (i = 0; i < pagesize; ++i)
19792 if (*(data + i) != *(data2 + i))
19795 /* Finally, make sure that changes to the mapped area do not
19796 percolate back to the file as seen by read(). (This is a bug on
19797 some variants of i386 svr4.0.) */
19798 for (i = 0; i < pagesize; ++i)
19799 *(data2 + i) = *(data2 + i) + 1;
19800 data3 = (char *) malloc (pagesize);
19803 if (read (fd, data3, pagesize) != pagesize)
19805 for (i = 0; i < pagesize; ++i)
19806 if (*(data + i) != *(data3 + i))
19812 rm -f conftest$ac_exeext
19813 if { (ac_try="$ac_link"
19814 case "(($ac_try" in
19815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19816 *) ac_try_echo=$ac_try;;
19818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19819 (eval "$ac_link") 2>&5
19821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; }; then
19832 ac_cv_func_mmap_fixed_mapped=yes
19834 echo "$as_me: program exited with status $ac_status" >&5
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19838 ( exit $ac_status )
19839 ac_cv_func_mmap_fixed_mapped=no
19841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19846 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19847 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19848 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19850 cat >>confdefs.h <<\_ACEOF
19851 #define HAVE_MMAP 1
19855 rm -f conftest.mmap
19857 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19858 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19859 if test "${ac_cv_func_mmap_file+set}" = set; then
19860 echo $ECHO_N "(cached) $ECHO_C" >&6
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
19868 if test "$cross_compiling" = yes; then
19869 ac_cv_func_mmap_file=no
19871 cat >conftest.$ac_ext <<_ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19879 #include <sys/types.h>
19880 #include <sys/mman.h>
19888 fd = creat ("foo",0777);
19889 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19891 return (fd != (int) MAP_FAILED);
19896 rm -f conftest$ac_exeext
19897 if { (ac_try="$ac_link"
19898 case "(($ac_try" in
19899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_link") 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19907 { (case "(($ac_try" in
19908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19909 *) ac_try_echo=$ac_try;;
19911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19912 (eval "$ac_try") 2>&5
19914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19915 (exit $ac_status); }; }; then
19916 ac_cv_func_mmap_file=yes
19918 echo "$as_me: program exited with status $ac_status" >&5
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19922 ( exit $ac_status )
19923 ac_cv_func_mmap_file=no
19925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19930 ac_cpp='$CPP $CPPFLAGS'
19931 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19932 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19933 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19937 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19938 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19939 if test "$ac_cv_func_mmap_file" = yes; then
19941 cat >>confdefs.h <<\_ACEOF
19942 #define HAVE_MMAP_FILE
19949 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19950 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19951 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19952 echo $ECHO_N "(cached) $ECHO_C" >&6
19954 if test "$llvm_cv_os_type" = "Interix" ; then
19955 ac_cv_need_dev_zero_for_mmap=yes
19957 ac_cv_need_dev_zero_for_mmap=no
19961 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19962 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19963 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19965 cat >>confdefs.h <<\_ACEOF
19966 #define NEED_DEV_ZERO_FOR_MMAP 1
19971 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19973 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19974 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19976 if test "$ac_cv_func_mmap_file" = "no"
19978 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19979 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19983 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19984 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19986 ac_cpp='$CXXCPP $CPPFLAGS'
19987 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19988 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19989 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19991 cat >conftest.$ac_ext <<_ACEOF
19994 cat confdefs.h >>conftest.$ac_ext
19995 cat >>conftest.$ac_ext <<_ACEOF
19996 /* end confdefs.h. */
19998 volatile unsigned long val = 1;
19999 __sync_synchronize();
20000 __sync_val_compare_and_swap(&val, 1, 0);
20001 __sync_add_and_fetch(&val, 1);
20002 __sync_sub_and_fetch(&val, 1);
20007 rm -f conftest.$ac_objext conftest$ac_exeext
20008 if { (ac_try="$ac_link"
20009 case "(($ac_try" in
20010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20011 *) ac_try_echo=$ac_try;;
20013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20014 (eval "$ac_link") 2>conftest.er1
20016 grep -v '^ *+' conftest.er1 >conftest.err
20018 cat conftest.err >&5
20019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20020 (exit $ac_status); } &&
20021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20022 { (case "(($ac_try" in
20023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20024 *) ac_try_echo=$ac_try;;
20026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20027 (eval "$ac_try") 2>&5
20029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); }; } &&
20031 { ac_try='test -s conftest$ac_exeext'
20032 { (case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_try") 2>&5
20039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20040 (exit $ac_status); }; }; then
20042 ac_cpp='$CPP $CPPFLAGS'
20043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20047 { echo "$as_me:$LINENO: result: yes" >&5
20048 echo "${ECHO_T}yes" >&6; }
20050 cat >>confdefs.h <<\_ACEOF
20051 #define LLVM_MULTITHREADED 1
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20058 { echo "$as_me:$LINENO: result: no" >&5
20059 echo "${ECHO_T}no" >&6; }
20061 cat >>confdefs.h <<\_ACEOF
20062 #define LLVM_MULTITHREADED 0
20065 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20066 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20069 rm -f core conftest.err conftest.$ac_objext \
20070 conftest$ac_exeext conftest.$ac_ext
20073 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20074 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20075 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20076 if test "${llvm_cv_linux_mixed+set}" = set; then
20077 echo $ECHO_N "(cached) $ECHO_C" >&6
20080 ac_cpp='$CPP $CPPFLAGS'
20081 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20082 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20083 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20085 cat >conftest.$ac_ext <<_ACEOF
20088 cat confdefs.h >>conftest.$ac_ext
20089 cat >>conftest.$ac_ext <<_ACEOF
20090 /* end confdefs.h. */
20092 error: Not x86-64 even if uname says so!
20103 rm -f conftest.$ac_objext
20104 if { (ac_try="$ac_compile"
20105 case "(($ac_try" in
20106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20107 *) ac_try_echo=$ac_try;;
20109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20110 (eval "$ac_compile") 2>conftest.er1
20112 grep -v '^ *+' conftest.er1 >conftest.err
20114 cat conftest.err >&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); } &&
20117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20118 { (case "(($ac_try" in
20119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120 *) ac_try_echo=$ac_try;;
20122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20123 (eval "$ac_try") 2>&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; } &&
20127 { ac_try='test -s conftest.$ac_objext'
20128 { (case "(($ac_try" in
20129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20130 *) ac_try_echo=$ac_try;;
20132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20133 (eval "$ac_try") 2>&5
20135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20136 (exit $ac_status); }; }; then
20137 llvm_cv_linux_mixed=no
20139 echo "$as_me: failed program was:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20142 llvm_cv_linux_mixed=yes
20145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20147 ac_cpp='$CPP $CPPFLAGS'
20148 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20149 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20150 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20154 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20155 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20157 if test "$llvm_cv_linux_mixed" = "yes"; then
20158 llvm_cv_target_arch="x86"
20164 for ac_func in __dso_handle
20166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20170 echo $ECHO_N "(cached) $ECHO_C" >&6
20172 cat >conftest.$ac_ext <<_ACEOF
20175 cat confdefs.h >>conftest.$ac_ext
20176 cat >>conftest.$ac_ext <<_ACEOF
20177 /* end confdefs.h. */
20178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20180 #define $ac_func innocuous_$ac_func
20182 /* System header to define __stub macros and hopefully few prototypes,
20183 which can conflict with char $ac_func (); below.
20184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20185 <limits.h> exists even on freestanding compilers. */
20188 # include <limits.h>
20190 # include <assert.h>
20195 /* Override any GCC internal prototype to avoid an error.
20196 Use char because int might match the return type of a GCC
20197 builtin and then its argument prototype would still apply. */
20202 /* The GNU C library defines this for functions which it implements
20203 to always fail with ENOSYS. Some functions are actually named
20204 something starting with __ and the normal name is an alias. */
20205 #if defined __stub_$ac_func || defined __stub___$ac_func
20212 return $ac_func ();
20217 rm -f conftest.$ac_objext conftest$ac_exeext
20218 if { (ac_try="$ac_link"
20219 case "(($ac_try" in
20220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20221 *) ac_try_echo=$ac_try;;
20223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20224 (eval "$ac_link") 2>conftest.er1
20226 grep -v '^ *+' conftest.er1 >conftest.err
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20232 { (case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_try") 2>&5
20239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20240 (exit $ac_status); }; } &&
20241 { ac_try='test -s conftest$ac_exeext'
20242 { (case "(($ac_try" in
20243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20244 *) ac_try_echo=$ac_try;;
20246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20247 (eval "$ac_try") 2>&5
20249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20250 (exit $ac_status); }; }; then
20251 eval "$as_ac_var=yes"
20253 echo "$as_me: failed program was:" >&5
20254 sed 's/^/| /' conftest.$ac_ext >&5
20256 eval "$as_ac_var=no"
20259 rm -f core conftest.err conftest.$ac_objext \
20260 conftest$ac_exeext conftest.$ac_ext
20262 ac_res=`eval echo '${'$as_ac_var'}'`
20263 { echo "$as_me:$LINENO: result: $ac_res" >&5
20264 echo "${ECHO_T}$ac_res" >&6; }
20265 if test `eval echo '${'$as_ac_var'}'` = yes; then
20266 cat >>confdefs.h <<_ACEOF
20267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20274 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20275 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20276 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20277 echo $ECHO_N "(cached) $ECHO_C" >&6
20279 llvm_cv_llvmgcc_sanity="no"
20280 if test -x "$LLVMGCC" ; then
20281 cp /dev/null conftest.c
20282 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20283 grep 'target datalayout =' > /dev/null 2>&1
20284 if test $? -eq 0 ; then
20285 llvm_cv_llvmgcc_sanity="yes"
20290 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20291 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20293 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20294 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20295 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20296 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20297 LLVMCC1=$llvmcc1path
20299 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20300 LLVMCC1PLUS=$llvmcc1pluspath
20302 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20303 LLVMGCCDIR=$llvmgccdir
20305 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20306 LLVMGCC_LANGS=$llvmgcclangs
20308 { echo "$as_me:$LINENO: result: ok" >&5
20309 echo "${ECHO_T}ok" >&6; }
20312 SHLIBEXT=$libltdl_cv_shlibext
20315 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20318 # Translate the various configuration directories and other basic
20319 # information into substitutions that will end up in Makefile.config.in
20320 # that these configured values can be used by the makefiles
20321 if test "${prefix}" = "NONE" ; then
20322 prefix="/usr/local"
20324 eval LLVM_PREFIX="${prefix}";
20325 eval LLVM_BINDIR="${prefix}/bin";
20326 eval LLVM_LIBDIR="${prefix}/lib";
20327 eval LLVM_DATADIR="${prefix}/share/llvm";
20328 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20329 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20330 eval LLVM_INCLUDEDIR="${prefix}/include";
20331 eval LLVM_INFODIR="${prefix}/info";
20332 eval LLVM_MANDIR="${prefix}/man";
20333 LLVM_CONFIGTIME=`date`
20345 # Place the various directores into the config.h file as #defines so that we
20346 # can know about the installation paths within LLVM.
20348 cat >>confdefs.h <<_ACEOF
20349 #define LLVM_PREFIX "$LLVM_PREFIX"
20353 cat >>confdefs.h <<_ACEOF
20354 #define LLVM_BINDIR "$LLVM_BINDIR"
20358 cat >>confdefs.h <<_ACEOF
20359 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20363 cat >>confdefs.h <<_ACEOF
20364 #define LLVM_DATADIR "$LLVM_DATADIR"
20368 cat >>confdefs.h <<_ACEOF
20369 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20373 cat >>confdefs.h <<_ACEOF
20374 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20378 cat >>confdefs.h <<_ACEOF
20379 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20383 cat >>confdefs.h <<_ACEOF
20384 #define LLVM_INFODIR "$LLVM_INFODIR"
20388 cat >>confdefs.h <<_ACEOF
20389 #define LLVM_MANDIR "$LLVM_MANDIR"
20393 cat >>confdefs.h <<_ACEOF
20394 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20398 cat >>confdefs.h <<_ACEOF
20399 #define LLVM_HOSTTRIPLE "$host"
20403 # Determine which bindings to build.
20404 if test "$BINDINGS_TO_BUILD" = auto ; then
20405 BINDINGS_TO_BUILD=""
20406 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20407 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20410 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20413 # This isn't really configurey, but it avoids having to repeat the list in
20418 # Do any work necessary to ensure that bindings have what they need.
20419 binding_prereqs_failed=0
20420 for a_binding in $BINDINGS_TO_BUILD ; do
20421 case "$a_binding" in
20423 if test "x$OCAMLC" = x ; then
20424 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20425 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20426 binding_prereqs_failed=1
20428 if test "x$OCAMLDEP" = x ; then
20429 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20430 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20431 binding_prereqs_failed=1
20433 if test "x$OCAMLOPT" = x ; then
20434 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20435 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20437 if test "x$with_ocaml_libdir" != xauto ; then
20438 OCAML_LIBDIR=$with_ocaml_libdir
20441 ocaml_stdlib="`"$OCAMLC" -where`"
20442 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20444 # ocaml stdlib is beneath our prefix; use stdlib
20445 OCAML_LIBDIR=$ocaml_stdlib
20448 # ocaml stdlib is outside our prefix; use libdir/ocaml
20449 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20456 if test "$binding_prereqs_failed" = 1 ; then
20457 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20458 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20459 { (exit 1); exit 1; }; }
20462 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20463 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20464 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20465 echo $ECHO_N "(cached) $ECHO_C" >&6
20468 ac_cpp='$CXXCPP $CPPFLAGS'
20469 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20470 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20471 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20473 oldcxxflags="$CXXFLAGS"
20474 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20475 cat >conftest.$ac_ext <<_ACEOF
20478 cat confdefs.h >>conftest.$ac_ext
20479 cat >>conftest.$ac_ext <<_ACEOF
20480 /* end confdefs.h. */
20490 rm -f conftest.$ac_objext
20491 if { (ac_try="$ac_compile"
20492 case "(($ac_try" in
20493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20494 *) ac_try_echo=$ac_try;;
20496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20497 (eval "$ac_compile") 2>conftest.er1
20499 grep -v '^ *+' conftest.er1 >conftest.err
20501 cat conftest.err >&5
20502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20503 (exit $ac_status); } &&
20504 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20505 { (case "(($ac_try" in
20506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20507 *) ac_try_echo=$ac_try;;
20509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20510 (eval "$ac_try") 2>&5
20512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20513 (exit $ac_status); }; } &&
20514 { ac_try='test -s conftest.$ac_objext'
20515 { (case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_try") 2>&5
20522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20523 (exit $ac_status); }; }; then
20524 llvm_cv_cxx_visibility_inlines_hidden=yes
20526 echo "$as_me: failed program was:" >&5
20527 sed 's/^/| /' conftest.$ac_ext >&5
20529 llvm_cv_cxx_visibility_inlines_hidden=no
20532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20533 CXXFLAGS="$oldcxxflags"
20535 ac_cpp='$CPP $CPPFLAGS'
20536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20542 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20543 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20544 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20545 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20548 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20553 if test "$llvm_cv_link_use_r" = "yes" ; then
20560 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20561 RDYNAMIC="-Wl,-export-dynamic"
20568 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20575 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20577 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20579 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20581 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20583 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20586 ac_config_files="$ac_config_files Makefile.config"
20589 ac_config_files="$ac_config_files llvm.spec"
20592 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20595 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20598 ac_config_commands="$ac_config_commands setup"
20600 ac_config_commands="$ac_config_commands Makefile"
20603 ac_config_commands="$ac_config_commands Makefile.common"
20606 ac_config_commands="$ac_config_commands examples/Makefile"
20609 ac_config_commands="$ac_config_commands lib/Makefile"
20612 ac_config_commands="$ac_config_commands runtime/Makefile"
20615 ac_config_commands="$ac_config_commands test/Makefile"
20618 ac_config_commands="$ac_config_commands test/Makefile.tests"
20621 ac_config_commands="$ac_config_commands unittests/Makefile"
20624 ac_config_commands="$ac_config_commands tools/Makefile"
20627 ac_config_commands="$ac_config_commands utils/Makefile"
20630 ac_config_commands="$ac_config_commands projects/Makefile"
20633 ac_config_commands="$ac_config_commands bindings/Makefile"
20636 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20640 cat >confcache <<\_ACEOF
20641 # This file is a shell script that caches the results of configure
20642 # tests run on this system so they can be shared between configure
20643 # scripts and configure runs, see configure's option --config-cache.
20644 # It is not useful on other systems. If it contains results you don't
20645 # want to keep, you may remove or edit it.
20647 # config.status only pays attention to the cache file if you give it
20648 # the --recheck option to rerun configure.
20650 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20651 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20652 # following values.
20656 # The following way of writing the cache mishandles newlines in values,
20657 # but we know of no workaround that is simple, portable, and efficient.
20658 # So, we kill variables containing newlines.
20659 # Ultrix sh set writes to stderr and can't be redirected directly,
20660 # and sets the high bit in the cache file unless we assign to the vars.
20662 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20663 eval ac_val=\$$ac_var
20667 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20668 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20671 _ | IFS | as_nl) ;; #(
20672 *) $as_unset $ac_var ;;
20678 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20679 *${as_nl}ac_space=\ *)
20680 # `set' does not quote correctly, so add quotes (double-quote
20681 # substitution turns \\\\ into \\, and sed turns \\ into \).
20684 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20687 # `set' quotes correctly as required by POSIX, so do not add quotes.
20688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20697 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20699 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20701 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20702 if test -w "$cache_file"; then
20703 test "x$cache_file" != "x/dev/null" &&
20704 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20705 echo "$as_me: updating cache $cache_file" >&6;}
20706 cat confcache >$cache_file
20708 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20709 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20714 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20715 # Let make expand exec_prefix.
20716 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20718 DEFS=-DHAVE_CONFIG_H
20722 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20723 # 1. Remove the extension, and $U if already installed.
20724 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20725 ac_i=`echo "$ac_i" | sed "$ac_script"`
20726 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20727 # will be set to the directory where LIBOBJS objects are built.
20728 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20729 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20731 LIBOBJS=$ac_libobjs
20733 LTLIBOBJS=$ac_ltlibobjs
20736 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20737 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20738 Usually this means the macro was only invoked conditionally." >&5
20739 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20740 Usually this means the macro was only invoked conditionally." >&2;}
20741 { (exit 1); exit 1; }; }
20743 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20744 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20745 Usually this means the macro was only invoked conditionally." >&5
20746 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20747 Usually this means the macro was only invoked conditionally." >&2;}
20748 { (exit 1); exit 1; }; }
20751 : ${CONFIG_STATUS=./config.status}
20752 ac_clean_files_save=$ac_clean_files
20753 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20754 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20755 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20756 cat >$CONFIG_STATUS <<_ACEOF
20758 # Generated by $as_me.
20759 # Run this file to recreate the current configuration.
20760 # Compiler output produced by configure, useful for debugging
20761 # configure, is in config.log if it exists.
20764 ac_cs_recheck=false
20766 SHELL=\${CONFIG_SHELL-$SHELL}
20769 cat >>$CONFIG_STATUS <<\_ACEOF
20770 ## --------------------- ##
20771 ## M4sh Initialization. ##
20772 ## --------------------- ##
20774 # Be Bourne compatible
20775 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20778 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20779 # is contrary to our usage. Disable this feature.
20780 alias -g '${1+"$@"}'='"$@"'
20781 setopt NO_GLOB_SUBST
20783 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20785 BIN_SH=xpg4; export BIN_SH # for Tru64
20786 DUALCASE=1; export DUALCASE # for MKS sh
20790 # Avoid depending upon Character Ranges.
20791 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20792 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20793 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20794 as_cr_digits='0123456789'
20795 as_cr_alnum=$as_cr_Letters$as_cr_digits
20797 # The user is always right.
20798 if test "${PATH_SEPARATOR+set}" != set; then
20799 echo "#! /bin/sh" >conf$$.sh
20800 echo "exit 0" >>conf$$.sh
20802 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20810 # Support unset when possible.
20811 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20819 # We need space, tab and new line, in precisely that order. Quoting is
20820 # there to prevent editors from complaining about space-tab.
20821 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20822 # splitting by setting IFS to empty value.)
20827 # Find who we are. Look in the path if we contain no directory separator.
20829 *[\\/]* ) as_myself=$0 ;;
20830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20831 for as_dir in $PATH
20834 test -z "$as_dir" && as_dir=.
20835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20841 # We did not find ourselves, most probably we were run as `sh COMMAND'
20842 # in which case we are not to be found in the path.
20843 if test "x$as_myself" = x; then
20846 if test ! -f "$as_myself"; then
20847 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20848 { (exit 1); exit 1; }
20851 # Work around bugs in pre-3.0 UWIN ksh.
20852 for as_var in ENV MAIL MAILPATH
20853 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20861 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20862 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20863 LC_TELEPHONE LC_TIME
20865 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20866 eval $as_var=C; export $as_var
20868 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20872 # Required to use basename.
20873 if expr a : '\(a\)' >/dev/null 2>&1 &&
20874 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20880 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20881 as_basename=basename
20887 # Name of the executable.
20888 as_me=`$as_basename -- "$0" ||
20889 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20890 X"$0" : 'X\(//\)$' \| \
20891 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20893 sed '/^.*\/\([^/][^/]*\)\/*$/{
20912 as_lineno_1=$LINENO
20913 as_lineno_2=$LINENO
20914 test "x$as_lineno_1" != "x$as_lineno_2" &&
20915 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20917 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20918 # uniformly replaced by the line number. The first 'sed' inserts a
20919 # line-number line after each line using $LINENO; the second 'sed'
20920 # does the real work. The second script uses 'N' to pair each
20921 # line-number line with the line containing $LINENO, and appends
20922 # trailing '-' during substitution so that $LINENO is not a special
20923 # case at line end.
20924 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20925 # scripts with optimization help from Paolo Bonzini. Blame Lee
20926 # E. McMahon (1931-1989) for sed's syntax. :-)
20938 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20941 ' >$as_me.lineno &&
20942 chmod +x "$as_me.lineno" ||
20943 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20944 { (exit 1); exit 1; }; }
20946 # Don't try to exec as it changes $[0], causing all sort of problems
20947 # (the dirname of $[0] is not the place where we might find the
20948 # original and so on. Autoconf is especially sensitive to this).
20949 . "./$as_me.lineno"
20950 # Exit status is that of the last command.
20955 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20961 ECHO_C= ECHO_N= ECHO_T=
20962 case `echo -n x` in
20964 case `echo 'x\c'` in
20965 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20972 if expr a : '\(a\)' >/dev/null 2>&1 &&
20973 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20979 rm -f conf$$ conf$$.exe conf$$.file
20980 if test -d conf$$.dir; then
20981 rm -f conf$$.dir/conf$$.file
20987 if ln -s conf$$.file conf$$ 2>/dev/null; then
20989 # ... but there are two gotchas:
20990 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20991 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20992 # In both cases, we have to default to `cp -p'.
20993 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20995 elif ln conf$$.file conf$$ 2>/dev/null; then
21000 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21001 rmdir conf$$.dir 2>/dev/null
21003 if mkdir -p . 2>/dev/null; then
21006 test -d ./-p && rmdir ./-p
21010 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21011 # systems may use methods other than mode bits to determine executability.
21012 cat >conf$$.file <<_ASEOF
21016 chmod +x conf$$.file
21017 if test -x conf$$.file >/dev/null 2>&1; then
21018 as_executable_p="test -x"
21024 # Sed expression to map a string onto a valid CPP name.
21025 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21027 # Sed expression to map a string onto a valid variable name.
21028 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21033 # Save the log message, to keep $[0] and so on meaningful, and to
21034 # report actual input values of CONFIG_FILES etc. instead of their
21035 # values after options handling.
21037 This file was extended by llvm $as_me 2.8svn, which was
21038 generated by GNU Autoconf 2.60. Invocation command line was
21040 CONFIG_FILES = $CONFIG_FILES
21041 CONFIG_HEADERS = $CONFIG_HEADERS
21042 CONFIG_LINKS = $CONFIG_LINKS
21043 CONFIG_COMMANDS = $CONFIG_COMMANDS
21046 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21051 cat >>$CONFIG_STATUS <<_ACEOF
21052 # Files that config.status was made for.
21053 config_files="$ac_config_files"
21054 config_headers="$ac_config_headers"
21055 config_commands="$ac_config_commands"
21059 cat >>$CONFIG_STATUS <<\_ACEOF
21061 \`$as_me' instantiates files from templates according to the
21062 current configuration.
21064 Usage: $0 [OPTIONS] [FILE]...
21066 -h, --help print this help, then exit
21067 -V, --version print version number, then exit
21068 -q, --quiet do not print progress messages
21069 -d, --debug don't remove temporary files
21070 --recheck update $as_me by reconfiguring in the same conditions
21071 --file=FILE[:TEMPLATE]
21072 instantiate the configuration file FILE
21073 --header=FILE[:TEMPLATE]
21074 instantiate the configuration header FILE
21076 Configuration files:
21079 Configuration headers:
21082 Configuration commands:
21085 Report bugs to <bug-autoconf@gnu.org>."
21088 cat >>$CONFIG_STATUS <<_ACEOF
21090 llvm config.status 2.8svn
21091 configured by $0, generated by GNU Autoconf 2.60,
21092 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21094 Copyright (C) 2006 Free Software Foundation, Inc.
21095 This config.status script is free software; the Free Software Foundation
21096 gives unlimited permission to copy, distribute and modify it."
21103 cat >>$CONFIG_STATUS <<\_ACEOF
21104 # If no file are specified by the user, then we need to provide default
21105 # value. By we need to know if files were specified by the user.
21111 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21112 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21123 # Handling of the options.
21124 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21126 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21127 echo "$ac_cs_version"; exit ;;
21128 --debug | --debu | --deb | --de | --d | -d )
21130 --file | --fil | --fi | --f )
21132 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21133 ac_need_defaults=false;;
21134 --header | --heade | --head | --hea )
21136 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21137 ac_need_defaults=false;;
21139 # Conflict between --help and --header
21140 { echo "$as_me: error: ambiguous option: $1
21141 Try \`$0 --help' for more information." >&2
21142 { (exit 1); exit 1; }; };;
21143 --help | --hel | -h )
21144 echo "$ac_cs_usage"; exit ;;
21145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21146 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21149 # This is an error.
21150 -*) { echo "$as_me: error: unrecognized option: $1
21151 Try \`$0 --help' for more information." >&2
21152 { (exit 1); exit 1; }; } ;;
21154 *) ac_config_targets="$ac_config_targets $1"
21155 ac_need_defaults=false ;;
21161 ac_configure_extra_args=
21163 if $ac_cs_silent; then
21165 ac_configure_extra_args="$ac_configure_extra_args --silent"
21169 cat >>$CONFIG_STATUS <<_ACEOF
21170 if \$ac_cs_recheck; then
21171 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21172 CONFIG_SHELL=$SHELL
21173 export CONFIG_SHELL
21174 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21178 cat >>$CONFIG_STATUS <<\_ACEOF
21182 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21183 ## Running $as_me. ##
21189 cat >>$CONFIG_STATUS <<_ACEOF
21193 llvm_src="${srcdir}"
21197 cat >>$CONFIG_STATUS <<\_ACEOF
21199 # Handling of arguments.
21200 for ac_config_target in $ac_config_targets
21202 case $ac_config_target in
21203 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21204 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21205 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21206 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21207 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21208 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21209 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21210 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21211 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21212 "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21213 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21214 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21215 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21216 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21217 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21218 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21219 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21220 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21221 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21222 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21223 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21224 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21225 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21226 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21227 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21229 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21230 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21231 { (exit 1); exit 1; }; };;
21236 # If the user did not use the arguments to specify the items to instantiate,
21237 # then the envvar interface is used. Set only those that are not.
21238 # We use the long form for the default assignment because of an extremely
21239 # bizarre bug on SunOS 4.1.3.
21240 if $ac_need_defaults; then
21241 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21242 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21243 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21246 # Have a temporary directory for convenience. Make it in the build tree
21247 # simply because there is no reason against having it here, and in addition,
21248 # creating and moving files from /tmp can sometimes cause problems.
21249 # Hook for its removal unless debugging.
21250 # Note that there is a small window in which the directory will not be cleaned:
21251 # after its creation but before its name has been assigned to `$tmp'.
21255 trap 'exit_status=$?
21256 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21258 trap '{ (exit 1); exit 1; }' 1 2 13 15
21260 # Create a (secure) tmp directory for tmp files.
21263 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21264 test -n "$tmp" && test -d "$tmp"
21267 tmp=./conf$$-$RANDOM
21268 (umask 077 && mkdir "$tmp")
21271 echo "$me: cannot create a temporary directory in ." >&2
21272 { (exit 1); exit 1; }
21276 # Set up the sed scripts for CONFIG_FILES section.
21279 # No need to generate the scripts if there are no CONFIG_FILES.
21280 # This happens for instance when ./config.status config.h
21281 if test -n "$CONFIG_FILES"; then
21288 for ac_last_try in false false false false false :; do
21289 cat >conf$$subs.sed <<_ACEOF
21290 SHELL!$SHELL$ac_delim
21291 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21292 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21293 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21294 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21295 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21296 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21297 exec_prefix!$exec_prefix$ac_delim
21298 prefix!$prefix$ac_delim
21299 program_transform_name!$program_transform_name$ac_delim
21300 bindir!$bindir$ac_delim
21301 sbindir!$sbindir$ac_delim
21302 libexecdir!$libexecdir$ac_delim
21303 datarootdir!$datarootdir$ac_delim
21304 datadir!$datadir$ac_delim
21305 sysconfdir!$sysconfdir$ac_delim
21306 sharedstatedir!$sharedstatedir$ac_delim
21307 localstatedir!$localstatedir$ac_delim
21308 includedir!$includedir$ac_delim
21309 oldincludedir!$oldincludedir$ac_delim
21310 docdir!$docdir$ac_delim
21311 infodir!$infodir$ac_delim
21312 htmldir!$htmldir$ac_delim
21313 dvidir!$dvidir$ac_delim
21314 pdfdir!$pdfdir$ac_delim
21315 psdir!$psdir$ac_delim
21316 libdir!$libdir$ac_delim
21317 localedir!$localedir$ac_delim
21318 mandir!$mandir$ac_delim
21319 DEFS!$DEFS$ac_delim
21320 ECHO_C!$ECHO_C$ac_delim
21321 ECHO_N!$ECHO_N$ac_delim
21322 ECHO_T!$ECHO_T$ac_delim
21323 LIBS!$LIBS$ac_delim
21324 build_alias!$build_alias$ac_delim
21325 host_alias!$host_alias$ac_delim
21326 target_alias!$target_alias$ac_delim
21327 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21328 subdirs!$subdirs$ac_delim
21329 build!$build$ac_delim
21330 build_cpu!$build_cpu$ac_delim
21331 build_vendor!$build_vendor$ac_delim
21332 build_os!$build_os$ac_delim
21333 host!$host$ac_delim
21334 host_cpu!$host_cpu$ac_delim
21335 host_vendor!$host_vendor$ac_delim
21336 host_os!$host_os$ac_delim
21337 target!$target$ac_delim
21338 target_cpu!$target_cpu$ac_delim
21339 target_vendor!$target_vendor$ac_delim
21340 target_os!$target_os$ac_delim
21342 HOST_OS!$HOST_OS$ac_delim
21343 TARGET_OS!$TARGET_OS$ac_delim
21344 LINKALL!$LINKALL$ac_delim
21345 NOLINKALL!$NOLINKALL$ac_delim
21346 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21347 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21348 ARCH!$ARCH$ac_delim
21349 ENDIAN!$ENDIAN$ac_delim
21351 CFLAGS!$CFLAGS$ac_delim
21352 LDFLAGS!$LDFLAGS$ac_delim
21353 CPPFLAGS!$CPPFLAGS$ac_delim
21354 ac_ct_CC!$ac_ct_CC$ac_delim
21355 EXEEXT!$EXEEXT$ac_delim
21356 OBJEXT!$OBJEXT$ac_delim
21358 GREP!$GREP$ac_delim
21359 EGREP!$EGREP$ac_delim
21360 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21361 BUILD_CC!$BUILD_CC$ac_delim
21362 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21363 BUILD_CXX!$BUILD_CXX$ac_delim
21364 CVSBUILD!$CVSBUILD$ac_delim
21365 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21366 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21367 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21368 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21369 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21370 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21371 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21373 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21374 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21375 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21376 ENABLE_PIC!$ENABLE_PIC$ac_delim
21377 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21378 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21379 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21380 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21381 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21382 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21383 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21384 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21385 CLANGPATH!$CLANGPATH$ac_delim
21386 CLANGXXPATH!$CLANGXXPATH$ac_delim
21389 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21391 elif $ac_last_try; then
21392 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21393 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21394 { (exit 1); exit 1; }; }
21396 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21400 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21401 if test -n "$ac_eof"; then
21402 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21403 ac_eof=`expr $ac_eof + 1`
21406 cat >>$CONFIG_STATUS <<_ACEOF
21407 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21408 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21411 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21412 s/^/s,@/; s/!/@,|#_!!_#|/
21415 s/'"$ac_delim"'$/,g/; t
21417 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21418 ' >>$CONFIG_STATUS <conf$$subs.sed
21419 rm -f conf$$subs.sed
21420 cat >>$CONFIG_STATUS <<_ACEOF
21426 for ac_last_try in false false false false false :; do
21427 cat >conf$$subs.sed <<_ACEOF
21428 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21429 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21430 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21431 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21433 CXXFLAGS!$CXXFLAGS$ac_delim
21434 ac_ct_CXX!$ac_ct_CXX$ac_delim
21436 ifGNUmake!$ifGNUmake$ac_delim
21437 LN_S!$LN_S$ac_delim
21440 DATE!$DATE$ac_delim
21441 FIND!$FIND$ac_delim
21442 MKDIR!$MKDIR$ac_delim
21444 RANLIB!$RANLIB$ac_delim
21449 BINPWD!$BINPWD$ac_delim
21450 GRAPHVIZ!$GRAPHVIZ$ac_delim
21453 NEATO!$NEATO$ac_delim
21454 TWOPI!$TWOPI$ac_delim
21455 CIRCO!$CIRCO$ac_delim
21457 DOTTY!$DOTTY$ac_delim
21458 PERL!$PERL$ac_delim
21459 HAVE_PERL!$HAVE_PERL$ac_delim
21460 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21461 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21462 INSTALL_DATA!$INSTALL_DATA$ac_delim
21463 BZIP2!$BZIP2$ac_delim
21465 DOXYGEN!$DOXYGEN$ac_delim
21466 GROFF!$GROFF$ac_delim
21467 GZIP!$GZIP$ac_delim
21468 POD2HTML!$POD2HTML$ac_delim
21469 POD2MAN!$POD2MAN$ac_delim
21470 PDFROFF!$PDFROFF$ac_delim
21471 RUNTEST!$RUNTEST$ac_delim
21472 TCLSH!$TCLSH$ac_delim
21474 OCAMLC!$OCAMLC$ac_delim
21475 OCAMLOPT!$OCAMLOPT$ac_delim
21476 OCAMLDEP!$OCAMLDEP$ac_delim
21477 OCAMLDOC!$OCAMLDOC$ac_delim
21479 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21480 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21481 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21482 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21483 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21484 LIBADD_DL!$LIBADD_DL$ac_delim
21485 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21486 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21487 LLVMGCC!$LLVMGCC$ac_delim
21488 LLVMGXX!$LLVMGXX$ac_delim
21489 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21490 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21491 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21492 USE_UDIS86!$USE_UDIS86$ac_delim
21493 USE_OPROFILE!$USE_OPROFILE$ac_delim
21494 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21495 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21496 MMAP_FILE!$MMAP_FILE$ac_delim
21497 LLVMCC1!$LLVMCC1$ac_delim
21498 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21499 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21500 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21501 SHLIBEXT!$SHLIBEXT$ac_delim
21502 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21503 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21504 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21505 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21506 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21507 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21508 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21509 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21510 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21511 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21512 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21513 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21514 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21515 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21516 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21517 RPATH!$RPATH$ac_delim
21518 RDYNAMIC!$RDYNAMIC$ac_delim
21519 LIBOBJS!$LIBOBJS$ac_delim
21520 LTLIBOBJS!$LTLIBOBJS$ac_delim
21523 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
21525 elif $ac_last_try; then
21526 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21527 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21528 { (exit 1); exit 1; }; }
21530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21534 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21535 if test -n "$ac_eof"; then
21536 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21537 ac_eof=`expr $ac_eof + 1`
21540 cat >>$CONFIG_STATUS <<_ACEOF
21541 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21542 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21545 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21546 s/^/s,@/; s/!/@,|#_!!_#|/
21549 s/'"$ac_delim"'$/,g/; t
21551 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21552 ' >>$CONFIG_STATUS <conf$$subs.sed
21553 rm -f conf$$subs.sed
21554 cat >>$CONFIG_STATUS <<_ACEOF
21561 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21562 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21563 # trailing colons and then remove the whole line if VPATH becomes empty
21564 # (actually we leave an empty line to preserve line numbers).
21565 if test "x$srcdir" = x.; then
21566 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21567 s/:*\$(srcdir):*/:/
21568 s/:*\${srcdir}:*/:/
21570 s/^\([^=]*=[ ]*\):*/\1/
21576 cat >>$CONFIG_STATUS <<\_ACEOF
21577 fi # test -n "$CONFIG_FILES"
21580 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21583 :[FHLC]) ac_mode=$ac_tag; continue;;
21585 case $ac_mode$ac_tag in
21587 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21588 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21589 { (exit 1); exit 1; }; };;
21590 :[FH]-) ac_tag=-:-;;
21591 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21608 -) ac_f="$tmp/stdin";;
21609 *) # Look for the file first in the build tree, then in the source tree
21610 # (if the path is not absolute). The absolute path cannot be DOS-style,
21611 # because $ac_f cannot contain `:'.
21615 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21617 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21618 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21619 { (exit 1); exit 1; }; };;
21621 ac_file_inputs="$ac_file_inputs $ac_f"
21624 # Let's still pretend it is `configure' which instantiates (i.e., don't
21625 # use $as_me), people would be surprised to read:
21626 # /* config.h. Generated by config.status. */
21627 configure_input="Generated from "`IFS=:
21628 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21629 if test x"$ac_file" != x-; then
21630 configure_input="$ac_file. $configure_input"
21631 { echo "$as_me:$LINENO: creating $ac_file" >&5
21632 echo "$as_me: creating $ac_file" >&6;}
21636 *:-:* | *:-) cat >"$tmp/stdin";;
21641 ac_dir=`$as_dirname -- "$ac_file" ||
21642 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21643 X"$ac_file" : 'X\(//\)[^/]' \| \
21644 X"$ac_file" : 'X\(//\)$' \| \
21645 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21651 /^X\(\/\/\)[^/].*/{
21666 -*) as_dir=./$as_dir;;
21668 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21672 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21673 *) as_qdir=$as_dir;;
21675 as_dirs="'$as_qdir' $as_dirs"
21676 as_dir=`$as_dirname -- "$as_dir" ||
21677 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21678 X"$as_dir" : 'X\(//\)[^/]' \| \
21679 X"$as_dir" : 'X\(//\)$' \| \
21680 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21682 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21686 /^X\(\/\/\)[^/].*/{
21699 test -d "$as_dir" && break
21701 test -z "$as_dirs" || eval "mkdir $as_dirs"
21702 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21703 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21704 { (exit 1); exit 1; }; }; }
21708 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21710 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21711 # A ".." for each directory in $ac_dir_suffix.
21712 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21713 case $ac_top_builddir_sub in
21714 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21715 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21718 ac_abs_top_builddir=$ac_pwd
21719 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21720 # for backward compatibility:
21721 ac_top_builddir=$ac_top_build_prefix
21724 .) # We are building in place.
21726 ac_top_srcdir=$ac_top_builddir_sub
21727 ac_abs_top_srcdir=$ac_pwd ;;
21728 [\\/]* | ?:[\\/]* ) # Absolute name.
21729 ac_srcdir=$srcdir$ac_dir_suffix;
21730 ac_top_srcdir=$srcdir
21731 ac_abs_top_srcdir=$srcdir ;;
21732 *) # Relative name.
21733 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21734 ac_top_srcdir=$ac_top_build_prefix$srcdir
21735 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21737 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21747 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21748 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21752 cat >>$CONFIG_STATUS <<\_ACEOF
21753 # If the template does not know about datarootdir, expand it.
21754 # FIXME: This hack should be removed a few years after 2.60.
21755 ac_datarootdir_hack=; ac_datarootdir_seen=
21757 case `sed -n '/datarootdir/ {
21766 ' $ac_file_inputs` in
21767 *datarootdir*) ac_datarootdir_seen=yes;;
21768 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21769 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21770 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21772 cat >>$CONFIG_STATUS <<_ACEOF
21773 ac_datarootdir_hack='
21774 s&@datadir@&$datadir&g
21775 s&@docdir@&$docdir&g
21776 s&@infodir@&$infodir&g
21777 s&@localedir@&$localedir&g
21778 s&@mandir@&$mandir&g
21779 s&\\\${datarootdir}&$datarootdir&g' ;;
21783 # Neutralize VPATH when `$srcdir' = `.'.
21784 # Shell code in configure.ac might set extrasub.
21785 # FIXME: do we really want to maintain this feature?
21786 cat >>$CONFIG_STATUS <<_ACEOF
21790 cat >>$CONFIG_STATUS <<\_ACEOF
21792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21793 s&@configure_input@&$configure_input&;t t
21794 s&@top_builddir@&$ac_top_builddir_sub&;t t
21795 s&@srcdir@&$ac_srcdir&;t t
21796 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21797 s&@top_srcdir@&$ac_top_srcdir&;t t
21798 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21799 s&@builddir@&$ac_builddir&;t t
21800 s&@abs_builddir@&$ac_abs_builddir&;t t
21801 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21802 s&@INSTALL@&$ac_INSTALL&;t t
21803 $ac_datarootdir_hack
21804 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21806 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21807 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21808 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21809 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21810 which seems to be undefined. Please make sure it is defined." >&5
21811 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21812 which seems to be undefined. Please make sure it is defined." >&2;}
21816 -) cat "$tmp/out"; rm -f "$tmp/out";;
21817 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21826 # Transform confdefs.h into a sed script `conftest.defines', that
21827 # substitutes the proper values into config.h.in to produce config.h.
21828 rm -f conftest.defines conftest.tail
21829 # First, append a space to every undef/define line, to ease matching.
21830 echo 's/$/ /' >conftest.defines
21831 # Then, protect against being on the right side of a sed subst, or in
21832 # an unquoted here document, in config.status. If some macros were
21833 # called several times there might be several #defines for the same
21834 # symbol, which is useless. But do not sort them, since the last
21835 # AC_DEFINE must be honored.
21836 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21837 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21838 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21839 # PARAMS is the parameter list in the macro definition--in most cases, it's
21840 # just an empty string.
21841 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21842 ac_dB='\\)[ (].*,\\1define\\2'
21850 s/^[ ]*#[ ]*define[ ][ ]*//
21855 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21856 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21857 ' >>conftest.defines
21859 # Remove the space that was appended to ease matching.
21860 # Then replace #undef with comments. This is necessary, for
21861 # example, in the case of _POSIX_SOURCE, which is predefined and required
21862 # on some systems where configure will not decide to define it.
21863 # (The regexp can be short, since the line contains either #define or #undef.)
21865 s,^[ #]*u.*,/* & */,' >>conftest.defines
21867 # Break up conftest.defines:
21868 ac_max_sed_lines=50
21870 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21871 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21872 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21874 ac_in='$ac_file_inputs'
21875 ac_out='"$tmp/out1"'
21876 ac_nxt='"$tmp/out2"'
21880 # Write a here document:
21881 cat >>$CONFIG_STATUS <<_ACEOF
21882 # First, check the format of the line:
21883 cat >"\$tmp/defines.sed" <<\\CEOF
21884 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21885 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21889 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21891 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21892 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21893 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21894 grep . conftest.tail >/dev/null || break
21895 rm -f conftest.defines
21896 mv conftest.tail conftest.defines
21898 rm -f conftest.defines conftest.tail
21900 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21901 cat >>$CONFIG_STATUS <<\_ACEOF
21902 if test x"$ac_file" != x-; then
21903 echo "/* $configure_input */" >"$tmp/config.h"
21904 cat "$ac_result" >>"$tmp/config.h"
21905 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21906 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21907 echo "$as_me: $ac_file is unchanged" >&6;}
21910 mv "$tmp/config.h" $ac_file
21913 echo "/* $configure_input */"
21919 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21920 echo "$as_me: executing $ac_file commands" >&6;}
21925 case $ac_file$ac_mode in
21926 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21927 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21928 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21929 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21930 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21931 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21932 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21933 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21934 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21935 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21936 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21937 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21938 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21939 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21940 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21941 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21942 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21943 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21944 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21945 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21946 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21947 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21948 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21949 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21950 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21951 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21957 { (exit 0); exit 0; }
21959 chmod +x $CONFIG_STATUS
21960 ac_clean_files=$ac_clean_files_save
21963 # configure is writing to config.log, and then calls config.status.
21964 # config.status does its own redirection, appending to config.log.
21965 # Unfortunately, on DOS this fails, as config.log is still kept open
21966 # by configure, so config.status won't be able to write to it; its
21967 # output is simply discarded. So we exec the FD to /dev/null,
21968 # effectively closing config.log, so it can be properly (re)opened and
21969 # appended to by config.status. When coming back to configure, we
21970 # need to make the FD available again.
21971 if test "$no_create" != yes; then
21973 ac_config_status_args=
21974 test "$silent" = yes &&
21975 ac_config_status_args="$ac_config_status_args --quiet"
21977 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21979 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21980 # would make configure fail if this is the last instruction.
21981 $ac_cs_success || { (exit 1); exit 1; }
21985 # CONFIG_SUBDIRS section.
21987 if test "$no_recursion" != yes; then
21989 # Remove --cache-file and --srcdir arguments so they do not pile up.
21990 ac_sub_configure_args=
21992 eval "set x $ac_configure_args"
21996 if test -n "$ac_prev"; then
22001 -cache-file | --cache-file | --cache-fil | --cache-fi \
22002 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22003 ac_prev=cache_file ;;
22004 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22005 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22008 --config-cache | -C)
22010 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22012 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22014 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22016 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22020 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22022 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22026 # Always prepend --prefix to ensure using the same prefix
22027 # in subdir configurations.
22028 ac_arg="--prefix=$prefix"
22030 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22032 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22035 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22037 # Do not complain, so a configure script can configure whichever
22038 # parts of a large source tree are present.
22039 test -d "$srcdir/$ac_dir" || continue
22041 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22042 echo "$as_me:$LINENO: $ac_msg" >&5
22046 -*) as_dir=./$as_dir;;
22048 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22052 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22053 *) as_qdir=$as_dir;;
22055 as_dirs="'$as_qdir' $as_dirs"
22056 as_dir=`$as_dirname -- "$as_dir" ||
22057 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22058 X"$as_dir" : 'X\(//\)[^/]' \| \
22059 X"$as_dir" : 'X\(//\)$' \| \
22060 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22062 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22066 /^X\(\/\/\)[^/].*/{
22079 test -d "$as_dir" && break
22081 test -z "$as_dirs" || eval "mkdir $as_dirs"
22082 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22083 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22084 { (exit 1); exit 1; }; }; }
22088 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22090 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22091 # A ".." for each directory in $ac_dir_suffix.
22092 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22093 case $ac_top_builddir_sub in
22094 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22095 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22098 ac_abs_top_builddir=$ac_pwd
22099 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22100 # for backward compatibility:
22101 ac_top_builddir=$ac_top_build_prefix
22104 .) # We are building in place.
22106 ac_top_srcdir=$ac_top_builddir_sub
22107 ac_abs_top_srcdir=$ac_pwd ;;
22108 [\\/]* | ?:[\\/]* ) # Absolute name.
22109 ac_srcdir=$srcdir$ac_dir_suffix;
22110 ac_top_srcdir=$srcdir
22111 ac_abs_top_srcdir=$srcdir ;;
22112 *) # Relative name.
22113 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22114 ac_top_srcdir=$ac_top_build_prefix$srcdir
22115 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22117 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22122 # Check for guested configure; otherwise get Cygnus style configure.
22123 if test -f "$ac_srcdir/configure.gnu"; then
22124 ac_sub_configure=$ac_srcdir/configure.gnu
22125 elif test -f "$ac_srcdir/configure"; then
22126 ac_sub_configure=$ac_srcdir/configure
22127 elif test -f "$ac_srcdir/configure.in"; then
22128 # This should be Cygnus configure.
22129 ac_sub_configure=$ac_aux_dir/configure
22131 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22132 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22136 # The recursion is here.
22137 if test -n "$ac_sub_configure"; then
22138 # Make the cache file name correct relative to the subdirectory.
22139 case $cache_file in
22140 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22141 *) # Relative name.
22142 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22145 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22146 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22147 # The eval makes quoting arguments work.
22148 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22149 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22150 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22151 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22152 { (exit 1); exit 1; }; }