2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.2svn.
5 # Report bugs to <http://llvm.org/bugs/>.
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-2012 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='3.2svn'
565 PACKAGE_STRING='LLVM 3.2svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
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
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
755 HAVE_LINK_VERSION_SCRIPT
758 CONVENIENCE_LTDL_TRUE
759 CONVENIENCE_LTDL_FALSE
762 NO_MISSING_FIELD_INITIALIZERS
763 COVERED_SWITCH_DEFAULT
767 INTEL_JITEVENTS_INCDIR
768 INTEL_JITEVENTS_LIBDIR
787 ENABLE_VISIBILITY_INLINES_HIDDEN
793 ac_precious_vars='build_alias
804 ac_subdirs_all='projects/llvm-gcc
808 projects/llvm-poolalloc
811 projects/llvm-stacker
819 # Initialize some variables set by options.
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
960 -help | --help | --hel | --he | -h)
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 # Be sure to have absolute directory names.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-polly Use polly if available (default is YES)
1393 --enable-libcpp Use libc++ if available (default is NO)
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-docs Build documents (default is YES)
1407 --enable-doxygen Build doxygen documentation (default is NO)
1408 --enable-threads Use threads if available (default is YES)
1409 --enable-pthreads Use pthreads if available (default is YES)
1410 --enable-pic Build LLVM with Position Independent Code (default
1412 --enable-shared Build a shared library and link tools against it
1414 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1415 Win32 DLL (default is NO)
1416 --enable-timestamps Enable embedding timestamp information in build
1418 --enable-targets Build specific host targets: all or
1419 target1,target2,... Valid targets are: host, x86,
1420 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1421 xcore, msp430, ptx, nvptx, and cpp (default=all)
1422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
1424 --enable-libffi Check for the presence of libffi (default is NO)
1425 --enable-ltdl-install install libltdl
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-optimize-option Select the compiler options to use for optimized
1432 --with-extra-options Specify additional options to compile LLVM with
1433 --with-extra-ld-options Specify additional options to link LLVM with
1434 --with-ocaml-libdir Specify install location for ocaml bindings (default
1436 --with-clang-srcdir Directory to the out-of-tree Clang source
1437 --with-clang-resource-dir
1438 Relative directory from the Clang binary for
1440 --with-c-include-dirs Colon separated list of directories clang will
1442 --with-gcc-toolchain Directory where gcc is installed.
1443 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1444 --with-binutils-include Specify path to binutils/include/ containing
1445 plugin-api.h file for gold plugin.
1446 --with-bug-report-url Specify the URL where bug reports should be
1447 submitted (default=http://llvm.org/bugs/)
1448 --with-internal-prefix Installation directory for internal files
1449 --with-tclinclude directory where tcl headers are
1450 --with-udis86=<path> Use udis86 external x86 disassembler library
1451 --with-oprofile=<prefix>
1452 Tell OProfile >= 0.9.4 how to symbolize JIT output
1453 --with-intel-jitevents=<vtune-amplifier-dir>
1454 Specify location of run-time support library for
1456 (default=/opt/intel/vtune_amplifier_xe_2011)
1458 Some influential environment variables:
1459 CC C compiler command
1460 CFLAGS C compiler flags
1461 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1462 nonstandard directory <lib dir>
1463 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1464 you have headers in a nonstandard directory <include dir>
1465 CXX C++ compiler command
1466 CXXFLAGS C++ compiler flags
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1472 Report bugs to <http://llvm.org/bugs/>.
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" || continue
1484 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1487 # A ".." for each directory in $ac_dir_suffix.
1488 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1489 case $ac_top_builddir_sub in
1490 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 ac_abs_top_builddir=$ac_pwd
1495 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1496 # for backward compatibility:
1497 ac_top_builddir=$ac_top_build_prefix
1500 .) # We are building in place.
1502 ac_top_srcdir=$ac_top_builddir_sub
1503 ac_abs_top_srcdir=$ac_pwd ;;
1504 [\\/]* | ?:[\\/]* ) # Absolute name.
1505 ac_srcdir=$srcdir$ac_dir_suffix;
1506 ac_top_srcdir=$srcdir
1507 ac_abs_top_srcdir=$srcdir ;;
1509 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1510 ac_top_srcdir=$ac_top_build_prefix$srcdir
1511 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1513 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1515 cd "$ac_dir" || { ac_status=$?; continue; }
1516 # Check for guested configure.
1517 if test -f "$ac_srcdir/configure.gnu"; then
1519 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1520 elif test -f "$ac_srcdir/configure"; then
1522 $SHELL "$ac_srcdir/configure" --help=recursive
1524 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1526 cd "$ac_pwd" || { ac_status=$?; break; }
1530 test -n "$ac_init_help" && exit $ac_status
1531 if $ac_init_version; then
1533 LLVM configure 3.2svn
1534 generated by GNU Autoconf 2.60
1536 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1537 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1538 This configure script is free software; the Free Software Foundation
1539 gives unlimited permission to copy, distribute and modify it.
1541 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1545 cat >config.log <<_ACEOF
1546 This file contains any messages produced by compilers while
1547 running configure, to aid debugging if configure makes a mistake.
1549 It was created by LLVM $as_me 3.2svn, which was
1550 generated by GNU Autoconf 2.60. Invocation command line was
1562 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1563 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1564 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1565 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1566 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1568 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1569 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1571 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1572 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1573 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1574 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1575 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1576 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1577 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1585 test -z "$as_dir" && as_dir=.
1586 echo "PATH: $as_dir"
1602 # Keep a trace of the command line.
1603 # Strip out --no-create and --no-recursion so they do not pile up.
1604 # Strip out --silent because we don't want to record it for future runs.
1605 # Also quote any args containing shell meta-characters.
1606 # Make two passes to allow for proper duplicate-argument suppression.
1610 ac_must_keep_next=false
1616 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1617 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1618 | -silent | --silent | --silen | --sile | --sil)
1621 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1624 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1626 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1627 if test $ac_must_keep_next = true; then
1628 ac_must_keep_next=false # Got value, back to normal.
1631 *=* | --config-cache | -C | -disable-* | --disable-* \
1632 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1633 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1634 | -with-* | --with-* | -without-* | --without-* | --x)
1635 case "$ac_configure_args0 " in
1636 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1639 -* ) ac_must_keep_next=true ;;
1642 ac_configure_args="$ac_configure_args '$ac_arg'"
1647 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1648 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1650 # When interrupted or exit'd, cleanup temporary files, and complete
1651 # config.log. We remove comments because anyway the quotes in there
1652 # would cause problems or look ugly.
1653 # WARNING: Use '\'' to represent an apostrophe within the trap.
1654 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1655 trap 'exit_status=$?
1656 # Save into config.log some information that might help in debugging.
1661 ## ---------------- ##
1662 ## Cache variables. ##
1663 ## ---------------- ##
1666 # The following way of writing the cache mishandles newlines in values,
1668 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1669 eval ac_val=\$$ac_var
1673 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1674 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1677 _ | IFS | as_nl) ;; #(
1678 *) $as_unset $ac_var ;;
1683 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1684 *${as_nl}ac_space=\ *)
1686 "s/'\''/'\''\\\\'\'''\''/g;
1687 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1690 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1698 ## ----------------- ##
1699 ## Output variables. ##
1700 ## ----------------- ##
1703 for ac_var in $ac_subst_vars
1705 eval ac_val=\$$ac_var
1707 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1709 echo "$ac_var='\''$ac_val'\''"
1713 if test -n "$ac_subst_files"; then
1715 ## ------------------- ##
1716 ## File substitutions. ##
1717 ## ------------------- ##
1720 for ac_var in $ac_subst_files
1722 eval ac_val=\$$ac_var
1724 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1726 echo "$ac_var='\''$ac_val'\''"
1731 if test -s confdefs.h; then
1741 test "$ac_signal" != 0 &&
1742 echo "$as_me: caught signal $ac_signal"
1743 echo "$as_me: exit $exit_status"
1745 rm -f core *.core core.conftest.* &&
1746 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1749 for ac_signal in 1 2 13 15; do
1750 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1754 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1755 rm -f -r conftest* confdefs.h
1757 # Predefined preprocessor variables.
1759 cat >>confdefs.h <<_ACEOF
1760 #define PACKAGE_NAME "$PACKAGE_NAME"
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_STRING "$PACKAGE_STRING"
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1784 # Let the site file select an alternate cache file if it wants to.
1785 # Prefer explicitly selected file to automatically selected ones.
1786 if test -n "$CONFIG_SITE"; then
1787 set x "$CONFIG_SITE"
1788 elif test "x$prefix" != xNONE; then
1789 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1791 set x "$ac_default_prefix/share/config.site" \
1792 "$ac_default_prefix/etc/config.site"
1797 if test -r "$ac_site_file"; then
1798 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1799 echo "$as_me: loading site script $ac_site_file" >&6;}
1800 sed 's/^/| /' "$ac_site_file" >&5
1805 if test -r "$cache_file"; then
1806 # Some versions of bash will fail to source /dev/null (special
1807 # files actually), so we avoid doing that.
1808 if test -f "$cache_file"; then
1809 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1810 echo "$as_me: loading cache $cache_file" >&6;}
1812 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1813 *) . "./$cache_file";;
1817 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1818 echo "$as_me: creating cache $cache_file" >&6;}
1822 # Check that the precious variables saved in the cache have kept the same
1824 ac_cache_corrupted=false
1825 for ac_var in $ac_precious_vars; do
1826 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1827 eval ac_new_set=\$ac_env_${ac_var}_set
1828 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1829 eval ac_new_val=\$ac_env_${ac_var}_value
1830 case $ac_old_set,$ac_new_set in
1832 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1833 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1834 ac_cache_corrupted=: ;;
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1841 if test "x$ac_old_val" != "x$ac_new_val"; then
1842 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1843 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1844 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1845 echo "$as_me: former value: $ac_old_val" >&2;}
1846 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1847 echo "$as_me: current value: $ac_new_val" >&2;}
1848 ac_cache_corrupted=:
1851 # Pass precious variables to config.status.
1852 if test "$ac_new_set" = set; then
1854 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1855 *) ac_arg=$ac_var=$ac_new_val ;;
1857 case " $ac_configure_args " in
1858 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1859 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1863 if $ac_cache_corrupted; then
1864 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1865 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1866 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1867 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1868 { (exit 1); exit 1; }; }
1896 ac_cpp='$CPP $CPPFLAGS'
1897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903 cat >>confdefs.h <<\_ACEOF
1904 #define LLVM_VERSION_MAJOR 3
1908 cat >>confdefs.h <<\_ACEOF
1909 #define LLVM_VERSION_MINOR 2
1913 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1922 for ac_dir in autoconf "$srcdir"/autoconf; do
1923 if test -f "$ac_dir/install-sh"; then
1925 ac_install_sh="$ac_aux_dir/install-sh -c"
1927 elif test -f "$ac_dir/install.sh"; then
1929 ac_install_sh="$ac_aux_dir/install.sh -c"
1931 elif test -f "$ac_dir/shtool"; then
1933 ac_install_sh="$ac_aux_dir/shtool install -c"
1937 if test -z "$ac_aux_dir"; then
1938 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1939 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1940 { (exit 1); exit 1; }; }
1943 # These three variables are undocumented and unsupported,
1944 # and are intended to be withdrawn in a future Autoconf release.
1945 # They can cause serious problems if a builder's source tree is in a directory
1946 # whose full name contains unusual characters.
1947 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1948 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1949 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1953 if test ${srcdir} != "." ; then
1954 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1955 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1956 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1957 { (exit 1); exit 1; }; }
1962 ac_cpp='$CPP $CPPFLAGS'
1963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1966 if test -n "$ac_tool_prefix"; then
1967 for ac_prog in clang llvm-gcc gcc
1969 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1970 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1973 if test "${ac_cv_prog_CC+set}" = set; then
1974 echo $ECHO_N "(cached) $ECHO_C" >&6
1976 if test -n "$CC"; then
1977 ac_cv_prog_CC="$CC" # Let the user override the test.
1979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1983 test -z "$as_dir" && as_dir=.
1984 for ac_exec_ext in '' $ac_executable_extensions; do
1985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1986 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1997 if test -n "$CC"; then
1998 { echo "$as_me:$LINENO: result: $CC" >&5
1999 echo "${ECHO_T}$CC" >&6; }
2001 { echo "$as_me:$LINENO: result: no" >&5
2002 echo "${ECHO_T}no" >&6; }
2006 test -n "$CC" && break
2009 if test -z "$CC"; then
2011 for ac_prog in clang llvm-gcc gcc
2013 # Extract the first word of "$ac_prog", so it can be a program name with args.
2014 set dummy $ac_prog; ac_word=$2
2015 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2017 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2018 echo $ECHO_N "(cached) $ECHO_C" >&6
2020 if test -n "$ac_ct_CC"; then
2021 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2027 test -z "$as_dir" && as_dir=.
2028 for ac_exec_ext in '' $ac_executable_extensions; do
2029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2030 ac_cv_prog_ac_ct_CC="$ac_prog"
2031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2040 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2041 if test -n "$ac_ct_CC"; then
2042 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2043 echo "${ECHO_T}$ac_ct_CC" >&6; }
2045 { echo "$as_me:$LINENO: result: no" >&5
2046 echo "${ECHO_T}no" >&6; }
2050 test -n "$ac_ct_CC" && break
2053 if test "x$ac_ct_CC" = x; then
2056 case $cross_compiling:$ac_tool_warned in
2058 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2059 whose name does not start with the host triplet. If you think this
2060 configuration is useful to you, please write to autoconf@gnu.org." >&5
2061 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2062 whose name does not start with the host triplet. If you think this
2063 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2064 ac_tool_warned=yes ;;
2071 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2072 See \`config.log' for more details." >&5
2073 echo "$as_me: error: no acceptable C compiler found in \$PATH
2074 See \`config.log' for more details." >&2;}
2075 { (exit 1); exit 1; }; }
2077 # Provide some information about the compiler.
2078 echo "$as_me:$LINENO: checking for C compiler version" >&5
2079 ac_compiler=`set X $ac_compile; echo $2`
2080 { (ac_try="$ac_compiler --version >&5"
2082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2083 *) ac_try_echo=$ac_try;;
2085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2086 (eval "$ac_compiler --version >&5") 2>&5
2088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2089 (exit $ac_status); }
2090 { (ac_try="$ac_compiler -v >&5"
2092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2093 *) ac_try_echo=$ac_try;;
2095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2096 (eval "$ac_compiler -v >&5") 2>&5
2098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2099 (exit $ac_status); }
2100 { (ac_try="$ac_compiler -V >&5"
2102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2103 *) ac_try_echo=$ac_try;;
2105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2106 (eval "$ac_compiler -V >&5") 2>&5
2108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2109 (exit $ac_status); }
2111 cat >conftest.$ac_ext <<_ACEOF
2114 cat confdefs.h >>conftest.$ac_ext
2115 cat >>conftest.$ac_ext <<_ACEOF
2116 /* end confdefs.h. */
2126 ac_clean_files_save=$ac_clean_files
2127 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2128 # Try to create an executable without -o first, disregard a.out.
2129 # It will help us diagnose broken compilers, and finding out an intuition
2131 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2132 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2133 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2135 # List of possible output files, starting from the most likely.
2136 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2137 # only as a last resort. b.out is created by i960 compilers.
2138 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2140 # The IRIX 6 linker writes into existing files which may not be
2141 # executable, retaining their permissions. Remove them first so a
2142 # subsequent execution test works.
2144 for ac_file in $ac_files
2147 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2148 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2153 if { (ac_try="$ac_link_default"
2155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2156 *) ac_try_echo=$ac_try;;
2158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2159 (eval "$ac_link_default") 2>&5
2161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162 (exit $ac_status); }; then
2163 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2164 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2165 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2166 # so that the user can short-circuit this test for compilers unknown to
2168 for ac_file in $ac_files
2170 test -f "$ac_file" || continue
2172 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2175 # We found the default executable, but exeext='' is most
2179 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2181 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2183 # We set ac_cv_exeext here because the later test for it is not
2184 # safe: cross compilers may not add the suffix if given an `-o'
2185 # argument, so we may need to know it at that point already.
2186 # Even if this section looks crufty: it has the advantage of
2193 test "$ac_cv_exeext" = no && ac_cv_exeext=
2196 echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2199 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2200 See \`config.log' for more details." >&5
2201 echo "$as_me: error: C compiler cannot create executables
2202 See \`config.log' for more details." >&2;}
2203 { (exit 77); exit 77; }; }
2206 ac_exeext=$ac_cv_exeext
2207 { echo "$as_me:$LINENO: result: $ac_file" >&5
2208 echo "${ECHO_T}$ac_file" >&6; }
2210 # Check that the compiler produces executables we can run. If not, either
2211 # the compiler is broken, or we cross compile.
2212 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2213 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2214 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2215 # If not cross compiling, check that we can run a simple program.
2216 if test "$cross_compiling" != yes; then
2217 if { ac_try='./$ac_file'
2218 { (case "(($ac_try" in
2219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2220 *) ac_try_echo=$ac_try;;
2222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2223 (eval "$ac_try") 2>&5
2225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226 (exit $ac_status); }; }; then
2229 if test "$cross_compiling" = maybe; then
2232 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2233 If you meant to cross compile, use \`--host'.
2234 See \`config.log' for more details." >&5
2235 echo "$as_me: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&2;}
2238 { (exit 1); exit 1; }; }
2242 { echo "$as_me:$LINENO: result: yes" >&5
2243 echo "${ECHO_T}yes" >&6; }
2245 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2246 ac_clean_files=$ac_clean_files_save
2247 # Check that the compiler produces executables we can run. If not, either
2248 # the compiler is broken, or we cross compile.
2249 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2250 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2251 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2252 echo "${ECHO_T}$cross_compiling" >&6; }
2254 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2255 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2256 if { (ac_try="$ac_link"
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2262 (eval "$ac_link") 2>&5
2264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2265 (exit $ac_status); }; then
2266 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2267 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2268 # work properly (i.e., refer to `conftest.exe'), while it won't with
2270 for ac_file in conftest.exe conftest conftest.*; do
2271 test -f "$ac_file" || continue
2273 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2274 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2280 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2281 See \`config.log' for more details." >&5
2282 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2283 See \`config.log' for more details." >&2;}
2284 { (exit 1); exit 1; }; }
2287 rm -f conftest$ac_cv_exeext
2288 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2289 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2291 rm -f conftest.$ac_ext
2292 EXEEXT=$ac_cv_exeext
2294 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2295 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2296 if test "${ac_cv_objext+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 cat >conftest.$ac_ext <<_ACEOF
2302 cat confdefs.h >>conftest.$ac_ext
2303 cat >>conftest.$ac_ext <<_ACEOF
2304 /* end confdefs.h. */
2314 rm -f conftest.o conftest.obj
2315 if { (ac_try="$ac_compile"
2317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2318 *) ac_try_echo=$ac_try;;
2320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2321 (eval "$ac_compile") 2>&5
2323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2324 (exit $ac_status); }; then
2325 for ac_file in conftest.o conftest.obj conftest.*; do
2326 test -f "$ac_file" || continue;
2328 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2329 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2334 echo "$as_me: failed program was:" >&5
2335 sed 's/^/| /' conftest.$ac_ext >&5
2337 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2338 See \`config.log' for more details." >&5
2339 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2340 See \`config.log' for more details." >&2;}
2341 { (exit 1); exit 1; }; }
2344 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2346 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2347 echo "${ECHO_T}$ac_cv_objext" >&6; }
2348 OBJEXT=$ac_cv_objext
2350 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2351 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2352 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2353 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 cat >conftest.$ac_ext <<_ACEOF
2358 cat confdefs.h >>conftest.$ac_ext
2359 cat >>conftest.$ac_ext <<_ACEOF
2360 /* end confdefs.h. */
2373 rm -f conftest.$ac_objext
2374 if { (ac_try="$ac_compile"
2376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2377 *) ac_try_echo=$ac_try;;
2379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2380 (eval "$ac_compile") 2>conftest.er1
2382 grep -v '^ *+' conftest.er1 >conftest.err
2384 cat conftest.err >&5
2385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2386 (exit $ac_status); } &&
2387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2388 { (case "(($ac_try" in
2389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2390 *) ac_try_echo=$ac_try;;
2392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2393 (eval "$ac_try") 2>&5
2395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2396 (exit $ac_status); }; } &&
2397 { ac_try='test -s conftest.$ac_objext'
2398 { (case "(($ac_try" in
2399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2400 *) ac_try_echo=$ac_try;;
2402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2403 (eval "$ac_try") 2>&5
2405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2406 (exit $ac_status); }; }; then
2409 echo "$as_me: failed program was:" >&5
2410 sed 's/^/| /' conftest.$ac_ext >&5
2415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2416 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2419 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2420 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2421 GCC=`test $ac_compiler_gnu = yes && echo yes`
2422 ac_test_CFLAGS=${CFLAGS+set}
2423 ac_save_CFLAGS=$CFLAGS
2424 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2425 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2426 if test "${ac_cv_prog_cc_g+set}" = set; then
2427 echo $ECHO_N "(cached) $ECHO_C" >&6
2429 ac_save_c_werror_flag=$ac_c_werror_flag
2430 ac_c_werror_flag=yes
2433 cat >conftest.$ac_ext <<_ACEOF
2436 cat confdefs.h >>conftest.$ac_ext
2437 cat >>conftest.$ac_ext <<_ACEOF
2438 /* end confdefs.h. */
2448 rm -f conftest.$ac_objext
2449 if { (ac_try="$ac_compile"
2451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2452 *) ac_try_echo=$ac_try;;
2454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2455 (eval "$ac_compile") 2>conftest.er1
2457 grep -v '^ *+' conftest.er1 >conftest.err
2459 cat conftest.err >&5
2460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2461 (exit $ac_status); } &&
2462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2463 { (case "(($ac_try" in
2464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2465 *) ac_try_echo=$ac_try;;
2467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2468 (eval "$ac_try") 2>&5
2470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2471 (exit $ac_status); }; } &&
2472 { ac_try='test -s conftest.$ac_objext'
2473 { (case "(($ac_try" in
2474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2475 *) ac_try_echo=$ac_try;;
2477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2478 (eval "$ac_try") 2>&5
2480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2481 (exit $ac_status); }; }; then
2484 echo "$as_me: failed program was:" >&5
2485 sed 's/^/| /' conftest.$ac_ext >&5
2488 cat >conftest.$ac_ext <<_ACEOF
2491 cat confdefs.h >>conftest.$ac_ext
2492 cat >>conftest.$ac_ext <<_ACEOF
2493 /* end confdefs.h. */
2503 rm -f conftest.$ac_objext
2504 if { (ac_try="$ac_compile"
2506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2507 *) ac_try_echo=$ac_try;;
2509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2510 (eval "$ac_compile") 2>conftest.er1
2512 grep -v '^ *+' conftest.er1 >conftest.err
2514 cat conftest.err >&5
2515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2516 (exit $ac_status); } &&
2517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2518 { (case "(($ac_try" in
2519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2520 *) ac_try_echo=$ac_try;;
2522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2523 (eval "$ac_try") 2>&5
2525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2526 (exit $ac_status); }; } &&
2527 { ac_try='test -s conftest.$ac_objext'
2528 { (case "(($ac_try" in
2529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2530 *) ac_try_echo=$ac_try;;
2532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2533 (eval "$ac_try") 2>&5
2535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2536 (exit $ac_status); }; }; then
2539 echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2542 ac_c_werror_flag=$ac_save_c_werror_flag
2544 cat >conftest.$ac_ext <<_ACEOF
2547 cat confdefs.h >>conftest.$ac_ext
2548 cat >>conftest.$ac_ext <<_ACEOF
2549 /* end confdefs.h. */
2559 rm -f conftest.$ac_objext
2560 if { (ac_try="$ac_compile"
2562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2563 *) ac_try_echo=$ac_try;;
2565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2566 (eval "$ac_compile") 2>conftest.er1
2568 grep -v '^ *+' conftest.er1 >conftest.err
2570 cat conftest.err >&5
2571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2572 (exit $ac_status); } &&
2573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2574 { (case "(($ac_try" in
2575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2576 *) ac_try_echo=$ac_try;;
2578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2579 (eval "$ac_try") 2>&5
2581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2582 (exit $ac_status); }; } &&
2583 { ac_try='test -s conftest.$ac_objext'
2584 { (case "(($ac_try" in
2585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2586 *) ac_try_echo=$ac_try;;
2588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2589 (eval "$ac_try") 2>&5
2591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2592 (exit $ac_status); }; }; then
2595 echo "$as_me: failed program was:" >&5
2596 sed 's/^/| /' conftest.$ac_ext >&5
2601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 ac_c_werror_flag=$ac_save_c_werror_flag
2610 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2611 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2612 if test "$ac_test_CFLAGS" = set; then
2613 CFLAGS=$ac_save_CFLAGS
2614 elif test $ac_cv_prog_cc_g = yes; then
2615 if test "$GCC" = yes; then
2621 if test "$GCC" = yes; then
2627 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2628 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2629 if test "${ac_cv_prog_cc_c89+set}" = set; then
2630 echo $ECHO_N "(cached) $ECHO_C" >&6
2632 ac_cv_prog_cc_c89=no
2634 cat >conftest.$ac_ext <<_ACEOF
2637 cat confdefs.h >>conftest.$ac_ext
2638 cat >>conftest.$ac_ext <<_ACEOF
2639 /* end confdefs.h. */
2642 #include <sys/types.h>
2643 #include <sys/stat.h>
2644 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2645 struct buf { int x; };
2646 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2647 static char *e (p, i)
2653 static char *f (char * (*g) (char **, int), char **p, ...)
2658 s = g (p, va_arg (v,int));
2663 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2664 function prototypes and stuff, but not '\xHH' hex character constants.
2665 These don't provoke an error unfortunately, instead are silently treated
2666 as 'x'. The following induces an error, until -std is added to get
2667 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2668 array size at least. It's necessary to write '\x00'==0 to get something
2669 that's true only with -std. */
2670 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2672 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2673 inside strings and character constants. */
2675 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2677 int test (int i, double x);
2678 struct s1 {int (*f) (int a);};
2679 struct s2 {int (*f) (double a);};
2680 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2686 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2691 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2692 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2694 CC="$ac_save_CC $ac_arg"
2695 rm -f conftest.$ac_objext
2696 if { (ac_try="$ac_compile"
2698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2699 *) ac_try_echo=$ac_try;;
2701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2702 (eval "$ac_compile") 2>conftest.er1
2704 grep -v '^ *+' conftest.er1 >conftest.err
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2710 { (case "(($ac_try" in
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_try") 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }; } &&
2719 { ac_try='test -s conftest.$ac_objext'
2720 { (case "(($ac_try" in
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2725 (eval "$ac_try") 2>&5
2727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2728 (exit $ac_status); }; }; then
2729 ac_cv_prog_cc_c89=$ac_arg
2731 echo "$as_me: failed program was:" >&5
2732 sed 's/^/| /' conftest.$ac_ext >&5
2737 rm -f core conftest.err conftest.$ac_objext
2738 test "x$ac_cv_prog_cc_c89" != "xno" && break
2740 rm -f conftest.$ac_ext
2745 case "x$ac_cv_prog_cc_c89" in
2747 { echo "$as_me:$LINENO: result: none needed" >&5
2748 echo "${ECHO_T}none needed" >&6; } ;;
2750 { echo "$as_me:$LINENO: result: unsupported" >&5
2751 echo "${ECHO_T}unsupported" >&6; } ;;
2753 CC="$CC $ac_cv_prog_cc_c89"
2754 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2755 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2760 ac_cpp='$CPP $CPPFLAGS'
2761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2766 ac_cpp='$CXXCPP $CPPFLAGS'
2767 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2768 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2769 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2770 if test -z "$CXX"; then
2771 if test -n "$CCC"; then
2774 if test -n "$ac_tool_prefix"; then
2775 for ac_prog in clang++ llvm-g++ g++
2777 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2778 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2781 if test "${ac_cv_prog_CXX+set}" = set; then
2782 echo $ECHO_N "(cached) $ECHO_C" >&6
2784 if test -n "$CXX"; then
2785 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2791 test -z "$as_dir" && as_dir=.
2792 for ac_exec_ext in '' $ac_executable_extensions; do
2793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2794 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2805 if test -n "$CXX"; then
2806 { echo "$as_me:$LINENO: result: $CXX" >&5
2807 echo "${ECHO_T}$CXX" >&6; }
2809 { echo "$as_me:$LINENO: result: no" >&5
2810 echo "${ECHO_T}no" >&6; }
2814 test -n "$CXX" && break
2817 if test -z "$CXX"; then
2819 for ac_prog in clang++ llvm-g++ g++
2821 # Extract the first word of "$ac_prog", so it can be a program name with args.
2822 set dummy $ac_prog; ac_word=$2
2823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2825 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2826 echo $ECHO_N "(cached) $ECHO_C" >&6
2828 if test -n "$ac_ct_CXX"; then
2829 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 test -z "$as_dir" && as_dir=.
2836 for ac_exec_ext in '' $ac_executable_extensions; do
2837 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2838 ac_cv_prog_ac_ct_CXX="$ac_prog"
2839 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2849 if test -n "$ac_ct_CXX"; then
2850 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2851 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2853 { echo "$as_me:$LINENO: result: no" >&5
2854 echo "${ECHO_T}no" >&6; }
2858 test -n "$ac_ct_CXX" && break
2861 if test "x$ac_ct_CXX" = x; then
2864 case $cross_compiling:$ac_tool_warned in
2866 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2867 whose name does not start with the host triplet. If you think this
2868 configuration is useful to you, please write to autoconf@gnu.org." >&5
2869 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2870 whose name does not start with the host triplet. If you think this
2871 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2872 ac_tool_warned=yes ;;
2880 # Provide some information about the compiler.
2881 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2882 ac_compiler=`set X $ac_compile; echo $2`
2883 { (ac_try="$ac_compiler --version >&5"
2885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2886 *) ac_try_echo=$ac_try;;
2888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2889 (eval "$ac_compiler --version >&5") 2>&5
2891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2892 (exit $ac_status); }
2893 { (ac_try="$ac_compiler -v >&5"
2895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2896 *) ac_try_echo=$ac_try;;
2898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2899 (eval "$ac_compiler -v >&5") 2>&5
2901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2902 (exit $ac_status); }
2903 { (ac_try="$ac_compiler -V >&5"
2905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2906 *) ac_try_echo=$ac_try;;
2908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2909 (eval "$ac_compiler -V >&5") 2>&5
2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2912 (exit $ac_status); }
2914 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2915 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2916 if test "${ac_cv_cxx_compiler_gnu+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. */
2937 rm -f conftest.$ac_objext
2938 if { (ac_try="$ac_compile"
2940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2941 *) ac_try_echo=$ac_try;;
2943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2944 (eval "$ac_compile") 2>conftest.er1
2946 grep -v '^ *+' conftest.er1 >conftest.err
2948 cat conftest.err >&5
2949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2950 (exit $ac_status); } &&
2951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2952 { (case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2957 (eval "$ac_try") 2>&5
2959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2960 (exit $ac_status); }; } &&
2961 { ac_try='test -s conftest.$ac_objext'
2962 { (case "(($ac_try" in
2963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2964 *) ac_try_echo=$ac_try;;
2966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2967 (eval "$ac_try") 2>&5
2969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2970 (exit $ac_status); }; }; then
2973 echo "$as_me: failed program was:" >&5
2974 sed 's/^/| /' conftest.$ac_ext >&5
2979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2980 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2983 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2984 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2985 GXX=`test $ac_compiler_gnu = yes && echo yes`
2986 ac_test_CXXFLAGS=${CXXFLAGS+set}
2987 ac_save_CXXFLAGS=$CXXFLAGS
2988 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2989 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2990 if test "${ac_cv_prog_cxx_g+set}" = set; then
2991 echo $ECHO_N "(cached) $ECHO_C" >&6
2993 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2994 ac_cxx_werror_flag=yes
2997 cat >conftest.$ac_ext <<_ACEOF
3000 cat confdefs.h >>conftest.$ac_ext
3001 cat >>conftest.$ac_ext <<_ACEOF
3002 /* end confdefs.h. */
3012 rm -f conftest.$ac_objext
3013 if { (ac_try="$ac_compile"
3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3016 *) ac_try_echo=$ac_try;;
3018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3019 (eval "$ac_compile") 2>conftest.er1
3021 grep -v '^ *+' conftest.er1 >conftest.err
3023 cat conftest.err >&5
3024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3025 (exit $ac_status); } &&
3026 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3027 { (case "(($ac_try" in
3028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3029 *) ac_try_echo=$ac_try;;
3031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3032 (eval "$ac_try") 2>&5
3034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3035 (exit $ac_status); }; } &&
3036 { ac_try='test -s conftest.$ac_objext'
3037 { (case "(($ac_try" in
3038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3039 *) ac_try_echo=$ac_try;;
3041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3042 (eval "$ac_try") 2>&5
3044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; }; then
3046 ac_cv_prog_cxx_g=yes
3048 echo "$as_me: failed program was:" >&5
3049 sed 's/^/| /' conftest.$ac_ext >&5
3052 cat >conftest.$ac_ext <<_ACEOF
3055 cat confdefs.h >>conftest.$ac_ext
3056 cat >>conftest.$ac_ext <<_ACEOF
3057 /* end confdefs.h. */
3067 rm -f conftest.$ac_objext
3068 if { (ac_try="$ac_compile"
3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3071 *) ac_try_echo=$ac_try;;
3073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3074 (eval "$ac_compile") 2>conftest.er1
3076 grep -v '^ *+' conftest.er1 >conftest.err
3078 cat conftest.err >&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); } &&
3081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; } &&
3091 { ac_try='test -s conftest.$ac_objext'
3092 { (case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_try") 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; }; then
3103 echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.$ac_ext >&5
3106 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
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_cxx_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
3157 ac_cv_prog_cxx_g=yes
3159 echo "$as_me: failed program was:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3174 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3175 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3176 if test "$ac_test_CXXFLAGS" = set; then
3177 CXXFLAGS=$ac_save_CXXFLAGS
3178 elif test $ac_cv_prog_cxx_g = yes; then
3179 if test "$GXX" = yes; then
3185 if test "$GXX" = yes; then
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3198 ac_cpp='$CPP $CPPFLAGS'
3199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3204 # On Suns, sometimes $CPP names a directory.
3205 if test -n "$CPP" && test -d "$CPP"; then
3208 if test -z "$CPP"; then
3209 if test "${ac_cv_prog_CPP+set}" = set; then
3210 echo $ECHO_N "(cached) $ECHO_C" >&6
3212 # Double quotes because CPP needs to be expanded
3213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3216 for ac_c_preproc_warn_flag in '' yes
3218 # Use a header file that comes with gcc, so configuring glibc
3219 # with a fresh cross-compiler works.
3220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3221 # <limits.h> exists even on freestanding compilers.
3222 # On the NeXT, cc -E runs the code through the compiler's parser,
3223 # not just through cpp. "Syntax error" is here to catch this case.
3224 cat >conftest.$ac_ext <<_ACEOF
3227 cat confdefs.h >>conftest.$ac_ext
3228 cat >>conftest.$ac_ext <<_ACEOF
3229 /* end confdefs.h. */
3231 # include <limits.h>
3233 # include <assert.h>
3237 if { (ac_try="$ac_cpp conftest.$ac_ext"
3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3240 *) ac_try_echo=$ac_try;;
3242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3245 grep -v '^ *+' conftest.er1 >conftest.err
3247 cat conftest.err >&5
3248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3249 (exit $ac_status); } >/dev/null; then
3250 if test -s conftest.err; then
3251 ac_cpp_err=$ac_c_preproc_warn_flag
3252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3259 if test -z "$ac_cpp_err"; then
3262 echo "$as_me: failed program was:" >&5
3263 sed 's/^/| /' conftest.$ac_ext >&5
3265 # Broken: fails on valid input.
3269 rm -f conftest.err conftest.$ac_ext
3271 # OK, works on sane cases. Now check whether nonexistent headers
3272 # can be detected and how.
3273 cat >conftest.$ac_ext <<_ACEOF
3276 cat confdefs.h >>conftest.$ac_ext
3277 cat >>conftest.$ac_ext <<_ACEOF
3278 /* end confdefs.h. */
3279 #include <ac_nonexistent.h>
3281 if { (ac_try="$ac_cpp conftest.$ac_ext"
3283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3284 *) ac_try_echo=$ac_try;;
3286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3287 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3289 grep -v '^ *+' conftest.er1 >conftest.err
3291 cat conftest.err >&5
3292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3293 (exit $ac_status); } >/dev/null; then
3294 if test -s conftest.err; then
3295 ac_cpp_err=$ac_c_preproc_warn_flag
3296 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3303 if test -z "$ac_cpp_err"; then
3304 # Broken: success on invalid input.
3307 echo "$as_me: failed program was:" >&5
3308 sed 's/^/| /' conftest.$ac_ext >&5
3310 # Passes both tests.
3315 rm -f conftest.err conftest.$ac_ext
3318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3319 rm -f conftest.err conftest.$ac_ext
3320 if $ac_preproc_ok; then
3332 { echo "$as_me:$LINENO: result: $CPP" >&5
3333 echo "${ECHO_T}$CPP" >&6; }
3335 for ac_c_preproc_warn_flag in '' yes
3337 # Use a header file that comes with gcc, so configuring glibc
3338 # with a fresh cross-compiler works.
3339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3340 # <limits.h> exists even on freestanding compilers.
3341 # On the NeXT, cc -E runs the code through the compiler's parser,
3342 # not just through cpp. "Syntax error" is here to catch this case.
3343 cat >conftest.$ac_ext <<_ACEOF
3346 cat confdefs.h >>conftest.$ac_ext
3347 cat >>conftest.$ac_ext <<_ACEOF
3348 /* end confdefs.h. */
3350 # include <limits.h>
3352 # include <assert.h>
3356 if { (ac_try="$ac_cpp conftest.$ac_ext"
3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3359 *) ac_try_echo=$ac_try;;
3361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3362 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3364 grep -v '^ *+' conftest.er1 >conftest.err
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null; then
3369 if test -s conftest.err; then
3370 ac_cpp_err=$ac_c_preproc_warn_flag
3371 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3378 if test -z "$ac_cpp_err"; then
3381 echo "$as_me: failed program was:" >&5
3382 sed 's/^/| /' conftest.$ac_ext >&5
3384 # Broken: fails on valid input.
3388 rm -f conftest.err conftest.$ac_ext
3390 # OK, works on sane cases. Now check whether nonexistent headers
3391 # can be detected and how.
3392 cat >conftest.$ac_ext <<_ACEOF
3395 cat confdefs.h >>conftest.$ac_ext
3396 cat >>conftest.$ac_ext <<_ACEOF
3397 /* end confdefs.h. */
3398 #include <ac_nonexistent.h>
3400 if { (ac_try="$ac_cpp conftest.$ac_ext"
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3408 grep -v '^ *+' conftest.er1 >conftest.err
3410 cat conftest.err >&5
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); } >/dev/null; then
3413 if test -s conftest.err; then
3414 ac_cpp_err=$ac_c_preproc_warn_flag
3415 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3422 if test -z "$ac_cpp_err"; then
3423 # Broken: success on invalid input.
3426 echo "$as_me: failed program was:" >&5
3427 sed 's/^/| /' conftest.$ac_ext >&5
3429 # Passes both tests.
3434 rm -f conftest.err conftest.$ac_ext
3437 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3438 rm -f conftest.err conftest.$ac_ext
3439 if $ac_preproc_ok; then
3442 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3443 See \`config.log' for more details." >&5
3444 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3445 See \`config.log' for more details." >&2;}
3446 { (exit 1); exit 1; }; }
3450 ac_cpp='$CPP $CPPFLAGS'
3451 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3452 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3453 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3458 if test -d ${srcdir}/projects/llvm-gcc ; then
3459 subdirs="$subdirs projects/llvm-gcc"
3463 if test -d ${srcdir}/projects/test-suite ; then
3464 subdirs="$subdirs projects/test-suite"
3468 if test -d ${srcdir}/projects/llvm-test ; then
3469 subdirs="$subdirs projects/llvm-test"
3473 if test -d ${srcdir}/projects/poolalloc ; then
3474 subdirs="$subdirs projects/poolalloc"
3478 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3479 subdirs="$subdirs projects/llvm-poolalloc"
3483 for i in `ls ${srcdir}/projects`
3485 if test -d ${srcdir}/projects/${i} ; then
3487 sample) subdirs="$subdirs projects/sample"
3489 privbracket) subdirs="$subdirs projects/privbracket"
3491 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3493 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3495 llvm-java) subdirs="$subdirs projects/llvm-java"
3497 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3499 safecode) subdirs="$subdirs projects/safecode"
3501 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3510 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3511 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3517 # Check whether --enable-polly was given.
3518 if test "${enable_polly+set}" = set; then
3519 enableval=$enable_polly;
3524 case "$enableval" in
3529 default) ENABLE_POLLY=1
3531 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3532 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3533 { (exit 1); exit 1; }; } ;;
3537 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3540 subdirs="$subdirs tools/polly"
3545 # Make sure we can run config.sub.
3546 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3547 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3548 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3549 { (exit 1); exit 1; }; }
3551 { echo "$as_me:$LINENO: checking build system type" >&5
3552 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3553 if test "${ac_cv_build+set}" = set; then
3554 echo $ECHO_N "(cached) $ECHO_C" >&6
3556 ac_build_alias=$build_alias
3557 test "x$ac_build_alias" = x &&
3558 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3559 test "x$ac_build_alias" = x &&
3560 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3561 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3562 { (exit 1); exit 1; }; }
3563 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3564 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3565 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3566 { (exit 1); exit 1; }; }
3569 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3570 echo "${ECHO_T}$ac_cv_build" >&6; }
3571 case $ac_cv_build in
3573 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3574 echo "$as_me: error: invalid value of canonical build" >&2;}
3575 { (exit 1); exit 1; }; };;
3578 ac_save_IFS=$IFS; IFS='-'
3584 # Remember, the first character of IFS is used to create $*,
3585 # except with old shells:
3588 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3591 { echo "$as_me:$LINENO: checking host system type" >&5
3592 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3593 if test "${ac_cv_host+set}" = set; then
3594 echo $ECHO_N "(cached) $ECHO_C" >&6
3596 if test "x$host_alias" = x; then
3597 ac_cv_host=$ac_cv_build
3599 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3600 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3601 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3602 { (exit 1); exit 1; }; }
3606 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3607 echo "${ECHO_T}$ac_cv_host" >&6; }
3610 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3611 echo "$as_me: error: invalid value of canonical host" >&2;}
3612 { (exit 1); exit 1; }; };;
3615 ac_save_IFS=$IFS; IFS='-'
3621 # Remember, the first character of IFS is used to create $*,
3622 # except with old shells:
3625 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3628 { echo "$as_me:$LINENO: checking target system type" >&5
3629 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3630 if test "${ac_cv_target+set}" = set; then
3631 echo $ECHO_N "(cached) $ECHO_C" >&6
3633 if test "x$target_alias" = x; then
3634 ac_cv_target=$ac_cv_host
3636 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3637 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3638 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3639 { (exit 1); exit 1; }; }
3643 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3644 echo "${ECHO_T}$ac_cv_target" >&6; }
3645 case $ac_cv_target in
3647 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3648 echo "$as_me: error: invalid value of canonical target" >&2;}
3649 { (exit 1); exit 1; }; };;
3651 target=$ac_cv_target
3652 ac_save_IFS=$IFS; IFS='-'
3658 # Remember, the first character of IFS is used to create $*,
3659 # except with old shells:
3662 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3665 # The aliases save the names the user supplied, while $host etc.
3666 # will get canonicalized.
3667 test -n "$target_alias" &&
3668 test "$program_prefix$program_suffix$program_transform_name" = \
3670 program_prefix=${target_alias}-
3672 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3673 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3674 if test "${llvm_cv_os_type+set}" = set; then
3675 echo $ECHO_N "(cached) $ECHO_C" >&6
3679 llvm_cv_link_all_option="-Wl,--whole-archive"
3680 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3681 llvm_cv_os_type="AIX"
3682 llvm_cv_platform_type="Unix" ;;
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="IRIX"
3687 llvm_cv_platform_type="Unix" ;;
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="Cygwin"
3692 llvm_cv_platform_type="Unix" ;;
3694 llvm_cv_link_all_option="-Wl,-all_load"
3695 llvm_cv_no_link_all_option="-Wl,-noall_load"
3696 llvm_cv_os_type="Darwin"
3697 llvm_cv_platform_type="Unix" ;;
3699 llvm_cv_link_all_option="-Wl,-all_load"
3700 llvm_cv_no_link_all_option="-Wl,-noall_load"
3701 llvm_cv_os_type="Minix"
3702 llvm_cv_platform_type="Unix" ;;
3703 *-*-freebsd* | *-*-kfreebsd-gnu)
3704 llvm_cv_link_all_option="-Wl,--whole-archive"
3705 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3706 llvm_cv_os_type="FreeBSD"
3707 llvm_cv_platform_type="Unix" ;;
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="OpenBSD"
3712 llvm_cv_platform_type="Unix" ;;
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="NetBSD"
3717 llvm_cv_platform_type="Unix" ;;
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="DragonFly"
3722 llvm_cv_platform_type="Unix" ;;
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="HP-UX"
3727 llvm_cv_platform_type="Unix" ;;
3729 llvm_cv_link_all_option="-Wl,--whole-archive"
3730 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731 llvm_cv_os_type="Interix"
3732 llvm_cv_platform_type="Unix" ;;
3734 llvm_cv_link_all_option="-Wl,--whole-archive"
3735 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736 llvm_cv_os_type="Linux"
3737 llvm_cv_platform_type="Unix" ;;
3739 llvm_cv_link_all_option="-Wl,--whole-archive"
3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741 llvm_cv_os_type="GNU"
3742 llvm_cv_platform_type="Unix" ;;
3744 llvm_cv_link_all_option="-Wl,-z,allextract"
3745 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3746 llvm_cv_os_type="SunOS"
3747 llvm_cv_platform_type="Unix" ;;
3749 llvm_cv_link_all_option="-Wl,-z,allextract"
3750 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3751 llvm_cv_os_type="AuroraUX"
3752 llvm_cv_platform_type="Unix" ;;
3754 llvm_cv_link_all_option="-Wl,--whole-archive"
3755 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3756 llvm_cv_os_type="Win32"
3757 llvm_cv_platform_type="Win32" ;;
3759 llvm_cv_link_all_option="-Wl,--whole-archive"
3760 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3761 llvm_cv_os_type="MingW"
3762 llvm_cv_platform_type="Win32" ;;
3764 llvm_cv_link_all_option="-Wl,--whole-archive"
3765 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766 llvm_cv_os_type="Haiku"
3767 llvm_cv_platform_type="Unix" ;;
3769 llvm_cv_link_all_option="-Wl,--whole-archive"
3770 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771 llvm_cv_os_type="Freestanding"
3772 llvm_cv_platform_type="Unix" ;;
3774 llvm_cv_link_all_option="-Wl,--whole-archive"
3775 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776 llvm_cv_os_type="Freestanding"
3777 llvm_cv_platform_type="Unix" ;;
3779 llvm_cv_link_all_option=""
3780 llvm_cv_no_link_all_option=""
3781 llvm_cv_os_type="Unknown"
3782 llvm_cv_platform_type="Unknown" ;;
3785 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3786 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3788 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3789 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3790 if test "${llvm_cv_target_os_type+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3795 llvm_cv_target_os_type="AIX" ;;
3797 llvm_cv_target_os_type="IRIX" ;;
3799 llvm_cv_target_os_type="Cygwin" ;;
3801 llvm_cv_target_os_type="Darwin" ;;
3803 llvm_cv_target_os_type="Minix" ;;
3804 *-*-freebsd* | *-*-kfreebsd-gnu)
3805 llvm_cv_target_os_type="FreeBSD" ;;
3807 llvm_cv_target_os_type="OpenBSD" ;;
3809 llvm_cv_target_os_type="NetBSD" ;;
3811 llvm_cv_target_os_type="DragonFly" ;;
3813 llvm_cv_target_os_type="HP-UX" ;;
3815 llvm_cv_target_os_type="Interix" ;;
3817 llvm_cv_target_os_type="Linux" ;;
3819 llvm_cv_target_os_type="GNU" ;;
3821 llvm_cv_target_os_type="SunOS" ;;
3823 llvm_cv_target_os_type="AuroraUX" ;;
3825 llvm_cv_target_os_type="Win32" ;;
3827 llvm_cv_target_os_type="MingW" ;;
3829 llvm_cv_target_os_type="Haiku" ;;
3831 llvm_cv_target_os_type="RTEMS" ;;
3833 llvm_cv_target_os_type="NativeClient" ;;
3835 llvm_cv_target_os_type="Freestanding" ;;
3837 llvm_cv_target_os_type="Unknown" ;;
3840 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3841 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3843 if test "$llvm_cv_os_type" = "Unknown" ; then
3844 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3845 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3846 { (exit 1); exit 1; }; }
3851 HOST_OS=$llvm_cv_os_type
3853 TARGET_OS=$llvm_cv_target_os_type
3856 LINKALL=$llvm_cv_link_all_option
3858 NOLINKALL=$llvm_cv_no_link_all_option
3861 case $llvm_cv_platform_type in
3864 cat >>confdefs.h <<\_ACEOF
3865 #define LLVM_ON_UNIX 1
3875 cat >>confdefs.h <<\_ACEOF
3876 #define LLVM_ON_WIN32 1
3886 { echo "$as_me:$LINENO: checking target architecture" >&5
3887 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3888 if test "${llvm_cv_target_arch+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 i?86-*) llvm_cv_target_arch="x86" ;;
3893 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3894 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3895 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3896 arm*-*) llvm_cv_target_arch="ARM" ;;
3897 mips-*) llvm_cv_target_arch="Mips" ;;
3898 mipsel-*) llvm_cv_target_arch="Mips" ;;
3899 xcore-*) llvm_cv_target_arch="XCore" ;;
3900 msp430-*) llvm_cv_target_arch="MSP430" ;;
3901 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3902 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3903 ptx-*) llvm_cv_target_arch="PTX" ;;
3904 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3905 *) llvm_cv_target_arch="Unknown" ;;
3908 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3909 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3911 if test "$llvm_cv_target_arch" = "Unknown" ; then
3912 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3913 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3916 case "$llvm_cv_target_arch" in
3917 x86) LLVM_NATIVE_ARCH="X86" ;;
3918 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3919 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3922 ARCH=$llvm_cv_target_arch
3927 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3928 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3929 if test "${ac_cv_path_GREP+set}" = set; then
3930 echo $ECHO_N "(cached) $ECHO_C" >&6
3932 # Extract the first word of "grep ggrep" to use in msg output
3933 if test -z "$GREP"; then
3934 set dummy grep ggrep; ac_prog_name=$2
3935 if test "${ac_cv_path_GREP+set}" = set; then
3936 echo $ECHO_N "(cached) $ECHO_C" >&6
3938 ac_path_GREP_found=false
3939 # Loop through the user's path and test for each of PROGNAME-LIST
3940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3941 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3944 test -z "$as_dir" && as_dir=.
3945 for ac_prog in grep ggrep; do
3946 for ac_exec_ext in '' $ac_executable_extensions; do
3947 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3948 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3949 # Check for GNU ac_path_GREP and select it if it is found.
3950 # Check for GNU $ac_path_GREP
3951 case `"$ac_path_GREP" --version 2>&1` in
3953 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3956 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3959 cat "conftest.in" "conftest.in" >"conftest.tmp"
3960 mv "conftest.tmp" "conftest.in"
3961 cp "conftest.in" "conftest.nl"
3962 echo 'GREP' >> "conftest.nl"
3963 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3964 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3965 ac_count=`expr $ac_count + 1`
3966 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3967 # Best one so far, save it but keep looking for a better one
3968 ac_cv_path_GREP="$ac_path_GREP"
3969 ac_path_GREP_max=$ac_count
3971 # 10*(2^10) chars as input seems more than enough
3972 test $ac_count -gt 10 && break
3974 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3978 $ac_path_GREP_found && break 3
3988 GREP="$ac_cv_path_GREP"
3989 if test -z "$GREP"; then
3990 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3991 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3992 { (exit 1); exit 1; }; }
3996 ac_cv_path_GREP=$GREP
4001 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4002 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4003 GREP="$ac_cv_path_GREP"
4006 { echo "$as_me:$LINENO: checking for egrep" >&5
4007 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4008 if test "${ac_cv_path_EGREP+set}" = set; then
4009 echo $ECHO_N "(cached) $ECHO_C" >&6
4011 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4012 then ac_cv_path_EGREP="$GREP -E"
4014 # Extract the first word of "egrep" to use in msg output
4015 if test -z "$EGREP"; then
4016 set dummy egrep; ac_prog_name=$2
4017 if test "${ac_cv_path_EGREP+set}" = set; then
4018 echo $ECHO_N "(cached) $ECHO_C" >&6
4020 ac_path_EGREP_found=false
4021 # Loop through the user's path and test for each of PROGNAME-LIST
4022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4023 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4026 test -z "$as_dir" && as_dir=.
4027 for ac_prog in egrep; do
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4030 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4031 # Check for GNU ac_path_EGREP and select it if it is found.
4032 # Check for GNU $ac_path_EGREP
4033 case `"$ac_path_EGREP" --version 2>&1` in
4035 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4038 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4041 cat "conftest.in" "conftest.in" >"conftest.tmp"
4042 mv "conftest.tmp" "conftest.in"
4043 cp "conftest.in" "conftest.nl"
4044 echo 'EGREP' >> "conftest.nl"
4045 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4046 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4047 ac_count=`expr $ac_count + 1`
4048 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4049 # Best one so far, save it but keep looking for a better one
4050 ac_cv_path_EGREP="$ac_path_EGREP"
4051 ac_path_EGREP_max=$ac_count
4053 # 10*(2^10) chars as input seems more than enough
4054 test $ac_count -gt 10 && break
4056 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4060 $ac_path_EGREP_found && break 3
4070 EGREP="$ac_cv_path_EGREP"
4071 if test -z "$EGREP"; then
4072 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4073 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4074 { (exit 1); exit 1; }; }
4078 ac_cv_path_EGREP=$EGREP
4084 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4085 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4086 EGREP="$ac_cv_path_EGREP"
4089 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4090 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4091 if test "${ac_cv_header_stdc+set}" = set; then
4092 echo $ECHO_N "(cached) $ECHO_C" >&6
4094 cat >conftest.$ac_ext <<_ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4122 grep -v '^ *+' conftest.er1 >conftest.err
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } &&
4127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4128 { (case "(($ac_try" in
4129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4130 *) ac_try_echo=$ac_try;;
4132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4133 (eval "$ac_try") 2>&5
4135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4136 (exit $ac_status); }; } &&
4137 { ac_try='test -s conftest.$ac_objext'
4138 { (case "(($ac_try" in
4139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4140 *) ac_try_echo=$ac_try;;
4142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4143 (eval "$ac_try") 2>&5
4145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4146 (exit $ac_status); }; }; then
4147 ac_cv_header_stdc=yes
4149 echo "$as_me: failed program was:" >&5
4150 sed 's/^/| /' conftest.$ac_ext >&5
4152 ac_cv_header_stdc=no
4155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4157 if test $ac_cv_header_stdc = yes; then
4158 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4159 cat >conftest.$ac_ext <<_ACEOF
4162 cat confdefs.h >>conftest.$ac_ext
4163 cat >>conftest.$ac_ext <<_ACEOF
4164 /* end confdefs.h. */
4168 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4169 $EGREP "memchr" >/dev/null 2>&1; then
4172 ac_cv_header_stdc=no
4178 if test $ac_cv_header_stdc = yes; then
4179 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4180 cat >conftest.$ac_ext <<_ACEOF
4183 cat confdefs.h >>conftest.$ac_ext
4184 cat >>conftest.$ac_ext <<_ACEOF
4185 /* end confdefs.h. */
4189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4190 $EGREP "free" >/dev/null 2>&1; then
4193 ac_cv_header_stdc=no
4199 if test $ac_cv_header_stdc = yes; then
4200 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4201 if test "$cross_compiling" = yes; then
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4212 #if ((' ' & 0x0FF) == 0x020)
4213 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4214 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4216 # define ISLOWER(c) \
4217 (('a' <= (c) && (c) <= 'i') \
4218 || ('j' <= (c) && (c) <= 'r') \
4219 || ('s' <= (c) && (c) <= 'z'))
4220 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4223 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4228 for (i = 0; i < 256; i++)
4229 if (XOR (islower (i), ISLOWER (i))
4230 || toupper (i) != TOUPPER (i))
4235 rm -f conftest$ac_exeext
4236 if { (ac_try="$ac_link"
4238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4239 *) ac_try_echo=$ac_try;;
4241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4242 (eval "$ac_link") 2>&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4246 { (case "(($ac_try" in
4247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4248 *) ac_try_echo=$ac_try;;
4250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4251 (eval "$ac_try") 2>&5
4253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4254 (exit $ac_status); }; }; then
4257 echo "$as_me: program exited with status $ac_status" >&5
4258 echo "$as_me: failed program was:" >&5
4259 sed 's/^/| /' conftest.$ac_ext >&5
4262 ac_cv_header_stdc=no
4264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4270 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4271 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4272 if test $ac_cv_header_stdc = yes; then
4274 cat >>confdefs.h <<\_ACEOF
4275 #define STDC_HEADERS 1
4280 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4290 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4291 inttypes.h stdint.h unistd.h
4293 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4294 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4295 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4297 echo $ECHO_N "(cached) $ECHO_C" >&6
4299 cat >conftest.$ac_ext <<_ACEOF
4302 cat confdefs.h >>conftest.$ac_ext
4303 cat >>conftest.$ac_ext <<_ACEOF
4304 /* end confdefs.h. */
4305 $ac_includes_default
4307 #include <$ac_header>
4309 rm -f conftest.$ac_objext
4310 if { (ac_try="$ac_compile"
4312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4313 *) ac_try_echo=$ac_try;;
4315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4316 (eval "$ac_compile") 2>conftest.er1
4318 grep -v '^ *+' conftest.er1 >conftest.err
4320 cat conftest.err >&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); } &&
4323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4324 { (case "(($ac_try" in
4325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4326 *) ac_try_echo=$ac_try;;
4328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4329 (eval "$ac_try") 2>&5
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; } &&
4333 { ac_try='test -s conftest.$ac_objext'
4334 { (case "(($ac_try" in
4335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4336 *) ac_try_echo=$ac_try;;
4338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4339 (eval "$ac_try") 2>&5
4341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4342 (exit $ac_status); }; }; then
4343 eval "$as_ac_Header=yes"
4345 echo "$as_me: failed program was:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4348 eval "$as_ac_Header=no"
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 ac_res=`eval echo '${'$as_ac_Header'}'`
4354 { echo "$as_me:$LINENO: result: $ac_res" >&5
4355 echo "${ECHO_T}$ac_res" >&6; }
4356 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4357 cat >>confdefs.h <<_ACEOF
4358 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4366 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4367 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4368 if test "${ac_cv_c_bigendian+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4371 # See if sys/param.h defines the BYTE_ORDER macro.
4372 cat >conftest.$ac_ext <<_ACEOF
4375 cat confdefs.h >>conftest.$ac_ext
4376 cat >>conftest.$ac_ext <<_ACEOF
4377 /* end confdefs.h. */
4378 #include <sys/types.h>
4379 #include <sys/param.h>
4384 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4392 rm -f conftest.$ac_objext
4393 if { (ac_try="$ac_compile"
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4399 (eval "$ac_compile") 2>conftest.er1
4401 grep -v '^ *+' conftest.er1 >conftest.err
4403 cat conftest.err >&5
4404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4405 (exit $ac_status); } &&
4406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4407 { (case "(($ac_try" in
4408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4409 *) ac_try_echo=$ac_try;;
4411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4412 (eval "$ac_try") 2>&5
4414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4415 (exit $ac_status); }; } &&
4416 { ac_try='test -s conftest.$ac_objext'
4417 { (case "(($ac_try" in
4418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_try") 2>&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); }; }; then
4426 # It does; now see whether it defined to BIG_ENDIAN or not.
4427 cat >conftest.$ac_ext <<_ACEOF
4430 cat confdefs.h >>conftest.$ac_ext
4431 cat >>conftest.$ac_ext <<_ACEOF
4432 /* end confdefs.h. */
4433 #include <sys/types.h>
4434 #include <sys/param.h>
4439 #if BYTE_ORDER != BIG_ENDIAN
4447 rm -f conftest.$ac_objext
4448 if { (ac_try="$ac_compile"
4450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4451 *) ac_try_echo=$ac_try;;
4453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4454 (eval "$ac_compile") 2>conftest.er1
4456 grep -v '^ *+' conftest.er1 >conftest.err
4458 cat conftest.err >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); } &&
4461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4462 { (case "(($ac_try" in
4463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4464 *) ac_try_echo=$ac_try;;
4466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4467 (eval "$ac_try") 2>&5
4469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); }; } &&
4471 { ac_try='test -s conftest.$ac_objext'
4472 { (case "(($ac_try" in
4473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4474 *) ac_try_echo=$ac_try;;
4476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4477 (eval "$ac_try") 2>&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); }; }; then
4481 ac_cv_c_bigendian=yes
4483 echo "$as_me: failed program was:" >&5
4484 sed 's/^/| /' conftest.$ac_ext >&5
4486 ac_cv_c_bigendian=no
4489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4491 echo "$as_me: failed program was:" >&5
4492 sed 's/^/| /' conftest.$ac_ext >&5
4494 # It does not; compile a test program.
4495 if test "$cross_compiling" = yes; then
4496 # try to guess the endianness by grepping values into an object file
4497 ac_cv_c_bigendian=unknown
4498 cat >conftest.$ac_ext <<_ACEOF
4501 cat confdefs.h >>conftest.$ac_ext
4502 cat >>conftest.$ac_ext <<_ACEOF
4503 /* end confdefs.h. */
4504 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4505 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4506 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4507 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4508 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4509 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4513 _ascii (); _ebcdic ();
4518 rm -f conftest.$ac_objext
4519 if { (ac_try="$ac_compile"
4521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4525 (eval "$ac_compile") 2>conftest.er1
4527 grep -v '^ *+' conftest.er1 >conftest.err
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
4532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4533 { (case "(($ac_try" in
4534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535 *) ac_try_echo=$ac_try;;
4537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4538 (eval "$ac_try") 2>&5
4540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4541 (exit $ac_status); }; } &&
4542 { ac_try='test -s conftest.$ac_objext'
4543 { (case "(($ac_try" in
4544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4545 *) ac_try_echo=$ac_try;;
4547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4548 (eval "$ac_try") 2>&5
4550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551 (exit $ac_status); }; }; then
4552 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4553 ac_cv_c_bigendian=yes
4555 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4556 if test "$ac_cv_c_bigendian" = unknown; then
4557 ac_cv_c_bigendian=no
4559 # finding both strings is unlikely to happen, but who knows?
4560 ac_cv_c_bigendian=unknown
4564 echo "$as_me: failed program was:" >&5
4565 sed 's/^/| /' conftest.$ac_ext >&5
4570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4572 cat >conftest.$ac_ext <<_ACEOF
4575 cat confdefs.h >>conftest.$ac_ext
4576 cat >>conftest.$ac_ext <<_ACEOF
4577 /* end confdefs.h. */
4578 $ac_includes_default
4583 /* Are we little or big endian? From Harbison&Steele. */
4587 char c[sizeof (long int)];
4590 return u.c[sizeof (long int) - 1] == 1;
4596 rm -f conftest$ac_exeext
4597 if { (ac_try="$ac_link"
4599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4600 *) ac_try_echo=$ac_try;;
4602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4603 (eval "$ac_link") 2>&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4607 { (case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_try") 2>&5
4614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4615 (exit $ac_status); }; }; then
4616 ac_cv_c_bigendian=no
4618 echo "$as_me: program exited with status $ac_status" >&5
4619 echo "$as_me: failed program was:" >&5
4620 sed 's/^/| /' conftest.$ac_ext >&5
4623 ac_cv_c_bigendian=yes
4625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4633 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4634 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4635 case $ac_cv_c_bigendian in
4643 { { echo "$as_me:$LINENO: error: unknown endianness
4644 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4645 echo "$as_me: error: unknown endianness
4646 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4647 { (exit 1); exit 1; }; } ;;
4651 if test "$cross_compiling" = yes; then
4652 LLVM_CROSS_COMPILING=1
4655 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4656 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4657 if test "${ac_cv_build_exeext+set}" = set; then
4658 echo $ECHO_N "(cached) $ECHO_C" >&6
4660 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4661 ac_cv_build_exeext=.exe
4663 ac_build_prefix=${build_alias}-
4665 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4666 set dummy ${ac_build_prefix}gcc; ac_word=$2
4667 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4669 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 if test -n "$BUILD_CC"; then
4673 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679 test -z "$as_dir" && as_dir=.
4680 for ac_exec_ext in '' $ac_executable_extensions; do
4681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4682 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4692 BUILD_CC=$ac_cv_prog_BUILD_CC
4693 if test -n "$BUILD_CC"; then
4694 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4695 echo "${ECHO_T}$BUILD_CC" >&6; }
4697 { echo "$as_me:$LINENO: result: no" >&5
4698 echo "${ECHO_T}no" >&6; }
4702 if test -z "$BUILD_CC"; then
4703 # Extract the first word of "gcc", so it can be a program name with args.
4704 set dummy gcc; ac_word=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 if test -n "$BUILD_CC"; then
4711 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir=.
4718 for ac_exec_ext in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_BUILD_CC="gcc"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 BUILD_CC=$ac_cv_prog_BUILD_CC
4731 if test -n "$BUILD_CC"; then
4732 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4733 echo "${ECHO_T}$BUILD_CC" >&6; }
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4740 if test -z "$BUILD_CC"; then
4741 # Extract the first word of "cc", so it can be a program name with args.
4742 set dummy cc; ac_word=$2
4743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4745 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 if test -n "$BUILD_CC"; then
4749 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 test -z "$as_dir" && as_dir=.
4757 for ac_exec_ext in '' $ac_executable_extensions; do
4758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4759 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4760 ac_prog_rejected=yes
4763 ac_cv_prog_BUILD_CC="cc"
4764 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 if test $ac_prog_rejected = yes; then
4772 # We found a bogon in the path, so make sure we never use it.
4773 set dummy $ac_cv_prog_BUILD_CC
4775 if test $# != 0; then
4776 # We chose a different compiler from the bogus one.
4777 # However, it has the same basename, so the bogon will be chosen
4778 # first if we set BUILD_CC to just the basename; use the full file name.
4780 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4785 BUILD_CC=$ac_cv_prog_BUILD_CC
4786 if test -n "$BUILD_CC"; then
4787 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4788 echo "${ECHO_T}$BUILD_CC" >&6; }
4790 { echo "$as_me:$LINENO: result: no" >&5
4791 echo "${ECHO_T}no" >&6; }
4797 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4798 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4799 { (exit 1); exit 1; }; }
4800 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4802 echo 'int main () { return 0; }' > conftest.$ac_ext
4804 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4805 (eval $ac_build_link) 2>&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); }; then
4809 for file in conftest.*; do
4811 *.c | *.o | *.obj | *.dSYM) ;;
4812 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4816 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4817 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4818 { (exit 1); exit 1; }; }
4821 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4826 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4827 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4828 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4829 ac_build_exeext=$BUILD_EXEEXT
4831 ac_build_prefix=${build_alias}-
4832 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4833 set dummy ${ac_build_prefix}g++; ac_word=$2
4834 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4836 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4837 echo $ECHO_N "(cached) $ECHO_C" >&6
4839 if test -n "$BUILD_CXX"; then
4840 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4846 test -z "$as_dir" && as_dir=.
4847 for ac_exec_ext in '' $ac_executable_extensions; do
4848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4849 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4859 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4860 if test -n "$BUILD_CXX"; then
4861 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4862 echo "${ECHO_T}$BUILD_CXX" >&6; }
4864 { echo "$as_me:$LINENO: result: no" >&5
4865 echo "${ECHO_T}no" >&6; }
4869 if test -z "$BUILD_CXX"; then
4870 # Extract the first word of "g++", so it can be a program name with args.
4871 set dummy g++; ac_word=$2
4872 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4873 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4874 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4875 echo $ECHO_N "(cached) $ECHO_C" >&6
4877 if test -n "$BUILD_CXX"; then
4878 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4884 test -z "$as_dir" && as_dir=.
4885 for ac_exec_ext in '' $ac_executable_extensions; do
4886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4887 ac_cv_prog_BUILD_CXX="g++"
4888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4897 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4898 if test -n "$BUILD_CXX"; then
4899 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4900 echo "${ECHO_T}$BUILD_CXX" >&6; }
4902 { echo "$as_me:$LINENO: result: no" >&5
4903 echo "${ECHO_T}no" >&6; }
4907 if test -z "$BUILD_CXX"; then
4908 # Extract the first word of "c++", so it can be a program name with args.
4909 set dummy c++; ac_word=$2
4910 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4911 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4912 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4915 if test -n "$BUILD_CXX"; then
4916 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4926 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4927 ac_prog_rejected=yes
4930 ac_cv_prog_BUILD_CXX="c++"
4931 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 if test $ac_prog_rejected = yes; then
4939 # We found a bogon in the path, so make sure we never use it.
4940 set dummy $ac_cv_prog_BUILD_CXX
4942 if test $# != 0; then
4943 # We chose a different compiler from the bogus one.
4944 # However, it has the same basename, so the bogon will be chosen
4945 # first if we set BUILD_CXX to just the basename; use the full file name.
4947 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4952 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4953 if test -n "$BUILD_CXX"; then
4954 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4955 echo "${ECHO_T}$BUILD_CXX" >&6; }
4957 { echo "$as_me:$LINENO: result: no" >&5
4958 echo "${ECHO_T}no" >&6; }
4965 LLVM_CROSS_COMPILING=0
4969 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4980 # Check whether --enable-libcpp was given.
4981 if test "${enable_libcpp+set}" = set; then
4982 enableval=$enable_libcpp;
4987 case "$enableval" in
4988 yes) ENABLE_LIBCPP=1
4992 default) ENABLE_LIBCPP=0
4994 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4995 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4996 { (exit 1); exit 1; }; } ;;
4999 # Check whether --enable-optimized was given.
5000 if test "${enable_optimized+set}" = set; then
5001 enableval=$enable_optimized;
5006 if test ${enableval} = "no" ; then
5010 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5014 # Check whether --enable-profiling was given.
5015 if test "${enable_profiling+set}" = set; then
5016 enableval=$enable_profiling;
5021 if test ${enableval} = "no" ; then
5025 ENABLE_PROFILING=ENABLE_PROFILING=1
5029 # Check whether --enable-assertions was given.
5030 if test "${enable_assertions+set}" = set; then
5031 enableval=$enable_assertions;
5036 if test ${enableval} = "yes" ; then
5040 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5044 # Check whether --enable-expensive-checks was given.
5045 if test "${enable_expensive_checks+set}" = set; then
5046 enableval=$enable_expensive_checks;
5051 if test ${enableval} = "yes" ; then
5052 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5054 EXPENSIVE_CHECKS=yes
5057 ENABLE_EXPENSIVE_CHECKS=
5063 # Check whether --enable-debug-runtime was given.
5064 if test "${enable_debug_runtime+set}" = set; then
5065 enableval=$enable_debug_runtime;
5070 if test ${enableval} = "no" ; then
5074 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5078 # Check whether --enable-debug-symbols was given.
5079 if test "${enable_debug_symbols+set}" = set; then
5080 enableval=$enable_debug_symbols;
5085 if test ${enableval} = "no" ; then
5089 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5093 # Check whether --enable-jit was given.
5094 if test "${enable_jit+set}" = set; then
5095 enableval=$enable_jit;
5100 if test ${enableval} = "no"
5105 case "$llvm_cv_target_arch" in
5106 x86) TARGET_HAS_JIT=1
5108 Sparc) TARGET_HAS_JIT=0
5110 PowerPC) TARGET_HAS_JIT=1
5112 x86_64) TARGET_HAS_JIT=1
5114 ARM) TARGET_HAS_JIT=1
5116 Mips) TARGET_HAS_JIT=1
5118 XCore) TARGET_HAS_JIT=0
5120 MSP430) TARGET_HAS_JIT=0
5122 Hexagon) TARGET_HAS_JIT=0
5124 MBlaze) TARGET_HAS_JIT=0
5126 PTX) TARGET_HAS_JIT=0
5128 NVPTX) TARGET_HAS_JIT=0
5135 # Check whether --enable-docs was given.
5136 if test "${enable_docs+set}" = set; then
5137 enableval=$enable_docs;
5142 case "$enableval" in
5147 default) ENABLE_DOCS=1
5149 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5150 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5151 { (exit 1); exit 1; }; } ;;
5154 # Check whether --enable-doxygen was given.
5155 if test "${enable_doxygen+set}" = set; then
5156 enableval=$enable_doxygen;
5161 case "$enableval" in
5162 yes) ENABLE_DOXYGEN=1
5164 no) ENABLE_DOXYGEN=0
5166 default) ENABLE_DOXYGEN=0
5168 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5169 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5170 { (exit 1); exit 1; }; } ;;
5173 # Check whether --enable-threads was given.
5174 if test "${enable_threads+set}" = set; then
5175 enableval=$enable_threads;
5180 case "$enableval" in
5181 yes) LLVM_ENABLE_THREADS=1
5183 no) LLVM_ENABLE_THREADS=0
5185 default) LLVM_ENABLE_THREADS=1
5187 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5188 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5189 { (exit 1); exit 1; }; } ;;
5192 cat >>confdefs.h <<_ACEOF
5193 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5197 # Check whether --enable-pthreads was given.
5198 if test "${enable_pthreads+set}" = set; then
5199 enableval=$enable_pthreads;
5204 case "$enableval" in
5205 yes) ENABLE_PTHREADS=1
5207 no) ENABLE_PTHREADS=0
5209 default) ENABLE_PTHREADS=1
5211 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5212 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5213 { (exit 1); exit 1; }; } ;;
5216 # Check whether --enable-pic was given.
5217 if test "${enable_pic+set}" = set; then
5218 enableval=$enable_pic;
5223 case "$enableval" in
5228 default) ENABLE_PIC=1
5230 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5231 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5232 { (exit 1); exit 1; }; } ;;
5235 cat >>confdefs.h <<_ACEOF
5236 #define ENABLE_PIC $ENABLE_PIC
5240 # Check whether --enable-shared was given.
5241 if test "${enable_shared+set}" = set; then
5242 enableval=$enable_shared;
5247 case "$enableval" in
5248 yes) ENABLE_SHARED=1
5252 default) ENABLE_SHARED=0
5254 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5255 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5256 { (exit 1); exit 1; }; } ;;
5259 # Check whether --enable-embed-stdcxx was given.
5260 if test "${enable_embed_stdcxx+set}" = set; then
5261 enableval=$enable_embed_stdcxx;
5266 case "$enableval" in
5267 yes) ENABLE_EMBED_STDCXX=1
5269 no) ENABLE_EMBED_STDCXX=0
5271 default) ENABLE_EMBED_STDCXX=0
5273 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5274 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5275 { (exit 1); exit 1; }; } ;;
5278 # Check whether --enable-timestamps was given.
5279 if test "${enable_timestamps+set}" = set; then
5280 enableval=$enable_timestamps;
5285 case "$enableval" in
5286 yes) ENABLE_TIMESTAMPS=1
5288 no) ENABLE_TIMESTAMPS=0
5290 default) ENABLE_TIMESTAMPS=1
5292 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5293 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5294 { (exit 1); exit 1; }; } ;;
5297 cat >>confdefs.h <<_ACEOF
5298 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5303 # Check whether --enable-targets was given.
5304 if test "${enable_targets+set}" = set; then
5305 enableval=$enable_targets;
5310 if test "$enableval" = host-only ; then
5313 case "$enableval" in
5314 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze PTX NVPTX Hexagon" ;;
5315 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5317 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5318 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5319 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5320 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5321 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5322 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5323 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5324 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5325 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5326 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5327 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5328 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5329 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5330 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5331 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5332 host) case "$llvm_cv_target_arch" in
5333 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5334 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5335 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5336 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5337 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5338 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5339 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5340 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5341 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5342 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5343 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5344 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5345 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5346 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5347 echo "$as_me: error: Can not set target to build" >&2;}
5348 { (exit 1); exit 1; }; } ;;
5350 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5351 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5352 { (exit 1); exit 1; }; } ;;
5357 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5360 for a_target in $TARGETS_TO_BUILD; do
5361 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5363 cat >>confdefs.h <<_ACEOF
5364 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5367 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5368 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5369 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5370 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5371 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5372 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5374 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5375 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5378 cat >>confdefs.h <<_ACEOF
5379 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5383 cat >>confdefs.h <<_ACEOF
5384 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5393 cat >>confdefs.h <<_ACEOF
5394 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5397 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5399 cat >>confdefs.h <<_ACEOF
5400 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5404 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5406 cat >>confdefs.h <<_ACEOF
5407 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5414 LLVM_ENUM_TARGETS=""
5415 LLVM_ENUM_ASM_PRINTERS=""
5416 LLVM_ENUM_ASM_PARSERS=""
5417 LLVM_ENUM_DISASSEMBLERS=""
5418 for target_to_build in $TARGETS_TO_BUILD; do
5419 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5420 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5421 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5423 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5424 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5426 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5427 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5436 # Check whether --with-optimize-option was given.
5437 if test "${with_optimize_option+set}" = set; then
5438 withval=$with_optimize_option;
5443 { echo "$as_me:$LINENO: checking optimization flags" >&5
5444 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5447 case "$llvm_cv_os_type" in
5448 FreeBSD) optimize_option=-O2 ;;
5449 MingW) optimize_option=-O2 ;;
5450 *) optimize_option=-O3 ;;
5452 *) optimize_option="$withval" ;;
5454 OPTIMIZE_OPTION=$optimize_option
5456 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5457 echo "${ECHO_T}$optimize_option" >&6; }
5460 # Check whether --with-extra-options was given.
5461 if test "${with_extra_options+set}" = set; then
5462 withval=$with_extra_options;
5468 default) EXTRA_OPTIONS= ;;
5469 *) EXTRA_OPTIONS=$withval ;;
5471 EXTRA_OPTIONS=$EXTRA_OPTIONS
5475 # Check whether --with-extra-ld-options was given.
5476 if test "${with_extra_ld_options+set}" = set; then
5477 withval=$with_extra_ld_options;
5483 default) EXTRA_LD_OPTIONS= ;;
5484 *) EXTRA_LD_OPTIONS=$withval ;;
5486 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5489 # Check whether --enable-bindings was given.
5490 if test "${enable_bindings+set}" = set; then
5491 enableval=$enable_bindings;
5496 BINDINGS_TO_BUILD=""
5497 case "$enableval" in
5498 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5499 all ) BINDINGS_TO_BUILD="ocaml" ;;
5500 none | no) BINDINGS_TO_BUILD="" ;;
5501 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5502 case "$a_binding" in
5503 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5504 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5505 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5506 { (exit 1); exit 1; }; } ;;
5513 # Check whether --with-ocaml-libdir was given.
5514 if test "${with_ocaml_libdir+set}" = set; then
5515 withval=$with_ocaml_libdir;
5521 auto) with_ocaml_libdir="$withval" ;;
5522 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5523 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5524 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5525 { (exit 1); exit 1; }; } ;;
5529 # Check whether --with-clang-srcdir was given.
5530 if test "${with_clang_srcdir+set}" = set; then
5531 withval=$with_clang_srcdir;
5537 -) clang_src_root="" ;;
5538 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5539 *) clang_src_root="$ac_pwd/$withval" ;;
5541 CLANG_SRC_ROOT=$clang_src_root
5545 # Check whether --with-clang-resource-dir was given.
5546 if test "${with_clang_resource_dir+set}" = set; then
5547 withval=$with_clang_resource_dir;
5553 cat >>confdefs.h <<_ACEOF
5554 #define CLANG_RESOURCE_DIR "$withval"
5559 # Check whether --with-c-include-dirs was given.
5560 if test "${with_c_include_dirs+set}" = set; then
5561 withval=$with_c_include_dirs;
5567 cat >>confdefs.h <<_ACEOF
5568 #define C_INCLUDE_DIRS "$withval"
5572 # Clang normally uses the system c++ headers and libraries. With this option,
5573 # clang will use the ones provided by a gcc installation instead. This option should
5574 # be passed the same value that was used with --prefix when configuring gcc.
5576 # Check whether --with-gcc-toolchain was given.
5577 if test "${with_gcc_toolchain+set}" = set; then
5578 withval=$with_gcc_toolchain;
5584 cat >>confdefs.h <<_ACEOF
5585 #define GCC_INSTALL_PREFIX "$withval"
5590 # Check whether --with-default-sysroot was given.
5591 if test "${with_default_sysroot+set}" = set; then
5592 withval=$with_default_sysroot;
5598 cat >>confdefs.h <<_ACEOF
5599 #define DEFAULT_SYSROOT "$withval"
5604 # Check whether --with-binutils-include was given.
5605 if test "${with_binutils_include+set}" = set; then
5606 withval=$with_binutils_include;
5612 default) WITH_BINUTILS_INCDIR=default ;;
5613 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5614 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5615 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5616 { (exit 1); exit 1; }; } ;;
5618 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5619 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5621 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5622 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5623 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5624 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5625 { (exit 1); exit 1; }; };
5630 # Check whether --with-bug-report-url was given.
5631 if test "${with_bug_report_url+set}" = set; then
5632 withval=$with_bug_report_url;
5634 withval="http://llvm.org/bugs/"
5638 cat >>confdefs.h <<_ACEOF
5639 #define BUG_REPORT_URL "$withval"
5643 # Check whether --enable-libffi was given.
5644 if test "${enable_libffi+set}" = set; then
5645 enableval=$enable_libffi; case "$enableval" in
5646 yes) llvm_cv_enable_libffi="yes" ;;
5647 no) llvm_cv_enable_libffi="no" ;;
5648 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5649 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5650 { (exit 1); exit 1; }; } ;;
5653 llvm_cv_enable_libffi=no
5658 # Check whether --with-internal-prefix was given.
5659 if test "${with_internal_prefix+set}" = set; then
5660 withval=$with_internal_prefix;
5665 INTERNAL_PREFIX=$withval
5669 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5670 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5671 if test "${lt_cv_path_NM+set}" = set; then
5672 echo $ECHO_N "(cached) $ECHO_C" >&6
5674 if test -n "$NM"; then
5675 # Let the user override the test.
5678 lt_nm_to_check="${ac_tool_prefix}nm"
5679 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5680 lt_nm_to_check="$lt_nm_to_check nm"
5682 for lt_tmp_nm in $lt_nm_to_check; do
5683 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5684 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5686 test -z "$ac_dir" && ac_dir=.
5687 tmp_nm="$ac_dir/$lt_tmp_nm"
5688 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5689 # Check to see if the nm accepts a BSD-compat flag.
5690 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5691 # nm: unknown option "B" ignored
5692 # Tru64's nm complains that /dev/null is an invalid object file
5693 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5694 */dev/null* | *'Invalid file or object type'*)
5695 lt_cv_path_NM="$tmp_nm -B"
5699 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5701 lt_cv_path_NM="$tmp_nm -p"
5705 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5706 continue # so that we can try to find one that supports BSD flags
5715 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5718 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5719 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5724 { echo "$as_me:$LINENO: checking for GNU make" >&5
5725 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5726 if test "${llvm_cv_gnu_make_command+set}" = set; then
5727 echo $ECHO_N "(cached) $ECHO_C" >&6
5729 llvm_cv_gnu_make_command=''
5730 for a in "$MAKE" make gmake gnumake ; do
5731 if test -z "$a" ; then continue ; fi ;
5732 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5734 llvm_cv_gnu_make_command=$a ;
5739 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5740 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5741 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5745 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5746 echo "${ECHO_T}\"Not found\"" >&6; };
5750 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5751 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5753 if test "$LN_S" = "ln -s"; then
5754 { echo "$as_me:$LINENO: result: yes" >&5
5755 echo "${ECHO_T}yes" >&6; }
5757 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5758 echo "${ECHO_T}no, using $LN_S" >&6; }
5761 # Extract the first word of "cmp", so it can be a program name with args.
5762 set dummy cmp; ac_word=$2
5763 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5765 if test "${ac_cv_path_CMP+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5777 test -z "$as_dir" && as_dir=.
5778 for ac_exec_ext in '' $ac_executable_extensions; do
5779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5780 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5788 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5793 if test -n "$CMP"; then
5794 { echo "$as_me:$LINENO: result: $CMP" >&5
5795 echo "${ECHO_T}$CMP" >&6; }
5797 { echo "$as_me:$LINENO: result: no" >&5
5798 echo "${ECHO_T}no" >&6; }
5802 # Extract the first word of "cp", so it can be a program name with args.
5803 set dummy cp; ac_word=$2
5804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5806 if test "${ac_cv_path_CP+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 test -z "$as_dir" && as_dir=.
5819 for ac_exec_ext in '' $ac_executable_extensions; do
5820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5821 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5829 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5834 if test -n "$CP"; then
5835 { echo "$as_me:$LINENO: result: $CP" >&5
5836 echo "${ECHO_T}$CP" >&6; }
5838 { echo "$as_me:$LINENO: result: no" >&5
5839 echo "${ECHO_T}no" >&6; }
5843 # Extract the first word of "date", so it can be a program name with args.
5844 set dummy date; ac_word=$2
5845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5847 if test "${ac_cv_path_DATE+set}" = set; then
5848 echo $ECHO_N "(cached) $ECHO_C" >&6
5852 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5859 test -z "$as_dir" && as_dir=.
5860 for ac_exec_ext in '' $ac_executable_extensions; do
5861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5862 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5870 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5874 DATE=$ac_cv_path_DATE
5875 if test -n "$DATE"; then
5876 { echo "$as_me:$LINENO: result: $DATE" >&5
5877 echo "${ECHO_T}$DATE" >&6; }
5879 { echo "$as_me:$LINENO: result: no" >&5
5880 echo "${ECHO_T}no" >&6; }
5884 # Extract the first word of "find", so it can be a program name with args.
5885 set dummy find; ac_word=$2
5886 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5887 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5888 if test "${ac_cv_path_FIND+set}" = set; then
5889 echo $ECHO_N "(cached) $ECHO_C" >&6
5893 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5900 test -z "$as_dir" && as_dir=.
5901 for ac_exec_ext in '' $ac_executable_extensions; do
5902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5903 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5904 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5911 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5915 FIND=$ac_cv_path_FIND
5916 if test -n "$FIND"; then
5917 { echo "$as_me:$LINENO: result: $FIND" >&5
5918 echo "${ECHO_T}$FIND" >&6; }
5920 { echo "$as_me:$LINENO: result: no" >&5
5921 echo "${ECHO_T}no" >&6; }
5925 # Extract the first word of "grep", so it can be a program name with args.
5926 set dummy grep; ac_word=$2
5927 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5928 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5929 if test "${ac_cv_path_GREP+set}" = set; then
5930 echo $ECHO_N "(cached) $ECHO_C" >&6
5934 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5941 test -z "$as_dir" && as_dir=.
5942 for ac_exec_ext in '' $ac_executable_extensions; do
5943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5944 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5945 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5956 GREP=$ac_cv_path_GREP
5957 if test -n "$GREP"; then
5958 { echo "$as_me:$LINENO: result: $GREP" >&5
5959 echo "${ECHO_T}$GREP" >&6; }
5961 { echo "$as_me:$LINENO: result: no" >&5
5962 echo "${ECHO_T}no" >&6; }
5966 # Extract the first word of "mkdir", so it can be a program name with args.
5967 set dummy mkdir; ac_word=$2
5968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5970 if test "${ac_cv_path_MKDIR+set}" = set; then
5971 echo $ECHO_N "(cached) $ECHO_C" >&6
5975 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5982 test -z "$as_dir" && as_dir=.
5983 for ac_exec_ext in '' $ac_executable_extensions; do
5984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5985 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5993 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5997 MKDIR=$ac_cv_path_MKDIR
5998 if test -n "$MKDIR"; then
5999 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6000 echo "${ECHO_T}$MKDIR" >&6; }
6002 { echo "$as_me:$LINENO: result: no" >&5
6003 echo "${ECHO_T}no" >&6; }
6007 # Extract the first word of "mv", so it can be a program name with args.
6008 set dummy mv; ac_word=$2
6009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6011 if test "${ac_cv_path_MV+set}" = set; then
6012 echo $ECHO_N "(cached) $ECHO_C" >&6
6016 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6023 test -z "$as_dir" && as_dir=.
6024 for ac_exec_ext in '' $ac_executable_extensions; do
6025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6026 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6034 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6039 if test -n "$MV"; then
6040 { echo "$as_me:$LINENO: result: $MV" >&5
6041 echo "${ECHO_T}$MV" >&6; }
6043 { echo "$as_me:$LINENO: result: no" >&5
6044 echo "${ECHO_T}no" >&6; }
6048 if test -n "$ac_tool_prefix"; then
6049 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6050 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053 if test "${ac_cv_prog_RANLIB+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 if test -n "$RANLIB"; then
6057 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6059 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6063 test -z "$as_dir" && as_dir=.
6064 for ac_exec_ext in '' $ac_executable_extensions; do
6065 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6066 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 RANLIB=$ac_cv_prog_RANLIB
6077 if test -n "$RANLIB"; then
6078 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6079 echo "${ECHO_T}$RANLIB" >&6; }
6081 { echo "$as_me:$LINENO: result: no" >&5
6082 echo "${ECHO_T}no" >&6; }
6087 if test -z "$ac_cv_prog_RANLIB"; then
6088 ac_ct_RANLIB=$RANLIB
6089 # Extract the first word of "ranlib", so it can be a program name with args.
6090 set dummy ranlib; ac_word=$2
6091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6093 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 if test -n "$ac_ct_RANLIB"; then
6097 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6106 ac_cv_prog_ac_ct_RANLIB="ranlib"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6117 if test -n "$ac_ct_RANLIB"; then
6118 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6119 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6121 { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6125 if test "x$ac_ct_RANLIB" = x; then
6128 case $cross_compiling:$ac_tool_warned in
6130 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6131 whose name does not start with the host triplet. If you think this
6132 configuration is useful to you, please write to autoconf@gnu.org." >&5
6133 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6134 whose name does not start with the host triplet. If you think this
6135 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6136 ac_tool_warned=yes ;;
6138 RANLIB=$ac_ct_RANLIB
6141 RANLIB="$ac_cv_prog_RANLIB"
6144 if test -n "$ac_tool_prefix"; then
6145 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6146 set dummy ${ac_tool_prefix}ar; ac_word=$2
6147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6149 if test "${ac_cv_prog_AR+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6152 if test -n "$AR"; then
6153 ac_cv_prog_AR="$AR" # Let the user override the test.
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_AR="${ac_tool_prefix}ar"
6163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6173 if test -n "$AR"; then
6174 { echo "$as_me:$LINENO: result: $AR" >&5
6175 echo "${ECHO_T}$AR" >&6; }
6177 { echo "$as_me:$LINENO: result: no" >&5
6178 echo "${ECHO_T}no" >&6; }
6183 if test -z "$ac_cv_prog_AR"; then
6185 # Extract the first word of "ar", so it can be a program name with args.
6186 set dummy ar; ac_word=$2
6187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6189 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 if test -n "$ac_ct_AR"; then
6193 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6199 test -z "$as_dir" && as_dir=.
6200 for ac_exec_ext in '' $ac_executable_extensions; do
6201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6202 ac_cv_prog_ac_ct_AR="ar"
6203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6212 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6213 if test -n "$ac_ct_AR"; then
6214 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6215 echo "${ECHO_T}$ac_ct_AR" >&6; }
6217 { echo "$as_me:$LINENO: result: no" >&5
6218 echo "${ECHO_T}no" >&6; }
6221 if test "x$ac_ct_AR" = x; then
6224 case $cross_compiling:$ac_tool_warned in
6226 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6227 whose name does not start with the host triplet. If you think this
6228 configuration is useful to you, please write to autoconf@gnu.org." >&5
6229 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6230 whose name does not start with the host triplet. If you think this
6231 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6232 ac_tool_warned=yes ;;
6240 # Extract the first word of "rm", so it can be a program name with args.
6241 set dummy rm; ac_word=$2
6242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6244 if test "${ac_cv_path_RM+set}" = set; then
6245 echo $ECHO_N "(cached) $ECHO_C" >&6
6249 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6256 test -z "$as_dir" && as_dir=.
6257 for ac_exec_ext in '' $ac_executable_extensions; do
6258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6259 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6267 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6272 if test -n "$RM"; then
6273 { echo "$as_me:$LINENO: result: $RM" >&5
6274 echo "${ECHO_T}$RM" >&6; }
6276 { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6281 # Extract the first word of "sed", so it can be a program name with args.
6282 set dummy sed; ac_word=$2
6283 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6284 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6285 if test "${ac_cv_path_SED+set}" = set; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6290 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6297 test -z "$as_dir" && as_dir=.
6298 for ac_exec_ext in '' $ac_executable_extensions; do
6299 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6300 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6308 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6313 if test -n "$SED"; then
6314 { echo "$as_me:$LINENO: result: $SED" >&5
6315 echo "${ECHO_T}$SED" >&6; }
6317 { echo "$as_me:$LINENO: result: no" >&5
6318 echo "${ECHO_T}no" >&6; }
6322 # Extract the first word of "tar", so it can be a program name with args.
6323 set dummy tar; ac_word=$2
6324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6326 if test "${ac_cv_path_TAR+set}" = set; then
6327 echo $ECHO_N "(cached) $ECHO_C" >&6
6331 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6338 test -z "$as_dir" && as_dir=.
6339 for ac_exec_ext in '' $ac_executable_extensions; do
6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6341 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6349 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6354 if test -n "$TAR"; then
6355 { echo "$as_me:$LINENO: result: $TAR" >&5
6356 echo "${ECHO_T}$TAR" >&6; }
6358 { echo "$as_me:$LINENO: result: no" >&5
6359 echo "${ECHO_T}no" >&6; }
6363 # Extract the first word of "pwd", so it can be a program name with args.
6364 set dummy pwd; ac_word=$2
6365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6367 if test "${ac_cv_path_BINPWD+set}" = set; then
6368 echo $ECHO_N "(cached) $ECHO_C" >&6
6372 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6379 test -z "$as_dir" && as_dir=.
6380 for ac_exec_ext in '' $ac_executable_extensions; do
6381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6382 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6390 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6394 BINPWD=$ac_cv_path_BINPWD
6395 if test -n "$BINPWD"; then
6396 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6397 echo "${ECHO_T}$BINPWD" >&6; }
6399 { echo "$as_me:$LINENO: result: no" >&5
6400 echo "${ECHO_T}no" >&6; }
6405 # Extract the first word of "Graphviz", so it can be a program name with args.
6406 set dummy Graphviz; ac_word=$2
6407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6409 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6410 echo $ECHO_N "(cached) $ECHO_C" >&6
6414 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6421 test -z "$as_dir" && as_dir=.
6422 for ac_exec_ext in '' $ac_executable_extensions; do
6423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6424 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6425 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6432 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6436 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6437 if test -n "$GRAPHVIZ"; then
6438 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6439 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6441 { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6446 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6448 cat >>confdefs.h <<\_ACEOF
6449 #define HAVE_GRAPHVIZ 1
6452 if test "$llvm_cv_os_type" = "MingW" ; then
6453 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6456 cat >>confdefs.h <<_ACEOF
6457 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6461 # Extract the first word of "dot", so it can be a program name with args.
6462 set dummy dot; ac_word=$2
6463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6465 if test "${ac_cv_path_DOT+set}" = set; then
6466 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6477 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6493 if test -n "$DOT"; then
6494 { echo "$as_me:$LINENO: result: $DOT" >&5
6495 echo "${ECHO_T}$DOT" >&6; }
6497 { echo "$as_me:$LINENO: result: no" >&5
6498 echo "${ECHO_T}no" >&6; }
6502 if test "$DOT" != "echo dot" ; then
6504 cat >>confdefs.h <<\_ACEOF
6508 if test "$llvm_cv_os_type" = "MingW" ; then
6509 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6512 cat >>confdefs.h <<_ACEOF
6513 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6517 # Extract the first word of "fdp", so it can be a program name with args.
6518 set dummy fdp; ac_word=$2
6519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6521 if test "${ac_cv_path_FDP+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6526 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6533 test -z "$as_dir" && as_dir=.
6534 for ac_exec_ext in '' $ac_executable_extensions; do
6535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6536 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6537 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6549 if test -n "$FDP"; then
6550 { echo "$as_me:$LINENO: result: $FDP" >&5
6551 echo "${ECHO_T}$FDP" >&6; }
6553 { echo "$as_me:$LINENO: result: no" >&5
6554 echo "${ECHO_T}no" >&6; }
6558 if test "$FDP" != "echo fdp" ; then
6560 cat >>confdefs.h <<\_ACEOF
6564 if test "$llvm_cv_os_type" = "MingW" ; then
6565 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6568 cat >>confdefs.h <<_ACEOF
6569 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6573 # Extract the first word of "neato", so it can be a program name with args.
6574 set dummy neato; ac_word=$2
6575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6577 if test "${ac_cv_path_NEATO+set}" = set; then
6578 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6592 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6600 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6604 NEATO=$ac_cv_path_NEATO
6605 if test -n "$NEATO"; then
6606 { echo "$as_me:$LINENO: result: $NEATO" >&5
6607 echo "${ECHO_T}$NEATO" >&6; }
6609 { echo "$as_me:$LINENO: result: no" >&5
6610 echo "${ECHO_T}no" >&6; }
6614 if test "$NEATO" != "echo neato" ; then
6616 cat >>confdefs.h <<\_ACEOF
6617 #define HAVE_NEATO 1
6620 if test "$llvm_cv_os_type" = "MingW" ; then
6621 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6624 cat >>confdefs.h <<_ACEOF
6625 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6629 # Extract the first word of "twopi", so it can be a program name with args.
6630 set dummy twopi; ac_word=$2
6631 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6632 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6633 if test "${ac_cv_path_TWOPI+set}" = set; then
6634 echo $ECHO_N "(cached) $ECHO_C" >&6
6638 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6645 test -z "$as_dir" && as_dir=.
6646 for ac_exec_ext in '' $ac_executable_extensions; do
6647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6648 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6660 TWOPI=$ac_cv_path_TWOPI
6661 if test -n "$TWOPI"; then
6662 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6663 echo "${ECHO_T}$TWOPI" >&6; }
6665 { echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6; }
6670 if test "$TWOPI" != "echo twopi" ; then
6672 cat >>confdefs.h <<\_ACEOF
6673 #define HAVE_TWOPI 1
6676 if test "$llvm_cv_os_type" = "MingW" ; then
6677 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6680 cat >>confdefs.h <<_ACEOF
6681 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6685 # Extract the first word of "circo", so it can be a program name with args.
6686 set dummy circo; ac_word=$2
6687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6689 if test "${ac_cv_path_CIRCO+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6694 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6701 test -z "$as_dir" && as_dir=.
6702 for ac_exec_ext in '' $ac_executable_extensions; do
6703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6704 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6712 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6716 CIRCO=$ac_cv_path_CIRCO
6717 if test -n "$CIRCO"; then
6718 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6719 echo "${ECHO_T}$CIRCO" >&6; }
6721 { echo "$as_me:$LINENO: result: no" >&5
6722 echo "${ECHO_T}no" >&6; }
6726 if test "$CIRCO" != "echo circo" ; then
6728 cat >>confdefs.h <<\_ACEOF
6729 #define HAVE_CIRCO 1
6732 if test "$llvm_cv_os_type" = "MingW" ; then
6733 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6736 cat >>confdefs.h <<_ACEOF
6737 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6741 for ac_prog in gv gsview32
6743 # Extract the first word of "$ac_prog", so it can be a program name with args.
6744 set dummy $ac_prog; ac_word=$2
6745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6747 if test "${ac_cv_path_GV+set}" = set; then
6748 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6759 test -z "$as_dir" && as_dir=.
6760 for ac_exec_ext in '' $ac_executable_extensions; do
6761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6762 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6774 if test -n "$GV"; then
6775 { echo "$as_me:$LINENO: result: $GV" >&5
6776 echo "${ECHO_T}$GV" >&6; }
6778 { echo "$as_me:$LINENO: result: no" >&5
6779 echo "${ECHO_T}no" >&6; }
6783 test -n "$GV" && break
6785 test -n "$GV" || GV="echo gv"
6787 if test "$GV" != "echo gv" ; then
6789 cat >>confdefs.h <<\_ACEOF
6793 if test "$llvm_cv_os_type" = "MingW" ; then
6794 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797 cat >>confdefs.h <<_ACEOF
6798 #define LLVM_PATH_GV "$GV${EXEEXT}"
6802 # Extract the first word of "dotty", so it can be a program name with args.
6803 set dummy dotty; ac_word=$2
6804 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6805 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6806 if test "${ac_cv_path_DOTTY+set}" = set; then
6807 echo $ECHO_N "(cached) $ECHO_C" >&6
6811 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6818 test -z "$as_dir" && as_dir=.
6819 for ac_exec_ext in '' $ac_executable_extensions; do
6820 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6821 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6822 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6833 DOTTY=$ac_cv_path_DOTTY
6834 if test -n "$DOTTY"; then
6835 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6836 echo "${ECHO_T}$DOTTY" >&6; }
6838 { echo "$as_me:$LINENO: result: no" >&5
6839 echo "${ECHO_T}no" >&6; }
6843 if test "$DOTTY" != "echo dotty" ; then
6845 cat >>confdefs.h <<\_ACEOF
6846 #define HAVE_DOTTY 1
6849 if test "$llvm_cv_os_type" = "MingW" ; then
6850 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6853 cat >>confdefs.h <<_ACEOF
6854 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6858 # Extract the first word of "xdot.py", so it can be a program name with args.
6859 set dummy xdot.py; ac_word=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir=.
6875 for ac_exec_ext in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6889 XDOT_PY=$ac_cv_path_XDOT_PY
6890 if test -n "$XDOT_PY"; then
6891 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6892 echo "${ECHO_T}$XDOT_PY" >&6; }
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6899 if test "$XDOT_PY" != "echo xdot.py" ; then
6901 cat >>confdefs.h <<\_ACEOF
6902 #define HAVE_XDOT_PY 1
6905 if test "$llvm_cv_os_type" = "MingW" ; then
6906 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6909 cat >>confdefs.h <<_ACEOF
6910 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6915 # Find a good install program. We prefer a C program (faster),
6916 # so one script is as good as another. But avoid the broken or
6917 # incompatible versions:
6918 # SysV /etc/install, /usr/sbin/install
6919 # SunOS /usr/etc/install
6920 # IRIX /sbin/install
6922 # AmigaOS /C/install, which installs bootblocks on floppy discs
6923 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6924 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6925 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6926 # OS/2's system install, which has a completely different semantic
6927 # ./install, which can be erroneously created by make from ./install.sh.
6928 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6929 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6930 if test -z "$INSTALL"; then
6931 if test "${ac_cv_path_install+set}" = set; then
6932 echo $ECHO_N "(cached) $ECHO_C" >&6
6934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6938 test -z "$as_dir" && as_dir=.
6939 # Account for people who put trailing slashes in PATH elements.
6941 ./ | .// | /cC/* | \
6942 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6943 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6946 # OSF1 and SCO ODT 3.0 have their own names for install.
6947 # Don't use installbsd from OSF since it installs stuff as root
6949 for ac_prog in ginstall scoinst install; do
6950 for ac_exec_ext in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6952 if test $ac_prog = install &&
6953 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6954 # AIX install. It has an incompatible calling convention.
6956 elif test $ac_prog = install &&
6957 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6958 # program-specific install script used by HP pwplus--don't use.
6961 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6974 if test "${ac_cv_path_install+set}" = set; then
6975 INSTALL=$ac_cv_path_install
6977 # As a last resort, use the slow shell script. Don't cache a
6978 # value for INSTALL within a source directory, because that will
6979 # break other packages using the cache if that directory is
6980 # removed, or if the value is a relative name.
6981 INSTALL=$ac_install_sh
6984 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6985 echo "${ECHO_T}$INSTALL" >&6; }
6987 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6988 # It thinks the first close brace ends the variable substitution.
6989 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6991 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6993 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6996 [\\/$]* | ?:[\\/]* ) ;;
6997 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7000 # Extract the first word of "bzip2", so it can be a program name with args.
7001 set dummy bzip2; ac_word=$2
7002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7004 if test "${ac_cv_path_BZIP2+set}" = set; then
7005 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 test -z "$as_dir" && as_dir=.
7017 for ac_exec_ext in '' $ac_executable_extensions; do
7018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7019 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 BZIP2=$ac_cv_path_BZIP2
7031 if test -n "$BZIP2"; then
7032 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7033 echo "${ECHO_T}$BZIP2" >&6; }
7035 { echo "$as_me:$LINENO: result: no" >&5
7036 echo "${ECHO_T}no" >&6; }
7040 # Extract the first word of "cat", so it can be a program name with args.
7041 set dummy cat; ac_word=$2
7042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7044 if test "${ac_cv_path_CAT+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 test -z "$as_dir" && as_dir=.
7057 for ac_exec_ext in '' $ac_executable_extensions; do
7058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7059 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7071 if test -n "$CAT"; then
7072 { echo "$as_me:$LINENO: result: $CAT" >&5
7073 echo "${ECHO_T}$CAT" >&6; }
7075 { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7080 # Extract the first word of "doxygen", so it can be a program name with args.
7081 set dummy doxygen; ac_word=$2
7082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7084 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 test -z "$as_dir" && as_dir=.
7097 for ac_exec_ext in '' $ac_executable_extensions; do
7098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7099 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 DOXYGEN=$ac_cv_path_DOXYGEN
7111 if test -n "$DOXYGEN"; then
7112 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7113 echo "${ECHO_T}$DOXYGEN" >&6; }
7115 { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7120 # Extract the first word of "groff", so it can be a program name with args.
7121 set dummy groff; ac_word=$2
7122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7124 if test "${ac_cv_path_GROFF+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7136 test -z "$as_dir" && as_dir=.
7137 for ac_exec_ext in '' $ac_executable_extensions; do
7138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7139 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 GROFF=$ac_cv_path_GROFF
7151 if test -n "$GROFF"; then
7152 { echo "$as_me:$LINENO: result: $GROFF" >&5
7153 echo "${ECHO_T}$GROFF" >&6; }
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7160 # Extract the first word of "gzip", so it can be a program name with args.
7161 set dummy gzip; ac_word=$2
7162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7164 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7179 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 GZIPBIN=$ac_cv_path_GZIPBIN
7191 if test -n "$GZIPBIN"; then
7192 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7193 echo "${ECHO_T}$GZIPBIN" >&6; }
7195 { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7200 # Extract the first word of "pdfroff", so it can be a program name with args.
7201 set dummy pdfroff; ac_word=$2
7202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7204 if test "${ac_cv_path_PDFROFF+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7219 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 PDFROFF=$ac_cv_path_PDFROFF
7231 if test -n "$PDFROFF"; then
7232 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7233 echo "${ECHO_T}$PDFROFF" >&6; }
7235 { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7240 # Extract the first word of "runtest", so it can be a program name with args.
7241 set dummy runtest; ac_word=$2
7242 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7243 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7244 if test "${ac_cv_path_RUNTEST+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 test -z "$as_dir" && as_dir=.
7257 for ac_exec_ext in '' $ac_executable_extensions; do
7258 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7259 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 RUNTEST=$ac_cv_path_RUNTEST
7271 if test -n "$RUNTEST"; then
7272 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7273 echo "${ECHO_T}$RUNTEST" >&6; }
7275 { echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6; }
7282 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7283 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7285 # Check whether --with-tclinclude was given.
7286 if test "${with_tclinclude+set}" = set; then
7287 withval=$with_tclinclude; with_tclinclude=${withval}
7292 if test "${ac_cv_path_tclsh+set}" = set; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 if test x"${with_tclinclude}" != x ; then
7297 if test -f ${with_tclinclude}/tclsh ; then
7298 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7299 elif test -f ${with_tclinclude}/src/tclsh ; then
7300 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7302 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7303 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7304 { (exit 1); exit 1; }; }
7310 if test x"${ac_cv_path_tclsh}" = x ; then
7311 { echo "$as_me:$LINENO: result: none" >&5
7312 echo "${ECHO_T}none" >&6; }
7313 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
7315 # Extract the first word of "$ac_prog", so it can be a program name with args.
7316 set dummy $ac_prog; ac_word=$2
7317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7319 if test "${ac_cv_path_TCLSH+set}" = set; then
7320 echo $ECHO_N "(cached) $ECHO_C" >&6
7324 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 test -z "$as_dir" && as_dir=.
7332 for ac_exec_ext in '' $ac_executable_extensions; do
7333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7334 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 TCLSH=$ac_cv_path_TCLSH
7346 if test -n "$TCLSH"; then
7347 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7348 echo "${ECHO_T}$TCLSH" >&6; }
7350 { echo "$as_me:$LINENO: result: no" >&5
7351 echo "${ECHO_T}no" >&6; }
7355 test -n "$TCLSH" && break
7358 if test x"${TCLSH}" = x ; then
7359 ac_cv_path_tclsh='';
7361 ac_cv_path_tclsh="${TCLSH}";
7364 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7365 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7366 TCLSH="${ac_cv_path_tclsh}"
7370 # Extract the first word of "zip", so it can be a program name with args.
7371 set dummy zip; ac_word=$2
7372 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7373 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7374 if test "${ac_cv_path_ZIP+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7386 test -z "$as_dir" && as_dir=.
7387 for ac_exec_ext in '' $ac_executable_extensions; do
7388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7389 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7401 if test -n "$ZIP"; then
7402 { echo "$as_me:$LINENO: result: $ZIP" >&5
7403 echo "${ECHO_T}$ZIP" >&6; }
7405 { echo "$as_me:$LINENO: result: no" >&5
7406 echo "${ECHO_T}no" >&6; }
7410 for ac_prog in ocamlc
7412 # Extract the first word of "$ac_prog", so it can be a program name with args.
7413 set dummy $ac_prog; ac_word=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_OCAMLC+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 OCAMLC=$ac_cv_path_OCAMLC
7443 if test -n "$OCAMLC"; then
7444 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7445 echo "${ECHO_T}$OCAMLC" >&6; }
7447 { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7452 test -n "$OCAMLC" && break
7455 for ac_prog in ocamlopt
7457 # Extract the first word of "$ac_prog", so it can be a program name with args.
7458 set dummy $ac_prog; ac_word=$2
7459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir=.
7474 for ac_exec_ext in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 OCAMLOPT=$ac_cv_path_OCAMLOPT
7488 if test -n "$OCAMLOPT"; then
7489 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7490 echo "${ECHO_T}$OCAMLOPT" >&6; }
7492 { echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6; }
7497 test -n "$OCAMLOPT" && break
7500 for ac_prog in ocamldep
7502 # Extract the first word of "$ac_prog", so it can be a program name with args.
7503 set dummy $ac_prog; ac_word=$2
7504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7518 test -z "$as_dir" && as_dir=.
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7532 OCAMLDEP=$ac_cv_path_OCAMLDEP
7533 if test -n "$OCAMLDEP"; then
7534 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7535 echo "${ECHO_T}$OCAMLDEP" >&6; }
7537 { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7542 test -n "$OCAMLDEP" && break
7545 for ac_prog in ocamldoc
7547 # Extract the first word of "$ac_prog", so it can be a program name with args.
7548 set dummy $ac_prog; ac_word=$2
7549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir=.
7564 for ac_exec_ext in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 OCAMLDOC=$ac_cv_path_OCAMLDOC
7578 if test -n "$OCAMLDOC"; then
7579 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7580 echo "${ECHO_T}$OCAMLDOC" >&6; }
7582 { echo "$as_me:$LINENO: result: no" >&5
7583 echo "${ECHO_T}no" >&6; }
7587 test -n "$OCAMLDOC" && break
7590 for ac_prog in gas as
7592 # Extract the first word of "$ac_prog", so it can be a program name with args.
7593 set dummy $ac_prog; 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_GAS+set}" = set; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7601 ac_cv_path_GAS="$GAS" # 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_GAS="$as_dir/$ac_word$ac_exec_ext"
7612 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7623 if test -n "$GAS"; then
7624 { echo "$as_me:$LINENO: result: $GAS" >&5
7625 echo "${ECHO_T}$GAS" >&6; }
7627 { echo "$as_me:$LINENO: result: no" >&5
7628 echo "${ECHO_T}no" >&6; }
7632 test -n "$GAS" && break
7636 { echo "$as_me:$LINENO: checking for linker version" >&5
7637 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7638 if test "${llvm_cv_link_version+set}" = set; then
7639 echo $ECHO_N "(cached) $ECHO_C" >&6
7642 version_string="$(ld -v 2>&1 | head -1)"
7645 if (echo "$version_string" | grep -q "ld64"); then
7646 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7648 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7652 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7653 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7655 cat >>confdefs.h <<_ACEOF
7656 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7661 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7662 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7663 if test "${llvm_cv_link_use_r+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7667 ac_cpp='$CPP $CPPFLAGS'
7668 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7669 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7670 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7673 CFLAGS="$CFLAGS -Wl,-R."
7674 cat >conftest.$ac_ext <<_ACEOF
7677 cat confdefs.h >>conftest.$ac_ext
7678 cat >>conftest.$ac_ext <<_ACEOF
7679 /* end confdefs.h. */
7689 rm -f conftest.$ac_objext conftest$ac_exeext
7690 if { (ac_try="$ac_link"
7692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7693 *) ac_try_echo=$ac_try;;
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696 (eval "$ac_link") 2>conftest.er1
7698 grep -v '^ *+' conftest.er1 >conftest.err
7700 cat conftest.err >&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } &&
7703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7704 { (case "(($ac_try" in
7705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7706 *) ac_try_echo=$ac_try;;
7708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7709 (eval "$ac_try") 2>&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); }; } &&
7713 { ac_try='test -s conftest$ac_exeext'
7714 { (case "(($ac_try" in
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719 (eval "$ac_try") 2>&5
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 llvm_cv_link_use_r=yes
7725 echo "$as_me: failed program was:" >&5
7726 sed 's/^/| /' conftest.$ac_ext >&5
7728 llvm_cv_link_use_r=no
7731 rm -f core conftest.err conftest.$ac_objext \
7732 conftest$ac_exeext conftest.$ac_ext
7735 ac_cpp='$CPP $CPPFLAGS'
7736 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7737 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7738 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7742 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7743 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7744 if test "$llvm_cv_link_use_r" = yes ; then
7746 cat >>confdefs.h <<\_ACEOF
7747 #define HAVE_LINK_R 1
7753 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7754 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7755 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7759 ac_cpp='$CPP $CPPFLAGS'
7760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7766 cat >conftest.$ac_ext <<_ACEOF
7769 cat confdefs.h >>conftest.$ac_ext
7770 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */
7781 rm -f conftest.$ac_objext conftest$ac_exeext
7782 if { (ac_try="$ac_link"
7784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7785 *) ac_try_echo=$ac_try;;
7787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7788 (eval "$ac_link") 2>conftest.er1
7790 grep -v '^ *+' conftest.er1 >conftest.err
7792 cat conftest.err >&5
7793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7794 (exit $ac_status); } &&
7795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7796 { (case "(($ac_try" in
7797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_try") 2>&5
7803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7804 (exit $ac_status); }; } &&
7805 { ac_try='test -s conftest$ac_exeext'
7806 { (case "(($ac_try" in
7807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7808 *) ac_try_echo=$ac_try;;
7810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7811 (eval "$ac_try") 2>&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); }; }; then
7815 llvm_cv_link_use_export_dynamic=yes
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.$ac_ext >&5
7820 llvm_cv_link_use_export_dynamic=no
7823 rm -f core conftest.err conftest.$ac_objext \
7824 conftest$ac_exeext conftest.$ac_ext
7827 ac_cpp='$CPP $CPPFLAGS'
7828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7834 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7835 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7836 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7838 cat >>confdefs.h <<\_ACEOF
7839 #define HAVE_LINK_EXPORT_DYNAMIC 1
7845 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7846 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7847 if test "${llvm_cv_link_use_version_script+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7851 ac_cpp='$CPP $CPPFLAGS'
7852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7858 # The following code is from the autoconf manual,
7859 # "11.13: Limitations of Usual Tools".
7860 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7861 # Use mktemp if possible; otherwise fall back on mkdir,
7862 # with $RANDOM to make collisions less likely.
7866 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7868 test -n "$tmp" && test -d "$tmp"
7870 tmp=$TMPDIR/foo$$-$RANDOM
7871 (umask 077 && mkdir "$tmp")
7874 echo "{" > "$tmp/export.map"
7875 echo " global: main;" >> "$tmp/export.map"
7876 echo " local: *;" >> "$tmp/export.map"
7877 echo "};" >> "$tmp/export.map"
7879 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7880 cat >conftest.$ac_ext <<_ACEOF
7883 cat confdefs.h >>conftest.$ac_ext
7884 cat >>conftest.$ac_ext <<_ACEOF
7885 /* end confdefs.h. */
7895 rm -f conftest.$ac_objext conftest$ac_exeext
7896 if { (ac_try="$ac_link"
7898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7899 *) ac_try_echo=$ac_try;;
7901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7902 (eval "$ac_link") 2>conftest.er1
7904 grep -v '^ *+' conftest.er1 >conftest.err
7906 cat conftest.err >&5
7907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7908 (exit $ac_status); } &&
7909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7910 { (case "(($ac_try" in
7911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_try") 2>&5
7917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7918 (exit $ac_status); }; } &&
7919 { ac_try='test -s conftest$ac_exeext'
7920 { (case "(($ac_try" in
7921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7922 *) ac_try_echo=$ac_try;;
7924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7925 (eval "$ac_try") 2>&5
7927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7928 (exit $ac_status); }; }; then
7929 llvm_cv_link_use_version_script=yes
7931 echo "$as_me: failed program was:" >&5
7932 sed 's/^/| /' conftest.$ac_ext >&5
7934 llvm_cv_link_use_version_script=no
7937 rm -f core conftest.err conftest.$ac_objext \
7938 conftest$ac_exeext conftest.$ac_ext
7939 rm "$tmp/export.map"
7943 ac_cpp='$CPP $CPPFLAGS'
7944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7945 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7946 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7950 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7951 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7952 if test "$llvm_cv_link_use_version_script" = yes ; then
7953 HAVE_LINK_VERSION_SCRIPT=1
7960 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7961 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7962 if test "${ac_cv_c_const+set}" = set; then
7963 echo $ECHO_N "(cached) $ECHO_C" >&6
7965 cat >conftest.$ac_ext <<_ACEOF
7968 cat confdefs.h >>conftest.$ac_ext
7969 cat >>conftest.$ac_ext <<_ACEOF
7970 /* end confdefs.h. */
7975 /* FIXME: Include the comments suggested by Paul. */
7977 /* Ultrix mips cc rejects this. */
7978 typedef int charset[2];
7980 /* SunOS 4.1.1 cc rejects this. */
7981 char const *const *ccp;
7983 /* NEC SVR4.0.2 mips cc rejects this. */
7984 struct point {int x, y;};
7985 static struct point const zero = {0,0};
7986 /* AIX XL C 1.02.0.0 rejects this.
7987 It does not let you subtract one const X* pointer from another in
7988 an arm of an if-expression whose if-part is not a constant
7990 const char *g = "string";
7991 ccp = &g + (g ? g-g : 0);
7992 /* HPUX 7.0 cc rejects these. */
7995 ccp = (char const *const *) p;
7996 { /* SCO 3.2v4 cc rejects this. */
7998 char const *s = 0 ? (char *) 0 : (char const *) 0;
8003 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8005 const int *foo = &x[0];
8008 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8009 typedef const int *iptr;
8013 { /* AIX XL C 1.02.0.0 rejects this saying
8014 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8015 struct s { int j; const int *ap[3]; };
8016 struct s *b; b->j = 5;
8018 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8022 return !x[0] && !zero.x;
8029 rm -f conftest.$ac_objext
8030 if { (ac_try="$ac_compile"
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_compile") 2>conftest.er1
8038 grep -v '^ *+' conftest.er1 >conftest.err
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } &&
8043 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8044 { (case "(($ac_try" in
8045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8046 *) ac_try_echo=$ac_try;;
8048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8049 (eval "$ac_try") 2>&5
8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8052 (exit $ac_status); }; } &&
8053 { ac_try='test -s conftest.$ac_objext'
8054 { (case "(($ac_try" in
8055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8056 *) ac_try_echo=$ac_try;;
8058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8059 (eval "$ac_try") 2>&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); }; }; then
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.$ac_ext >&5
8071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8074 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8075 if test $ac_cv_c_const = no; then
8077 cat >>confdefs.h <<\_ACEOF
8089 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8090 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8091 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8092 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8094 echo $ECHO_N "(cached) $ECHO_C" >&6
8096 cat >conftest.$ac_ext <<_ACEOF
8099 cat confdefs.h >>conftest.$ac_ext
8100 cat >>conftest.$ac_ext <<_ACEOF
8101 /* end confdefs.h. */
8102 #include <sys/types.h>
8114 rm -f conftest.$ac_objext
8115 if { (ac_try="$ac_compile"
8117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8118 *) ac_try_echo=$ac_try;;
8120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8121 (eval "$ac_compile") 2>conftest.er1
8123 grep -v '^ *+' conftest.er1 >conftest.err
8125 cat conftest.err >&5
8126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8127 (exit $ac_status); } &&
8128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8129 { (case "(($ac_try" in
8130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_try") 2>&5
8136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8137 (exit $ac_status); }; } &&
8138 { ac_try='test -s conftest.$ac_objext'
8139 { (case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_try") 2>&5
8146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8147 (exit $ac_status); }; }; then
8148 eval "$as_ac_Header=yes"
8150 echo "$as_me: failed program was:" >&5
8151 sed 's/^/| /' conftest.$ac_ext >&5
8153 eval "$as_ac_Header=no"
8156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 ac_res=`eval echo '${'$as_ac_Header'}'`
8159 { echo "$as_me:$LINENO: result: $ac_res" >&5
8160 echo "${ECHO_T}$ac_res" >&6; }
8161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8162 cat >>confdefs.h <<_ACEOF
8163 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8166 ac_header_dirent=$ac_hdr; break
8170 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8171 if test $ac_header_dirent = dirent.h; then
8172 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8173 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8174 if test "${ac_cv_search_opendir+set}" = set; then
8175 echo $ECHO_N "(cached) $ECHO_C" >&6
8177 ac_func_search_save_LIBS=$LIBS
8178 cat >conftest.$ac_ext <<_ACEOF
8181 cat confdefs.h >>conftest.$ac_ext
8182 cat >>conftest.$ac_ext <<_ACEOF
8183 /* end confdefs.h. */
8185 /* Override any GCC internal prototype to avoid an error.
8186 Use char because int might match the return type of a GCC
8187 builtin and then its argument prototype would still apply. */
8200 for ac_lib in '' dir; do
8201 if test -z "$ac_lib"; then
8202 ac_res="none required"
8205 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8207 rm -f conftest.$ac_objext conftest$ac_exeext
8208 if { (ac_try="$ac_link"
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_link") 2>conftest.er1
8216 grep -v '^ *+' conftest.er1 >conftest.err
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } &&
8221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8222 { (case "(($ac_try" in
8223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8224 *) ac_try_echo=$ac_try;;
8226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8227 (eval "$ac_try") 2>&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); }; } &&
8231 { ac_try='test -s conftest$ac_exeext'
8232 { (case "(($ac_try" in
8233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_try") 2>&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); }; }; then
8241 ac_cv_search_opendir=$ac_res
8243 echo "$as_me: failed program was:" >&5
8244 sed 's/^/| /' conftest.$ac_ext >&5
8249 rm -f core conftest.err conftest.$ac_objext \
8251 if test "${ac_cv_search_opendir+set}" = set; then
8255 if test "${ac_cv_search_opendir+set}" = set; then
8258 ac_cv_search_opendir=no
8261 LIBS=$ac_func_search_save_LIBS
8263 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8264 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8265 ac_res=$ac_cv_search_opendir
8266 if test "$ac_res" != no; then
8267 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8272 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8273 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8274 if test "${ac_cv_search_opendir+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8277 ac_func_search_save_LIBS=$LIBS
8278 cat >conftest.$ac_ext <<_ACEOF
8281 cat confdefs.h >>conftest.$ac_ext
8282 cat >>conftest.$ac_ext <<_ACEOF
8283 /* end confdefs.h. */
8285 /* Override any GCC internal prototype to avoid an error.
8286 Use char because int might match the return type of a GCC
8287 builtin and then its argument prototype would still apply. */
8300 for ac_lib in '' x; do
8301 if test -z "$ac_lib"; then
8302 ac_res="none required"
8305 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8307 rm -f conftest.$ac_objext conftest$ac_exeext
8308 if { (ac_try="$ac_link"
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_link") 2>conftest.er1
8316 grep -v '^ *+' conftest.er1 >conftest.err
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } &&
8321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8322 { (case "(($ac_try" in
8323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8324 *) ac_try_echo=$ac_try;;
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_try") 2>&5
8329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); }; } &&
8331 { ac_try='test -s conftest$ac_exeext'
8332 { (case "(($ac_try" in
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_try") 2>&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8341 ac_cv_search_opendir=$ac_res
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.$ac_ext >&5
8349 rm -f core conftest.err conftest.$ac_objext \
8351 if test "${ac_cv_search_opendir+set}" = set; then
8355 if test "${ac_cv_search_opendir+set}" = set; then
8358 ac_cv_search_opendir=no
8361 LIBS=$ac_func_search_save_LIBS
8363 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8364 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8365 ac_res=$ac_cv_search_opendir
8366 if test "$ac_res" != no; then
8367 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8374 for ac_header in dlfcn.h
8376 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8378 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8379 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8383 ac_res=`eval echo '${'$as_ac_Header'}'`
8384 { echo "$as_me:$LINENO: result: $ac_res" >&5
8385 echo "${ECHO_T}$ac_res" >&6; }
8387 # Is the header compilable?
8388 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8389 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8390 cat >conftest.$ac_ext <<_ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 $ac_includes_default
8397 #include <$ac_header>
8399 rm -f conftest.$ac_objext
8400 if { (ac_try="$ac_compile"
8402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8403 *) ac_try_echo=$ac_try;;
8405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8406 (eval "$ac_compile") 2>conftest.er1
8408 grep -v '^ *+' conftest.er1 >conftest.err
8410 cat conftest.err >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); } &&
8413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8414 { (case "(($ac_try" in
8415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8416 *) ac_try_echo=$ac_try;;
8418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8419 (eval "$ac_try") 2>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); }; } &&
8423 { ac_try='test -s conftest.$ac_objext'
8424 { (case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_try") 2>&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); }; }; then
8433 ac_header_compiler=yes
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8438 ac_header_compiler=no
8441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8443 echo "${ECHO_T}$ac_header_compiler" >&6; }
8445 # Is the header present?
8446 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8447 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8448 cat >conftest.$ac_ext <<_ACEOF
8451 cat confdefs.h >>conftest.$ac_ext
8452 cat >>conftest.$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 #include <$ac_header>
8456 if { (ac_try="$ac_cpp conftest.$ac_ext"
8458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8459 *) ac_try_echo=$ac_try;;
8461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8464 grep -v '^ *+' conftest.er1 >conftest.err
8466 cat conftest.err >&5
8467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8468 (exit $ac_status); } >/dev/null; then
8469 if test -s conftest.err; then
8470 ac_cpp_err=$ac_c_preproc_warn_flag
8471 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8478 if test -z "$ac_cpp_err"; then
8479 ac_header_preproc=yes
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8484 ac_header_preproc=no
8487 rm -f conftest.err conftest.$ac_ext
8488 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8489 echo "${ECHO_T}$ac_header_preproc" >&6; }
8491 # So? What about this header?
8492 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8494 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8495 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8496 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8497 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8498 ac_header_preproc=yes
8501 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8502 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8503 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8504 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8505 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8506 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8507 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8508 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8509 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8510 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8511 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8512 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8514 ## ------------------------------------ ##
8515 ## Report this to http://llvm.org/bugs/ ##
8516 ## ------------------------------------ ##
8518 ) | sed "s/^/$as_me: WARNING: /" >&2
8521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 eval "$as_ac_Header=\$ac_header_preproc"
8528 ac_res=`eval echo '${'$as_ac_Header'}'`
8529 { echo "$as_me:$LINENO: result: $ac_res" >&5
8530 echo "${ECHO_T}$ac_res" >&6; }
8533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8534 cat >>confdefs.h <<_ACEOF
8535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8542 # Check whether --enable-ltdl-install was given.
8543 if test "${enable_ltdl_install+set}" = set; then
8544 enableval=$enable_ltdl_install;
8550 if test x"${enable_ltdl_install-no}" != xno; then
8552 INSTALL_LTDL_FALSE='#'
8554 INSTALL_LTDL_TRUE='#'
8560 if test x"${enable_ltdl_convenience-no}" != xno; then
8561 CONVENIENCE_LTDL_TRUE=
8562 CONVENIENCE_LTDL_FALSE='#'
8564 CONVENIENCE_LTDL_TRUE='#'
8565 CONVENIENCE_LTDL_FALSE=
8569 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8570 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8572 libname_spec='lib$name'
8580 shlibpath_overrides_runpath=unknown
8582 dynamic_linker="$host_os ld.so"
8583 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8584 if test "$GCC" = yes; then
8585 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8586 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8587 # if the path contains ";" then we assume it to be the separator
8588 # otherwise default to the standard path separator (i.e. ":") - it is
8589 # assumed that no part of a normal pathname contains ";" but that should
8590 # okay in the real world where ";" in dirpaths is itself problematic.
8591 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8593 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8596 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8598 need_lib_prefix=unknown
8599 hardcode_into_libs=no
8601 # when you set need_version to no, make sure it does not cause -set_version
8602 # flags to be left without arguments
8603 need_version=unknown
8608 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8609 shlibpath_var=LIBPATH
8611 # AIX 3 has no versioning support, so we append a major version to the name.
8612 soname_spec='${libname}${release}${shared_ext}$major'
8619 hardcode_into_libs=yes
8620 if test "$host_cpu" = ia64; then
8621 # AIX 5 supports IA64
8622 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8623 shlibpath_var=LD_LIBRARY_PATH
8625 # With GCC up to 2.95.x, collect2 would create an import file
8626 # for dependence libraries. The import file would start with
8627 # the line `#! .'. This would cause the generated library to
8628 # depend on `.', always an invalid library. This was fixed in
8629 # development snapshots of GCC prior to 3.0.
8631 aix4 | aix4.[01] | aix4.[01].*)
8632 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8634 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8641 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8642 # soname into executable. Probably we can add versioning support to
8643 # collect2, so additional links can be useful in future.
8644 if test "$aix_use_runtimelinking" = yes; then
8645 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8646 # instead of lib<name>.a to let people know that these are not
8647 # typical AIX shared libraries.
8648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8650 # We preserve .a as extension for shared libraries through AIX4.2
8651 # and later when we are not doing run time linking.
8652 library_names_spec='${libname}${release}.a $libname.a'
8653 soname_spec='${libname}${release}${shared_ext}$major'
8655 shlibpath_var=LIBPATH
8660 library_names_spec='$libname.ixlibrary $libname.a'
8661 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8662 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'
8666 library_names_spec='${libname}${shared_ext}'
8667 dynamic_linker="$host_os ld.so"
8668 shlibpath_var=LIBRARY_PATH
8674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8675 soname_spec='${libname}${release}${shared_ext}$major'
8676 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8677 shlibpath_var=LD_LIBRARY_PATH
8678 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8679 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8680 # the default ld.so.conf also contains /usr/contrib/lib and
8681 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8682 # libtool to hard-code these into programs
8685 cygwin* | mingw* | pw32*)
8686 version_type=windows
8691 case $GCC,$host_os in
8692 yes,cygwin* | yes,mingw* | yes,pw32*)
8693 library_names_spec='$libname.dll.a'
8694 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8695 postinstall_cmds='base_file=`basename \${file}`~
8696 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8697 dldir=$destdir/`dirname \$dlpath`~
8698 test -d \$dldir || mkdir -p \$dldir~
8699 $install_prog $dir/$dlname \$dldir/$dlname~
8700 chmod a+x \$dldir/$dlname'
8701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8702 dlpath=$dir/\$dldll~
8704 shlibpath_overrides_runpath=yes
8708 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8709 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8710 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8713 # MinGW DLLs use traditional 'lib' prefix
8714 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8715 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8716 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8717 # It is most probably a Windows format PATH printed by
8718 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8719 # path with ; separators, and with drive letters. We can handle the
8720 # drive letters (cygwin fileutils understands them), so leave them,
8721 # especially as we might pass files found there to a mingw objdump,
8722 # which wouldn't understand a cygwinified path. Ahh.
8723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8729 # pw32 DLLs use 'pw' prefix rather than 'lib'
8730 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8736 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8739 dynamic_linker='Win32 ld.exe'
8740 # FIXME: first we should search . and the directory the executable is in
8744 darwin* | rhapsody*)
8745 dynamic_linker="$host_os dyld"
8749 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8750 soname_spec='${libname}${release}${major}$shared_ext'
8751 shlibpath_overrides_runpath=yes
8752 shlibpath_var=DYLD_LIBRARY_PATH
8753 shrext_cmds='.dylib'
8754 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8755 if test "$GCC" = yes; then
8756 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"`
8758 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8760 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8769 shlibpath_var=LD_LIBRARY_PATH
8780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8781 soname_spec='${libname}${release}${shared_ext}$major'
8782 shlibpath_var=LD_LIBRARY_PATH
8783 shlibpath_overrides_runpath=no
8784 hardcode_into_libs=yes
8785 dynamic_linker='GNU ld.so'
8788 freebsd* | dragonfly*)
8789 # DragonFly does not have aout. When/if they implement a new
8790 # versioning mechanism, adjust this.
8791 if test -x /usr/bin/objformat; then
8792 objformat=`/usr/bin/objformat`
8795 freebsd[123].*) objformat=aout ;;
8799 version_type=freebsd-$objformat
8800 case $version_type in
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8811 shlibpath_var=LD_LIBRARY_PATH
8814 shlibpath_overrides_runpath=yes
8816 freebsd3.[01]* | freebsdelf3.[01]*)
8817 shlibpath_overrides_runpath=yes
8818 hardcode_into_libs=yes
8820 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8821 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8822 shlibpath_overrides_runpath=no
8823 hardcode_into_libs=yes
8825 freebsd*) # from 4.6 on
8826 shlibpath_overrides_runpath=yes
8827 hardcode_into_libs=yes
8836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8837 soname_spec='${libname}${release}${shared_ext}$major'
8838 shlibpath_var=LD_LIBRARY_PATH
8839 hardcode_into_libs=yes
8842 hpux9* | hpux10* | hpux11*)
8843 # Give a soname corresponding to the major version so that dld.sl refuses to
8844 # link against other versions.
8851 hardcode_into_libs=yes
8852 dynamic_linker="$host_os dld.so"
8853 shlibpath_var=LD_LIBRARY_PATH
8854 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8856 soname_spec='${libname}${release}${shared_ext}$major'
8857 if test "X$HPUX_IA64_MODE" = X32; then
8858 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8860 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8862 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8866 hardcode_into_libs=yes
8867 dynamic_linker="$host_os dld.sl"
8868 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8869 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8871 soname_spec='${libname}${release}${shared_ext}$major'
8872 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8873 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8877 dynamic_linker="$host_os dld.sl"
8878 shlibpath_var=SHLIB_PATH
8879 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8881 soname_spec='${libname}${release}${shared_ext}$major'
8884 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8885 postinstall_cmds='chmod 555 $lib'
8892 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8893 soname_spec='${libname}${release}${shared_ext}$major'
8894 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8895 shlibpath_var=LD_LIBRARY_PATH
8896 shlibpath_overrides_runpath=no
8897 hardcode_into_libs=yes
8900 irix5* | irix6* | nonstopux*)
8902 nonstopux*) version_type=nonstopux ;;
8904 if test "$lt_cv_prog_gnu_ld" = yes; then
8912 soname_spec='${libname}${release}${shared_ext}$major'
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8915 irix5* | nonstopux*)
8919 case $LD in # libtool.m4 will add one of these switches to LD
8920 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8921 libsuff= shlibsuff= libmagic=32-bit;;
8922 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8923 libsuff=32 shlibsuff=N32 libmagic=N32;;
8924 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8925 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8926 *) libsuff= shlibsuff= libmagic=never-match;;
8930 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8931 shlibpath_overrides_runpath=no
8932 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8933 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8934 hardcode_into_libs=yes
8937 # No shared lib support for Linux oldld, aout, or coff.
8938 linux*oldld* | linux*aout* | linux*coff*)
8942 # This must be Linux ELF.
8947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8948 soname_spec='${libname}${release}${shared_ext}$major'
8949 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8950 shlibpath_var=LD_LIBRARY_PATH
8951 shlibpath_overrides_runpath=no
8952 # This implies no fast_install, which is unacceptable.
8953 # Some rework will be needed to allow for fast_install
8954 # before this can be enabled.
8955 hardcode_into_libs=yes
8957 # Append ld.so.conf contents to the search path
8958 if test -f /etc/ld.so.conf; then
8959 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' ' '`
8960 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8963 # We used to test for /lib/ld.so.1 and disable shared libraries on
8964 # powerpc, because MkLinux only supported shared libraries with the
8965 # GNU dynamic linker. Since this was broken with cross compilers,
8966 # most powerpc-linux boxes support dynamic linking these days and
8967 # people can always --disable-shared, the test was removed, and we
8968 # assume the GNU/Linux dynamic linker is in use.
8969 dynamic_linker='GNU/Linux ld.so'
8976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8977 soname_spec='${libname}${release}${shared_ext}$major'
8978 shlibpath_var=LD_LIBRARY_PATH
8979 shlibpath_overrides_runpath=no
8980 hardcode_into_libs=yes
8981 dynamic_linker='GNU ld.so'
8988 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8990 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8991 dynamic_linker='NetBSD (a.out) ld.so'
8993 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8994 soname_spec='${libname}${release}${shared_ext}$major'
8995 dynamic_linker='NetBSD ld.elf_so'
8997 shlibpath_var=LD_LIBRARY_PATH
8998 shlibpath_overrides_runpath=yes
8999 hardcode_into_libs=yes
9004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9005 shlibpath_var=LD_LIBRARY_PATH
9006 shlibpath_overrides_runpath=yes
9013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9014 soname_spec='${libname}${release}${shared_ext}$major'
9015 shlibpath_var=LD_LIBRARY_PATH
9016 shlibpath_overrides_runpath=yes
9021 sys_lib_dlsearch_path_spec="/usr/lib"
9023 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9025 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9026 *) need_version=no ;;
9028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9029 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9030 shlibpath_var=LD_LIBRARY_PATH
9031 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9033 openbsd2.[89] | openbsd2.[89].*)
9034 shlibpath_overrides_runpath=no
9037 shlibpath_overrides_runpath=yes
9041 shlibpath_overrides_runpath=yes
9046 libname_spec='$name'
9049 library_names_spec='$libname${shared_ext} $libname.a'
9050 dynamic_linker='OS/2 ld.exe'
9051 shlibpath_var=LIBPATH
9054 osf3* | osf4* | osf5*)
9058 soname_spec='${libname}${release}${shared_ext}$major'
9059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9062 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9070 soname_spec='${libname}${release}${shared_ext}$major'
9071 shlibpath_var=LD_LIBRARY_PATH
9072 shlibpath_overrides_runpath=yes
9073 hardcode_into_libs=yes
9074 # ldd complains unless libraries are executable
9075 postinstall_cmds='chmod +x $lib'
9080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9081 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9082 shlibpath_var=LD_LIBRARY_PATH
9083 shlibpath_overrides_runpath=yes
9084 if test "$with_gnu_ld" = yes; then
9092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9093 soname_spec='${libname}${release}${shared_ext}$major'
9094 shlibpath_var=LD_LIBRARY_PATH
9095 case $host_vendor in
9097 shlibpath_overrides_runpath=no
9099 export_dynamic_flag_spec='${wl}-Blargedynsym'
9100 runpath_var=LD_RUN_PATH
9108 shlibpath_overrides_runpath=no
9109 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9115 if test -d /usr/nec ;then
9117 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9118 soname_spec='$libname${shared_ext}.$major'
9119 shlibpath_var=LD_LIBRARY_PATH
9123 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9124 version_type=freebsd-elf
9127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9128 soname_spec='${libname}${release}${shared_ext}$major'
9129 shlibpath_var=LD_LIBRARY_PATH
9130 hardcode_into_libs=yes
9131 if test "$with_gnu_ld" = yes; then
9132 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9133 shlibpath_overrides_runpath=no
9135 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9136 shlibpath_overrides_runpath=yes
9139 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9143 sys_lib_dlsearch_path_spec='/usr/lib'
9148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9149 soname_spec='${libname}${release}${shared_ext}$major'
9150 shlibpath_var=LD_LIBRARY_PATH
9157 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9158 echo "${ECHO_T}$dynamic_linker" >&6; }
9159 test "$dynamic_linker" = no && can_build_shared=no
9161 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9162 if test "$GCC" = yes; then
9163 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9167 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9168 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9169 if test "${libltdl_cv_shlibext+set}" = set; then
9170 echo $ECHO_N "(cached) $ECHO_C" >&6
9174 eval libltdl_cv_shlibext=$shrext_cmds
9177 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9178 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9179 if test -n "$libltdl_cv_shlibext"; then
9181 cat >>confdefs.h <<_ACEOF
9182 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9188 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9189 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9190 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9191 echo $ECHO_N "(cached) $ECHO_C" >&6
9193 libltdl_cv_shlibpath_var="$shlibpath_var"
9195 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9196 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9197 if test -n "$libltdl_cv_shlibpath_var"; then
9199 cat >>confdefs.h <<_ACEOF
9200 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9206 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9207 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9208 if test "${libltdl_cv_sys_search_path+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9213 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9214 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9215 if test -n "$libltdl_cv_sys_search_path"; then
9217 for dir in $libltdl_cv_sys_search_path; do
9218 if test -z "$sys_search_path"; then
9219 sys_search_path="$dir"
9221 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9225 cat >>confdefs.h <<_ACEOF
9226 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9231 { echo "$as_me:$LINENO: checking for objdir" >&5
9232 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9233 if test "${libltdl_cv_objdir+set}" = set; then
9234 echo $ECHO_N "(cached) $ECHO_C" >&6
9236 libltdl_cv_objdir="$objdir"
9237 if test -n "$objdir"; then
9240 rm -f .libs 2>/dev/null
9241 mkdir .libs 2>/dev/null
9242 if test -d .libs; then
9243 libltdl_cv_objdir=.libs
9245 # MS-DOS does not allow filenames that begin with a dot.
9246 libltdl_cv_objdir=_libs
9248 rmdir .libs 2>/dev/null
9252 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9253 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9255 cat >>confdefs.h <<_ACEOF
9256 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9264 # Check for command to grab the raw symbol name followed by C symbol from nm.
9265 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9266 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9267 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9268 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 # These are sane defaults that work on at least a few old systems.
9272 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9274 # Character class describing NM global symbol codes.
9275 symcode='[BCDEGRST]'
9277 # Regexp to match symbols that can be accessed directly from C.
9278 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9280 # Transform an extracted symbol line into a proper C declaration
9281 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9283 # Transform an extracted symbol line into symbol name and symbol address
9284 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'"
9286 # Define system-specific variables.
9291 cygwin* | mingw* | pw32*)
9292 symcode='[ABCDGISTW]'
9294 hpux*) # Its linker distinguishes data from code symbols
9295 if test "$host_cpu" = ia64; then
9296 symcode='[ABCDEGRST]'
9298 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9299 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'"
9302 if test "$host_cpu" = ia64; then
9303 symcode='[ABCDGIRSTW]'
9304 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9305 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'"
9309 symcode='[BCDEGRST]'
9312 symcode='[BCDEGQRST]'
9323 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9331 # Handle CRLF in mingw tool chain
9335 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9339 # If we're using GNU nm, then use its standard symbol codes.
9340 case `$NM -V 2>&1` in
9341 *GNU* | *'with BFD'*)
9342 symcode='[ABCDGIRSTW]' ;;
9345 # Try without a prefix undercore, then with it.
9346 for ac_symprfx in "" "_"; do
9348 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9349 symxfrm="\\1 $ac_symprfx\\2 \\2"
9351 # Write the raw and C identifiers.
9352 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9354 # Check to see that the pipe works correctly.
9358 cat > conftest.$ac_ext <<EOF
9363 void nm_test_func(){}
9367 int main(){nm_test_var='a';nm_test_func();return(0);}
9370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9371 (eval $ac_compile) 2>&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; then
9375 # Now try to grab the symbols.
9377 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9378 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9381 (exit $ac_status); } && test -s "$nlist"; then
9382 # Try sorting and uniquifying the output.
9383 if sort "$nlist" | uniq > "$nlist"T; then
9384 mv -f "$nlist"T "$nlist"
9389 # Make sure that we snagged all the symbols we need.
9390 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9391 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9392 cat <<EOF > conftest.$ac_ext
9398 # Now generate the symbol file.
9399 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9401 cat <<EOF >> conftest.$ac_ext
9402 #if defined (__STDC__) && __STDC__
9403 # define lt_ptr_t void *
9405 # define lt_ptr_t char *
9409 /* The mapping between symbol names and symbols. */
9414 lt_preloaded_symbols[] =
9417 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9418 cat <<\EOF >> conftest.$ac_ext
9426 # Now try linking the two files.
9427 mv conftest.$ac_objext conftstm.$ac_objext
9428 lt_save_LIBS="$LIBS"
9429 lt_save_CFLAGS="$CFLAGS"
9430 LIBS="conftstm.$ac_objext"
9431 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9432 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9433 (eval $ac_link) 2>&5
9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9436 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9439 LIBS="$lt_save_LIBS"
9440 CFLAGS="$lt_save_CFLAGS"
9442 echo "cannot find nm_test_func in $nlist" >&5
9445 echo "cannot find nm_test_var in $nlist" >&5
9448 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9451 echo "$progname: failed program was:" >&5
9452 cat conftest.$ac_ext >&5
9454 rm -f conftest* conftst*
9456 # Do not use the global_symbol_pipe unless it works.
9457 if test "$pipe_works" = yes; then
9460 lt_cv_sys_global_symbol_pipe=
9466 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9467 lt_cv_sys_global_symbol_to_cdecl=
9469 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9470 { echo "$as_me:$LINENO: result: failed" >&5
9471 echo "${ECHO_T}failed" >&6; }
9473 { echo "$as_me:$LINENO: result: ok" >&5
9474 echo "${ECHO_T}ok" >&6; }
9478 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9479 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9480 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9481 echo $ECHO_N "(cached) $ECHO_C" >&6
9483 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9484 libltdl_cv_preloaded_symbols=yes
9486 libltdl_cv_preloaded_symbols=no
9490 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9491 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9492 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9494 cat >>confdefs.h <<\_ACEOF
9495 #define HAVE_PRELOADED_SYMBOLS 1
9503 ac_cpp='$CPP $CPPFLAGS'
9504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9509 { echo "$as_me:$LINENO: checking for shl_load" >&5
9510 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9511 if test "${ac_cv_func_shl_load+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 cat >conftest.$ac_ext <<_ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9522 #define shl_load innocuous_shl_load
9524 /* System header to define __stub macros and hopefully few prototypes,
9525 which can conflict with char shl_load (); below.
9526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9527 <limits.h> exists even on freestanding compilers. */
9530 # include <limits.h>
9532 # include <assert.h>
9537 /* Override any GCC internal prototype to avoid an error.
9538 Use char because int might match the return type of a GCC
9539 builtin and then its argument prototype would still apply. */
9544 /* The GNU C library defines this for functions which it implements
9545 to always fail with ENOSYS. Some functions are actually named
9546 something starting with __ and the normal name is an alias. */
9547 #if defined __stub_shl_load || defined __stub___shl_load
9559 rm -f conftest.$ac_objext conftest$ac_exeext
9560 if { (ac_try="$ac_link"
9562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9563 *) ac_try_echo=$ac_try;;
9565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9566 (eval "$ac_link") 2>conftest.er1
9568 grep -v '^ *+' conftest.er1 >conftest.err
9570 cat conftest.err >&5
9571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9572 (exit $ac_status); } &&
9573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9574 { (case "(($ac_try" in
9575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9576 *) ac_try_echo=$ac_try;;
9578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9579 (eval "$ac_try") 2>&5
9581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9582 (exit $ac_status); }; } &&
9583 { ac_try='test -s conftest$ac_exeext'
9584 { (case "(($ac_try" in
9585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9586 *) ac_try_echo=$ac_try;;
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_try") 2>&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); }; }; then
9593 ac_cv_func_shl_load=yes
9595 echo "$as_me: failed program was:" >&5
9596 sed 's/^/| /' conftest.$ac_ext >&5
9598 ac_cv_func_shl_load=no
9601 rm -f core conftest.err conftest.$ac_objext \
9602 conftest$ac_exeext conftest.$ac_ext
9604 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9605 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9606 if test $ac_cv_func_shl_load = yes; then
9608 cat >>confdefs.h <<\_ACEOF
9609 #define HAVE_SHL_LOAD 1
9613 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9614 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9615 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9616 echo $ECHO_N "(cached) $ECHO_C" >&6
9618 ac_check_lib_save_LIBS=$LIBS
9620 cat >conftest.$ac_ext <<_ACEOF
9623 cat confdefs.h >>conftest.$ac_ext
9624 cat >>conftest.$ac_ext <<_ACEOF
9625 /* end confdefs.h. */
9627 /* Override any GCC internal prototype to avoid an error.
9628 Use char because int might match the return type of a GCC
9629 builtin and then its argument prototype would still apply. */
9642 rm -f conftest.$ac_objext conftest$ac_exeext
9643 if { (ac_try="$ac_link"
9645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9646 *) ac_try_echo=$ac_try;;
9648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9649 (eval "$ac_link") 2>conftest.er1
9651 grep -v '^ *+' conftest.er1 >conftest.err
9653 cat conftest.err >&5
9654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9655 (exit $ac_status); } &&
9656 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9657 { (case "(($ac_try" in
9658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9659 *) ac_try_echo=$ac_try;;
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_try") 2>&5
9664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9665 (exit $ac_status); }; } &&
9666 { ac_try='test -s conftest$ac_exeext'
9667 { (case "(($ac_try" in
9668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_try") 2>&5
9674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9675 (exit $ac_status); }; }; then
9676 ac_cv_lib_dld_shl_load=yes
9678 echo "$as_me: failed program was:" >&5
9679 sed 's/^/| /' conftest.$ac_ext >&5
9681 ac_cv_lib_dld_shl_load=no
9684 rm -f core conftest.err conftest.$ac_objext \
9685 conftest$ac_exeext conftest.$ac_ext
9686 LIBS=$ac_check_lib_save_LIBS
9688 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9689 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9690 if test $ac_cv_lib_dld_shl_load = yes; then
9692 cat >>confdefs.h <<\_ACEOF
9693 #define HAVE_SHL_LOAD 1
9696 LIBADD_DL="$LIBADD_DL -ldld"
9698 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9699 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9700 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 ac_check_lib_save_LIBS=$LIBS
9705 cat >conftest.$ac_ext <<_ACEOF
9708 cat confdefs.h >>conftest.$ac_ext
9709 cat >>conftest.$ac_ext <<_ACEOF
9710 /* end confdefs.h. */
9712 /* Override any GCC internal prototype to avoid an error.
9713 Use char because int might match the return type of a GCC
9714 builtin and then its argument prototype would still apply. */
9727 rm -f conftest.$ac_objext conftest$ac_exeext
9728 if { (ac_try="$ac_link"
9730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9731 *) ac_try_echo=$ac_try;;
9733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9734 (eval "$ac_link") 2>conftest.er1
9736 grep -v '^ *+' conftest.er1 >conftest.err
9738 cat conftest.err >&5
9739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9740 (exit $ac_status); } &&
9741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9742 { (case "(($ac_try" in
9743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9744 *) ac_try_echo=$ac_try;;
9746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9747 (eval "$ac_try") 2>&5
9749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9750 (exit $ac_status); }; } &&
9751 { ac_try='test -s conftest$ac_exeext'
9752 { (case "(($ac_try" in
9753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9754 *) ac_try_echo=$ac_try;;
9756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9757 (eval "$ac_try") 2>&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); }; }; then
9761 ac_cv_lib_dl_dlopen=yes
9763 echo "$as_me: failed program was:" >&5
9764 sed 's/^/| /' conftest.$ac_ext >&5
9766 ac_cv_lib_dl_dlopen=no
9769 rm -f core conftest.err conftest.$ac_objext \
9770 conftest$ac_exeext conftest.$ac_ext
9771 LIBS=$ac_check_lib_save_LIBS
9773 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9774 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9775 if test $ac_cv_lib_dl_dlopen = yes; then
9777 cat >>confdefs.h <<\_ACEOF
9778 #define HAVE_LIBDL 1
9781 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9783 cat >conftest.$ac_ext <<_ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9801 rm -f conftest.$ac_objext conftest$ac_exeext
9802 if { (ac_try="$ac_link"
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_link") 2>conftest.er1
9810 grep -v '^ *+' conftest.er1 >conftest.err
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } &&
9815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9816 { (case "(($ac_try" in
9817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9818 *) ac_try_echo=$ac_try;;
9820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9821 (eval "$ac_try") 2>&5
9823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9824 (exit $ac_status); }; } &&
9825 { ac_try='test -s conftest$ac_exeext'
9826 { (case "(($ac_try" in
9827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9828 *) ac_try_echo=$ac_try;;
9830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9831 (eval "$ac_try") 2>&5
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; }; then
9836 cat >>confdefs.h <<\_ACEOF
9837 #define HAVE_LIBDL 1
9839 libltdl_cv_func_dlopen="yes"
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9845 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9846 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9847 echo $ECHO_N "(cached) $ECHO_C" >&6
9849 ac_check_lib_save_LIBS=$LIBS
9851 cat >conftest.$ac_ext <<_ACEOF
9854 cat confdefs.h >>conftest.$ac_ext
9855 cat >>conftest.$ac_ext <<_ACEOF
9856 /* end confdefs.h. */
9858 /* Override any GCC internal prototype to avoid an error.
9859 Use char because int might match the return type of a GCC
9860 builtin and then its argument prototype would still apply. */
9873 rm -f conftest.$ac_objext conftest$ac_exeext
9874 if { (ac_try="$ac_link"
9876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9877 *) ac_try_echo=$ac_try;;
9879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9880 (eval "$ac_link") 2>conftest.er1
9882 grep -v '^ *+' conftest.er1 >conftest.err
9884 cat conftest.err >&5
9885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9886 (exit $ac_status); } &&
9887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9888 { (case "(($ac_try" in
9889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9890 *) ac_try_echo=$ac_try;;
9892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9893 (eval "$ac_try") 2>&5
9895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9896 (exit $ac_status); }; } &&
9897 { ac_try='test -s conftest$ac_exeext'
9898 { (case "(($ac_try" in
9899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9900 *) ac_try_echo=$ac_try;;
9902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9903 (eval "$ac_try") 2>&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); }; }; then
9907 ac_cv_lib_svld_dlopen=yes
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9912 ac_cv_lib_svld_dlopen=no
9915 rm -f core conftest.err conftest.$ac_objext \
9916 conftest$ac_exeext conftest.$ac_ext
9917 LIBS=$ac_check_lib_save_LIBS
9919 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9920 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9921 if test $ac_cv_lib_svld_dlopen = yes; then
9923 cat >>confdefs.h <<\_ACEOF
9924 #define HAVE_LIBDL 1
9927 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9929 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9930 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9931 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9932 echo $ECHO_N "(cached) $ECHO_C" >&6
9934 ac_check_lib_save_LIBS=$LIBS
9936 cat >conftest.$ac_ext <<_ACEOF
9939 cat confdefs.h >>conftest.$ac_ext
9940 cat >>conftest.$ac_ext <<_ACEOF
9941 /* end confdefs.h. */
9943 /* Override any GCC internal prototype to avoid an error.
9944 Use char because int might match the return type of a GCC
9945 builtin and then its argument prototype would still apply. */
9958 rm -f conftest.$ac_objext conftest$ac_exeext
9959 if { (ac_try="$ac_link"
9961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9962 *) ac_try_echo=$ac_try;;
9964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9965 (eval "$ac_link") 2>conftest.er1
9967 grep -v '^ *+' conftest.er1 >conftest.err
9969 cat conftest.err >&5
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } &&
9972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9973 { (case "(($ac_try" in
9974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9975 *) ac_try_echo=$ac_try;;
9977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9978 (eval "$ac_try") 2>&5
9980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9981 (exit $ac_status); }; } &&
9982 { ac_try='test -s conftest$ac_exeext'
9983 { (case "(($ac_try" in
9984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9985 *) ac_try_echo=$ac_try;;
9987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9988 (eval "$ac_try") 2>&5
9990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9991 (exit $ac_status); }; }; then
9992 ac_cv_lib_dld_dld_link=yes
9994 echo "$as_me: failed program was:" >&5
9995 sed 's/^/| /' conftest.$ac_ext >&5
9997 ac_cv_lib_dld_dld_link=no
10000 rm -f core conftest.err conftest.$ac_objext \
10001 conftest$ac_exeext conftest.$ac_ext
10002 LIBS=$ac_check_lib_save_LIBS
10004 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10005 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10006 if test $ac_cv_lib_dld_dld_link = yes; then
10008 cat >>confdefs.h <<\_ACEOF
10012 LIBADD_DL="$LIBADD_DL -ldld"
10014 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10015 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10016 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10017 echo $ECHO_N "(cached) $ECHO_C" >&6
10019 cat >conftest.$ac_ext <<_ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10025 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10027 #define _dyld_func_lookup innocuous__dyld_func_lookup
10029 /* System header to define __stub macros and hopefully few prototypes,
10030 which can conflict with char _dyld_func_lookup (); below.
10031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10032 <limits.h> exists even on freestanding compilers. */
10035 # include <limits.h>
10037 # include <assert.h>
10040 #undef _dyld_func_lookup
10042 /* Override any GCC internal prototype to avoid an error.
10043 Use char because int might match the return type of a GCC
10044 builtin and then its argument prototype would still apply. */
10048 char _dyld_func_lookup ();
10049 /* The GNU C library defines this for functions which it implements
10050 to always fail with ENOSYS. Some functions are actually named
10051 something starting with __ and the normal name is an alias. */
10052 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10059 return _dyld_func_lookup ();
10064 rm -f conftest.$ac_objext conftest$ac_exeext
10065 if { (ac_try="$ac_link"
10066 case "(($ac_try" in
10067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10068 *) ac_try_echo=$ac_try;;
10070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10071 (eval "$ac_link") 2>conftest.er1
10073 grep -v '^ *+' conftest.er1 >conftest.err
10075 cat conftest.err >&5
10076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10077 (exit $ac_status); } &&
10078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10079 { (case "(($ac_try" in
10080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; } &&
10088 { ac_try='test -s conftest$ac_exeext'
10089 { (case "(($ac_try" in
10090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10091 *) ac_try_echo=$ac_try;;
10093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10094 (eval "$ac_try") 2>&5
10096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10097 (exit $ac_status); }; }; then
10098 ac_cv_func__dyld_func_lookup=yes
10100 echo "$as_me: failed program was:" >&5
10101 sed 's/^/| /' conftest.$ac_ext >&5
10103 ac_cv_func__dyld_func_lookup=no
10106 rm -f core conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10109 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10110 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10111 if test $ac_cv_func__dyld_func_lookup = yes; then
10113 cat >>confdefs.h <<\_ACEOF
10114 #define HAVE_DYLD 1
10128 rm -f core conftest.err conftest.$ac_objext \
10129 conftest$ac_exeext conftest.$ac_ext
10140 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10142 lt_save_LIBS="$LIBS"
10143 LIBS="$LIBS $LIBADD_DL"
10145 for ac_func in dlerror
10147 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10148 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10149 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10150 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 cat >conftest.$ac_ext <<_ACEOF
10156 cat confdefs.h >>conftest.$ac_ext
10157 cat >>conftest.$ac_ext <<_ACEOF
10158 /* end confdefs.h. */
10159 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10160 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10161 #define $ac_func innocuous_$ac_func
10163 /* System header to define __stub macros and hopefully few prototypes,
10164 which can conflict with char $ac_func (); below.
10165 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10166 <limits.h> exists even on freestanding compilers. */
10169 # include <limits.h>
10171 # include <assert.h>
10176 /* Override any GCC internal prototype to avoid an error.
10177 Use char because int might match the return type of a GCC
10178 builtin and then its argument prototype would still apply. */
10183 /* The GNU C library defines this for functions which it implements
10184 to always fail with ENOSYS. Some functions are actually named
10185 something starting with __ and the normal name is an alias. */
10186 #if defined __stub_$ac_func || defined __stub___$ac_func
10193 return $ac_func ();
10198 rm -f conftest.$ac_objext conftest$ac_exeext
10199 if { (ac_try="$ac_link"
10200 case "(($ac_try" in
10201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205 (eval "$ac_link") 2>conftest.er1
10207 grep -v '^ *+' conftest.er1 >conftest.err
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } &&
10212 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10213 { (case "(($ac_try" in
10214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10215 *) ac_try_echo=$ac_try;;
10217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10218 (eval "$ac_try") 2>&5
10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10221 (exit $ac_status); }; } &&
10222 { ac_try='test -s conftest$ac_exeext'
10223 { (case "(($ac_try" in
10224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10225 *) ac_try_echo=$ac_try;;
10227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10228 (eval "$ac_try") 2>&5
10230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10231 (exit $ac_status); }; }; then
10232 eval "$as_ac_var=yes"
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 eval "$as_ac_var=no"
10240 rm -f core conftest.err conftest.$ac_objext \
10241 conftest$ac_exeext conftest.$ac_ext
10243 ac_res=`eval echo '${'$as_ac_var'}'`
10244 { echo "$as_me:$LINENO: result: $ac_res" >&5
10245 echo "${ECHO_T}$ac_res" >&6; }
10246 if test `eval echo '${'$as_ac_var'}'` = yes; then
10247 cat >>confdefs.h <<_ACEOF
10248 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10254 LIBS="$lt_save_LIBS"
10257 ac_cpp='$CPP $CPPFLAGS'
10258 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10259 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10264 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10265 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10266 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10267 echo $ECHO_N "(cached) $ECHO_C" >&6
10269 ac_cv_sys_symbol_underscore=no
10270 cat > conftest.$ac_ext <<EOF
10271 void nm_test_func(){}
10272 int main(){nm_test_func;return 0;}
10274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10275 (eval $ac_compile) 2>&5
10277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10278 (exit $ac_status); }; then
10279 # Now try to grab the symbols.
10280 ac_nlist=conftest.nm
10281 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10282 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && test -s "$ac_nlist"; then
10286 # See whether the symbols have a leading underscore.
10287 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10288 ac_cv_sys_symbol_underscore=yes
10290 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10293 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10297 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10300 echo "configure: failed program was:" >&5
10306 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10307 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10310 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10311 if test x"$libltdl_cv_func_dlopen" = xyes ||
10312 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10313 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10314 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10315 if test "${libltdl_cv_need_uscore+set}" = set; then
10316 echo $ECHO_N "(cached) $ECHO_C" >&6
10318 libltdl_cv_need_uscore=unknown
10320 LIBS="$LIBS $LIBADD_DL"
10321 if test "$cross_compiling" = yes; then :
10322 libltdl_cv_need_uscore=cross
10324 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10325 lt_status=$lt_dlunknown
10326 cat > conftest.$ac_ext <<EOF
10327 #line 10327 "configure"
10328 #include "confdefs.h"
10337 # define LT_DLGLOBAL RTLD_GLOBAL
10340 # define LT_DLGLOBAL DL_GLOBAL
10342 # define LT_DLGLOBAL 0
10346 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10347 find out it does not work in some platform. */
10348 #ifndef LT_DLLAZY_OR_NOW
10350 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10353 # define LT_DLLAZY_OR_NOW DL_LAZY
10356 # define LT_DLLAZY_OR_NOW RTLD_NOW
10359 # define LT_DLLAZY_OR_NOW DL_NOW
10361 # define LT_DLLAZY_OR_NOW 0
10369 extern "C" void exit (int);
10372 void fnord() { int i=42;}
10375 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10376 int status = $lt_dlunknown;
10380 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10381 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10382 /* dlclose (self); */
10390 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10391 (eval $ac_link) 2>&5
10393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10395 (./conftest; exit; ) >&5 2>/dev/null
10397 case x$lt_status in
10398 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10399 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10400 x$lt_dlunknown|x*) ;;
10403 # compilation failed
10412 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10413 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10417 if test x"$libltdl_cv_need_uscore" = xyes; then
10419 cat >>confdefs.h <<\_ACEOF
10420 #define NEED_USCORE 1
10426 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10427 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10428 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10429 echo $ECHO_N "(cached) $ECHO_C" >&6
10431 # PORTME does your system automatically load deplibs for dlopen?
10432 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10433 # For now, we just catch OSes we know something about -- in the
10434 # future, we'll try test this programmatically.
10435 libltdl_cv_sys_dlopen_deplibs=unknown
10437 aix3*|aix4.1.*|aix4.2.*)
10438 # Unknown whether this is true for these versions of AIX, but
10439 # we want this `case' here to explicitly catch those versions.
10440 libltdl_cv_sys_dlopen_deplibs=unknown
10443 libltdl_cv_sys_dlopen_deplibs=yes
10446 # Assuming the user has installed a libdl from somewhere, this is true
10447 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10448 libltdl_cv_sys_dlopen_deplibs=yes
10450 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10451 # GNU and its variants, using gnu ld.so (Glibc)
10452 libltdl_cv_sys_dlopen_deplibs=yes
10455 libltdl_cv_sys_dlopen_deplibs=yes
10458 libltdl_cv_sys_dlopen_deplibs=yes
10460 irix[12345]*|irix6.[01]*)
10461 # Catch all versions of IRIX before 6.2, and indicate that we don't
10462 # know how it worked for any of those versions.
10463 libltdl_cv_sys_dlopen_deplibs=unknown
10466 # The case above catches anything before 6.2, and it's known that
10467 # at 6.2 and later dlopen does load deplibs.
10468 libltdl_cv_sys_dlopen_deplibs=yes
10471 libltdl_cv_sys_dlopen_deplibs=yes
10474 libltdl_cv_sys_dlopen_deplibs=yes
10477 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10478 # it did *not* use an RPATH in a shared library to find objects the
10479 # library depends on, so we explicitly say `no'.
10480 libltdl_cv_sys_dlopen_deplibs=no
10482 osf5.0|osf5.0a|osf5.1)
10483 # dlopen *does* load deplibs and with the right loader patch applied
10484 # it even uses RPATH in a shared library to search for shared objects
10485 # that the library depends on, but there's no easy way to know if that
10486 # patch is installed. Since this is the case, all we can really
10487 # say is unknown -- it depends on the patch being installed. If
10488 # it is, this changes to `yes'. Without it, it would be `no'.
10489 libltdl_cv_sys_dlopen_deplibs=unknown
10492 # the two cases above should catch all versions of osf <= 5.1. Read
10493 # the comments above for what we know about them.
10494 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10495 # is used to find them so we can finally say `yes'.
10496 libltdl_cv_sys_dlopen_deplibs=yes
10499 libltdl_cv_sys_dlopen_deplibs=yes
10501 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10502 libltdl_cv_sys_dlopen_deplibs=yes
10507 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10508 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10509 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10511 cat >>confdefs.h <<\_ACEOF
10512 #define LTDL_DLOPEN_DEPLIBS 1
10518 for ac_header in argz.h
10520 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10522 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10523 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 ac_res=`eval echo '${'$as_ac_Header'}'`
10528 { echo "$as_me:$LINENO: result: $ac_res" >&5
10529 echo "${ECHO_T}$ac_res" >&6; }
10531 # Is the header compilable?
10532 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10533 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10534 cat >conftest.$ac_ext <<_ACEOF
10537 cat confdefs.h >>conftest.$ac_ext
10538 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10540 $ac_includes_default
10541 #include <$ac_header>
10543 rm -f conftest.$ac_objext
10544 if { (ac_try="$ac_compile"
10545 case "(($ac_try" in
10546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_compile") 2>conftest.er1
10552 grep -v '^ *+' conftest.er1 >conftest.err
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } &&
10557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10558 { (case "(($ac_try" in
10559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10560 *) ac_try_echo=$ac_try;;
10562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10563 (eval "$ac_try") 2>&5
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; } &&
10567 { ac_try='test -s conftest.$ac_objext'
10568 { (case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_try") 2>&5
10575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10576 (exit $ac_status); }; }; then
10577 ac_header_compiler=yes
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10582 ac_header_compiler=no
10585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10587 echo "${ECHO_T}$ac_header_compiler" >&6; }
10589 # Is the header present?
10590 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10591 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10592 cat >conftest.$ac_ext <<_ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598 #include <$ac_header>
10600 if { (ac_try="$ac_cpp conftest.$ac_ext"
10601 case "(($ac_try" in
10602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10603 *) ac_try_echo=$ac_try;;
10605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10608 grep -v '^ *+' conftest.er1 >conftest.err
10610 cat conftest.err >&5
10611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10612 (exit $ac_status); } >/dev/null; then
10613 if test -s conftest.err; then
10614 ac_cpp_err=$ac_c_preproc_warn_flag
10615 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10622 if test -z "$ac_cpp_err"; then
10623 ac_header_preproc=yes
10625 echo "$as_me: failed program was:" >&5
10626 sed 's/^/| /' conftest.$ac_ext >&5
10628 ac_header_preproc=no
10631 rm -f conftest.err conftest.$ac_ext
10632 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10633 echo "${ECHO_T}$ac_header_preproc" >&6; }
10635 # So? What about this header?
10636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10638 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10639 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10641 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10642 ac_header_preproc=yes
10645 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10646 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10647 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10648 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10649 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10650 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10651 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10652 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10653 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10654 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10655 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10656 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10658 ## ------------------------------------ ##
10659 ## Report this to http://llvm.org/bugs/ ##
10660 ## ------------------------------------ ##
10662 ) | sed "s/^/$as_me: WARNING: /" >&2
10665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 eval "$as_ac_Header=\$ac_header_preproc"
10672 ac_res=`eval echo '${'$as_ac_Header'}'`
10673 { echo "$as_me:$LINENO: result: $ac_res" >&5
10674 echo "${ECHO_T}$ac_res" >&6; }
10677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10678 cat >>confdefs.h <<_ACEOF
10679 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10687 { echo "$as_me:$LINENO: checking for error_t" >&5
10688 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10689 if test "${ac_cv_type_error_t+set}" = set; then
10690 echo $ECHO_N "(cached) $ECHO_C" >&6
10692 cat >conftest.$ac_ext <<_ACEOF
10695 cat confdefs.h >>conftest.$ac_ext
10696 cat >>conftest.$ac_ext <<_ACEOF
10697 /* end confdefs.h. */
10702 typedef error_t ac__type_new_;
10706 if ((ac__type_new_ *) 0)
10708 if (sizeof (ac__type_new_))
10714 rm -f conftest.$ac_objext
10715 if { (ac_try="$ac_compile"
10716 case "(($ac_try" in
10717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_compile") 2>conftest.er1
10723 grep -v '^ *+' conftest.er1 >conftest.err
10725 cat conftest.err >&5
10726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10727 (exit $ac_status); } &&
10728 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10729 { (case "(($ac_try" in
10730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10731 *) ac_try_echo=$ac_try;;
10733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10734 (eval "$ac_try") 2>&5
10736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10737 (exit $ac_status); }; } &&
10738 { ac_try='test -s conftest.$ac_objext'
10739 { (case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_try") 2>&5
10746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10747 (exit $ac_status); }; }; then
10748 ac_cv_type_error_t=yes
10750 echo "$as_me: failed program was:" >&5
10751 sed 's/^/| /' conftest.$ac_ext >&5
10753 ac_cv_type_error_t=no
10756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10758 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10759 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10760 if test $ac_cv_type_error_t = yes; then
10762 cat >>confdefs.h <<_ACEOF
10763 #define HAVE_ERROR_T 1
10769 cat >>confdefs.h <<\_ACEOF
10770 #define error_t int
10781 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10783 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10784 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10785 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10787 echo $ECHO_N "(cached) $ECHO_C" >&6
10789 cat >conftest.$ac_ext <<_ACEOF
10792 cat confdefs.h >>conftest.$ac_ext
10793 cat >>conftest.$ac_ext <<_ACEOF
10794 /* end confdefs.h. */
10795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10797 #define $ac_func innocuous_$ac_func
10799 /* System header to define __stub macros and hopefully few prototypes,
10800 which can conflict with char $ac_func (); below.
10801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10802 <limits.h> exists even on freestanding compilers. */
10805 # include <limits.h>
10807 # include <assert.h>
10812 /* Override any GCC internal prototype to avoid an error.
10813 Use char because int might match the return type of a GCC
10814 builtin and then its argument prototype would still apply. */
10819 /* The GNU C library defines this for functions which it implements
10820 to always fail with ENOSYS. Some functions are actually named
10821 something starting with __ and the normal name is an alias. */
10822 #if defined __stub_$ac_func || defined __stub___$ac_func
10829 return $ac_func ();
10834 rm -f conftest.$ac_objext conftest$ac_exeext
10835 if { (ac_try="$ac_link"
10836 case "(($ac_try" in
10837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10838 *) ac_try_echo=$ac_try;;
10840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10841 (eval "$ac_link") 2>conftest.er1
10843 grep -v '^ *+' conftest.er1 >conftest.err
10845 cat conftest.err >&5
10846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10847 (exit $ac_status); } &&
10848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10849 { (case "(($ac_try" in
10850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10851 *) ac_try_echo=$ac_try;;
10853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10854 (eval "$ac_try") 2>&5
10856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10857 (exit $ac_status); }; } &&
10858 { ac_try='test -s conftest$ac_exeext'
10859 { (case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10864 (eval "$ac_try") 2>&5
10866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10867 (exit $ac_status); }; }; then
10868 eval "$as_ac_var=yes"
10870 echo "$as_me: failed program was:" >&5
10871 sed 's/^/| /' conftest.$ac_ext >&5
10873 eval "$as_ac_var=no"
10876 rm -f core conftest.err conftest.$ac_objext \
10877 conftest$ac_exeext conftest.$ac_ext
10879 ac_res=`eval echo '${'$as_ac_var'}'`
10880 { echo "$as_me:$LINENO: result: $ac_res" >&5
10881 echo "${ECHO_T}$ac_res" >&6; }
10882 if test `eval echo '${'$as_ac_var'}'` = yes; then
10883 cat >>confdefs.h <<_ACEOF
10884 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10917 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10920 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10924 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10925 echo $ECHO_N "(cached) $ECHO_C" >&6
10927 ac_res=`eval echo '${'$as_ac_Header'}'`
10928 { echo "$as_me:$LINENO: result: $ac_res" >&5
10929 echo "${ECHO_T}$ac_res" >&6; }
10931 # Is the header compilable?
10932 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10933 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10934 cat >conftest.$ac_ext <<_ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10940 $ac_includes_default
10941 #include <$ac_header>
10943 rm -f conftest.$ac_objext
10944 if { (ac_try="$ac_compile"
10945 case "(($ac_try" in
10946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10947 *) ac_try_echo=$ac_try;;
10949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10950 (eval "$ac_compile") 2>conftest.er1
10952 grep -v '^ *+' conftest.er1 >conftest.err
10954 cat conftest.err >&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); } &&
10957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10960 *) ac_try_echo=$ac_try;;
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; } &&
10967 { ac_try='test -s conftest.$ac_objext'
10968 { (case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_try") 2>&5
10975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10976 (exit $ac_status); }; }; then
10977 ac_header_compiler=yes
10979 echo "$as_me: failed program was:" >&5
10980 sed 's/^/| /' conftest.$ac_ext >&5
10982 ac_header_compiler=no
10985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10986 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10987 echo "${ECHO_T}$ac_header_compiler" >&6; }
10989 # Is the header present?
10990 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10991 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10992 cat >conftest.$ac_ext <<_ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 #include <$ac_header>
11000 if { (ac_try="$ac_cpp conftest.$ac_ext"
11001 case "(($ac_try" in
11002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003 *) ac_try_echo=$ac_try;;
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11008 grep -v '^ *+' conftest.er1 >conftest.err
11010 cat conftest.err >&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); } >/dev/null; then
11013 if test -s conftest.err; then
11014 ac_cpp_err=$ac_c_preproc_warn_flag
11015 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11022 if test -z "$ac_cpp_err"; then
11023 ac_header_preproc=yes
11025 echo "$as_me: failed program was:" >&5
11026 sed 's/^/| /' conftest.$ac_ext >&5
11028 ac_header_preproc=no
11031 rm -f conftest.err conftest.$ac_ext
11032 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11033 echo "${ECHO_T}$ac_header_preproc" >&6; }
11035 # So? What about this header?
11036 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11038 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11039 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11041 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11042 ac_header_preproc=yes
11045 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11046 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11047 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11048 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11049 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11050 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11051 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11052 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11053 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11054 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11055 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11056 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11058 ## ------------------------------------ ##
11059 ## Report this to http://llvm.org/bugs/ ##
11060 ## ------------------------------------ ##
11062 ) | sed "s/^/$as_me: WARNING: /" >&2
11065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11068 echo $ECHO_N "(cached) $ECHO_C" >&6
11070 eval "$as_ac_Header=\$ac_header_preproc"
11072 ac_res=`eval echo '${'$as_ac_Header'}'`
11073 { echo "$as_me:$LINENO: result: $ac_res" >&5
11074 echo "${ECHO_T}$ac_res" >&6; }
11077 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11078 cat >>confdefs.h <<_ACEOF
11079 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11090 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 ac_res=`eval echo '${'$as_ac_Header'}'`
11100 { echo "$as_me:$LINENO: result: $ac_res" >&5
11101 echo "${ECHO_T}$ac_res" >&6; }
11103 # Is the header compilable?
11104 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11105 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11106 cat >conftest.$ac_ext <<_ACEOF
11109 cat confdefs.h >>conftest.$ac_ext
11110 cat >>conftest.$ac_ext <<_ACEOF
11111 /* end confdefs.h. */
11112 $ac_includes_default
11113 #include <$ac_header>
11115 rm -f conftest.$ac_objext
11116 if { (ac_try="$ac_compile"
11117 case "(($ac_try" in
11118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11119 *) ac_try_echo=$ac_try;;
11121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11122 (eval "$ac_compile") 2>conftest.er1
11124 grep -v '^ *+' conftest.er1 >conftest.err
11126 cat conftest.err >&5
11127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } &&
11129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11130 { (case "(($ac_try" in
11131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11132 *) ac_try_echo=$ac_try;;
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_try") 2>&5
11137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11138 (exit $ac_status); }; } &&
11139 { ac_try='test -s conftest.$ac_objext'
11140 { (case "(($ac_try" in
11141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11142 *) ac_try_echo=$ac_try;;
11144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11145 (eval "$ac_try") 2>&5
11147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11148 (exit $ac_status); }; }; then
11149 ac_header_compiler=yes
11151 echo "$as_me: failed program was:" >&5
11152 sed 's/^/| /' conftest.$ac_ext >&5
11154 ac_header_compiler=no
11157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11158 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11159 echo "${ECHO_T}$ac_header_compiler" >&6; }
11161 # Is the header present?
11162 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11163 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11164 cat >conftest.$ac_ext <<_ACEOF
11167 cat confdefs.h >>conftest.$ac_ext
11168 cat >>conftest.$ac_ext <<_ACEOF
11169 /* end confdefs.h. */
11170 #include <$ac_header>
11172 if { (ac_try="$ac_cpp conftest.$ac_ext"
11173 case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11180 grep -v '^ *+' conftest.er1 >conftest.err
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } >/dev/null; then
11185 if test -s conftest.err; then
11186 ac_cpp_err=$ac_c_preproc_warn_flag
11187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11194 if test -z "$ac_cpp_err"; then
11195 ac_header_preproc=yes
11197 echo "$as_me: failed program was:" >&5
11198 sed 's/^/| /' conftest.$ac_ext >&5
11200 ac_header_preproc=no
11203 rm -f conftest.err conftest.$ac_ext
11204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11205 echo "${ECHO_T}$ac_header_preproc" >&6; }
11207 # So? What about this header?
11208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11214 ac_header_preproc=yes
11217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11230 ## ------------------------------------ ##
11231 ## Report this to http://llvm.org/bugs/ ##
11232 ## ------------------------------------ ##
11234 ) | sed "s/^/$as_me: WARNING: /" >&2
11237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11240 echo $ECHO_N "(cached) $ECHO_C" >&6
11242 eval "$as_ac_Header=\$ac_header_preproc"
11244 ac_res=`eval echo '${'$as_ac_Header'}'`
11245 { echo "$as_me:$LINENO: result: $ac_res" >&5
11246 echo "${ECHO_T}$ac_res" >&6; }
11249 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11250 cat >>confdefs.h <<_ACEOF
11251 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11260 for ac_header in string.h strings.h
11262 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11267 echo $ECHO_N "(cached) $ECHO_C" >&6
11269 ac_res=`eval echo '${'$as_ac_Header'}'`
11270 { echo "$as_me:$LINENO: result: $ac_res" >&5
11271 echo "${ECHO_T}$ac_res" >&6; }
11273 # Is the header compilable?
11274 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11275 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11276 cat >conftest.$ac_ext <<_ACEOF
11279 cat confdefs.h >>conftest.$ac_ext
11280 cat >>conftest.$ac_ext <<_ACEOF
11281 /* end confdefs.h. */
11282 $ac_includes_default
11283 #include <$ac_header>
11285 rm -f conftest.$ac_objext
11286 if { (ac_try="$ac_compile"
11287 case "(($ac_try" in
11288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11289 *) ac_try_echo=$ac_try;;
11291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11292 (eval "$ac_compile") 2>conftest.er1
11294 grep -v '^ *+' conftest.er1 >conftest.err
11296 cat conftest.err >&5
11297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11298 (exit $ac_status); } &&
11299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11300 { (case "(($ac_try" in
11301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11302 *) ac_try_echo=$ac_try;;
11304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11305 (eval "$ac_try") 2>&5
11307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11308 (exit $ac_status); }; } &&
11309 { ac_try='test -s conftest.$ac_objext'
11310 { (case "(($ac_try" in
11311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11312 *) ac_try_echo=$ac_try;;
11314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11315 (eval "$ac_try") 2>&5
11317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11318 (exit $ac_status); }; }; then
11319 ac_header_compiler=yes
11321 echo "$as_me: failed program was:" >&5
11322 sed 's/^/| /' conftest.$ac_ext >&5
11324 ac_header_compiler=no
11327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11328 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11329 echo "${ECHO_T}$ac_header_compiler" >&6; }
11331 # Is the header present?
11332 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11333 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11334 cat >conftest.$ac_ext <<_ACEOF
11337 cat confdefs.h >>conftest.$ac_ext
11338 cat >>conftest.$ac_ext <<_ACEOF
11339 /* end confdefs.h. */
11340 #include <$ac_header>
11342 if { (ac_try="$ac_cpp conftest.$ac_ext"
11343 case "(($ac_try" in
11344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345 *) ac_try_echo=$ac_try;;
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11350 grep -v '^ *+' conftest.er1 >conftest.err
11352 cat conftest.err >&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } >/dev/null; then
11355 if test -s conftest.err; then
11356 ac_cpp_err=$ac_c_preproc_warn_flag
11357 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11364 if test -z "$ac_cpp_err"; then
11365 ac_header_preproc=yes
11367 echo "$as_me: failed program was:" >&5
11368 sed 's/^/| /' conftest.$ac_ext >&5
11370 ac_header_preproc=no
11373 rm -f conftest.err conftest.$ac_ext
11374 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11375 echo "${ECHO_T}$ac_header_preproc" >&6; }
11377 # So? What about this header?
11378 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11380 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11381 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11383 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11384 ac_header_preproc=yes
11387 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11388 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11389 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11390 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11391 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11392 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11393 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11394 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11395 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11396 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11397 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11398 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11400 ## ------------------------------------ ##
11401 ## Report this to http://llvm.org/bugs/ ##
11402 ## ------------------------------------ ##
11404 ) | sed "s/^/$as_me: WARNING: /" >&2
11407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 eval "$as_ac_Header=\$ac_header_preproc"
11414 ac_res=`eval echo '${'$as_ac_Header'}'`
11415 { echo "$as_me:$LINENO: result: $ac_res" >&5
11416 echo "${ECHO_T}$ac_res" >&6; }
11419 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11420 cat >>confdefs.h <<_ACEOF
11421 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11431 for ac_func in strchr index
11433 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11434 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11435 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11436 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11437 echo $ECHO_N "(cached) $ECHO_C" >&6
11439 cat >conftest.$ac_ext <<_ACEOF
11442 cat confdefs.h >>conftest.$ac_ext
11443 cat >>conftest.$ac_ext <<_ACEOF
11444 /* end confdefs.h. */
11445 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11447 #define $ac_func innocuous_$ac_func
11449 /* System header to define __stub macros and hopefully few prototypes,
11450 which can conflict with char $ac_func (); below.
11451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11452 <limits.h> exists even on freestanding compilers. */
11455 # include <limits.h>
11457 # include <assert.h>
11462 /* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */
11469 /* The GNU C library defines this for functions which it implements
11470 to always fail with ENOSYS. Some functions are actually named
11471 something starting with __ and the normal name is an alias. */
11472 #if defined __stub_$ac_func || defined __stub___$ac_func
11479 return $ac_func ();
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (ac_try="$ac_link"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_link") 2>conftest.er1
11493 grep -v '^ *+' conftest.er1 >conftest.err
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } &&
11498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11499 { (case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_try") 2>&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); }; } &&
11508 { ac_try='test -s conftest$ac_exeext'
11509 { (case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_try") 2>&5
11516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11517 (exit $ac_status); }; }; then
11518 eval "$as_ac_var=yes"
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 eval "$as_ac_var=no"
11526 rm -f core conftest.err conftest.$ac_objext \
11527 conftest$ac_exeext conftest.$ac_ext
11529 ac_res=`eval echo '${'$as_ac_var'}'`
11530 { echo "$as_me:$LINENO: result: $ac_res" >&5
11531 echo "${ECHO_T}$ac_res" >&6; }
11532 if test `eval echo '${'$as_ac_var'}'` = yes; then
11533 cat >>confdefs.h <<_ACEOF
11534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11542 for ac_func in strrchr rindex
11544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 cat >conftest.$ac_ext <<_ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
11555 /* end confdefs.h. */
11556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11558 #define $ac_func innocuous_$ac_func
11560 /* System header to define __stub macros and hopefully few prototypes,
11561 which can conflict with char $ac_func (); below.
11562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11563 <limits.h> exists even on freestanding compilers. */
11566 # include <limits.h>
11568 # include <assert.h>
11573 /* Override any GCC internal prototype to avoid an error.
11574 Use char because int might match the return type of a GCC
11575 builtin and then its argument prototype would still apply. */
11580 /* The GNU C library defines this for functions which it implements
11581 to always fail with ENOSYS. Some functions are actually named
11582 something starting with __ and the normal name is an alias. */
11583 #if defined __stub_$ac_func || defined __stub___$ac_func
11590 return $ac_func ();
11595 rm -f conftest.$ac_objext conftest$ac_exeext
11596 if { (ac_try="$ac_link"
11597 case "(($ac_try" in
11598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11599 *) ac_try_echo=$ac_try;;
11601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11602 (eval "$ac_link") 2>conftest.er1
11604 grep -v '^ *+' conftest.er1 >conftest.err
11606 cat conftest.err >&5
11607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11608 (exit $ac_status); } &&
11609 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11610 { (case "(($ac_try" in
11611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_try") 2>&5
11617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11618 (exit $ac_status); }; } &&
11619 { ac_try='test -s conftest$ac_exeext'
11620 { (case "(($ac_try" in
11621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11622 *) ac_try_echo=$ac_try;;
11624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11625 (eval "$ac_try") 2>&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); }; }; then
11629 eval "$as_ac_var=yes"
11631 echo "$as_me: failed program was:" >&5
11632 sed 's/^/| /' conftest.$ac_ext >&5
11634 eval "$as_ac_var=no"
11637 rm -f core conftest.err conftest.$ac_objext \
11638 conftest$ac_exeext conftest.$ac_ext
11640 ac_res=`eval echo '${'$as_ac_var'}'`
11641 { echo "$as_me:$LINENO: result: $ac_res" >&5
11642 echo "${ECHO_T}$ac_res" >&6; }
11643 if test `eval echo '${'$as_ac_var'}'` = yes; then
11644 cat >>confdefs.h <<_ACEOF
11645 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11653 for ac_func in memcpy bcopy
11655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11661 cat >conftest.$ac_ext <<_ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11669 #define $ac_func innocuous_$ac_func
11671 /* System header to define __stub macros and hopefully few prototypes,
11672 which can conflict with char $ac_func (); below.
11673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11674 <limits.h> exists even on freestanding compilers. */
11677 # include <limits.h>
11679 # include <assert.h>
11684 /* Override any GCC internal prototype to avoid an error.
11685 Use char because int might match the return type of a GCC
11686 builtin and then its argument prototype would still apply. */
11691 /* The GNU C library defines this for functions which it implements
11692 to always fail with ENOSYS. Some functions are actually named
11693 something starting with __ and the normal name is an alias. */
11694 #if defined __stub_$ac_func || defined __stub___$ac_func
11701 return $ac_func ();
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (ac_try="$ac_link"
11708 case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713 (eval "$ac_link") 2>conftest.er1
11715 grep -v '^ *+' conftest.er1 >conftest.err
11717 cat conftest.err >&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } &&
11720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11721 { (case "(($ac_try" in
11722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11723 *) ac_try_echo=$ac_try;;
11725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11726 (eval "$ac_try") 2>&5
11728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11729 (exit $ac_status); }; } &&
11730 { ac_try='test -s conftest$ac_exeext'
11731 { (case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 (eval "$ac_try") 2>&5
11738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11739 (exit $ac_status); }; }; then
11740 eval "$as_ac_var=yes"
11742 echo "$as_me: failed program was:" >&5
11743 sed 's/^/| /' conftest.$ac_ext >&5
11745 eval "$as_ac_var=no"
11748 rm -f core conftest.err conftest.$ac_objext \
11749 conftest$ac_exeext conftest.$ac_ext
11751 ac_res=`eval echo '${'$as_ac_var'}'`
11752 { echo "$as_me:$LINENO: result: $ac_res" >&5
11753 echo "${ECHO_T}$ac_res" >&6; }
11754 if test `eval echo '${'$as_ac_var'}'` = yes; then
11755 cat >>confdefs.h <<_ACEOF
11756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11764 for ac_func in memmove strcmp
11766 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11767 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11768 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11769 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11770 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 cat >conftest.$ac_ext <<_ACEOF
11775 cat confdefs.h >>conftest.$ac_ext
11776 cat >>conftest.$ac_ext <<_ACEOF
11777 /* end confdefs.h. */
11778 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11779 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11780 #define $ac_func innocuous_$ac_func
11782 /* System header to define __stub macros and hopefully few prototypes,
11783 which can conflict with char $ac_func (); below.
11784 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11785 <limits.h> exists even on freestanding compilers. */
11788 # include <limits.h>
11790 # include <assert.h>
11795 /* Override any GCC internal prototype to avoid an error.
11796 Use char because int might match the return type of a GCC
11797 builtin and then its argument prototype would still apply. */
11802 /* The GNU C library defines this for functions which it implements
11803 to always fail with ENOSYS. Some functions are actually named
11804 something starting with __ and the normal name is an alias. */
11805 #if defined __stub_$ac_func || defined __stub___$ac_func
11812 return $ac_func ();
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (ac_try="$ac_link"
11819 case "(($ac_try" in
11820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11821 *) ac_try_echo=$ac_try;;
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_link") 2>conftest.er1
11826 grep -v '^ *+' conftest.er1 >conftest.err
11828 cat conftest.err >&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } &&
11831 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11832 { (case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_try") 2>&5
11839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11840 (exit $ac_status); }; } &&
11841 { ac_try='test -s conftest$ac_exeext'
11842 { (case "(($ac_try" in
11843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844 *) ac_try_echo=$ac_try;;
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847 (eval "$ac_try") 2>&5
11849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11850 (exit $ac_status); }; }; then
11851 eval "$as_ac_var=yes"
11853 echo "$as_me: failed program was:" >&5
11854 sed 's/^/| /' conftest.$ac_ext >&5
11856 eval "$as_ac_var=no"
11859 rm -f core conftest.err conftest.$ac_objext \
11860 conftest$ac_exeext conftest.$ac_ext
11862 ac_res=`eval echo '${'$as_ac_var'}'`
11863 { echo "$as_me:$LINENO: result: $ac_res" >&5
11864 echo "${ECHO_T}$ac_res" >&6; }
11865 if test `eval echo '${'$as_ac_var'}'` = yes; then
11866 cat >>confdefs.h <<_ACEOF
11867 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11876 for ac_func in closedir opendir readdir
11878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11882 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 cat >conftest.$ac_ext <<_ACEOF
11887 cat confdefs.h >>conftest.$ac_ext
11888 cat >>conftest.$ac_ext <<_ACEOF
11889 /* end confdefs.h. */
11890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11892 #define $ac_func innocuous_$ac_func
11894 /* System header to define __stub macros and hopefully few prototypes,
11895 which can conflict with char $ac_func (); below.
11896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11897 <limits.h> exists even on freestanding compilers. */
11900 # include <limits.h>
11902 # include <assert.h>
11907 /* Override any GCC internal prototype to avoid an error.
11908 Use char because int might match the return type of a GCC
11909 builtin and then its argument prototype would still apply. */
11914 /* The GNU C library defines this for functions which it implements
11915 to always fail with ENOSYS. Some functions are actually named
11916 something starting with __ and the normal name is an alias. */
11917 #if defined __stub_$ac_func || defined __stub___$ac_func
11924 return $ac_func ();
11929 rm -f conftest.$ac_objext conftest$ac_exeext
11930 if { (ac_try="$ac_link"
11931 case "(($ac_try" in
11932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11933 *) ac_try_echo=$ac_try;;
11935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11936 (eval "$ac_link") 2>conftest.er1
11938 grep -v '^ *+' conftest.er1 >conftest.err
11940 cat conftest.err >&5
11941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11942 (exit $ac_status); } &&
11943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11944 { (case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_try") 2>&5
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; } &&
11953 { ac_try='test -s conftest$ac_exeext'
11954 { (case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_try") 2>&5
11961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11962 (exit $ac_status); }; }; then
11963 eval "$as_ac_var=yes"
11965 echo "$as_me: failed program was:" >&5
11966 sed 's/^/| /' conftest.$ac_ext >&5
11968 eval "$as_ac_var=no"
11971 rm -f core conftest.err conftest.$ac_objext \
11972 conftest$ac_exeext conftest.$ac_ext
11974 ac_res=`eval echo '${'$as_ac_var'}'`
11975 { echo "$as_me:$LINENO: result: $ac_res" >&5
11976 echo "${ECHO_T}$ac_res" >&6; }
11977 if test `eval echo '${'$as_ac_var'}'` = yes; then
11978 cat >>confdefs.h <<_ACEOF
11979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11987 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11988 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12001 if test "$GCC" != "yes" && test "$ICC" != "yes"
12003 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12004 echo "$as_me: error: gcc|icc required but not found" >&2;}
12005 { (exit 1); exit 1; }; }
12008 if test "$GXX" != "yes" && test "$IXX" != "yes"
12010 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12011 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12012 { (exit 1); exit 1; }; }
12015 if test "$GCC" = "yes"
12017 cat >conftest.$ac_ext <<_ACEOF
12018 #if !defined(__GNUC__) || __GNUC__ < 3
12019 #error Unsupported GCC version
12023 rm -f conftest.$ac_objext
12024 if { (ac_try="$ac_compile"
12025 case "(($ac_try" in
12026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12027 *) ac_try_echo=$ac_try;;
12029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12030 (eval "$ac_compile") 2>conftest.er1
12032 grep -v '^ *+' conftest.er1 >conftest.err
12034 cat conftest.err >&5
12035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12036 (exit $ac_status); } &&
12037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12038 { (case "(($ac_try" in
12039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12040 *) ac_try_echo=$ac_try;;
12042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12043 (eval "$ac_try") 2>&5
12045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12046 (exit $ac_status); }; } &&
12047 { ac_try='test -s conftest.$ac_objext'
12048 { (case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_try") 2>&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); }; }; then
12059 echo "$as_me: failed program was:" >&5
12060 sed 's/^/| /' conftest.$ac_ext >&5
12062 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12063 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12064 { (exit 1); exit 1; }; }
12067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 if test -z "$llvm_cv_gnu_make_command"
12072 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12073 echo "$as_me: error: GNU Make required but not found" >&2;}
12074 { (exit 1); exit 1; }; }
12077 { echo "$as_me:$LINENO: result: ok" >&5
12078 echo "${ECHO_T}ok" >&6; }
12080 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12081 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12082 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12084 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12086 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12088 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12089 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12093 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12094 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12095 if test "${ac_cv_lib_m_sin+set}" = set; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12098 ac_check_lib_save_LIBS=$LIBS
12100 cat >conftest.$ac_ext <<_ACEOF
12103 cat confdefs.h >>conftest.$ac_ext
12104 cat >>conftest.$ac_ext <<_ACEOF
12105 /* end confdefs.h. */
12107 /* Override any GCC internal prototype to avoid an error.
12108 Use char because int might match the return type of a GCC
12109 builtin and then its argument prototype would still apply. */
12122 rm -f conftest.$ac_objext conftest$ac_exeext
12123 if { (ac_try="$ac_link"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_link") 2>conftest.er1
12131 grep -v '^ *+' conftest.er1 >conftest.err
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } &&
12136 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; } &&
12146 { ac_try='test -s conftest$ac_exeext'
12147 { (case "(($ac_try" in
12148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12149 *) ac_try_echo=$ac_try;;
12151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12152 (eval "$ac_try") 2>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); }; }; then
12156 ac_cv_lib_m_sin=yes
12158 echo "$as_me: failed program was:" >&5
12159 sed 's/^/| /' conftest.$ac_ext >&5
12164 rm -f core conftest.err conftest.$ac_objext \
12165 conftest$ac_exeext conftest.$ac_ext
12166 LIBS=$ac_check_lib_save_LIBS
12168 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12169 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12170 if test $ac_cv_lib_m_sin = yes; then
12171 cat >>confdefs.h <<_ACEOF
12172 #define HAVE_LIBM 1
12179 if test "$llvm_cv_os_type" = "MingW" ; then
12181 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12182 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12183 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12186 ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-limagehlp $LIBS"
12188 cat >conftest.$ac_ext <<_ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12204 rm -f conftest.$ac_objext conftest$ac_exeext
12205 if { (ac_try="$ac_link"
12206 case "(($ac_try" in
12207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12208 *) ac_try_echo=$ac_try;;
12210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12211 (eval "$ac_link") 2>conftest.er1
12213 grep -v '^ *+' conftest.er1 >conftest.err
12215 cat conftest.err >&5
12216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12217 (exit $ac_status); } &&
12218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12219 { (case "(($ac_try" in
12220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12221 *) ac_try_echo=$ac_try;;
12223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12224 (eval "$ac_try") 2>&5
12226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12227 (exit $ac_status); }; } &&
12228 { ac_try='test -s conftest$ac_exeext'
12229 { (case "(($ac_try" in
12230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12231 *) ac_try_echo=$ac_try;;
12233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12234 (eval "$ac_try") 2>&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); }; }; then
12238 ac_cv_lib_imagehlp_main=yes
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 ac_cv_lib_imagehlp_main=no
12246 rm -f core conftest.err conftest.$ac_objext \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12250 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12251 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12252 if test $ac_cv_lib_imagehlp_main = yes; then
12253 cat >>confdefs.h <<_ACEOF
12254 #define HAVE_LIBIMAGEHLP 1
12257 LIBS="-limagehlp $LIBS"
12262 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12263 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12264 if test "${ac_cv_lib_psapi_main+set}" = set; then
12265 echo $ECHO_N "(cached) $ECHO_C" >&6
12267 ac_check_lib_save_LIBS=$LIBS
12268 LIBS="-lpsapi $LIBS"
12269 cat >conftest.$ac_ext <<_ACEOF
12272 cat confdefs.h >>conftest.$ac_ext
12273 cat >>conftest.$ac_ext <<_ACEOF
12274 /* end confdefs.h. */
12285 rm -f conftest.$ac_objext conftest$ac_exeext
12286 if { (ac_try="$ac_link"
12287 case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_link") 2>conftest.er1
12294 grep -v '^ *+' conftest.er1 >conftest.err
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } &&
12299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12300 { (case "(($ac_try" in
12301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12302 *) ac_try_echo=$ac_try;;
12304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12305 (eval "$ac_try") 2>&5
12307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); }; } &&
12309 { ac_try='test -s conftest$ac_exeext'
12310 { (case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12315 (eval "$ac_try") 2>&5
12317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12318 (exit $ac_status); }; }; then
12319 ac_cv_lib_psapi_main=yes
12321 echo "$as_me: failed program was:" >&5
12322 sed 's/^/| /' conftest.$ac_ext >&5
12324 ac_cv_lib_psapi_main=no
12327 rm -f core conftest.err conftest.$ac_objext \
12328 conftest$ac_exeext conftest.$ac_ext
12329 LIBS=$ac_check_lib_save_LIBS
12331 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12332 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12333 if test $ac_cv_lib_psapi_main = yes; then
12334 cat >>confdefs.h <<_ACEOF
12335 #define HAVE_LIBPSAPI 1
12338 LIBS="-lpsapi $LIBS"
12344 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12345 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12346 if test "${ac_cv_search_dlopen+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12349 ac_func_search_save_LIBS=$LIBS
12350 cat >conftest.$ac_ext <<_ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12357 /* Override any GCC internal prototype to avoid an error.
12358 Use char because int might match the return type of a GCC
12359 builtin and then its argument prototype would still apply. */
12372 for ac_lib in '' dl; do
12373 if test -z "$ac_lib"; then
12374 ac_res="none required"
12377 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12379 rm -f conftest.$ac_objext conftest$ac_exeext
12380 if { (ac_try="$ac_link"
12381 case "(($ac_try" in
12382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12383 *) ac_try_echo=$ac_try;;
12385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12386 (eval "$ac_link") 2>conftest.er1
12388 grep -v '^ *+' conftest.er1 >conftest.err
12390 cat conftest.err >&5
12391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12392 (exit $ac_status); } &&
12393 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12394 { (case "(($ac_try" in
12395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12396 *) ac_try_echo=$ac_try;;
12398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12399 (eval "$ac_try") 2>&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); }; } &&
12403 { ac_try='test -s conftest$ac_exeext'
12404 { (case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_try") 2>&5
12411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12412 (exit $ac_status); }; }; then
12413 ac_cv_search_dlopen=$ac_res
12415 echo "$as_me: failed program was:" >&5
12416 sed 's/^/| /' conftest.$ac_ext >&5
12421 rm -f core conftest.err conftest.$ac_objext \
12423 if test "${ac_cv_search_dlopen+set}" = set; then
12427 if test "${ac_cv_search_dlopen+set}" = set; then
12430 ac_cv_search_dlopen=no
12432 rm conftest.$ac_ext
12433 LIBS=$ac_func_search_save_LIBS
12435 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12436 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12437 ac_res=$ac_cv_search_dlopen
12438 if test "$ac_res" != no; then
12439 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12441 cat >>confdefs.h <<\_ACEOF
12442 #define HAVE_DLOPEN 1
12446 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12447 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12451 if test "$llvm_cv_enable_libffi" = "yes" ; then
12452 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12453 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12454 if test "${ac_cv_search_ffi_call+set}" = set; then
12455 echo $ECHO_N "(cached) $ECHO_C" >&6
12457 ac_func_search_save_LIBS=$LIBS
12458 cat >conftest.$ac_ext <<_ACEOF
12461 cat confdefs.h >>conftest.$ac_ext
12462 cat >>conftest.$ac_ext <<_ACEOF
12463 /* end confdefs.h. */
12465 /* Override any GCC internal prototype to avoid an error.
12466 Use char because int might match the return type of a GCC
12467 builtin and then its argument prototype would still apply. */
12475 return ffi_call ();
12480 for ac_lib in '' ffi; do
12481 if test -z "$ac_lib"; then
12482 ac_res="none required"
12485 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (ac_try="$ac_link"
12489 case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_link") 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12502 { (case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_try") 2>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest$ac_exeext'
12512 { (case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_try") 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 ac_cv_search_ffi_call=$ac_res
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12529 rm -f core conftest.err conftest.$ac_objext \
12531 if test "${ac_cv_search_ffi_call+set}" = set; then
12535 if test "${ac_cv_search_ffi_call+set}" = set; then
12538 ac_cv_search_ffi_call=no
12540 rm conftest.$ac_ext
12541 LIBS=$ac_func_search_save_LIBS
12543 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12544 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12545 ac_res=$ac_cv_search_ffi_call
12546 if test "$ac_res" != no; then
12547 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12549 cat >>confdefs.h <<\_ACEOF
12550 #define HAVE_FFI_CALL 1
12554 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12555 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12556 { (exit 1); exit 1; }; }
12561 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12562 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12563 if test "${ac_cv_search_mallinfo+set}" = set; then
12564 echo $ECHO_N "(cached) $ECHO_C" >&6
12566 ac_func_search_save_LIBS=$LIBS
12567 cat >conftest.$ac_ext <<_ACEOF
12570 cat confdefs.h >>conftest.$ac_ext
12571 cat >>conftest.$ac_ext <<_ACEOF
12572 /* end confdefs.h. */
12574 /* Override any GCC internal prototype to avoid an error.
12575 Use char because int might match the return type of a GCC
12576 builtin and then its argument prototype would still apply. */
12584 return mallinfo ();
12589 for ac_lib in '' malloc; do
12590 if test -z "$ac_lib"; then
12591 ac_res="none required"
12594 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12596 rm -f conftest.$ac_objext conftest$ac_exeext
12597 if { (ac_try="$ac_link"
12598 case "(($ac_try" in
12599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12600 *) ac_try_echo=$ac_try;;
12602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12603 (eval "$ac_link") 2>conftest.er1
12605 grep -v '^ *+' conftest.er1 >conftest.err
12607 cat conftest.err >&5
12608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12609 (exit $ac_status); } &&
12610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12611 { (case "(($ac_try" in
12612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12613 *) ac_try_echo=$ac_try;;
12615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12616 (eval "$ac_try") 2>&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); }; } &&
12620 { ac_try='test -s conftest$ac_exeext'
12621 { (case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_try") 2>&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); }; }; then
12630 ac_cv_search_mallinfo=$ac_res
12632 echo "$as_me: failed program was:" >&5
12633 sed 's/^/| /' conftest.$ac_ext >&5
12638 rm -f core conftest.err conftest.$ac_objext \
12640 if test "${ac_cv_search_mallinfo+set}" = set; then
12644 if test "${ac_cv_search_mallinfo+set}" = set; then
12647 ac_cv_search_mallinfo=no
12649 rm conftest.$ac_ext
12650 LIBS=$ac_func_search_save_LIBS
12652 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12653 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12654 ac_res=$ac_cv_search_mallinfo
12655 if test "$ac_res" != no; then
12656 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12658 cat >>confdefs.h <<\_ACEOF
12659 #define HAVE_MALLINFO 1
12665 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12667 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12668 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12669 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12670 echo $ECHO_N "(cached) $ECHO_C" >&6
12672 ac_check_lib_save_LIBS=$LIBS
12673 LIBS="-lpthread $LIBS"
12674 cat >conftest.$ac_ext <<_ACEOF
12677 cat confdefs.h >>conftest.$ac_ext
12678 cat >>conftest.$ac_ext <<_ACEOF
12679 /* end confdefs.h. */
12681 /* Override any GCC internal prototype to avoid an error.
12682 Use char because int might match the return type of a GCC
12683 builtin and then its argument prototype would still apply. */
12687 char pthread_mutex_init ();
12691 return pthread_mutex_init ();
12696 rm -f conftest.$ac_objext conftest$ac_exeext
12697 if { (ac_try="$ac_link"
12698 case "(($ac_try" in
12699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12700 *) ac_try_echo=$ac_try;;
12702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12703 (eval "$ac_link") 2>conftest.er1
12705 grep -v '^ *+' conftest.er1 >conftest.err
12707 cat conftest.err >&5
12708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12709 (exit $ac_status); } &&
12710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12711 { (case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_try") 2>&5
12718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12719 (exit $ac_status); }; } &&
12720 { ac_try='test -s conftest$ac_exeext'
12721 { (case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_try") 2>&5
12728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12729 (exit $ac_status); }; }; then
12730 ac_cv_lib_pthread_pthread_mutex_init=yes
12732 echo "$as_me: failed program was:" >&5
12733 sed 's/^/| /' conftest.$ac_ext >&5
12735 ac_cv_lib_pthread_pthread_mutex_init=no
12738 rm -f core conftest.err conftest.$ac_objext \
12739 conftest$ac_exeext conftest.$ac_ext
12740 LIBS=$ac_check_lib_save_LIBS
12742 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12743 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12744 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12745 cat >>confdefs.h <<_ACEOF
12746 #define HAVE_LIBPTHREAD 1
12749 LIBS="-lpthread $LIBS"
12753 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12754 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12755 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12756 echo $ECHO_N "(cached) $ECHO_C" >&6
12758 ac_func_search_save_LIBS=$LIBS
12759 cat >conftest.$ac_ext <<_ACEOF
12762 cat confdefs.h >>conftest.$ac_ext
12763 cat >>conftest.$ac_ext <<_ACEOF
12764 /* end confdefs.h. */
12766 /* Override any GCC internal prototype to avoid an error.
12767 Use char because int might match the return type of a GCC
12768 builtin and then its argument prototype would still apply. */
12772 char pthread_mutex_lock ();
12776 return pthread_mutex_lock ();
12781 for ac_lib in '' pthread; do
12782 if test -z "$ac_lib"; then
12783 ac_res="none required"
12786 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12788 rm -f conftest.$ac_objext conftest$ac_exeext
12789 if { (ac_try="$ac_link"
12790 case "(($ac_try" in
12791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_link") 2>conftest.er1
12797 grep -v '^ *+' conftest.er1 >conftest.err
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } &&
12802 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12803 { (case "(($ac_try" in
12804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12805 *) ac_try_echo=$ac_try;;
12807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12808 (eval "$ac_try") 2>&5
12810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12811 (exit $ac_status); }; } &&
12812 { ac_try='test -s conftest$ac_exeext'
12813 { (case "(($ac_try" in
12814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12815 *) ac_try_echo=$ac_try;;
12817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12818 (eval "$ac_try") 2>&5
12820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12821 (exit $ac_status); }; }; then
12822 ac_cv_search_pthread_mutex_lock=$ac_res
12824 echo "$as_me: failed program was:" >&5
12825 sed 's/^/| /' conftest.$ac_ext >&5
12830 rm -f core conftest.err conftest.$ac_objext \
12832 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12836 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12839 ac_cv_search_pthread_mutex_lock=no
12841 rm conftest.$ac_ext
12842 LIBS=$ac_func_search_save_LIBS
12844 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12845 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12846 ac_res=$ac_cv_search_pthread_mutex_lock
12847 if test "$ac_res" != no; then
12848 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12850 cat >>confdefs.h <<\_ACEOF
12851 #define HAVE_PTHREAD_MUTEX_LOCK 1
12856 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12857 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12858 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12859 echo $ECHO_N "(cached) $ECHO_C" >&6
12861 ac_func_search_save_LIBS=$LIBS
12862 cat >conftest.$ac_ext <<_ACEOF
12865 cat confdefs.h >>conftest.$ac_ext
12866 cat >>conftest.$ac_ext <<_ACEOF
12867 /* end confdefs.h. */
12869 /* Override any GCC internal prototype to avoid an error.
12870 Use char because int might match the return type of a GCC
12871 builtin and then its argument prototype would still apply. */
12875 char pthread_rwlock_init ();
12879 return pthread_rwlock_init ();
12884 for ac_lib in '' pthread; do
12885 if test -z "$ac_lib"; then
12886 ac_res="none required"
12889 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12891 rm -f conftest.$ac_objext conftest$ac_exeext
12892 if { (ac_try="$ac_link"
12893 case "(($ac_try" in
12894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12895 *) ac_try_echo=$ac_try;;
12897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12898 (eval "$ac_link") 2>conftest.er1
12900 grep -v '^ *+' conftest.er1 >conftest.err
12902 cat conftest.err >&5
12903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12904 (exit $ac_status); } &&
12905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12906 { (case "(($ac_try" in
12907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12908 *) ac_try_echo=$ac_try;;
12910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12911 (eval "$ac_try") 2>&5
12913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12914 (exit $ac_status); }; } &&
12915 { ac_try='test -s conftest$ac_exeext'
12916 { (case "(($ac_try" in
12917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12918 *) ac_try_echo=$ac_try;;
12920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12921 (eval "$ac_try") 2>&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); }; }; then
12925 ac_cv_search_pthread_rwlock_init=$ac_res
12927 echo "$as_me: failed program was:" >&5
12928 sed 's/^/| /' conftest.$ac_ext >&5
12933 rm -f core conftest.err conftest.$ac_objext \
12935 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12939 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12942 ac_cv_search_pthread_rwlock_init=no
12944 rm conftest.$ac_ext
12945 LIBS=$ac_func_search_save_LIBS
12947 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12948 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12949 ac_res=$ac_cv_search_pthread_rwlock_init
12950 if test "$ac_res" != no; then
12951 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12953 cat >>confdefs.h <<\_ACEOF
12954 #define HAVE_PTHREAD_RWLOCK_INIT 1
12959 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12960 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12961 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12962 echo $ECHO_N "(cached) $ECHO_C" >&6
12964 ac_func_search_save_LIBS=$LIBS
12965 cat >conftest.$ac_ext <<_ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12972 /* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12978 char pthread_getspecific ();
12982 return pthread_getspecific ();
12987 for ac_lib in '' pthread; do
12988 if test -z "$ac_lib"; then
12989 ac_res="none required"
12992 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12994 rm -f conftest.$ac_objext conftest$ac_exeext
12995 if { (ac_try="$ac_link"
12996 case "(($ac_try" in
12997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_link") 2>conftest.er1
13003 grep -v '^ *+' conftest.er1 >conftest.err
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } &&
13008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13009 { (case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try='test -s conftest$ac_exeext'
13019 { (case "(($ac_try" in
13020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_try") 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 ac_cv_search_pthread_getspecific=$ac_res
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13036 rm -f core conftest.err conftest.$ac_objext \
13038 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13042 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13045 ac_cv_search_pthread_getspecific=no
13047 rm conftest.$ac_ext
13048 LIBS=$ac_func_search_save_LIBS
13050 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13051 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13052 ac_res=$ac_cv_search_pthread_getspecific
13053 if test "$ac_res" != no; then
13054 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13056 cat >>confdefs.h <<\_ACEOF
13057 #define HAVE_PTHREAD_GETSPECIFIC 1
13065 # Check whether --with-udis86 was given.
13066 if test "${with_udis86+set}" = set; then
13067 withval=$with_udis86;
13072 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13075 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13076 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13077 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13078 echo $ECHO_N "(cached) $ECHO_C" >&6
13080 ac_check_lib_save_LIBS=$LIBS
13081 LIBS="-ludis86 $LIBS"
13082 cat >conftest.$ac_ext <<_ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13089 /* Override any GCC internal prototype to avoid an error.
13090 Use char because int might match the return type of a GCC
13091 builtin and then its argument prototype would still apply. */
13104 rm -f conftest.$ac_objext conftest$ac_exeext
13105 if { (ac_try="$ac_link"
13106 case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_link") 2>conftest.er1
13113 grep -v '^ *+' conftest.er1 >conftest.err
13115 cat conftest.err >&5
13116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); } &&
13118 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13119 { (case "(($ac_try" in
13120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13121 *) ac_try_echo=$ac_try;;
13123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13124 (eval "$ac_try") 2>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); }; } &&
13128 { ac_try='test -s conftest$ac_exeext'
13129 { (case "(($ac_try" in
13130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13131 *) ac_try_echo=$ac_try;;
13133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13134 (eval "$ac_try") 2>&5
13136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13137 (exit $ac_status); }; }; then
13138 ac_cv_lib_udis86_ud_init=yes
13140 echo "$as_me: failed program was:" >&5
13141 sed 's/^/| /' conftest.$ac_ext >&5
13143 ac_cv_lib_udis86_ud_init=no
13146 rm -f core conftest.err conftest.$ac_objext \
13147 conftest$ac_exeext conftest.$ac_ext
13148 LIBS=$ac_check_lib_save_LIBS
13150 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13151 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13152 if test $ac_cv_lib_udis86_ud_init = yes; then
13153 cat >>confdefs.h <<_ACEOF
13154 #define HAVE_LIBUDIS86 1
13157 LIBS="-ludis86 $LIBS"
13161 echo "Error! You need to have libudis86 around."
13173 cat >>confdefs.h <<_ACEOF
13174 #define USE_UDIS86 $USE_UDIS86
13179 # Check whether --with-oprofile was given.
13180 if test "${with_oprofile+set}" = set; then
13181 withval=$with_oprofile;
13185 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13186 no) llvm_cv_oppath=
13189 *) llvm_cv_oppath="${withval}/lib/oprofile"
13190 CPPFLAGS="-I${withval}/include";;
13192 case $llvm_cv_os_type in
13194 if test -n "$llvm_cv_oppath" ; then
13195 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13196 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13197 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13198 if test "${ac_cv_search_bfd_init+set}" = set; then
13199 echo $ECHO_N "(cached) $ECHO_C" >&6
13201 ac_func_search_save_LIBS=$LIBS
13202 cat >conftest.$ac_ext <<_ACEOF
13205 cat confdefs.h >>conftest.$ac_ext
13206 cat >>conftest.$ac_ext <<_ACEOF
13207 /* end confdefs.h. */
13209 /* Override any GCC internal prototype to avoid an error.
13210 Use char because int might match the return type of a GCC
13211 builtin and then its argument prototype would still apply. */
13219 return bfd_init ();
13224 for ac_lib in '' bfd; do
13225 if test -z "$ac_lib"; then
13226 ac_res="none required"
13229 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13231 rm -f conftest.$ac_objext conftest$ac_exeext
13232 if { (ac_try="$ac_link"
13233 case "(($ac_try" in
13234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13235 *) ac_try_echo=$ac_try;;
13237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13238 (eval "$ac_link") 2>conftest.er1
13240 grep -v '^ *+' conftest.er1 >conftest.err
13242 cat conftest.err >&5
13243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13244 (exit $ac_status); } &&
13245 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13246 { (case "(($ac_try" in
13247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_try") 2>&5
13253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13254 (exit $ac_status); }; } &&
13255 { ac_try='test -s conftest$ac_exeext'
13256 { (case "(($ac_try" in
13257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13258 *) ac_try_echo=$ac_try;;
13260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13261 (eval "$ac_try") 2>&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); }; }; then
13265 ac_cv_search_bfd_init=$ac_res
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13273 rm -f core conftest.err conftest.$ac_objext \
13275 if test "${ac_cv_search_bfd_init+set}" = set; then
13279 if test "${ac_cv_search_bfd_init+set}" = set; then
13282 ac_cv_search_bfd_init=no
13284 rm conftest.$ac_ext
13285 LIBS=$ac_func_search_save_LIBS
13287 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13288 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13289 ac_res=$ac_cv_search_bfd_init
13290 if test "$ac_res" != no; then
13291 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13295 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13296 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13297 if test "${ac_cv_search_op_open_agent+set}" = set; then
13298 echo $ECHO_N "(cached) $ECHO_C" >&6
13300 ac_func_search_save_LIBS=$LIBS
13301 cat >conftest.$ac_ext <<_ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13308 /* Override any GCC internal prototype to avoid an error.
13309 Use char because int might match the return type of a GCC
13310 builtin and then its argument prototype would still apply. */
13314 char op_open_agent ();
13318 return op_open_agent ();
13323 for ac_lib in '' opagent; do
13324 if test -z "$ac_lib"; then
13325 ac_res="none required"
13328 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13330 rm -f conftest.$ac_objext conftest$ac_exeext
13331 if { (ac_try="$ac_link"
13332 case "(($ac_try" in
13333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13334 *) ac_try_echo=$ac_try;;
13336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13337 (eval "$ac_link") 2>conftest.er1
13339 grep -v '^ *+' conftest.er1 >conftest.err
13341 cat conftest.err >&5
13342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13343 (exit $ac_status); } &&
13344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13345 { (case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_try") 2>&5
13352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); }; } &&
13354 { ac_try='test -s conftest$ac_exeext'
13355 { (case "(($ac_try" in
13356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13357 *) ac_try_echo=$ac_try;;
13359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13360 (eval "$ac_try") 2>&5
13362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13363 (exit $ac_status); }; }; then
13364 ac_cv_search_op_open_agent=$ac_res
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13372 rm -f core conftest.err conftest.$ac_objext \
13374 if test "${ac_cv_search_op_open_agent+set}" = set; then
13378 if test "${ac_cv_search_op_open_agent+set}" = set; then
13381 ac_cv_search_op_open_agent=no
13383 rm conftest.$ac_ext
13384 LIBS=$ac_func_search_save_LIBS
13386 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13387 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13388 ac_res=$ac_cv_search_op_open_agent
13389 if test "$ac_res" != no; then
13390 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13394 echo "Error! You need to have libopagent around."
13399 if test "${ac_cv_header_opagent_h+set}" = set; then
13400 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13401 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13402 if test "${ac_cv_header_opagent_h+set}" = set; then
13403 echo $ECHO_N "(cached) $ECHO_C" >&6
13405 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13406 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13408 # Is the header compilable?
13409 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13410 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13411 cat >conftest.$ac_ext <<_ACEOF
13414 cat confdefs.h >>conftest.$ac_ext
13415 cat >>conftest.$ac_ext <<_ACEOF
13416 /* end confdefs.h. */
13417 $ac_includes_default
13418 #include <opagent.h>
13420 rm -f conftest.$ac_objext
13421 if { (ac_try="$ac_compile"
13422 case "(($ac_try" in
13423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_compile") 2>conftest.er1
13429 grep -v '^ *+' conftest.er1 >conftest.err
13431 cat conftest.err >&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); } &&
13434 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13435 { (case "(($ac_try" in
13436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13437 *) ac_try_echo=$ac_try;;
13439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13440 (eval "$ac_try") 2>&5
13442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13443 (exit $ac_status); }; } &&
13444 { ac_try='test -s conftest.$ac_objext'
13445 { (case "(($ac_try" in
13446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13447 *) ac_try_echo=$ac_try;;
13449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13450 (eval "$ac_try") 2>&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); }; }; then
13454 ac_header_compiler=yes
13456 echo "$as_me: failed program was:" >&5
13457 sed 's/^/| /' conftest.$ac_ext >&5
13459 ac_header_compiler=no
13462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13463 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13464 echo "${ECHO_T}$ac_header_compiler" >&6; }
13466 # Is the header present?
13467 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13468 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13469 cat >conftest.$ac_ext <<_ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13475 #include <opagent.h>
13477 if { (ac_try="$ac_cpp conftest.$ac_ext"
13478 case "(($ac_try" in
13479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13480 *) ac_try_echo=$ac_try;;
13482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13485 grep -v '^ *+' conftest.er1 >conftest.err
13487 cat conftest.err >&5
13488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13489 (exit $ac_status); } >/dev/null; then
13490 if test -s conftest.err; then
13491 ac_cpp_err=$ac_c_preproc_warn_flag
13492 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13499 if test -z "$ac_cpp_err"; then
13500 ac_header_preproc=yes
13502 echo "$as_me: failed program was:" >&5
13503 sed 's/^/| /' conftest.$ac_ext >&5
13505 ac_header_preproc=no
13508 rm -f conftest.err conftest.$ac_ext
13509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13510 echo "${ECHO_T}$ac_header_preproc" >&6; }
13512 # So? What about this header?
13513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13515 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13516 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13518 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13519 ac_header_preproc=yes
13522 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13523 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13525 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13526 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13527 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13528 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13529 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13530 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13531 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13532 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13533 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13535 ## ------------------------------------ ##
13536 ## Report this to http://llvm.org/bugs/ ##
13537 ## ------------------------------------ ##
13539 ) | sed "s/^/$as_me: WARNING: /" >&2
13542 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13543 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13544 if test "${ac_cv_header_opagent_h+set}" = set; then
13545 echo $ECHO_N "(cached) $ECHO_C" >&6
13547 ac_cv_header_opagent_h=$ac_header_preproc
13549 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13550 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13553 if test $ac_cv_header_opagent_h = yes; then
13557 echo "Error! You need to have opagent.h around."
13565 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13566 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13567 { (exit 1); exit 1; }; } ;;
13578 cat >>confdefs.h <<_ACEOF
13579 #define LLVM_USE_OPROFILE $USE_OPROFILE
13584 # Check whether --with-intel-jitevents was given.
13585 if test "${with_intel_jitevents+set}" = set; then
13586 withval=$with_intel_jitevents;
13587 case $llvm_cv_os_type in
13588 Linux|Win32|Cygwin|MingW) ;;
13590 { { echo "$as_me:$LINENO: error:
13591 Intel JIT API support is available on Linux and Windows only.\"" >&5
13592 echo "$as_me: error:
13593 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13594 { (exit 1); exit 1; }; } ;;
13597 USE_INTEL_JITEVENTS=1
13599 case "$llvm_cv_target_arch" in
13600 x86) llvm_intel_jitevents_archdir="lib32";;
13601 x86_64) llvm_intel_jitevents_archdir="lib64";;
13602 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13605 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13606 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13608 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13609 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13616 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13617 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13619 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13620 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13621 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 ac_func_search_save_LIBS=$LIBS
13625 cat >conftest.$ac_ext <<_ACEOF
13628 cat confdefs.h >>conftest.$ac_ext
13629 cat >>conftest.$ac_ext <<_ACEOF
13630 /* end confdefs.h. */
13632 /* Override any GCC internal prototype to avoid an error.
13633 Use char because int might match the return type of a GCC
13634 builtin and then its argument prototype would still apply. */
13638 char iJIT_IsProfilingActive ();
13642 return iJIT_IsProfilingActive ();
13647 for ac_lib in '' jitprofiling; do
13648 if test -z "$ac_lib"; then
13649 ac_res="none required"
13652 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13654 rm -f conftest.$ac_objext conftest$ac_exeext
13655 if { (ac_try="$ac_link"
13656 case "(($ac_try" in
13657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13658 *) ac_try_echo=$ac_try;;
13660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13661 (eval "$ac_link") 2>conftest.er1
13663 grep -v '^ *+' conftest.er1 >conftest.err
13665 cat conftest.err >&5
13666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13667 (exit $ac_status); } &&
13668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13669 { (case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_try") 2>&5
13676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13677 (exit $ac_status); }; } &&
13678 { ac_try='test -s conftest$ac_exeext'
13679 { (case "(($ac_try" in
13680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13681 *) ac_try_echo=$ac_try;;
13683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13684 (eval "$ac_try") 2>&5
13686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13687 (exit $ac_status); }; }; then
13688 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13696 rm -f core conftest.err conftest.$ac_objext \
13698 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13702 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13705 ac_cv_search_iJIT_IsProfilingActive=no
13707 rm conftest.$ac_ext
13708 LIBS=$ac_func_search_save_LIBS
13710 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13711 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13712 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13713 if test "$ac_res" != no; then
13714 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13718 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13723 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13724 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13725 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13726 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13727 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13730 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13732 # Is the header compilable?
13733 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13734 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13735 cat >conftest.$ac_ext <<_ACEOF
13738 cat confdefs.h >>conftest.$ac_ext
13739 cat >>conftest.$ac_ext <<_ACEOF
13740 /* end confdefs.h. */
13741 $ac_includes_default
13742 #include <jitprofiling.h>
13744 rm -f conftest.$ac_objext
13745 if { (ac_try="$ac_compile"
13746 case "(($ac_try" in
13747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13748 *) ac_try_echo=$ac_try;;
13750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13751 (eval "$ac_compile") 2>conftest.er1
13753 grep -v '^ *+' conftest.er1 >conftest.err
13755 cat conftest.err >&5
13756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13757 (exit $ac_status); } &&
13758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13759 { (case "(($ac_try" in
13760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_try") 2>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); }; } &&
13768 { ac_try='test -s conftest.$ac_objext'
13769 { (case "(($ac_try" in
13770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_try") 2>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; }; then
13778 ac_header_compiler=yes
13780 echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13783 ac_header_compiler=no
13786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13788 echo "${ECHO_T}$ac_header_compiler" >&6; }
13790 # Is the header present?
13791 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13792 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13793 cat >conftest.$ac_ext <<_ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 #include <jitprofiling.h>
13801 if { (ac_try="$ac_cpp conftest.$ac_ext"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13809 grep -v '^ *+' conftest.er1 >conftest.err
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } >/dev/null; then
13814 if test -s conftest.err; then
13815 ac_cpp_err=$ac_c_preproc_warn_flag
13816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13823 if test -z "$ac_cpp_err"; then
13824 ac_header_preproc=yes
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_header_preproc=no
13832 rm -f conftest.err conftest.$ac_ext
13833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13834 echo "${ECHO_T}$ac_header_preproc" >&6; }
13836 # So? What about this header?
13837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13839 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13840 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13842 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13843 ac_header_preproc=yes
13846 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13847 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13848 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13849 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13850 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13851 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13852 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13853 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13854 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13855 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13856 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13857 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13859 ## ------------------------------------ ##
13860 ## Report this to http://llvm.org/bugs/ ##
13861 ## ------------------------------------ ##
13863 ) | sed "s/^/$as_me: WARNING: /" >&2
13866 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13867 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13868 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13871 ac_cv_header_jitprofiling_h=$ac_header_preproc
13873 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13874 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13877 if test $ac_cv_header_jitprofiling_h = yes; then
13881 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13891 USE_INTEL_JITEVENTS=0
13897 cat >>confdefs.h <<_ACEOF
13898 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13908 ac_header_dirent=no
13909 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13910 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13911 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13912 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13914 echo $ECHO_N "(cached) $ECHO_C" >&6
13916 cat >conftest.$ac_ext <<_ACEOF
13919 cat confdefs.h >>conftest.$ac_ext
13920 cat >>conftest.$ac_ext <<_ACEOF
13921 /* end confdefs.h. */
13922 #include <sys/types.h>
13934 rm -f conftest.$ac_objext
13935 if { (ac_try="$ac_compile"
13936 case "(($ac_try" in
13937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13938 *) ac_try_echo=$ac_try;;
13940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13941 (eval "$ac_compile") 2>conftest.er1
13943 grep -v '^ *+' conftest.er1 >conftest.err
13945 cat conftest.err >&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); } &&
13948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13949 { (case "(($ac_try" in
13950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_try") 2>&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); }; } &&
13958 { ac_try='test -s conftest.$ac_objext'
13959 { (case "(($ac_try" in
13960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13961 *) ac_try_echo=$ac_try;;
13963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13964 (eval "$ac_try") 2>&5
13966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13967 (exit $ac_status); }; }; then
13968 eval "$as_ac_Header=yes"
13970 echo "$as_me: failed program was:" >&5
13971 sed 's/^/| /' conftest.$ac_ext >&5
13973 eval "$as_ac_Header=no"
13976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13978 ac_res=`eval echo '${'$as_ac_Header'}'`
13979 { echo "$as_me:$LINENO: result: $ac_res" >&5
13980 echo "${ECHO_T}$ac_res" >&6; }
13981 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13982 cat >>confdefs.h <<_ACEOF
13983 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
13986 ac_header_dirent=$ac_hdr; break
13990 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
13991 if test $ac_header_dirent = dirent.h; then
13992 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
13993 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
13994 if test "${ac_cv_search_opendir+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13997 ac_func_search_save_LIBS=$LIBS
13998 cat >conftest.$ac_ext <<_ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h. */
14005 /* Override any GCC internal prototype to avoid an error.
14006 Use char because int might match the return type of a GCC
14007 builtin and then its argument prototype would still apply. */
14020 for ac_lib in '' dir; do
14021 if test -z "$ac_lib"; then
14022 ac_res="none required"
14025 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14027 rm -f conftest.$ac_objext conftest$ac_exeext
14028 if { (ac_try="$ac_link"
14029 case "(($ac_try" in
14030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14031 *) ac_try_echo=$ac_try;;
14033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14034 (eval "$ac_link") 2>conftest.er1
14036 grep -v '^ *+' conftest.er1 >conftest.err
14038 cat conftest.err >&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } &&
14041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14042 { (case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_try") 2>&5
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; } &&
14051 { ac_try='test -s conftest$ac_exeext'
14052 { (case "(($ac_try" in
14053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14054 *) ac_try_echo=$ac_try;;
14056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14057 (eval "$ac_try") 2>&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); }; }; then
14061 ac_cv_search_opendir=$ac_res
14063 echo "$as_me: failed program was:" >&5
14064 sed 's/^/| /' conftest.$ac_ext >&5
14069 rm -f core conftest.err conftest.$ac_objext \
14071 if test "${ac_cv_search_opendir+set}" = set; then
14075 if test "${ac_cv_search_opendir+set}" = set; then
14078 ac_cv_search_opendir=no
14080 rm conftest.$ac_ext
14081 LIBS=$ac_func_search_save_LIBS
14083 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14084 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14085 ac_res=$ac_cv_search_opendir
14086 if test "$ac_res" != no; then
14087 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14092 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14093 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14094 if test "${ac_cv_search_opendir+set}" = set; then
14095 echo $ECHO_N "(cached) $ECHO_C" >&6
14097 ac_func_search_save_LIBS=$LIBS
14098 cat >conftest.$ac_ext <<_ACEOF
14101 cat confdefs.h >>conftest.$ac_ext
14102 cat >>conftest.$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14105 /* Override any GCC internal prototype to avoid an error.
14106 Use char because int might match the return type of a GCC
14107 builtin and then its argument prototype would still apply. */
14120 for ac_lib in '' x; do
14121 if test -z "$ac_lib"; then
14122 ac_res="none required"
14125 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14127 rm -f conftest.$ac_objext conftest$ac_exeext
14128 if { (ac_try="$ac_link"
14129 case "(($ac_try" in
14130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14131 *) ac_try_echo=$ac_try;;
14133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14134 (eval "$ac_link") 2>conftest.er1
14136 grep -v '^ *+' conftest.er1 >conftest.err
14138 cat conftest.err >&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); } &&
14141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14142 { (case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_try") 2>&5
14149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14150 (exit $ac_status); }; } &&
14151 { ac_try='test -s conftest$ac_exeext'
14152 { (case "(($ac_try" in
14153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14154 *) ac_try_echo=$ac_try;;
14156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14157 (eval "$ac_try") 2>&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); }; }; then
14161 ac_cv_search_opendir=$ac_res
14163 echo "$as_me: failed program was:" >&5
14164 sed 's/^/| /' conftest.$ac_ext >&5
14169 rm -f core conftest.err conftest.$ac_objext \
14171 if test "${ac_cv_search_opendir+set}" = set; then
14175 if test "${ac_cv_search_opendir+set}" = set; then
14178 ac_cv_search_opendir=no
14180 rm conftest.$ac_ext
14181 LIBS=$ac_func_search_save_LIBS
14183 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14184 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14185 ac_res=$ac_cv_search_opendir
14186 if test "$ac_res" != no; then
14187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14193 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14194 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14195 if test "${ac_cv_header_mmap_anon+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 ac_cpp='$CPP $CPPFLAGS'
14200 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14201 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14202 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14204 cat >conftest.$ac_ext <<_ACEOF
14207 cat confdefs.h >>conftest.$ac_ext
14208 cat >>conftest.$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14210 #include <sys/mman.h>
14211 #include <unistd.h>
14216 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14221 rm -f conftest.$ac_objext
14222 if { (ac_try="$ac_compile"
14223 case "(($ac_try" in
14224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14225 *) ac_try_echo=$ac_try;;
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_compile") 2>conftest.er1
14230 grep -v '^ *+' conftest.er1 >conftest.err
14232 cat conftest.err >&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } &&
14235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14236 { (case "(($ac_try" in
14237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14238 *) ac_try_echo=$ac_try;;
14240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14241 (eval "$ac_try") 2>&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); }; } &&
14245 { ac_try='test -s conftest.$ac_objext'
14246 { (case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_try") 2>&5
14253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14254 (exit $ac_status); }; }; then
14255 ac_cv_header_mmap_anon=yes
14257 echo "$as_me: failed program was:" >&5
14258 sed 's/^/| /' conftest.$ac_ext >&5
14260 ac_cv_header_mmap_anon=no
14263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14265 ac_cpp='$CPP $CPPFLAGS'
14266 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14267 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14268 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14272 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14273 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14274 if test "$ac_cv_header_mmap_anon" = yes; then
14276 cat >>confdefs.h <<\_ACEOF
14277 #define HAVE_MMAP_ANONYMOUS 1
14282 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14283 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14284 if test "${ac_cv_header_stat_broken+set}" = set; then
14285 echo $ECHO_N "(cached) $ECHO_C" >&6
14287 cat >conftest.$ac_ext <<_ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 #include <sys/types.h>
14294 #include <sys/stat.h>
14296 #if defined S_ISBLK && defined S_IFDIR
14297 # if S_ISBLK (S_IFDIR)
14302 #if defined S_ISBLK && defined S_IFCHR
14303 # if S_ISBLK (S_IFCHR)
14308 #if defined S_ISLNK && defined S_IFREG
14309 # if S_ISLNK (S_IFREG)
14314 #if defined S_ISSOCK && defined S_IFREG
14315 # if S_ISSOCK (S_IFREG)
14321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14322 $EGREP "You lose" >/dev/null 2>&1; then
14323 ac_cv_header_stat_broken=yes
14325 ac_cv_header_stat_broken=no
14330 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14331 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14332 if test $ac_cv_header_stat_broken = yes; then
14334 cat >>confdefs.h <<\_ACEOF
14335 #define STAT_MACROS_BROKEN 1
14340 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14341 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14342 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 cat >conftest.$ac_ext <<_ACEOF
14348 cat confdefs.h >>conftest.$ac_ext
14349 cat >>conftest.$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14351 #include <sys/types.h>
14352 #include <sys/wait.h>
14353 #ifndef WEXITSTATUS
14354 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14357 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14365 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14370 rm -f conftest.$ac_objext
14371 if { (ac_try="$ac_compile"
14372 case "(($ac_try" in
14373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14374 *) ac_try_echo=$ac_try;;
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_compile") 2>conftest.er1
14379 grep -v '^ *+' conftest.er1 >conftest.err
14381 cat conftest.err >&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } &&
14384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14385 { (case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_try") 2>&5
14392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14393 (exit $ac_status); }; } &&
14394 { ac_try='test -s conftest.$ac_objext'
14395 { (case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_try") 2>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); }; }; then
14404 ac_cv_header_sys_wait_h=yes
14406 echo "$as_me: failed program was:" >&5
14407 sed 's/^/| /' conftest.$ac_ext >&5
14409 ac_cv_header_sys_wait_h=no
14412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14414 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14415 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14416 if test $ac_cv_header_sys_wait_h = yes; then
14418 cat >>confdefs.h <<\_ACEOF
14419 #define HAVE_SYS_WAIT_H 1
14424 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14425 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14426 if test "${ac_cv_header_time+set}" = set; then
14427 echo $ECHO_N "(cached) $ECHO_C" >&6
14429 cat >conftest.$ac_ext <<_ACEOF
14432 cat confdefs.h >>conftest.$ac_ext
14433 cat >>conftest.$ac_ext <<_ACEOF
14434 /* end confdefs.h. */
14435 #include <sys/types.h>
14436 #include <sys/time.h>
14442 if ((struct tm *) 0)
14448 rm -f conftest.$ac_objext
14449 if { (ac_try="$ac_compile"
14450 case "(($ac_try" in
14451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14452 *) ac_try_echo=$ac_try;;
14454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14455 (eval "$ac_compile") 2>conftest.er1
14457 grep -v '^ *+' conftest.er1 >conftest.err
14459 cat conftest.err >&5
14460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14461 (exit $ac_status); } &&
14462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14463 { (case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_try") 2>&5
14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14471 (exit $ac_status); }; } &&
14472 { ac_try='test -s conftest.$ac_objext'
14473 { (case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_try") 2>&5
14480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14481 (exit $ac_status); }; }; then
14482 ac_cv_header_time=yes
14484 echo "$as_me: failed program was:" >&5
14485 sed 's/^/| /' conftest.$ac_ext >&5
14487 ac_cv_header_time=no
14490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14492 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14493 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14494 if test $ac_cv_header_time = yes; then
14496 cat >>confdefs.h <<\_ACEOF
14497 #define TIME_WITH_SYS_TIME 1
14509 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14518 ac_res=`eval echo '${'$as_ac_Header'}'`
14519 { echo "$as_me:$LINENO: result: $ac_res" >&5
14520 echo "${ECHO_T}$ac_res" >&6; }
14522 # Is the header compilable?
14523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14525 cat >conftest.$ac_ext <<_ACEOF
14528 cat confdefs.h >>conftest.$ac_ext
14529 cat >>conftest.$ac_ext <<_ACEOF
14530 /* end confdefs.h. */
14531 $ac_includes_default
14532 #include <$ac_header>
14534 rm -f conftest.$ac_objext
14535 if { (ac_try="$ac_compile"
14536 case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_compile") 2>conftest.er1
14543 grep -v '^ *+' conftest.er1 >conftest.err
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } &&
14548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14549 { (case "(($ac_try" in
14550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14551 *) ac_try_echo=$ac_try;;
14553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14554 (eval "$ac_try") 2>&5
14556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14557 (exit $ac_status); }; } &&
14558 { ac_try='test -s conftest.$ac_objext'
14559 { (case "(($ac_try" in
14560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14561 *) ac_try_echo=$ac_try;;
14563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14564 (eval "$ac_try") 2>&5
14566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14567 (exit $ac_status); }; }; then
14568 ac_header_compiler=yes
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 ac_header_compiler=no
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14578 echo "${ECHO_T}$ac_header_compiler" >&6; }
14580 # Is the header present?
14581 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14582 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14583 cat >conftest.$ac_ext <<_ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14589 #include <$ac_header>
14591 if { (ac_try="$ac_cpp conftest.$ac_ext"
14592 case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14599 grep -v '^ *+' conftest.er1 >conftest.err
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } >/dev/null; then
14604 if test -s conftest.err; then
14605 ac_cpp_err=$ac_c_preproc_warn_flag
14606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14613 if test -z "$ac_cpp_err"; then
14614 ac_header_preproc=yes
14616 echo "$as_me: failed program was:" >&5
14617 sed 's/^/| /' conftest.$ac_ext >&5
14619 ac_header_preproc=no
14622 rm -f conftest.err conftest.$ac_ext
14623 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14624 echo "${ECHO_T}$ac_header_preproc" >&6; }
14626 # So? What about this header?
14627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14629 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14630 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14633 ac_header_preproc=yes
14636 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14637 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14638 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14639 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14640 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14641 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14642 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14643 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14644 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14646 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14647 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14649 ## ------------------------------------ ##
14650 ## Report this to http://llvm.org/bugs/ ##
14651 ## ------------------------------------ ##
14653 ) | sed "s/^/$as_me: WARNING: /" >&2
14656 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14657 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 eval "$as_ac_Header=\$ac_header_preproc"
14663 ac_res=`eval echo '${'$as_ac_Header'}'`
14664 { echo "$as_me:$LINENO: result: $ac_res" >&5
14665 echo "${ECHO_T}$ac_res" >&6; }
14668 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14669 cat >>confdefs.h <<_ACEOF
14670 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14683 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14690 echo $ECHO_N "(cached) $ECHO_C" >&6
14692 ac_res=`eval echo '${'$as_ac_Header'}'`
14693 { echo "$as_me:$LINENO: result: $ac_res" >&5
14694 echo "${ECHO_T}$ac_res" >&6; }
14696 # Is the header compilable?
14697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14699 cat >conftest.$ac_ext <<_ACEOF
14702 cat confdefs.h >>conftest.$ac_ext
14703 cat >>conftest.$ac_ext <<_ACEOF
14704 /* end confdefs.h. */
14705 $ac_includes_default
14706 #include <$ac_header>
14708 rm -f conftest.$ac_objext
14709 if { (ac_try="$ac_compile"
14710 case "(($ac_try" in
14711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14712 *) ac_try_echo=$ac_try;;
14714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14715 (eval "$ac_compile") 2>conftest.er1
14717 grep -v '^ *+' conftest.er1 >conftest.err
14719 cat conftest.err >&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); } &&
14722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14723 { (case "(($ac_try" in
14724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14725 *) ac_try_echo=$ac_try;;
14727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14728 (eval "$ac_try") 2>&5
14730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14731 (exit $ac_status); }; } &&
14732 { ac_try='test -s conftest.$ac_objext'
14733 { (case "(($ac_try" in
14734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14735 *) ac_try_echo=$ac_try;;
14737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14738 (eval "$ac_try") 2>&5
14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14741 (exit $ac_status); }; }; then
14742 ac_header_compiler=yes
14744 echo "$as_me: failed program was:" >&5
14745 sed 's/^/| /' conftest.$ac_ext >&5
14747 ac_header_compiler=no
14750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14752 echo "${ECHO_T}$ac_header_compiler" >&6; }
14754 # Is the header present?
14755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14757 cat >conftest.$ac_ext <<_ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14763 #include <$ac_header>
14765 if { (ac_try="$ac_cpp conftest.$ac_ext"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14773 grep -v '^ *+' conftest.er1 >conftest.err
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } >/dev/null; then
14778 if test -s conftest.err; then
14779 ac_cpp_err=$ac_c_preproc_warn_flag
14780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14787 if test -z "$ac_cpp_err"; then
14788 ac_header_preproc=yes
14790 echo "$as_me: failed program was:" >&5
14791 sed 's/^/| /' conftest.$ac_ext >&5
14793 ac_header_preproc=no
14796 rm -f conftest.err conftest.$ac_ext
14797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14798 echo "${ECHO_T}$ac_header_preproc" >&6; }
14800 # So? What about this header?
14801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14807 ac_header_preproc=yes
14810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14823 ## ------------------------------------ ##
14824 ## Report this to http://llvm.org/bugs/ ##
14825 ## ------------------------------------ ##
14827 ) | sed "s/^/$as_me: WARNING: /" >&2
14830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14833 echo $ECHO_N "(cached) $ECHO_C" >&6
14835 eval "$as_ac_Header=\$ac_header_preproc"
14837 ac_res=`eval echo '${'$as_ac_Header'}'`
14838 { echo "$as_me:$LINENO: result: $ac_res" >&5
14839 echo "${ECHO_T}$ac_res" >&6; }
14842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14843 cat >>confdefs.h <<_ACEOF
14844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14853 for ac_header in utime.h windows.h
14855 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14856 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14860 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 ac_res=`eval echo '${'$as_ac_Header'}'`
14863 { echo "$as_me:$LINENO: result: $ac_res" >&5
14864 echo "${ECHO_T}$ac_res" >&6; }
14866 # Is the header compilable?
14867 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14868 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14869 cat >conftest.$ac_ext <<_ACEOF
14872 cat confdefs.h >>conftest.$ac_ext
14873 cat >>conftest.$ac_ext <<_ACEOF
14874 /* end confdefs.h. */
14875 $ac_includes_default
14876 #include <$ac_header>
14878 rm -f conftest.$ac_objext
14879 if { (ac_try="$ac_compile"
14880 case "(($ac_try" in
14881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14882 *) ac_try_echo=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_compile") 2>conftest.er1
14887 grep -v '^ *+' conftest.er1 >conftest.err
14889 cat conftest.err >&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14893 { (case "(($ac_try" in
14894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898 (eval "$ac_try") 2>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest.$ac_objext'
14903 { (case "(($ac_try" in
14904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14905 *) ac_try_echo=$ac_try;;
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_try") 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; }; then
14912 ac_header_compiler=yes
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.$ac_ext >&5
14917 ac_header_compiler=no
14920 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14921 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14922 echo "${ECHO_T}$ac_header_compiler" >&6; }
14924 # Is the header present?
14925 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14927 cat >conftest.$ac_ext <<_ACEOF
14930 cat confdefs.h >>conftest.$ac_ext
14931 cat >>conftest.$ac_ext <<_ACEOF
14932 /* end confdefs.h. */
14933 #include <$ac_header>
14935 if { (ac_try="$ac_cpp conftest.$ac_ext"
14936 case "(($ac_try" in
14937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14938 *) ac_try_echo=$ac_try;;
14940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14941 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14943 grep -v '^ *+' conftest.er1 >conftest.err
14945 cat conftest.err >&5
14946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14947 (exit $ac_status); } >/dev/null; then
14948 if test -s conftest.err; then
14949 ac_cpp_err=$ac_c_preproc_warn_flag
14950 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14957 if test -z "$ac_cpp_err"; then
14958 ac_header_preproc=yes
14960 echo "$as_me: failed program was:" >&5
14961 sed 's/^/| /' conftest.$ac_ext >&5
14963 ac_header_preproc=no
14966 rm -f conftest.err conftest.$ac_ext
14967 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14968 echo "${ECHO_T}$ac_header_preproc" >&6; }
14970 # So? What about this header?
14971 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14973 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14974 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14976 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14977 ac_header_preproc=yes
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14981 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14983 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14984 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14985 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14986 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14987 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14988 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14989 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14990 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14991 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14993 ## ------------------------------------ ##
14994 ## Report this to http://llvm.org/bugs/ ##
14995 ## ------------------------------------ ##
14997 ) | sed "s/^/$as_me: WARNING: /" >&2
15000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 eval "$as_ac_Header=\$ac_header_preproc"
15007 ac_res=`eval echo '${'$as_ac_Header'}'`
15008 { echo "$as_me:$LINENO: result: $ac_res" >&5
15009 echo "${ECHO_T}$ac_res" >&6; }
15012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15013 cat >>confdefs.h <<_ACEOF
15014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15026 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 ac_res=`eval echo '${'$as_ac_Header'}'`
15036 { echo "$as_me:$LINENO: result: $ac_res" >&5
15037 echo "${ECHO_T}$ac_res" >&6; }
15039 # Is the header compilable?
15040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15042 cat >conftest.$ac_ext <<_ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048 $ac_includes_default
15049 #include <$ac_header>
15051 rm -f conftest.$ac_objext
15052 if { (ac_try="$ac_compile"
15053 case "(($ac_try" in
15054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15055 *) ac_try_echo=$ac_try;;
15057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15058 (eval "$ac_compile") 2>conftest.er1
15060 grep -v '^ *+' conftest.er1 >conftest.err
15062 cat conftest.err >&5
15063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15064 (exit $ac_status); } &&
15065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15066 { (case "(($ac_try" in
15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068 *) ac_try_echo=$ac_try;;
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071 (eval "$ac_try") 2>&5
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest.$ac_objext'
15076 { (case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_try") 2>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); }; }; then
15085 ac_header_compiler=yes
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15090 ac_header_compiler=no
15093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15094 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15095 echo "${ECHO_T}$ac_header_compiler" >&6; }
15097 # Is the header present?
15098 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15099 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15100 cat >conftest.$ac_ext <<_ACEOF
15103 cat confdefs.h >>conftest.$ac_ext
15104 cat >>conftest.$ac_ext <<_ACEOF
15105 /* end confdefs.h. */
15106 #include <$ac_header>
15108 if { (ac_try="$ac_cpp conftest.$ac_ext"
15109 case "(($ac_try" in
15110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15111 *) ac_try_echo=$ac_try;;
15113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15114 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15116 grep -v '^ *+' conftest.er1 >conftest.err
15118 cat conftest.err >&5
15119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15120 (exit $ac_status); } >/dev/null; then
15121 if test -s conftest.err; then
15122 ac_cpp_err=$ac_c_preproc_warn_flag
15123 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15130 if test -z "$ac_cpp_err"; then
15131 ac_header_preproc=yes
15133 echo "$as_me: failed program was:" >&5
15134 sed 's/^/| /' conftest.$ac_ext >&5
15136 ac_header_preproc=no
15139 rm -f conftest.err conftest.$ac_ext
15140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15141 echo "${ECHO_T}$ac_header_preproc" >&6; }
15143 # So? What about this header?
15144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15150 ac_header_preproc=yes
15153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15166 ## ------------------------------------ ##
15167 ## Report this to http://llvm.org/bugs/ ##
15168 ## ------------------------------------ ##
15170 ) | sed "s/^/$as_me: WARNING: /" >&2
15173 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15174 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15176 echo $ECHO_N "(cached) $ECHO_C" >&6
15178 eval "$as_ac_Header=\$ac_header_preproc"
15180 ac_res=`eval echo '${'$as_ac_Header'}'`
15181 { echo "$as_me:$LINENO: result: $ac_res" >&5
15182 echo "${ECHO_T}$ac_res" >&6; }
15185 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15186 cat >>confdefs.h <<_ACEOF
15187 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15198 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15205 echo $ECHO_N "(cached) $ECHO_C" >&6
15207 ac_res=`eval echo '${'$as_ac_Header'}'`
15208 { echo "$as_me:$LINENO: result: $ac_res" >&5
15209 echo "${ECHO_T}$ac_res" >&6; }
15211 # Is the header compilable?
15212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15214 cat >conftest.$ac_ext <<_ACEOF
15217 cat confdefs.h >>conftest.$ac_ext
15218 cat >>conftest.$ac_ext <<_ACEOF
15219 /* end confdefs.h. */
15220 $ac_includes_default
15221 #include <$ac_header>
15223 rm -f conftest.$ac_objext
15224 if { (ac_try="$ac_compile"
15225 case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_compile") 2>conftest.er1
15232 grep -v '^ *+' conftest.er1 >conftest.err
15234 cat conftest.err >&5
15235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15236 (exit $ac_status); } &&
15237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15238 { (case "(($ac_try" in
15239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15240 *) ac_try_echo=$ac_try;;
15242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15243 (eval "$ac_try") 2>&5
15245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15246 (exit $ac_status); }; } &&
15247 { ac_try='test -s conftest.$ac_objext'
15248 { (case "(($ac_try" in
15249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15250 *) ac_try_echo=$ac_try;;
15252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15253 (eval "$ac_try") 2>&5
15255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15256 (exit $ac_status); }; }; then
15257 ac_header_compiler=yes
15259 echo "$as_me: failed program was:" >&5
15260 sed 's/^/| /' conftest.$ac_ext >&5
15262 ac_header_compiler=no
15265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15266 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15267 echo "${ECHO_T}$ac_header_compiler" >&6; }
15269 # Is the header present?
15270 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15271 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15272 cat >conftest.$ac_ext <<_ACEOF
15275 cat confdefs.h >>conftest.$ac_ext
15276 cat >>conftest.$ac_ext <<_ACEOF
15277 /* end confdefs.h. */
15278 #include <$ac_header>
15280 if { (ac_try="$ac_cpp conftest.$ac_ext"
15281 case "(($ac_try" in
15282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15283 *) ac_try_echo=$ac_try;;
15285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15288 grep -v '^ *+' conftest.er1 >conftest.err
15290 cat conftest.err >&5
15291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15292 (exit $ac_status); } >/dev/null; then
15293 if test -s conftest.err; then
15294 ac_cpp_err=$ac_c_preproc_warn_flag
15295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15302 if test -z "$ac_cpp_err"; then
15303 ac_header_preproc=yes
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15308 ac_header_preproc=no
15311 rm -f conftest.err conftest.$ac_ext
15312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15313 echo "${ECHO_T}$ac_header_preproc" >&6; }
15315 # So? What about this header?
15316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15318 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15319 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15320 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15322 ac_header_preproc=yes
15325 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15326 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15327 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15328 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15329 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15330 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15331 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15332 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15333 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15336 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15338 ## ------------------------------------ ##
15339 ## Report this to http://llvm.org/bugs/ ##
15340 ## ------------------------------------ ##
15342 ) | sed "s/^/$as_me: WARNING: /" >&2
15345 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15346 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15347 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15348 echo $ECHO_N "(cached) $ECHO_C" >&6
15350 eval "$as_ac_Header=\$ac_header_preproc"
15352 ac_res=`eval echo '${'$as_ac_Header'}'`
15353 { echo "$as_me:$LINENO: result: $ac_res" >&5
15354 echo "${ECHO_T}$ac_res" >&6; }
15357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15358 cat >>confdefs.h <<_ACEOF
15359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15367 for ac_header in valgrind/valgrind.h
15369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15370 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15371 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15374 echo $ECHO_N "(cached) $ECHO_C" >&6
15376 ac_res=`eval echo '${'$as_ac_Header'}'`
15377 { echo "$as_me:$LINENO: result: $ac_res" >&5
15378 echo "${ECHO_T}$ac_res" >&6; }
15380 # Is the header compilable?
15381 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15382 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15383 cat >conftest.$ac_ext <<_ACEOF
15386 cat confdefs.h >>conftest.$ac_ext
15387 cat >>conftest.$ac_ext <<_ACEOF
15388 /* end confdefs.h. */
15389 $ac_includes_default
15390 #include <$ac_header>
15392 rm -f conftest.$ac_objext
15393 if { (ac_try="$ac_compile"
15394 case "(($ac_try" in
15395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15396 *) ac_try_echo=$ac_try;;
15398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15399 (eval "$ac_compile") 2>conftest.er1
15401 grep -v '^ *+' conftest.er1 >conftest.err
15403 cat conftest.err >&5
15404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15405 (exit $ac_status); } &&
15406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15407 { (case "(($ac_try" in
15408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15409 *) ac_try_echo=$ac_try;;
15411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15412 (eval "$ac_try") 2>&5
15414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15415 (exit $ac_status); }; } &&
15416 { ac_try='test -s conftest.$ac_objext'
15417 { (case "(($ac_try" in
15418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15419 *) ac_try_echo=$ac_try;;
15421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15422 (eval "$ac_try") 2>&5
15424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15425 (exit $ac_status); }; }; then
15426 ac_header_compiler=yes
15428 echo "$as_me: failed program was:" >&5
15429 sed 's/^/| /' conftest.$ac_ext >&5
15431 ac_header_compiler=no
15434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15436 echo "${ECHO_T}$ac_header_compiler" >&6; }
15438 # Is the header present?
15439 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15440 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15441 cat >conftest.$ac_ext <<_ACEOF
15444 cat confdefs.h >>conftest.$ac_ext
15445 cat >>conftest.$ac_ext <<_ACEOF
15446 /* end confdefs.h. */
15447 #include <$ac_header>
15449 if { (ac_try="$ac_cpp conftest.$ac_ext"
15450 case "(($ac_try" in
15451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15452 *) ac_try_echo=$ac_try;;
15454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15457 grep -v '^ *+' conftest.er1 >conftest.err
15459 cat conftest.err >&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); } >/dev/null; then
15462 if test -s conftest.err; then
15463 ac_cpp_err=$ac_c_preproc_warn_flag
15464 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15471 if test -z "$ac_cpp_err"; then
15472 ac_header_preproc=yes
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 ac_header_preproc=no
15480 rm -f conftest.err conftest.$ac_ext
15481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15482 echo "${ECHO_T}$ac_header_preproc" >&6; }
15484 # So? What about this header?
15485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15488 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15490 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15491 ac_header_preproc=yes
15494 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15495 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15496 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15497 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15498 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15499 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15500 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15501 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15503 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15505 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15507 ## ------------------------------------ ##
15508 ## Report this to http://llvm.org/bugs/ ##
15509 ## ------------------------------------ ##
15511 ) | sed "s/^/$as_me: WARNING: /" >&2
15514 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15515 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15517 echo $ECHO_N "(cached) $ECHO_C" >&6
15519 eval "$as_ac_Header=\$ac_header_preproc"
15521 ac_res=`eval echo '${'$as_ac_Header'}'`
15522 { echo "$as_me:$LINENO: result: $ac_res" >&5
15523 echo "${ECHO_T}$ac_res" >&6; }
15526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15536 for ac_header in fenv.h
15538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15545 ac_res=`eval echo '${'$as_ac_Header'}'`
15546 { echo "$as_me:$LINENO: result: $ac_res" >&5
15547 echo "${ECHO_T}$ac_res" >&6; }
15549 # Is the header compilable?
15550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15552 cat >conftest.$ac_ext <<_ACEOF
15555 cat confdefs.h >>conftest.$ac_ext
15556 cat >>conftest.$ac_ext <<_ACEOF
15557 /* end confdefs.h. */
15558 $ac_includes_default
15559 #include <$ac_header>
15561 rm -f conftest.$ac_objext
15562 if { (ac_try="$ac_compile"
15563 case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_compile") 2>conftest.er1
15570 grep -v '^ *+' conftest.er1 >conftest.err
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15574 (exit $ac_status); } &&
15575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15576 { (case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_try") 2>&5
15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15584 (exit $ac_status); }; } &&
15585 { ac_try='test -s conftest.$ac_objext'
15586 { (case "(($ac_try" in
15587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15588 *) ac_try_echo=$ac_try;;
15590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15591 (eval "$ac_try") 2>&5
15593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); }; }; then
15595 ac_header_compiler=yes
15597 echo "$as_me: failed program was:" >&5
15598 sed 's/^/| /' conftest.$ac_ext >&5
15600 ac_header_compiler=no
15603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15605 echo "${ECHO_T}$ac_header_compiler" >&6; }
15607 # Is the header present?
15608 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15609 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15610 cat >conftest.$ac_ext <<_ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15616 #include <$ac_header>
15618 if { (ac_try="$ac_cpp conftest.$ac_ext"
15619 case "(($ac_try" in
15620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621 *) ac_try_echo=$ac_try;;
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15626 grep -v '^ *+' conftest.er1 >conftest.err
15628 cat conftest.err >&5
15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15630 (exit $ac_status); } >/dev/null; then
15631 if test -s conftest.err; then
15632 ac_cpp_err=$ac_c_preproc_warn_flag
15633 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15640 if test -z "$ac_cpp_err"; then
15641 ac_header_preproc=yes
15643 echo "$as_me: failed program was:" >&5
15644 sed 's/^/| /' conftest.$ac_ext >&5
15646 ac_header_preproc=no
15649 rm -f conftest.err conftest.$ac_ext
15650 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15651 echo "${ECHO_T}$ac_header_preproc" >&6; }
15653 # So? What about this header?
15654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15657 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15659 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15660 ac_header_preproc=yes
15663 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15664 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15665 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15666 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15667 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15668 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15669 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15670 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15671 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15672 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15673 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15674 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15676 ## ------------------------------------ ##
15677 ## Report this to http://llvm.org/bugs/ ##
15678 ## ------------------------------------ ##
15680 ) | sed "s/^/$as_me: WARNING: /" >&2
15683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15686 echo $ECHO_N "(cached) $ECHO_C" >&6
15688 eval "$as_ac_Header=\$ac_header_preproc"
15690 ac_res=`eval echo '${'$as_ac_Header'}'`
15691 { echo "$as_me:$LINENO: result: $ac_res" >&5
15692 echo "${ECHO_T}$ac_res" >&6; }
15695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15696 cat >>confdefs.h <<_ACEOF
15697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15704 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15706 for ac_header in pthread.h
15708 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15709 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15710 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15711 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15713 echo $ECHO_N "(cached) $ECHO_C" >&6
15715 ac_res=`eval echo '${'$as_ac_Header'}'`
15716 { echo "$as_me:$LINENO: result: $ac_res" >&5
15717 echo "${ECHO_T}$ac_res" >&6; }
15719 # Is the header compilable?
15720 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15721 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15722 cat >conftest.$ac_ext <<_ACEOF
15725 cat confdefs.h >>conftest.$ac_ext
15726 cat >>conftest.$ac_ext <<_ACEOF
15727 /* end confdefs.h. */
15728 $ac_includes_default
15729 #include <$ac_header>
15731 rm -f conftest.$ac_objext
15732 if { (ac_try="$ac_compile"
15733 case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_compile") 2>conftest.er1
15740 grep -v '^ *+' conftest.er1 >conftest.err
15742 cat conftest.err >&5
15743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15744 (exit $ac_status); } &&
15745 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15746 { (case "(($ac_try" in
15747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15748 *) ac_try_echo=$ac_try;;
15750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15751 (eval "$ac_try") 2>&5
15753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15754 (exit $ac_status); }; } &&
15755 { ac_try='test -s conftest.$ac_objext'
15756 { (case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_try") 2>&5
15763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15764 (exit $ac_status); }; }; then
15765 ac_header_compiler=yes
15767 echo "$as_me: failed program was:" >&5
15768 sed 's/^/| /' conftest.$ac_ext >&5
15770 ac_header_compiler=no
15773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15775 echo "${ECHO_T}$ac_header_compiler" >&6; }
15777 # Is the header present?
15778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15780 cat >conftest.$ac_ext <<_ACEOF
15783 cat confdefs.h >>conftest.$ac_ext
15784 cat >>conftest.$ac_ext <<_ACEOF
15785 /* end confdefs.h. */
15786 #include <$ac_header>
15788 if { (ac_try="$ac_cpp conftest.$ac_ext"
15789 case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15796 grep -v '^ *+' conftest.er1 >conftest.err
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } >/dev/null; then
15801 if test -s conftest.err; then
15802 ac_cpp_err=$ac_c_preproc_warn_flag
15803 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15810 if test -z "$ac_cpp_err"; then
15811 ac_header_preproc=yes
15813 echo "$as_me: failed program was:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_header_preproc=no
15819 rm -f conftest.err conftest.$ac_ext
15820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15821 echo "${ECHO_T}$ac_header_preproc" >&6; }
15823 # So? What about this header?
15824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15827 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15829 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15830 ac_header_preproc=yes
15833 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15834 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15835 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15836 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15837 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15838 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15839 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15840 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15842 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15843 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15844 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15846 ## ------------------------------------ ##
15847 ## Report this to http://llvm.org/bugs/ ##
15848 ## ------------------------------------ ##
15850 ) | sed "s/^/$as_me: WARNING: /" >&2
15853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15856 echo $ECHO_N "(cached) $ECHO_C" >&6
15858 eval "$as_ac_Header=\$ac_header_preproc"
15860 ac_res=`eval echo '${'$as_ac_Header'}'`
15861 { echo "$as_me:$LINENO: result: $ac_res" >&5
15862 echo "${ECHO_T}$ac_res" >&6; }
15865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15866 cat >>confdefs.h <<_ACEOF
15867 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15883 if test "$llvm_cv_enable_libffi" = "yes" ; then
15886 for ac_header in ffi.h ffi/ffi.h
15888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15893 echo $ECHO_N "(cached) $ECHO_C" >&6
15895 ac_res=`eval echo '${'$as_ac_Header'}'`
15896 { echo "$as_me:$LINENO: result: $ac_res" >&5
15897 echo "${ECHO_T}$ac_res" >&6; }
15899 # Is the header compilable?
15900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15902 cat >conftest.$ac_ext <<_ACEOF
15905 cat confdefs.h >>conftest.$ac_ext
15906 cat >>conftest.$ac_ext <<_ACEOF
15907 /* end confdefs.h. */
15908 $ac_includes_default
15909 #include <$ac_header>
15911 rm -f conftest.$ac_objext
15912 if { (ac_try="$ac_compile"
15913 case "(($ac_try" in
15914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15915 *) ac_try_echo=$ac_try;;
15917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15918 (eval "$ac_compile") 2>conftest.er1
15920 grep -v '^ *+' conftest.er1 >conftest.err
15922 cat conftest.err >&5
15923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } &&
15925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15926 { (case "(($ac_try" in
15927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15928 *) ac_try_echo=$ac_try;;
15930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15931 (eval "$ac_try") 2>&5
15933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15934 (exit $ac_status); }; } &&
15935 { ac_try='test -s conftest.$ac_objext'
15936 { (case "(($ac_try" in
15937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15938 *) ac_try_echo=$ac_try;;
15940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15941 (eval "$ac_try") 2>&5
15943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15944 (exit $ac_status); }; }; then
15945 ac_header_compiler=yes
15947 echo "$as_me: failed program was:" >&5
15948 sed 's/^/| /' conftest.$ac_ext >&5
15950 ac_header_compiler=no
15953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15955 echo "${ECHO_T}$ac_header_compiler" >&6; }
15957 # Is the header present?
15958 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15959 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15960 cat >conftest.$ac_ext <<_ACEOF
15963 cat confdefs.h >>conftest.$ac_ext
15964 cat >>conftest.$ac_ext <<_ACEOF
15965 /* end confdefs.h. */
15966 #include <$ac_header>
15968 if { (ac_try="$ac_cpp conftest.$ac_ext"
15969 case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15976 grep -v '^ *+' conftest.er1 >conftest.err
15978 cat conftest.err >&5
15979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15980 (exit $ac_status); } >/dev/null; then
15981 if test -s conftest.err; then
15982 ac_cpp_err=$ac_c_preproc_warn_flag
15983 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15990 if test -z "$ac_cpp_err"; then
15991 ac_header_preproc=yes
15993 echo "$as_me: failed program was:" >&5
15994 sed 's/^/| /' conftest.$ac_ext >&5
15996 ac_header_preproc=no
15999 rm -f conftest.err conftest.$ac_ext
16000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16001 echo "${ECHO_T}$ac_header_preproc" >&6; }
16003 # So? What about this header?
16004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16010 ac_header_preproc=yes
16013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16026 ## ------------------------------------ ##
16027 ## Report this to http://llvm.org/bugs/ ##
16028 ## ------------------------------------ ##
16030 ) | sed "s/^/$as_me: WARNING: /" >&2
16033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16036 echo $ECHO_N "(cached) $ECHO_C" >&6
16038 eval "$as_ac_Header=\$ac_header_preproc"
16040 ac_res=`eval echo '${'$as_ac_Header'}'`
16041 { echo "$as_me:$LINENO: result: $ac_res" >&5
16042 echo "${ECHO_T}$ac_res" >&6; }
16045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16046 cat >>confdefs.h <<_ACEOF
16047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16057 for ac_header in CrashReporterClient.h
16059 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16066 ac_res=`eval echo '${'$as_ac_Header'}'`
16067 { echo "$as_me:$LINENO: result: $ac_res" >&5
16068 echo "${ECHO_T}$ac_res" >&6; }
16070 # Is the header compilable?
16071 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16072 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16073 cat >conftest.$ac_ext <<_ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 $ac_includes_default
16080 #include <$ac_header>
16082 rm -f conftest.$ac_objext
16083 if { (ac_try="$ac_compile"
16084 case "(($ac_try" in
16085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16086 *) ac_try_echo=$ac_try;;
16088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16089 (eval "$ac_compile") 2>conftest.er1
16091 grep -v '^ *+' conftest.er1 >conftest.err
16093 cat conftest.err >&5
16094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16095 (exit $ac_status); } &&
16096 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16097 { (case "(($ac_try" in
16098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16099 *) ac_try_echo=$ac_try;;
16101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16102 (eval "$ac_try") 2>&5
16104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16105 (exit $ac_status); }; } &&
16106 { ac_try='test -s conftest.$ac_objext'
16107 { (case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_try") 2>&5
16114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16115 (exit $ac_status); }; }; then
16116 ac_header_compiler=yes
16118 echo "$as_me: failed program was:" >&5
16119 sed 's/^/| /' conftest.$ac_ext >&5
16121 ac_header_compiler=no
16124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16125 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16126 echo "${ECHO_T}$ac_header_compiler" >&6; }
16128 # Is the header present?
16129 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16130 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16131 cat >conftest.$ac_ext <<_ACEOF
16134 cat confdefs.h >>conftest.$ac_ext
16135 cat >>conftest.$ac_ext <<_ACEOF
16136 /* end confdefs.h. */
16137 #include <$ac_header>
16139 if { (ac_try="$ac_cpp conftest.$ac_ext"
16140 case "(($ac_try" in
16141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16142 *) ac_try_echo=$ac_try;;
16144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16145 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16147 grep -v '^ *+' conftest.er1 >conftest.err
16149 cat conftest.err >&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); } >/dev/null; then
16152 if test -s conftest.err; then
16153 ac_cpp_err=$ac_c_preproc_warn_flag
16154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16161 if test -z "$ac_cpp_err"; then
16162 ac_header_preproc=yes
16164 echo "$as_me: failed program was:" >&5
16165 sed 's/^/| /' conftest.$ac_ext >&5
16167 ac_header_preproc=no
16170 rm -f conftest.err conftest.$ac_ext
16171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16172 echo "${ECHO_T}$ac_header_preproc" >&6; }
16174 # So? What about this header?
16175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16177 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16178 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16179 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16180 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16181 ac_header_preproc=yes
16184 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16185 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16186 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16187 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16188 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16189 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16190 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16191 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16193 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16195 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16197 ## ------------------------------------ ##
16198 ## Report this to http://llvm.org/bugs/ ##
16199 ## ------------------------------------ ##
16201 ) | sed "s/^/$as_me: WARNING: /" >&2
16204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16207 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 eval "$as_ac_Header=\$ac_header_preproc"
16211 ac_res=`eval echo '${'$as_ac_Header'}'`
16212 { echo "$as_me:$LINENO: result: $ac_res" >&5
16213 echo "${ECHO_T}$ac_res" >&6; }
16216 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16217 cat >>confdefs.h <<_ACEOF
16218 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16226 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16227 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16228 cat >conftest.$ac_ext <<_ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h. */
16234 extern const char *__crashreporter_info__;
16236 __crashreporter_info__ = "test";
16241 rm -f conftest.$ac_objext conftest$ac_exeext
16242 if { (ac_try="$ac_link"
16243 case "(($ac_try" in
16244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16245 *) ac_try_echo=$ac_try;;
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_link") 2>conftest.er1
16250 grep -v '^ *+' conftest.er1 >conftest.err
16252 cat conftest.err >&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } &&
16255 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16256 { (case "(($ac_try" in
16257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16258 *) ac_try_echo=$ac_try;;
16260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16261 (eval "$ac_try") 2>&5
16263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16264 (exit $ac_status); }; } &&
16265 { ac_try='test -s conftest$ac_exeext'
16266 { (case "(($ac_try" in
16267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16268 *) ac_try_echo=$ac_try;;
16270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16271 (eval "$ac_try") 2>&5
16273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); }; }; then
16275 { echo "$as_me:$LINENO: result: yes" >&5
16276 echo "${ECHO_T}yes" >&6; }
16278 cat >>confdefs.h <<\_ACEOF
16279 #define HAVE_CRASHREPORTER_INFO 1
16283 echo "$as_me: failed program was:" >&5
16284 sed 's/^/| /' conftest.$ac_ext >&5
16286 { echo "$as_me:$LINENO: result: no" >&5
16287 echo "${ECHO_T}no" >&6; }
16289 cat >>confdefs.h <<\_ACEOF
16290 #define HAVE_CRASHREPORTER_INFO 0
16295 rm -f core conftest.err conftest.$ac_objext \
16296 conftest$ac_exeext conftest.$ac_ext
16301 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16302 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16303 if test "${ac_cv_huge_val_sanity+set}" = set; then
16304 echo $ECHO_N "(cached) $ECHO_C" >&6
16308 ac_cpp='$CXXCPP $CPPFLAGS'
16309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16313 ac_save_CXXFLAGS=$CXXFLAGS
16314 CXXFLAGS="$CXXFLAGS -pedantic"
16315 if test "$cross_compiling" = yes; then
16316 ac_cv_huge_val_sanity=yes
16318 cat >conftest.$ac_ext <<_ACEOF
16321 cat confdefs.h >>conftest.$ac_ext
16322 cat >>conftest.$ac_ext <<_ACEOF
16323 /* end confdefs.h. */
16328 double x = HUGE_VAL; return x != x;
16333 rm -f conftest$ac_exeext
16334 if { (ac_try="$ac_link"
16335 case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_link") 2>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16344 { (case "(($ac_try" in
16345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16346 *) ac_try_echo=$ac_try;;
16348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16349 (eval "$ac_try") 2>&5
16351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16352 (exit $ac_status); }; }; then
16353 ac_cv_huge_val_sanity=yes
16355 echo "$as_me: program exited with status $ac_status" >&5
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 ( exit $ac_status )
16360 ac_cv_huge_val_sanity=no
16362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16366 CXXFLAGS=$ac_save_CXXFLAGS
16368 ac_cpp='$CPP $CPPFLAGS'
16369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16375 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16376 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16377 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16380 { echo "$as_me:$LINENO: checking for pid_t" >&5
16381 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16382 if test "${ac_cv_type_pid_t+set}" = set; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16385 cat >conftest.$ac_ext <<_ACEOF
16388 cat confdefs.h >>conftest.$ac_ext
16389 cat >>conftest.$ac_ext <<_ACEOF
16390 /* end confdefs.h. */
16391 $ac_includes_default
16392 typedef pid_t ac__type_new_;
16396 if ((ac__type_new_ *) 0)
16398 if (sizeof (ac__type_new_))
16404 rm -f conftest.$ac_objext
16405 if { (ac_try="$ac_compile"
16406 case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_compile") 2>conftest.er1
16413 grep -v '^ *+' conftest.er1 >conftest.err
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16417 (exit $ac_status); } &&
16418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16419 { (case "(($ac_try" in
16420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16421 *) ac_try_echo=$ac_try;;
16423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16424 (eval "$ac_try") 2>&5
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; } &&
16428 { ac_try='test -s conftest.$ac_objext'
16429 { (case "(($ac_try" in
16430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16431 *) ac_try_echo=$ac_try;;
16433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16434 (eval "$ac_try") 2>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); }; }; then
16438 ac_cv_type_pid_t=yes
16440 echo "$as_me: failed program was:" >&5
16441 sed 's/^/| /' conftest.$ac_ext >&5
16443 ac_cv_type_pid_t=no
16446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16448 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16449 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16450 if test $ac_cv_type_pid_t = yes; then
16454 cat >>confdefs.h <<_ACEOF
16460 { echo "$as_me:$LINENO: checking for size_t" >&5
16461 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16462 if test "${ac_cv_type_size_t+set}" = set; then
16463 echo $ECHO_N "(cached) $ECHO_C" >&6
16465 cat >conftest.$ac_ext <<_ACEOF
16468 cat confdefs.h >>conftest.$ac_ext
16469 cat >>conftest.$ac_ext <<_ACEOF
16470 /* end confdefs.h. */
16471 $ac_includes_default
16472 typedef size_t ac__type_new_;
16476 if ((ac__type_new_ *) 0)
16478 if (sizeof (ac__type_new_))
16484 rm -f conftest.$ac_objext
16485 if { (ac_try="$ac_compile"
16486 case "(($ac_try" in
16487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16488 *) ac_try_echo=$ac_try;;
16490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16491 (eval "$ac_compile") 2>conftest.er1
16493 grep -v '^ *+' conftest.er1 >conftest.err
16495 cat conftest.err >&5
16496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16497 (exit $ac_status); } &&
16498 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16499 { (case "(($ac_try" in
16500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16501 *) ac_try_echo=$ac_try;;
16503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16504 (eval "$ac_try") 2>&5
16506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16507 (exit $ac_status); }; } &&
16508 { ac_try='test -s conftest.$ac_objext'
16509 { (case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16514 (eval "$ac_try") 2>&5
16516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16517 (exit $ac_status); }; }; then
16518 ac_cv_type_size_t=yes
16520 echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16523 ac_cv_type_size_t=no
16526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16528 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16529 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16530 if test $ac_cv_type_size_t = yes; then
16534 cat >>confdefs.h <<_ACEOF
16535 #define size_t unsigned int
16541 cat >>confdefs.h <<_ACEOF
16542 #define RETSIGTYPE void
16545 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16546 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16547 if test "${ac_cv_struct_tm+set}" = set; then
16548 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 cat >conftest.$ac_ext <<_ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556 #include <sys/types.h>
16562 struct tm *tp; tp->tm_sec;
16567 rm -f conftest.$ac_objext
16568 if { (ac_try="$ac_compile"
16569 case "(($ac_try" in
16570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16571 *) ac_try_echo=$ac_try;;
16573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16574 (eval "$ac_compile") 2>conftest.er1
16576 grep -v '^ *+' conftest.er1 >conftest.err
16578 cat conftest.err >&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); } &&
16581 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16582 { (case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_try") 2>&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; } &&
16591 { ac_try='test -s conftest.$ac_objext'
16592 { (case "(($ac_try" in
16593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16594 *) ac_try_echo=$ac_try;;
16596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16597 (eval "$ac_try") 2>&5
16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16600 (exit $ac_status); }; }; then
16601 ac_cv_struct_tm=time.h
16603 echo "$as_me: failed program was:" >&5
16604 sed 's/^/| /' conftest.$ac_ext >&5
16606 ac_cv_struct_tm=sys/time.h
16609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16612 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16613 if test $ac_cv_struct_tm = sys/time.h; then
16615 cat >>confdefs.h <<\_ACEOF
16616 #define TM_IN_SYS_TIME 1
16621 { echo "$as_me:$LINENO: checking for int64_t" >&5
16622 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16623 if test "${ac_cv_type_int64_t+set}" = set; then
16624 echo $ECHO_N "(cached) $ECHO_C" >&6
16626 cat >conftest.$ac_ext <<_ACEOF
16629 cat confdefs.h >>conftest.$ac_ext
16630 cat >>conftest.$ac_ext <<_ACEOF
16631 /* end confdefs.h. */
16632 $ac_includes_default
16633 typedef int64_t ac__type_new_;
16637 if ((ac__type_new_ *) 0)
16639 if (sizeof (ac__type_new_))
16645 rm -f conftest.$ac_objext
16646 if { (ac_try="$ac_compile"
16647 case "(($ac_try" in
16648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16649 *) ac_try_echo=$ac_try;;
16651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16652 (eval "$ac_compile") 2>conftest.er1
16654 grep -v '^ *+' conftest.er1 >conftest.err
16656 cat conftest.err >&5
16657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16658 (exit $ac_status); } &&
16659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16660 { (case "(($ac_try" in
16661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16662 *) ac_try_echo=$ac_try;;
16664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16665 (eval "$ac_try") 2>&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }; } &&
16669 { ac_try='test -s conftest.$ac_objext'
16670 { (case "(($ac_try" in
16671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16672 *) ac_try_echo=$ac_try;;
16674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16675 (eval "$ac_try") 2>&5
16677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16678 (exit $ac_status); }; }; then
16679 ac_cv_type_int64_t=yes
16681 echo "$as_me: failed program was:" >&5
16682 sed 's/^/| /' conftest.$ac_ext >&5
16684 ac_cv_type_int64_t=no
16687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16689 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16690 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16691 if test $ac_cv_type_int64_t = yes; then
16693 cat >>confdefs.h <<_ACEOF
16694 #define HAVE_INT64_T 1
16699 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16700 echo "$as_me: error: Type int64_t required but not found" >&2;}
16701 { (exit 1); exit 1; }; }
16704 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16705 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16706 if test "${ac_cv_type_uint64_t+set}" = set; then
16707 echo $ECHO_N "(cached) $ECHO_C" >&6
16709 cat >conftest.$ac_ext <<_ACEOF
16712 cat confdefs.h >>conftest.$ac_ext
16713 cat >>conftest.$ac_ext <<_ACEOF
16714 /* end confdefs.h. */
16715 $ac_includes_default
16716 typedef uint64_t ac__type_new_;
16720 if ((ac__type_new_ *) 0)
16722 if (sizeof (ac__type_new_))
16728 rm -f conftest.$ac_objext
16729 if { (ac_try="$ac_compile"
16730 case "(($ac_try" in
16731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16732 *) ac_try_echo=$ac_try;;
16734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16735 (eval "$ac_compile") 2>conftest.er1
16737 grep -v '^ *+' conftest.er1 >conftest.err
16739 cat conftest.err >&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); } &&
16742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16743 { (case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_try") 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; } &&
16752 { ac_try='test -s conftest.$ac_objext'
16753 { (case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_try") 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); }; }; then
16762 ac_cv_type_uint64_t=yes
16764 echo "$as_me: failed program was:" >&5
16765 sed 's/^/| /' conftest.$ac_ext >&5
16767 ac_cv_type_uint64_t=no
16770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16772 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16773 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16774 if test $ac_cv_type_uint64_t = yes; then
16776 cat >>confdefs.h <<_ACEOF
16777 #define HAVE_UINT64_T 1
16782 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16783 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16784 if test "${ac_cv_type_u_int64_t+set}" = set; then
16785 echo $ECHO_N "(cached) $ECHO_C" >&6
16787 cat >conftest.$ac_ext <<_ACEOF
16790 cat confdefs.h >>conftest.$ac_ext
16791 cat >>conftest.$ac_ext <<_ACEOF
16792 /* end confdefs.h. */
16793 $ac_includes_default
16794 typedef u_int64_t ac__type_new_;
16798 if ((ac__type_new_ *) 0)
16800 if (sizeof (ac__type_new_))
16806 rm -f conftest.$ac_objext
16807 if { (ac_try="$ac_compile"
16808 case "(($ac_try" in
16809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16810 *) ac_try_echo=$ac_try;;
16812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16813 (eval "$ac_compile") 2>conftest.er1
16815 grep -v '^ *+' conftest.er1 >conftest.err
16817 cat conftest.err >&5
16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16819 (exit $ac_status); } &&
16820 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16821 { (case "(($ac_try" in
16822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16823 *) ac_try_echo=$ac_try;;
16825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16826 (eval "$ac_try") 2>&5
16828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16829 (exit $ac_status); }; } &&
16830 { ac_try='test -s conftest.$ac_objext'
16831 { (case "(($ac_try" in
16832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16833 *) ac_try_echo=$ac_try;;
16835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16836 (eval "$ac_try") 2>&5
16838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); }; }; then
16840 ac_cv_type_u_int64_t=yes
16842 echo "$as_me: failed program was:" >&5
16843 sed 's/^/| /' conftest.$ac_ext >&5
16845 ac_cv_type_u_int64_t=no
16848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16850 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16851 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16852 if test $ac_cv_type_u_int64_t = yes; then
16854 cat >>confdefs.h <<_ACEOF
16855 #define HAVE_U_INT64_T 1
16860 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16861 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16862 { (exit 1); exit 1; }; }
16876 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16878 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16879 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16880 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16881 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16882 echo $ECHO_N "(cached) $ECHO_C" >&6
16884 cat >conftest.$ac_ext <<_ACEOF
16887 cat confdefs.h >>conftest.$ac_ext
16888 cat >>conftest.$ac_ext <<_ACEOF
16889 /* end confdefs.h. */
16890 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16891 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16892 #define $ac_func innocuous_$ac_func
16894 /* System header to define __stub macros and hopefully few prototypes,
16895 which can conflict with char $ac_func (); below.
16896 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16897 <limits.h> exists even on freestanding compilers. */
16900 # include <limits.h>
16902 # include <assert.h>
16907 /* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16914 /* The GNU C library defines this for functions which it implements
16915 to always fail with ENOSYS. Some functions are actually named
16916 something starting with __ and the normal name is an alias. */
16917 #if defined __stub_$ac_func || defined __stub___$ac_func
16924 return $ac_func ();
16929 rm -f conftest.$ac_objext conftest$ac_exeext
16930 if { (ac_try="$ac_link"
16931 case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_link") 2>conftest.er1
16938 grep -v '^ *+' conftest.er1 >conftest.err
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest$ac_exeext'
16954 { (case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_try") 2>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 eval "$as_ac_var=yes"
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 eval "$as_ac_var=no"
16971 rm -f core conftest.err conftest.$ac_objext \
16972 conftest$ac_exeext conftest.$ac_ext
16974 ac_res=`eval echo '${'$as_ac_var'}'`
16975 { echo "$as_me:$LINENO: result: $ac_res" >&5
16976 echo "${ECHO_T}$ac_res" >&6; }
16977 if test `eval echo '${'$as_ac_var'}'` = yes; then
16978 cat >>confdefs.h <<_ACEOF
16979 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16989 for ac_func in powf fmodf strtof round
16991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16995 echo $ECHO_N "(cached) $ECHO_C" >&6
16997 cat >conftest.$ac_ext <<_ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17005 #define $ac_func innocuous_$ac_func
17007 /* System header to define __stub macros and hopefully few prototypes,
17008 which can conflict with char $ac_func (); below.
17009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17010 <limits.h> exists even on freestanding compilers. */
17013 # include <limits.h>
17015 # include <assert.h>
17020 /* Override any GCC internal prototype to avoid an error.
17021 Use char because int might match the return type of a GCC
17022 builtin and then its argument prototype would still apply. */
17027 /* The GNU C library defines this for functions which it implements
17028 to always fail with ENOSYS. Some functions are actually named
17029 something starting with __ and the normal name is an alias. */
17030 #if defined __stub_$ac_func || defined __stub___$ac_func
17037 return $ac_func ();
17042 rm -f conftest.$ac_objext conftest$ac_exeext
17043 if { (ac_try="$ac_link"
17044 case "(($ac_try" in
17045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17046 *) ac_try_echo=$ac_try;;
17048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17049 (eval "$ac_link") 2>conftest.er1
17051 grep -v '^ *+' conftest.er1 >conftest.err
17053 cat conftest.err >&5
17054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17055 (exit $ac_status); } &&
17056 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17057 { (case "(($ac_try" in
17058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17059 *) ac_try_echo=$ac_try;;
17061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17062 (eval "$ac_try") 2>&5
17064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17065 (exit $ac_status); }; } &&
17066 { ac_try='test -s conftest$ac_exeext'
17067 { (case "(($ac_try" in
17068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17069 *) ac_try_echo=$ac_try;;
17071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17072 (eval "$ac_try") 2>&5
17074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17075 (exit $ac_status); }; }; then
17076 eval "$as_ac_var=yes"
17078 echo "$as_me: failed program was:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17081 eval "$as_ac_var=no"
17084 rm -f core conftest.err conftest.$ac_objext \
17085 conftest$ac_exeext conftest.$ac_ext
17087 ac_res=`eval echo '${'$as_ac_var'}'`
17088 { echo "$as_me:$LINENO: result: $ac_res" >&5
17089 echo "${ECHO_T}$ac_res" >&6; }
17090 if test `eval echo '${'$as_ac_var'}'` = yes; then
17091 cat >>confdefs.h <<_ACEOF
17092 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17103 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17109 echo $ECHO_N "(cached) $ECHO_C" >&6
17111 cat >conftest.$ac_ext <<_ACEOF
17114 cat confdefs.h >>conftest.$ac_ext
17115 cat >>conftest.$ac_ext <<_ACEOF
17116 /* end confdefs.h. */
17117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17119 #define $ac_func innocuous_$ac_func
17121 /* System header to define __stub macros and hopefully few prototypes,
17122 which can conflict with char $ac_func (); below.
17123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17124 <limits.h> exists even on freestanding compilers. */
17127 # include <limits.h>
17129 # include <assert.h>
17134 /* Override any GCC internal prototype to avoid an error.
17135 Use char because int might match the return type of a GCC
17136 builtin and then its argument prototype would still apply. */
17141 /* The GNU C library defines this for functions which it implements
17142 to always fail with ENOSYS. Some functions are actually named
17143 something starting with __ and the normal name is an alias. */
17144 #if defined __stub_$ac_func || defined __stub___$ac_func
17151 return $ac_func ();
17156 rm -f conftest.$ac_objext conftest$ac_exeext
17157 if { (ac_try="$ac_link"
17158 case "(($ac_try" in
17159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17160 *) ac_try_echo=$ac_try;;
17162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17163 (eval "$ac_link") 2>conftest.er1
17165 grep -v '^ *+' conftest.er1 >conftest.err
17167 cat conftest.err >&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } &&
17170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17171 { (case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_try") 2>&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; } &&
17180 { ac_try='test -s conftest$ac_exeext'
17181 { (case "(($ac_try" in
17182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17183 *) ac_try_echo=$ac_try;;
17185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17186 (eval "$ac_try") 2>&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); }; }; then
17190 eval "$as_ac_var=yes"
17192 echo "$as_me: failed program was:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17195 eval "$as_ac_var=no"
17198 rm -f core conftest.err conftest.$ac_objext \
17199 conftest$ac_exeext conftest.$ac_ext
17201 ac_res=`eval echo '${'$as_ac_var'}'`
17202 { echo "$as_me:$LINENO: result: $ac_res" >&5
17203 echo "${ECHO_T}$ac_res" >&6; }
17204 if test `eval echo '${'$as_ac_var'}'` = yes; then
17205 cat >>confdefs.h <<_ACEOF
17206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17215 for ac_func in isatty mkdtemp mkstemp
17217 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17218 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17219 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17220 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17221 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 cat >conftest.$ac_ext <<_ACEOF
17226 cat confdefs.h >>conftest.$ac_ext
17227 cat >>conftest.$ac_ext <<_ACEOF
17228 /* end confdefs.h. */
17229 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17230 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17231 #define $ac_func innocuous_$ac_func
17233 /* System header to define __stub macros and hopefully few prototypes,
17234 which can conflict with char $ac_func (); below.
17235 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17236 <limits.h> exists even on freestanding compilers. */
17239 # include <limits.h>
17241 # include <assert.h>
17246 /* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
17253 /* The GNU C library defines this for functions which it implements
17254 to always fail with ENOSYS. Some functions are actually named
17255 something starting with __ and the normal name is an alias. */
17256 #if defined __stub_$ac_func || defined __stub___$ac_func
17263 return $ac_func ();
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_link") 2>conftest.er1
17277 grep -v '^ *+' conftest.er1 >conftest.err
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } &&
17282 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17283 { (case "(($ac_try" in
17284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17285 *) ac_try_echo=$ac_try;;
17287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17288 (eval "$ac_try") 2>&5
17290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17291 (exit $ac_status); }; } &&
17292 { ac_try='test -s conftest$ac_exeext'
17293 { (case "(($ac_try" in
17294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17295 *) ac_try_echo=$ac_try;;
17297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17298 (eval "$ac_try") 2>&5
17300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17301 (exit $ac_status); }; }; then
17302 eval "$as_ac_var=yes"
17304 echo "$as_me: failed program was:" >&5
17305 sed 's/^/| /' conftest.$ac_ext >&5
17307 eval "$as_ac_var=no"
17310 rm -f core conftest.err conftest.$ac_objext \
17311 conftest$ac_exeext conftest.$ac_ext
17313 ac_res=`eval echo '${'$as_ac_var'}'`
17314 { echo "$as_me:$LINENO: result: $ac_res" >&5
17315 echo "${ECHO_T}$ac_res" >&6; }
17316 if test `eval echo '${'$as_ac_var'}'` = yes; then
17317 cat >>confdefs.h <<_ACEOF
17318 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17331 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17333 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17334 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17335 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17336 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17337 echo $ECHO_N "(cached) $ECHO_C" >&6
17339 cat >conftest.$ac_ext <<_ACEOF
17342 cat confdefs.h >>conftest.$ac_ext
17343 cat >>conftest.$ac_ext <<_ACEOF
17344 /* end confdefs.h. */
17345 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17346 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17347 #define $ac_func innocuous_$ac_func
17349 /* System header to define __stub macros and hopefully few prototypes,
17350 which can conflict with char $ac_func (); below.
17351 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17352 <limits.h> exists even on freestanding compilers. */
17355 # include <limits.h>
17357 # include <assert.h>
17362 /* Override any GCC internal prototype to avoid an error.
17363 Use char because int might match the return type of a GCC
17364 builtin and then its argument prototype would still apply. */
17369 /* The GNU C library defines this for functions which it implements
17370 to always fail with ENOSYS. Some functions are actually named
17371 something starting with __ and the normal name is an alias. */
17372 #if defined __stub_$ac_func || defined __stub___$ac_func
17379 return $ac_func ();
17384 rm -f conftest.$ac_objext conftest$ac_exeext
17385 if { (ac_try="$ac_link"
17386 case "(($ac_try" in
17387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17388 *) ac_try_echo=$ac_try;;
17390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17391 (eval "$ac_link") 2>conftest.er1
17393 grep -v '^ *+' conftest.er1 >conftest.err
17395 cat conftest.err >&5
17396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17397 (exit $ac_status); } &&
17398 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17399 { (case "(($ac_try" in
17400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17401 *) ac_try_echo=$ac_try;;
17403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17404 (eval "$ac_try") 2>&5
17406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17407 (exit $ac_status); }; } &&
17408 { ac_try='test -s conftest$ac_exeext'
17409 { (case "(($ac_try" in
17410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17411 *) ac_try_echo=$ac_try;;
17413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17414 (eval "$ac_try") 2>&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); }; }; then
17418 eval "$as_ac_var=yes"
17420 echo "$as_me: failed program was:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17423 eval "$as_ac_var=no"
17426 rm -f core conftest.err conftest.$ac_objext \
17427 conftest$ac_exeext conftest.$ac_ext
17429 ac_res=`eval echo '${'$as_ac_var'}'`
17430 { echo "$as_me:$LINENO: result: $ac_res" >&5
17431 echo "${ECHO_T}$ac_res" >&6; }
17432 if test `eval echo '${'$as_ac_var'}'` = yes; then
17433 cat >>confdefs.h <<_ACEOF
17434 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17444 for ac_func in strerror strerror_r setenv arc4random
17446 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17447 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17448 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17449 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17452 cat >conftest.$ac_ext <<_ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17458 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17460 #define $ac_func innocuous_$ac_func
17462 /* System header to define __stub macros and hopefully few prototypes,
17463 which can conflict with char $ac_func (); below.
17464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17465 <limits.h> exists even on freestanding compilers. */
17468 # include <limits.h>
17470 # include <assert.h>
17475 /* Override any GCC internal prototype to avoid an error.
17476 Use char because int might match the return type of a GCC
17477 builtin and then its argument prototype would still apply. */
17482 /* The GNU C library defines this for functions which it implements
17483 to always fail with ENOSYS. Some functions are actually named
17484 something starting with __ and the normal name is an alias. */
17485 #if defined __stub_$ac_func || defined __stub___$ac_func
17492 return $ac_func ();
17497 rm -f conftest.$ac_objext conftest$ac_exeext
17498 if { (ac_try="$ac_link"
17499 case "(($ac_try" in
17500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17501 *) ac_try_echo=$ac_try;;
17503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17504 (eval "$ac_link") 2>conftest.er1
17506 grep -v '^ *+' conftest.er1 >conftest.err
17508 cat conftest.err >&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } &&
17511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17512 { (case "(($ac_try" in
17513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17514 *) ac_try_echo=$ac_try;;
17516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17517 (eval "$ac_try") 2>&5
17519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17520 (exit $ac_status); }; } &&
17521 { ac_try='test -s conftest$ac_exeext'
17522 { (case "(($ac_try" in
17523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17524 *) ac_try_echo=$ac_try;;
17526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17527 (eval "$ac_try") 2>&5
17529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17530 (exit $ac_status); }; }; then
17531 eval "$as_ac_var=yes"
17533 echo "$as_me: failed program was:" >&5
17534 sed 's/^/| /' conftest.$ac_ext >&5
17536 eval "$as_ac_var=no"
17539 rm -f core conftest.err conftest.$ac_objext \
17540 conftest$ac_exeext conftest.$ac_ext
17542 ac_res=`eval echo '${'$as_ac_var'}'`
17543 { echo "$as_me:$LINENO: result: $ac_res" >&5
17544 echo "${ECHO_T}$ac_res" >&6; }
17545 if test `eval echo '${'$as_ac_var'}'` = yes; then
17546 cat >>confdefs.h <<_ACEOF
17547 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17557 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17563 echo $ECHO_N "(cached) $ECHO_C" >&6
17565 cat >conftest.$ac_ext <<_ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17573 #define $ac_func innocuous_$ac_func
17575 /* System header to define __stub macros and hopefully few prototypes,
17576 which can conflict with char $ac_func (); below.
17577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17578 <limits.h> exists even on freestanding compilers. */
17581 # include <limits.h>
17583 # include <assert.h>
17588 /* Override any GCC internal prototype to avoid an error.
17589 Use char because int might match the return type of a GCC
17590 builtin and then its argument prototype would still apply. */
17595 /* The GNU C library defines this for functions which it implements
17596 to always fail with ENOSYS. Some functions are actually named
17597 something starting with __ and the normal name is an alias. */
17598 #if defined __stub_$ac_func || defined __stub___$ac_func
17605 return $ac_func ();
17610 rm -f conftest.$ac_objext conftest$ac_exeext
17611 if { (ac_try="$ac_link"
17612 case "(($ac_try" in
17613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17614 *) ac_try_echo=$ac_try;;
17616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17617 (eval "$ac_link") 2>conftest.er1
17619 grep -v '^ *+' conftest.er1 >conftest.err
17621 cat conftest.err >&5
17622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17623 (exit $ac_status); } &&
17624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17625 { (case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_try") 2>&5
17632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17633 (exit $ac_status); }; } &&
17634 { ac_try='test -s conftest$ac_exeext'
17635 { (case "(($ac_try" in
17636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17637 *) ac_try_echo=$ac_try;;
17639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17640 (eval "$ac_try") 2>&5
17642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17643 (exit $ac_status); }; }; then
17644 eval "$as_ac_var=yes"
17646 echo "$as_me: failed program was:" >&5
17647 sed 's/^/| /' conftest.$ac_ext >&5
17649 eval "$as_ac_var=no"
17652 rm -f core conftest.err conftest.$ac_objext \
17653 conftest$ac_exeext conftest.$ac_ext
17655 ac_res=`eval echo '${'$as_ac_var'}'`
17656 { echo "$as_me:$LINENO: result: $ac_res" >&5
17657 echo "${ECHO_T}$ac_res" >&6; }
17658 if test `eval echo '${'$as_ac_var'}'` = yes; then
17659 cat >>confdefs.h <<_ACEOF
17660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17671 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17677 echo $ECHO_N "(cached) $ECHO_C" >&6
17679 cat >conftest.$ac_ext <<_ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17687 #define $ac_func innocuous_$ac_func
17689 /* System header to define __stub macros and hopefully few prototypes,
17690 which can conflict with char $ac_func (); below.
17691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17692 <limits.h> exists even on freestanding compilers. */
17695 # include <limits.h>
17697 # include <assert.h>
17702 /* Override any GCC internal prototype to avoid an error.
17703 Use char because int might match the return type of a GCC
17704 builtin and then its argument prototype would still apply. */
17709 /* The GNU C library defines this for functions which it implements
17710 to always fail with ENOSYS. Some functions are actually named
17711 something starting with __ and the normal name is an alias. */
17712 #if defined __stub_$ac_func || defined __stub___$ac_func
17719 return $ac_func ();
17724 rm -f conftest.$ac_objext conftest$ac_exeext
17725 if { (ac_try="$ac_link"
17726 case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_link") 2>conftest.er1
17733 grep -v '^ *+' conftest.er1 >conftest.err
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17737 (exit $ac_status); } &&
17738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17739 { (case "(($ac_try" in
17740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17741 *) ac_try_echo=$ac_try;;
17743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17744 (eval "$ac_try") 2>&5
17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17747 (exit $ac_status); }; } &&
17748 { ac_try='test -s conftest$ac_exeext'
17749 { (case "(($ac_try" in
17750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17751 *) ac_try_echo=$ac_try;;
17753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17754 (eval "$ac_try") 2>&5
17756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17757 (exit $ac_status); }; }; then
17758 eval "$as_ac_var=yes"
17760 echo "$as_me: failed program was:" >&5
17761 sed 's/^/| /' conftest.$ac_ext >&5
17763 eval "$as_ac_var=no"
17766 rm -f core conftest.err conftest.$ac_objext \
17767 conftest$ac_exeext conftest.$ac_ext
17769 ac_res=`eval echo '${'$as_ac_var'}'`
17770 { echo "$as_me:$LINENO: result: $ac_res" >&5
17771 echo "${ECHO_T}$ac_res" >&6; }
17772 if test `eval echo '${'$as_ac_var'}'` = yes; then
17773 cat >>confdefs.h <<_ACEOF
17774 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17780 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17781 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17782 if test "${llvm_cv_c_printf_a+set}" = set; then
17783 echo $ECHO_N "(cached) $ECHO_C" >&6
17786 ac_cpp='$CPP $CPPFLAGS'
17787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17791 if test "$cross_compiling" = yes; then
17792 llvmac_cv_c_printf_a=no
17794 cat >conftest.$ac_ext <<_ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h. */
17803 #include <stdlib.h>
17809 volatile double A, B;
17813 sprintf(Buffer, "%a", A);
17817 if (A != 0x1.999999999999ap-4)
17824 rm -f conftest$ac_exeext
17825 if { (ac_try="$ac_link"
17826 case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_link") 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17835 { (case "(($ac_try" in
17836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17837 *) ac_try_echo=$ac_try;;
17839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17840 (eval "$ac_try") 2>&5
17842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17843 (exit $ac_status); }; }; then
17844 llvm_cv_c_printf_a=yes
17846 echo "$as_me: program exited with status $ac_status" >&5
17847 echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17850 ( exit $ac_status )
17851 llvmac_cv_c_printf_a=no
17853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17858 ac_cpp='$CPP $CPPFLAGS'
17859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17864 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17865 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17866 if test "$llvm_cv_c_printf_a" = "yes"; then
17868 cat >>confdefs.h <<\_ACEOF
17869 #define HAVE_PRINTF_A 1
17875 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17876 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17877 if test "${ac_cv_func_rand48+set}" = set; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 ac_cpp='$CXXCPP $CPPFLAGS'
17882 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17883 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17884 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17886 cat >conftest.$ac_ext <<_ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17892 #include <stdlib.h>
17896 srand48(0);lrand48();drand48();
17901 rm -f conftest.$ac_objext
17902 if { (ac_try="$ac_compile"
17903 case "(($ac_try" in
17904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17905 *) ac_try_echo=$ac_try;;
17907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17908 (eval "$ac_compile") 2>conftest.er1
17910 grep -v '^ *+' conftest.er1 >conftest.err
17912 cat conftest.err >&5
17913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17914 (exit $ac_status); } &&
17915 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17916 { (case "(($ac_try" in
17917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17918 *) ac_try_echo=$ac_try;;
17920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17921 (eval "$ac_try") 2>&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); }; } &&
17925 { ac_try='test -s conftest.$ac_objext'
17926 { (case "(($ac_try" in
17927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17928 *) ac_try_echo=$ac_try;;
17930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17931 (eval "$ac_try") 2>&5
17933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17934 (exit $ac_status); }; }; then
17935 ac_cv_func_rand48=yes
17937 echo "$as_me: failed program was:" >&5
17938 sed 's/^/| /' conftest.$ac_ext >&5
17940 ac_cv_func_rand48=no
17943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17945 ac_cpp='$CPP $CPPFLAGS'
17946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17951 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
17952 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
17954 if test "$ac_cv_func_rand48" = "yes" ; then
17956 cat >>confdefs.h <<\_ACEOF
17957 #define HAVE_RAND48 1
17963 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
17964 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
17965 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
17966 echo $ECHO_N "(cached) $ECHO_C" >&6
17968 cat >conftest.$ac_ext <<_ACEOF
17971 cat confdefs.h >>conftest.$ac_ext
17972 cat >>conftest.$ac_ext <<_ACEOF
17973 /* end confdefs.h. */
17974 $ac_includes_default
17979 char *p = (char *) strerror_s;
17987 rm -f conftest.$ac_objext
17988 if { (ac_try="$ac_compile"
17989 case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_compile") 2>conftest.er1
17996 grep -v '^ *+' conftest.er1 >conftest.err
17998 cat conftest.err >&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); } &&
18001 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18002 { (case "(($ac_try" in
18003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18004 *) ac_try_echo=$ac_try;;
18006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18007 (eval "$ac_try") 2>&5
18009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18010 (exit $ac_status); }; } &&
18011 { ac_try='test -s conftest.$ac_objext'
18012 { (case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_try") 2>&5
18019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18020 (exit $ac_status); }; }; then
18021 ac_cv_have_decl_strerror_s=yes
18023 echo "$as_me: failed program was:" >&5
18024 sed 's/^/| /' conftest.$ac_ext >&5
18026 ac_cv_have_decl_strerror_s=no
18029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18031 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18032 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18033 if test $ac_cv_have_decl_strerror_s = yes; then
18035 cat >>confdefs.h <<_ACEOF
18036 #define HAVE_DECL_STRERROR_S 1
18041 cat >>confdefs.h <<_ACEOF
18042 #define HAVE_DECL_STRERROR_S 0
18050 if test "$llvm_cv_os_type" = "MingW" ; then
18051 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18052 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18053 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18054 echo $ECHO_N "(cached) $ECHO_C" >&6
18056 ac_check_lib_save_LIBS=$LIBS
18058 cat >conftest.$ac_ext <<_ACEOF
18061 cat confdefs.h >>conftest.$ac_ext
18062 cat >>conftest.$ac_ext <<_ACEOF
18063 /* end confdefs.h. */
18065 /* Override any GCC internal prototype to avoid an error.
18066 Use char because int might match the return type of a GCC
18067 builtin and then its argument prototype would still apply. */
18080 rm -f conftest.$ac_objext conftest$ac_exeext
18081 if { (ac_try="$ac_link"
18082 case "(($ac_try" in
18083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18084 *) ac_try_echo=$ac_try;;
18086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18087 (eval "$ac_link") 2>conftest.er1
18089 grep -v '^ *+' conftest.er1 >conftest.err
18091 cat conftest.err >&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); } &&
18094 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18095 { (case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18100 (eval "$ac_try") 2>&5
18102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18103 (exit $ac_status); }; } &&
18104 { ac_try='test -s conftest$ac_exeext'
18105 { (case "(($ac_try" in
18106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18107 *) ac_try_echo=$ac_try;;
18109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18110 (eval "$ac_try") 2>&5
18112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18113 (exit $ac_status); }; }; then
18114 ac_cv_lib_gcc__alloca=yes
18116 echo "$as_me: failed program was:" >&5
18117 sed 's/^/| /' conftest.$ac_ext >&5
18119 ac_cv_lib_gcc__alloca=no
18122 rm -f core conftest.err conftest.$ac_objext \
18123 conftest$ac_exeext conftest.$ac_ext
18124 LIBS=$ac_check_lib_save_LIBS
18126 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18127 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18128 if test $ac_cv_lib_gcc__alloca = yes; then
18130 cat >>confdefs.h <<\_ACEOF
18131 #define HAVE__ALLOCA 1
18136 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18137 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18138 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18139 echo $ECHO_N "(cached) $ECHO_C" >&6
18141 ac_check_lib_save_LIBS=$LIBS
18143 cat >conftest.$ac_ext <<_ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18160 return __alloca ();
18165 rm -f conftest.$ac_objext conftest$ac_exeext
18166 if { (ac_try="$ac_link"
18167 case "(($ac_try" in
18168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18169 *) ac_try_echo=$ac_try;;
18171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18172 (eval "$ac_link") 2>conftest.er1
18174 grep -v '^ *+' conftest.er1 >conftest.err
18176 cat conftest.err >&5
18177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18178 (exit $ac_status); } &&
18179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18180 { (case "(($ac_try" in
18181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18182 *) ac_try_echo=$ac_try;;
18184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18185 (eval "$ac_try") 2>&5
18187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18188 (exit $ac_status); }; } &&
18189 { ac_try='test -s conftest$ac_exeext'
18190 { (case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_try") 2>&5
18197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18198 (exit $ac_status); }; }; then
18199 ac_cv_lib_gcc___alloca=yes
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18204 ac_cv_lib_gcc___alloca=no
18207 rm -f core conftest.err conftest.$ac_objext \
18208 conftest$ac_exeext conftest.$ac_ext
18209 LIBS=$ac_check_lib_save_LIBS
18211 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18212 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18213 if test $ac_cv_lib_gcc___alloca = yes; then
18215 cat >>confdefs.h <<\_ACEOF
18216 #define HAVE___ALLOCA 1
18221 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18222 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18223 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18224 echo $ECHO_N "(cached) $ECHO_C" >&6
18226 ac_check_lib_save_LIBS=$LIBS
18228 cat >conftest.$ac_ext <<_ACEOF
18231 cat confdefs.h >>conftest.$ac_ext
18232 cat >>conftest.$ac_ext <<_ACEOF
18233 /* end confdefs.h. */
18235 /* Override any GCC internal prototype to avoid an error.
18236 Use char because int might match the return type of a GCC
18237 builtin and then its argument prototype would still apply. */
18245 return __chkstk ();
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_link") 2>conftest.er1
18259 grep -v '^ *+' conftest.er1 >conftest.err
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18263 (exit $ac_status); } &&
18264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18265 { (case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_try") 2>&5
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); }; } &&
18274 { ac_try='test -s conftest$ac_exeext'
18275 { (case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_try") 2>&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); }; }; then
18284 ac_cv_lib_gcc___chkstk=yes
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18289 ac_cv_lib_gcc___chkstk=no
18292 rm -f core conftest.err conftest.$ac_objext \
18293 conftest$ac_exeext conftest.$ac_ext
18294 LIBS=$ac_check_lib_save_LIBS
18296 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18297 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18298 if test $ac_cv_lib_gcc___chkstk = yes; then
18300 cat >>confdefs.h <<\_ACEOF
18301 #define HAVE___CHKSTK 1
18306 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18307 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18308 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18309 echo $ECHO_N "(cached) $ECHO_C" >&6
18311 ac_check_lib_save_LIBS=$LIBS
18313 cat >conftest.$ac_ext <<_ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18320 /* Override any GCC internal prototype to avoid an error.
18321 Use char because int might match the return type of a GCC
18322 builtin and then its argument prototype would still apply. */
18330 return ___chkstk ();
18335 rm -f conftest.$ac_objext conftest$ac_exeext
18336 if { (ac_try="$ac_link"
18337 case "(($ac_try" in
18338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_link") 2>conftest.er1
18344 grep -v '^ *+' conftest.er1 >conftest.err
18346 cat conftest.err >&5
18347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18348 (exit $ac_status); } &&
18349 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18350 { (case "(($ac_try" in
18351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18352 *) ac_try_echo=$ac_try;;
18354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18355 (eval "$ac_try") 2>&5
18357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18358 (exit $ac_status); }; } &&
18359 { ac_try='test -s conftest$ac_exeext'
18360 { (case "(($ac_try" in
18361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18362 *) ac_try_echo=$ac_try;;
18364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18365 (eval "$ac_try") 2>&5
18367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); }; }; then
18369 ac_cv_lib_gcc____chkstk=yes
18371 echo "$as_me: failed program was:" >&5
18372 sed 's/^/| /' conftest.$ac_ext >&5
18374 ac_cv_lib_gcc____chkstk=no
18377 rm -f core conftest.err conftest.$ac_objext \
18378 conftest$ac_exeext conftest.$ac_ext
18379 LIBS=$ac_check_lib_save_LIBS
18381 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18382 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18383 if test $ac_cv_lib_gcc____chkstk = yes; then
18385 cat >>confdefs.h <<\_ACEOF
18386 #define HAVE____CHKSTK 1
18392 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18393 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18394 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18395 echo $ECHO_N "(cached) $ECHO_C" >&6
18397 ac_check_lib_save_LIBS=$LIBS
18399 cat >conftest.$ac_ext <<_ACEOF
18402 cat confdefs.h >>conftest.$ac_ext
18403 cat >>conftest.$ac_ext <<_ACEOF
18404 /* end confdefs.h. */
18406 /* Override any GCC internal prototype to avoid an error.
18407 Use char because int might match the return type of a GCC
18408 builtin and then its argument prototype would still apply. */
18416 return __ashldi3 ();
18421 rm -f conftest.$ac_objext conftest$ac_exeext
18422 if { (ac_try="$ac_link"
18423 case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_link") 2>conftest.er1
18430 grep -v '^ *+' conftest.er1 >conftest.err
18432 cat conftest.err >&5
18433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18434 (exit $ac_status); } &&
18435 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18436 { (case "(($ac_try" in
18437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18438 *) ac_try_echo=$ac_try;;
18440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18441 (eval "$ac_try") 2>&5
18443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18444 (exit $ac_status); }; } &&
18445 { ac_try='test -s conftest$ac_exeext'
18446 { (case "(($ac_try" in
18447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18448 *) ac_try_echo=$ac_try;;
18450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18451 (eval "$ac_try") 2>&5
18453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18454 (exit $ac_status); }; }; then
18455 ac_cv_lib_gcc___ashldi3=yes
18457 echo "$as_me: failed program was:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18460 ac_cv_lib_gcc___ashldi3=no
18463 rm -f core conftest.err conftest.$ac_objext \
18464 conftest$ac_exeext conftest.$ac_ext
18465 LIBS=$ac_check_lib_save_LIBS
18467 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18468 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18469 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18471 cat >>confdefs.h <<\_ACEOF
18472 #define HAVE___ASHLDI3 1
18477 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18478 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18479 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18480 echo $ECHO_N "(cached) $ECHO_C" >&6
18482 ac_check_lib_save_LIBS=$LIBS
18484 cat >conftest.$ac_ext <<_ACEOF
18487 cat confdefs.h >>conftest.$ac_ext
18488 cat >>conftest.$ac_ext <<_ACEOF
18489 /* end confdefs.h. */
18491 /* Override any GCC internal prototype to avoid an error.
18492 Use char because int might match the return type of a GCC
18493 builtin and then its argument prototype would still apply. */
18501 return __ashrdi3 ();
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (ac_try="$ac_link"
18508 case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_link") 2>conftest.er1
18515 grep -v '^ *+' conftest.er1 >conftest.err
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } &&
18520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18521 { (case "(($ac_try" in
18522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18523 *) ac_try_echo=$ac_try;;
18525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18526 (eval "$ac_try") 2>&5
18528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18529 (exit $ac_status); }; } &&
18530 { ac_try='test -s conftest$ac_exeext'
18531 { (case "(($ac_try" in
18532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18533 *) ac_try_echo=$ac_try;;
18535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18536 (eval "$ac_try") 2>&5
18538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18539 (exit $ac_status); }; }; then
18540 ac_cv_lib_gcc___ashrdi3=yes
18542 echo "$as_me: failed program was:" >&5
18543 sed 's/^/| /' conftest.$ac_ext >&5
18545 ac_cv_lib_gcc___ashrdi3=no
18548 rm -f core conftest.err conftest.$ac_objext \
18549 conftest$ac_exeext conftest.$ac_ext
18550 LIBS=$ac_check_lib_save_LIBS
18552 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18553 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18554 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18556 cat >>confdefs.h <<\_ACEOF
18557 #define HAVE___ASHRDI3 1
18562 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18563 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18564 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18565 echo $ECHO_N "(cached) $ECHO_C" >&6
18567 ac_check_lib_save_LIBS=$LIBS
18569 cat >conftest.$ac_ext <<_ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18576 /* Override any GCC internal prototype to avoid an error.
18577 Use char because int might match the return type of a GCC
18578 builtin and then its argument prototype would still apply. */
18586 return __divdi3 ();
18591 rm -f conftest.$ac_objext conftest$ac_exeext
18592 if { (ac_try="$ac_link"
18593 case "(($ac_try" in
18594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18595 *) ac_try_echo=$ac_try;;
18597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18598 (eval "$ac_link") 2>conftest.er1
18600 grep -v '^ *+' conftest.er1 >conftest.err
18602 cat conftest.err >&5
18603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } &&
18605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18606 { (case "(($ac_try" in
18607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18608 *) ac_try_echo=$ac_try;;
18610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18611 (eval "$ac_try") 2>&5
18613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18614 (exit $ac_status); }; } &&
18615 { ac_try='test -s conftest$ac_exeext'
18616 { (case "(($ac_try" in
18617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18618 *) ac_try_echo=$ac_try;;
18620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18621 (eval "$ac_try") 2>&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); }; }; then
18625 ac_cv_lib_gcc___divdi3=yes
18627 echo "$as_me: failed program was:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18630 ac_cv_lib_gcc___divdi3=no
18633 rm -f core conftest.err conftest.$ac_objext \
18634 conftest$ac_exeext conftest.$ac_ext
18635 LIBS=$ac_check_lib_save_LIBS
18637 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18638 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18639 if test $ac_cv_lib_gcc___divdi3 = yes; then
18641 cat >>confdefs.h <<\_ACEOF
18642 #define HAVE___DIVDI3 1
18647 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18648 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18649 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18650 echo $ECHO_N "(cached) $ECHO_C" >&6
18652 ac_check_lib_save_LIBS=$LIBS
18654 cat >conftest.$ac_ext <<_ACEOF
18657 cat confdefs.h >>conftest.$ac_ext
18658 cat >>conftest.$ac_ext <<_ACEOF
18659 /* end confdefs.h. */
18661 /* Override any GCC internal prototype to avoid an error.
18662 Use char because int might match the return type of a GCC
18663 builtin and then its argument prototype would still apply. */
18671 return __fixdfdi ();
18676 rm -f conftest.$ac_objext conftest$ac_exeext
18677 if { (ac_try="$ac_link"
18678 case "(($ac_try" in
18679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18680 *) ac_try_echo=$ac_try;;
18682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18683 (eval "$ac_link") 2>conftest.er1
18685 grep -v '^ *+' conftest.er1 >conftest.err
18687 cat conftest.err >&5
18688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18689 (exit $ac_status); } &&
18690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18691 { (case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_try") 2>&5
18698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); }; } &&
18700 { ac_try='test -s conftest$ac_exeext'
18701 { (case "(($ac_try" in
18702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18703 *) ac_try_echo=$ac_try;;
18705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18706 (eval "$ac_try") 2>&5
18708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18709 (exit $ac_status); }; }; then
18710 ac_cv_lib_gcc___fixdfdi=yes
18712 echo "$as_me: failed program was:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18715 ac_cv_lib_gcc___fixdfdi=no
18718 rm -f core conftest.err conftest.$ac_objext \
18719 conftest$ac_exeext conftest.$ac_ext
18720 LIBS=$ac_check_lib_save_LIBS
18722 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18723 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18724 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18726 cat >>confdefs.h <<\_ACEOF
18727 #define HAVE___FIXDFDI 1
18732 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18733 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18734 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18735 echo $ECHO_N "(cached) $ECHO_C" >&6
18737 ac_check_lib_save_LIBS=$LIBS
18739 cat >conftest.$ac_ext <<_ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18746 /* Override any GCC internal prototype to avoid an error.
18747 Use char because int might match the return type of a GCC
18748 builtin and then its argument prototype would still apply. */
18756 return __fixsfdi ();
18761 rm -f conftest.$ac_objext conftest$ac_exeext
18762 if { (ac_try="$ac_link"
18763 case "(($ac_try" in
18764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18765 *) ac_try_echo=$ac_try;;
18767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18768 (eval "$ac_link") 2>conftest.er1
18770 grep -v '^ *+' conftest.er1 >conftest.err
18772 cat conftest.err >&5
18773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18774 (exit $ac_status); } &&
18775 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18776 { (case "(($ac_try" in
18777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18778 *) ac_try_echo=$ac_try;;
18780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18781 (eval "$ac_try") 2>&5
18783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18784 (exit $ac_status); }; } &&
18785 { ac_try='test -s conftest$ac_exeext'
18786 { (case "(($ac_try" in
18787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18788 *) ac_try_echo=$ac_try;;
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_try") 2>&5
18793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18794 (exit $ac_status); }; }; then
18795 ac_cv_lib_gcc___fixsfdi=yes
18797 echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18800 ac_cv_lib_gcc___fixsfdi=no
18803 rm -f core conftest.err conftest.$ac_objext \
18804 conftest$ac_exeext conftest.$ac_ext
18805 LIBS=$ac_check_lib_save_LIBS
18807 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18808 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18809 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18811 cat >>confdefs.h <<\_ACEOF
18812 #define HAVE___FIXSFDI 1
18817 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18818 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18819 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18820 echo $ECHO_N "(cached) $ECHO_C" >&6
18822 ac_check_lib_save_LIBS=$LIBS
18824 cat >conftest.$ac_ext <<_ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18831 /* Override any GCC internal prototype to avoid an error.
18832 Use char because int might match the return type of a GCC
18833 builtin and then its argument prototype would still apply. */
18837 char __floatdidf ();
18841 return __floatdidf ();
18846 rm -f conftest.$ac_objext conftest$ac_exeext
18847 if { (ac_try="$ac_link"
18848 case "(($ac_try" in
18849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18850 *) ac_try_echo=$ac_try;;
18852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18853 (eval "$ac_link") 2>conftest.er1
18855 grep -v '^ *+' conftest.er1 >conftest.err
18857 cat conftest.err >&5
18858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18859 (exit $ac_status); } &&
18860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18861 { (case "(($ac_try" in
18862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863 *) ac_try_echo=$ac_try;;
18865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866 (eval "$ac_try") 2>&5
18868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18869 (exit $ac_status); }; } &&
18870 { ac_try='test -s conftest$ac_exeext'
18871 { (case "(($ac_try" in
18872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18873 *) ac_try_echo=$ac_try;;
18875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18876 (eval "$ac_try") 2>&5
18878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18879 (exit $ac_status); }; }; then
18880 ac_cv_lib_gcc___floatdidf=yes
18882 echo "$as_me: failed program was:" >&5
18883 sed 's/^/| /' conftest.$ac_ext >&5
18885 ac_cv_lib_gcc___floatdidf=no
18888 rm -f core conftest.err conftest.$ac_objext \
18889 conftest$ac_exeext conftest.$ac_ext
18890 LIBS=$ac_check_lib_save_LIBS
18892 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18893 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18894 if test $ac_cv_lib_gcc___floatdidf = yes; then
18896 cat >>confdefs.h <<\_ACEOF
18897 #define HAVE___FLOATDIDF 1
18902 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18903 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18904 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18905 echo $ECHO_N "(cached) $ECHO_C" >&6
18907 ac_check_lib_save_LIBS=$LIBS
18909 cat >conftest.$ac_ext <<_ACEOF
18912 cat confdefs.h >>conftest.$ac_ext
18913 cat >>conftest.$ac_ext <<_ACEOF
18914 /* end confdefs.h. */
18916 /* Override any GCC internal prototype to avoid an error.
18917 Use char because int might match the return type of a GCC
18918 builtin and then its argument prototype would still apply. */
18926 return __lshrdi3 ();
18931 rm -f conftest.$ac_objext conftest$ac_exeext
18932 if { (ac_try="$ac_link"
18933 case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_link") 2>conftest.er1
18940 grep -v '^ *+' conftest.er1 >conftest.err
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } &&
18945 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18946 { (case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18951 (eval "$ac_try") 2>&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); }; } &&
18955 { ac_try='test -s conftest$ac_exeext'
18956 { (case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_try") 2>&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; }; then
18965 ac_cv_lib_gcc___lshrdi3=yes
18967 echo "$as_me: failed program was:" >&5
18968 sed 's/^/| /' conftest.$ac_ext >&5
18970 ac_cv_lib_gcc___lshrdi3=no
18973 rm -f core conftest.err conftest.$ac_objext \
18974 conftest$ac_exeext conftest.$ac_ext
18975 LIBS=$ac_check_lib_save_LIBS
18977 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
18978 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
18979 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
18981 cat >>confdefs.h <<\_ACEOF
18982 #define HAVE___LSHRDI3 1
18987 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
18988 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
18989 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
18990 echo $ECHO_N "(cached) $ECHO_C" >&6
18992 ac_check_lib_save_LIBS=$LIBS
18994 cat >conftest.$ac_ext <<_ACEOF
18997 cat confdefs.h >>conftest.$ac_ext
18998 cat >>conftest.$ac_ext <<_ACEOF
18999 /* end confdefs.h. */
19001 /* Override any GCC internal prototype to avoid an error.
19002 Use char because int might match the return type of a GCC
19003 builtin and then its argument prototype would still apply. */
19011 return __moddi3 ();
19016 rm -f conftest.$ac_objext conftest$ac_exeext
19017 if { (ac_try="$ac_link"
19018 case "(($ac_try" in
19019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19020 *) ac_try_echo=$ac_try;;
19022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19023 (eval "$ac_link") 2>conftest.er1
19025 grep -v '^ *+' conftest.er1 >conftest.err
19027 cat conftest.err >&5
19028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19029 (exit $ac_status); } &&
19030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19031 { (case "(($ac_try" in
19032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19033 *) ac_try_echo=$ac_try;;
19035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19036 (eval "$ac_try") 2>&5
19038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19039 (exit $ac_status); }; } &&
19040 { ac_try='test -s conftest$ac_exeext'
19041 { (case "(($ac_try" in
19042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19043 *) ac_try_echo=$ac_try;;
19045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19046 (eval "$ac_try") 2>&5
19048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19049 (exit $ac_status); }; }; then
19050 ac_cv_lib_gcc___moddi3=yes
19052 echo "$as_me: failed program was:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19055 ac_cv_lib_gcc___moddi3=no
19058 rm -f core conftest.err conftest.$ac_objext \
19059 conftest$ac_exeext conftest.$ac_ext
19060 LIBS=$ac_check_lib_save_LIBS
19062 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19063 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19064 if test $ac_cv_lib_gcc___moddi3 = yes; then
19066 cat >>confdefs.h <<\_ACEOF
19067 #define HAVE___MODDI3 1
19072 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19073 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19074 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19075 echo $ECHO_N "(cached) $ECHO_C" >&6
19077 ac_check_lib_save_LIBS=$LIBS
19079 cat >conftest.$ac_ext <<_ACEOF
19082 cat confdefs.h >>conftest.$ac_ext
19083 cat >>conftest.$ac_ext <<_ACEOF
19084 /* end confdefs.h. */
19086 /* Override any GCC internal prototype to avoid an error.
19087 Use char because int might match the return type of a GCC
19088 builtin and then its argument prototype would still apply. */
19096 return __udivdi3 ();
19101 rm -f conftest.$ac_objext conftest$ac_exeext
19102 if { (ac_try="$ac_link"
19103 case "(($ac_try" in
19104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19105 *) ac_try_echo=$ac_try;;
19107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19108 (eval "$ac_link") 2>conftest.er1
19110 grep -v '^ *+' conftest.er1 >conftest.err
19112 cat conftest.err >&5
19113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19114 (exit $ac_status); } &&
19115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19116 { (case "(($ac_try" in
19117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19118 *) ac_try_echo=$ac_try;;
19120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19121 (eval "$ac_try") 2>&5
19123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19124 (exit $ac_status); }; } &&
19125 { ac_try='test -s conftest$ac_exeext'
19126 { (case "(($ac_try" in
19127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19128 *) ac_try_echo=$ac_try;;
19130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19131 (eval "$ac_try") 2>&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); }; }; then
19135 ac_cv_lib_gcc___udivdi3=yes
19137 echo "$as_me: failed program was:" >&5
19138 sed 's/^/| /' conftest.$ac_ext >&5
19140 ac_cv_lib_gcc___udivdi3=no
19143 rm -f core conftest.err conftest.$ac_objext \
19144 conftest$ac_exeext conftest.$ac_ext
19145 LIBS=$ac_check_lib_save_LIBS
19147 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19148 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19149 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19151 cat >>confdefs.h <<\_ACEOF
19152 #define HAVE___UDIVDI3 1
19157 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19158 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19159 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19160 echo $ECHO_N "(cached) $ECHO_C" >&6
19162 ac_check_lib_save_LIBS=$LIBS
19164 cat >conftest.$ac_ext <<_ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19171 /* Override any GCC internal prototype to avoid an error.
19172 Use char because int might match the return type of a GCC
19173 builtin and then its argument prototype would still apply. */
19181 return __umoddi3 ();
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (ac_try="$ac_link"
19188 case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_link") 2>conftest.er1
19195 grep -v '^ *+' conftest.er1 >conftest.err
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } &&
19200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19201 { (case "(($ac_try" in
19202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19203 *) ac_try_echo=$ac_try;;
19205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19206 (eval "$ac_try") 2>&5
19208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19209 (exit $ac_status); }; } &&
19210 { ac_try='test -s conftest$ac_exeext'
19211 { (case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_try") 2>&5
19218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19219 (exit $ac_status); }; }; then
19220 ac_cv_lib_gcc___umoddi3=yes
19222 echo "$as_me: failed program was:" >&5
19223 sed 's/^/| /' conftest.$ac_ext >&5
19225 ac_cv_lib_gcc___umoddi3=no
19228 rm -f core conftest.err conftest.$ac_objext \
19229 conftest$ac_exeext conftest.$ac_ext
19230 LIBS=$ac_check_lib_save_LIBS
19232 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19233 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19234 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19236 cat >>confdefs.h <<\_ACEOF
19237 #define HAVE___UMODDI3 1
19243 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19244 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19245 if test "${ac_cv_lib_gcc___main+set}" = set; then
19246 echo $ECHO_N "(cached) $ECHO_C" >&6
19248 ac_check_lib_save_LIBS=$LIBS
19250 cat >conftest.$ac_ext <<_ACEOF
19253 cat confdefs.h >>conftest.$ac_ext
19254 cat >>conftest.$ac_ext <<_ACEOF
19255 /* end confdefs.h. */
19257 /* Override any GCC internal prototype to avoid an error.
19258 Use char because int might match the return type of a GCC
19259 builtin and then its argument prototype would still apply. */
19272 rm -f conftest.$ac_objext conftest$ac_exeext
19273 if { (ac_try="$ac_link"
19274 case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_link") 2>conftest.er1
19281 grep -v '^ *+' conftest.er1 >conftest.err
19283 cat conftest.err >&5
19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19285 (exit $ac_status); } &&
19286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19287 { (case "(($ac_try" in
19288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19289 *) ac_try_echo=$ac_try;;
19291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19292 (eval "$ac_try") 2>&5
19294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19295 (exit $ac_status); }; } &&
19296 { ac_try='test -s conftest$ac_exeext'
19297 { (case "(($ac_try" in
19298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19299 *) ac_try_echo=$ac_try;;
19301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19302 (eval "$ac_try") 2>&5
19304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19305 (exit $ac_status); }; }; then
19306 ac_cv_lib_gcc___main=yes
19308 echo "$as_me: failed program was:" >&5
19309 sed 's/^/| /' conftest.$ac_ext >&5
19311 ac_cv_lib_gcc___main=no
19314 rm -f core conftest.err conftest.$ac_objext \
19315 conftest$ac_exeext conftest.$ac_ext
19316 LIBS=$ac_check_lib_save_LIBS
19318 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19319 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19320 if test $ac_cv_lib_gcc___main = yes; then
19322 cat >>confdefs.h <<\_ACEOF
19323 #define HAVE___MAIN 1
19328 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19329 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19330 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19331 echo $ECHO_N "(cached) $ECHO_C" >&6
19333 ac_check_lib_save_LIBS=$LIBS
19335 cat >conftest.$ac_ext <<_ACEOF
19338 cat confdefs.h >>conftest.$ac_ext
19339 cat >>conftest.$ac_ext <<_ACEOF
19340 /* end confdefs.h. */
19342 /* Override any GCC internal prototype to avoid an error.
19343 Use char because int might match the return type of a GCC
19344 builtin and then its argument prototype would still apply. */
19352 return __cmpdi2 ();
19357 rm -f conftest.$ac_objext conftest$ac_exeext
19358 if { (ac_try="$ac_link"
19359 case "(($ac_try" in
19360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361 *) ac_try_echo=$ac_try;;
19363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19364 (eval "$ac_link") 2>conftest.er1
19366 grep -v '^ *+' conftest.er1 >conftest.err
19368 cat conftest.err >&5
19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19370 (exit $ac_status); } &&
19371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19372 { (case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_try") 2>&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); }; } &&
19381 { ac_try='test -s conftest$ac_exeext'
19382 { (case "(($ac_try" in
19383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19384 *) ac_try_echo=$ac_try;;
19386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19387 (eval "$ac_try") 2>&5
19389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19390 (exit $ac_status); }; }; then
19391 ac_cv_lib_gcc___cmpdi2=yes
19393 echo "$as_me: failed program was:" >&5
19394 sed 's/^/| /' conftest.$ac_ext >&5
19396 ac_cv_lib_gcc___cmpdi2=no
19399 rm -f core conftest.err conftest.$ac_objext \
19400 conftest$ac_exeext conftest.$ac_ext
19401 LIBS=$ac_check_lib_save_LIBS
19403 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19404 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19405 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19407 cat >>confdefs.h <<\_ACEOF
19408 #define HAVE___CMPDI2 1
19415 if test "$llvm_cv_os_type" = "MingW" ; then
19416 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19417 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19418 cat >conftest.$ac_ext <<_ACEOF
19419 #include <windows.h>
19420 #include <imagehlp.h>
19421 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19422 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19424 rm -f conftest.$ac_objext
19425 if { (ac_try="$ac_compile"
19426 case "(($ac_try" in
19427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_compile") 2>conftest.er1
19433 grep -v '^ *+' conftest.er1 >conftest.err
19435 cat conftest.err >&5
19436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19437 (exit $ac_status); } &&
19438 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19439 { (case "(($ac_try" in
19440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19441 *) ac_try_echo=$ac_try;;
19443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19444 (eval "$ac_try") 2>&5
19446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19447 (exit $ac_status); }; } &&
19448 { ac_try='test -s conftest.$ac_objext'
19449 { (case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_try") 2>&5
19456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19457 (exit $ac_status); }; }; then
19459 { echo "$as_me:$LINENO: result: yes" >&5
19460 echo "${ECHO_T}yes" >&6; }
19461 llvm_cv_win32_elmcb_pcstr="PCSTR"
19464 echo "$as_me: failed program was:" >&5
19465 sed 's/^/| /' conftest.$ac_ext >&5
19468 { echo "$as_me:$LINENO: result: no" >&5
19469 echo "${ECHO_T}no" >&6; }
19470 llvm_cv_win32_elmcb_pcstr="PSTR"
19474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19476 cat >>confdefs.h <<_ACEOF
19477 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19483 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19484 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19485 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19486 echo $ECHO_N "(cached) $ECHO_C" >&6
19489 ac_cpp='$CXXCPP $CPPFLAGS'
19490 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19491 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19492 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19494 cat >conftest.$ac_ext <<_ACEOF
19497 cat confdefs.h >>conftest.$ac_ext
19498 cat >>conftest.$ac_ext <<_ACEOF
19499 /* end confdefs.h. */
19509 rm -f conftest.$ac_objext
19510 if { (ac_try="$ac_compile"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19516 (eval "$ac_compile") 2>conftest.er1
19518 grep -v '^ *+' conftest.er1 >conftest.err
19520 cat conftest.err >&5
19521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19522 (exit $ac_status); } &&
19523 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19524 { (case "(($ac_try" in
19525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19526 *) ac_try_echo=$ac_try;;
19528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19529 (eval "$ac_try") 2>&5
19531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19532 (exit $ac_status); }; } &&
19533 { ac_try='test -s conftest.$ac_objext'
19534 { (case "(($ac_try" in
19535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536 *) ac_try_echo=$ac_try;;
19538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19539 (eval "$ac_try") 2>&5
19541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19542 (exit $ac_status); }; }; then
19543 ac_cv_func_isnan_in_math_h=yes
19545 echo "$as_me: failed program was:" >&5
19546 sed 's/^/| /' conftest.$ac_ext >&5
19548 ac_cv_func_isnan_in_math_h=no
19551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19553 ac_cpp='$CPP $CPPFLAGS'
19554 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19555 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19556 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19559 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19560 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19563 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19565 cat >>confdefs.h <<\_ACEOF
19566 #define HAVE_ISNAN_IN_MATH_H 1
19571 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19572 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19573 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19574 echo $ECHO_N "(cached) $ECHO_C" >&6
19577 ac_cpp='$CXXCPP $CPPFLAGS'
19578 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19579 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19580 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19582 cat >conftest.$ac_ext <<_ACEOF
19585 cat confdefs.h >>conftest.$ac_ext
19586 cat >>conftest.$ac_ext <<_ACEOF
19587 /* end confdefs.h. */
19597 rm -f conftest.$ac_objext
19598 if { (ac_try="$ac_compile"
19599 case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_compile") 2>conftest.er1
19606 grep -v '^ *+' conftest.er1 >conftest.err
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } &&
19611 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19612 { (case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_try") 2>&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; } &&
19621 { ac_try='test -s conftest.$ac_objext'
19622 { (case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_try") 2>&5
19629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19630 (exit $ac_status); }; }; then
19631 ac_cv_func_isnan_in_cmath=yes
19633 echo "$as_me: failed program was:" >&5
19634 sed 's/^/| /' conftest.$ac_ext >&5
19636 ac_cv_func_isnan_in_cmath=no
19639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19641 ac_cpp='$CPP $CPPFLAGS'
19642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19647 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19648 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19650 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19652 cat >>confdefs.h <<\_ACEOF
19653 #define HAVE_ISNAN_IN_CMATH 1
19658 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19659 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19660 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19664 ac_cpp='$CXXCPP $CPPFLAGS'
19665 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19666 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19667 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19669 cat >conftest.$ac_ext <<_ACEOF
19672 cat confdefs.h >>conftest.$ac_ext
19673 cat >>conftest.$ac_ext <<_ACEOF
19674 /* end confdefs.h. */
19679 float f; std::isnan(f);
19684 rm -f conftest.$ac_objext
19685 if { (ac_try="$ac_compile"
19686 case "(($ac_try" in
19687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19688 *) ac_try_echo=$ac_try;;
19690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19691 (eval "$ac_compile") 2>conftest.er1
19693 grep -v '^ *+' conftest.er1 >conftest.err
19695 cat conftest.err >&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); } &&
19698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19699 { (case "(($ac_try" in
19700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19701 *) ac_try_echo=$ac_try;;
19703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19704 (eval "$ac_try") 2>&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); }; } &&
19708 { ac_try='test -s conftest.$ac_objext'
19709 { (case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_try") 2>&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; }; then
19718 ac_cv_func_std_isnan_in_cmath=yes
19720 echo "$as_me: failed program was:" >&5
19721 sed 's/^/| /' conftest.$ac_ext >&5
19723 ac_cv_func_std_isnan_in_cmath=no
19726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19728 ac_cpp='$CPP $CPPFLAGS'
19729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19734 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19735 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19737 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19739 cat >>confdefs.h <<\_ACEOF
19740 #define HAVE_STD_ISNAN_IN_CMATH 1
19746 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19747 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19748 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19749 echo $ECHO_N "(cached) $ECHO_C" >&6
19752 ac_cpp='$CXXCPP $CPPFLAGS'
19753 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19754 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19755 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19757 cat >conftest.$ac_ext <<_ACEOF
19760 cat confdefs.h >>conftest.$ac_ext
19761 cat >>conftest.$ac_ext <<_ACEOF
19762 /* end confdefs.h. */
19772 rm -f conftest.$ac_objext
19773 if { (ac_try="$ac_compile"
19774 case "(($ac_try" in
19775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19776 *) ac_try_echo=$ac_try;;
19778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19779 (eval "$ac_compile") 2>conftest.er1
19781 grep -v '^ *+' conftest.er1 >conftest.err
19783 cat conftest.err >&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); } &&
19786 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; } &&
19796 { ac_try='test -s conftest.$ac_objext'
19797 { (case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_try") 2>&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); }; }; then
19806 ac_cv_func_isinf_in_math_h=yes
19808 echo "$as_me: failed program was:" >&5
19809 sed 's/^/| /' conftest.$ac_ext >&5
19811 ac_cv_func_isinf_in_math_h=no
19814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19816 ac_cpp='$CPP $CPPFLAGS'
19817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19822 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19823 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19825 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19827 cat >>confdefs.h <<\_ACEOF
19828 #define HAVE_ISINF_IN_MATH_H 1
19833 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19834 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19835 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19839 ac_cpp='$CXXCPP $CPPFLAGS'
19840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19844 cat >conftest.$ac_ext <<_ACEOF
19847 cat confdefs.h >>conftest.$ac_ext
19848 cat >>conftest.$ac_ext <<_ACEOF
19849 /* end confdefs.h. */
19859 rm -f conftest.$ac_objext
19860 if { (ac_try="$ac_compile"
19861 case "(($ac_try" in
19862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19863 *) ac_try_echo=$ac_try;;
19865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19866 (eval "$ac_compile") 2>conftest.er1
19868 grep -v '^ *+' conftest.er1 >conftest.err
19870 cat conftest.err >&5
19871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19872 (exit $ac_status); } &&
19873 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19874 { (case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_try") 2>&5
19881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19882 (exit $ac_status); }; } &&
19883 { ac_try='test -s conftest.$ac_objext'
19884 { (case "(($ac_try" in
19885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19886 *) ac_try_echo=$ac_try;;
19888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19889 (eval "$ac_try") 2>&5
19891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19892 (exit $ac_status); }; }; then
19893 ac_cv_func_isinf_in_cmath=yes
19895 echo "$as_me: failed program was:" >&5
19896 sed 's/^/| /' conftest.$ac_ext >&5
19898 ac_cv_func_isinf_in_cmath=no
19901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19903 ac_cpp='$CPP $CPPFLAGS'
19904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19909 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19910 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19912 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19914 cat >>confdefs.h <<\_ACEOF
19915 #define HAVE_ISINF_IN_CMATH 1
19920 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19921 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19922 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19923 echo $ECHO_N "(cached) $ECHO_C" >&6
19926 ac_cpp='$CXXCPP $CPPFLAGS'
19927 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19928 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19929 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19931 cat >conftest.$ac_ext <<_ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19941 float f; std::isinf(f);
19946 rm -f conftest.$ac_objext
19947 if { (ac_try="$ac_compile"
19948 case "(($ac_try" in
19949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19950 *) ac_try_echo=$ac_try;;
19952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19953 (eval "$ac_compile") 2>conftest.er1
19955 grep -v '^ *+' conftest.er1 >conftest.err
19957 cat conftest.err >&5
19958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19959 (exit $ac_status); } &&
19960 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19961 { (case "(($ac_try" in
19962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19963 *) ac_try_echo=$ac_try;;
19965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19966 (eval "$ac_try") 2>&5
19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19969 (exit $ac_status); }; } &&
19970 { ac_try='test -s conftest.$ac_objext'
19971 { (case "(($ac_try" in
19972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19973 *) ac_try_echo=$ac_try;;
19975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19976 (eval "$ac_try") 2>&5
19978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19979 (exit $ac_status); }; }; then
19980 ac_cv_func_std_isinf_in_cmath=yes
19982 echo "$as_me: failed program was:" >&5
19983 sed 's/^/| /' conftest.$ac_ext >&5
19985 ac_cv_func_std_isinf_in_cmath=no
19988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19990 ac_cpp='$CPP $CPPFLAGS'
19991 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19992 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19993 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19996 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19997 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19999 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20001 cat >>confdefs.h <<\_ACEOF
20002 #define HAVE_STD_ISINF_IN_CMATH 1
20007 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20008 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20009 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20010 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 ac_cpp='$CXXCPP $CPPFLAGS'
20014 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20015 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20016 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 #include <ieeefp.h>
20028 float f; finite(f);
20033 rm -f conftest.$ac_objext
20034 if { (ac_try="$ac_compile"
20035 case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_compile") 2>conftest.er1
20042 grep -v '^ *+' conftest.er1 >conftest.err
20044 cat conftest.err >&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } &&
20047 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20048 { (case "(($ac_try" in
20049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20050 *) ac_try_echo=$ac_try;;
20052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20053 (eval "$ac_try") 2>&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); }; } &&
20057 { ac_try='test -s conftest.$ac_objext'
20058 { (case "(($ac_try" in
20059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20060 *) ac_try_echo=$ac_try;;
20062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20063 (eval "$ac_try") 2>&5
20065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20066 (exit $ac_status); }; }; then
20067 ac_cv_func_finite_in_ieeefp_h=yes
20069 echo "$as_me: failed program was:" >&5
20070 sed 's/^/| /' conftest.$ac_ext >&5
20072 ac_cv_func_finite_in_ieeefp_h=no
20075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20077 ac_cpp='$CPP $CPPFLAGS'
20078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20083 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20084 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20086 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20088 cat >>confdefs.h <<\_ACEOF
20089 #define HAVE_FINITE_IN_IEEEFP_H 1
20096 if test "$llvm_cv_platform_type" = "Unix" ; then
20099 for ac_header in stdlib.h unistd.h
20101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20106 echo $ECHO_N "(cached) $ECHO_C" >&6
20108 ac_res=`eval echo '${'$as_ac_Header'}'`
20109 { echo "$as_me:$LINENO: result: $ac_res" >&5
20110 echo "${ECHO_T}$ac_res" >&6; }
20112 # Is the header compilable?
20113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20115 cat >conftest.$ac_ext <<_ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20121 $ac_includes_default
20122 #include <$ac_header>
20124 rm -f conftest.$ac_objext
20125 if { (ac_try="$ac_compile"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_compile") 2>conftest.er1
20133 grep -v '^ *+' conftest.er1 >conftest.err
20135 cat conftest.err >&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } &&
20138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20139 { (case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_try") 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; } &&
20148 { ac_try='test -s conftest.$ac_objext'
20149 { (case "(($ac_try" in
20150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20151 *) ac_try_echo=$ac_try;;
20153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20154 (eval "$ac_try") 2>&5
20156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20157 (exit $ac_status); }; }; then
20158 ac_header_compiler=yes
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20163 ac_header_compiler=no
20166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20168 echo "${ECHO_T}$ac_header_compiler" >&6; }
20170 # Is the header present?
20171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20173 cat >conftest.$ac_ext <<_ACEOF
20176 cat confdefs.h >>conftest.$ac_ext
20177 cat >>conftest.$ac_ext <<_ACEOF
20178 /* end confdefs.h. */
20179 #include <$ac_header>
20181 if { (ac_try="$ac_cpp conftest.$ac_ext"
20182 case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20189 grep -v '^ *+' conftest.er1 >conftest.err
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } >/dev/null; then
20194 if test -s conftest.err; then
20195 ac_cpp_err=$ac_c_preproc_warn_flag
20196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20203 if test -z "$ac_cpp_err"; then
20204 ac_header_preproc=yes
20206 echo "$as_me: failed program was:" >&5
20207 sed 's/^/| /' conftest.$ac_ext >&5
20209 ac_header_preproc=no
20212 rm -f conftest.err conftest.$ac_ext
20213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20214 echo "${ECHO_T}$ac_header_preproc" >&6; }
20216 # So? What about this header?
20217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20223 ac_header_preproc=yes
20226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20239 ## ------------------------------------ ##
20240 ## Report this to http://llvm.org/bugs/ ##
20241 ## ------------------------------------ ##
20243 ) | sed "s/^/$as_me: WARNING: /" >&2
20246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20249 echo $ECHO_N "(cached) $ECHO_C" >&6
20251 eval "$as_ac_Header=\$ac_header_preproc"
20253 ac_res=`eval echo '${'$as_ac_Header'}'`
20254 { echo "$as_me:$LINENO: result: $ac_res" >&5
20255 echo "${ECHO_T}$ac_res" >&6; }
20258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20259 cat >>confdefs.h <<_ACEOF
20260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20268 for ac_func in getpagesize
20270 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20271 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20272 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20273 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20276 cat >conftest.$ac_ext <<_ACEOF
20279 cat confdefs.h >>conftest.$ac_ext
20280 cat >>conftest.$ac_ext <<_ACEOF
20281 /* end confdefs.h. */
20282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20284 #define $ac_func innocuous_$ac_func
20286 /* System header to define __stub macros and hopefully few prototypes,
20287 which can conflict with char $ac_func (); below.
20288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20289 <limits.h> exists even on freestanding compilers. */
20292 # include <limits.h>
20294 # include <assert.h>
20299 /* Override any GCC internal prototype to avoid an error.
20300 Use char because int might match the return type of a GCC
20301 builtin and then its argument prototype would still apply. */
20306 /* The GNU C library defines this for functions which it implements
20307 to always fail with ENOSYS. Some functions are actually named
20308 something starting with __ and the normal name is an alias. */
20309 #if defined __stub_$ac_func || defined __stub___$ac_func
20316 return $ac_func ();
20321 rm -f conftest.$ac_objext conftest$ac_exeext
20322 if { (ac_try="$ac_link"
20323 case "(($ac_try" in
20324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20325 *) ac_try_echo=$ac_try;;
20327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20328 (eval "$ac_link") 2>conftest.er1
20330 grep -v '^ *+' conftest.er1 >conftest.err
20332 cat conftest.err >&5
20333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20334 (exit $ac_status); } &&
20335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20336 { (case "(($ac_try" in
20337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20338 *) ac_try_echo=$ac_try;;
20340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20341 (eval "$ac_try") 2>&5
20343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20344 (exit $ac_status); }; } &&
20345 { ac_try='test -s conftest$ac_exeext'
20346 { (case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_try") 2>&5
20353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20354 (exit $ac_status); }; }; then
20355 eval "$as_ac_var=yes"
20357 echo "$as_me: failed program was:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20360 eval "$as_ac_var=no"
20363 rm -f core conftest.err conftest.$ac_objext \
20364 conftest$ac_exeext conftest.$ac_ext
20366 ac_res=`eval echo '${'$as_ac_var'}'`
20367 { echo "$as_me:$LINENO: result: $ac_res" >&5
20368 echo "${ECHO_T}$ac_res" >&6; }
20369 if test `eval echo '${'$as_ac_var'}'` = yes; then
20370 cat >>confdefs.h <<_ACEOF
20371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20377 { echo "$as_me:$LINENO: checking for working mmap" >&5
20378 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20379 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20382 if test "$cross_compiling" = yes; then
20383 ac_cv_func_mmap_fixed_mapped=no
20385 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20391 $ac_includes_default
20392 /* malloc might have been renamed as rpl_malloc. */
20395 /* Thanks to Mike Haertel and Jim Avera for this test.
20396 Here is a matrix of mmap possibilities:
20397 mmap private not fixed
20398 mmap private fixed at somewhere currently unmapped
20399 mmap private fixed at somewhere already mapped
20400 mmap shared not fixed
20401 mmap shared fixed at somewhere currently unmapped
20402 mmap shared fixed at somewhere already mapped
20403 For private mappings, we should verify that changes cannot be read()
20404 back from the file, nor mmap's back from the file at a different
20405 address. (There have been systems where private was not correctly
20406 implemented like the infamous i386 svr4.0, and systems where the
20407 VM page cache was not coherent with the file system buffer cache
20408 like early versions of FreeBSD and possibly contemporary NetBSD.)
20409 For shared mappings, we should conversely verify that changes get
20410 propagated back to all the places they're supposed to be.
20412 Grep wants private fixed already mapped.
20413 The main things grep needs to know about mmap are:
20414 * does it exist and is it safe to write into the mmap'd area
20415 * how to use it (BSD variants) */
20418 #include <sys/mman.h>
20420 #if !STDC_HEADERS && !HAVE_STDLIB_H
20424 /* This mess was copied from the GNU getpagesize.h. */
20425 #if !HAVE_GETPAGESIZE
20426 /* Assume that all systems that can run configure have sys/param.h. */
20427 # if !HAVE_SYS_PARAM_H
20428 # define HAVE_SYS_PARAM_H 1
20431 # ifdef _SC_PAGESIZE
20432 # define getpagesize() sysconf(_SC_PAGESIZE)
20433 # else /* no _SC_PAGESIZE */
20434 # if HAVE_SYS_PARAM_H
20435 # include <sys/param.h>
20436 # ifdef EXEC_PAGESIZE
20437 # define getpagesize() EXEC_PAGESIZE
20438 # else /* no EXEC_PAGESIZE */
20440 # define getpagesize() NBPG * CLSIZE
20443 # endif /* no CLSIZE */
20444 # else /* no NBPG */
20446 # define getpagesize() NBPC
20447 # else /* no NBPC */
20449 # define getpagesize() PAGESIZE
20450 # endif /* PAGESIZE */
20451 # endif /* no NBPC */
20452 # endif /* no NBPG */
20453 # endif /* no EXEC_PAGESIZE */
20454 # else /* no HAVE_SYS_PARAM_H */
20455 # define getpagesize() 8192 /* punt totally */
20456 # endif /* no HAVE_SYS_PARAM_H */
20457 # endif /* no _SC_PAGESIZE */
20459 #endif /* no HAVE_GETPAGESIZE */
20464 char *data, *data2, *data3;
20468 pagesize = getpagesize ();
20470 /* First, make a file with some known garbage in it. */
20471 data = (char *) malloc (pagesize);
20474 for (i = 0; i < pagesize; ++i)
20475 *(data + i) = rand ();
20477 fd = creat ("conftest.mmap", 0600);
20480 if (write (fd, data, pagesize) != pagesize)
20484 /* Next, try to mmap the file at a fixed address which already has
20485 something else allocated at it. If we can, also make sure that
20486 we see the same garbage. */
20487 fd = open ("conftest.mmap", O_RDWR);
20490 data2 = (char *) malloc (2 * pagesize);
20493 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20494 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20495 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20497 for (i = 0; i < pagesize; ++i)
20498 if (*(data + i) != *(data2 + i))
20501 /* Finally, make sure that changes to the mapped area do not
20502 percolate back to the file as seen by read(). (This is a bug on
20503 some variants of i386 svr4.0.) */
20504 for (i = 0; i < pagesize; ++i)
20505 *(data2 + i) = *(data2 + i) + 1;
20506 data3 = (char *) malloc (pagesize);
20509 if (read (fd, data3, pagesize) != pagesize)
20511 for (i = 0; i < pagesize; ++i)
20512 if (*(data + i) != *(data3 + i))
20518 rm -f conftest$ac_exeext
20519 if { (ac_try="$ac_link"
20520 case "(($ac_try" in
20521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20522 *) ac_try_echo=$ac_try;;
20524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20525 (eval "$ac_link") 2>&5
20527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20528 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20529 { (case "(($ac_try" in
20530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20531 *) ac_try_echo=$ac_try;;
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_try") 2>&5
20536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20537 (exit $ac_status); }; }; then
20538 ac_cv_func_mmap_fixed_mapped=yes
20540 echo "$as_me: program exited with status $ac_status" >&5
20541 echo "$as_me: failed program was:" >&5
20542 sed 's/^/| /' conftest.$ac_ext >&5
20544 ( exit $ac_status )
20545 ac_cv_func_mmap_fixed_mapped=no
20547 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20552 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20553 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20554 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20556 cat >>confdefs.h <<\_ACEOF
20557 #define HAVE_MMAP 1
20561 rm -f conftest.mmap
20563 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20564 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20565 if test "${ac_cv_func_mmap_file+set}" = set; then
20566 echo $ECHO_N "(cached) $ECHO_C" >&6
20569 ac_cpp='$CPP $CPPFLAGS'
20570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20574 if test "$cross_compiling" = yes; then
20575 ac_cv_func_mmap_file=no
20577 cat >conftest.$ac_ext <<_ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20585 #include <sys/types.h>
20586 #include <sys/mman.h>
20594 fd = creat ("foo",0777);
20595 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20597 return (fd != (int) MAP_FAILED);
20602 rm -f conftest$ac_exeext
20603 if { (ac_try="$ac_link"
20604 case "(($ac_try" in
20605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20606 *) ac_try_echo=$ac_try;;
20608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20609 (eval "$ac_link") 2>&5
20611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20612 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20613 { (case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_try") 2>&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); }; }; then
20622 ac_cv_func_mmap_file=yes
20624 echo "$as_me: program exited with status $ac_status" >&5
20625 echo "$as_me: failed program was:" >&5
20626 sed 's/^/| /' conftest.$ac_ext >&5
20628 ( exit $ac_status )
20629 ac_cv_func_mmap_file=no
20631 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20636 ac_cpp='$CPP $CPPFLAGS'
20637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20643 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20644 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20645 if test "$ac_cv_func_mmap_file" = yes; then
20647 cat >>confdefs.h <<\_ACEOF
20648 #define HAVE_MMAP_FILE
20655 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20656 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20657 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20660 if test "$llvm_cv_os_type" = "Interix" ; then
20661 ac_cv_need_dev_zero_for_mmap=yes
20663 ac_cv_need_dev_zero_for_mmap=no
20667 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20668 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20669 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20671 cat >>confdefs.h <<\_ACEOF
20672 #define NEED_DEV_ZERO_FOR_MMAP 1
20677 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20679 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20680 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20682 if test "$ac_cv_func_mmap_file" = "no"
20684 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20685 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20689 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20690 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20692 ac_cpp='$CXXCPP $CPPFLAGS'
20693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20697 cat >conftest.$ac_ext <<_ACEOF
20700 cat confdefs.h >>conftest.$ac_ext
20701 cat >>conftest.$ac_ext <<_ACEOF
20702 /* end confdefs.h. */
20704 volatile unsigned long val = 1;
20705 __sync_synchronize();
20706 __sync_val_compare_and_swap(&val, 1, 0);
20707 __sync_add_and_fetch(&val, 1);
20708 __sync_sub_and_fetch(&val, 1);
20713 rm -f conftest.$ac_objext conftest$ac_exeext
20714 if { (ac_try="$ac_link"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_link") 2>conftest.er1
20722 grep -v '^ *+' conftest.er1 >conftest.err
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } &&
20727 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20728 { (case "(($ac_try" in
20729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20730 *) ac_try_echo=$ac_try;;
20732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20733 (eval "$ac_try") 2>&5
20735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20736 (exit $ac_status); }; } &&
20737 { ac_try='test -s conftest$ac_exeext'
20738 { (case "(($ac_try" in
20739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20740 *) ac_try_echo=$ac_try;;
20742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20743 (eval "$ac_try") 2>&5
20745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20746 (exit $ac_status); }; }; then
20748 ac_cpp='$CPP $CPPFLAGS'
20749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20753 { echo "$as_me:$LINENO: result: yes" >&5
20754 echo "${ECHO_T}yes" >&6; }
20756 cat >>confdefs.h <<\_ACEOF
20757 #define LLVM_HAS_ATOMICS 1
20761 echo "$as_me: failed program was:" >&5
20762 sed 's/^/| /' conftest.$ac_ext >&5
20764 { echo "$as_me:$LINENO: result: no" >&5
20765 echo "${ECHO_T}no" >&6; }
20767 cat >>confdefs.h <<\_ACEOF
20768 #define LLVM_HAS_ATOMICS 0
20771 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20772 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20775 rm -f core conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20779 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20780 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20781 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20782 if test "${llvm_cv_linux_mixed+set}" = set; then
20783 echo $ECHO_N "(cached) $ECHO_C" >&6
20786 ac_cpp='$CPP $CPPFLAGS'
20787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20791 cat >conftest.$ac_ext <<_ACEOF
20794 cat confdefs.h >>conftest.$ac_ext
20795 cat >>conftest.$ac_ext <<_ACEOF
20796 /* end confdefs.h. */
20798 error: Not x86-64 even if uname says so!
20809 rm -f conftest.$ac_objext
20810 if { (ac_try="$ac_compile"
20811 case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_compile") 2>conftest.er1
20818 grep -v '^ *+' conftest.er1 >conftest.err
20820 cat conftest.err >&5
20821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20822 (exit $ac_status); } &&
20823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20824 { (case "(($ac_try" in
20825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20826 *) ac_try_echo=$ac_try;;
20828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20829 (eval "$ac_try") 2>&5
20831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20832 (exit $ac_status); }; } &&
20833 { ac_try='test -s conftest.$ac_objext'
20834 { (case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20839 (eval "$ac_try") 2>&5
20841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20842 (exit $ac_status); }; }; then
20843 llvm_cv_linux_mixed=no
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20848 llvm_cv_linux_mixed=yes
20851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20853 ac_cpp='$CPP $CPPFLAGS'
20854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20860 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20861 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20863 if test "$llvm_cv_linux_mixed" = "yes"; then
20864 llvm_cv_target_arch="x86"
20870 for ac_func in __dso_handle
20872 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20873 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20874 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20875 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20876 echo $ECHO_N "(cached) $ECHO_C" >&6
20878 cat >conftest.$ac_ext <<_ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20885 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20886 #define $ac_func innocuous_$ac_func
20888 /* System header to define __stub macros and hopefully few prototypes,
20889 which can conflict with char $ac_func (); below.
20890 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20891 <limits.h> exists even on freestanding compilers. */
20894 # include <limits.h>
20896 # include <assert.h>
20901 /* Override any GCC internal prototype to avoid an error.
20902 Use char because int might match the return type of a GCC
20903 builtin and then its argument prototype would still apply. */
20908 /* The GNU C library defines this for functions which it implements
20909 to always fail with ENOSYS. Some functions are actually named
20910 something starting with __ and the normal name is an alias. */
20911 #if defined __stub_$ac_func || defined __stub___$ac_func
20918 return $ac_func ();
20923 rm -f conftest.$ac_objext conftest$ac_exeext
20924 if { (ac_try="$ac_link"
20925 case "(($ac_try" in
20926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20927 *) ac_try_echo=$ac_try;;
20929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20930 (eval "$ac_link") 2>conftest.er1
20932 grep -v '^ *+' conftest.er1 >conftest.err
20934 cat conftest.err >&5
20935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20936 (exit $ac_status); } &&
20937 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20938 { (case "(($ac_try" in
20939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20940 *) ac_try_echo=$ac_try;;
20942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20943 (eval "$ac_try") 2>&5
20945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20946 (exit $ac_status); }; } &&
20947 { ac_try='test -s conftest$ac_exeext'
20948 { (case "(($ac_try" in
20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_try") 2>&5
20955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20956 (exit $ac_status); }; }; then
20957 eval "$as_ac_var=yes"
20959 echo "$as_me: failed program was:" >&5
20960 sed 's/^/| /' conftest.$ac_ext >&5
20962 eval "$as_ac_var=no"
20965 rm -f core conftest.err conftest.$ac_objext \
20966 conftest$ac_exeext conftest.$ac_ext
20968 ac_res=`eval echo '${'$as_ac_var'}'`
20969 { echo "$as_me:$LINENO: result: $ac_res" >&5
20970 echo "${ECHO_T}$ac_res" >&6; }
20971 if test `eval echo '${'$as_ac_var'}'` = yes; then
20972 cat >>confdefs.h <<_ACEOF
20973 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20980 SHLIBEXT=$libltdl_cv_shlibext
20983 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20986 if test "${prefix}" = "NONE" ; then
20987 prefix="/usr/local"
20989 eval LLVM_PREFIX="${prefix}";
20990 eval LLVM_BINDIR="${prefix}/bin";
20991 eval LLVM_LIBDIR="${prefix}/lib";
20992 eval LLVM_DATADIR="${prefix}/share/llvm";
20993 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20994 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20995 eval LLVM_INCLUDEDIR="${prefix}/include";
20996 eval LLVM_INFODIR="${prefix}/info";
20997 eval LLVM_MANDIR="${prefix}/man";
20998 LLVM_CONFIGTIME=`date`
21010 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21011 LLVM_CONFIGTIME="(timestamp not enabled)"
21015 cat >>confdefs.h <<_ACEOF
21016 #define LLVM_PREFIX "$LLVM_PREFIX"
21020 cat >>confdefs.h <<_ACEOF
21021 #define LLVM_BINDIR "$LLVM_BINDIR"
21025 cat >>confdefs.h <<_ACEOF
21026 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21030 cat >>confdefs.h <<_ACEOF
21031 #define LLVM_DATADIR "$LLVM_DATADIR"
21035 cat >>confdefs.h <<_ACEOF
21036 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21040 cat >>confdefs.h <<_ACEOF
21041 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21045 cat >>confdefs.h <<_ACEOF
21046 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21050 cat >>confdefs.h <<_ACEOF
21051 #define LLVM_INFODIR "$LLVM_INFODIR"
21055 cat >>confdefs.h <<_ACEOF
21056 #define LLVM_MANDIR "$LLVM_MANDIR"
21060 cat >>confdefs.h <<_ACEOF
21061 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21065 cat >>confdefs.h <<_ACEOF
21066 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21070 if test "$BINDINGS_TO_BUILD" = auto ; then
21071 BINDINGS_TO_BUILD=""
21072 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21073 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21076 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21082 binding_prereqs_failed=0
21083 for a_binding in $BINDINGS_TO_BUILD ; do
21084 case "$a_binding" in
21086 if test "x$OCAMLC" = x ; then
21087 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21088 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21089 binding_prereqs_failed=1
21091 if test "x$OCAMLDEP" = x ; then
21092 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21093 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21094 binding_prereqs_failed=1
21096 if test "x$OCAMLOPT" = x ; then
21097 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21098 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21100 if test "x$with_ocaml_libdir" != xauto ; then
21101 OCAML_LIBDIR=$with_ocaml_libdir
21104 ocaml_stdlib="`"$OCAMLC" -where`"
21105 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21107 # ocaml stdlib is beneath our prefix; use stdlib
21108 OCAML_LIBDIR=$ocaml_stdlib
21111 # ocaml stdlib is outside our prefix; use libdir/ocaml
21112 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21119 if test "$binding_prereqs_failed" = 1 ; then
21120 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21121 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21122 { (exit 1); exit 1; }; }
21125 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21126 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21127 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21128 echo $ECHO_N "(cached) $ECHO_C" >&6
21131 ac_cpp='$CXXCPP $CPPFLAGS'
21132 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21133 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21134 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21136 oldcxxflags="$CXXFLAGS"
21137 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21138 cat >conftest.$ac_ext <<_ACEOF
21141 cat confdefs.h >>conftest.$ac_ext
21142 cat >>conftest.$ac_ext <<_ACEOF
21143 /* end confdefs.h. */
21144 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21153 rm -f conftest.$ac_objext
21154 if { (ac_try="$ac_compile"
21155 case "(($ac_try" in
21156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21157 *) ac_try_echo=$ac_try;;
21159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21160 (eval "$ac_compile") 2>conftest.er1
21162 grep -v '^ *+' conftest.er1 >conftest.err
21164 cat conftest.err >&5
21165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21166 (exit $ac_status); } &&
21167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21168 { (case "(($ac_try" in
21169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21170 *) ac_try_echo=$ac_try;;
21172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21173 (eval "$ac_try") 2>&5
21175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21176 (exit $ac_status); }; } &&
21177 { ac_try='test -s conftest.$ac_objext'
21178 { (case "(($ac_try" in
21179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21180 *) ac_try_echo=$ac_try;;
21182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21183 (eval "$ac_try") 2>&5
21185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21186 (exit $ac_status); }; }; then
21187 llvm_cv_cxx_visibility_inlines_hidden=yes
21189 echo "$as_me: failed program was:" >&5
21190 sed 's/^/| /' conftest.$ac_ext >&5
21192 llvm_cv_cxx_visibility_inlines_hidden=no
21195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21196 CXXFLAGS="$oldcxxflags"
21198 ac_cpp='$CPP $CPPFLAGS'
21199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21205 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21206 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21207 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21208 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21211 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21216 if test "$llvm_cv_link_use_r" = "yes" ; then
21223 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21224 RDYNAMIC="-Wl,-export-dynamic"
21231 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21238 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21240 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21242 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21244 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21246 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21249 ac_config_files="$ac_config_files Makefile.config"
21252 ac_config_files="$ac_config_files llvm.spec"
21255 ac_config_files="$ac_config_files docs/doxygen.cfg"
21258 if test "${clang_src_root}" = ""; then
21259 clang_src_root="$srcdir/tools/clang"
21261 if test -f ${clang_src_root}/README.txt; then
21262 configh="include/clang/Config/config.h"
21263 doxy="docs/doxygen.cfg"
21264 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21266 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21270 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21273 ac_config_commands="$ac_config_commands setup"
21275 ac_config_commands="$ac_config_commands Makefile"
21278 ac_config_commands="$ac_config_commands Makefile.common"
21281 ac_config_commands="$ac_config_commands examples/Makefile"
21284 ac_config_commands="$ac_config_commands lib/Makefile"
21287 ac_config_commands="$ac_config_commands runtime/Makefile"
21290 ac_config_commands="$ac_config_commands test/Makefile"
21293 ac_config_commands="$ac_config_commands test/Makefile.tests"
21296 ac_config_commands="$ac_config_commands unittests/Makefile"
21299 ac_config_commands="$ac_config_commands tools/Makefile"
21302 ac_config_commands="$ac_config_commands utils/Makefile"
21305 ac_config_commands="$ac_config_commands projects/Makefile"
21308 ac_config_commands="$ac_config_commands bindings/Makefile"
21311 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21315 cat >confcache <<\_ACEOF
21316 # This file is a shell script that caches the results of configure
21317 # tests run on this system so they can be shared between configure
21318 # scripts and configure runs, see configure's option --config-cache.
21319 # It is not useful on other systems. If it contains results you don't
21320 # want to keep, you may remove or edit it.
21322 # config.status only pays attention to the cache file if you give it
21323 # the --recheck option to rerun configure.
21325 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21326 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21327 # following values.
21331 # The following way of writing the cache mishandles newlines in values,
21332 # but we know of no workaround that is simple, portable, and efficient.
21333 # So, we kill variables containing newlines.
21334 # Ultrix sh set writes to stderr and can't be redirected directly,
21335 # and sets the high bit in the cache file unless we assign to the vars.
21337 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21338 eval ac_val=\$$ac_var
21342 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21343 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21346 _ | IFS | as_nl) ;; #(
21347 *) $as_unset $ac_var ;;
21353 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21354 *${as_nl}ac_space=\ *)
21355 # `set' does not quote correctly, so add quotes (double-quote
21356 # substitution turns \\\\ into \\, and sed turns \\ into \).
21359 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21362 # `set' quotes correctly as required by POSIX, so do not add quotes.
21363 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21372 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21374 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21376 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21377 if test -w "$cache_file"; then
21378 test "x$cache_file" != "x/dev/null" &&
21379 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21380 echo "$as_me: updating cache $cache_file" >&6;}
21381 cat confcache >$cache_file
21383 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21384 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21389 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21390 # Let make expand exec_prefix.
21391 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21393 DEFS=-DHAVE_CONFIG_H
21397 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21398 # 1. Remove the extension, and $U if already installed.
21399 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21400 ac_i=`echo "$ac_i" | sed "$ac_script"`
21401 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21402 # will be set to the directory where LIBOBJS objects are built.
21403 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21404 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21406 LIBOBJS=$ac_libobjs
21408 LTLIBOBJS=$ac_ltlibobjs
21411 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21412 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21413 Usually this means the macro was only invoked conditionally." >&5
21414 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21415 Usually this means the macro was only invoked conditionally." >&2;}
21416 { (exit 1); exit 1; }; }
21418 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21419 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21420 Usually this means the macro was only invoked conditionally." >&5
21421 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21422 Usually this means the macro was only invoked conditionally." >&2;}
21423 { (exit 1); exit 1; }; }
21426 : ${CONFIG_STATUS=./config.status}
21427 ac_clean_files_save=$ac_clean_files
21428 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21429 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21430 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21431 cat >$CONFIG_STATUS <<_ACEOF
21433 # Generated by $as_me.
21434 # Run this file to recreate the current configuration.
21435 # Compiler output produced by configure, useful for debugging
21436 # configure, is in config.log if it exists.
21439 ac_cs_recheck=false
21441 SHELL=\${CONFIG_SHELL-$SHELL}
21444 cat >>$CONFIG_STATUS <<\_ACEOF
21445 ## --------------------- ##
21446 ## M4sh Initialization. ##
21447 ## --------------------- ##
21449 # Be Bourne compatible
21450 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21453 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21454 # is contrary to our usage. Disable this feature.
21455 alias -g '${1+"$@"}'='"$@"'
21456 setopt NO_GLOB_SUBST
21458 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21460 BIN_SH=xpg4; export BIN_SH # for Tru64
21461 DUALCASE=1; export DUALCASE # for MKS sh
21465 # Avoid depending upon Character Ranges.
21466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21469 as_cr_digits='0123456789'
21470 as_cr_alnum=$as_cr_Letters$as_cr_digits
21472 # The user is always right.
21473 if test "${PATH_SEPARATOR+set}" != set; then
21474 echo "#! /bin/sh" >conf$$.sh
21475 echo "exit 0" >>conf$$.sh
21477 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21485 # Support unset when possible.
21486 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21494 # We need space, tab and new line, in precisely that order. Quoting is
21495 # there to prevent editors from complaining about space-tab.
21496 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21497 # splitting by setting IFS to empty value.)
21502 # Find who we are. Look in the path if we contain no directory separator.
21504 *[\\/]* ) as_myself=$0 ;;
21505 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21506 for as_dir in $PATH
21509 test -z "$as_dir" && as_dir=.
21510 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21516 # We did not find ourselves, most probably we were run as `sh COMMAND'
21517 # in which case we are not to be found in the path.
21518 if test "x$as_myself" = x; then
21521 if test ! -f "$as_myself"; then
21522 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21523 { (exit 1); exit 1; }
21526 # Work around bugs in pre-3.0 UWIN ksh.
21527 for as_var in ENV MAIL MAILPATH
21528 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21536 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21537 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21538 LC_TELEPHONE LC_TIME
21540 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21541 eval $as_var=C; export $as_var
21543 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21547 # Required to use basename.
21548 if expr a : '\(a\)' >/dev/null 2>&1 &&
21549 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21555 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21556 as_basename=basename
21562 # Name of the executable.
21563 as_me=`$as_basename -- "$0" ||
21564 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21565 X"$0" : 'X\(//\)$' \| \
21566 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21568 sed '/^.*\/\([^/][^/]*\)\/*$/{
21587 as_lineno_1=$LINENO
21588 as_lineno_2=$LINENO
21589 test "x$as_lineno_1" != "x$as_lineno_2" &&
21590 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21592 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21593 # uniformly replaced by the line number. The first 'sed' inserts a
21594 # line-number line after each line using $LINENO; the second 'sed'
21595 # does the real work. The second script uses 'N' to pair each
21596 # line-number line with the line containing $LINENO, and appends
21597 # trailing '-' during substitution so that $LINENO is not a special
21598 # case at line end.
21599 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21600 # scripts with optimization help from Paolo Bonzini. Blame Lee
21601 # E. McMahon (1931-1989) for sed's syntax. :-)
21613 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21616 ' >$as_me.lineno &&
21617 chmod +x "$as_me.lineno" ||
21618 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21619 { (exit 1); exit 1; }; }
21621 # Don't try to exec as it changes $[0], causing all sort of problems
21622 # (the dirname of $[0] is not the place where we might find the
21623 # original and so on. Autoconf is especially sensitive to this).
21624 . "./$as_me.lineno"
21625 # Exit status is that of the last command.
21630 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21636 ECHO_C= ECHO_N= ECHO_T=
21637 case `echo -n x` in
21639 case `echo 'x\c'` in
21640 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21647 if expr a : '\(a\)' >/dev/null 2>&1 &&
21648 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21654 rm -f conf$$ conf$$.exe conf$$.file
21655 if test -d conf$$.dir; then
21656 rm -f conf$$.dir/conf$$.file
21662 if ln -s conf$$.file conf$$ 2>/dev/null; then
21664 # ... but there are two gotchas:
21665 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21666 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21667 # In both cases, we have to default to `cp -p'.
21668 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21670 elif ln conf$$.file conf$$ 2>/dev/null; then
21675 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21676 rmdir conf$$.dir 2>/dev/null
21678 if mkdir -p . 2>/dev/null; then
21681 test -d ./-p && rmdir ./-p
21685 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21686 # systems may use methods other than mode bits to determine executability.
21687 cat >conf$$.file <<_ASEOF
21691 chmod +x conf$$.file
21692 if test -x conf$$.file >/dev/null 2>&1; then
21693 as_executable_p="test -x"
21699 # Sed expression to map a string onto a valid CPP name.
21700 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21702 # Sed expression to map a string onto a valid variable name.
21703 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21708 # Save the log message, to keep $[0] and so on meaningful, and to
21709 # report actual input values of CONFIG_FILES etc. instead of their
21710 # values after options handling.
21712 This file was extended by LLVM $as_me 3.2svn, which was
21713 generated by GNU Autoconf 2.60. Invocation command line was
21715 CONFIG_FILES = $CONFIG_FILES
21716 CONFIG_HEADERS = $CONFIG_HEADERS
21717 CONFIG_LINKS = $CONFIG_LINKS
21718 CONFIG_COMMANDS = $CONFIG_COMMANDS
21721 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21726 cat >>$CONFIG_STATUS <<_ACEOF
21727 # Files that config.status was made for.
21728 config_files="$ac_config_files"
21729 config_headers="$ac_config_headers"
21730 config_commands="$ac_config_commands"
21734 cat >>$CONFIG_STATUS <<\_ACEOF
21736 \`$as_me' instantiates files from templates according to the
21737 current configuration.
21739 Usage: $0 [OPTIONS] [FILE]...
21741 -h, --help print this help, then exit
21742 -V, --version print version number, then exit
21743 -q, --quiet do not print progress messages
21744 -d, --debug don't remove temporary files
21745 --recheck update $as_me by reconfiguring in the same conditions
21746 --file=FILE[:TEMPLATE]
21747 instantiate the configuration file FILE
21748 --header=FILE[:TEMPLATE]
21749 instantiate the configuration header FILE
21751 Configuration files:
21754 Configuration headers:
21757 Configuration commands:
21760 Report bugs to <bug-autoconf@gnu.org>."
21763 cat >>$CONFIG_STATUS <<_ACEOF
21765 LLVM config.status 3.2svn
21766 configured by $0, generated by GNU Autoconf 2.60,
21767 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21769 Copyright (C) 2006 Free Software Foundation, Inc.
21770 This config.status script is free software; the Free Software Foundation
21771 gives unlimited permission to copy, distribute and modify it."
21778 cat >>$CONFIG_STATUS <<\_ACEOF
21779 # If no file are specified by the user, then we need to provide default
21780 # value. By we need to know if files were specified by the user.
21786 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21787 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21798 # Handling of the options.
21799 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21801 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21802 echo "$ac_cs_version"; exit ;;
21803 --debug | --debu | --deb | --de | --d | -d )
21805 --file | --fil | --fi | --f )
21807 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21808 ac_need_defaults=false;;
21809 --header | --heade | --head | --hea )
21811 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21812 ac_need_defaults=false;;
21814 # Conflict between --help and --header
21815 { echo "$as_me: error: ambiguous option: $1
21816 Try \`$0 --help' for more information." >&2
21817 { (exit 1); exit 1; }; };;
21818 --help | --hel | -h )
21819 echo "$ac_cs_usage"; exit ;;
21820 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21821 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21824 # This is an error.
21825 -*) { echo "$as_me: error: unrecognized option: $1
21826 Try \`$0 --help' for more information." >&2
21827 { (exit 1); exit 1; }; } ;;
21829 *) ac_config_targets="$ac_config_targets $1"
21830 ac_need_defaults=false ;;
21836 ac_configure_extra_args=
21838 if $ac_cs_silent; then
21840 ac_configure_extra_args="$ac_configure_extra_args --silent"
21844 cat >>$CONFIG_STATUS <<_ACEOF
21845 if \$ac_cs_recheck; then
21846 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21847 CONFIG_SHELL=$SHELL
21848 export CONFIG_SHELL
21849 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21853 cat >>$CONFIG_STATUS <<\_ACEOF
21857 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21858 ## Running $as_me. ##
21864 cat >>$CONFIG_STATUS <<_ACEOF
21868 llvm_src="${srcdir}"
21872 cat >>$CONFIG_STATUS <<\_ACEOF
21874 # Handling of arguments.
21875 for ac_config_target in $ac_config_targets
21877 case $ac_config_target in
21878 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21879 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21880 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21881 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21882 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21883 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21884 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21885 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21886 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21887 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21888 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21889 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21890 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21891 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21892 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21893 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21894 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21895 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21896 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21897 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21898 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21899 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21900 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21901 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21902 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21903 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21904 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21906 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21907 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21908 { (exit 1); exit 1; }; };;
21913 # If the user did not use the arguments to specify the items to instantiate,
21914 # then the envvar interface is used. Set only those that are not.
21915 # We use the long form for the default assignment because of an extremely
21916 # bizarre bug on SunOS 4.1.3.
21917 if $ac_need_defaults; then
21918 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21919 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21920 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21923 # Have a temporary directory for convenience. Make it in the build tree
21924 # simply because there is no reason against having it here, and in addition,
21925 # creating and moving files from /tmp can sometimes cause problems.
21926 # Hook for its removal unless debugging.
21927 # Note that there is a small window in which the directory will not be cleaned:
21928 # after its creation but before its name has been assigned to `$tmp'.
21932 trap 'exit_status=$?
21933 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21935 trap '{ (exit 1); exit 1; }' 1 2 13 15
21937 # Create a (secure) tmp directory for tmp files.
21940 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21941 test -n "$tmp" && test -d "$tmp"
21944 tmp=./conf$$-$RANDOM
21945 (umask 077 && mkdir "$tmp")
21948 echo "$me: cannot create a temporary directory in ." >&2
21949 { (exit 1); exit 1; }
21953 # Set up the sed scripts for CONFIG_FILES section.
21956 # No need to generate the scripts if there are no CONFIG_FILES.
21957 # This happens for instance when ./config.status config.h
21958 if test -n "$CONFIG_FILES"; then
21965 for ac_last_try in false false false false false :; do
21966 cat >conf$$subs.sed <<_ACEOF
21967 SHELL!$SHELL$ac_delim
21968 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21969 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21970 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21971 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21972 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21973 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21974 exec_prefix!$exec_prefix$ac_delim
21975 prefix!$prefix$ac_delim
21976 program_transform_name!$program_transform_name$ac_delim
21977 bindir!$bindir$ac_delim
21978 sbindir!$sbindir$ac_delim
21979 libexecdir!$libexecdir$ac_delim
21980 datarootdir!$datarootdir$ac_delim
21981 datadir!$datadir$ac_delim
21982 sysconfdir!$sysconfdir$ac_delim
21983 sharedstatedir!$sharedstatedir$ac_delim
21984 localstatedir!$localstatedir$ac_delim
21985 includedir!$includedir$ac_delim
21986 oldincludedir!$oldincludedir$ac_delim
21987 docdir!$docdir$ac_delim
21988 infodir!$infodir$ac_delim
21989 htmldir!$htmldir$ac_delim
21990 dvidir!$dvidir$ac_delim
21991 pdfdir!$pdfdir$ac_delim
21992 psdir!$psdir$ac_delim
21993 libdir!$libdir$ac_delim
21994 localedir!$localedir$ac_delim
21995 mandir!$mandir$ac_delim
21996 DEFS!$DEFS$ac_delim
21997 ECHO_C!$ECHO_C$ac_delim
21998 ECHO_N!$ECHO_N$ac_delim
21999 ECHO_T!$ECHO_T$ac_delim
22000 LIBS!$LIBS$ac_delim
22001 build_alias!$build_alias$ac_delim
22002 host_alias!$host_alias$ac_delim
22003 target_alias!$target_alias$ac_delim
22004 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22006 CFLAGS!$CFLAGS$ac_delim
22007 LDFLAGS!$LDFLAGS$ac_delim
22008 CPPFLAGS!$CPPFLAGS$ac_delim
22009 ac_ct_CC!$ac_ct_CC$ac_delim
22010 EXEEXT!$EXEEXT$ac_delim
22011 OBJEXT!$OBJEXT$ac_delim
22013 CXXFLAGS!$CXXFLAGS$ac_delim
22014 ac_ct_CXX!$ac_ct_CXX$ac_delim
22016 subdirs!$subdirs$ac_delim
22017 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22018 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22019 build!$build$ac_delim
22020 build_cpu!$build_cpu$ac_delim
22021 build_vendor!$build_vendor$ac_delim
22022 build_os!$build_os$ac_delim
22023 host!$host$ac_delim
22024 host_cpu!$host_cpu$ac_delim
22025 host_vendor!$host_vendor$ac_delim
22026 host_os!$host_os$ac_delim
22027 target!$target$ac_delim
22028 target_cpu!$target_cpu$ac_delim
22029 target_vendor!$target_vendor$ac_delim
22030 target_os!$target_os$ac_delim
22032 HOST_OS!$HOST_OS$ac_delim
22033 TARGET_OS!$TARGET_OS$ac_delim
22034 LINKALL!$LINKALL$ac_delim
22035 NOLINKALL!$NOLINKALL$ac_delim
22036 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22037 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22038 ARCH!$ARCH$ac_delim
22039 ENDIAN!$ENDIAN$ac_delim
22040 GREP!$GREP$ac_delim
22041 EGREP!$EGREP$ac_delim
22042 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22043 BUILD_CC!$BUILD_CC$ac_delim
22044 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22045 BUILD_CXX!$BUILD_CXX$ac_delim
22046 CVSBUILD!$CVSBUILD$ac_delim
22047 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22048 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22049 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22050 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22051 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22052 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22053 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22054 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22056 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22057 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22058 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22059 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22060 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22061 ENABLE_PIC!$ENABLE_PIC$ac_delim
22062 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22063 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22066 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22068 elif $ac_last_try; then
22069 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22070 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22071 { (exit 1); exit 1; }; }
22073 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22077 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22078 if test -n "$ac_eof"; then
22079 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22080 ac_eof=`expr $ac_eof + 1`
22083 cat >>$CONFIG_STATUS <<_ACEOF
22084 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22085 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22088 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22089 s/^/s,@/; s/!/@,|#_!!_#|/
22092 s/'"$ac_delim"'$/,g/; t
22094 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22095 ' >>$CONFIG_STATUS <conf$$subs.sed
22096 rm -f conf$$subs.sed
22097 cat >>$CONFIG_STATUS <<_ACEOF
22103 for ac_last_try in false false false false false :; do
22104 cat >conf$$subs.sed <<_ACEOF
22105 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22106 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22107 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22108 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22109 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22110 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22111 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22112 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22113 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22114 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22115 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22116 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22118 ifGNUmake!$ifGNUmake$ac_delim
22119 LN_S!$LN_S$ac_delim
22122 DATE!$DATE$ac_delim
22123 FIND!$FIND$ac_delim
22124 MKDIR!$MKDIR$ac_delim
22126 RANLIB!$RANLIB$ac_delim
22131 BINPWD!$BINPWD$ac_delim
22132 GRAPHVIZ!$GRAPHVIZ$ac_delim
22135 NEATO!$NEATO$ac_delim
22136 TWOPI!$TWOPI$ac_delim
22137 CIRCO!$CIRCO$ac_delim
22139 DOTTY!$DOTTY$ac_delim
22140 XDOT_PY!$XDOT_PY$ac_delim
22141 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22142 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22143 INSTALL_DATA!$INSTALL_DATA$ac_delim
22144 BZIP2!$BZIP2$ac_delim
22146 DOXYGEN!$DOXYGEN$ac_delim
22147 GROFF!$GROFF$ac_delim
22148 GZIPBIN!$GZIPBIN$ac_delim
22149 PDFROFF!$PDFROFF$ac_delim
22150 RUNTEST!$RUNTEST$ac_delim
22151 TCLSH!$TCLSH$ac_delim
22153 OCAMLC!$OCAMLC$ac_delim
22154 OCAMLOPT!$OCAMLOPT$ac_delim
22155 OCAMLDEP!$OCAMLDEP$ac_delim
22156 OCAMLDOC!$OCAMLDOC$ac_delim
22158 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22159 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22160 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22161 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22162 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22163 LIBADD_DL!$LIBADD_DL$ac_delim
22164 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22165 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22166 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22167 USE_UDIS86!$USE_UDIS86$ac_delim
22168 USE_OPROFILE!$USE_OPROFILE$ac_delim
22169 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22170 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22171 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22172 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22173 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22174 MMAP_FILE!$MMAP_FILE$ac_delim
22175 SHLIBEXT!$SHLIBEXT$ac_delim
22176 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22177 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22178 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22179 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22180 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22181 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22182 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22183 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22184 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22185 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22186 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22187 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22188 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22189 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22190 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22191 RPATH!$RPATH$ac_delim
22192 RDYNAMIC!$RDYNAMIC$ac_delim
22193 LIBOBJS!$LIBOBJS$ac_delim
22194 LTLIBOBJS!$LTLIBOBJS$ac_delim
22197 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 90; then
22199 elif $ac_last_try; then
22200 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22201 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22202 { (exit 1); exit 1; }; }
22204 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22208 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22209 if test -n "$ac_eof"; then
22210 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22211 ac_eof=`expr $ac_eof + 1`
22214 cat >>$CONFIG_STATUS <<_ACEOF
22215 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22216 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22219 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22220 s/^/s,@/; s/!/@,|#_!!_#|/
22223 s/'"$ac_delim"'$/,g/; t
22225 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22226 ' >>$CONFIG_STATUS <conf$$subs.sed
22227 rm -f conf$$subs.sed
22228 cat >>$CONFIG_STATUS <<_ACEOF
22235 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22236 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22237 # trailing colons and then remove the whole line if VPATH becomes empty
22238 # (actually we leave an empty line to preserve line numbers).
22239 if test "x$srcdir" = x.; then
22240 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22241 s/:*\$(srcdir):*/:/
22242 s/:*\${srcdir}:*/:/
22244 s/^\([^=]*=[ ]*\):*/\1/
22250 cat >>$CONFIG_STATUS <<\_ACEOF
22251 fi # test -n "$CONFIG_FILES"
22254 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22257 :[FHLC]) ac_mode=$ac_tag; continue;;
22259 case $ac_mode$ac_tag in
22261 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22262 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22263 { (exit 1); exit 1; }; };;
22264 :[FH]-) ac_tag=-:-;;
22265 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22282 -) ac_f="$tmp/stdin";;
22283 *) # Look for the file first in the build tree, then in the source tree
22284 # (if the path is not absolute). The absolute path cannot be DOS-style,
22285 # because $ac_f cannot contain `:'.
22289 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22291 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22292 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22293 { (exit 1); exit 1; }; };;
22295 ac_file_inputs="$ac_file_inputs $ac_f"
22298 # Let's still pretend it is `configure' which instantiates (i.e., don't
22299 # use $as_me), people would be surprised to read:
22300 # /* config.h. Generated by config.status. */
22301 configure_input="Generated from "`IFS=:
22302 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22303 if test x"$ac_file" != x-; then
22304 configure_input="$ac_file. $configure_input"
22305 { echo "$as_me:$LINENO: creating $ac_file" >&5
22306 echo "$as_me: creating $ac_file" >&6;}
22310 *:-:* | *:-) cat >"$tmp/stdin";;
22315 ac_dir=`$as_dirname -- "$ac_file" ||
22316 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22317 X"$ac_file" : 'X\(//\)[^/]' \| \
22318 X"$ac_file" : 'X\(//\)$' \| \
22319 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22325 /^X\(\/\/\)[^/].*/{
22340 -*) as_dir=./$as_dir;;
22342 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22346 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22347 *) as_qdir=$as_dir;;
22349 as_dirs="'$as_qdir' $as_dirs"
22350 as_dir=`$as_dirname -- "$as_dir" ||
22351 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22352 X"$as_dir" : 'X\(//\)[^/]' \| \
22353 X"$as_dir" : 'X\(//\)$' \| \
22354 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22360 /^X\(\/\/\)[^/].*/{
22373 test -d "$as_dir" && break
22375 test -z "$as_dirs" || eval "mkdir $as_dirs"
22376 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22377 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22378 { (exit 1); exit 1; }; }; }
22382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22384 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22385 # A ".." for each directory in $ac_dir_suffix.
22386 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22387 case $ac_top_builddir_sub in
22388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22392 ac_abs_top_builddir=$ac_pwd
22393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22394 # for backward compatibility:
22395 ac_top_builddir=$ac_top_build_prefix
22398 .) # We are building in place.
22400 ac_top_srcdir=$ac_top_builddir_sub
22401 ac_abs_top_srcdir=$ac_pwd ;;
22402 [\\/]* | ?:[\\/]* ) # Absolute name.
22403 ac_srcdir=$srcdir$ac_dir_suffix;
22404 ac_top_srcdir=$srcdir
22405 ac_abs_top_srcdir=$srcdir ;;
22406 *) # Relative name.
22407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22408 ac_top_srcdir=$ac_top_build_prefix$srcdir
22409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22426 cat >>$CONFIG_STATUS <<\_ACEOF
22427 # If the template does not know about datarootdir, expand it.
22428 # FIXME: This hack should be removed a few years after 2.60.
22429 ac_datarootdir_hack=; ac_datarootdir_seen=
22431 case `sed -n '/datarootdir/ {
22440 ' $ac_file_inputs` in
22441 *datarootdir*) ac_datarootdir_seen=yes;;
22442 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22443 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22444 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22446 cat >>$CONFIG_STATUS <<_ACEOF
22447 ac_datarootdir_hack='
22448 s&@datadir@&$datadir&g
22449 s&@docdir@&$docdir&g
22450 s&@infodir@&$infodir&g
22451 s&@localedir@&$localedir&g
22452 s&@mandir@&$mandir&g
22453 s&\\\${datarootdir}&$datarootdir&g' ;;
22457 # Neutralize VPATH when `$srcdir' = `.'.
22458 # Shell code in configure.ac might set extrasub.
22459 # FIXME: do we really want to maintain this feature?
22460 cat >>$CONFIG_STATUS <<_ACEOF
22464 cat >>$CONFIG_STATUS <<\_ACEOF
22466 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22467 s&@configure_input@&$configure_input&;t t
22468 s&@top_builddir@&$ac_top_builddir_sub&;t t
22469 s&@srcdir@&$ac_srcdir&;t t
22470 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22471 s&@top_srcdir@&$ac_top_srcdir&;t t
22472 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22473 s&@builddir@&$ac_builddir&;t t
22474 s&@abs_builddir@&$ac_abs_builddir&;t t
22475 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22476 s&@INSTALL@&$ac_INSTALL&;t t
22477 $ac_datarootdir_hack
22478 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22480 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22481 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22482 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22483 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22484 which seems to be undefined. Please make sure it is defined." >&5
22485 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22486 which seems to be undefined. Please make sure it is defined." >&2;}
22490 -) cat "$tmp/out"; rm -f "$tmp/out";;
22491 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22500 # Transform confdefs.h into a sed script `conftest.defines', that
22501 # substitutes the proper values into config.h.in to produce config.h.
22502 rm -f conftest.defines conftest.tail
22503 # First, append a space to every undef/define line, to ease matching.
22504 echo 's/$/ /' >conftest.defines
22505 # Then, protect against being on the right side of a sed subst, or in
22506 # an unquoted here document, in config.status. If some macros were
22507 # called several times there might be several #defines for the same
22508 # symbol, which is useless. But do not sort them, since the last
22509 # AC_DEFINE must be honored.
22510 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22511 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22512 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22513 # PARAMS is the parameter list in the macro definition--in most cases, it's
22514 # just an empty string.
22515 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22516 ac_dB='\\)[ (].*,\\1define\\2'
22524 s/^[ ]*#[ ]*define[ ][ ]*//
22529 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22530 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22531 ' >>conftest.defines
22533 # Remove the space that was appended to ease matching.
22534 # Then replace #undef with comments. This is necessary, for
22535 # example, in the case of _POSIX_SOURCE, which is predefined and required
22536 # on some systems where configure will not decide to define it.
22537 # (The regexp can be short, since the line contains either #define or #undef.)
22539 s,^[ #]*u.*,/* & */,' >>conftest.defines
22541 # Break up conftest.defines:
22542 ac_max_sed_lines=50
22544 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22545 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22546 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22548 ac_in='$ac_file_inputs'
22549 ac_out='"$tmp/out1"'
22550 ac_nxt='"$tmp/out2"'
22554 # Write a here document:
22555 cat >>$CONFIG_STATUS <<_ACEOF
22556 # First, check the format of the line:
22557 cat >"\$tmp/defines.sed" <<\\CEOF
22558 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22559 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22563 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22565 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22566 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22567 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22568 grep . conftest.tail >/dev/null || break
22569 rm -f conftest.defines
22570 mv conftest.tail conftest.defines
22572 rm -f conftest.defines conftest.tail
22574 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22575 cat >>$CONFIG_STATUS <<\_ACEOF
22576 if test x"$ac_file" != x-; then
22577 echo "/* $configure_input */" >"$tmp/config.h"
22578 cat "$ac_result" >>"$tmp/config.h"
22579 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22580 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22581 echo "$as_me: $ac_file is unchanged" >&6;}
22584 mv "$tmp/config.h" $ac_file
22587 echo "/* $configure_input */"
22593 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22594 echo "$as_me: executing $ac_file commands" >&6;}
22599 case $ac_file$ac_mode in
22600 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22601 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22602 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22603 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22604 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22605 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22606 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22607 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22608 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22609 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22610 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22611 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22612 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22613 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22614 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22615 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22616 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22617 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22618 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22619 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22620 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22621 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22622 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22623 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22624 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22625 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22631 { (exit 0); exit 0; }
22633 chmod +x $CONFIG_STATUS
22634 ac_clean_files=$ac_clean_files_save
22637 # configure is writing to config.log, and then calls config.status.
22638 # config.status does its own redirection, appending to config.log.
22639 # Unfortunately, on DOS this fails, as config.log is still kept open
22640 # by configure, so config.status won't be able to write to it; its
22641 # output is simply discarded. So we exec the FD to /dev/null,
22642 # effectively closing config.log, so it can be properly (re)opened and
22643 # appended to by config.status. When coming back to configure, we
22644 # need to make the FD available again.
22645 if test "$no_create" != yes; then
22647 ac_config_status_args=
22648 test "$silent" = yes &&
22649 ac_config_status_args="$ac_config_status_args --quiet"
22651 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22653 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22654 # would make configure fail if this is the last instruction.
22655 $ac_cs_success || { (exit 1); exit 1; }
22659 # CONFIG_SUBDIRS section.
22661 if test "$no_recursion" != yes; then
22663 # Remove --cache-file and --srcdir arguments so they do not pile up.
22664 ac_sub_configure_args=
22666 eval "set x $ac_configure_args"
22670 if test -n "$ac_prev"; then
22675 -cache-file | --cache-file | --cache-fil | --cache-fi \
22676 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22677 ac_prev=cache_file ;;
22678 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22679 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22682 --config-cache | -C)
22684 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22686 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22688 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22690 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22694 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22696 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22700 # Always prepend --prefix to ensure using the same prefix
22701 # in subdir configurations.
22702 ac_arg="--prefix=$prefix"
22704 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22706 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22709 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22711 # Do not complain, so a configure script can configure whichever
22712 # parts of a large source tree are present.
22713 test -d "$srcdir/$ac_dir" || continue
22715 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22716 echo "$as_me:$LINENO: $ac_msg" >&5
22720 -*) as_dir=./$as_dir;;
22722 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22726 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22727 *) as_qdir=$as_dir;;
22729 as_dirs="'$as_qdir' $as_dirs"
22730 as_dir=`$as_dirname -- "$as_dir" ||
22731 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22732 X"$as_dir" : 'X\(//\)[^/]' \| \
22733 X"$as_dir" : 'X\(//\)$' \| \
22734 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22740 /^X\(\/\/\)[^/].*/{
22753 test -d "$as_dir" && break
22755 test -z "$as_dirs" || eval "mkdir $as_dirs"
22756 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22757 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22758 { (exit 1); exit 1; }; }; }
22762 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22764 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22765 # A ".." for each directory in $ac_dir_suffix.
22766 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22767 case $ac_top_builddir_sub in
22768 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22769 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22772 ac_abs_top_builddir=$ac_pwd
22773 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22774 # for backward compatibility:
22775 ac_top_builddir=$ac_top_build_prefix
22778 .) # We are building in place.
22780 ac_top_srcdir=$ac_top_builddir_sub
22781 ac_abs_top_srcdir=$ac_pwd ;;
22782 [\\/]* | ?:[\\/]* ) # Absolute name.
22783 ac_srcdir=$srcdir$ac_dir_suffix;
22784 ac_top_srcdir=$srcdir
22785 ac_abs_top_srcdir=$srcdir ;;
22786 *) # Relative name.
22787 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22788 ac_top_srcdir=$ac_top_build_prefix$srcdir
22789 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22791 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22796 # Check for guested configure; otherwise get Cygnus style configure.
22797 if test -f "$ac_srcdir/configure.gnu"; then
22798 ac_sub_configure=$ac_srcdir/configure.gnu
22799 elif test -f "$ac_srcdir/configure"; then
22800 ac_sub_configure=$ac_srcdir/configure
22801 elif test -f "$ac_srcdir/configure.in"; then
22802 # This should be Cygnus configure.
22803 ac_sub_configure=$ac_aux_dir/configure
22805 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22806 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22810 # The recursion is here.
22811 if test -n "$ac_sub_configure"; then
22812 # Make the cache file name correct relative to the subdirectory.
22813 case $cache_file in
22814 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22815 *) # Relative name.
22816 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22819 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22820 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22821 # The eval makes quoting arguments work.
22822 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22823 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22824 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22825 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22826 { (exit 1); exit 1; }; }