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
691 ENABLE_EXPENSIVE_CHECKS
707 LLVM_ENUM_ASM_PRINTERS
708 LLVM_ENUM_ASM_PARSERS
709 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
790 ENABLE_VISIBILITY_INLINES_HIDDEN
796 ac_precious_vars='build_alias
807 ac_subdirs_all='projects/llvm-gcc
811 projects/llvm-poolalloc
814 projects/llvm-stacker
822 # Initialize some variables set by options.
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name=s,x,x,
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 -enable-* | --enable-*)
942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
963 -help | --help | --hel | --he | -h)
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1112 -site=* | --site=* | --sit=*)
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
1147 -without-* | --without-*)
1148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_$ac_package=no ;;
1157 # Obsolete; use --with-x.
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1189 # FIXME: should be removed in autoconf 3.0.
1190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
1205 # Be sure to have absolute directory names.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val=\$$ac_var
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1225 target=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241 test "$silent" = yes && exec 6>/dev/null
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1322 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-polly Use polly if available (default is YES)
1396 --enable-libcpp Use libc++ if available (default is NO)
1397 --enable-cxx11 Use c++11 if available (default is NO)
1398 --enable-optimized Compile with optimizations enabled (default is NO)
1399 --enable-profiling Compile with profiling enabled (default is NO)
1400 --enable-assertions Compile with assertion checks enabled (default is
1402 --enable-expensive-checks
1403 Compile with expensive debug checks enabled (default
1405 --enable-debug-runtime Build runtime libs with debug symbols (default is
1407 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1408 optimization is on and YES if it's off)
1409 --enable-jit Enable Just In Time Compiling (default is YES)
1410 --enable-docs Build documents (default is YES)
1411 --enable-doxygen Build doxygen documentation (default is NO)
1412 --enable-threads Use threads if available (default is YES)
1413 --enable-pthreads Use pthreads if available (default is YES)
1414 --enable-pic Build LLVM with Position Independent Code (default
1416 --enable-shared Build a shared library and link tools against it
1418 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1419 Win32 DLL (default is NO)
1420 --enable-timestamps Enable embedding timestamp information in build
1422 --enable-targets Build specific host targets: all or
1423 target1,target2,... Valid targets are: host, x86,
1424 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1425 xcore, msp430, nvptx, and cpp (default=all)
1426 --enable-bindings Build specific language bindings:
1427 all,auto,none,{binding-name} (default=auto)
1428 --enable-libffi Check for the presence of libffi (default is NO)
1429 --enable-ltdl-install install libltdl
1432 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1433 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1434 --with-optimize-option Select the compiler options to use for optimized
1436 --with-extra-options Specify additional options to compile LLVM with
1437 --with-extra-ld-options Specify additional options to link LLVM with
1438 --with-ocaml-libdir Specify install location for ocaml bindings (default
1440 --with-clang-srcdir Directory to the out-of-tree Clang source
1441 --with-clang-resource-dir
1442 Relative directory from the Clang binary for
1444 --with-c-include-dirs Colon separated list of directories clang will
1446 --with-gcc-toolchain Directory where gcc is installed.
1447 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1448 --with-binutils-include Specify path to binutils/include/ containing
1449 plugin-api.h file for gold plugin.
1450 --with-bug-report-url Specify the URL where bug reports should be
1451 submitted (default=http://llvm.org/bugs/)
1452 --with-internal-prefix Installation directory for internal files
1453 --with-udis86=<path> Use udis86 external x86 disassembler library
1454 --with-oprofile=<prefix>
1455 Tell OProfile >= 0.9.4 how to symbolize JIT output
1456 --with-intel-jitevents=<vtune-amplifier-dir>
1457 Specify location of run-time support library for
1459 (default=/opt/intel/vtune_amplifier_xe_2011)
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1468 CXX C++ compiler command
1469 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <http://llvm.org/bugs/>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 LLVM configure 3.2svn
1537 generated by GNU Autoconf 2.60
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1544 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by LLVM $as_me 3.2svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next=false
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next=true ;;
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 cat >>confdefs.h <<\_ACEOF
1907 #define LLVM_VERSION_MAJOR 3
1911 cat >>confdefs.h <<\_ACEOF
1912 #define LLVM_VERSION_MINOR 2
1916 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1925 for ac_dir in autoconf "$srcdir"/autoconf; do
1926 if test -f "$ac_dir/install-sh"; then
1928 ac_install_sh="$ac_aux_dir/install-sh -c"
1930 elif test -f "$ac_dir/install.sh"; then
1932 ac_install_sh="$ac_aux_dir/install.sh -c"
1934 elif test -f "$ac_dir/shtool"; then
1936 ac_install_sh="$ac_aux_dir/shtool install -c"
1940 if test -z "$ac_aux_dir"; then
1941 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1942 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1943 { (exit 1); exit 1; }; }
1946 # These three variables are undocumented and unsupported,
1947 # and are intended to be withdrawn in a future Autoconf release.
1948 # They can cause serious problems if a builder's source tree is in a directory
1949 # whose full name contains unusual characters.
1950 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1951 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1952 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1956 if test ${srcdir} != "." ; then
1957 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1958 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1959 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1960 { (exit 1); exit 1; }; }
1965 ac_cpp='$CPP $CPPFLAGS'
1966 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1967 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1968 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1969 if test -n "$ac_tool_prefix"; then
1970 for ac_prog in clang llvm-gcc gcc
1972 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1973 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1976 if test "${ac_cv_prog_CC+set}" = set; then
1977 echo $ECHO_N "(cached) $ECHO_C" >&6
1979 if test -n "$CC"; then
1980 ac_cv_prog_CC="$CC" # Let the user override the test.
1982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1986 test -z "$as_dir" && as_dir=.
1987 for ac_exec_ext in '' $ac_executable_extensions; do
1988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1989 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2000 if test -n "$CC"; then
2001 { echo "$as_me:$LINENO: result: $CC" >&5
2002 echo "${ECHO_T}$CC" >&6; }
2004 { echo "$as_me:$LINENO: result: no" >&5
2005 echo "${ECHO_T}no" >&6; }
2009 test -n "$CC" && break
2012 if test -z "$CC"; then
2014 for ac_prog in clang llvm-gcc gcc
2016 # Extract the first word of "$ac_prog", so it can be a program name with args.
2017 set dummy $ac_prog; ac_word=$2
2018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2020 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2021 echo $ECHO_N "(cached) $ECHO_C" >&6
2023 if test -n "$ac_ct_CC"; then
2024 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2030 test -z "$as_dir" && as_dir=.
2031 for ac_exec_ext in '' $ac_executable_extensions; do
2032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2033 ac_cv_prog_ac_ct_CC="$ac_prog"
2034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2044 if test -n "$ac_ct_CC"; then
2045 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2046 echo "${ECHO_T}$ac_ct_CC" >&6; }
2048 { echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6; }
2053 test -n "$ac_ct_CC" && break
2056 if test "x$ac_ct_CC" = x; then
2059 case $cross_compiling:$ac_tool_warned in
2061 { echo "$as_me:$LINENO: 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." >&5
2064 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2065 whose name does not start with the host triplet. If you think this
2066 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2067 ac_tool_warned=yes ;;
2074 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2075 See \`config.log' for more details." >&5
2076 echo "$as_me: error: no acceptable C compiler found in \$PATH
2077 See \`config.log' for more details." >&2;}
2078 { (exit 1); exit 1; }; }
2080 # Provide some information about the compiler.
2081 echo "$as_me:$LINENO: checking for C compiler version" >&5
2082 ac_compiler=`set X $ac_compile; echo $2`
2083 { (ac_try="$ac_compiler --version >&5"
2085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2086 *) ac_try_echo=$ac_try;;
2088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2089 (eval "$ac_compiler --version >&5") 2>&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); }
2093 { (ac_try="$ac_compiler -v >&5"
2095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2096 *) ac_try_echo=$ac_try;;
2098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2099 (eval "$ac_compiler -v >&5") 2>&5
2101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2102 (exit $ac_status); }
2103 { (ac_try="$ac_compiler -V >&5"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2109 (eval "$ac_compiler -V >&5") 2>&5
2111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2112 (exit $ac_status); }
2114 cat >conftest.$ac_ext <<_ACEOF
2117 cat confdefs.h >>conftest.$ac_ext
2118 cat >>conftest.$ac_ext <<_ACEOF
2119 /* end confdefs.h. */
2129 ac_clean_files_save=$ac_clean_files
2130 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2131 # Try to create an executable without -o first, disregard a.out.
2132 # It will help us diagnose broken compilers, and finding out an intuition
2134 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2135 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2136 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2138 # List of possible output files, starting from the most likely.
2139 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2140 # only as a last resort. b.out is created by i960 compilers.
2141 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2143 # The IRIX 6 linker writes into existing files which may not be
2144 # executable, retaining their permissions. Remove them first so a
2145 # subsequent execution test works.
2147 for ac_file in $ac_files
2150 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2151 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2156 if { (ac_try="$ac_link_default"
2158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2159 *) ac_try_echo=$ac_try;;
2161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2162 (eval "$ac_link_default") 2>&5
2164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2165 (exit $ac_status); }; then
2166 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2167 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2168 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2169 # so that the user can short-circuit this test for compilers unknown to
2171 for ac_file in $ac_files
2173 test -f "$ac_file" || continue
2175 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2178 # We found the default executable, but exeext='' is most
2182 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2184 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2186 # We set ac_cv_exeext here because the later test for it is not
2187 # safe: cross compilers may not add the suffix if given an `-o'
2188 # argument, so we may need to know it at that point already.
2189 # Even if this section looks crufty: it has the advantage of
2196 test "$ac_cv_exeext" = no && ac_cv_exeext=
2199 echo "$as_me: failed program was:" >&5
2200 sed 's/^/| /' conftest.$ac_ext >&5
2202 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2203 See \`config.log' for more details." >&5
2204 echo "$as_me: error: C compiler cannot create executables
2205 See \`config.log' for more details." >&2;}
2206 { (exit 77); exit 77; }; }
2209 ac_exeext=$ac_cv_exeext
2210 { echo "$as_me:$LINENO: result: $ac_file" >&5
2211 echo "${ECHO_T}$ac_file" >&6; }
2213 # Check that the compiler produces executables we can run. If not, either
2214 # the compiler is broken, or we cross compile.
2215 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2216 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2217 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2218 # If not cross compiling, check that we can run a simple program.
2219 if test "$cross_compiling" != yes; then
2220 if { ac_try='./$ac_file'
2221 { (case "(($ac_try" in
2222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2223 *) ac_try_echo=$ac_try;;
2225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2226 (eval "$ac_try") 2>&5
2228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2229 (exit $ac_status); }; }; then
2232 if test "$cross_compiling" = maybe; then
2235 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2236 If you meant to cross compile, use \`--host'.
2237 See \`config.log' for more details." >&5
2238 echo "$as_me: error: cannot run C compiled programs.
2239 If you meant to cross compile, use \`--host'.
2240 See \`config.log' for more details." >&2;}
2241 { (exit 1); exit 1; }; }
2245 { echo "$as_me:$LINENO: result: yes" >&5
2246 echo "${ECHO_T}yes" >&6; }
2248 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2249 ac_clean_files=$ac_clean_files_save
2250 # Check that the compiler produces executables we can run. If not, either
2251 # the compiler is broken, or we cross compile.
2252 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2253 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2254 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2255 echo "${ECHO_T}$cross_compiling" >&6; }
2257 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2258 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2259 if { (ac_try="$ac_link"
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2265 (eval "$ac_link") 2>&5
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; then
2269 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2270 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2271 # work properly (i.e., refer to `conftest.exe'), while it won't with
2273 for ac_file in conftest.exe conftest conftest.*; do
2274 test -f "$ac_file" || continue
2276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2277 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2283 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2284 See \`config.log' for more details." >&5
2285 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&2;}
2287 { (exit 1); exit 1; }; }
2290 rm -f conftest$ac_cv_exeext
2291 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2292 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2294 rm -f conftest.$ac_ext
2295 EXEEXT=$ac_cv_exeext
2297 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2298 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2299 if test "${ac_cv_objext+set}" = set; then
2300 echo $ECHO_N "(cached) $ECHO_C" >&6
2302 cat >conftest.$ac_ext <<_ACEOF
2305 cat confdefs.h >>conftest.$ac_ext
2306 cat >>conftest.$ac_ext <<_ACEOF
2307 /* end confdefs.h. */
2317 rm -f conftest.o conftest.obj
2318 if { (ac_try="$ac_compile"
2320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2321 *) ac_try_echo=$ac_try;;
2323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2324 (eval "$ac_compile") 2>&5
2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2327 (exit $ac_status); }; then
2328 for ac_file in conftest.o conftest.obj conftest.*; do
2329 test -f "$ac_file" || continue;
2331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2332 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2337 echo "$as_me: failed program was:" >&5
2338 sed 's/^/| /' conftest.$ac_ext >&5
2340 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2341 See \`config.log' for more details." >&5
2342 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&2;}
2344 { (exit 1); exit 1; }; }
2347 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2349 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2350 echo "${ECHO_T}$ac_cv_objext" >&6; }
2351 OBJEXT=$ac_cv_objext
2353 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2354 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2355 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2356 echo $ECHO_N "(cached) $ECHO_C" >&6
2358 cat >conftest.$ac_ext <<_ACEOF
2361 cat confdefs.h >>conftest.$ac_ext
2362 cat >>conftest.$ac_ext <<_ACEOF
2363 /* end confdefs.h. */
2376 rm -f conftest.$ac_objext
2377 if { (ac_try="$ac_compile"
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2383 (eval "$ac_compile") 2>conftest.er1
2385 grep -v '^ *+' conftest.er1 >conftest.err
2387 cat conftest.err >&5
2388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2389 (exit $ac_status); } &&
2390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2391 { (case "(($ac_try" in
2392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2393 *) ac_try_echo=$ac_try;;
2395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2396 (eval "$ac_try") 2>&5
2398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2399 (exit $ac_status); }; } &&
2400 { ac_try='test -s conftest.$ac_objext'
2401 { (case "(($ac_try" in
2402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2403 *) ac_try_echo=$ac_try;;
2405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2406 (eval "$ac_try") 2>&5
2408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2409 (exit $ac_status); }; }; then
2412 echo "$as_me: failed program was:" >&5
2413 sed 's/^/| /' conftest.$ac_ext >&5
2418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2419 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2422 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2423 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2424 GCC=`test $ac_compiler_gnu = yes && echo yes`
2425 ac_test_CFLAGS=${CFLAGS+set}
2426 ac_save_CFLAGS=$CFLAGS
2427 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2428 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2429 if test "${ac_cv_prog_cc_g+set}" = set; then
2430 echo $ECHO_N "(cached) $ECHO_C" >&6
2432 ac_save_c_werror_flag=$ac_c_werror_flag
2433 ac_c_werror_flag=yes
2436 cat >conftest.$ac_ext <<_ACEOF
2439 cat confdefs.h >>conftest.$ac_ext
2440 cat >>conftest.$ac_ext <<_ACEOF
2441 /* end confdefs.h. */
2451 rm -f conftest.$ac_objext
2452 if { (ac_try="$ac_compile"
2454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2455 *) ac_try_echo=$ac_try;;
2457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2458 (eval "$ac_compile") 2>conftest.er1
2460 grep -v '^ *+' conftest.er1 >conftest.err
2462 cat conftest.err >&5
2463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2464 (exit $ac_status); } &&
2465 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2466 { (case "(($ac_try" in
2467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2468 *) ac_try_echo=$ac_try;;
2470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2471 (eval "$ac_try") 2>&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); }; } &&
2475 { ac_try='test -s conftest.$ac_objext'
2476 { (case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2481 (eval "$ac_try") 2>&5
2483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2484 (exit $ac_status); }; }; then
2487 echo "$as_me: failed program was:" >&5
2488 sed 's/^/| /' conftest.$ac_ext >&5
2491 cat >conftest.$ac_ext <<_ACEOF
2494 cat confdefs.h >>conftest.$ac_ext
2495 cat >>conftest.$ac_ext <<_ACEOF
2496 /* end confdefs.h. */
2506 rm -f conftest.$ac_objext
2507 if { (ac_try="$ac_compile"
2509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2510 *) ac_try_echo=$ac_try;;
2512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2513 (eval "$ac_compile") 2>conftest.er1
2515 grep -v '^ *+' conftest.er1 >conftest.err
2517 cat conftest.err >&5
2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2519 (exit $ac_status); } &&
2520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2521 { (case "(($ac_try" in
2522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2523 *) ac_try_echo=$ac_try;;
2525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2526 (eval "$ac_try") 2>&5
2528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2529 (exit $ac_status); }; } &&
2530 { ac_try='test -s conftest.$ac_objext'
2531 { (case "(($ac_try" in
2532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2533 *) ac_try_echo=$ac_try;;
2535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2536 (eval "$ac_try") 2>&5
2538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2539 (exit $ac_status); }; }; then
2542 echo "$as_me: failed program was:" >&5
2543 sed 's/^/| /' conftest.$ac_ext >&5
2545 ac_c_werror_flag=$ac_save_c_werror_flag
2547 cat >conftest.$ac_ext <<_ACEOF
2550 cat confdefs.h >>conftest.$ac_ext
2551 cat >>conftest.$ac_ext <<_ACEOF
2552 /* end confdefs.h. */
2562 rm -f conftest.$ac_objext
2563 if { (ac_try="$ac_compile"
2565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2566 *) ac_try_echo=$ac_try;;
2568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2569 (eval "$ac_compile") 2>conftest.er1
2571 grep -v '^ *+' conftest.er1 >conftest.err
2573 cat conftest.err >&5
2574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2575 (exit $ac_status); } &&
2576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2577 { (case "(($ac_try" in
2578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2579 *) ac_try_echo=$ac_try;;
2581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2582 (eval "$ac_try") 2>&5
2584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2585 (exit $ac_status); }; } &&
2586 { ac_try='test -s conftest.$ac_objext'
2587 { (case "(($ac_try" in
2588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2589 *) ac_try_echo=$ac_try;;
2591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2592 (eval "$ac_try") 2>&5
2594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2595 (exit $ac_status); }; }; then
2598 echo "$as_me: failed program was:" >&5
2599 sed 's/^/| /' conftest.$ac_ext >&5
2604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 ac_c_werror_flag=$ac_save_c_werror_flag
2613 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2614 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2615 if test "$ac_test_CFLAGS" = set; then
2616 CFLAGS=$ac_save_CFLAGS
2617 elif test $ac_cv_prog_cc_g = yes; then
2618 if test "$GCC" = yes; then
2624 if test "$GCC" = yes; then
2630 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2631 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2632 if test "${ac_cv_prog_cc_c89+set}" = set; then
2633 echo $ECHO_N "(cached) $ECHO_C" >&6
2635 ac_cv_prog_cc_c89=no
2637 cat >conftest.$ac_ext <<_ACEOF
2640 cat confdefs.h >>conftest.$ac_ext
2641 cat >>conftest.$ac_ext <<_ACEOF
2642 /* end confdefs.h. */
2645 #include <sys/types.h>
2646 #include <sys/stat.h>
2647 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2648 struct buf { int x; };
2649 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2650 static char *e (p, i)
2656 static char *f (char * (*g) (char **, int), char **p, ...)
2661 s = g (p, va_arg (v,int));
2666 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2667 function prototypes and stuff, but not '\xHH' hex character constants.
2668 These don't provoke an error unfortunately, instead are silently treated
2669 as 'x'. The following induces an error, until -std is added to get
2670 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2671 array size at least. It's necessary to write '\x00'==0 to get something
2672 that's true only with -std. */
2673 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2675 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2676 inside strings and character constants. */
2678 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2680 int test (int i, double x);
2681 struct s1 {int (*f) (int a);};
2682 struct s2 {int (*f) (double a);};
2683 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2689 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2694 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2695 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2697 CC="$ac_save_CC $ac_arg"
2698 rm -f conftest.$ac_objext
2699 if { (ac_try="$ac_compile"
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compile") 2>conftest.er1
2707 grep -v '^ *+' conftest.er1 >conftest.err
2709 cat conftest.err >&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); } &&
2712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2713 { (case "(($ac_try" in
2714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2715 *) ac_try_echo=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_try") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }; } &&
2722 { ac_try='test -s conftest.$ac_objext'
2723 { (case "(($ac_try" in
2724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_try") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }; }; then
2732 ac_cv_prog_cc_c89=$ac_arg
2734 echo "$as_me: failed program was:" >&5
2735 sed 's/^/| /' conftest.$ac_ext >&5
2740 rm -f core conftest.err conftest.$ac_objext
2741 test "x$ac_cv_prog_cc_c89" != "xno" && break
2743 rm -f conftest.$ac_ext
2748 case "x$ac_cv_prog_cc_c89" in
2750 { echo "$as_me:$LINENO: result: none needed" >&5
2751 echo "${ECHO_T}none needed" >&6; } ;;
2753 { echo "$as_me:$LINENO: result: unsupported" >&5
2754 echo "${ECHO_T}unsupported" >&6; } ;;
2756 CC="$CC $ac_cv_prog_cc_c89"
2757 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2758 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2763 ac_cpp='$CPP $CPPFLAGS'
2764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2769 ac_cpp='$CXXCPP $CPPFLAGS'
2770 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2771 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2772 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2773 if test -z "$CXX"; then
2774 if test -n "$CCC"; then
2777 if test -n "$ac_tool_prefix"; then
2778 for ac_prog in clang++ llvm-g++ g++
2780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2781 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2784 if test "${ac_cv_prog_CXX+set}" = set; then
2785 echo $ECHO_N "(cached) $ECHO_C" >&6
2787 if test -n "$CXX"; then
2788 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 test -z "$as_dir" && as_dir=.
2795 for ac_exec_ext in '' $ac_executable_extensions; do
2796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2797 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2808 if test -n "$CXX"; then
2809 { echo "$as_me:$LINENO: result: $CXX" >&5
2810 echo "${ECHO_T}$CXX" >&6; }
2812 { echo "$as_me:$LINENO: result: no" >&5
2813 echo "${ECHO_T}no" >&6; }
2817 test -n "$CXX" && break
2820 if test -z "$CXX"; then
2822 for ac_prog in clang++ llvm-g++ g++
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2828 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2829 echo $ECHO_N "(cached) $ECHO_C" >&6
2831 if test -n "$ac_ct_CXX"; then
2832 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2841 ac_cv_prog_ac_ct_CXX="$ac_prog"
2842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2851 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2852 if test -n "$ac_ct_CXX"; then
2853 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2854 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2856 { echo "$as_me:$LINENO: result: no" >&5
2857 echo "${ECHO_T}no" >&6; }
2861 test -n "$ac_ct_CXX" && break
2864 if test "x$ac_ct_CXX" = x; then
2867 case $cross_compiling:$ac_tool_warned in
2869 { echo "$as_me:$LINENO: 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." >&5
2872 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2873 whose name does not start with the host triplet. If you think this
2874 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2875 ac_tool_warned=yes ;;
2883 # Provide some information about the compiler.
2884 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2885 ac_compiler=`set X $ac_compile; echo $2`
2886 { (ac_try="$ac_compiler --version >&5"
2888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2889 *) ac_try_echo=$ac_try;;
2891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2892 (eval "$ac_compiler --version >&5") 2>&5
2894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2895 (exit $ac_status); }
2896 { (ac_try="$ac_compiler -v >&5"
2898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2899 *) ac_try_echo=$ac_try;;
2901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2902 (eval "$ac_compiler -v >&5") 2>&5
2904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2905 (exit $ac_status); }
2906 { (ac_try="$ac_compiler -V >&5"
2908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2909 *) ac_try_echo=$ac_try;;
2911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2912 (eval "$ac_compiler -V >&5") 2>&5
2914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2915 (exit $ac_status); }
2917 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2918 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2919 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2920 echo $ECHO_N "(cached) $ECHO_C" >&6
2922 cat >conftest.$ac_ext <<_ACEOF
2925 cat confdefs.h >>conftest.$ac_ext
2926 cat >>conftest.$ac_ext <<_ACEOF
2927 /* end confdefs.h. */
2940 rm -f conftest.$ac_objext
2941 if { (ac_try="$ac_compile"
2943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2944 *) ac_try_echo=$ac_try;;
2946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2947 (eval "$ac_compile") 2>conftest.er1
2949 grep -v '^ *+' conftest.er1 >conftest.err
2951 cat conftest.err >&5
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); } &&
2954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2955 { (case "(($ac_try" in
2956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2957 *) ac_try_echo=$ac_try;;
2959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2960 (eval "$ac_try") 2>&5
2962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2963 (exit $ac_status); }; } &&
2964 { ac_try='test -s conftest.$ac_objext'
2965 { (case "(($ac_try" in
2966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2967 *) ac_try_echo=$ac_try;;
2969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2970 (eval "$ac_try") 2>&5
2972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2973 (exit $ac_status); }; }; then
2976 echo "$as_me: failed program was:" >&5
2977 sed 's/^/| /' conftest.$ac_ext >&5
2982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2983 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2986 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2987 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2988 GXX=`test $ac_compiler_gnu = yes && echo yes`
2989 ac_test_CXXFLAGS=${CXXFLAGS+set}
2990 ac_save_CXXFLAGS=$CXXFLAGS
2991 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2992 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2993 if test "${ac_cv_prog_cxx_g+set}" = set; then
2994 echo $ECHO_N "(cached) $ECHO_C" >&6
2996 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2997 ac_cxx_werror_flag=yes
3000 cat >conftest.$ac_ext <<_ACEOF
3003 cat confdefs.h >>conftest.$ac_ext
3004 cat >>conftest.$ac_ext <<_ACEOF
3005 /* end confdefs.h. */
3015 rm -f conftest.$ac_objext
3016 if { (ac_try="$ac_compile"
3018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3019 *) ac_try_echo=$ac_try;;
3021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3022 (eval "$ac_compile") 2>conftest.er1
3024 grep -v '^ *+' conftest.er1 >conftest.err
3026 cat conftest.err >&5
3027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3028 (exit $ac_status); } &&
3029 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3030 { (case "(($ac_try" in
3031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3032 *) ac_try_echo=$ac_try;;
3034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3035 (eval "$ac_try") 2>&5
3037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3038 (exit $ac_status); }; } &&
3039 { ac_try='test -s conftest.$ac_objext'
3040 { (case "(($ac_try" in
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_try") 2>&5
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; }; then
3049 ac_cv_prog_cxx_g=yes
3051 echo "$as_me: failed program was:" >&5
3052 sed 's/^/| /' conftest.$ac_ext >&5
3055 cat >conftest.$ac_ext <<_ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3103 (exit $ac_status); }; }; then
3106 echo "$as_me: failed program was:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3109 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3111 cat >conftest.$ac_ext <<_ACEOF
3114 cat confdefs.h >>conftest.$ac_ext
3115 cat >>conftest.$ac_ext <<_ACEOF
3116 /* end confdefs.h. */
3126 rm -f conftest.$ac_objext
3127 if { (ac_try="$ac_compile"
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3135 grep -v '^ *+' conftest.er1 >conftest.err
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } &&
3140 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3141 { (case "(($ac_try" in
3142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3143 *) ac_try_echo=$ac_try;;
3145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3146 (eval "$ac_try") 2>&5
3148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3149 (exit $ac_status); }; } &&
3150 { ac_try='test -s conftest.$ac_objext'
3151 { (case "(($ac_try" in
3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3153 *) ac_try_echo=$ac_try;;
3155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3156 (eval "$ac_try") 2>&5
3158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3159 (exit $ac_status); }; }; then
3160 ac_cv_prog_cxx_g=yes
3162 echo "$as_me: failed program was:" >&5
3163 sed 's/^/| /' conftest.$ac_ext >&5
3168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3177 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3178 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3179 if test "$ac_test_CXXFLAGS" = set; then
3180 CXXFLAGS=$ac_save_CXXFLAGS
3181 elif test $ac_cv_prog_cxx_g = yes; then
3182 if test "$GXX" = yes; then
3188 if test "$GXX" = yes; then
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 ac_cpp='$CPP $CPPFLAGS'
3202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3205 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3206 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3207 # On Suns, sometimes $CPP names a directory.
3208 if test -n "$CPP" && test -d "$CPP"; then
3211 if test -z "$CPP"; then
3212 if test "${ac_cv_prog_CPP+set}" = set; then
3213 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 # Double quotes because CPP needs to be expanded
3216 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3219 for ac_c_preproc_warn_flag in '' yes
3221 # Use a header file that comes with gcc, so configuring glibc
3222 # with a fresh cross-compiler works.
3223 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3224 # <limits.h> exists even on freestanding compilers.
3225 # On the NeXT, cc -E runs the code through the compiler's parser,
3226 # not just through cpp. "Syntax error" is here to catch this case.
3227 cat >conftest.$ac_ext <<_ACEOF
3230 cat confdefs.h >>conftest.$ac_ext
3231 cat >>conftest.$ac_ext <<_ACEOF
3232 /* end confdefs.h. */
3234 # include <limits.h>
3236 # include <assert.h>
3240 if { (ac_try="$ac_cpp conftest.$ac_ext"
3242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3243 *) ac_try_echo=$ac_try;;
3245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3246 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3248 grep -v '^ *+' conftest.er1 >conftest.err
3250 cat conftest.err >&5
3251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3252 (exit $ac_status); } >/dev/null; then
3253 if test -s conftest.err; then
3254 ac_cpp_err=$ac_c_preproc_warn_flag
3255 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3262 if test -z "$ac_cpp_err"; then
3265 echo "$as_me: failed program was:" >&5
3266 sed 's/^/| /' conftest.$ac_ext >&5
3268 # Broken: fails on valid input.
3272 rm -f conftest.err conftest.$ac_ext
3274 # OK, works on sane cases. Now check whether nonexistent headers
3275 # can be detected and how.
3276 cat >conftest.$ac_ext <<_ACEOF
3279 cat confdefs.h >>conftest.$ac_ext
3280 cat >>conftest.$ac_ext <<_ACEOF
3281 /* end confdefs.h. */
3282 #include <ac_nonexistent.h>
3284 if { (ac_try="$ac_cpp conftest.$ac_ext"
3286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3287 *) ac_try_echo=$ac_try;;
3289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3292 grep -v '^ *+' conftest.er1 >conftest.err
3294 cat conftest.err >&5
3295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3296 (exit $ac_status); } >/dev/null; then
3297 if test -s conftest.err; then
3298 ac_cpp_err=$ac_c_preproc_warn_flag
3299 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3306 if test -z "$ac_cpp_err"; then
3307 # Broken: success on invalid input.
3310 echo "$as_me: failed program was:" >&5
3311 sed 's/^/| /' conftest.$ac_ext >&5
3313 # Passes both tests.
3318 rm -f conftest.err conftest.$ac_ext
3321 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3322 rm -f conftest.err conftest.$ac_ext
3323 if $ac_preproc_ok; then
3335 { echo "$as_me:$LINENO: result: $CPP" >&5
3336 echo "${ECHO_T}$CPP" >&6; }
3338 for ac_c_preproc_warn_flag in '' yes
3340 # Use a header file that comes with gcc, so configuring glibc
3341 # with a fresh cross-compiler works.
3342 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3343 # <limits.h> exists even on freestanding compilers.
3344 # On the NeXT, cc -E runs the code through the compiler's parser,
3345 # not just through cpp. "Syntax error" is here to catch this case.
3346 cat >conftest.$ac_ext <<_ACEOF
3349 cat confdefs.h >>conftest.$ac_ext
3350 cat >>conftest.$ac_ext <<_ACEOF
3351 /* end confdefs.h. */
3353 # include <limits.h>
3355 # include <assert.h>
3359 if { (ac_try="$ac_cpp conftest.$ac_ext"
3361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3362 *) ac_try_echo=$ac_try;;
3364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3367 grep -v '^ *+' conftest.er1 >conftest.err
3369 cat conftest.err >&5
3370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3371 (exit $ac_status); } >/dev/null; then
3372 if test -s conftest.err; then
3373 ac_cpp_err=$ac_c_preproc_warn_flag
3374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3381 if test -z "$ac_cpp_err"; then
3384 echo "$as_me: failed program was:" >&5
3385 sed 's/^/| /' conftest.$ac_ext >&5
3387 # Broken: fails on valid input.
3391 rm -f conftest.err conftest.$ac_ext
3393 # OK, works on sane cases. Now check whether nonexistent headers
3394 # can be detected and how.
3395 cat >conftest.$ac_ext <<_ACEOF
3398 cat confdefs.h >>conftest.$ac_ext
3399 cat >>conftest.$ac_ext <<_ACEOF
3400 /* end confdefs.h. */
3401 #include <ac_nonexistent.h>
3403 if { (ac_try="$ac_cpp conftest.$ac_ext"
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3411 grep -v '^ *+' conftest.er1 >conftest.err
3413 cat conftest.err >&5
3414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3415 (exit $ac_status); } >/dev/null; then
3416 if test -s conftest.err; then
3417 ac_cpp_err=$ac_c_preproc_warn_flag
3418 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3425 if test -z "$ac_cpp_err"; then
3426 # Broken: success on invalid input.
3429 echo "$as_me: failed program was:" >&5
3430 sed 's/^/| /' conftest.$ac_ext >&5
3432 # Passes both tests.
3437 rm -f conftest.err conftest.$ac_ext
3440 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3441 rm -f conftest.err conftest.$ac_ext
3442 if $ac_preproc_ok; then
3445 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3446 See \`config.log' for more details." >&5
3447 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3448 See \`config.log' for more details." >&2;}
3449 { (exit 1); exit 1; }; }
3453 ac_cpp='$CPP $CPPFLAGS'
3454 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3455 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3456 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3461 if test -d ${srcdir}/projects/llvm-gcc ; then
3462 subdirs="$subdirs projects/llvm-gcc"
3466 if test -d ${srcdir}/projects/test-suite ; then
3467 subdirs="$subdirs projects/test-suite"
3471 if test -d ${srcdir}/projects/llvm-test ; then
3472 subdirs="$subdirs projects/llvm-test"
3476 if test -d ${srcdir}/projects/poolalloc ; then
3477 subdirs="$subdirs projects/poolalloc"
3481 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3482 subdirs="$subdirs projects/llvm-poolalloc"
3486 for i in `ls ${srcdir}/projects`
3488 if test -d ${srcdir}/projects/${i} ; then
3490 sample) subdirs="$subdirs projects/sample"
3492 privbracket) subdirs="$subdirs projects/privbracket"
3494 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3496 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3498 llvm-java) subdirs="$subdirs projects/llvm-java"
3500 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3502 safecode) subdirs="$subdirs projects/safecode"
3504 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3513 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3514 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3520 # Check whether --enable-polly was given.
3521 if test "${enable_polly+set}" = set; then
3522 enableval=$enable_polly;
3527 case "$enableval" in
3532 default) ENABLE_POLLY=1
3534 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3535 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3536 { (exit 1); exit 1; }; } ;;
3540 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3543 subdirs="$subdirs tools/polly"
3548 # Make sure we can run config.sub.
3549 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3550 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3551 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3552 { (exit 1); exit 1; }; }
3554 { echo "$as_me:$LINENO: checking build system type" >&5
3555 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3556 if test "${ac_cv_build+set}" = set; then
3557 echo $ECHO_N "(cached) $ECHO_C" >&6
3559 ac_build_alias=$build_alias
3560 test "x$ac_build_alias" = x &&
3561 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3562 test "x$ac_build_alias" = x &&
3563 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3564 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3565 { (exit 1); exit 1; }; }
3566 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3567 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3568 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3569 { (exit 1); exit 1; }; }
3572 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3573 echo "${ECHO_T}$ac_cv_build" >&6; }
3574 case $ac_cv_build in
3576 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3577 echo "$as_me: error: invalid value of canonical build" >&2;}
3578 { (exit 1); exit 1; }; };;
3581 ac_save_IFS=$IFS; IFS='-'
3587 # Remember, the first character of IFS is used to create $*,
3588 # except with old shells:
3591 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3594 { echo "$as_me:$LINENO: checking host system type" >&5
3595 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3596 if test "${ac_cv_host+set}" = set; then
3597 echo $ECHO_N "(cached) $ECHO_C" >&6
3599 if test "x$host_alias" = x; then
3600 ac_cv_host=$ac_cv_build
3602 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3603 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3604 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3605 { (exit 1); exit 1; }; }
3609 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3610 echo "${ECHO_T}$ac_cv_host" >&6; }
3613 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3614 echo "$as_me: error: invalid value of canonical host" >&2;}
3615 { (exit 1); exit 1; }; };;
3618 ac_save_IFS=$IFS; IFS='-'
3624 # Remember, the first character of IFS is used to create $*,
3625 # except with old shells:
3628 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3631 { echo "$as_me:$LINENO: checking target system type" >&5
3632 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3633 if test "${ac_cv_target+set}" = set; then
3634 echo $ECHO_N "(cached) $ECHO_C" >&6
3636 if test "x$target_alias" = x; then
3637 ac_cv_target=$ac_cv_host
3639 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3640 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3641 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3642 { (exit 1); exit 1; }; }
3646 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3647 echo "${ECHO_T}$ac_cv_target" >&6; }
3648 case $ac_cv_target in
3650 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3651 echo "$as_me: error: invalid value of canonical target" >&2;}
3652 { (exit 1); exit 1; }; };;
3654 target=$ac_cv_target
3655 ac_save_IFS=$IFS; IFS='-'
3661 # Remember, the first character of IFS is used to create $*,
3662 # except with old shells:
3665 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3668 # The aliases save the names the user supplied, while $host etc.
3669 # will get canonicalized.
3670 test -n "$target_alias" &&
3671 test "$program_prefix$program_suffix$program_transform_name" = \
3673 program_prefix=${target_alias}-
3675 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3676 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3677 if test "${llvm_cv_os_type+set}" = set; then
3678 echo $ECHO_N "(cached) $ECHO_C" >&6
3682 llvm_cv_link_all_option="-Wl,--whole-archive"
3683 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3684 llvm_cv_os_type="AIX"
3685 llvm_cv_platform_type="Unix" ;;
3687 llvm_cv_link_all_option="-Wl,--whole-archive"
3688 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3689 llvm_cv_os_type="IRIX"
3690 llvm_cv_platform_type="Unix" ;;
3692 llvm_cv_link_all_option="-Wl,--whole-archive"
3693 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3694 llvm_cv_os_type="Cygwin"
3695 llvm_cv_platform_type="Unix" ;;
3697 llvm_cv_link_all_option="-Wl,-all_load"
3698 llvm_cv_no_link_all_option="-Wl,-noall_load"
3699 llvm_cv_os_type="Darwin"
3700 llvm_cv_platform_type="Unix" ;;
3702 llvm_cv_link_all_option="-Wl,-all_load"
3703 llvm_cv_no_link_all_option="-Wl,-noall_load"
3704 llvm_cv_os_type="Minix"
3705 llvm_cv_platform_type="Unix" ;;
3706 *-*-freebsd* | *-*-kfreebsd-gnu)
3707 llvm_cv_link_all_option="-Wl,--whole-archive"
3708 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3709 llvm_cv_os_type="FreeBSD"
3710 llvm_cv_platform_type="Unix" ;;
3712 llvm_cv_link_all_option="-Wl,--whole-archive"
3713 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3714 llvm_cv_os_type="OpenBSD"
3715 llvm_cv_platform_type="Unix" ;;
3717 llvm_cv_link_all_option="-Wl,--whole-archive"
3718 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3719 llvm_cv_os_type="NetBSD"
3720 llvm_cv_platform_type="Unix" ;;
3722 llvm_cv_link_all_option="-Wl,--whole-archive"
3723 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3724 llvm_cv_os_type="DragonFly"
3725 llvm_cv_platform_type="Unix" ;;
3727 llvm_cv_link_all_option="-Wl,--whole-archive"
3728 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3729 llvm_cv_os_type="HP-UX"
3730 llvm_cv_platform_type="Unix" ;;
3732 llvm_cv_link_all_option="-Wl,--whole-archive"
3733 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3734 llvm_cv_os_type="Interix"
3735 llvm_cv_platform_type="Unix" ;;
3737 llvm_cv_link_all_option="-Wl,--whole-archive"
3738 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3739 llvm_cv_os_type="Linux"
3740 llvm_cv_platform_type="Unix" ;;
3742 llvm_cv_link_all_option="-Wl,--whole-archive"
3743 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3744 llvm_cv_os_type="GNU"
3745 llvm_cv_platform_type="Unix" ;;
3747 llvm_cv_link_all_option="-Wl,-z,allextract"
3748 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3749 llvm_cv_os_type="SunOS"
3750 llvm_cv_platform_type="Unix" ;;
3752 llvm_cv_link_all_option="-Wl,-z,allextract"
3753 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3754 llvm_cv_os_type="AuroraUX"
3755 llvm_cv_platform_type="Unix" ;;
3757 llvm_cv_link_all_option="-Wl,--whole-archive"
3758 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3759 llvm_cv_os_type="Win32"
3760 llvm_cv_platform_type="Win32" ;;
3762 llvm_cv_link_all_option="-Wl,--whole-archive"
3763 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3764 llvm_cv_os_type="MingW"
3765 llvm_cv_platform_type="Win32" ;;
3767 llvm_cv_link_all_option="-Wl,--whole-archive"
3768 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3769 llvm_cv_os_type="Haiku"
3770 llvm_cv_platform_type="Unix" ;;
3772 llvm_cv_link_all_option="-Wl,--whole-archive"
3773 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3774 llvm_cv_os_type="Freestanding"
3775 llvm_cv_platform_type="Unix" ;;
3777 llvm_cv_link_all_option="-Wl,--whole-archive"
3778 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3779 llvm_cv_os_type="Freestanding"
3780 llvm_cv_platform_type="Unix" ;;
3782 llvm_cv_link_all_option=""
3783 llvm_cv_no_link_all_option=""
3784 llvm_cv_os_type="Unknown"
3785 llvm_cv_platform_type="Unknown" ;;
3788 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3789 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3791 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3792 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3793 if test "${llvm_cv_target_os_type+set}" = set; then
3794 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 llvm_cv_target_os_type="AIX" ;;
3800 llvm_cv_target_os_type="IRIX" ;;
3802 llvm_cv_target_os_type="Cygwin" ;;
3804 llvm_cv_target_os_type="Darwin" ;;
3806 llvm_cv_target_os_type="Minix" ;;
3807 *-*-freebsd* | *-*-kfreebsd-gnu)
3808 llvm_cv_target_os_type="FreeBSD" ;;
3810 llvm_cv_target_os_type="OpenBSD" ;;
3812 llvm_cv_target_os_type="NetBSD" ;;
3814 llvm_cv_target_os_type="DragonFly" ;;
3816 llvm_cv_target_os_type="HP-UX" ;;
3818 llvm_cv_target_os_type="Interix" ;;
3820 llvm_cv_target_os_type="Linux" ;;
3822 llvm_cv_target_os_type="GNU" ;;
3824 llvm_cv_target_os_type="SunOS" ;;
3826 llvm_cv_target_os_type="AuroraUX" ;;
3828 llvm_cv_target_os_type="Win32" ;;
3830 llvm_cv_target_os_type="MingW" ;;
3832 llvm_cv_target_os_type="Haiku" ;;
3834 llvm_cv_target_os_type="RTEMS" ;;
3836 llvm_cv_target_os_type="NativeClient" ;;
3838 llvm_cv_target_os_type="Freestanding" ;;
3840 llvm_cv_target_os_type="Unknown" ;;
3843 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3844 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3846 if test "$llvm_cv_os_type" = "Unknown" ; then
3847 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3848 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3849 { (exit 1); exit 1; }; }
3854 HOST_OS=$llvm_cv_os_type
3856 TARGET_OS=$llvm_cv_target_os_type
3859 LINKALL=$llvm_cv_link_all_option
3861 NOLINKALL=$llvm_cv_no_link_all_option
3864 case $llvm_cv_platform_type in
3867 cat >>confdefs.h <<\_ACEOF
3868 #define LLVM_ON_UNIX 1
3878 cat >>confdefs.h <<\_ACEOF
3879 #define LLVM_ON_WIN32 1
3889 { echo "$as_me:$LINENO: checking target architecture" >&5
3890 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3891 if test "${llvm_cv_target_arch+set}" = set; then
3892 echo $ECHO_N "(cached) $ECHO_C" >&6
3895 i?86-*) llvm_cv_target_arch="x86" ;;
3896 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3897 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3898 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3899 arm*-*) llvm_cv_target_arch="ARM" ;;
3900 mips-*) llvm_cv_target_arch="Mips" ;;
3901 mipsel-*) llvm_cv_target_arch="Mips" ;;
3902 xcore-*) llvm_cv_target_arch="XCore" ;;
3903 msp430-*) llvm_cv_target_arch="MSP430" ;;
3904 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3905 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3906 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3907 *) llvm_cv_target_arch="Unknown" ;;
3910 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3911 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3913 if test "$llvm_cv_target_arch" = "Unknown" ; then
3914 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3915 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3918 case "$llvm_cv_target_arch" in
3919 x86) LLVM_NATIVE_ARCH="X86" ;;
3920 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3921 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3924 ARCH=$llvm_cv_target_arch
3928 i?86-*) host_arch="x86" ;;
3929 amd64-* | x86_64-*) host_arch="x86_64" ;;
3930 sparc*-*) host_arch="Sparc" ;;
3931 powerpc*-*) host_arch="PowerPC" ;;
3932 arm*-*) host_arch="ARM" ;;
3933 mips-*) host_arch="Mips" ;;
3934 mipsel-*) host_arch="Mips" ;;
3935 xcore-*) host_arch="XCore" ;;
3936 msp430-*) host_arch="MSP430" ;;
3937 hexagon-*) host_arch="Hexagon" ;;
3938 mblaze-*) host_arch="MBlaze" ;;
3939 *) host_arch="Unknown" ;;
3942 if test "$host_arch" = "Unknown" ; then
3943 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3944 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3947 HOST_ARCH=$host_arch
3952 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3953 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3954 if test "${ac_cv_path_GREP+set}" = set; then
3955 echo $ECHO_N "(cached) $ECHO_C" >&6
3957 # Extract the first word of "grep ggrep" to use in msg output
3958 if test -z "$GREP"; then
3959 set dummy grep ggrep; ac_prog_name=$2
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 ac_path_GREP_found=false
3964 # Loop through the user's path and test for each of PROGNAME-LIST
3965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3966 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3969 test -z "$as_dir" && as_dir=.
3970 for ac_prog in grep ggrep; do
3971 for ac_exec_ext in '' $ac_executable_extensions; do
3972 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3973 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3974 # Check for GNU ac_path_GREP and select it if it is found.
3975 # Check for GNU $ac_path_GREP
3976 case `"$ac_path_GREP" --version 2>&1` in
3978 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3981 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3984 cat "conftest.in" "conftest.in" >"conftest.tmp"
3985 mv "conftest.tmp" "conftest.in"
3986 cp "conftest.in" "conftest.nl"
3987 echo 'GREP' >> "conftest.nl"
3988 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3989 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3990 ac_count=`expr $ac_count + 1`
3991 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3992 # Best one so far, save it but keep looking for a better one
3993 ac_cv_path_GREP="$ac_path_GREP"
3994 ac_path_GREP_max=$ac_count
3996 # 10*(2^10) chars as input seems more than enough
3997 test $ac_count -gt 10 && break
3999 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4003 $ac_path_GREP_found && break 3
4013 GREP="$ac_cv_path_GREP"
4014 if test -z "$GREP"; then
4015 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4016 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4017 { (exit 1); exit 1; }; }
4021 ac_cv_path_GREP=$GREP
4026 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4027 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4028 GREP="$ac_cv_path_GREP"
4031 { echo "$as_me:$LINENO: checking for egrep" >&5
4032 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4033 if test "${ac_cv_path_EGREP+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4036 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4037 then ac_cv_path_EGREP="$GREP -E"
4039 # Extract the first word of "egrep" to use in msg output
4040 if test -z "$EGREP"; then
4041 set dummy egrep; ac_prog_name=$2
4042 if test "${ac_cv_path_EGREP+set}" = set; then
4043 echo $ECHO_N "(cached) $ECHO_C" >&6
4045 ac_path_EGREP_found=false
4046 # Loop through the user's path and test for each of PROGNAME-LIST
4047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4048 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4051 test -z "$as_dir" && as_dir=.
4052 for ac_prog in egrep; do
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4055 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4056 # Check for GNU ac_path_EGREP and select it if it is found.
4057 # Check for GNU $ac_path_EGREP
4058 case `"$ac_path_EGREP" --version 2>&1` in
4060 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4063 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4066 cat "conftest.in" "conftest.in" >"conftest.tmp"
4067 mv "conftest.tmp" "conftest.in"
4068 cp "conftest.in" "conftest.nl"
4069 echo 'EGREP' >> "conftest.nl"
4070 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4071 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4072 ac_count=`expr $ac_count + 1`
4073 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4074 # Best one so far, save it but keep looking for a better one
4075 ac_cv_path_EGREP="$ac_path_EGREP"
4076 ac_path_EGREP_max=$ac_count
4078 # 10*(2^10) chars as input seems more than enough
4079 test $ac_count -gt 10 && break
4081 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4085 $ac_path_EGREP_found && break 3
4095 EGREP="$ac_cv_path_EGREP"
4096 if test -z "$EGREP"; then
4097 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4098 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4099 { (exit 1); exit 1; }; }
4103 ac_cv_path_EGREP=$EGREP
4109 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4110 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4111 EGREP="$ac_cv_path_EGREP"
4114 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4115 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4116 if test "${ac_cv_header_stdc+set}" = set; then
4117 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 cat >conftest.$ac_ext <<_ACEOF
4122 cat confdefs.h >>conftest.$ac_ext
4123 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */
4138 rm -f conftest.$ac_objext
4139 if { (ac_try="$ac_compile"
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4145 (eval "$ac_compile") 2>conftest.er1
4147 grep -v '^ *+' conftest.er1 >conftest.err
4149 cat conftest.err >&5
4150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4151 (exit $ac_status); } &&
4152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4153 { (case "(($ac_try" in
4154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4155 *) ac_try_echo=$ac_try;;
4157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4158 (eval "$ac_try") 2>&5
4160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4161 (exit $ac_status); }; } &&
4162 { ac_try='test -s conftest.$ac_objext'
4163 { (case "(($ac_try" in
4164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4165 *) ac_try_echo=$ac_try;;
4167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4168 (eval "$ac_try") 2>&5
4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4171 (exit $ac_status); }; }; then
4172 ac_cv_header_stdc=yes
4174 echo "$as_me: failed program was:" >&5
4175 sed 's/^/| /' conftest.$ac_ext >&5
4177 ac_cv_header_stdc=no
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 if test $ac_cv_header_stdc = yes; then
4183 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4184 cat >conftest.$ac_ext <<_ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */
4193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4194 $EGREP "memchr" >/dev/null 2>&1; then
4197 ac_cv_header_stdc=no
4203 if test $ac_cv_header_stdc = yes; then
4204 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4215 $EGREP "free" >/dev/null 2>&1; then
4218 ac_cv_header_stdc=no
4224 if test $ac_cv_header_stdc = yes; then
4225 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4226 if test "$cross_compiling" = yes; then
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4237 #if ((' ' & 0x0FF) == 0x020)
4238 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4239 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4241 # define ISLOWER(c) \
4242 (('a' <= (c) && (c) <= 'i') \
4243 || ('j' <= (c) && (c) <= 'r') \
4244 || ('s' <= (c) && (c) <= 'z'))
4245 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4248 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4253 for (i = 0; i < 256; i++)
4254 if (XOR (islower (i), ISLOWER (i))
4255 || toupper (i) != TOUPPER (i))
4260 rm -f conftest$ac_exeext
4261 if { (ac_try="$ac_link"
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_link") 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4271 { (case "(($ac_try" in
4272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4273 *) ac_try_echo=$ac_try;;
4275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4276 (eval "$ac_try") 2>&5
4278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4279 (exit $ac_status); }; }; then
4282 echo "$as_me: program exited with status $ac_status" >&5
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4287 ac_cv_header_stdc=no
4289 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4295 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4296 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4297 if test $ac_cv_header_stdc = yes; then
4299 cat >>confdefs.h <<\_ACEOF
4300 #define STDC_HEADERS 1
4305 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4315 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4316 inttypes.h stdint.h unistd.h
4318 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4322 echo $ECHO_N "(cached) $ECHO_C" >&6
4324 cat >conftest.$ac_ext <<_ACEOF
4327 cat confdefs.h >>conftest.$ac_ext
4328 cat >>conftest.$ac_ext <<_ACEOF
4329 /* end confdefs.h. */
4330 $ac_includes_default
4332 #include <$ac_header>
4334 rm -f conftest.$ac_objext
4335 if { (ac_try="$ac_compile"
4337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4338 *) ac_try_echo=$ac_try;;
4340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4341 (eval "$ac_compile") 2>conftest.er1
4343 grep -v '^ *+' conftest.er1 >conftest.err
4345 cat conftest.err >&5
4346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4347 (exit $ac_status); } &&
4348 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4349 { (case "(($ac_try" in
4350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4351 *) ac_try_echo=$ac_try;;
4353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4354 (eval "$ac_try") 2>&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); }; } &&
4358 { ac_try='test -s conftest.$ac_objext'
4359 { (case "(($ac_try" in
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4364 (eval "$ac_try") 2>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); }; }; then
4368 eval "$as_ac_Header=yes"
4370 echo "$as_me: failed program was:" >&5
4371 sed 's/^/| /' conftest.$ac_ext >&5
4373 eval "$as_ac_Header=no"
4376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 ac_res=`eval echo '${'$as_ac_Header'}'`
4379 { echo "$as_me:$LINENO: result: $ac_res" >&5
4380 echo "${ECHO_T}$ac_res" >&6; }
4381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4382 cat >>confdefs.h <<_ACEOF
4383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4391 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4392 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4393 if test "${ac_cv_c_bigendian+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 # See if sys/param.h defines the BYTE_ORDER macro.
4397 cat >conftest.$ac_ext <<_ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 #include <sys/types.h>
4404 #include <sys/param.h>
4409 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4417 rm -f conftest.$ac_objext
4418 if { (ac_try="$ac_compile"
4420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_compile") 2>conftest.er1
4426 grep -v '^ *+' conftest.er1 >conftest.err
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } &&
4431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4432 { (case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_try") 2>&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }; } &&
4441 { ac_try='test -s conftest.$ac_objext'
4442 { (case "(($ac_try" in
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4447 (eval "$ac_try") 2>&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; }; then
4451 # It does; now see whether it defined to BIG_ENDIAN or not.
4452 cat >conftest.$ac_ext <<_ACEOF
4455 cat confdefs.h >>conftest.$ac_ext
4456 cat >>conftest.$ac_ext <<_ACEOF
4457 /* end confdefs.h. */
4458 #include <sys/types.h>
4459 #include <sys/param.h>
4464 #if BYTE_ORDER != BIG_ENDIAN
4472 rm -f conftest.$ac_objext
4473 if { (ac_try="$ac_compile"
4475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4476 *) ac_try_echo=$ac_try;;
4478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4479 (eval "$ac_compile") 2>conftest.er1
4481 grep -v '^ *+' conftest.er1 >conftest.err
4483 cat conftest.err >&5
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); } &&
4486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4487 { (case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492 (eval "$ac_try") 2>&5
4494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4495 (exit $ac_status); }; } &&
4496 { ac_try='test -s conftest.$ac_objext'
4497 { (case "(($ac_try" in
4498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4499 *) ac_try_echo=$ac_try;;
4501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4502 (eval "$ac_try") 2>&5
4504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4505 (exit $ac_status); }; }; then
4506 ac_cv_c_bigendian=yes
4508 echo "$as_me: failed program was:" >&5
4509 sed 's/^/| /' conftest.$ac_ext >&5
4511 ac_cv_c_bigendian=no
4514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4516 echo "$as_me: failed program was:" >&5
4517 sed 's/^/| /' conftest.$ac_ext >&5
4519 # It does not; compile a test program.
4520 if test "$cross_compiling" = yes; then
4521 # try to guess the endianness by grepping values into an object file
4522 ac_cv_c_bigendian=unknown
4523 cat >conftest.$ac_ext <<_ACEOF
4526 cat confdefs.h >>conftest.$ac_ext
4527 cat >>conftest.$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4529 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4530 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4531 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4532 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4533 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4534 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4538 _ascii (); _ebcdic ();
4543 rm -f conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_compile") 2>conftest.er1
4552 grep -v '^ *+' conftest.er1 >conftest.err
4554 cat conftest.err >&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } &&
4557 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4558 { (case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_try") 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; } &&
4567 { ac_try='test -s conftest.$ac_objext'
4568 { (case "(($ac_try" in
4569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4570 *) ac_try_echo=$ac_try;;
4572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4573 (eval "$ac_try") 2>&5
4575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4576 (exit $ac_status); }; }; then
4577 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4578 ac_cv_c_bigendian=yes
4580 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4581 if test "$ac_cv_c_bigendian" = unknown; then
4582 ac_cv_c_bigendian=no
4584 # finding both strings is unlikely to happen, but who knows?
4585 ac_cv_c_bigendian=unknown
4589 echo "$as_me: failed program was:" >&5
4590 sed 's/^/| /' conftest.$ac_ext >&5
4595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 cat >conftest.$ac_ext <<_ACEOF
4600 cat confdefs.h >>conftest.$ac_ext
4601 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */
4603 $ac_includes_default
4608 /* Are we little or big endian? From Harbison&Steele. */
4612 char c[sizeof (long int)];
4615 return u.c[sizeof (long int) - 1] == 1;
4621 rm -f conftest$ac_exeext
4622 if { (ac_try="$ac_link"
4624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4628 (eval "$ac_link") 2>&5
4630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4631 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4632 { (case "(($ac_try" in
4633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4634 *) ac_try_echo=$ac_try;;
4636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4637 (eval "$ac_try") 2>&5
4639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); }; }; then
4641 ac_cv_c_bigendian=no
4643 echo "$as_me: program exited with status $ac_status" >&5
4644 echo "$as_me: failed program was:" >&5
4645 sed 's/^/| /' conftest.$ac_ext >&5
4648 ac_cv_c_bigendian=yes
4650 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4659 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4660 case $ac_cv_c_bigendian in
4668 { { echo "$as_me:$LINENO: error: unknown endianness
4669 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4670 echo "$as_me: error: unknown endianness
4671 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4672 { (exit 1); exit 1; }; } ;;
4676 if test "$cross_compiling" = yes; then
4677 LLVM_CROSS_COMPILING=1
4680 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4681 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4682 if test "${ac_cv_build_exeext+set}" = set; then
4683 echo $ECHO_N "(cached) $ECHO_C" >&6
4685 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4686 ac_cv_build_exeext=.exe
4688 ac_build_prefix=${build_alias}-
4690 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4691 set dummy ${ac_build_prefix}gcc; ac_word=$2
4692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4694 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4695 echo $ECHO_N "(cached) $ECHO_C" >&6
4697 if test -n "$BUILD_CC"; then
4698 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 test -z "$as_dir" && as_dir=.
4705 for ac_exec_ext in '' $ac_executable_extensions; do
4706 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4707 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4717 BUILD_CC=$ac_cv_prog_BUILD_CC
4718 if test -n "$BUILD_CC"; then
4719 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4720 echo "${ECHO_T}$BUILD_CC" >&6; }
4722 { echo "$as_me:$LINENO: result: no" >&5
4723 echo "${ECHO_T}no" >&6; }
4727 if test -z "$BUILD_CC"; then
4728 # Extract the first word of "gcc", so it can be a program name with args.
4729 set dummy gcc; ac_word=$2
4730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4732 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4733 echo $ECHO_N "(cached) $ECHO_C" >&6
4735 if test -n "$BUILD_CC"; then
4736 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4742 test -z "$as_dir" && as_dir=.
4743 for ac_exec_ext in '' $ac_executable_extensions; do
4744 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4745 ac_cv_prog_BUILD_CC="gcc"
4746 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4755 BUILD_CC=$ac_cv_prog_BUILD_CC
4756 if test -n "$BUILD_CC"; then
4757 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4758 echo "${ECHO_T}$BUILD_CC" >&6; }
4760 { echo "$as_me:$LINENO: result: no" >&5
4761 echo "${ECHO_T}no" >&6; }
4765 if test -z "$BUILD_CC"; then
4766 # Extract the first word of "cc", so it can be a program name with args.
4767 set dummy cc; ac_word=$2
4768 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4769 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4770 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4773 if test -n "$BUILD_CC"; then
4774 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4781 test -z "$as_dir" && as_dir=.
4782 for ac_exec_ext in '' $ac_executable_extensions; do
4783 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4784 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4785 ac_prog_rejected=yes
4788 ac_cv_prog_BUILD_CC="cc"
4789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4796 if test $ac_prog_rejected = yes; then
4797 # We found a bogon in the path, so make sure we never use it.
4798 set dummy $ac_cv_prog_BUILD_CC
4800 if test $# != 0; then
4801 # We chose a different compiler from the bogus one.
4802 # However, it has the same basename, so the bogon will be chosen
4803 # first if we set BUILD_CC to just the basename; use the full file name.
4805 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4810 BUILD_CC=$ac_cv_prog_BUILD_CC
4811 if test -n "$BUILD_CC"; then
4812 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4813 echo "${ECHO_T}$BUILD_CC" >&6; }
4815 { echo "$as_me:$LINENO: result: no" >&5
4816 echo "${ECHO_T}no" >&6; }
4822 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4823 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4824 { (exit 1); exit 1; }; }
4825 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4827 echo 'int main () { return 0; }' > conftest.$ac_ext
4829 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4830 (eval $ac_build_link) 2>&5
4832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4833 (exit $ac_status); }; then
4834 for file in conftest.*; do
4836 *.c | *.o | *.obj | *.dSYM) ;;
4837 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4841 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4842 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4843 { (exit 1); exit 1; }; }
4846 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4851 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4852 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4853 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4854 ac_build_exeext=$BUILD_EXEEXT
4856 ac_build_prefix=${build_alias}-
4857 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4858 set dummy ${ac_build_prefix}g++; ac_word=$2
4859 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4860 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4864 if test -n "$BUILD_CXX"; then
4865 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 test -z "$as_dir" && as_dir=.
4872 for ac_exec_ext in '' $ac_executable_extensions; do
4873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4874 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4875 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4885 if test -n "$BUILD_CXX"; then
4886 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4887 echo "${ECHO_T}$BUILD_CXX" >&6; }
4889 { echo "$as_me:$LINENO: result: no" >&5
4890 echo "${ECHO_T}no" >&6; }
4894 if test -z "$BUILD_CXX"; then
4895 # Extract the first word of "g++", so it can be a program name with args.
4896 set dummy g++; ac_word=$2
4897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4899 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4902 if test -n "$BUILD_CXX"; then
4903 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4909 test -z "$as_dir" && as_dir=.
4910 for ac_exec_ext in '' $ac_executable_extensions; do
4911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4912 ac_cv_prog_BUILD_CXX="g++"
4913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4922 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4923 if test -n "$BUILD_CXX"; then
4924 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4925 echo "${ECHO_T}$BUILD_CXX" >&6; }
4927 { echo "$as_me:$LINENO: result: no" >&5
4928 echo "${ECHO_T}no" >&6; }
4932 if test -z "$BUILD_CXX"; then
4933 # Extract the first word of "c++", so it can be a program name with args.
4934 set dummy c++; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4940 if test -n "$BUILD_CXX"; then
4941 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4948 test -z "$as_dir" && as_dir=.
4949 for ac_exec_ext in '' $ac_executable_extensions; do
4950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4951 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4952 ac_prog_rejected=yes
4955 ac_cv_prog_BUILD_CXX="c++"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4963 if test $ac_prog_rejected = yes; then
4964 # We found a bogon in the path, so make sure we never use it.
4965 set dummy $ac_cv_prog_BUILD_CXX
4967 if test $# != 0; then
4968 # We chose a different compiler from the bogus one.
4969 # However, it has the same basename, so the bogon will be chosen
4970 # first if we set BUILD_CXX to just the basename; use the full file name.
4972 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4977 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4978 if test -n "$BUILD_CXX"; then
4979 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4980 echo "${ECHO_T}$BUILD_CXX" >&6; }
4982 { echo "$as_me:$LINENO: result: no" >&5
4983 echo "${ECHO_T}no" >&6; }
4990 LLVM_CROSS_COMPILING=0
4994 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5005 # Check whether --enable-libcpp was given.
5006 if test "${enable_libcpp+set}" = set; then
5007 enableval=$enable_libcpp;
5012 case "$enableval" in
5013 yes) ENABLE_LIBCPP=1
5017 default) ENABLE_LIBCPP=0
5019 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5020 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5021 { (exit 1); exit 1; }; } ;;
5024 # Check whether --enable-cxx11 was given.
5025 if test "${enable_cxx11+set}" = set; then
5026 enableval=$enable_cxx11;
5031 case "$enableval" in
5036 default) ENABLE_CXX11=0
5038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5039 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5043 # Check whether --enable-optimized was given.
5044 if test "${enable_optimized+set}" = set; then
5045 enableval=$enable_optimized;
5050 if test ${enableval} = "no" ; then
5054 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5058 # Check whether --enable-profiling was given.
5059 if test "${enable_profiling+set}" = set; then
5060 enableval=$enable_profiling;
5065 if test ${enableval} = "no" ; then
5069 ENABLE_PROFILING=ENABLE_PROFILING=1
5073 # Check whether --enable-assertions was given.
5074 if test "${enable_assertions+set}" = set; then
5075 enableval=$enable_assertions;
5080 if test ${enableval} = "yes" ; then
5084 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5088 # Check whether --enable-expensive-checks was given.
5089 if test "${enable_expensive_checks+set}" = set; then
5090 enableval=$enable_expensive_checks;
5095 if test ${enableval} = "yes" ; then
5096 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5098 EXPENSIVE_CHECKS=yes
5101 ENABLE_EXPENSIVE_CHECKS=
5107 # Check whether --enable-debug-runtime was given.
5108 if test "${enable_debug_runtime+set}" = set; then
5109 enableval=$enable_debug_runtime;
5114 if test ${enableval} = "no" ; then
5118 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5122 # Check whether --enable-debug-symbols was given.
5123 if test "${enable_debug_symbols+set}" = set; then
5124 enableval=$enable_debug_symbols;
5129 if test ${enableval} = "no" ; then
5133 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5137 # Check whether --enable-jit was given.
5138 if test "${enable_jit+set}" = set; then
5139 enableval=$enable_jit;
5144 if test ${enableval} = "no"
5149 case "$llvm_cv_target_arch" in
5150 x86) TARGET_HAS_JIT=1
5152 Sparc) TARGET_HAS_JIT=0
5154 PowerPC) TARGET_HAS_JIT=1
5156 x86_64) TARGET_HAS_JIT=1
5158 ARM) TARGET_HAS_JIT=1
5160 Mips) TARGET_HAS_JIT=1
5162 XCore) TARGET_HAS_JIT=0
5164 MSP430) TARGET_HAS_JIT=0
5166 Hexagon) TARGET_HAS_JIT=0
5168 MBlaze) TARGET_HAS_JIT=0
5170 NVPTX) TARGET_HAS_JIT=0
5177 # Check whether --enable-docs was given.
5178 if test "${enable_docs+set}" = set; then
5179 enableval=$enable_docs;
5184 case "$enableval" in
5189 default) ENABLE_DOCS=1
5191 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5192 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5193 { (exit 1); exit 1; }; } ;;
5196 # Check whether --enable-doxygen was given.
5197 if test "${enable_doxygen+set}" = set; then
5198 enableval=$enable_doxygen;
5203 case "$enableval" in
5204 yes) ENABLE_DOXYGEN=1
5206 no) ENABLE_DOXYGEN=0
5208 default) ENABLE_DOXYGEN=0
5210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5211 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5215 # Check whether --enable-threads was given.
5216 if test "${enable_threads+set}" = set; then
5217 enableval=$enable_threads;
5222 case "$enableval" in
5223 yes) LLVM_ENABLE_THREADS=1
5225 no) LLVM_ENABLE_THREADS=0
5227 default) LLVM_ENABLE_THREADS=1
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5234 cat >>confdefs.h <<_ACEOF
5235 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5239 # Check whether --enable-pthreads was given.
5240 if test "${enable_pthreads+set}" = set; then
5241 enableval=$enable_pthreads;
5246 case "$enableval" in
5247 yes) ENABLE_PTHREADS=1
5249 no) ENABLE_PTHREADS=0
5251 default) ENABLE_PTHREADS=1
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5258 # Check whether --enable-pic was given.
5259 if test "${enable_pic+set}" = set; then
5260 enableval=$enable_pic;
5265 case "$enableval" in
5270 default) ENABLE_PIC=1
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5277 cat >>confdefs.h <<_ACEOF
5278 #define ENABLE_PIC $ENABLE_PIC
5282 # Check whether --enable-shared was given.
5283 if test "${enable_shared+set}" = set; then
5284 enableval=$enable_shared;
5289 case "$enableval" in
5290 yes) ENABLE_SHARED=1
5294 default) ENABLE_SHARED=0
5296 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5297 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5298 { (exit 1); exit 1; }; } ;;
5301 # Check whether --enable-embed-stdcxx was given.
5302 if test "${enable_embed_stdcxx+set}" = set; then
5303 enableval=$enable_embed_stdcxx;
5308 case "$enableval" in
5309 yes) ENABLE_EMBED_STDCXX=1
5311 no) ENABLE_EMBED_STDCXX=0
5313 default) ENABLE_EMBED_STDCXX=0
5315 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5316 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5317 { (exit 1); exit 1; }; } ;;
5320 # Check whether --enable-timestamps was given.
5321 if test "${enable_timestamps+set}" = set; then
5322 enableval=$enable_timestamps;
5327 case "$enableval" in
5328 yes) ENABLE_TIMESTAMPS=1
5330 no) ENABLE_TIMESTAMPS=0
5332 default) ENABLE_TIMESTAMPS=1
5334 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5335 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5336 { (exit 1); exit 1; }; } ;;
5339 cat >>confdefs.h <<_ACEOF
5340 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5345 # Check whether --enable-targets was given.
5346 if test "${enable_targets+set}" = set; then
5347 enableval=$enable_targets;
5352 if test "$enableval" = host-only ; then
5355 case "$enableval" in
5356 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5357 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5359 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5360 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5361 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5362 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5363 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5364 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5365 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5366 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5367 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5368 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5369 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5370 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5371 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5372 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5373 host) case "$llvm_cv_target_arch" in
5374 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5375 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5376 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5377 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5378 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5379 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5380 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5381 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5382 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5383 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5384 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5385 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5386 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5387 echo "$as_me: error: Can not set target to build" >&2;}
5388 { (exit 1); exit 1; }; } ;;
5390 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5391 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5392 { (exit 1); exit 1; }; } ;;
5397 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5400 for a_target in $TARGETS_TO_BUILD; do
5401 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5403 cat >>confdefs.h <<_ACEOF
5404 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5407 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5408 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5409 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5410 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5411 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5412 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5414 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5415 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5418 cat >>confdefs.h <<_ACEOF
5419 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5423 cat >>confdefs.h <<_ACEOF
5424 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5428 cat >>confdefs.h <<_ACEOF
5429 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5433 cat >>confdefs.h <<_ACEOF
5434 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5437 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5439 cat >>confdefs.h <<_ACEOF
5440 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5444 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5446 cat >>confdefs.h <<_ACEOF
5447 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5454 LLVM_ENUM_TARGETS=""
5455 LLVM_ENUM_ASM_PRINTERS=""
5456 LLVM_ENUM_ASM_PARSERS=""
5457 LLVM_ENUM_DISASSEMBLERS=""
5458 for target_to_build in $TARGETS_TO_BUILD; do
5459 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5460 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5461 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5463 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5464 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5466 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5467 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5476 # Check whether --with-optimize-option was given.
5477 if test "${with_optimize_option+set}" = set; then
5478 withval=$with_optimize_option;
5483 { echo "$as_me:$LINENO: checking optimization flags" >&5
5484 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5487 case "$llvm_cv_os_type" in
5488 FreeBSD) optimize_option=-O2 ;;
5489 MingW) optimize_option=-O2 ;;
5490 *) optimize_option=-O3 ;;
5492 *) optimize_option="$withval" ;;
5494 OPTIMIZE_OPTION=$optimize_option
5496 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5497 echo "${ECHO_T}$optimize_option" >&6; }
5500 # Check whether --with-extra-options was given.
5501 if test "${with_extra_options+set}" = set; then
5502 withval=$with_extra_options;
5508 default) EXTRA_OPTIONS= ;;
5509 *) EXTRA_OPTIONS=$withval ;;
5511 EXTRA_OPTIONS=$EXTRA_OPTIONS
5515 # Check whether --with-extra-ld-options was given.
5516 if test "${with_extra_ld_options+set}" = set; then
5517 withval=$with_extra_ld_options;
5523 default) EXTRA_LD_OPTIONS= ;;
5524 *) EXTRA_LD_OPTIONS=$withval ;;
5526 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5529 # Check whether --enable-bindings was given.
5530 if test "${enable_bindings+set}" = set; then
5531 enableval=$enable_bindings;
5536 BINDINGS_TO_BUILD=""
5537 case "$enableval" in
5538 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5539 all ) BINDINGS_TO_BUILD="ocaml" ;;
5540 none | no) BINDINGS_TO_BUILD="" ;;
5541 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5542 case "$a_binding" in
5543 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5544 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5545 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5546 { (exit 1); exit 1; }; } ;;
5553 # Check whether --with-ocaml-libdir was given.
5554 if test "${with_ocaml_libdir+set}" = set; then
5555 withval=$with_ocaml_libdir;
5561 auto) with_ocaml_libdir="$withval" ;;
5562 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5563 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5564 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5565 { (exit 1); exit 1; }; } ;;
5569 # Check whether --with-clang-srcdir was given.
5570 if test "${with_clang_srcdir+set}" = set; then
5571 withval=$with_clang_srcdir;
5577 -) clang_src_root="" ;;
5578 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5579 *) clang_src_root="$ac_pwd/$withval" ;;
5581 CLANG_SRC_ROOT=$clang_src_root
5585 # Check whether --with-clang-resource-dir was given.
5586 if test "${with_clang_resource_dir+set}" = set; then
5587 withval=$with_clang_resource_dir;
5593 cat >>confdefs.h <<_ACEOF
5594 #define CLANG_RESOURCE_DIR "$withval"
5599 # Check whether --with-c-include-dirs was given.
5600 if test "${with_c_include_dirs+set}" = set; then
5601 withval=$with_c_include_dirs;
5607 cat >>confdefs.h <<_ACEOF
5608 #define C_INCLUDE_DIRS "$withval"
5612 # Clang normally uses the system c++ headers and libraries. With this option,
5613 # clang will use the ones provided by a gcc installation instead. This option should
5614 # be passed the same value that was used with --prefix when configuring gcc.
5616 # Check whether --with-gcc-toolchain was given.
5617 if test "${with_gcc_toolchain+set}" = set; then
5618 withval=$with_gcc_toolchain;
5624 cat >>confdefs.h <<_ACEOF
5625 #define GCC_INSTALL_PREFIX "$withval"
5630 # Check whether --with-default-sysroot was given.
5631 if test "${with_default_sysroot+set}" = set; then
5632 withval=$with_default_sysroot;
5638 cat >>confdefs.h <<_ACEOF
5639 #define DEFAULT_SYSROOT "$withval"
5644 # Check whether --with-binutils-include was given.
5645 if test "${with_binutils_include+set}" = set; then
5646 withval=$with_binutils_include;
5652 default) WITH_BINUTILS_INCDIR=default ;;
5653 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5654 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5655 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5656 { (exit 1); exit 1; }; } ;;
5658 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5659 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5661 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5662 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5663 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5664 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5665 { (exit 1); exit 1; }; };
5670 # Check whether --with-bug-report-url was given.
5671 if test "${with_bug_report_url+set}" = set; then
5672 withval=$with_bug_report_url;
5674 withval="http://llvm.org/bugs/"
5678 cat >>confdefs.h <<_ACEOF
5679 #define BUG_REPORT_URL "$withval"
5683 # Check whether --enable-libffi was given.
5684 if test "${enable_libffi+set}" = set; then
5685 enableval=$enable_libffi; case "$enableval" in
5686 yes) llvm_cv_enable_libffi="yes" ;;
5687 no) llvm_cv_enable_libffi="no" ;;
5688 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5689 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5690 { (exit 1); exit 1; }; } ;;
5693 llvm_cv_enable_libffi=no
5698 # Check whether --with-internal-prefix was given.
5699 if test "${with_internal_prefix+set}" = set; then
5700 withval=$with_internal_prefix;
5705 INTERNAL_PREFIX=$withval
5709 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5710 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5711 if test "${lt_cv_path_NM+set}" = set; then
5712 echo $ECHO_N "(cached) $ECHO_C" >&6
5714 if test -n "$NM"; then
5715 # Let the user override the test.
5718 lt_nm_to_check="${ac_tool_prefix}nm"
5719 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5720 lt_nm_to_check="$lt_nm_to_check nm"
5722 for lt_tmp_nm in $lt_nm_to_check; do
5723 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5724 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5726 test -z "$ac_dir" && ac_dir=.
5727 tmp_nm="$ac_dir/$lt_tmp_nm"
5728 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5729 # Check to see if the nm accepts a BSD-compat flag.
5730 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5731 # nm: unknown option "B" ignored
5732 # Tru64's nm complains that /dev/null is an invalid object file
5733 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5734 */dev/null* | *'Invalid file or object type'*)
5735 lt_cv_path_NM="$tmp_nm -B"
5739 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5741 lt_cv_path_NM="$tmp_nm -p"
5745 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5746 continue # so that we can try to find one that supports BSD flags
5755 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5758 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5759 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5764 { echo "$as_me:$LINENO: checking for GNU make" >&5
5765 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5766 if test "${llvm_cv_gnu_make_command+set}" = set; then
5767 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 llvm_cv_gnu_make_command=''
5770 for a in "$MAKE" make gmake gnumake ; do
5771 if test -z "$a" ; then continue ; fi ;
5772 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5774 llvm_cv_gnu_make_command=$a ;
5779 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5780 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5781 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5785 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5786 echo "${ECHO_T}\"Not found\"" >&6; };
5790 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5793 if test "$LN_S" = "ln -s"; then
5794 { echo "$as_me:$LINENO: result: yes" >&5
5795 echo "${ECHO_T}yes" >&6; }
5797 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5798 echo "${ECHO_T}no, using $LN_S" >&6; }
5801 # Extract the first word of "cmp", so it can be a program name with args.
5802 set dummy cmp; ac_word=$2
5803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5805 if test "${ac_cv_path_CMP+set}" = set; then
5806 echo $ECHO_N "(cached) $ECHO_C" >&6
5810 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5817 test -z "$as_dir" && as_dir=.
5818 for ac_exec_ext in '' $ac_executable_extensions; do
5819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5820 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5828 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5833 if test -n "$CMP"; then
5834 { echo "$as_me:$LINENO: result: $CMP" >&5
5835 echo "${ECHO_T}$CMP" >&6; }
5837 { echo "$as_me:$LINENO: result: no" >&5
5838 echo "${ECHO_T}no" >&6; }
5842 # Extract the first word of "cp", so it can be a program name with args.
5843 set dummy cp; ac_word=$2
5844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5846 if test "${ac_cv_path_CP+set}" = set; then
5847 echo $ECHO_N "(cached) $ECHO_C" >&6
5851 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5858 test -z "$as_dir" && as_dir=.
5859 for ac_exec_ext in '' $ac_executable_extensions; do
5860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5861 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5869 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5874 if test -n "$CP"; then
5875 { echo "$as_me:$LINENO: result: $CP" >&5
5876 echo "${ECHO_T}$CP" >&6; }
5878 { echo "$as_me:$LINENO: result: no" >&5
5879 echo "${ECHO_T}no" >&6; }
5883 # Extract the first word of "date", so it can be a program name with args.
5884 set dummy date; ac_word=$2
5885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5887 if test "${ac_cv_path_DATE+set}" = set; then
5888 echo $ECHO_N "(cached) $ECHO_C" >&6
5892 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5899 test -z "$as_dir" && as_dir=.
5900 for ac_exec_ext in '' $ac_executable_extensions; do
5901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5902 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5910 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5914 DATE=$ac_cv_path_DATE
5915 if test -n "$DATE"; then
5916 { echo "$as_me:$LINENO: result: $DATE" >&5
5917 echo "${ECHO_T}$DATE" >&6; }
5919 { echo "$as_me:$LINENO: result: no" >&5
5920 echo "${ECHO_T}no" >&6; }
5924 # Extract the first word of "find", so it can be a program name with args.
5925 set dummy find; ac_word=$2
5926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5928 if test "${ac_cv_path_FIND+set}" = set; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5933 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5940 test -z "$as_dir" && as_dir=.
5941 for ac_exec_ext in '' $ac_executable_extensions; do
5942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5943 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5951 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5955 FIND=$ac_cv_path_FIND
5956 if test -n "$FIND"; then
5957 { echo "$as_me:$LINENO: result: $FIND" >&5
5958 echo "${ECHO_T}$FIND" >&6; }
5960 { echo "$as_me:$LINENO: result: no" >&5
5961 echo "${ECHO_T}no" >&6; }
5965 # Extract the first word of "grep", so it can be a program name with args.
5966 set dummy grep; ac_word=$2
5967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5969 if test "${ac_cv_path_GREP+set}" = set; then
5970 echo $ECHO_N "(cached) $ECHO_C" >&6
5974 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5984 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5996 GREP=$ac_cv_path_GREP
5997 if test -n "$GREP"; then
5998 { echo "$as_me:$LINENO: result: $GREP" >&5
5999 echo "${ECHO_T}$GREP" >&6; }
6001 { echo "$as_me:$LINENO: result: no" >&5
6002 echo "${ECHO_T}no" >&6; }
6006 # Extract the first word of "mkdir", so it can be a program name with args.
6007 set dummy mkdir; ac_word=$2
6008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6010 if test "${ac_cv_path_MKDIR+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022 test -z "$as_dir" && as_dir=.
6023 for ac_exec_ext in '' $ac_executable_extensions; do
6024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6025 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6033 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6037 MKDIR=$ac_cv_path_MKDIR
6038 if test -n "$MKDIR"; then
6039 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6040 echo "${ECHO_T}$MKDIR" >&6; }
6042 { echo "$as_me:$LINENO: result: no" >&5
6043 echo "${ECHO_T}no" >&6; }
6047 # Extract the first word of "mv", so it can be a program name with args.
6048 set dummy mv; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_path_MV+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 ac_cv_path_MV="$MV" # Let the user override the test with a path.
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_path_MV="$as_dir/$ac_word$ac_exec_ext"
6067 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6079 if test -n "$MV"; then
6080 { echo "$as_me:$LINENO: result: $MV" >&5
6081 echo "${ECHO_T}$MV" >&6; }
6083 { echo "$as_me:$LINENO: result: no" >&5
6084 echo "${ECHO_T}no" >&6; }
6088 if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6096 if test -n "$RANLIB"; then
6097 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}ranlib"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6116 RANLIB=$ac_cv_prog_RANLIB
6117 if test -n "$RANLIB"; then
6118 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6119 echo "${ECHO_T}$RANLIB" >&6; }
6121 { echo "$as_me:$LINENO: result: no" >&5
6122 echo "${ECHO_T}no" >&6; }
6127 if test -z "$ac_cv_prog_RANLIB"; then
6128 ac_ct_RANLIB=$RANLIB
6129 # Extract the first word of "ranlib", so it can be a program name with args.
6130 set dummy ranlib; ac_word=$2
6131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6133 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6134 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 if test -n "$ac_ct_RANLIB"; then
6137 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6143 test -z "$as_dir" && as_dir=.
6144 for ac_exec_ext in '' $ac_executable_extensions; do
6145 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6146 ac_cv_prog_ac_ct_RANLIB="ranlib"
6147 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6156 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6157 if test -n "$ac_ct_RANLIB"; then
6158 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6159 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6161 { echo "$as_me:$LINENO: result: no" >&5
6162 echo "${ECHO_T}no" >&6; }
6165 if test "x$ac_ct_RANLIB" = x; then
6168 case $cross_compiling:$ac_tool_warned in
6170 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6171 whose name does not start with the host triplet. If you think this
6172 configuration is useful to you, please write to autoconf@gnu.org." >&5
6173 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6174 whose name does not start with the host triplet. If you think this
6175 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6176 ac_tool_warned=yes ;;
6178 RANLIB=$ac_ct_RANLIB
6181 RANLIB="$ac_cv_prog_RANLIB"
6184 if test -n "$ac_tool_prefix"; then
6185 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6186 set dummy ${ac_tool_prefix}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_AR+set}" = set; then
6190 echo $ECHO_N "(cached) $ECHO_C" >&6
6192 if test -n "$AR"; then
6193 ac_cv_prog_AR="$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_AR="${ac_tool_prefix}ar"
6203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6213 if test -n "$AR"; then
6214 { echo "$as_me:$LINENO: result: $AR" >&5
6215 echo "${ECHO_T}$AR" >&6; }
6217 { echo "$as_me:$LINENO: result: no" >&5
6218 echo "${ECHO_T}no" >&6; }
6223 if test -z "$ac_cv_prog_AR"; then
6225 # Extract the first word of "ar", so it can be a program name with args.
6226 set dummy ar; ac_word=$2
6227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6229 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6232 if test -n "$ac_ct_AR"; then
6233 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 test -z "$as_dir" && as_dir=.
6240 for ac_exec_ext in '' $ac_executable_extensions; do
6241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6242 ac_cv_prog_ac_ct_AR="ar"
6243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6252 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6253 if test -n "$ac_ct_AR"; then
6254 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6255 echo "${ECHO_T}$ac_ct_AR" >&6; }
6257 { echo "$as_me:$LINENO: result: no" >&5
6258 echo "${ECHO_T}no" >&6; }
6261 if test "x$ac_ct_AR" = x; then
6264 case $cross_compiling:$ac_tool_warned in
6266 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6267 whose name does not start with the host triplet. If you think this
6268 configuration is useful to you, please write to autoconf@gnu.org." >&5
6269 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6270 whose name does not start with the host triplet. If you think this
6271 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6272 ac_tool_warned=yes ;;
6280 # Extract the first word of "rm", so it can be a program name with args.
6281 set dummy rm; ac_word=$2
6282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6284 if test "${ac_cv_path_RM+set}" = set; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6289 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6296 test -z "$as_dir" && as_dir=.
6297 for ac_exec_ext in '' $ac_executable_extensions; do
6298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6299 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6312 if test -n "$RM"; then
6313 { echo "$as_me:$LINENO: result: $RM" >&5
6314 echo "${ECHO_T}$RM" >&6; }
6316 { echo "$as_me:$LINENO: result: no" >&5
6317 echo "${ECHO_T}no" >&6; }
6321 # Extract the first word of "sed", so it can be a program name with args.
6322 set dummy sed; ac_word=$2
6323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6325 if test "${ac_cv_path_SED+set}" = set; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6330 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6337 test -z "$as_dir" && as_dir=.
6338 for ac_exec_ext in '' $ac_executable_extensions; do
6339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6340 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6348 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6353 if test -n "$SED"; then
6354 { echo "$as_me:$LINENO: result: $SED" >&5
6355 echo "${ECHO_T}$SED" >&6; }
6357 { echo "$as_me:$LINENO: result: no" >&5
6358 echo "${ECHO_T}no" >&6; }
6362 # Extract the first word of "tar", so it can be a program name with args.
6363 set dummy tar; ac_word=$2
6364 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6365 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6366 if test "${ac_cv_path_TAR+set}" = set; then
6367 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6378 test -z "$as_dir" && as_dir=.
6379 for ac_exec_ext in '' $ac_executable_extensions; do
6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6381 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6382 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6389 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6394 if test -n "$TAR"; then
6395 { echo "$as_me:$LINENO: result: $TAR" >&5
6396 echo "${ECHO_T}$TAR" >&6; }
6398 { echo "$as_me:$LINENO: result: no" >&5
6399 echo "${ECHO_T}no" >&6; }
6403 # Extract the first word of "pwd", so it can be a program name with args.
6404 set dummy pwd; ac_word=$2
6405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407 if test "${ac_cv_path_BINPWD+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6422 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6434 BINPWD=$ac_cv_path_BINPWD
6435 if test -n "$BINPWD"; then
6436 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6437 echo "${ECHO_T}$BINPWD" >&6; }
6439 { echo "$as_me:$LINENO: result: no" >&5
6440 echo "${ECHO_T}no" >&6; }
6445 # Extract the first word of "Graphviz", so it can be a program name with args.
6446 set dummy Graphviz; ac_word=$2
6447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6449 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6450 echo $ECHO_N "(cached) $ECHO_C" >&6
6454 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6461 test -z "$as_dir" && as_dir=.
6462 for ac_exec_ext in '' $ac_executable_extensions; do
6463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6464 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6476 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6477 if test -n "$GRAPHVIZ"; then
6478 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6479 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6481 { echo "$as_me:$LINENO: result: no" >&5
6482 echo "${ECHO_T}no" >&6; }
6486 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6488 cat >>confdefs.h <<\_ACEOF
6489 #define HAVE_GRAPHVIZ 1
6492 if test "$llvm_cv_os_type" = "MingW" ; then
6493 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6496 cat >>confdefs.h <<_ACEOF
6497 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6501 # Extract the first word of "dot", so it can be a program name with args.
6502 set dummy dot; ac_word=$2
6503 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6504 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6505 if test "${ac_cv_path_DOT+set}" = set; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6510 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6521 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6528 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6533 if test -n "$DOT"; then
6534 { echo "$as_me:$LINENO: result: $DOT" >&5
6535 echo "${ECHO_T}$DOT" >&6; }
6537 { echo "$as_me:$LINENO: result: no" >&5
6538 echo "${ECHO_T}no" >&6; }
6542 if test "$DOT" != "echo dot" ; then
6544 cat >>confdefs.h <<\_ACEOF
6548 if test "$llvm_cv_os_type" = "MingW" ; then
6549 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6552 cat >>confdefs.h <<_ACEOF
6553 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6557 # Extract the first word of "fdp", so it can be a program name with args.
6558 set dummy fdp; ac_word=$2
6559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6561 if test "${ac_cv_path_FDP+set}" = set; then
6562 echo $ECHO_N "(cached) $ECHO_C" >&6
6566 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6573 test -z "$as_dir" && as_dir=.
6574 for ac_exec_ext in '' $ac_executable_extensions; do
6575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6576 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6584 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6589 if test -n "$FDP"; then
6590 { echo "$as_me:$LINENO: result: $FDP" >&5
6591 echo "${ECHO_T}$FDP" >&6; }
6593 { echo "$as_me:$LINENO: result: no" >&5
6594 echo "${ECHO_T}no" >&6; }
6598 if test "$FDP" != "echo fdp" ; then
6600 cat >>confdefs.h <<\_ACEOF
6604 if test "$llvm_cv_os_type" = "MingW" ; then
6605 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6608 cat >>confdefs.h <<_ACEOF
6609 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6613 # Extract the first word of "neato", so it can be a program name with args.
6614 set dummy neato; ac_word=$2
6615 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6616 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6617 if test "${ac_cv_path_NEATO+set}" = set; then
6618 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6629 test -z "$as_dir" && as_dir=.
6630 for ac_exec_ext in '' $ac_executable_extensions; do
6631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6632 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6633 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6640 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6644 NEATO=$ac_cv_path_NEATO
6645 if test -n "$NEATO"; then
6646 { echo "$as_me:$LINENO: result: $NEATO" >&5
6647 echo "${ECHO_T}$NEATO" >&6; }
6649 { echo "$as_me:$LINENO: result: no" >&5
6650 echo "${ECHO_T}no" >&6; }
6654 if test "$NEATO" != "echo neato" ; then
6656 cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_NEATO 1
6660 if test "$llvm_cv_os_type" = "MingW" ; then
6661 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6664 cat >>confdefs.h <<_ACEOF
6665 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6669 # Extract the first word of "twopi", so it can be a program name with args.
6670 set dummy twopi; ac_word=$2
6671 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6672 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6673 if test "${ac_cv_path_TWOPI+set}" = set; then
6674 echo $ECHO_N "(cached) $ECHO_C" >&6
6678 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 test -z "$as_dir" && as_dir=.
6686 for ac_exec_ext in '' $ac_executable_extensions; do
6687 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6688 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6689 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6696 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6700 TWOPI=$ac_cv_path_TWOPI
6701 if test -n "$TWOPI"; then
6702 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6703 echo "${ECHO_T}$TWOPI" >&6; }
6705 { echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6; }
6710 if test "$TWOPI" != "echo twopi" ; then
6712 cat >>confdefs.h <<\_ACEOF
6713 #define HAVE_TWOPI 1
6716 if test "$llvm_cv_os_type" = "MingW" ; then
6717 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6720 cat >>confdefs.h <<_ACEOF
6721 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6725 # Extract the first word of "circo", so it can be a program name with args.
6726 set dummy circo; ac_word=$2
6727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6729 if test "${ac_cv_path_CIRCO+set}" = set; then
6730 echo $ECHO_N "(cached) $ECHO_C" >&6
6734 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6741 test -z "$as_dir" && as_dir=.
6742 for ac_exec_ext in '' $ac_executable_extensions; do
6743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6744 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6752 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6756 CIRCO=$ac_cv_path_CIRCO
6757 if test -n "$CIRCO"; then
6758 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6759 echo "${ECHO_T}$CIRCO" >&6; }
6761 { echo "$as_me:$LINENO: result: no" >&5
6762 echo "${ECHO_T}no" >&6; }
6766 if test "$CIRCO" != "echo circo" ; then
6768 cat >>confdefs.h <<\_ACEOF
6769 #define HAVE_CIRCO 1
6772 if test "$llvm_cv_os_type" = "MingW" ; then
6773 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6776 cat >>confdefs.h <<_ACEOF
6777 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6781 for ac_prog in gv gsview32
6783 # Extract the first word of "$ac_prog", so it can be a program name with args.
6784 set dummy $ac_prog; ac_word=$2
6785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6787 if test "${ac_cv_path_GV+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6792 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6799 test -z "$as_dir" && as_dir=.
6800 for ac_exec_ext in '' $ac_executable_extensions; do
6801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6802 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 if test -n "$GV"; then
6815 { echo "$as_me:$LINENO: result: $GV" >&5
6816 echo "${ECHO_T}$GV" >&6; }
6818 { echo "$as_me:$LINENO: result: no" >&5
6819 echo "${ECHO_T}no" >&6; }
6823 test -n "$GV" && break
6825 test -n "$GV" || GV="echo gv"
6827 if test "$GV" != "echo gv" ; then
6829 cat >>confdefs.h <<\_ACEOF
6833 if test "$llvm_cv_os_type" = "MingW" ; then
6834 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6837 cat >>confdefs.h <<_ACEOF
6838 #define LLVM_PATH_GV "$GV${EXEEXT}"
6842 # Extract the first word of "dotty", so it can be a program name with args.
6843 set dummy dotty; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_path_DOTTY+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6873 DOTTY=$ac_cv_path_DOTTY
6874 if test -n "$DOTTY"; then
6875 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6876 echo "${ECHO_T}$DOTTY" >&6; }
6878 { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6883 if test "$DOTTY" != "echo dotty" ; then
6885 cat >>confdefs.h <<\_ACEOF
6886 #define HAVE_DOTTY 1
6889 if test "$llvm_cv_os_type" = "MingW" ; then
6890 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6893 cat >>confdefs.h <<_ACEOF
6894 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6898 # Extract the first word of "xdot.py", so it can be a program name with args.
6899 set dummy xdot.py; ac_word=$2
6900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6902 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6903 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6914 test -z "$as_dir" && as_dir=.
6915 for ac_exec_ext in '' $ac_executable_extensions; do
6916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6917 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6929 XDOT_PY=$ac_cv_path_XDOT_PY
6930 if test -n "$XDOT_PY"; then
6931 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6932 echo "${ECHO_T}$XDOT_PY" >&6; }
6934 { echo "$as_me:$LINENO: result: no" >&5
6935 echo "${ECHO_T}no" >&6; }
6939 if test "$XDOT_PY" != "echo xdot.py" ; then
6941 cat >>confdefs.h <<\_ACEOF
6942 #define HAVE_XDOT_PY 1
6945 if test "$llvm_cv_os_type" = "MingW" ; then
6946 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6949 cat >>confdefs.h <<_ACEOF
6950 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6955 # Find a good install program. We prefer a C program (faster),
6956 # so one script is as good as another. But avoid the broken or
6957 # incompatible versions:
6958 # SysV /etc/install, /usr/sbin/install
6959 # SunOS /usr/etc/install
6960 # IRIX /sbin/install
6962 # AmigaOS /C/install, which installs bootblocks on floppy discs
6963 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6964 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6965 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6966 # OS/2's system install, which has a completely different semantic
6967 # ./install, which can be erroneously created by make from ./install.sh.
6968 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6969 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6970 if test -z "$INSTALL"; then
6971 if test "${ac_cv_path_install+set}" = set; then
6972 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6978 test -z "$as_dir" && as_dir=.
6979 # Account for people who put trailing slashes in PATH elements.
6981 ./ | .// | /cC/* | \
6982 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6983 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6986 # OSF1 and SCO ODT 3.0 have their own names for install.
6987 # Don't use installbsd from OSF since it installs stuff as root
6989 for ac_prog in ginstall scoinst install; do
6990 for ac_exec_ext in '' $ac_executable_extensions; do
6991 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6992 if test $ac_prog = install &&
6993 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6994 # AIX install. It has an incompatible calling convention.
6996 elif test $ac_prog = install &&
6997 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6998 # program-specific install script used by HP pwplus--don't use.
7001 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7014 if test "${ac_cv_path_install+set}" = set; then
7015 INSTALL=$ac_cv_path_install
7017 # As a last resort, use the slow shell script. Don't cache a
7018 # value for INSTALL within a source directory, because that will
7019 # break other packages using the cache if that directory is
7020 # removed, or if the value is a relative name.
7021 INSTALL=$ac_install_sh
7024 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7025 echo "${ECHO_T}$INSTALL" >&6; }
7027 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7028 # It thinks the first close brace ends the variable substitution.
7029 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7031 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7033 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7036 [\\/$]* | ?:[\\/]* ) ;;
7037 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7040 # Extract the first word of "bzip2", so it can be a program name with args.
7041 set dummy bzip2; 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_BZIP2+set}" = set; then
7045 echo $ECHO_N "(cached) $ECHO_C" >&6
7049 ac_cv_path_BZIP2="$BZIP2" # 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_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7070 BZIP2=$ac_cv_path_BZIP2
7071 if test -n "$BZIP2"; then
7072 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7073 echo "${ECHO_T}$BZIP2" >&6; }
7075 { echo "$as_me:$LINENO: result: no" >&5
7076 echo "${ECHO_T}no" >&6; }
7080 # Extract the first word of "cat", so it can be a program name with args.
7081 set dummy cat; 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_CAT+set}" = set; then
7085 echo $ECHO_N "(cached) $ECHO_C" >&6
7089 ac_cv_path_CAT="$CAT" # 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_CAT="$as_dir/$ac_word$ac_exec_ext"
7100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7111 if test -n "$CAT"; then
7112 { echo "$as_me:$LINENO: result: $CAT" >&5
7113 echo "${ECHO_T}$CAT" >&6; }
7115 { echo "$as_me:$LINENO: result: no" >&5
7116 echo "${ECHO_T}no" >&6; }
7120 # Extract the first word of "doxygen", so it can be a program name with args.
7121 set dummy doxygen; 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_DOXYGEN+set}" = set; then
7125 echo $ECHO_N "(cached) $ECHO_C" >&6
7129 ac_cv_path_DOXYGEN="$DOXYGEN" # 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_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7150 DOXYGEN=$ac_cv_path_DOXYGEN
7151 if test -n "$DOXYGEN"; then
7152 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7153 echo "${ECHO_T}$DOXYGEN" >&6; }
7155 { echo "$as_me:$LINENO: result: no" >&5
7156 echo "${ECHO_T}no" >&6; }
7160 # Extract the first word of "groff", so it can be a program name with args.
7161 set dummy groff; 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_GROFF+set}" = set; then
7165 echo $ECHO_N "(cached) $ECHO_C" >&6
7169 ac_cv_path_GROFF="$GROFF" # 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_GROFF="$as_dir/$ac_word$ac_exec_ext"
7180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7190 GROFF=$ac_cv_path_GROFF
7191 if test -n "$GROFF"; then
7192 { echo "$as_me:$LINENO: result: $GROFF" >&5
7193 echo "${ECHO_T}$GROFF" >&6; }
7195 { echo "$as_me:$LINENO: result: no" >&5
7196 echo "${ECHO_T}no" >&6; }
7200 # Extract the first word of "gzip", so it can be a program name with args.
7201 set dummy gzip; 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_GZIPBIN+set}" = set; then
7205 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 ac_cv_path_GZIPBIN="$GZIPBIN" # 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_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7230 GZIPBIN=$ac_cv_path_GZIPBIN
7231 if test -n "$GZIPBIN"; then
7232 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7233 echo "${ECHO_T}$GZIPBIN" >&6; }
7235 { echo "$as_me:$LINENO: result: no" >&5
7236 echo "${ECHO_T}no" >&6; }
7240 # Extract the first word of "pdfroff", so it can be a program name with args.
7241 set dummy pdfroff; 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_PDFROFF+set}" = set; then
7245 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 ac_cv_path_PDFROFF="$PDFROFF" # 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_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7260 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 PDFROFF=$ac_cv_path_PDFROFF
7271 if test -n "$PDFROFF"; then
7272 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7273 echo "${ECHO_T}$PDFROFF" >&6; }
7275 { echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6; }
7280 # Extract the first word of "zip", so it can be a program name with args.
7281 set dummy zip; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_path_ZIP+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 if test -n "$ZIP"; then
7312 { echo "$as_me:$LINENO: result: $ZIP" >&5
7313 echo "${ECHO_T}$ZIP" >&6; }
7315 { echo "$as_me:$LINENO: result: no" >&5
7316 echo "${ECHO_T}no" >&6; }
7320 for ac_prog in ocamlc
7322 # Extract the first word of "$ac_prog", so it can be a program name with args.
7323 set dummy $ac_prog; ac_word=$2
7324 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7325 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7326 if test "${ac_cv_path_OCAMLC+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7338 test -z "$as_dir" && as_dir=.
7339 for ac_exec_ext in '' $ac_executable_extensions; do
7340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7341 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7352 OCAMLC=$ac_cv_path_OCAMLC
7353 if test -n "$OCAMLC"; then
7354 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7355 echo "${ECHO_T}$OCAMLC" >&6; }
7357 { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7362 test -n "$OCAMLC" && break
7365 for ac_prog in ocamlopt
7367 # Extract the first word of "$ac_prog", so it can be a program name with args.
7368 set dummy $ac_prog; ac_word=$2
7369 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7370 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7371 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7372 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383 test -z "$as_dir" && as_dir=.
7384 for ac_exec_ext in '' $ac_executable_extensions; do
7385 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7386 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7387 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7397 OCAMLOPT=$ac_cv_path_OCAMLOPT
7398 if test -n "$OCAMLOPT"; then
7399 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7400 echo "${ECHO_T}$OCAMLOPT" >&6; }
7402 { echo "$as_me:$LINENO: result: no" >&5
7403 echo "${ECHO_T}no" >&6; }
7407 test -n "$OCAMLOPT" && break
7410 for ac_prog in ocamldep
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_OCAMLDEP+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 ac_cv_path_OCAMLDEP="$OCAMLDEP" # 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_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7442 OCAMLDEP=$ac_cv_path_OCAMLDEP
7443 if test -n "$OCAMLDEP"; then
7444 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7445 echo "${ECHO_T}$OCAMLDEP" >&6; }
7447 { echo "$as_me:$LINENO: result: no" >&5
7448 echo "${ECHO_T}no" >&6; }
7452 test -n "$OCAMLDEP" && break
7455 for ac_prog in ocamldoc
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_OCAMLDOC+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 ac_cv_path_OCAMLDOC="$OCAMLDOC" # 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_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7487 OCAMLDOC=$ac_cv_path_OCAMLDOC
7488 if test -n "$OCAMLDOC"; then
7489 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7490 echo "${ECHO_T}$OCAMLDOC" >&6; }
7492 { echo "$as_me:$LINENO: result: no" >&5
7493 echo "${ECHO_T}no" >&6; }
7497 test -n "$OCAMLDOC" && break
7500 for ac_prog in gas as
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_GAS+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 ac_cv_path_GAS="$GAS" # 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_GAS="$as_dir/$ac_word$ac_exec_ext"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7533 if test -n "$GAS"; then
7534 { echo "$as_me:$LINENO: result: $GAS" >&5
7535 echo "${ECHO_T}$GAS" >&6; }
7537 { echo "$as_me:$LINENO: result: no" >&5
7538 echo "${ECHO_T}no" >&6; }
7542 test -n "$GAS" && break
7546 { echo "$as_me:$LINENO: checking for linker version" >&5
7547 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7548 if test "${llvm_cv_link_version+set}" = set; then
7549 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 version_string="$(ld -v 2>&1 | head -1)"
7555 if (echo "$version_string" | grep -q "ld64"); then
7556 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7558 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7562 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7563 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7565 cat >>confdefs.h <<_ACEOF
7566 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7571 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7572 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7573 if test "${llvm_cv_link_use_r+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7577 ac_cpp='$CPP $CPPFLAGS'
7578 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7579 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7580 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7583 CFLAGS="$CFLAGS -Wl,-R."
7584 cat >conftest.$ac_ext <<_ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7599 rm -f conftest.$ac_objext conftest$ac_exeext
7600 if { (ac_try="$ac_link"
7602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7603 *) ac_try_echo=$ac_try;;
7605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7606 (eval "$ac_link") 2>conftest.er1
7608 grep -v '^ *+' conftest.er1 >conftest.err
7610 cat conftest.err >&5
7611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7612 (exit $ac_status); } &&
7613 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7614 { (case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_try") 2>&5
7621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7622 (exit $ac_status); }; } &&
7623 { ac_try='test -s conftest$ac_exeext'
7624 { (case "(($ac_try" in
7625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7626 *) ac_try_echo=$ac_try;;
7628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7629 (eval "$ac_try") 2>&5
7631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7632 (exit $ac_status); }; }; then
7633 llvm_cv_link_use_r=yes
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.$ac_ext >&5
7638 llvm_cv_link_use_r=no
7641 rm -f core conftest.err conftest.$ac_objext \
7642 conftest$ac_exeext conftest.$ac_ext
7645 ac_cpp='$CPP $CPPFLAGS'
7646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7652 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7653 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7654 if test "$llvm_cv_link_use_r" = yes ; then
7656 cat >>confdefs.h <<\_ACEOF
7657 #define HAVE_LINK_R 1
7663 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7664 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7665 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 ac_cpp='$CPP $CPPFLAGS'
7670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7675 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7676 cat >conftest.$ac_ext <<_ACEOF
7679 cat confdefs.h >>conftest.$ac_ext
7680 cat >>conftest.$ac_ext <<_ACEOF
7681 /* end confdefs.h. */
7691 rm -f conftest.$ac_objext conftest$ac_exeext
7692 if { (ac_try="$ac_link"
7694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7695 *) ac_try_echo=$ac_try;;
7697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7698 (eval "$ac_link") 2>conftest.er1
7700 grep -v '^ *+' conftest.er1 >conftest.err
7702 cat conftest.err >&5
7703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7704 (exit $ac_status); } &&
7705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7706 { (case "(($ac_try" in
7707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7708 *) ac_try_echo=$ac_try;;
7710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7711 (eval "$ac_try") 2>&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); }; } &&
7715 { ac_try='test -s conftest$ac_exeext'
7716 { (case "(($ac_try" in
7717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7718 *) ac_try_echo=$ac_try;;
7720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7721 (eval "$ac_try") 2>&5
7723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7724 (exit $ac_status); }; }; then
7725 llvm_cv_link_use_export_dynamic=yes
7727 echo "$as_me: failed program was:" >&5
7728 sed 's/^/| /' conftest.$ac_ext >&5
7730 llvm_cv_link_use_export_dynamic=no
7733 rm -f core conftest.err conftest.$ac_objext \
7734 conftest$ac_exeext conftest.$ac_ext
7737 ac_cpp='$CPP $CPPFLAGS'
7738 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7739 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7740 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7744 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7745 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7746 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7748 cat >>confdefs.h <<\_ACEOF
7749 #define HAVE_LINK_EXPORT_DYNAMIC 1
7755 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7756 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7757 if test "${llvm_cv_link_use_version_script+set}" = set; then
7758 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 ac_cpp='$CPP $CPPFLAGS'
7762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7768 # The following code is from the autoconf manual,
7769 # "11.13: Limitations of Usual Tools".
7770 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7771 # Use mktemp if possible; otherwise fall back on mkdir,
7772 # with $RANDOM to make collisions less likely.
7776 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7778 test -n "$tmp" && test -d "$tmp"
7780 tmp=$TMPDIR/foo$$-$RANDOM
7781 (umask 077 && mkdir "$tmp")
7784 echo "{" > "$tmp/export.map"
7785 echo " global: main;" >> "$tmp/export.map"
7786 echo " local: *;" >> "$tmp/export.map"
7787 echo "};" >> "$tmp/export.map"
7789 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7790 cat >conftest.$ac_ext <<_ACEOF
7793 cat confdefs.h >>conftest.$ac_ext
7794 cat >>conftest.$ac_ext <<_ACEOF
7795 /* end confdefs.h. */
7805 rm -f conftest.$ac_objext conftest$ac_exeext
7806 if { (ac_try="$ac_link"
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_link") 2>conftest.er1
7814 grep -v '^ *+' conftest.er1 >conftest.err
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } &&
7819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7820 { (case "(($ac_try" in
7821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7822 *) ac_try_echo=$ac_try;;
7824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7825 (eval "$ac_try") 2>&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); }; } &&
7829 { ac_try='test -s conftest$ac_exeext'
7830 { (case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_try") 2>&5
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; }; then
7839 llvm_cv_link_use_version_script=yes
7841 echo "$as_me: failed program was:" >&5
7842 sed 's/^/| /' conftest.$ac_ext >&5
7844 llvm_cv_link_use_version_script=no
7847 rm -f core conftest.err conftest.$ac_objext \
7848 conftest$ac_exeext conftest.$ac_ext
7849 rm "$tmp/export.map"
7853 ac_cpp='$CPP $CPPFLAGS'
7854 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7855 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7856 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7860 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7861 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7862 if test "$llvm_cv_link_use_version_script" = yes ; then
7863 HAVE_LINK_VERSION_SCRIPT=1
7870 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7871 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7872 if test "${ac_cv_c_const+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 cat >conftest.$ac_ext <<_ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7885 /* FIXME: Include the comments suggested by Paul. */
7887 /* Ultrix mips cc rejects this. */
7888 typedef int charset[2];
7890 /* SunOS 4.1.1 cc rejects this. */
7891 char const *const *ccp;
7893 /* NEC SVR4.0.2 mips cc rejects this. */
7894 struct point {int x, y;};
7895 static struct point const zero = {0,0};
7896 /* AIX XL C 1.02.0.0 rejects this.
7897 It does not let you subtract one const X* pointer from another in
7898 an arm of an if-expression whose if-part is not a constant
7900 const char *g = "string";
7901 ccp = &g + (g ? g-g : 0);
7902 /* HPUX 7.0 cc rejects these. */
7905 ccp = (char const *const *) p;
7906 { /* SCO 3.2v4 cc rejects this. */
7908 char const *s = 0 ? (char *) 0 : (char const *) 0;
7913 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7915 const int *foo = &x[0];
7918 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7919 typedef const int *iptr;
7923 { /* AIX XL C 1.02.0.0 rejects this saying
7924 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7925 struct s { int j; const int *ap[3]; };
7926 struct s *b; b->j = 5;
7928 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7932 return !x[0] && !zero.x;
7939 rm -f conftest.$ac_objext
7940 if { (ac_try="$ac_compile"
7942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7943 *) ac_try_echo=$ac_try;;
7945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7946 (eval "$ac_compile") 2>conftest.er1
7948 grep -v '^ *+' conftest.er1 >conftest.err
7950 cat conftest.err >&5
7951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7952 (exit $ac_status); } &&
7953 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7954 { (case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7959 (eval "$ac_try") 2>&5
7961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7962 (exit $ac_status); }; } &&
7963 { ac_try='test -s conftest.$ac_objext'
7964 { (case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_try") 2>&5
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7983 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7984 echo "${ECHO_T}$ac_cv_c_const" >&6; }
7985 if test $ac_cv_c_const = no; then
7987 cat >>confdefs.h <<\_ACEOF
7999 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8000 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8001 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8002 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 cat >conftest.$ac_ext <<_ACEOF
8009 cat confdefs.h >>conftest.$ac_ext
8010 cat >>conftest.$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8012 #include <sys/types.h>
8024 rm -f conftest.$ac_objext
8025 if { (ac_try="$ac_compile"
8027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8033 grep -v '^ *+' conftest.er1 >conftest.err
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } &&
8038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8039 { (case "(($ac_try" in
8040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8041 *) ac_try_echo=$ac_try;;
8043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8044 (eval "$ac_try") 2>&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); }; } &&
8048 { ac_try='test -s conftest.$ac_objext'
8049 { (case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_try") 2>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); }; }; then
8058 eval "$as_ac_Header=yes"
8060 echo "$as_me: failed program was:" >&5
8061 sed 's/^/| /' conftest.$ac_ext >&5
8063 eval "$as_ac_Header=no"
8066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8068 ac_res=`eval echo '${'$as_ac_Header'}'`
8069 { echo "$as_me:$LINENO: result: $ac_res" >&5
8070 echo "${ECHO_T}$ac_res" >&6; }
8071 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8072 cat >>confdefs.h <<_ACEOF
8073 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8076 ac_header_dirent=$ac_hdr; break
8080 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8081 if test $ac_header_dirent = dirent.h; then
8082 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8083 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8084 if test "${ac_cv_search_opendir+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8087 ac_func_search_save_LIBS=$LIBS
8088 cat >conftest.$ac_ext <<_ACEOF
8091 cat confdefs.h >>conftest.$ac_ext
8092 cat >>conftest.$ac_ext <<_ACEOF
8093 /* end confdefs.h. */
8095 /* Override any GCC internal prototype to avoid an error.
8096 Use char because int might match the return type of a GCC
8097 builtin and then its argument prototype would still apply. */
8110 for ac_lib in '' dir; do
8111 if test -z "$ac_lib"; then
8112 ac_res="none required"
8115 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8117 rm -f conftest.$ac_objext conftest$ac_exeext
8118 if { (ac_try="$ac_link"
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_link") 2>conftest.er1
8126 grep -v '^ *+' conftest.er1 >conftest.err
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } &&
8131 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; } &&
8141 { ac_try='test -s conftest$ac_exeext'
8142 { (case "(($ac_try" in
8143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8144 *) ac_try_echo=$ac_try;;
8146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8147 (eval "$ac_try") 2>&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); }; }; then
8151 ac_cv_search_opendir=$ac_res
8153 echo "$as_me: failed program was:" >&5
8154 sed 's/^/| /' conftest.$ac_ext >&5
8159 rm -f core conftest.err conftest.$ac_objext \
8161 if test "${ac_cv_search_opendir+set}" = set; then
8165 if test "${ac_cv_search_opendir+set}" = set; then
8168 ac_cv_search_opendir=no
8171 LIBS=$ac_func_search_save_LIBS
8173 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8174 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8175 ac_res=$ac_cv_search_opendir
8176 if test "$ac_res" != no; then
8177 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8182 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8183 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8184 if test "${ac_cv_search_opendir+set}" = set; then
8185 echo $ECHO_N "(cached) $ECHO_C" >&6
8187 ac_func_search_save_LIBS=$LIBS
8188 cat >conftest.$ac_ext <<_ACEOF
8191 cat confdefs.h >>conftest.$ac_ext
8192 cat >>conftest.$ac_ext <<_ACEOF
8193 /* end confdefs.h. */
8195 /* Override any GCC internal prototype to avoid an error.
8196 Use char because int might match the return type of a GCC
8197 builtin and then its argument prototype would still apply. */
8210 for ac_lib in '' x; do
8211 if test -z "$ac_lib"; then
8212 ac_res="none required"
8215 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8217 rm -f conftest.$ac_objext conftest$ac_exeext
8218 if { (ac_try="$ac_link"
8220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8221 *) ac_try_echo=$ac_try;;
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_link") 2>conftest.er1
8226 grep -v '^ *+' conftest.er1 >conftest.err
8228 cat conftest.err >&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } &&
8231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
8241 { ac_try='test -s conftest$ac_exeext'
8242 { (case "(($ac_try" in
8243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8244 *) ac_try_echo=$ac_try;;
8246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8247 (eval "$ac_try") 2>&5
8249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8250 (exit $ac_status); }; }; then
8251 ac_cv_search_opendir=$ac_res
8253 echo "$as_me: failed program was:" >&5
8254 sed 's/^/| /' conftest.$ac_ext >&5
8259 rm -f core conftest.err conftest.$ac_objext \
8261 if test "${ac_cv_search_opendir+set}" = set; then
8265 if test "${ac_cv_search_opendir+set}" = set; then
8268 ac_cv_search_opendir=no
8271 LIBS=$ac_func_search_save_LIBS
8273 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8274 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8275 ac_res=$ac_cv_search_opendir
8276 if test "$ac_res" != no; then
8277 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8284 for ac_header in dlfcn.h
8286 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8287 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8288 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8289 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8291 echo $ECHO_N "(cached) $ECHO_C" >&6
8293 ac_res=`eval echo '${'$as_ac_Header'}'`
8294 { echo "$as_me:$LINENO: result: $ac_res" >&5
8295 echo "${ECHO_T}$ac_res" >&6; }
8297 # Is the header compilable?
8298 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8299 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8300 cat >conftest.$ac_ext <<_ACEOF
8303 cat confdefs.h >>conftest.$ac_ext
8304 cat >>conftest.$ac_ext <<_ACEOF
8305 /* end confdefs.h. */
8306 $ac_includes_default
8307 #include <$ac_header>
8309 rm -f conftest.$ac_objext
8310 if { (ac_try="$ac_compile"
8312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8313 *) ac_try_echo=$ac_try;;
8315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8316 (eval "$ac_compile") 2>conftest.er1
8318 grep -v '^ *+' conftest.er1 >conftest.err
8320 cat conftest.err >&5
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); } &&
8323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8324 { (case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_try") 2>&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); }; } &&
8333 { ac_try='test -s conftest.$ac_objext'
8334 { (case "(($ac_try" in
8335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8336 *) ac_try_echo=$ac_try;;
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_try") 2>&5
8341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8342 (exit $ac_status); }; }; then
8343 ac_header_compiler=yes
8345 echo "$as_me: failed program was:" >&5
8346 sed 's/^/| /' conftest.$ac_ext >&5
8348 ac_header_compiler=no
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8353 echo "${ECHO_T}$ac_header_compiler" >&6; }
8355 # Is the header present?
8356 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8357 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8358 cat >conftest.$ac_ext <<_ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 #include <$ac_header>
8366 if { (ac_try="$ac_cpp conftest.$ac_ext"
8368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8369 *) ac_try_echo=$ac_try;;
8371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8372 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8374 grep -v '^ *+' conftest.er1 >conftest.err
8376 cat conftest.err >&5
8377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8378 (exit $ac_status); } >/dev/null; then
8379 if test -s conftest.err; then
8380 ac_cpp_err=$ac_c_preproc_warn_flag
8381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8388 if test -z "$ac_cpp_err"; then
8389 ac_header_preproc=yes
8391 echo "$as_me: failed program was:" >&5
8392 sed 's/^/| /' conftest.$ac_ext >&5
8394 ac_header_preproc=no
8397 rm -f conftest.err conftest.$ac_ext
8398 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8399 echo "${ECHO_T}$ac_header_preproc" >&6; }
8401 # So? What about this header?
8402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8404 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8405 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8408 ac_header_preproc=yes
8411 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8412 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8413 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8414 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8415 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8416 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8417 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8418 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8419 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8421 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8422 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8424 ## ------------------------------------ ##
8425 ## Report this to http://llvm.org/bugs/ ##
8426 ## ------------------------------------ ##
8428 ) | sed "s/^/$as_me: WARNING: /" >&2
8431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 eval "$as_ac_Header=\$ac_header_preproc"
8438 ac_res=`eval echo '${'$as_ac_Header'}'`
8439 { echo "$as_me:$LINENO: result: $ac_res" >&5
8440 echo "${ECHO_T}$ac_res" >&6; }
8443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8444 cat >>confdefs.h <<_ACEOF
8445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8452 # Check whether --enable-ltdl-install was given.
8453 if test "${enable_ltdl_install+set}" = set; then
8454 enableval=$enable_ltdl_install;
8460 if test x"${enable_ltdl_install-no}" != xno; then
8462 INSTALL_LTDL_FALSE='#'
8464 INSTALL_LTDL_TRUE='#'
8470 if test x"${enable_ltdl_convenience-no}" != xno; then
8471 CONVENIENCE_LTDL_TRUE=
8472 CONVENIENCE_LTDL_FALSE='#'
8474 CONVENIENCE_LTDL_TRUE='#'
8475 CONVENIENCE_LTDL_FALSE=
8479 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8480 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8482 libname_spec='lib$name'
8490 shlibpath_overrides_runpath=unknown
8492 dynamic_linker="$host_os ld.so"
8493 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8494 if test "$GCC" = yes; then
8495 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8496 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8497 # if the path contains ";" then we assume it to be the separator
8498 # otherwise default to the standard path separator (i.e. ":") - it is
8499 # assumed that no part of a normal pathname contains ";" but that should
8500 # okay in the real world where ";" in dirpaths is itself problematic.
8501 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8503 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8506 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8508 need_lib_prefix=unknown
8509 hardcode_into_libs=no
8511 # when you set need_version to no, make sure it does not cause -set_version
8512 # flags to be left without arguments
8513 need_version=unknown
8518 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8519 shlibpath_var=LIBPATH
8521 # AIX 3 has no versioning support, so we append a major version to the name.
8522 soname_spec='${libname}${release}${shared_ext}$major'
8529 hardcode_into_libs=yes
8530 if test "$host_cpu" = ia64; then
8531 # AIX 5 supports IA64
8532 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8533 shlibpath_var=LD_LIBRARY_PATH
8535 # With GCC up to 2.95.x, collect2 would create an import file
8536 # for dependence libraries. The import file would start with
8537 # the line `#! .'. This would cause the generated library to
8538 # depend on `.', always an invalid library. This was fixed in
8539 # development snapshots of GCC prior to 3.0.
8541 aix4 | aix4.[01] | aix4.[01].*)
8542 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8544 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8551 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8552 # soname into executable. Probably we can add versioning support to
8553 # collect2, so additional links can be useful in future.
8554 if test "$aix_use_runtimelinking" = yes; then
8555 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8556 # instead of lib<name>.a to let people know that these are not
8557 # typical AIX shared libraries.
8558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8560 # We preserve .a as extension for shared libraries through AIX4.2
8561 # and later when we are not doing run time linking.
8562 library_names_spec='${libname}${release}.a $libname.a'
8563 soname_spec='${libname}${release}${shared_ext}$major'
8565 shlibpath_var=LIBPATH
8570 library_names_spec='$libname.ixlibrary $libname.a'
8571 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8572 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'
8576 library_names_spec='${libname}${shared_ext}'
8577 dynamic_linker="$host_os ld.so"
8578 shlibpath_var=LIBRARY_PATH
8584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8585 soname_spec='${libname}${release}${shared_ext}$major'
8586 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8587 shlibpath_var=LD_LIBRARY_PATH
8588 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8589 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8590 # the default ld.so.conf also contains /usr/contrib/lib and
8591 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8592 # libtool to hard-code these into programs
8595 cygwin* | mingw* | pw32*)
8596 version_type=windows
8601 case $GCC,$host_os in
8602 yes,cygwin* | yes,mingw* | yes,pw32*)
8603 library_names_spec='$libname.dll.a'
8604 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8605 postinstall_cmds='base_file=`basename \${file}`~
8606 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8607 dldir=$destdir/`dirname \$dlpath`~
8608 test -d \$dldir || mkdir -p \$dldir~
8609 $install_prog $dir/$dlname \$dldir/$dlname~
8610 chmod a+x \$dldir/$dlname'
8611 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8612 dlpath=$dir/\$dldll~
8614 shlibpath_overrides_runpath=yes
8618 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8619 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8620 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8623 # MinGW DLLs use traditional 'lib' prefix
8624 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8625 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8626 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8627 # It is most probably a Windows format PATH printed by
8628 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8629 # path with ; separators, and with drive letters. We can handle the
8630 # drive letters (cygwin fileutils understands them), so leave them,
8631 # especially as we might pass files found there to a mingw objdump,
8632 # which wouldn't understand a cygwinified path. Ahh.
8633 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8635 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8639 # pw32 DLLs use 'pw' prefix rather than 'lib'
8640 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8646 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8649 dynamic_linker='Win32 ld.exe'
8650 # FIXME: first we should search . and the directory the executable is in
8654 darwin* | rhapsody*)
8655 dynamic_linker="$host_os dyld"
8659 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8660 soname_spec='${libname}${release}${major}$shared_ext'
8661 shlibpath_overrides_runpath=yes
8662 shlibpath_var=DYLD_LIBRARY_PATH
8663 shrext_cmds='.dylib'
8664 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8665 if test "$GCC" = yes; then
8666 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"`
8668 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8670 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8678 soname_spec='${libname}${release}${shared_ext}$major'
8679 shlibpath_var=LD_LIBRARY_PATH
8690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8691 soname_spec='${libname}${release}${shared_ext}$major'
8692 shlibpath_var=LD_LIBRARY_PATH
8693 shlibpath_overrides_runpath=no
8694 hardcode_into_libs=yes
8695 dynamic_linker='GNU ld.so'
8698 freebsd* | dragonfly*)
8699 # DragonFly does not have aout. When/if they implement a new
8700 # versioning mechanism, adjust this.
8701 if test -x /usr/bin/objformat; then
8702 objformat=`/usr/bin/objformat`
8705 freebsd[123].*) objformat=aout ;;
8709 version_type=freebsd-$objformat
8710 case $version_type in
8712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8717 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8721 shlibpath_var=LD_LIBRARY_PATH
8724 shlibpath_overrides_runpath=yes
8726 freebsd3.[01]* | freebsdelf3.[01]*)
8727 shlibpath_overrides_runpath=yes
8728 hardcode_into_libs=yes
8730 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8731 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8732 shlibpath_overrides_runpath=no
8733 hardcode_into_libs=yes
8735 freebsd*) # from 4.6 on
8736 shlibpath_overrides_runpath=yes
8737 hardcode_into_libs=yes
8746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8747 soname_spec='${libname}${release}${shared_ext}$major'
8748 shlibpath_var=LD_LIBRARY_PATH
8749 hardcode_into_libs=yes
8752 hpux9* | hpux10* | hpux11*)
8753 # Give a soname corresponding to the major version so that dld.sl refuses to
8754 # link against other versions.
8761 hardcode_into_libs=yes
8762 dynamic_linker="$host_os dld.so"
8763 shlibpath_var=LD_LIBRARY_PATH
8764 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8766 soname_spec='${libname}${release}${shared_ext}$major'
8767 if test "X$HPUX_IA64_MODE" = X32; then
8768 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8770 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8772 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8776 hardcode_into_libs=yes
8777 dynamic_linker="$host_os dld.sl"
8778 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8779 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8783 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8787 dynamic_linker="$host_os dld.sl"
8788 shlibpath_var=SHLIB_PATH
8789 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 soname_spec='${libname}${release}${shared_ext}$major'
8794 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8795 postinstall_cmds='chmod 555 $lib'
8802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8803 soname_spec='${libname}${release}${shared_ext}$major'
8804 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8805 shlibpath_var=LD_LIBRARY_PATH
8806 shlibpath_overrides_runpath=no
8807 hardcode_into_libs=yes
8810 irix5* | irix6* | nonstopux*)
8812 nonstopux*) version_type=nonstopux ;;
8814 if test "$lt_cv_prog_gnu_ld" = yes; then
8822 soname_spec='${libname}${release}${shared_ext}$major'
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8825 irix5* | nonstopux*)
8829 case $LD in # libtool.m4 will add one of these switches to LD
8830 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8831 libsuff= shlibsuff= libmagic=32-bit;;
8832 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8833 libsuff=32 shlibsuff=N32 libmagic=N32;;
8834 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8835 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8836 *) libsuff= shlibsuff= libmagic=never-match;;
8840 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8841 shlibpath_overrides_runpath=no
8842 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8843 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8844 hardcode_into_libs=yes
8847 # No shared lib support for Linux oldld, aout, or coff.
8848 linux*oldld* | linux*aout* | linux*coff*)
8852 # This must be Linux ELF.
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8858 soname_spec='${libname}${release}${shared_ext}$major'
8859 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8860 shlibpath_var=LD_LIBRARY_PATH
8861 shlibpath_overrides_runpath=no
8862 # This implies no fast_install, which is unacceptable.
8863 # Some rework will be needed to allow for fast_install
8864 # before this can be enabled.
8865 hardcode_into_libs=yes
8867 # Append ld.so.conf contents to the search path
8868 if test -f /etc/ld.so.conf; then
8869 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' ' '`
8870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8873 # We used to test for /lib/ld.so.1 and disable shared libraries on
8874 # powerpc, because MkLinux only supported shared libraries with the
8875 # GNU dynamic linker. Since this was broken with cross compilers,
8876 # most powerpc-linux boxes support dynamic linking these days and
8877 # people can always --disable-shared, the test was removed, and we
8878 # assume the GNU/Linux dynamic linker is in use.
8879 dynamic_linker='GNU/Linux ld.so'
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 shlibpath_var=LD_LIBRARY_PATH
8889 shlibpath_overrides_runpath=no
8890 hardcode_into_libs=yes
8891 dynamic_linker='GNU ld.so'
8898 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8900 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8901 dynamic_linker='NetBSD (a.out) ld.so'
8903 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8904 soname_spec='${libname}${release}${shared_ext}$major'
8905 dynamic_linker='NetBSD ld.elf_so'
8907 shlibpath_var=LD_LIBRARY_PATH
8908 shlibpath_overrides_runpath=yes
8909 hardcode_into_libs=yes
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=yes
8923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8924 soname_spec='${libname}${release}${shared_ext}$major'
8925 shlibpath_var=LD_LIBRARY_PATH
8926 shlibpath_overrides_runpath=yes
8931 sys_lib_dlsearch_path_spec="/usr/lib"
8933 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8935 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8936 *) need_version=no ;;
8938 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8939 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8940 shlibpath_var=LD_LIBRARY_PATH
8941 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8943 openbsd2.[89] | openbsd2.[89].*)
8944 shlibpath_overrides_runpath=no
8947 shlibpath_overrides_runpath=yes
8951 shlibpath_overrides_runpath=yes
8956 libname_spec='$name'
8959 library_names_spec='$libname${shared_ext} $libname.a'
8960 dynamic_linker='OS/2 ld.exe'
8961 shlibpath_var=LIBPATH
8964 osf3* | osf4* | osf5*)
8968 soname_spec='${libname}${release}${shared_ext}$major'
8969 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8970 shlibpath_var=LD_LIBRARY_PATH
8971 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8972 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8980 soname_spec='${libname}${release}${shared_ext}$major'
8981 shlibpath_var=LD_LIBRARY_PATH
8982 shlibpath_overrides_runpath=yes
8983 hardcode_into_libs=yes
8984 # ldd complains unless libraries are executable
8985 postinstall_cmds='chmod +x $lib'
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8992 shlibpath_var=LD_LIBRARY_PATH
8993 shlibpath_overrides_runpath=yes
8994 if test "$with_gnu_ld" = yes; then
9002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9003 soname_spec='${libname}${release}${shared_ext}$major'
9004 shlibpath_var=LD_LIBRARY_PATH
9005 case $host_vendor in
9007 shlibpath_overrides_runpath=no
9009 export_dynamic_flag_spec='${wl}-Blargedynsym'
9010 runpath_var=LD_RUN_PATH
9018 shlibpath_overrides_runpath=no
9019 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9025 if test -d /usr/nec ;then
9027 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9028 soname_spec='$libname${shared_ext}.$major'
9029 shlibpath_var=LD_LIBRARY_PATH
9033 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9034 version_type=freebsd-elf
9037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9038 soname_spec='${libname}${release}${shared_ext}$major'
9039 shlibpath_var=LD_LIBRARY_PATH
9040 hardcode_into_libs=yes
9041 if test "$with_gnu_ld" = yes; then
9042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9043 shlibpath_overrides_runpath=no
9045 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9046 shlibpath_overrides_runpath=yes
9049 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9053 sys_lib_dlsearch_path_spec='/usr/lib'
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9067 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9068 echo "${ECHO_T}$dynamic_linker" >&6; }
9069 test "$dynamic_linker" = no && can_build_shared=no
9071 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9072 if test "$GCC" = yes; then
9073 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9077 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9078 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9079 if test "${libltdl_cv_shlibext+set}" = set; then
9080 echo $ECHO_N "(cached) $ECHO_C" >&6
9084 eval libltdl_cv_shlibext=$shrext_cmds
9087 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9088 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9089 if test -n "$libltdl_cv_shlibext"; then
9091 cat >>confdefs.h <<_ACEOF
9092 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9098 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9099 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9100 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 libltdl_cv_shlibpath_var="$shlibpath_var"
9105 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9106 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9107 if test -n "$libltdl_cv_shlibpath_var"; then
9109 cat >>confdefs.h <<_ACEOF
9110 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9116 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9117 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9118 if test "${libltdl_cv_sys_search_path+set}" = set; then
9119 echo $ECHO_N "(cached) $ECHO_C" >&6
9121 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9123 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9124 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9125 if test -n "$libltdl_cv_sys_search_path"; then
9127 for dir in $libltdl_cv_sys_search_path; do
9128 if test -z "$sys_search_path"; then
9129 sys_search_path="$dir"
9131 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9135 cat >>confdefs.h <<_ACEOF
9136 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9141 { echo "$as_me:$LINENO: checking for objdir" >&5
9142 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9143 if test "${libltdl_cv_objdir+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 libltdl_cv_objdir="$objdir"
9147 if test -n "$objdir"; then
9150 rm -f .libs 2>/dev/null
9151 mkdir .libs 2>/dev/null
9152 if test -d .libs; then
9153 libltdl_cv_objdir=.libs
9155 # MS-DOS does not allow filenames that begin with a dot.
9156 libltdl_cv_objdir=_libs
9158 rmdir .libs 2>/dev/null
9162 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9163 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9165 cat >>confdefs.h <<_ACEOF
9166 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9174 # Check for command to grab the raw symbol name followed by C symbol from nm.
9175 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9176 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9177 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9178 echo $ECHO_N "(cached) $ECHO_C" >&6
9181 # These are sane defaults that work on at least a few old systems.
9182 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9184 # Character class describing NM global symbol codes.
9185 symcode='[BCDEGRST]'
9187 # Regexp to match symbols that can be accessed directly from C.
9188 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9190 # Transform an extracted symbol line into a proper C declaration
9191 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9193 # Transform an extracted symbol line into symbol name and symbol address
9194 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'"
9196 # Define system-specific variables.
9201 cygwin* | mingw* | pw32*)
9202 symcode='[ABCDGISTW]'
9204 hpux*) # Its linker distinguishes data from code symbols
9205 if test "$host_cpu" = ia64; then
9206 symcode='[ABCDEGRST]'
9208 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9209 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'"
9212 if test "$host_cpu" = ia64; then
9213 symcode='[ABCDGIRSTW]'
9214 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9215 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'"
9219 symcode='[BCDEGRST]'
9222 symcode='[BCDEGQRST]'
9233 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9241 # Handle CRLF in mingw tool chain
9245 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9249 # If we're using GNU nm, then use its standard symbol codes.
9250 case `$NM -V 2>&1` in
9251 *GNU* | *'with BFD'*)
9252 symcode='[ABCDGIRSTW]' ;;
9255 # Try without a prefix undercore, then with it.
9256 for ac_symprfx in "" "_"; do
9258 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9259 symxfrm="\\1 $ac_symprfx\\2 \\2"
9261 # Write the raw and C identifiers.
9262 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9264 # Check to see that the pipe works correctly.
9268 cat > conftest.$ac_ext <<EOF
9273 void nm_test_func(){}
9277 int main(){nm_test_var='a';nm_test_func();return(0);}
9280 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9281 (eval $ac_compile) 2>&5
9283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9284 (exit $ac_status); }; then
9285 # Now try to grab the symbols.
9287 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9288 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } && test -s "$nlist"; then
9292 # Try sorting and uniquifying the output.
9293 if sort "$nlist" | uniq > "$nlist"T; then
9294 mv -f "$nlist"T "$nlist"
9299 # Make sure that we snagged all the symbols we need.
9300 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9301 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9302 cat <<EOF > conftest.$ac_ext
9308 # Now generate the symbol file.
9309 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9311 cat <<EOF >> conftest.$ac_ext
9312 #if defined (__STDC__) && __STDC__
9313 # define lt_ptr_t void *
9315 # define lt_ptr_t char *
9319 /* The mapping between symbol names and symbols. */
9324 lt_preloaded_symbols[] =
9327 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9328 cat <<\EOF >> conftest.$ac_ext
9336 # Now try linking the two files.
9337 mv conftest.$ac_objext conftstm.$ac_objext
9338 lt_save_LIBS="$LIBS"
9339 lt_save_CFLAGS="$CFLAGS"
9340 LIBS="conftstm.$ac_objext"
9341 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9342 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9343 (eval $ac_link) 2>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9349 LIBS="$lt_save_LIBS"
9350 CFLAGS="$lt_save_CFLAGS"
9352 echo "cannot find nm_test_func in $nlist" >&5
9355 echo "cannot find nm_test_var in $nlist" >&5
9358 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9361 echo "$progname: failed program was:" >&5
9362 cat conftest.$ac_ext >&5
9364 rm -f conftest* conftst*
9366 # Do not use the global_symbol_pipe unless it works.
9367 if test "$pipe_works" = yes; then
9370 lt_cv_sys_global_symbol_pipe=
9376 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9377 lt_cv_sys_global_symbol_to_cdecl=
9379 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9380 { echo "$as_me:$LINENO: result: failed" >&5
9381 echo "${ECHO_T}failed" >&6; }
9383 { echo "$as_me:$LINENO: result: ok" >&5
9384 echo "${ECHO_T}ok" >&6; }
9388 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9389 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9390 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9394 libltdl_cv_preloaded_symbols=yes
9396 libltdl_cv_preloaded_symbols=no
9400 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9401 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9402 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9404 cat >>confdefs.h <<\_ACEOF
9405 #define HAVE_PRELOADED_SYMBOLS 1
9413 ac_cpp='$CPP $CPPFLAGS'
9414 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9415 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9416 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9419 { echo "$as_me:$LINENO: checking for shl_load" >&5
9420 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9421 if test "${ac_cv_func_shl_load+set}" = set; then
9422 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 cat >conftest.$ac_ext <<_ACEOF
9427 cat confdefs.h >>conftest.$ac_ext
9428 cat >>conftest.$ac_ext <<_ACEOF
9429 /* end confdefs.h. */
9430 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9432 #define shl_load innocuous_shl_load
9434 /* System header to define __stub macros and hopefully few prototypes,
9435 which can conflict with char shl_load (); below.
9436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9437 <limits.h> exists even on freestanding compilers. */
9440 # include <limits.h>
9442 # include <assert.h>
9447 /* Override any GCC internal prototype to avoid an error.
9448 Use char because int might match the return type of a GCC
9449 builtin and then its argument prototype would still apply. */
9454 /* The GNU C library defines this for functions which it implements
9455 to always fail with ENOSYS. Some functions are actually named
9456 something starting with __ and the normal name is an alias. */
9457 #if defined __stub_shl_load || defined __stub___shl_load
9469 rm -f conftest.$ac_objext conftest$ac_exeext
9470 if { (ac_try="$ac_link"
9472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9473 *) ac_try_echo=$ac_try;;
9475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9476 (eval "$ac_link") 2>conftest.er1
9478 grep -v '^ *+' conftest.er1 >conftest.err
9480 cat conftest.err >&5
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); } &&
9483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9484 { (case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_try") 2>&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); }; } &&
9493 { ac_try='test -s conftest$ac_exeext'
9494 { (case "(($ac_try" in
9495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9496 *) ac_try_echo=$ac_try;;
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_try") 2>&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 (exit $ac_status); }; }; then
9503 ac_cv_func_shl_load=yes
9505 echo "$as_me: failed program was:" >&5
9506 sed 's/^/| /' conftest.$ac_ext >&5
9508 ac_cv_func_shl_load=no
9511 rm -f core conftest.err conftest.$ac_objext \
9512 conftest$ac_exeext conftest.$ac_ext
9514 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9515 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9516 if test $ac_cv_func_shl_load = yes; then
9518 cat >>confdefs.h <<\_ACEOF
9519 #define HAVE_SHL_LOAD 1
9523 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9524 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9525 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9526 echo $ECHO_N "(cached) $ECHO_C" >&6
9528 ac_check_lib_save_LIBS=$LIBS
9530 cat >conftest.$ac_ext <<_ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.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. */
9552 rm -f conftest.$ac_objext conftest$ac_exeext
9553 if { (ac_try="$ac_link"
9555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9556 *) ac_try_echo=$ac_try;;
9558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9559 (eval "$ac_link") 2>conftest.er1
9561 grep -v '^ *+' conftest.er1 >conftest.err
9563 cat conftest.err >&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); } &&
9566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9567 { (case "(($ac_try" in
9568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569 *) ac_try_echo=$ac_try;;
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_try") 2>&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; } &&
9576 { ac_try='test -s conftest$ac_exeext'
9577 { (case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9582 (eval "$ac_try") 2>&5
9584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9585 (exit $ac_status); }; }; then
9586 ac_cv_lib_dld_shl_load=yes
9588 echo "$as_me: failed program was:" >&5
9589 sed 's/^/| /' conftest.$ac_ext >&5
9591 ac_cv_lib_dld_shl_load=no
9594 rm -f core conftest.err conftest.$ac_objext \
9595 conftest$ac_exeext conftest.$ac_ext
9596 LIBS=$ac_check_lib_save_LIBS
9598 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9599 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9600 if test $ac_cv_lib_dld_shl_load = yes; then
9602 cat >>confdefs.h <<\_ACEOF
9603 #define HAVE_SHL_LOAD 1
9606 LIBADD_DL="$LIBADD_DL -ldld"
9608 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9609 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9610 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9611 echo $ECHO_N "(cached) $ECHO_C" >&6
9613 ac_check_lib_save_LIBS=$LIBS
9615 cat >conftest.$ac_ext <<_ACEOF
9618 cat confdefs.h >>conftest.$ac_ext
9619 cat >>conftest.$ac_ext <<_ACEOF
9620 /* end confdefs.h. */
9622 /* Override any GCC internal prototype to avoid an error.
9623 Use char because int might match the return type of a GCC
9624 builtin and then its argument prototype would still apply. */
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (ac_try="$ac_link"
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_link") 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652 { (case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_try") 2>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest$ac_exeext'
9662 { (case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_try") 2>&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_lib_dl_dlopen=yes
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_cv_lib_dl_dlopen=no
9679 rm -f core conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9681 LIBS=$ac_check_lib_save_LIBS
9683 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9684 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9685 if test $ac_cv_lib_dl_dlopen = yes; then
9687 cat >>confdefs.h <<\_ACEOF
9688 #define HAVE_LIBDL 1
9691 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9693 cat >conftest.$ac_ext <<_ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (ac_try="$ac_link"
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
9720 grep -v '^ *+' conftest.er1 >conftest.err
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } &&
9725 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9726 { (case "(($ac_try" in
9727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9728 *) ac_try_echo=$ac_try;;
9730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9731 (eval "$ac_try") 2>&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); }; } &&
9735 { ac_try='test -s conftest$ac_exeext'
9736 { (case "(($ac_try" in
9737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9738 *) ac_try_echo=$ac_try;;
9740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9741 (eval "$ac_try") 2>&5
9743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9744 (exit $ac_status); }; }; then
9746 cat >>confdefs.h <<\_ACEOF
9747 #define HAVE_LIBDL 1
9749 libltdl_cv_func_dlopen="yes"
9751 echo "$as_me: failed program was:" >&5
9752 sed 's/^/| /' conftest.$ac_ext >&5
9754 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9755 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9756 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9757 echo $ECHO_N "(cached) $ECHO_C" >&6
9759 ac_check_lib_save_LIBS=$LIBS
9761 cat >conftest.$ac_ext <<_ACEOF
9764 cat confdefs.h >>conftest.$ac_ext
9765 cat >>conftest.$ac_ext <<_ACEOF
9766 /* end confdefs.h. */
9768 /* Override any GCC internal prototype to avoid an error.
9769 Use char because int might match the return type of a GCC
9770 builtin and then its argument prototype would still apply. */
9783 rm -f conftest.$ac_objext conftest$ac_exeext
9784 if { (ac_try="$ac_link"
9786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9787 *) ac_try_echo=$ac_try;;
9789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9790 (eval "$ac_link") 2>conftest.er1
9792 grep -v '^ *+' conftest.er1 >conftest.err
9794 cat conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 (exit $ac_status); } &&
9797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9798 { (case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_try") 2>&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); }; } &&
9807 { ac_try='test -s conftest$ac_exeext'
9808 { (case "(($ac_try" in
9809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9810 *) ac_try_echo=$ac_try;;
9812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9813 (eval "$ac_try") 2>&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); }; }; then
9817 ac_cv_lib_svld_dlopen=yes
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.$ac_ext >&5
9822 ac_cv_lib_svld_dlopen=no
9825 rm -f core conftest.err conftest.$ac_objext \
9826 conftest$ac_exeext conftest.$ac_ext
9827 LIBS=$ac_check_lib_save_LIBS
9829 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9830 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9831 if test $ac_cv_lib_svld_dlopen = yes; then
9833 cat >>confdefs.h <<\_ACEOF
9834 #define HAVE_LIBDL 1
9837 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9839 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9840 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9841 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9842 echo $ECHO_N "(cached) $ECHO_C" >&6
9844 ac_check_lib_save_LIBS=$LIBS
9846 cat >conftest.$ac_ext <<_ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9853 /* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
9868 rm -f conftest.$ac_objext conftest$ac_exeext
9869 if { (ac_try="$ac_link"
9871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9872 *) ac_try_echo=$ac_try;;
9874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9875 (eval "$ac_link") 2>conftest.er1
9877 grep -v '^ *+' conftest.er1 >conftest.err
9879 cat conftest.err >&5
9880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9881 (exit $ac_status); } &&
9882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9883 { (case "(($ac_try" in
9884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9885 *) ac_try_echo=$ac_try;;
9887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9888 (eval "$ac_try") 2>&5
9890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9891 (exit $ac_status); }; } &&
9892 { ac_try='test -s conftest$ac_exeext'
9893 { (case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_try") 2>&5
9900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9901 (exit $ac_status); }; }; then
9902 ac_cv_lib_dld_dld_link=yes
9904 echo "$as_me: failed program was:" >&5
9905 sed 's/^/| /' conftest.$ac_ext >&5
9907 ac_cv_lib_dld_dld_link=no
9910 rm -f core conftest.err conftest.$ac_objext \
9911 conftest$ac_exeext conftest.$ac_ext
9912 LIBS=$ac_check_lib_save_LIBS
9914 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9915 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9916 if test $ac_cv_lib_dld_dld_link = yes; then
9918 cat >>confdefs.h <<\_ACEOF
9922 LIBADD_DL="$LIBADD_DL -ldld"
9924 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9925 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9926 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9927 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9935 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9937 #define _dyld_func_lookup innocuous__dyld_func_lookup
9939 /* System header to define __stub macros and hopefully few prototypes,
9940 which can conflict with char _dyld_func_lookup (); below.
9941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9942 <limits.h> exists even on freestanding compilers. */
9945 # include <limits.h>
9947 # include <assert.h>
9950 #undef _dyld_func_lookup
9952 /* Override any GCC internal prototype to avoid an error.
9953 Use char because int might match the return type of a GCC
9954 builtin and then its argument prototype would still apply. */
9958 char _dyld_func_lookup ();
9959 /* The GNU C library defines this for functions which it implements
9960 to always fail with ENOSYS. Some functions are actually named
9961 something starting with __ and the normal name is an alias. */
9962 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9969 return _dyld_func_lookup ();
9974 rm -f conftest.$ac_objext conftest$ac_exeext
9975 if { (ac_try="$ac_link"
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_link") 2>conftest.er1
9983 grep -v '^ *+' conftest.er1 >conftest.err
9985 cat conftest.err >&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); } &&
9988 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9989 { (case "(($ac_try" in
9990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9991 *) ac_try_echo=$ac_try;;
9993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9994 (eval "$ac_try") 2>&5
9996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9997 (exit $ac_status); }; } &&
9998 { ac_try='test -s conftest$ac_exeext'
9999 { (case "(($ac_try" in
10000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10001 *) ac_try_echo=$ac_try;;
10003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10004 (eval "$ac_try") 2>&5
10006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10007 (exit $ac_status); }; }; then
10008 ac_cv_func__dyld_func_lookup=yes
10010 echo "$as_me: failed program was:" >&5
10011 sed 's/^/| /' conftest.$ac_ext >&5
10013 ac_cv_func__dyld_func_lookup=no
10016 rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10019 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10020 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10021 if test $ac_cv_func__dyld_func_lookup = yes; then
10023 cat >>confdefs.h <<\_ACEOF
10024 #define HAVE_DYLD 1
10038 rm -f core conftest.err conftest.$ac_objext \
10039 conftest$ac_exeext conftest.$ac_ext
10050 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10052 lt_save_LIBS="$LIBS"
10053 LIBS="$LIBS $LIBADD_DL"
10055 for ac_func in dlerror
10057 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10058 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10059 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10060 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 cat >conftest.$ac_ext <<_ACEOF
10066 cat confdefs.h >>conftest.$ac_ext
10067 cat >>conftest.$ac_ext <<_ACEOF
10068 /* end confdefs.h. */
10069 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10070 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10071 #define $ac_func innocuous_$ac_func
10073 /* System header to define __stub macros and hopefully few prototypes,
10074 which can conflict with char $ac_func (); below.
10075 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10076 <limits.h> exists even on freestanding compilers. */
10079 # include <limits.h>
10081 # include <assert.h>
10086 /* Override any GCC internal prototype to avoid an error.
10087 Use char because int might match the return type of a GCC
10088 builtin and then its argument prototype would still apply. */
10093 /* The GNU C library defines this for functions which it implements
10094 to always fail with ENOSYS. Some functions are actually named
10095 something starting with __ and the normal name is an alias. */
10096 #if defined __stub_$ac_func || defined __stub___$ac_func
10103 return $ac_func ();
10108 rm -f conftest.$ac_objext conftest$ac_exeext
10109 if { (ac_try="$ac_link"
10110 case "(($ac_try" in
10111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10112 *) ac_try_echo=$ac_try;;
10114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10115 (eval "$ac_link") 2>conftest.er1
10117 grep -v '^ *+' conftest.er1 >conftest.err
10119 cat conftest.err >&5
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } &&
10122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10123 { (case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_try") 2>&5
10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10131 (exit $ac_status); }; } &&
10132 { ac_try='test -s conftest$ac_exeext'
10133 { (case "(($ac_try" in
10134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_try") 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 eval "$as_ac_var=yes"
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 eval "$as_ac_var=no"
10150 rm -f core conftest.err conftest.$ac_objext \
10151 conftest$ac_exeext conftest.$ac_ext
10153 ac_res=`eval echo '${'$as_ac_var'}'`
10154 { echo "$as_me:$LINENO: result: $ac_res" >&5
10155 echo "${ECHO_T}$ac_res" >&6; }
10156 if test `eval echo '${'$as_ac_var'}'` = yes; then
10157 cat >>confdefs.h <<_ACEOF
10158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10164 LIBS="$lt_save_LIBS"
10167 ac_cpp='$CPP $CPPFLAGS'
10168 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10169 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10170 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10174 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10175 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10176 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 ac_cv_sys_symbol_underscore=no
10180 cat > conftest.$ac_ext <<EOF
10181 void nm_test_func(){}
10182 int main(){nm_test_func;return 0;}
10184 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10185 (eval $ac_compile) 2>&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); }; then
10189 # Now try to grab the symbols.
10190 ac_nlist=conftest.nm
10191 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10192 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } && test -s "$ac_nlist"; then
10196 # See whether the symbols have a leading underscore.
10197 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10198 ac_cv_sys_symbol_underscore=yes
10200 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10203 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10207 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10210 echo "configure: failed program was:" >&5
10216 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10217 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10220 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10221 if test x"$libltdl_cv_func_dlopen" = xyes ||
10222 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10223 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10224 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10225 if test "${libltdl_cv_need_uscore+set}" = set; then
10226 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 libltdl_cv_need_uscore=unknown
10230 LIBS="$LIBS $LIBADD_DL"
10231 if test "$cross_compiling" = yes; then :
10232 libltdl_cv_need_uscore=cross
10234 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10235 lt_status=$lt_dlunknown
10236 cat > conftest.$ac_ext <<EOF
10237 #line 10237 "configure"
10238 #include "confdefs.h"
10247 # define LT_DLGLOBAL RTLD_GLOBAL
10250 # define LT_DLGLOBAL DL_GLOBAL
10252 # define LT_DLGLOBAL 0
10256 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10257 find out it does not work in some platform. */
10258 #ifndef LT_DLLAZY_OR_NOW
10260 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10263 # define LT_DLLAZY_OR_NOW DL_LAZY
10266 # define LT_DLLAZY_OR_NOW RTLD_NOW
10269 # define LT_DLLAZY_OR_NOW DL_NOW
10271 # define LT_DLLAZY_OR_NOW 0
10279 extern "C" void exit (int);
10282 void fnord() { int i=42;}
10285 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10286 int status = $lt_dlunknown;
10290 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10291 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10292 /* dlclose (self); */
10300 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10301 (eval $ac_link) 2>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10305 (./conftest; exit; ) >&5 2>/dev/null
10307 case x$lt_status in
10308 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10309 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10310 x$lt_dlunknown|x*) ;;
10313 # compilation failed
10322 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10323 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10327 if test x"$libltdl_cv_need_uscore" = xyes; then
10329 cat >>confdefs.h <<\_ACEOF
10330 #define NEED_USCORE 1
10336 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10337 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10338 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 # PORTME does your system automatically load deplibs for dlopen?
10342 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10343 # For now, we just catch OSes we know something about -- in the
10344 # future, we'll try test this programmatically.
10345 libltdl_cv_sys_dlopen_deplibs=unknown
10347 aix3*|aix4.1.*|aix4.2.*)
10348 # Unknown whether this is true for these versions of AIX, but
10349 # we want this `case' here to explicitly catch those versions.
10350 libltdl_cv_sys_dlopen_deplibs=unknown
10353 libltdl_cv_sys_dlopen_deplibs=yes
10356 # Assuming the user has installed a libdl from somewhere, this is true
10357 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10358 libltdl_cv_sys_dlopen_deplibs=yes
10360 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10361 # GNU and its variants, using gnu ld.so (Glibc)
10362 libltdl_cv_sys_dlopen_deplibs=yes
10365 libltdl_cv_sys_dlopen_deplibs=yes
10368 libltdl_cv_sys_dlopen_deplibs=yes
10370 irix[12345]*|irix6.[01]*)
10371 # Catch all versions of IRIX before 6.2, and indicate that we don't
10372 # know how it worked for any of those versions.
10373 libltdl_cv_sys_dlopen_deplibs=unknown
10376 # The case above catches anything before 6.2, and it's known that
10377 # at 6.2 and later dlopen does load deplibs.
10378 libltdl_cv_sys_dlopen_deplibs=yes
10381 libltdl_cv_sys_dlopen_deplibs=yes
10384 libltdl_cv_sys_dlopen_deplibs=yes
10387 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10388 # it did *not* use an RPATH in a shared library to find objects the
10389 # library depends on, so we explicitly say `no'.
10390 libltdl_cv_sys_dlopen_deplibs=no
10392 osf5.0|osf5.0a|osf5.1)
10393 # dlopen *does* load deplibs and with the right loader patch applied
10394 # it even uses RPATH in a shared library to search for shared objects
10395 # that the library depends on, but there's no easy way to know if that
10396 # patch is installed. Since this is the case, all we can really
10397 # say is unknown -- it depends on the patch being installed. If
10398 # it is, this changes to `yes'. Without it, it would be `no'.
10399 libltdl_cv_sys_dlopen_deplibs=unknown
10402 # the two cases above should catch all versions of osf <= 5.1. Read
10403 # the comments above for what we know about them.
10404 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10405 # is used to find them so we can finally say `yes'.
10406 libltdl_cv_sys_dlopen_deplibs=yes
10409 libltdl_cv_sys_dlopen_deplibs=yes
10411 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10412 libltdl_cv_sys_dlopen_deplibs=yes
10417 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10418 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10419 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10421 cat >>confdefs.h <<\_ACEOF
10422 #define LTDL_DLOPEN_DEPLIBS 1
10428 for ac_header in argz.h
10430 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10432 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10435 echo $ECHO_N "(cached) $ECHO_C" >&6
10437 ac_res=`eval echo '${'$as_ac_Header'}'`
10438 { echo "$as_me:$LINENO: result: $ac_res" >&5
10439 echo "${ECHO_T}$ac_res" >&6; }
10441 # Is the header compilable?
10442 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10443 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10444 cat >conftest.$ac_ext <<_ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450 $ac_includes_default
10451 #include <$ac_header>
10453 rm -f conftest.$ac_objext
10454 if { (ac_try="$ac_compile"
10455 case "(($ac_try" in
10456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10457 *) ac_try_echo=$ac_try;;
10459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10460 (eval "$ac_compile") 2>conftest.er1
10462 grep -v '^ *+' conftest.er1 >conftest.err
10464 cat conftest.err >&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } &&
10467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10468 { (case "(($ac_try" in
10469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10470 *) ac_try_echo=$ac_try;;
10472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10473 (eval "$ac_try") 2>&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); }; } &&
10477 { ac_try='test -s conftest.$ac_objext'
10478 { (case "(($ac_try" in
10479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10480 *) ac_try_echo=$ac_try;;
10482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10483 (eval "$ac_try") 2>&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); }; }; then
10487 ac_header_compiler=yes
10489 echo "$as_me: failed program was:" >&5
10490 sed 's/^/| /' conftest.$ac_ext >&5
10492 ac_header_compiler=no
10495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10497 echo "${ECHO_T}$ac_header_compiler" >&6; }
10499 # Is the header present?
10500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10502 cat >conftest.$ac_ext <<_ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 #include <$ac_header>
10510 if { (ac_try="$ac_cpp conftest.$ac_ext"
10511 case "(($ac_try" in
10512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10513 *) ac_try_echo=$ac_try;;
10515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10518 grep -v '^ *+' conftest.er1 >conftest.err
10520 cat conftest.err >&5
10521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10522 (exit $ac_status); } >/dev/null; then
10523 if test -s conftest.err; then
10524 ac_cpp_err=$ac_c_preproc_warn_flag
10525 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10532 if test -z "$ac_cpp_err"; then
10533 ac_header_preproc=yes
10535 echo "$as_me: failed program was:" >&5
10536 sed 's/^/| /' conftest.$ac_ext >&5
10538 ac_header_preproc=no
10541 rm -f conftest.err conftest.$ac_ext
10542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10543 echo "${ECHO_T}$ac_header_preproc" >&6; }
10545 # So? What about this header?
10546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10548 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10549 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10550 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10551 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10552 ac_header_preproc=yes
10555 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10556 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10557 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10558 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10559 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10560 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10561 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10562 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10564 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10565 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10566 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10568 ## ------------------------------------ ##
10569 ## Report this to http://llvm.org/bugs/ ##
10570 ## ------------------------------------ ##
10572 ) | sed "s/^/$as_me: WARNING: /" >&2
10575 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10576 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10577 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10578 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 eval "$as_ac_Header=\$ac_header_preproc"
10582 ac_res=`eval echo '${'$as_ac_Header'}'`
10583 { echo "$as_me:$LINENO: result: $ac_res" >&5
10584 echo "${ECHO_T}$ac_res" >&6; }
10587 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10588 cat >>confdefs.h <<_ACEOF
10589 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10597 { echo "$as_me:$LINENO: checking for error_t" >&5
10598 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10599 if test "${ac_cv_type_error_t+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10602 cat >conftest.$ac_ext <<_ACEOF
10605 cat confdefs.h >>conftest.$ac_ext
10606 cat >>conftest.$ac_ext <<_ACEOF
10607 /* end confdefs.h. */
10612 typedef error_t ac__type_new_;
10616 if ((ac__type_new_ *) 0)
10618 if (sizeof (ac__type_new_))
10624 rm -f conftest.$ac_objext
10625 if { (ac_try="$ac_compile"
10626 case "(($ac_try" in
10627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_compile") 2>conftest.er1
10633 grep -v '^ *+' conftest.er1 >conftest.err
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10641 *) ac_try_echo=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try='test -s conftest.$ac_objext'
10649 { (case "(($ac_try" in
10650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_cv_type_error_t=yes
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10663 ac_cv_type_error_t=no
10666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10668 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10669 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10670 if test $ac_cv_type_error_t = yes; then
10672 cat >>confdefs.h <<_ACEOF
10673 #define HAVE_ERROR_T 1
10679 cat >>confdefs.h <<\_ACEOF
10680 #define error_t int
10691 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10693 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10694 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10695 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10696 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10697 echo $ECHO_N "(cached) $ECHO_C" >&6
10699 cat >conftest.$ac_ext <<_ACEOF
10702 cat confdefs.h >>conftest.$ac_ext
10703 cat >>conftest.$ac_ext <<_ACEOF
10704 /* end confdefs.h. */
10705 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10706 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10707 #define $ac_func innocuous_$ac_func
10709 /* System header to define __stub macros and hopefully few prototypes,
10710 which can conflict with char $ac_func (); below.
10711 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10712 <limits.h> exists even on freestanding compilers. */
10715 # include <limits.h>
10717 # include <assert.h>
10722 /* Override any GCC internal prototype to avoid an error.
10723 Use char because int might match the return type of a GCC
10724 builtin and then its argument prototype would still apply. */
10729 /* The GNU C library defines this for functions which it implements
10730 to always fail with ENOSYS. Some functions are actually named
10731 something starting with __ and the normal name is an alias. */
10732 #if defined __stub_$ac_func || defined __stub___$ac_func
10739 return $ac_func ();
10744 rm -f conftest.$ac_objext conftest$ac_exeext
10745 if { (ac_try="$ac_link"
10746 case "(($ac_try" in
10747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10748 *) ac_try_echo=$ac_try;;
10750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10751 (eval "$ac_link") 2>conftest.er1
10753 grep -v '^ *+' conftest.er1 >conftest.err
10755 cat conftest.err >&5
10756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10757 (exit $ac_status); } &&
10758 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10759 { (case "(($ac_try" in
10760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10761 *) ac_try_echo=$ac_try;;
10763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10764 (eval "$ac_try") 2>&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); }; } &&
10768 { ac_try='test -s conftest$ac_exeext'
10769 { (case "(($ac_try" in
10770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10771 *) ac_try_echo=$ac_try;;
10773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10774 (eval "$ac_try") 2>&5
10776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10777 (exit $ac_status); }; }; then
10778 eval "$as_ac_var=yes"
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10783 eval "$as_ac_var=no"
10786 rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10789 ac_res=`eval echo '${'$as_ac_var'}'`
10790 { echo "$as_me:$LINENO: result: $ac_res" >&5
10791 echo "${ECHO_T}$ac_res" >&6; }
10792 if test `eval echo '${'$as_ac_var'}'` = yes; then
10793 cat >>confdefs.h <<_ACEOF
10794 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10827 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10830 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10832 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10833 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10834 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10835 echo $ECHO_N "(cached) $ECHO_C" >&6
10837 ac_res=`eval echo '${'$as_ac_Header'}'`
10838 { echo "$as_me:$LINENO: result: $ac_res" >&5
10839 echo "${ECHO_T}$ac_res" >&6; }
10841 # Is the header compilable?
10842 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10843 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10844 cat >conftest.$ac_ext <<_ACEOF
10847 cat confdefs.h >>conftest.$ac_ext
10848 cat >>conftest.$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 $ac_includes_default
10851 #include <$ac_header>
10853 rm -f conftest.$ac_objext
10854 if { (ac_try="$ac_compile"
10855 case "(($ac_try" in
10856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857 *) ac_try_echo=$ac_try;;
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860 (eval "$ac_compile") 2>conftest.er1
10862 grep -v '^ *+' conftest.er1 >conftest.err
10864 cat conftest.err >&5
10865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866 (exit $ac_status); } &&
10867 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868 { (case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_try") 2>&5
10875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876 (exit $ac_status); }; } &&
10877 { ac_try='test -s conftest.$ac_objext'
10878 { (case "(($ac_try" in
10879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880 *) ac_try_echo=$ac_try;;
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883 (eval "$ac_try") 2>&5
10885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886 (exit $ac_status); }; }; then
10887 ac_header_compiler=yes
10889 echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10892 ac_header_compiler=no
10895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10896 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10897 echo "${ECHO_T}$ac_header_compiler" >&6; }
10899 # Is the header present?
10900 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10901 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10902 cat >conftest.$ac_ext <<_ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 #include <$ac_header>
10910 if { (ac_try="$ac_cpp conftest.$ac_ext"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10918 grep -v '^ *+' conftest.er1 >conftest.err
10920 cat conftest.err >&5
10921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10922 (exit $ac_status); } >/dev/null; then
10923 if test -s conftest.err; then
10924 ac_cpp_err=$ac_c_preproc_warn_flag
10925 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10932 if test -z "$ac_cpp_err"; then
10933 ac_header_preproc=yes
10935 echo "$as_me: failed program was:" >&5
10936 sed 's/^/| /' conftest.$ac_ext >&5
10938 ac_header_preproc=no
10941 rm -f conftest.err conftest.$ac_ext
10942 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10943 echo "${ECHO_T}$ac_header_preproc" >&6; }
10945 # So? What about this header?
10946 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10948 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10949 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10950 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10951 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10952 ac_header_preproc=yes
10955 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10956 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10957 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10958 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10959 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10960 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10961 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10962 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10964 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10965 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10966 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10968 ## ------------------------------------ ##
10969 ## Report this to http://llvm.org/bugs/ ##
10970 ## ------------------------------------ ##
10972 ) | sed "s/^/$as_me: WARNING: /" >&2
10975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 eval "$as_ac_Header=\$ac_header_preproc"
10982 ac_res=`eval echo '${'$as_ac_Header'}'`
10983 { echo "$as_me:$LINENO: result: $ac_res" >&5
10984 echo "${ECHO_T}$ac_res" >&6; }
10987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10988 cat >>confdefs.h <<_ACEOF
10989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11000 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11002 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11007 echo $ECHO_N "(cached) $ECHO_C" >&6
11009 ac_res=`eval echo '${'$as_ac_Header'}'`
11010 { echo "$as_me:$LINENO: result: $ac_res" >&5
11011 echo "${ECHO_T}$ac_res" >&6; }
11013 # Is the header compilable?
11014 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11015 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11016 cat >conftest.$ac_ext <<_ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 $ac_includes_default
11023 #include <$ac_header>
11025 rm -f conftest.$ac_objext
11026 if { (ac_try="$ac_compile"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_compile") 2>conftest.er1
11034 grep -v '^ *+' conftest.er1 >conftest.err
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest.$ac_objext'
11050 { (case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_try") 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 ac_header_compiler=yes
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11064 ac_header_compiler=no
11067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11069 echo "${ECHO_T}$ac_header_compiler" >&6; }
11071 # Is the header present?
11072 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11073 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11074 cat >conftest.$ac_ext <<_ACEOF
11077 cat confdefs.h >>conftest.$ac_ext
11078 cat >>conftest.$ac_ext <<_ACEOF
11079 /* end confdefs.h. */
11080 #include <$ac_header>
11082 if { (ac_try="$ac_cpp conftest.$ac_ext"
11083 case "(($ac_try" in
11084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11085 *) ac_try_echo=$ac_try;;
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11090 grep -v '^ *+' conftest.er1 >conftest.err
11092 cat conftest.err >&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } >/dev/null; then
11095 if test -s conftest.err; then
11096 ac_cpp_err=$ac_c_preproc_warn_flag
11097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11104 if test -z "$ac_cpp_err"; then
11105 ac_header_preproc=yes
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 ac_header_preproc=no
11113 rm -f conftest.err conftest.$ac_ext
11114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11115 echo "${ECHO_T}$ac_header_preproc" >&6; }
11117 # So? What about this header?
11118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11124 ac_header_preproc=yes
11127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11140 ## ------------------------------------ ##
11141 ## Report this to http://llvm.org/bugs/ ##
11142 ## ------------------------------------ ##
11144 ) | sed "s/^/$as_me: WARNING: /" >&2
11147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11152 eval "$as_ac_Header=\$ac_header_preproc"
11154 ac_res=`eval echo '${'$as_ac_Header'}'`
11155 { echo "$as_me:$LINENO: result: $ac_res" >&5
11156 echo "${ECHO_T}$ac_res" >&6; }
11159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11160 cat >>confdefs.h <<_ACEOF
11161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11170 for ac_header in string.h strings.h
11172 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11173 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 ac_res=`eval echo '${'$as_ac_Header'}'`
11180 { echo "$as_me:$LINENO: result: $ac_res" >&5
11181 echo "${ECHO_T}$ac_res" >&6; }
11183 # Is the header compilable?
11184 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11185 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11186 cat >conftest.$ac_ext <<_ACEOF
11189 cat confdefs.h >>conftest.$ac_ext
11190 cat >>conftest.$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 $ac_includes_default
11193 #include <$ac_header>
11195 rm -f conftest.$ac_objext
11196 if { (ac_try="$ac_compile"
11197 case "(($ac_try" in
11198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11199 *) ac_try_echo=$ac_try;;
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_compile") 2>conftest.er1
11204 grep -v '^ *+' conftest.er1 >conftest.err
11206 cat conftest.err >&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11210 { (case "(($ac_try" in
11211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_try") 2>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest.$ac_objext'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11222 *) ac_try_echo=$ac_try;;
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
11229 ac_header_compiler=yes
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.$ac_ext >&5
11234 ac_header_compiler=no
11237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11239 echo "${ECHO_T}$ac_header_compiler" >&6; }
11241 # Is the header present?
11242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11244 cat >conftest.$ac_ext <<_ACEOF
11247 cat confdefs.h >>conftest.$ac_ext
11248 cat >>conftest.$ac_ext <<_ACEOF
11249 /* end confdefs.h. */
11250 #include <$ac_header>
11252 if { (ac_try="$ac_cpp conftest.$ac_ext"
11253 case "(($ac_try" in
11254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11255 *) ac_try_echo=$ac_try;;
11257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11260 grep -v '^ *+' conftest.er1 >conftest.err
11262 cat conftest.err >&5
11263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11264 (exit $ac_status); } >/dev/null; then
11265 if test -s conftest.err; then
11266 ac_cpp_err=$ac_c_preproc_warn_flag
11267 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11274 if test -z "$ac_cpp_err"; then
11275 ac_header_preproc=yes
11277 echo "$as_me: failed program was:" >&5
11278 sed 's/^/| /' conftest.$ac_ext >&5
11280 ac_header_preproc=no
11283 rm -f conftest.err conftest.$ac_ext
11284 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11285 echo "${ECHO_T}$ac_header_preproc" >&6; }
11287 # So? What about this header?
11288 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11291 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11292 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11293 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11294 ac_header_preproc=yes
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11298 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11300 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11302 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11304 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11306 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11307 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11308 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11310 ## ------------------------------------ ##
11311 ## Report this to http://llvm.org/bugs/ ##
11312 ## ------------------------------------ ##
11314 ) | sed "s/^/$as_me: WARNING: /" >&2
11317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11319 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 eval "$as_ac_Header=\$ac_header_preproc"
11324 ac_res=`eval echo '${'$as_ac_Header'}'`
11325 { echo "$as_me:$LINENO: result: $ac_res" >&5
11326 echo "${ECHO_T}$ac_res" >&6; }
11329 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11330 cat >>confdefs.h <<_ACEOF
11331 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11341 for ac_func in strchr index
11343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11347 echo $ECHO_N "(cached) $ECHO_C" >&6
11349 cat >conftest.$ac_ext <<_ACEOF
11352 cat confdefs.h >>conftest.$ac_ext
11353 cat >>conftest.$ac_ext <<_ACEOF
11354 /* end confdefs.h. */
11355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11357 #define $ac_func innocuous_$ac_func
11359 /* System header to define __stub macros and hopefully few prototypes,
11360 which can conflict with char $ac_func (); below.
11361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11362 <limits.h> exists even on freestanding compilers. */
11365 # include <limits.h>
11367 # include <assert.h>
11372 /* Override any GCC internal prototype to avoid an error.
11373 Use char because int might match the return type of a GCC
11374 builtin and then its argument prototype would still apply. */
11379 /* The GNU C library defines this for functions which it implements
11380 to always fail with ENOSYS. Some functions are actually named
11381 something starting with __ and the normal name is an alias. */
11382 #if defined __stub_$ac_func || defined __stub___$ac_func
11389 return $ac_func ();
11394 rm -f conftest.$ac_objext conftest$ac_exeext
11395 if { (ac_try="$ac_link"
11396 case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11401 (eval "$ac_link") 2>conftest.er1
11403 grep -v '^ *+' conftest.er1 >conftest.err
11405 cat conftest.err >&5
11406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11407 (exit $ac_status); } &&
11408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11409 { (case "(($ac_try" in
11410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11411 *) ac_try_echo=$ac_try;;
11413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11414 (eval "$ac_try") 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); }; } &&
11418 { ac_try='test -s conftest$ac_exeext'
11419 { (case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_try") 2>&5
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); }; }; then
11428 eval "$as_ac_var=yes"
11430 echo "$as_me: failed program was:" >&5
11431 sed 's/^/| /' conftest.$ac_ext >&5
11433 eval "$as_ac_var=no"
11436 rm -f core conftest.err conftest.$ac_objext \
11437 conftest$ac_exeext conftest.$ac_ext
11439 ac_res=`eval echo '${'$as_ac_var'}'`
11440 { echo "$as_me:$LINENO: result: $ac_res" >&5
11441 echo "${ECHO_T}$ac_res" >&6; }
11442 if test `eval echo '${'$as_ac_var'}'` = yes; then
11443 cat >>confdefs.h <<_ACEOF
11444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11452 for ac_func in strrchr rindex
11454 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11455 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11456 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11457 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 cat >conftest.$ac_ext <<_ACEOF
11463 cat confdefs.h >>conftest.$ac_ext
11464 cat >>conftest.$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11466 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11467 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11468 #define $ac_func innocuous_$ac_func
11470 /* System header to define __stub macros and hopefully few prototypes,
11471 which can conflict with char $ac_func (); below.
11472 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11473 <limits.h> exists even on freestanding compilers. */
11476 # include <limits.h>
11478 # include <assert.h>
11483 /* Override any GCC internal prototype to avoid an error.
11484 Use char because int might match the return type of a GCC
11485 builtin and then its argument prototype would still apply. */
11490 /* The GNU C library defines this for functions which it implements
11491 to always fail with ENOSYS. Some functions are actually named
11492 something starting with __ and the normal name is an alias. */
11493 #if defined __stub_$ac_func || defined __stub___$ac_func
11500 return $ac_func ();
11505 rm -f conftest.$ac_objext conftest$ac_exeext
11506 if { (ac_try="$ac_link"
11507 case "(($ac_try" in
11508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11509 *) ac_try_echo=$ac_try;;
11511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11512 (eval "$ac_link") 2>conftest.er1
11514 grep -v '^ *+' conftest.er1 >conftest.err
11516 cat conftest.err >&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); } &&
11519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11520 { (case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_try") 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; } &&
11529 { ac_try='test -s conftest$ac_exeext'
11530 { (case "(($ac_try" in
11531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11532 *) ac_try_echo=$ac_try;;
11534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11535 (eval "$ac_try") 2>&5
11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11538 (exit $ac_status); }; }; then
11539 eval "$as_ac_var=yes"
11541 echo "$as_me: failed program was:" >&5
11542 sed 's/^/| /' conftest.$ac_ext >&5
11544 eval "$as_ac_var=no"
11547 rm -f core conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11550 ac_res=`eval echo '${'$as_ac_var'}'`
11551 { echo "$as_me:$LINENO: result: $ac_res" >&5
11552 echo "${ECHO_T}$ac_res" >&6; }
11553 if test `eval echo '${'$as_ac_var'}'` = yes; then
11554 cat >>confdefs.h <<_ACEOF
11555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11563 for ac_func in memcpy bcopy
11565 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11568 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11569 echo $ECHO_N "(cached) $ECHO_C" >&6
11571 cat >conftest.$ac_ext <<_ACEOF
11574 cat confdefs.h >>conftest.$ac_ext
11575 cat >>conftest.$ac_ext <<_ACEOF
11576 /* end confdefs.h. */
11577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11579 #define $ac_func innocuous_$ac_func
11581 /* System header to define __stub macros and hopefully few prototypes,
11582 which can conflict with char $ac_func (); below.
11583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11584 <limits.h> exists even on freestanding compilers. */
11587 # include <limits.h>
11589 # include <assert.h>
11594 /* Override any GCC internal prototype to avoid an error.
11595 Use char because int might match the return type of a GCC
11596 builtin and then its argument prototype would still apply. */
11601 /* The GNU C library defines this for functions which it implements
11602 to always fail with ENOSYS. Some functions are actually named
11603 something starting with __ and the normal name is an alias. */
11604 #if defined __stub_$ac_func || defined __stub___$ac_func
11611 return $ac_func ();
11616 rm -f conftest.$ac_objext conftest$ac_exeext
11617 if { (ac_try="$ac_link"
11618 case "(($ac_try" in
11619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11620 *) ac_try_echo=$ac_try;;
11622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11623 (eval "$ac_link") 2>conftest.er1
11625 grep -v '^ *+' conftest.er1 >conftest.err
11627 cat conftest.err >&5
11628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11629 (exit $ac_status); } &&
11630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11631 { (case "(($ac_try" in
11632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11633 *) ac_try_echo=$ac_try;;
11635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11636 (eval "$ac_try") 2>&5
11638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11639 (exit $ac_status); }; } &&
11640 { ac_try='test -s conftest$ac_exeext'
11641 { (case "(($ac_try" in
11642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11643 *) ac_try_echo=$ac_try;;
11645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11646 (eval "$ac_try") 2>&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); }; }; then
11650 eval "$as_ac_var=yes"
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.$ac_ext >&5
11655 eval "$as_ac_var=no"
11658 rm -f core conftest.err conftest.$ac_objext \
11659 conftest$ac_exeext conftest.$ac_ext
11661 ac_res=`eval echo '${'$as_ac_var'}'`
11662 { echo "$as_me:$LINENO: result: $ac_res" >&5
11663 echo "${ECHO_T}$ac_res" >&6; }
11664 if test `eval echo '${'$as_ac_var'}'` = yes; then
11665 cat >>confdefs.h <<_ACEOF
11666 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11674 for ac_func in memmove strcmp
11676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11680 echo $ECHO_N "(cached) $ECHO_C" >&6
11682 cat >conftest.$ac_ext <<_ACEOF
11685 cat confdefs.h >>conftest.$ac_ext
11686 cat >>conftest.$ac_ext <<_ACEOF
11687 /* end confdefs.h. */
11688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11690 #define $ac_func innocuous_$ac_func
11692 /* System header to define __stub macros and hopefully few prototypes,
11693 which can conflict with char $ac_func (); below.
11694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11695 <limits.h> exists even on freestanding compilers. */
11698 # include <limits.h>
11700 # include <assert.h>
11705 /* Override any GCC internal prototype to avoid an error.
11706 Use char because int might match the return type of a GCC
11707 builtin and then its argument prototype would still apply. */
11712 /* The GNU C library defines this for functions which it implements
11713 to always fail with ENOSYS. Some functions are actually named
11714 something starting with __ and the normal name is an alias. */
11715 #if defined __stub_$ac_func || defined __stub___$ac_func
11722 return $ac_func ();
11727 rm -f conftest.$ac_objext conftest$ac_exeext
11728 if { (ac_try="$ac_link"
11729 case "(($ac_try" in
11730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11731 *) ac_try_echo=$ac_try;;
11733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11734 (eval "$ac_link") 2>conftest.er1
11736 grep -v '^ *+' conftest.er1 >conftest.err
11738 cat conftest.err >&5
11739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11740 (exit $ac_status); } &&
11741 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11742 { (case "(($ac_try" in
11743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11744 *) ac_try_echo=$ac_try;;
11746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11747 (eval "$ac_try") 2>&5
11749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11750 (exit $ac_status); }; } &&
11751 { ac_try='test -s conftest$ac_exeext'
11752 { (case "(($ac_try" in
11753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757 (eval "$ac_try") 2>&5
11759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11760 (exit $ac_status); }; }; then
11761 eval "$as_ac_var=yes"
11763 echo "$as_me: failed program was:" >&5
11764 sed 's/^/| /' conftest.$ac_ext >&5
11766 eval "$as_ac_var=no"
11769 rm -f core conftest.err conftest.$ac_objext \
11770 conftest$ac_exeext conftest.$ac_ext
11772 ac_res=`eval echo '${'$as_ac_var'}'`
11773 { echo "$as_me:$LINENO: result: $ac_res" >&5
11774 echo "${ECHO_T}$ac_res" >&6; }
11775 if test `eval echo '${'$as_ac_var'}'` = yes; then
11776 cat >>confdefs.h <<_ACEOF
11777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11786 for ac_func in closedir opendir readdir
11788 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11789 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11790 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11791 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11794 cat >conftest.$ac_ext <<_ACEOF
11797 cat confdefs.h >>conftest.$ac_ext
11798 cat >>conftest.$ac_ext <<_ACEOF
11799 /* end confdefs.h. */
11800 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11802 #define $ac_func innocuous_$ac_func
11804 /* System header to define __stub macros and hopefully few prototypes,
11805 which can conflict with char $ac_func (); below.
11806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11807 <limits.h> exists even on freestanding compilers. */
11810 # include <limits.h>
11812 # include <assert.h>
11817 /* Override any GCC internal prototype to avoid an error.
11818 Use char because int might match the return type of a GCC
11819 builtin and then its argument prototype would still apply. */
11824 /* The GNU C library defines this for functions which it implements
11825 to always fail with ENOSYS. Some functions are actually named
11826 something starting with __ and the normal name is an alias. */
11827 #if defined __stub_$ac_func || defined __stub___$ac_func
11834 return $ac_func ();
11839 rm -f conftest.$ac_objext conftest$ac_exeext
11840 if { (ac_try="$ac_link"
11841 case "(($ac_try" in
11842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11843 *) ac_try_echo=$ac_try;;
11845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11846 (eval "$ac_link") 2>conftest.er1
11848 grep -v '^ *+' conftest.er1 >conftest.err
11850 cat conftest.err >&5
11851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11852 (exit $ac_status); } &&
11853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11854 { (case "(($ac_try" in
11855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11856 *) ac_try_echo=$ac_try;;
11858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11859 (eval "$ac_try") 2>&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); }; } &&
11863 { ac_try='test -s conftest$ac_exeext'
11864 { (case "(($ac_try" in
11865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11866 *) ac_try_echo=$ac_try;;
11868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11869 (eval "$ac_try") 2>&5
11871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11872 (exit $ac_status); }; }; then
11873 eval "$as_ac_var=yes"
11875 echo "$as_me: failed program was:" >&5
11876 sed 's/^/| /' conftest.$ac_ext >&5
11878 eval "$as_ac_var=no"
11881 rm -f core conftest.err conftest.$ac_objext \
11882 conftest$ac_exeext conftest.$ac_ext
11884 ac_res=`eval echo '${'$as_ac_var'}'`
11885 { echo "$as_me:$LINENO: result: $ac_res" >&5
11886 echo "${ECHO_T}$ac_res" >&6; }
11887 if test `eval echo '${'$as_ac_var'}'` = yes; then
11888 cat >>confdefs.h <<_ACEOF
11889 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11897 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11898 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11911 if test "$GCC" != "yes" && test "$ICC" != "yes"
11913 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11914 echo "$as_me: error: gcc|icc required but not found" >&2;}
11915 { (exit 1); exit 1; }; }
11918 if test "$GXX" != "yes" && test "$IXX" != "yes"
11920 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11921 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11922 { (exit 1); exit 1; }; }
11925 if test "$GCC" = "yes"
11927 cat >conftest.$ac_ext <<_ACEOF
11928 #if !defined(__GNUC__) || __GNUC__ < 3
11929 #error Unsupported GCC version
11933 rm -f conftest.$ac_objext
11934 if { (ac_try="$ac_compile"
11935 case "(($ac_try" in
11936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11937 *) ac_try_echo=$ac_try;;
11939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11940 (eval "$ac_compile") 2>conftest.er1
11942 grep -v '^ *+' conftest.er1 >conftest.err
11944 cat conftest.err >&5
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); } &&
11947 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11948 { (case "(($ac_try" in
11949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11950 *) ac_try_echo=$ac_try;;
11952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11953 (eval "$ac_try") 2>&5
11955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11956 (exit $ac_status); }; } &&
11957 { ac_try='test -s conftest.$ac_objext'
11958 { (case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_try") 2>&5
11965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11966 (exit $ac_status); }; }; then
11969 echo "$as_me: failed program was:" >&5
11970 sed 's/^/| /' conftest.$ac_ext >&5
11972 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11973 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11974 { (exit 1); exit 1; }; }
11977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11980 if test -z "$llvm_cv_gnu_make_command"
11982 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
11983 echo "$as_me: error: GNU Make required but not found" >&2;}
11984 { (exit 1); exit 1; }; }
11987 { echo "$as_me:$LINENO: result: ok" >&5
11988 echo "${ECHO_T}ok" >&6; }
11990 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
11991 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
11992 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
11994 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
11996 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
11998 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
11999 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12003 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12004 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12005 if test "${ac_cv_lib_m_sin+set}" = set; then
12006 echo $ECHO_N "(cached) $ECHO_C" >&6
12008 ac_check_lib_save_LIBS=$LIBS
12010 cat >conftest.$ac_ext <<_ACEOF
12013 cat confdefs.h >>conftest.$ac_ext
12014 cat >>conftest.$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12017 /* Override any GCC internal prototype to avoid an error.
12018 Use char because int might match the return type of a GCC
12019 builtin and then its argument prototype would still apply. */
12032 rm -f conftest.$ac_objext conftest$ac_exeext
12033 if { (ac_try="$ac_link"
12034 case "(($ac_try" in
12035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12036 *) ac_try_echo=$ac_try;;
12038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12039 (eval "$ac_link") 2>conftest.er1
12041 grep -v '^ *+' conftest.er1 >conftest.err
12043 cat conftest.err >&5
12044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12045 (exit $ac_status); } &&
12046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12047 { (case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12052 (eval "$ac_try") 2>&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); }; } &&
12056 { ac_try='test -s conftest$ac_exeext'
12057 { (case "(($ac_try" in
12058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12059 *) ac_try_echo=$ac_try;;
12061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12062 (eval "$ac_try") 2>&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); }; }; then
12066 ac_cv_lib_m_sin=yes
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.$ac_ext >&5
12074 rm -f core conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12078 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12079 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12080 if test $ac_cv_lib_m_sin = yes; then
12081 cat >>confdefs.h <<_ACEOF
12082 #define HAVE_LIBM 1
12089 if test "$llvm_cv_os_type" = "MingW" ; then
12091 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12092 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12093 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 ac_check_lib_save_LIBS=$LIBS
12097 LIBS="-limagehlp $LIBS"
12098 cat >conftest.$ac_ext <<_ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12114 rm -f conftest.$ac_objext conftest$ac_exeext
12115 if { (ac_try="$ac_link"
12116 case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_link") 2>conftest.er1
12123 grep -v '^ *+' conftest.er1 >conftest.err
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } &&
12128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12129 { (case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12134 (eval "$ac_try") 2>&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); }; } &&
12138 { ac_try='test -s conftest$ac_exeext'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; }; then
12148 ac_cv_lib_imagehlp_main=yes
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12153 ac_cv_lib_imagehlp_main=no
12156 rm -f core conftest.err conftest.$ac_objext \
12157 conftest$ac_exeext conftest.$ac_ext
12158 LIBS=$ac_check_lib_save_LIBS
12160 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12161 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12162 if test $ac_cv_lib_imagehlp_main = yes; then
12163 cat >>confdefs.h <<_ACEOF
12164 #define HAVE_LIBIMAGEHLP 1
12167 LIBS="-limagehlp $LIBS"
12172 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12173 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12174 if test "${ac_cv_lib_psapi_main+set}" = set; then
12175 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 ac_check_lib_save_LIBS=$LIBS
12178 LIBS="-lpsapi $LIBS"
12179 cat >conftest.$ac_ext <<_ACEOF
12182 cat confdefs.h >>conftest.$ac_ext
12183 cat >>conftest.$ac_ext <<_ACEOF
12184 /* end confdefs.h. */
12195 rm -f conftest.$ac_objext conftest$ac_exeext
12196 if { (ac_try="$ac_link"
12197 case "(($ac_try" in
12198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12199 *) ac_try_echo=$ac_try;;
12201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12202 (eval "$ac_link") 2>conftest.er1
12204 grep -v '^ *+' conftest.er1 >conftest.err
12206 cat conftest.err >&5
12207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12208 (exit $ac_status); } &&
12209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12210 { (case "(($ac_try" in
12211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12212 *) ac_try_echo=$ac_try;;
12214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12215 (eval "$ac_try") 2>&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 (exit $ac_status); }; } &&
12219 { ac_try='test -s conftest$ac_exeext'
12220 { (case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12225 (eval "$ac_try") 2>&5
12227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12228 (exit $ac_status); }; }; then
12229 ac_cv_lib_psapi_main=yes
12231 echo "$as_me: failed program was:" >&5
12232 sed 's/^/| /' conftest.$ac_ext >&5
12234 ac_cv_lib_psapi_main=no
12237 rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12241 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12242 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12243 if test $ac_cv_lib_psapi_main = yes; then
12244 cat >>confdefs.h <<_ACEOF
12245 #define HAVE_LIBPSAPI 1
12248 LIBS="-lpsapi $LIBS"
12254 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12255 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12256 if test "${ac_cv_search_dlopen+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12259 ac_func_search_save_LIBS=$LIBS
12260 cat >conftest.$ac_ext <<_ACEOF
12263 cat confdefs.h >>conftest.$ac_ext
12264 cat >>conftest.$ac_ext <<_ACEOF
12265 /* end confdefs.h. */
12267 /* Override any GCC internal prototype to avoid an error.
12268 Use char because int might match the return type of a GCC
12269 builtin and then its argument prototype would still apply. */
12282 for ac_lib in '' dl; do
12283 if test -z "$ac_lib"; then
12284 ac_res="none required"
12287 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (ac_try="$ac_link"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_link") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1 >conftest.err
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } &&
12303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12304 { (case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_try") 2>&5
12311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12312 (exit $ac_status); }; } &&
12313 { ac_try='test -s conftest$ac_exeext'
12314 { (case "(($ac_try" in
12315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12316 *) ac_try_echo=$ac_try;;
12318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12319 (eval "$ac_try") 2>&5
12321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); }; }; then
12323 ac_cv_search_dlopen=$ac_res
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12331 rm -f core conftest.err conftest.$ac_objext \
12333 if test "${ac_cv_search_dlopen+set}" = set; then
12337 if test "${ac_cv_search_dlopen+set}" = set; then
12340 ac_cv_search_dlopen=no
12342 rm conftest.$ac_ext
12343 LIBS=$ac_func_search_save_LIBS
12345 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12346 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12347 ac_res=$ac_cv_search_dlopen
12348 if test "$ac_res" != no; then
12349 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12351 cat >>confdefs.h <<\_ACEOF
12352 #define HAVE_DLOPEN 1
12356 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12357 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12361 if test "$llvm_cv_enable_libffi" = "yes" ; then
12362 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12363 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12364 if test "${ac_cv_search_ffi_call+set}" = set; then
12365 echo $ECHO_N "(cached) $ECHO_C" >&6
12367 ac_func_search_save_LIBS=$LIBS
12368 cat >conftest.$ac_ext <<_ACEOF
12371 cat confdefs.h >>conftest.$ac_ext
12372 cat >>conftest.$ac_ext <<_ACEOF
12373 /* end confdefs.h. */
12375 /* Override any GCC internal prototype to avoid an error.
12376 Use char because int might match the return type of a GCC
12377 builtin and then its argument prototype would still apply. */
12385 return ffi_call ();
12390 for ac_lib in '' ffi; do
12391 if test -z "$ac_lib"; then
12392 ac_res="none required"
12395 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12397 rm -f conftest.$ac_objext conftest$ac_exeext
12398 if { (ac_try="$ac_link"
12399 case "(($ac_try" in
12400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12401 *) ac_try_echo=$ac_try;;
12403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12404 (eval "$ac_link") 2>conftest.er1
12406 grep -v '^ *+' conftest.er1 >conftest.err
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12412 { (case "(($ac_try" in
12413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12414 *) ac_try_echo=$ac_try;;
12416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12417 (eval "$ac_try") 2>&5
12419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12420 (exit $ac_status); }; } &&
12421 { ac_try='test -s conftest$ac_exeext'
12422 { (case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_try") 2>&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); }; }; then
12431 ac_cv_search_ffi_call=$ac_res
12433 echo "$as_me: failed program was:" >&5
12434 sed 's/^/| /' conftest.$ac_ext >&5
12439 rm -f core conftest.err conftest.$ac_objext \
12441 if test "${ac_cv_search_ffi_call+set}" = set; then
12445 if test "${ac_cv_search_ffi_call+set}" = set; then
12448 ac_cv_search_ffi_call=no
12450 rm conftest.$ac_ext
12451 LIBS=$ac_func_search_save_LIBS
12453 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12454 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12455 ac_res=$ac_cv_search_ffi_call
12456 if test "$ac_res" != no; then
12457 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12459 cat >>confdefs.h <<\_ACEOF
12460 #define HAVE_FFI_CALL 1
12464 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12465 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12466 { (exit 1); exit 1; }; }
12471 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12472 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12473 if test "${ac_cv_search_mallinfo+set}" = set; then
12474 echo $ECHO_N "(cached) $ECHO_C" >&6
12476 ac_func_search_save_LIBS=$LIBS
12477 cat >conftest.$ac_ext <<_ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12484 /* Override any GCC internal prototype to avoid an error.
12485 Use char because int might match the return type of a GCC
12486 builtin and then its argument prototype would still apply. */
12494 return mallinfo ();
12499 for ac_lib in '' malloc; do
12500 if test -z "$ac_lib"; then
12501 ac_res="none required"
12504 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12506 rm -f conftest.$ac_objext conftest$ac_exeext
12507 if { (ac_try="$ac_link"
12508 case "(($ac_try" in
12509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12510 *) ac_try_echo=$ac_try;;
12512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12513 (eval "$ac_link") 2>conftest.er1
12515 grep -v '^ *+' conftest.er1 >conftest.err
12517 cat conftest.err >&5
12518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12519 (exit $ac_status); } &&
12520 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12521 { (case "(($ac_try" in
12522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12523 *) ac_try_echo=$ac_try;;
12525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12526 (eval "$ac_try") 2>&5
12528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12529 (exit $ac_status); }; } &&
12530 { ac_try='test -s conftest$ac_exeext'
12531 { (case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_try") 2>&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); }; }; then
12540 ac_cv_search_mallinfo=$ac_res
12542 echo "$as_me: failed program was:" >&5
12543 sed 's/^/| /' conftest.$ac_ext >&5
12548 rm -f core conftest.err conftest.$ac_objext \
12550 if test "${ac_cv_search_mallinfo+set}" = set; then
12554 if test "${ac_cv_search_mallinfo+set}" = set; then
12557 ac_cv_search_mallinfo=no
12559 rm conftest.$ac_ext
12560 LIBS=$ac_func_search_save_LIBS
12562 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12563 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12564 ac_res=$ac_cv_search_mallinfo
12565 if test "$ac_res" != no; then
12566 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12568 cat >>confdefs.h <<\_ACEOF
12569 #define HAVE_MALLINFO 1
12575 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12577 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12578 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12579 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 ac_check_lib_save_LIBS=$LIBS
12583 LIBS="-lpthread $LIBS"
12584 cat >conftest.$ac_ext <<_ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12591 /* Override any GCC internal prototype to avoid an error.
12592 Use char because int might match the return type of a GCC
12593 builtin and then its argument prototype would still apply. */
12597 char pthread_mutex_init ();
12601 return pthread_mutex_init ();
12606 rm -f conftest.$ac_objext conftest$ac_exeext
12607 if { (ac_try="$ac_link"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_link") 2>conftest.er1
12615 grep -v '^ *+' conftest.er1 >conftest.err
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } &&
12620 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
12630 { ac_try='test -s conftest$ac_exeext'
12631 { (case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_try") 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; }; then
12640 ac_cv_lib_pthread_pthread_mutex_init=yes
12642 echo "$as_me: failed program was:" >&5
12643 sed 's/^/| /' conftest.$ac_ext >&5
12645 ac_cv_lib_pthread_pthread_mutex_init=no
12648 rm -f core conftest.err conftest.$ac_objext \
12649 conftest$ac_exeext conftest.$ac_ext
12650 LIBS=$ac_check_lib_save_LIBS
12652 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12653 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12654 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12655 cat >>confdefs.h <<_ACEOF
12656 #define HAVE_LIBPTHREAD 1
12659 LIBS="-lpthread $LIBS"
12663 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12664 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12665 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12666 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 ac_func_search_save_LIBS=$LIBS
12669 cat >conftest.$ac_ext <<_ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12676 /* Override any GCC internal prototype to avoid an error.
12677 Use char because int might match the return type of a GCC
12678 builtin and then its argument prototype would still apply. */
12682 char pthread_mutex_lock ();
12686 return pthread_mutex_lock ();
12691 for ac_lib in '' pthread; do
12692 if test -z "$ac_lib"; then
12693 ac_res="none required"
12696 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12698 rm -f conftest.$ac_objext conftest$ac_exeext
12699 if { (ac_try="$ac_link"
12700 case "(($ac_try" in
12701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12702 *) ac_try_echo=$ac_try;;
12704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12705 (eval "$ac_link") 2>conftest.er1
12707 grep -v '^ *+' conftest.er1 >conftest.err
12709 cat conftest.err >&5
12710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12711 (exit $ac_status); } &&
12712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12713 { (case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_try") 2>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); }; } &&
12722 { ac_try='test -s conftest$ac_exeext'
12723 { (case "(($ac_try" in
12724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_try") 2>&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 (exit $ac_status); }; }; then
12732 ac_cv_search_pthread_mutex_lock=$ac_res
12734 echo "$as_me: failed program was:" >&5
12735 sed 's/^/| /' conftest.$ac_ext >&5
12740 rm -f core conftest.err conftest.$ac_objext \
12742 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12746 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12749 ac_cv_search_pthread_mutex_lock=no
12751 rm conftest.$ac_ext
12752 LIBS=$ac_func_search_save_LIBS
12754 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12755 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12756 ac_res=$ac_cv_search_pthread_mutex_lock
12757 if test "$ac_res" != no; then
12758 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12760 cat >>confdefs.h <<\_ACEOF
12761 #define HAVE_PTHREAD_MUTEX_LOCK 1
12766 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12767 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12768 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 ac_func_search_save_LIBS=$LIBS
12772 cat >conftest.$ac_ext <<_ACEOF
12775 cat confdefs.h >>conftest.$ac_ext
12776 cat >>conftest.$ac_ext <<_ACEOF
12777 /* end confdefs.h. */
12779 /* Override any GCC internal prototype to avoid an error.
12780 Use char because int might match the return type of a GCC
12781 builtin and then its argument prototype would still apply. */
12785 char pthread_rwlock_init ();
12789 return pthread_rwlock_init ();
12794 for ac_lib in '' pthread; do
12795 if test -z "$ac_lib"; then
12796 ac_res="none required"
12799 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12801 rm -f conftest.$ac_objext conftest$ac_exeext
12802 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12810 grep -v '^ *+' conftest.er1 >conftest.err
12812 cat conftest.err >&5
12813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12814 (exit $ac_status); } &&
12815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12816 { (case "(($ac_try" in
12817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12818 *) ac_try_echo=$ac_try;;
12820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12821 (eval "$ac_try") 2>&5
12823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12824 (exit $ac_status); }; } &&
12825 { ac_try='test -s conftest$ac_exeext'
12826 { (case "(($ac_try" in
12827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_try") 2>&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12835 ac_cv_search_pthread_rwlock_init=$ac_res
12837 echo "$as_me: failed program was:" >&5
12838 sed 's/^/| /' conftest.$ac_ext >&5
12843 rm -f core conftest.err conftest.$ac_objext \
12845 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12849 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12852 ac_cv_search_pthread_rwlock_init=no
12854 rm conftest.$ac_ext
12855 LIBS=$ac_func_search_save_LIBS
12857 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12858 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12859 ac_res=$ac_cv_search_pthread_rwlock_init
12860 if test "$ac_res" != no; then
12861 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12863 cat >>confdefs.h <<\_ACEOF
12864 #define HAVE_PTHREAD_RWLOCK_INIT 1
12869 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12870 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12871 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 ac_func_search_save_LIBS=$LIBS
12875 cat >conftest.$ac_ext <<_ACEOF
12878 cat confdefs.h >>conftest.$ac_ext
12879 cat >>conftest.$ac_ext <<_ACEOF
12880 /* end confdefs.h. */
12882 /* Override any GCC internal prototype to avoid an error.
12883 Use char because int might match the return type of a GCC
12884 builtin and then its argument prototype would still apply. */
12888 char pthread_getspecific ();
12892 return pthread_getspecific ();
12897 for ac_lib in '' pthread; do
12898 if test -z "$ac_lib"; then
12899 ac_res="none required"
12902 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12904 rm -f conftest.$ac_objext conftest$ac_exeext
12905 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
12913 grep -v '^ *+' conftest.er1 >conftest.err
12915 cat conftest.err >&5
12916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12917 (exit $ac_status); } &&
12918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12919 { (case "(($ac_try" in
12920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12921 *) ac_try_echo=$ac_try;;
12923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12924 (eval "$ac_try") 2>&5
12926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12927 (exit $ac_status); }; } &&
12928 { ac_try='test -s conftest$ac_exeext'
12929 { (case "(($ac_try" in
12930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_try") 2>&5
12936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12937 (exit $ac_status); }; }; then
12938 ac_cv_search_pthread_getspecific=$ac_res
12940 echo "$as_me: failed program was:" >&5
12941 sed 's/^/| /' conftest.$ac_ext >&5
12946 rm -f core conftest.err conftest.$ac_objext \
12948 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12952 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12955 ac_cv_search_pthread_getspecific=no
12957 rm conftest.$ac_ext
12958 LIBS=$ac_func_search_save_LIBS
12960 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12961 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12962 ac_res=$ac_cv_search_pthread_getspecific
12963 if test "$ac_res" != no; then
12964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12966 cat >>confdefs.h <<\_ACEOF
12967 #define HAVE_PTHREAD_GETSPECIFIC 1
12975 # Check whether --with-udis86 was given.
12976 if test "${with_udis86+set}" = set; then
12977 withval=$with_udis86;
12982 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
12985 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
12986 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
12987 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
12988 echo $ECHO_N "(cached) $ECHO_C" >&6
12990 ac_check_lib_save_LIBS=$LIBS
12991 LIBS="-ludis86 $LIBS"
12992 cat >conftest.$ac_ext <<_ACEOF
12995 cat confdefs.h >>conftest.$ac_ext
12996 cat >>conftest.$ac_ext <<_ACEOF
12997 /* end confdefs.h. */
12999 /* Override any GCC internal prototype to avoid an error.
13000 Use char because int might match the return type of a GCC
13001 builtin and then its argument prototype would still apply. */
13014 rm -f conftest.$ac_objext conftest$ac_exeext
13015 if { (ac_try="$ac_link"
13016 case "(($ac_try" in
13017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13018 *) ac_try_echo=$ac_try;;
13020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13021 (eval "$ac_link") 2>conftest.er1
13023 grep -v '^ *+' conftest.er1 >conftest.err
13025 cat conftest.err >&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); } &&
13028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13029 { (case "(($ac_try" in
13030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13031 *) ac_try_echo=$ac_try;;
13033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13034 (eval "$ac_try") 2>&5
13036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13037 (exit $ac_status); }; } &&
13038 { ac_try='test -s conftest$ac_exeext'
13039 { (case "(($ac_try" in
13040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13041 *) ac_try_echo=$ac_try;;
13043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13044 (eval "$ac_try") 2>&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 (exit $ac_status); }; }; then
13048 ac_cv_lib_udis86_ud_init=yes
13050 echo "$as_me: failed program was:" >&5
13051 sed 's/^/| /' conftest.$ac_ext >&5
13053 ac_cv_lib_udis86_ud_init=no
13056 rm -f core conftest.err conftest.$ac_objext \
13057 conftest$ac_exeext conftest.$ac_ext
13058 LIBS=$ac_check_lib_save_LIBS
13060 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13061 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13062 if test $ac_cv_lib_udis86_ud_init = yes; then
13063 cat >>confdefs.h <<_ACEOF
13064 #define HAVE_LIBUDIS86 1
13067 LIBS="-ludis86 $LIBS"
13071 echo "Error! You need to have libudis86 around."
13083 cat >>confdefs.h <<_ACEOF
13084 #define USE_UDIS86 $USE_UDIS86
13089 # Check whether --with-oprofile was given.
13090 if test "${with_oprofile+set}" = set; then
13091 withval=$with_oprofile;
13095 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13096 no) llvm_cv_oppath=
13099 *) llvm_cv_oppath="${withval}/lib/oprofile"
13100 CPPFLAGS="-I${withval}/include";;
13102 case $llvm_cv_os_type in
13104 if test -n "$llvm_cv_oppath" ; then
13105 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13106 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13107 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13108 if test "${ac_cv_search_bfd_init+set}" = set; then
13109 echo $ECHO_N "(cached) $ECHO_C" >&6
13111 ac_func_search_save_LIBS=$LIBS
13112 cat >conftest.$ac_ext <<_ACEOF
13115 cat confdefs.h >>conftest.$ac_ext
13116 cat >>conftest.$ac_ext <<_ACEOF
13117 /* end confdefs.h. */
13119 /* Override any GCC internal prototype to avoid an error.
13120 Use char because int might match the return type of a GCC
13121 builtin and then its argument prototype would still apply. */
13129 return bfd_init ();
13134 for ac_lib in '' bfd; do
13135 if test -z "$ac_lib"; then
13136 ac_res="none required"
13139 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13141 rm -f conftest.$ac_objext conftest$ac_exeext
13142 if { (ac_try="$ac_link"
13143 case "(($ac_try" in
13144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13145 *) ac_try_echo=$ac_try;;
13147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13148 (eval "$ac_link") 2>conftest.er1
13150 grep -v '^ *+' conftest.er1 >conftest.err
13152 cat conftest.err >&5
13153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13154 (exit $ac_status); } &&
13155 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13156 { (case "(($ac_try" in
13157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13158 *) ac_try_echo=$ac_try;;
13160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13161 (eval "$ac_try") 2>&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); }; } &&
13165 { ac_try='test -s conftest$ac_exeext'
13166 { (case "(($ac_try" in
13167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13168 *) ac_try_echo=$ac_try;;
13170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13171 (eval "$ac_try") 2>&5
13173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13174 (exit $ac_status); }; }; then
13175 ac_cv_search_bfd_init=$ac_res
13177 echo "$as_me: failed program was:" >&5
13178 sed 's/^/| /' conftest.$ac_ext >&5
13183 rm -f core conftest.err conftest.$ac_objext \
13185 if test "${ac_cv_search_bfd_init+set}" = set; then
13189 if test "${ac_cv_search_bfd_init+set}" = set; then
13192 ac_cv_search_bfd_init=no
13194 rm conftest.$ac_ext
13195 LIBS=$ac_func_search_save_LIBS
13197 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13198 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13199 ac_res=$ac_cv_search_bfd_init
13200 if test "$ac_res" != no; then
13201 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13205 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13206 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13207 if test "${ac_cv_search_op_open_agent+set}" = set; then
13208 echo $ECHO_N "(cached) $ECHO_C" >&6
13210 ac_func_search_save_LIBS=$LIBS
13211 cat >conftest.$ac_ext <<_ACEOF
13214 cat confdefs.h >>conftest.$ac_ext
13215 cat >>conftest.$ac_ext <<_ACEOF
13216 /* end confdefs.h. */
13218 /* Override any GCC internal prototype to avoid an error.
13219 Use char because int might match the return type of a GCC
13220 builtin and then its argument prototype would still apply. */
13224 char op_open_agent ();
13228 return op_open_agent ();
13233 for ac_lib in '' opagent; do
13234 if test -z "$ac_lib"; then
13235 ac_res="none required"
13238 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13240 rm -f conftest.$ac_objext conftest$ac_exeext
13241 if { (ac_try="$ac_link"
13242 case "(($ac_try" in
13243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13244 *) ac_try_echo=$ac_try;;
13246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13247 (eval "$ac_link") 2>conftest.er1
13249 grep -v '^ *+' conftest.er1 >conftest.err
13251 cat conftest.err >&5
13252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13253 (exit $ac_status); } &&
13254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13255 { (case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_try") 2>&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); }; } &&
13264 { ac_try='test -s conftest$ac_exeext'
13265 { (case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_try") 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; }; then
13274 ac_cv_search_op_open_agent=$ac_res
13276 echo "$as_me: failed program was:" >&5
13277 sed 's/^/| /' conftest.$ac_ext >&5
13282 rm -f core conftest.err conftest.$ac_objext \
13284 if test "${ac_cv_search_op_open_agent+set}" = set; then
13288 if test "${ac_cv_search_op_open_agent+set}" = set; then
13291 ac_cv_search_op_open_agent=no
13293 rm conftest.$ac_ext
13294 LIBS=$ac_func_search_save_LIBS
13296 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13297 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13298 ac_res=$ac_cv_search_op_open_agent
13299 if test "$ac_res" != no; then
13300 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13304 echo "Error! You need to have libopagent around."
13309 if test "${ac_cv_header_opagent_h+set}" = set; then
13310 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13311 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13312 if test "${ac_cv_header_opagent_h+set}" = set; then
13313 echo $ECHO_N "(cached) $ECHO_C" >&6
13315 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13316 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13318 # Is the header compilable?
13319 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13320 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13321 cat >conftest.$ac_ext <<_ACEOF
13324 cat confdefs.h >>conftest.$ac_ext
13325 cat >>conftest.$ac_ext <<_ACEOF
13326 /* end confdefs.h. */
13327 $ac_includes_default
13328 #include <opagent.h>
13330 rm -f conftest.$ac_objext
13331 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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_header_compiler=yes
13366 echo "$as_me: failed program was:" >&5
13367 sed 's/^/| /' conftest.$ac_ext >&5
13369 ac_header_compiler=no
13372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13374 echo "${ECHO_T}$ac_header_compiler" >&6; }
13376 # Is the header present?
13377 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13378 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13379 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13385 #include <opagent.h>
13387 if { (ac_try="$ac_cpp conftest.$ac_ext"
13388 case "(($ac_try" in
13389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390 *) ac_try_echo=$ac_try;;
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13395 grep -v '^ *+' conftest.er1 >conftest.err
13397 cat conftest.err >&5
13398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399 (exit $ac_status); } >/dev/null; then
13400 if test -s conftest.err; then
13401 ac_cpp_err=$ac_c_preproc_warn_flag
13402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13409 if test -z "$ac_cpp_err"; then
13410 ac_header_preproc=yes
13412 echo "$as_me: failed program was:" >&5
13413 sed 's/^/| /' conftest.$ac_ext >&5
13415 ac_header_preproc=no
13418 rm -f conftest.err conftest.$ac_ext
13419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13420 echo "${ECHO_T}$ac_header_preproc" >&6; }
13422 # So? What about this header?
13423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13425 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13426 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13427 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13428 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13429 ac_header_preproc=yes
13432 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13433 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13434 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13435 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13436 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13437 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13438 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13439 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13440 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13441 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13442 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13443 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13445 ## ------------------------------------ ##
13446 ## Report this to http://llvm.org/bugs/ ##
13447 ## ------------------------------------ ##
13449 ) | sed "s/^/$as_me: WARNING: /" >&2
13452 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13453 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13454 if test "${ac_cv_header_opagent_h+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 ac_cv_header_opagent_h=$ac_header_preproc
13459 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13460 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13463 if test $ac_cv_header_opagent_h = yes; then
13467 echo "Error! You need to have opagent.h around."
13475 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13476 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13477 { (exit 1); exit 1; }; } ;;
13488 cat >>confdefs.h <<_ACEOF
13489 #define LLVM_USE_OPROFILE $USE_OPROFILE
13494 # Check whether --with-intel-jitevents was given.
13495 if test "${with_intel_jitevents+set}" = set; then
13496 withval=$with_intel_jitevents;
13497 case $llvm_cv_os_type in
13498 Linux|Win32|Cygwin|MingW) ;;
13500 { { echo "$as_me:$LINENO: error:
13501 Intel JIT API support is available on Linux and Windows only.\"" >&5
13502 echo "$as_me: error:
13503 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13504 { (exit 1); exit 1; }; } ;;
13507 USE_INTEL_JITEVENTS=1
13509 case "$llvm_cv_target_arch" in
13510 x86) llvm_intel_jitevents_archdir="lib32";;
13511 x86_64) llvm_intel_jitevents_archdir="lib64";;
13512 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13515 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13516 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13518 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13519 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13526 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13527 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13529 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13530 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13531 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 ac_func_search_save_LIBS=$LIBS
13535 cat >conftest.$ac_ext <<_ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13542 /* Override any GCC internal prototype to avoid an error.
13543 Use char because int might match the return type of a GCC
13544 builtin and then its argument prototype would still apply. */
13548 char iJIT_IsProfilingActive ();
13552 return iJIT_IsProfilingActive ();
13557 for ac_lib in '' jitprofiling; do
13558 if test -z "$ac_lib"; then
13559 ac_res="none required"
13562 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13564 rm -f conftest.$ac_objext conftest$ac_exeext
13565 if { (ac_try="$ac_link"
13566 case "(($ac_try" in
13567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13571 (eval "$ac_link") 2>conftest.er1
13573 grep -v '^ *+' conftest.er1 >conftest.err
13575 cat conftest.err >&5
13576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13577 (exit $ac_status); } &&
13578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13579 { (case "(($ac_try" in
13580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13581 *) ac_try_echo=$ac_try;;
13583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13584 (eval "$ac_try") 2>&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); }; } &&
13588 { ac_try='test -s conftest$ac_exeext'
13589 { (case "(($ac_try" in
13590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13591 *) ac_try_echo=$ac_try;;
13593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13594 (eval "$ac_try") 2>&5
13596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13597 (exit $ac_status); }; }; then
13598 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13600 echo "$as_me: failed program was:" >&5
13601 sed 's/^/| /' conftest.$ac_ext >&5
13606 rm -f core conftest.err conftest.$ac_objext \
13608 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13612 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13615 ac_cv_search_iJIT_IsProfilingActive=no
13617 rm conftest.$ac_ext
13618 LIBS=$ac_func_search_save_LIBS
13620 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13621 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13622 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13623 if test "$ac_res" != no; then
13624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13628 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13633 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13634 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13635 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13636 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13637 echo $ECHO_N "(cached) $ECHO_C" >&6
13639 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13640 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13642 # Is the header compilable?
13643 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13644 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13645 cat >conftest.$ac_ext <<_ACEOF
13648 cat confdefs.h >>conftest.$ac_ext
13649 cat >>conftest.$ac_ext <<_ACEOF
13650 /* end confdefs.h. */
13651 $ac_includes_default
13652 #include <jitprofiling.h>
13654 rm -f conftest.$ac_objext
13655 if { (ac_try="$ac_compile"
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_compile") 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_objext'
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_header_compiler=yes
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13693 ac_header_compiler=no
13696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13698 echo "${ECHO_T}$ac_header_compiler" >&6; }
13700 # Is the header present?
13701 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13702 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13703 cat >conftest.$ac_ext <<_ACEOF
13706 cat confdefs.h >>conftest.$ac_ext
13707 cat >>conftest.$ac_ext <<_ACEOF
13708 /* end confdefs.h. */
13709 #include <jitprofiling.h>
13711 if { (ac_try="$ac_cpp conftest.$ac_ext"
13712 case "(($ac_try" in
13713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13714 *) ac_try_echo=$ac_try;;
13716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13719 grep -v '^ *+' conftest.er1 >conftest.err
13721 cat conftest.err >&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); } >/dev/null; then
13724 if test -s conftest.err; then
13725 ac_cpp_err=$ac_c_preproc_warn_flag
13726 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13733 if test -z "$ac_cpp_err"; then
13734 ac_header_preproc=yes
13736 echo "$as_me: failed program was:" >&5
13737 sed 's/^/| /' conftest.$ac_ext >&5
13739 ac_header_preproc=no
13742 rm -f conftest.err conftest.$ac_ext
13743 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13744 echo "${ECHO_T}$ac_header_preproc" >&6; }
13746 # So? What about this header?
13747 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13749 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13750 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13752 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13753 ac_header_preproc=yes
13756 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13757 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13758 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13759 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13761 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13763 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13765 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13767 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13769 ## ------------------------------------ ##
13770 ## Report this to http://llvm.org/bugs/ ##
13771 ## ------------------------------------ ##
13773 ) | sed "s/^/$as_me: WARNING: /" >&2
13776 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13777 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13778 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 ac_cv_header_jitprofiling_h=$ac_header_preproc
13783 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13784 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13787 if test $ac_cv_header_jitprofiling_h = yes; then
13791 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13801 USE_INTEL_JITEVENTS=0
13807 cat >>confdefs.h <<_ACEOF
13808 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13812 for ac_prog in xml2-config
13814 # Extract the first word of "$ac_prog", so it can be a program name with args.
13815 set dummy $ac_prog; ac_word=$2
13816 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13817 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13818 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13819 echo $ECHO_N "(cached) $ECHO_C" >&6
13821 if test -n "$XML2CONFIG"; then
13822 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13825 for as_dir in $PATH
13828 test -z "$as_dir" && as_dir=.
13829 for ac_exec_ext in '' $ac_executable_extensions; do
13830 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13831 ac_cv_prog_XML2CONFIG="$ac_prog"
13832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13841 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13842 if test -n "$XML2CONFIG"; then
13843 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13844 echo "${ECHO_T}$XML2CONFIG" >&6; }
13846 { echo "$as_me:$LINENO: result: no" >&5
13847 echo "${ECHO_T}no" >&6; }
13851 test -n "$XML2CONFIG" && break
13855 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13856 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13857 if test "x$XML2CONFIG" = "x"; then
13858 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13859 echo "${ECHO_T}xml2-config not found" >&6; }
13861 LIBXML2_INC=`$XML2CONFIG --cflags`
13862 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13863 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13864 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13865 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13866 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13867 echo $ECHO_N "(cached) $ECHO_C" >&6
13869 ac_check_lib_save_LIBS=$LIBS
13870 LIBS="-lxml2 $LIBS"
13871 cat >conftest.$ac_ext <<_ACEOF
13874 cat confdefs.h >>conftest.$ac_ext
13875 cat >>conftest.$ac_ext <<_ACEOF
13876 /* end confdefs.h. */
13878 /* Override any GCC internal prototype to avoid an error.
13879 Use char because int might match the return type of a GCC
13880 builtin and then its argument prototype would still apply. */
13884 char xmlReadFile ();
13888 return xmlReadFile ();
13893 rm -f conftest.$ac_objext conftest$ac_exeext
13894 if { (ac_try="$ac_link"
13895 case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_link") 2>conftest.er1
13902 grep -v '^ *+' conftest.er1 >conftest.err
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } &&
13907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13908 { (case "(($ac_try" in
13909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13910 *) ac_try_echo=$ac_try;;
13912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13913 (eval "$ac_try") 2>&5
13915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13916 (exit $ac_status); }; } &&
13917 { ac_try='test -s conftest$ac_exeext'
13918 { (case "(($ac_try" in
13919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13920 *) ac_try_echo=$ac_try;;
13922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13923 (eval "$ac_try") 2>&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); }; }; then
13927 ac_cv_lib_xml2_xmlReadFile=yes
13929 echo "$as_me: failed program was:" >&5
13930 sed 's/^/| /' conftest.$ac_ext >&5
13932 ac_cv_lib_xml2_xmlReadFile=no
13935 rm -f core conftest.err conftest.$ac_objext \
13936 conftest$ac_exeext conftest.$ac_ext
13937 LIBS=$ac_check_lib_save_LIBS
13939 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13940 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13941 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13943 cat >>confdefs.h <<\_ACEOF
13944 #define CLANG_HAVE_LIBXML 1
13947 LIBXML2_LIBS="-lxml2"
13960 ac_header_dirent=no
13961 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13962 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13963 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13964 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13968 cat >conftest.$ac_ext <<_ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 #include <sys/types.h>
13986 rm -f conftest.$ac_objext
13987 if { (ac_try="$ac_compile"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_compile") 2>conftest.er1
13995 grep -v '^ *+' conftest.er1 >conftest.err
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } &&
14000 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14001 { (case "(($ac_try" in
14002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14003 *) ac_try_echo=$ac_try;;
14005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14006 (eval "$ac_try") 2>&5
14008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14009 (exit $ac_status); }; } &&
14010 { ac_try='test -s conftest.$ac_objext'
14011 { (case "(($ac_try" in
14012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14013 *) ac_try_echo=$ac_try;;
14015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14016 (eval "$ac_try") 2>&5
14018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14019 (exit $ac_status); }; }; then
14020 eval "$as_ac_Header=yes"
14022 echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14025 eval "$as_ac_Header=no"
14028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14030 ac_res=`eval echo '${'$as_ac_Header'}'`
14031 { echo "$as_me:$LINENO: result: $ac_res" >&5
14032 echo "${ECHO_T}$ac_res" >&6; }
14033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14034 cat >>confdefs.h <<_ACEOF
14035 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14038 ac_header_dirent=$ac_hdr; break
14042 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14043 if test $ac_header_dirent = dirent.h; then
14044 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14045 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14046 if test "${ac_cv_search_opendir+set}" = set; then
14047 echo $ECHO_N "(cached) $ECHO_C" >&6
14049 ac_func_search_save_LIBS=$LIBS
14050 cat >conftest.$ac_ext <<_ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14057 /* Override any GCC internal prototype to avoid an error.
14058 Use char because int might match the return type of a GCC
14059 builtin and then its argument prototype would still apply. */
14072 for ac_lib in '' dir; do
14073 if test -z "$ac_lib"; then
14074 ac_res="none required"
14077 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14079 rm -f conftest.$ac_objext conftest$ac_exeext
14080 if { (ac_try="$ac_link"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_link") 2>conftest.er1
14088 grep -v '^ *+' conftest.er1 >conftest.err
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } &&
14093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14094 { (case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_try") 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; } &&
14103 { ac_try='test -s conftest$ac_exeext'
14104 { (case "(($ac_try" in
14105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14106 *) ac_try_echo=$ac_try;;
14108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14109 (eval "$ac_try") 2>&5
14111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14112 (exit $ac_status); }; }; then
14113 ac_cv_search_opendir=$ac_res
14115 echo "$as_me: failed program was:" >&5
14116 sed 's/^/| /' conftest.$ac_ext >&5
14121 rm -f core conftest.err conftest.$ac_objext \
14123 if test "${ac_cv_search_opendir+set}" = set; then
14127 if test "${ac_cv_search_opendir+set}" = set; then
14130 ac_cv_search_opendir=no
14132 rm conftest.$ac_ext
14133 LIBS=$ac_func_search_save_LIBS
14135 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14136 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14137 ac_res=$ac_cv_search_opendir
14138 if test "$ac_res" != no; then
14139 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14144 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14145 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14146 if test "${ac_cv_search_opendir+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14149 ac_func_search_save_LIBS=$LIBS
14150 cat >conftest.$ac_ext <<_ACEOF
14153 cat confdefs.h >>conftest.$ac_ext
14154 cat >>conftest.$ac_ext <<_ACEOF
14155 /* end confdefs.h. */
14157 /* Override any GCC internal prototype to avoid an error.
14158 Use char because int might match the return type of a GCC
14159 builtin and then its argument prototype would still apply. */
14172 for ac_lib in '' x; do
14173 if test -z "$ac_lib"; then
14174 ac_res="none required"
14177 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14179 rm -f conftest.$ac_objext conftest$ac_exeext
14180 if { (ac_try="$ac_link"
14181 case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_link") 2>conftest.er1
14188 grep -v '^ *+' conftest.er1 >conftest.err
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } &&
14193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14194 { (case "(($ac_try" in
14195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14196 *) ac_try_echo=$ac_try;;
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_try") 2>&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); }; } &&
14203 { ac_try='test -s conftest$ac_exeext'
14204 { (case "(($ac_try" in
14205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14206 *) ac_try_echo=$ac_try;;
14208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14209 (eval "$ac_try") 2>&5
14211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14212 (exit $ac_status); }; }; then
14213 ac_cv_search_opendir=$ac_res
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.$ac_ext >&5
14221 rm -f core conftest.err conftest.$ac_objext \
14223 if test "${ac_cv_search_opendir+set}" = set; then
14227 if test "${ac_cv_search_opendir+set}" = set; then
14230 ac_cv_search_opendir=no
14232 rm conftest.$ac_ext
14233 LIBS=$ac_func_search_save_LIBS
14235 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14236 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14237 ac_res=$ac_cv_search_opendir
14238 if test "$ac_res" != no; then
14239 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14245 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14246 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14247 if test "${ac_cv_header_mmap_anon+set}" = set; then
14248 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 ac_cpp='$CPP $CPPFLAGS'
14252 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14253 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14254 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14256 cat >conftest.$ac_ext <<_ACEOF
14259 cat confdefs.h >>conftest.$ac_ext
14260 cat >>conftest.$ac_ext <<_ACEOF
14261 /* end confdefs.h. */
14262 #include <sys/mman.h>
14263 #include <unistd.h>
14268 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14273 rm -f conftest.$ac_objext
14274 if { (ac_try="$ac_compile"
14275 case "(($ac_try" in
14276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14277 *) ac_try_echo=$ac_try;;
14279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14280 (eval "$ac_compile") 2>conftest.er1
14282 grep -v '^ *+' conftest.er1 >conftest.err
14284 cat conftest.err >&5
14285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14286 (exit $ac_status); } &&
14287 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14288 { (case "(($ac_try" in
14289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293 (eval "$ac_try") 2>&5
14295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); }; } &&
14297 { ac_try='test -s conftest.$ac_objext'
14298 { (case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_try") 2>&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); }; }; then
14307 ac_cv_header_mmap_anon=yes
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14312 ac_cv_header_mmap_anon=no
14315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14317 ac_cpp='$CPP $CPPFLAGS'
14318 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14319 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14320 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14324 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14325 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14326 if test "$ac_cv_header_mmap_anon" = yes; then
14328 cat >>confdefs.h <<\_ACEOF
14329 #define HAVE_MMAP_ANONYMOUS 1
14334 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14335 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14336 if test "${ac_cv_header_stat_broken+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 cat >conftest.$ac_ext <<_ACEOF
14342 cat confdefs.h >>conftest.$ac_ext
14343 cat >>conftest.$ac_ext <<_ACEOF
14344 /* end confdefs.h. */
14345 #include <sys/types.h>
14346 #include <sys/stat.h>
14348 #if defined S_ISBLK && defined S_IFDIR
14349 # if S_ISBLK (S_IFDIR)
14354 #if defined S_ISBLK && defined S_IFCHR
14355 # if S_ISBLK (S_IFCHR)
14360 #if defined S_ISLNK && defined S_IFREG
14361 # if S_ISLNK (S_IFREG)
14366 #if defined S_ISSOCK && defined S_IFREG
14367 # if S_ISSOCK (S_IFREG)
14373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14374 $EGREP "You lose" >/dev/null 2>&1; then
14375 ac_cv_header_stat_broken=yes
14377 ac_cv_header_stat_broken=no
14382 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14383 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14384 if test $ac_cv_header_stat_broken = yes; then
14386 cat >>confdefs.h <<\_ACEOF
14387 #define STAT_MACROS_BROKEN 1
14392 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14393 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14394 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14395 echo $ECHO_N "(cached) $ECHO_C" >&6
14397 cat >conftest.$ac_ext <<_ACEOF
14400 cat confdefs.h >>conftest.$ac_ext
14401 cat >>conftest.$ac_ext <<_ACEOF
14402 /* end confdefs.h. */
14403 #include <sys/types.h>
14404 #include <sys/wait.h>
14405 #ifndef WEXITSTATUS
14406 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14409 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14417 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14422 rm -f conftest.$ac_objext
14423 if { (ac_try="$ac_compile"
14424 case "(($ac_try" in
14425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14426 *) ac_try_echo=$ac_try;;
14428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14429 (eval "$ac_compile") 2>conftest.er1
14431 grep -v '^ *+' conftest.er1 >conftest.err
14433 cat conftest.err >&5
14434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14435 (exit $ac_status); } &&
14436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14437 { (case "(($ac_try" in
14438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14439 *) ac_try_echo=$ac_try;;
14441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14442 (eval "$ac_try") 2>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); }; } &&
14446 { ac_try='test -s conftest.$ac_objext'
14447 { (case "(($ac_try" in
14448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_try") 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; }; then
14456 ac_cv_header_sys_wait_h=yes
14458 echo "$as_me: failed program was:" >&5
14459 sed 's/^/| /' conftest.$ac_ext >&5
14461 ac_cv_header_sys_wait_h=no
14464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14467 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14468 if test $ac_cv_header_sys_wait_h = yes; then
14470 cat >>confdefs.h <<\_ACEOF
14471 #define HAVE_SYS_WAIT_H 1
14476 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14477 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14478 if test "${ac_cv_header_time+set}" = set; then
14479 echo $ECHO_N "(cached) $ECHO_C" >&6
14481 cat >conftest.$ac_ext <<_ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14487 #include <sys/types.h>
14488 #include <sys/time.h>
14494 if ((struct tm *) 0)
14500 rm -f conftest.$ac_objext
14501 if { (ac_try="$ac_compile"
14502 case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_compile") 2>conftest.er1
14509 grep -v '^ *+' conftest.er1 >conftest.err
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } &&
14514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14515 { (case "(($ac_try" in
14516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14517 *) ac_try_echo=$ac_try;;
14519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14520 (eval "$ac_try") 2>&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); }; } &&
14524 { ac_try='test -s conftest.$ac_objext'
14525 { (case "(($ac_try" in
14526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_try") 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; }; then
14534 ac_cv_header_time=yes
14536 echo "$as_me: failed program was:" >&5
14537 sed 's/^/| /' conftest.$ac_ext >&5
14539 ac_cv_header_time=no
14542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14544 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14545 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14546 if test $ac_cv_header_time = yes; then
14548 cat >>confdefs.h <<\_ACEOF
14549 #define TIME_WITH_SYS_TIME 1
14561 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14563 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14565 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14566 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14567 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14568 echo $ECHO_N "(cached) $ECHO_C" >&6
14570 ac_res=`eval echo '${'$as_ac_Header'}'`
14571 { echo "$as_me:$LINENO: result: $ac_res" >&5
14572 echo "${ECHO_T}$ac_res" >&6; }
14574 # Is the header compilable?
14575 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14576 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14577 cat >conftest.$ac_ext <<_ACEOF
14580 cat confdefs.h >>conftest.$ac_ext
14581 cat >>conftest.$ac_ext <<_ACEOF
14582 /* end confdefs.h. */
14583 $ac_includes_default
14584 #include <$ac_header>
14586 rm -f conftest.$ac_objext
14587 if { (ac_try="$ac_compile"
14588 case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_compile") 2>conftest.er1
14595 grep -v '^ *+' conftest.er1 >conftest.err
14597 cat conftest.err >&5
14598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14599 (exit $ac_status); } &&
14600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14601 { (case "(($ac_try" in
14602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14603 *) ac_try_echo=$ac_try;;
14605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14606 (eval "$ac_try") 2>&5
14608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14609 (exit $ac_status); }; } &&
14610 { ac_try='test -s conftest.$ac_objext'
14611 { (case "(($ac_try" in
14612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_try") 2>&5
14618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14619 (exit $ac_status); }; }; then
14620 ac_header_compiler=yes
14622 echo "$as_me: failed program was:" >&5
14623 sed 's/^/| /' conftest.$ac_ext >&5
14625 ac_header_compiler=no
14628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14630 echo "${ECHO_T}$ac_header_compiler" >&6; }
14632 # Is the header present?
14633 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14634 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14635 cat >conftest.$ac_ext <<_ACEOF
14638 cat confdefs.h >>conftest.$ac_ext
14639 cat >>conftest.$ac_ext <<_ACEOF
14640 /* end confdefs.h. */
14641 #include <$ac_header>
14643 if { (ac_try="$ac_cpp conftest.$ac_ext"
14644 case "(($ac_try" in
14645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14646 *) ac_try_echo=$ac_try;;
14648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14651 grep -v '^ *+' conftest.er1 >conftest.err
14653 cat conftest.err >&5
14654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14655 (exit $ac_status); } >/dev/null; then
14656 if test -s conftest.err; then
14657 ac_cpp_err=$ac_c_preproc_warn_flag
14658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14665 if test -z "$ac_cpp_err"; then
14666 ac_header_preproc=yes
14668 echo "$as_me: failed program was:" >&5
14669 sed 's/^/| /' conftest.$ac_ext >&5
14671 ac_header_preproc=no
14674 rm -f conftest.err conftest.$ac_ext
14675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14676 echo "${ECHO_T}$ac_header_preproc" >&6; }
14678 # So? What about this header?
14679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14685 ac_header_preproc=yes
14688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14701 ## ------------------------------------ ##
14702 ## Report this to http://llvm.org/bugs/ ##
14703 ## ------------------------------------ ##
14705 ) | sed "s/^/$as_me: WARNING: /" >&2
14708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14711 echo $ECHO_N "(cached) $ECHO_C" >&6
14713 eval "$as_ac_Header=\$ac_header_preproc"
14715 ac_res=`eval echo '${'$as_ac_Header'}'`
14716 { echo "$as_me:$LINENO: result: $ac_res" >&5
14717 echo "${ECHO_T}$ac_res" >&6; }
14720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14721 cat >>confdefs.h <<_ACEOF
14722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14735 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14737 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14739 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14740 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14741 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 ac_res=`eval echo '${'$as_ac_Header'}'`
14745 { echo "$as_me:$LINENO: result: $ac_res" >&5
14746 echo "${ECHO_T}$ac_res" >&6; }
14748 # Is the header compilable?
14749 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14750 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14751 cat >conftest.$ac_ext <<_ACEOF
14754 cat confdefs.h >>conftest.$ac_ext
14755 cat >>conftest.$ac_ext <<_ACEOF
14756 /* end confdefs.h. */
14757 $ac_includes_default
14758 #include <$ac_header>
14760 rm -f conftest.$ac_objext
14761 if { (ac_try="$ac_compile"
14762 case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_compile") 2>conftest.er1
14769 grep -v '^ *+' conftest.er1 >conftest.err
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14773 (exit $ac_status); } &&
14774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14775 { (case "(($ac_try" in
14776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14777 *) ac_try_echo=$ac_try;;
14779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14780 (eval "$ac_try") 2>&5
14782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14783 (exit $ac_status); }; } &&
14784 { ac_try='test -s conftest.$ac_objext'
14785 { (case "(($ac_try" in
14786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14787 *) ac_try_echo=$ac_try;;
14789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14790 (eval "$ac_try") 2>&5
14792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14793 (exit $ac_status); }; }; then
14794 ac_header_compiler=yes
14796 echo "$as_me: failed program was:" >&5
14797 sed 's/^/| /' conftest.$ac_ext >&5
14799 ac_header_compiler=no
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14804 echo "${ECHO_T}$ac_header_compiler" >&6; }
14806 # Is the header present?
14807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14809 cat >conftest.$ac_ext <<_ACEOF
14812 cat confdefs.h >>conftest.$ac_ext
14813 cat >>conftest.$ac_ext <<_ACEOF
14814 /* end confdefs.h. */
14815 #include <$ac_header>
14817 if { (ac_try="$ac_cpp conftest.$ac_ext"
14818 case "(($ac_try" in
14819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14820 *) ac_try_echo=$ac_try;;
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14825 grep -v '^ *+' conftest.er1 >conftest.err
14827 cat conftest.err >&5
14828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14829 (exit $ac_status); } >/dev/null; then
14830 if test -s conftest.err; then
14831 ac_cpp_err=$ac_c_preproc_warn_flag
14832 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14839 if test -z "$ac_cpp_err"; then
14840 ac_header_preproc=yes
14842 echo "$as_me: failed program was:" >&5
14843 sed 's/^/| /' conftest.$ac_ext >&5
14845 ac_header_preproc=no
14848 rm -f conftest.err conftest.$ac_ext
14849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14850 echo "${ECHO_T}$ac_header_preproc" >&6; }
14852 # So? What about this header?
14853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14859 ac_header_preproc=yes
14862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14875 ## ------------------------------------ ##
14876 ## Report this to http://llvm.org/bugs/ ##
14877 ## ------------------------------------ ##
14879 ) | sed "s/^/$as_me: WARNING: /" >&2
14882 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14883 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 eval "$as_ac_Header=\$ac_header_preproc"
14889 ac_res=`eval echo '${'$as_ac_Header'}'`
14890 { echo "$as_me:$LINENO: result: $ac_res" >&5
14891 echo "${ECHO_T}$ac_res" >&6; }
14894 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14895 cat >>confdefs.h <<_ACEOF
14896 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14905 for ac_header in utime.h windows.h
14907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 ac_res=`eval echo '${'$as_ac_Header'}'`
14915 { echo "$as_me:$LINENO: result: $ac_res" >&5
14916 echo "${ECHO_T}$ac_res" >&6; }
14918 # Is the header compilable?
14919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14921 cat >conftest.$ac_ext <<_ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */
14927 $ac_includes_default
14928 #include <$ac_header>
14930 rm -f conftest.$ac_objext
14931 if { (ac_try="$ac_compile"
14932 case "(($ac_try" in
14933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14934 *) ac_try_echo=$ac_try;;
14936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14937 (eval "$ac_compile") 2>conftest.er1
14939 grep -v '^ *+' conftest.er1 >conftest.err
14941 cat conftest.err >&5
14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14943 (exit $ac_status); } &&
14944 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14945 { (case "(($ac_try" in
14946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14947 *) ac_try_echo=$ac_try;;
14949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14950 (eval "$ac_try") 2>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); }; } &&
14954 { ac_try='test -s conftest.$ac_objext'
14955 { (case "(($ac_try" in
14956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14957 *) ac_try_echo=$ac_try;;
14959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14960 (eval "$ac_try") 2>&5
14962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14963 (exit $ac_status); }; }; then
14964 ac_header_compiler=yes
14966 echo "$as_me: failed program was:" >&5
14967 sed 's/^/| /' conftest.$ac_ext >&5
14969 ac_header_compiler=no
14972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14973 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14974 echo "${ECHO_T}$ac_header_compiler" >&6; }
14976 # Is the header present?
14977 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14978 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14979 cat >conftest.$ac_ext <<_ACEOF
14982 cat confdefs.h >>conftest.$ac_ext
14983 cat >>conftest.$ac_ext <<_ACEOF
14984 /* end confdefs.h. */
14985 #include <$ac_header>
14987 if { (ac_try="$ac_cpp conftest.$ac_ext"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14993 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14995 grep -v '^ *+' conftest.er1 >conftest.err
14997 cat conftest.err >&5
14998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14999 (exit $ac_status); } >/dev/null; then
15000 if test -s conftest.err; then
15001 ac_cpp_err=$ac_c_preproc_warn_flag
15002 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15009 if test -z "$ac_cpp_err"; then
15010 ac_header_preproc=yes
15012 echo "$as_me: failed program was:" >&5
15013 sed 's/^/| /' conftest.$ac_ext >&5
15015 ac_header_preproc=no
15018 rm -f conftest.err conftest.$ac_ext
15019 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15020 echo "${ECHO_T}$ac_header_preproc" >&6; }
15022 # So? What about this header?
15023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15026 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15029 ac_header_preproc=yes
15032 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15033 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15034 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15035 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15036 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15037 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15038 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15039 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15040 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15042 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15043 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15045 ## ------------------------------------ ##
15046 ## Report this to http://llvm.org/bugs/ ##
15047 ## ------------------------------------ ##
15049 ) | sed "s/^/$as_me: WARNING: /" >&2
15052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15055 echo $ECHO_N "(cached) $ECHO_C" >&6
15057 eval "$as_ac_Header=\$ac_header_preproc"
15059 ac_res=`eval echo '${'$as_ac_Header'}'`
15060 { echo "$as_me:$LINENO: result: $ac_res" >&5
15061 echo "${ECHO_T}$ac_res" >&6; }
15064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15065 cat >>confdefs.h <<_ACEOF
15066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15078 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15080 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15085 echo $ECHO_N "(cached) $ECHO_C" >&6
15087 ac_res=`eval echo '${'$as_ac_Header'}'`
15088 { echo "$as_me:$LINENO: result: $ac_res" >&5
15089 echo "${ECHO_T}$ac_res" >&6; }
15091 # Is the header compilable?
15092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15094 cat >conftest.$ac_ext <<_ACEOF
15097 cat confdefs.h >>conftest.$ac_ext
15098 cat >>conftest.$ac_ext <<_ACEOF
15099 /* end confdefs.h. */
15100 $ac_includes_default
15101 #include <$ac_header>
15103 rm -f conftest.$ac_objext
15104 if { (ac_try="$ac_compile"
15105 case "(($ac_try" in
15106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15107 *) ac_try_echo=$ac_try;;
15109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15110 (eval "$ac_compile") 2>conftest.er1
15112 grep -v '^ *+' conftest.er1 >conftest.err
15114 cat conftest.err >&5
15115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15116 (exit $ac_status); } &&
15117 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15118 { (case "(($ac_try" in
15119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15120 *) ac_try_echo=$ac_try;;
15122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15123 (eval "$ac_try") 2>&5
15125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15126 (exit $ac_status); }; } &&
15127 { ac_try='test -s conftest.$ac_objext'
15128 { (case "(($ac_try" in
15129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15130 *) ac_try_echo=$ac_try;;
15132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15133 (eval "$ac_try") 2>&5
15135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15136 (exit $ac_status); }; }; then
15137 ac_header_compiler=yes
15139 echo "$as_me: failed program was:" >&5
15140 sed 's/^/| /' conftest.$ac_ext >&5
15142 ac_header_compiler=no
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15147 echo "${ECHO_T}$ac_header_compiler" >&6; }
15149 # Is the header present?
15150 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15151 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15152 cat >conftest.$ac_ext <<_ACEOF
15155 cat confdefs.h >>conftest.$ac_ext
15156 cat >>conftest.$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15158 #include <$ac_header>
15160 if { (ac_try="$ac_cpp conftest.$ac_ext"
15161 case "(($ac_try" in
15162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163 *) ac_try_echo=$ac_try;;
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15168 grep -v '^ *+' conftest.er1 >conftest.err
15170 cat conftest.err >&5
15171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } >/dev/null; then
15173 if test -s conftest.err; then
15174 ac_cpp_err=$ac_c_preproc_warn_flag
15175 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15182 if test -z "$ac_cpp_err"; then
15183 ac_header_preproc=yes
15185 echo "$as_me: failed program was:" >&5
15186 sed 's/^/| /' conftest.$ac_ext >&5
15188 ac_header_preproc=no
15191 rm -f conftest.err conftest.$ac_ext
15192 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15193 echo "${ECHO_T}$ac_header_preproc" >&6; }
15195 # So? What about this header?
15196 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15198 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15199 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15201 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15202 ac_header_preproc=yes
15205 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15206 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15207 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15208 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15209 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15210 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15211 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15212 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15214 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15215 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15216 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15218 ## ------------------------------------ ##
15219 ## Report this to http://llvm.org/bugs/ ##
15220 ## ------------------------------------ ##
15222 ) | sed "s/^/$as_me: WARNING: /" >&2
15225 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15226 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15228 echo $ECHO_N "(cached) $ECHO_C" >&6
15230 eval "$as_ac_Header=\$ac_header_preproc"
15232 ac_res=`eval echo '${'$as_ac_Header'}'`
15233 { echo "$as_me:$LINENO: result: $ac_res" >&5
15234 echo "${ECHO_T}$ac_res" >&6; }
15237 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15238 cat >>confdefs.h <<_ACEOF
15239 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15250 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15252 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15254 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15255 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 ac_res=`eval echo '${'$as_ac_Header'}'`
15260 { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15263 # Is the header compilable?
15264 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15265 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15266 cat >conftest.$ac_ext <<_ACEOF
15269 cat confdefs.h >>conftest.$ac_ext
15270 cat >>conftest.$ac_ext <<_ACEOF
15271 /* end confdefs.h. */
15272 $ac_includes_default
15273 #include <$ac_header>
15275 rm -f conftest.$ac_objext
15276 if { (ac_try="$ac_compile"
15277 case "(($ac_try" in
15278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15279 *) ac_try_echo=$ac_try;;
15281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15282 (eval "$ac_compile") 2>conftest.er1
15284 grep -v '^ *+' conftest.er1 >conftest.err
15286 cat conftest.err >&5
15287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15288 (exit $ac_status); } &&
15289 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15290 { (case "(($ac_try" in
15291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15292 *) ac_try_echo=$ac_try;;
15294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15295 (eval "$ac_try") 2>&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); }; } &&
15299 { ac_try='test -s conftest.$ac_objext'
15300 { (case "(($ac_try" in
15301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15302 *) ac_try_echo=$ac_try;;
15304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15305 (eval "$ac_try") 2>&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); }; }; then
15309 ac_header_compiler=yes
15311 echo "$as_me: failed program was:" >&5
15312 sed 's/^/| /' conftest.$ac_ext >&5
15314 ac_header_compiler=no
15317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15318 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15319 echo "${ECHO_T}$ac_header_compiler" >&6; }
15321 # Is the header present?
15322 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15323 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15324 cat >conftest.$ac_ext <<_ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15330 #include <$ac_header>
15332 if { (ac_try="$ac_cpp conftest.$ac_ext"
15333 case "(($ac_try" in
15334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15335 *) ac_try_echo=$ac_try;;
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15340 grep -v '^ *+' conftest.er1 >conftest.err
15342 cat conftest.err >&5
15343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } >/dev/null; then
15345 if test -s conftest.err; then
15346 ac_cpp_err=$ac_c_preproc_warn_flag
15347 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15354 if test -z "$ac_cpp_err"; then
15355 ac_header_preproc=yes
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15360 ac_header_preproc=no
15363 rm -f conftest.err conftest.$ac_ext
15364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15365 echo "${ECHO_T}$ac_header_preproc" >&6; }
15367 # So? What about this header?
15368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15374 ac_header_preproc=yes
15377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15390 ## ------------------------------------ ##
15391 ## Report this to http://llvm.org/bugs/ ##
15392 ## ------------------------------------ ##
15394 ) | sed "s/^/$as_me: WARNING: /" >&2
15397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15399 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15400 echo $ECHO_N "(cached) $ECHO_C" >&6
15402 eval "$as_ac_Header=\$ac_header_preproc"
15404 ac_res=`eval echo '${'$as_ac_Header'}'`
15405 { echo "$as_me:$LINENO: result: $ac_res" >&5
15406 echo "${ECHO_T}$ac_res" >&6; }
15409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15410 cat >>confdefs.h <<_ACEOF
15411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15419 for ac_header in valgrind/valgrind.h
15421 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15422 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15428 ac_res=`eval echo '${'$as_ac_Header'}'`
15429 { echo "$as_me:$LINENO: result: $ac_res" >&5
15430 echo "${ECHO_T}$ac_res" >&6; }
15432 # Is the header compilable?
15433 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15434 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15435 cat >conftest.$ac_ext <<_ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 $ac_includes_default
15442 #include <$ac_header>
15444 rm -f conftest.$ac_objext
15445 if { (ac_try="$ac_compile"
15446 case "(($ac_try" in
15447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15448 *) ac_try_echo=$ac_try;;
15450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15451 (eval "$ac_compile") 2>conftest.er1
15453 grep -v '^ *+' conftest.er1 >conftest.err
15455 cat conftest.err >&5
15456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15457 (exit $ac_status); } &&
15458 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15459 { (case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_try") 2>&5
15466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15467 (exit $ac_status); }; } &&
15468 { ac_try='test -s conftest.$ac_objext'
15469 { (case "(($ac_try" in
15470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15471 *) ac_try_echo=$ac_try;;
15473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15474 (eval "$ac_try") 2>&5
15476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15477 (exit $ac_status); }; }; then
15478 ac_header_compiler=yes
15480 echo "$as_me: failed program was:" >&5
15481 sed 's/^/| /' conftest.$ac_ext >&5
15483 ac_header_compiler=no
15486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15488 echo "${ECHO_T}$ac_header_compiler" >&6; }
15490 # Is the header present?
15491 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15493 cat >conftest.$ac_ext <<_ACEOF
15496 cat confdefs.h >>conftest.$ac_ext
15497 cat >>conftest.$ac_ext <<_ACEOF
15498 /* end confdefs.h. */
15499 #include <$ac_header>
15501 if { (ac_try="$ac_cpp conftest.$ac_ext"
15502 case "(($ac_try" in
15503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15504 *) ac_try_echo=$ac_try;;
15506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15509 grep -v '^ *+' conftest.er1 >conftest.err
15511 cat conftest.err >&5
15512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15513 (exit $ac_status); } >/dev/null; then
15514 if test -s conftest.err; then
15515 ac_cpp_err=$ac_c_preproc_warn_flag
15516 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15523 if test -z "$ac_cpp_err"; then
15524 ac_header_preproc=yes
15526 echo "$as_me: failed program was:" >&5
15527 sed 's/^/| /' conftest.$ac_ext >&5
15529 ac_header_preproc=no
15532 rm -f conftest.err conftest.$ac_ext
15533 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15534 echo "${ECHO_T}$ac_header_preproc" >&6; }
15536 # So? What about this header?
15537 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15539 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15540 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15541 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15542 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15543 ac_header_preproc=yes
15546 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15547 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15548 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15549 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15550 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15551 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15552 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15553 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15554 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15555 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15556 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15557 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15559 ## ------------------------------------ ##
15560 ## Report this to http://llvm.org/bugs/ ##
15561 ## ------------------------------------ ##
15563 ) | sed "s/^/$as_me: WARNING: /" >&2
15566 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15567 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15569 echo $ECHO_N "(cached) $ECHO_C" >&6
15571 eval "$as_ac_Header=\$ac_header_preproc"
15573 ac_res=`eval echo '${'$as_ac_Header'}'`
15574 { echo "$as_me:$LINENO: result: $ac_res" >&5
15575 echo "${ECHO_T}$ac_res" >&6; }
15578 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15579 cat >>confdefs.h <<_ACEOF
15580 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15588 for ac_header in fenv.h
15590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15595 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 ac_res=`eval echo '${'$as_ac_Header'}'`
15598 { echo "$as_me:$LINENO: result: $ac_res" >&5
15599 echo "${ECHO_T}$ac_res" >&6; }
15601 # Is the header compilable?
15602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15604 cat >conftest.$ac_ext <<_ACEOF
15607 cat confdefs.h >>conftest.$ac_ext
15608 cat >>conftest.$ac_ext <<_ACEOF
15609 /* end confdefs.h. */
15610 $ac_includes_default
15611 #include <$ac_header>
15613 rm -f conftest.$ac_objext
15614 if { (ac_try="$ac_compile"
15615 case "(($ac_try" in
15616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15617 *) ac_try_echo=$ac_try;;
15619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15620 (eval "$ac_compile") 2>conftest.er1
15622 grep -v '^ *+' conftest.er1 >conftest.err
15624 cat conftest.err >&5
15625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15626 (exit $ac_status); } &&
15627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15628 { (case "(($ac_try" in
15629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15630 *) ac_try_echo=$ac_try;;
15632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15633 (eval "$ac_try") 2>&5
15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15636 (exit $ac_status); }; } &&
15637 { ac_try='test -s conftest.$ac_objext'
15638 { (case "(($ac_try" in
15639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15640 *) ac_try_echo=$ac_try;;
15642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15643 (eval "$ac_try") 2>&5
15645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15646 (exit $ac_status); }; }; then
15647 ac_header_compiler=yes
15649 echo "$as_me: failed program was:" >&5
15650 sed 's/^/| /' conftest.$ac_ext >&5
15652 ac_header_compiler=no
15655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15657 echo "${ECHO_T}$ac_header_compiler" >&6; }
15659 # Is the header present?
15660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15662 cat >conftest.$ac_ext <<_ACEOF
15665 cat confdefs.h >>conftest.$ac_ext
15666 cat >>conftest.$ac_ext <<_ACEOF
15667 /* end confdefs.h. */
15668 #include <$ac_header>
15670 if { (ac_try="$ac_cpp conftest.$ac_ext"
15671 case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15678 grep -v '^ *+' conftest.er1 >conftest.err
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } >/dev/null; then
15683 if test -s conftest.err; then
15684 ac_cpp_err=$ac_c_preproc_warn_flag
15685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15692 if test -z "$ac_cpp_err"; then
15693 ac_header_preproc=yes
15695 echo "$as_me: failed program was:" >&5
15696 sed 's/^/| /' conftest.$ac_ext >&5
15698 ac_header_preproc=no
15701 rm -f conftest.err conftest.$ac_ext
15702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15703 echo "${ECHO_T}$ac_header_preproc" >&6; }
15705 # So? What about this header?
15706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15712 ac_header_preproc=yes
15715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15728 ## ------------------------------------ ##
15729 ## Report this to http://llvm.org/bugs/ ##
15730 ## ------------------------------------ ##
15732 ) | sed "s/^/$as_me: WARNING: /" >&2
15735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15738 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 eval "$as_ac_Header=\$ac_header_preproc"
15742 ac_res=`eval echo '${'$as_ac_Header'}'`
15743 { echo "$as_me:$LINENO: result: $ac_res" >&5
15744 echo "${ECHO_T}$ac_res" >&6; }
15747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15748 cat >>confdefs.h <<_ACEOF
15749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15756 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15758 for ac_header in pthread.h
15760 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15761 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 ac_res=`eval echo '${'$as_ac_Header'}'`
15768 { echo "$as_me:$LINENO: result: $ac_res" >&5
15769 echo "${ECHO_T}$ac_res" >&6; }
15771 # Is the header compilable?
15772 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15773 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15774 cat >conftest.$ac_ext <<_ACEOF
15777 cat confdefs.h >>conftest.$ac_ext
15778 cat >>conftest.$ac_ext <<_ACEOF
15779 /* end confdefs.h. */
15780 $ac_includes_default
15781 #include <$ac_header>
15783 rm -f conftest.$ac_objext
15784 if { (ac_try="$ac_compile"
15785 case "(($ac_try" in
15786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15787 *) ac_try_echo=$ac_try;;
15789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15790 (eval "$ac_compile") 2>conftest.er1
15792 grep -v '^ *+' conftest.er1 >conftest.err
15794 cat conftest.err >&5
15795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15796 (exit $ac_status); } &&
15797 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15798 { (case "(($ac_try" in
15799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15800 *) ac_try_echo=$ac_try;;
15802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15803 (eval "$ac_try") 2>&5
15805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15806 (exit $ac_status); }; } &&
15807 { ac_try='test -s conftest.$ac_objext'
15808 { (case "(($ac_try" in
15809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15810 *) ac_try_echo=$ac_try;;
15812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15813 (eval "$ac_try") 2>&5
15815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); }; }; then
15817 ac_header_compiler=yes
15819 echo "$as_me: failed program was:" >&5
15820 sed 's/^/| /' conftest.$ac_ext >&5
15822 ac_header_compiler=no
15825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15826 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15827 echo "${ECHO_T}$ac_header_compiler" >&6; }
15829 # Is the header present?
15830 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15831 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15832 cat >conftest.$ac_ext <<_ACEOF
15835 cat confdefs.h >>conftest.$ac_ext
15836 cat >>conftest.$ac_ext <<_ACEOF
15837 /* end confdefs.h. */
15838 #include <$ac_header>
15840 if { (ac_try="$ac_cpp conftest.$ac_ext"
15841 case "(($ac_try" in
15842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15843 *) ac_try_echo=$ac_try;;
15845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15846 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15848 grep -v '^ *+' conftest.er1 >conftest.err
15850 cat conftest.err >&5
15851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15852 (exit $ac_status); } >/dev/null; then
15853 if test -s conftest.err; then
15854 ac_cpp_err=$ac_c_preproc_warn_flag
15855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15862 if test -z "$ac_cpp_err"; then
15863 ac_header_preproc=yes
15865 echo "$as_me: failed program was:" >&5
15866 sed 's/^/| /' conftest.$ac_ext >&5
15868 ac_header_preproc=no
15871 rm -f conftest.err conftest.$ac_ext
15872 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15873 echo "${ECHO_T}$ac_header_preproc" >&6; }
15875 # So? What about this header?
15876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15879 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15881 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15882 ac_header_preproc=yes
15885 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15886 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15887 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15888 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15889 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15890 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15891 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15892 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15893 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15894 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15895 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15896 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15898 ## ------------------------------------ ##
15899 ## Report this to http://llvm.org/bugs/ ##
15900 ## ------------------------------------ ##
15902 ) | sed "s/^/$as_me: WARNING: /" >&2
15905 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15906 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15907 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15908 echo $ECHO_N "(cached) $ECHO_C" >&6
15910 eval "$as_ac_Header=\$ac_header_preproc"
15912 ac_res=`eval echo '${'$as_ac_Header'}'`
15913 { echo "$as_me:$LINENO: result: $ac_res" >&5
15914 echo "${ECHO_T}$ac_res" >&6; }
15917 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15918 cat >>confdefs.h <<_ACEOF
15919 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15935 if test "$llvm_cv_enable_libffi" = "yes" ; then
15938 for ac_header in ffi.h ffi/ffi.h
15940 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15942 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15943 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15944 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15945 echo $ECHO_N "(cached) $ECHO_C" >&6
15947 ac_res=`eval echo '${'$as_ac_Header'}'`
15948 { echo "$as_me:$LINENO: result: $ac_res" >&5
15949 echo "${ECHO_T}$ac_res" >&6; }
15951 # Is the header compilable?
15952 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15953 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15954 cat >conftest.$ac_ext <<_ACEOF
15957 cat confdefs.h >>conftest.$ac_ext
15958 cat >>conftest.$ac_ext <<_ACEOF
15959 /* end confdefs.h. */
15960 $ac_includes_default
15961 #include <$ac_header>
15963 rm -f conftest.$ac_objext
15964 if { (ac_try="$ac_compile"
15965 case "(($ac_try" in
15966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15967 *) ac_try_echo=$ac_try;;
15969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15970 (eval "$ac_compile") 2>conftest.er1
15972 grep -v '^ *+' conftest.er1 >conftest.err
15974 cat conftest.err >&5
15975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15976 (exit $ac_status); } &&
15977 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15978 { (case "(($ac_try" in
15979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15980 *) ac_try_echo=$ac_try;;
15982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15983 (eval "$ac_try") 2>&5
15985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15986 (exit $ac_status); }; } &&
15987 { ac_try='test -s conftest.$ac_objext'
15988 { (case "(($ac_try" in
15989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15990 *) ac_try_echo=$ac_try;;
15992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15993 (eval "$ac_try") 2>&5
15995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15996 (exit $ac_status); }; }; then
15997 ac_header_compiler=yes
15999 echo "$as_me: failed program was:" >&5
16000 sed 's/^/| /' conftest.$ac_ext >&5
16002 ac_header_compiler=no
16005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16006 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16007 echo "${ECHO_T}$ac_header_compiler" >&6; }
16009 # Is the header present?
16010 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16011 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16012 cat >conftest.$ac_ext <<_ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 #include <$ac_header>
16020 if { (ac_try="$ac_cpp conftest.$ac_ext"
16021 case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16028 grep -v '^ *+' conftest.er1 >conftest.err
16030 cat conftest.err >&5
16031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16032 (exit $ac_status); } >/dev/null; then
16033 if test -s conftest.err; then
16034 ac_cpp_err=$ac_c_preproc_warn_flag
16035 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16042 if test -z "$ac_cpp_err"; then
16043 ac_header_preproc=yes
16045 echo "$as_me: failed program was:" >&5
16046 sed 's/^/| /' conftest.$ac_ext >&5
16048 ac_header_preproc=no
16051 rm -f conftest.err conftest.$ac_ext
16052 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16053 echo "${ECHO_T}$ac_header_preproc" >&6; }
16055 # So? What about this header?
16056 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16059 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16061 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16062 ac_header_preproc=yes
16065 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16066 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16067 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16068 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16069 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16070 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16071 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16072 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16073 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16074 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16075 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16076 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16078 ## ------------------------------------ ##
16079 ## Report this to http://llvm.org/bugs/ ##
16080 ## ------------------------------------ ##
16082 ) | sed "s/^/$as_me: WARNING: /" >&2
16085 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16090 eval "$as_ac_Header=\$ac_header_preproc"
16092 ac_res=`eval echo '${'$as_ac_Header'}'`
16093 { echo "$as_me:$LINENO: result: $ac_res" >&5
16094 echo "${ECHO_T}$ac_res" >&6; }
16097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16098 cat >>confdefs.h <<_ACEOF
16099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16109 for ac_header in CrashReporterClient.h
16111 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16112 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16116 echo $ECHO_N "(cached) $ECHO_C" >&6
16118 ac_res=`eval echo '${'$as_ac_Header'}'`
16119 { echo "$as_me:$LINENO: result: $ac_res" >&5
16120 echo "${ECHO_T}$ac_res" >&6; }
16122 # Is the header compilable?
16123 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16124 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16125 cat >conftest.$ac_ext <<_ACEOF
16128 cat confdefs.h >>conftest.$ac_ext
16129 cat >>conftest.$ac_ext <<_ACEOF
16130 /* end confdefs.h. */
16131 $ac_includes_default
16132 #include <$ac_header>
16134 rm -f conftest.$ac_objext
16135 if { (ac_try="$ac_compile"
16136 case "(($ac_try" in
16137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138 *) ac_try_echo=$ac_try;;
16140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16141 (eval "$ac_compile") 2>conftest.er1
16143 grep -v '^ *+' conftest.er1 >conftest.err
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16147 (exit $ac_status); } &&
16148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16149 { (case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_try") 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; } &&
16158 { ac_try='test -s conftest.$ac_objext'
16159 { (case "(($ac_try" in
16160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16161 *) ac_try_echo=$ac_try;;
16163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16164 (eval "$ac_try") 2>&5
16166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16167 (exit $ac_status); }; }; then
16168 ac_header_compiler=yes
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16173 ac_header_compiler=no
16176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16178 echo "${ECHO_T}$ac_header_compiler" >&6; }
16180 # Is the header present?
16181 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16182 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16183 cat >conftest.$ac_ext <<_ACEOF
16186 cat confdefs.h >>conftest.$ac_ext
16187 cat >>conftest.$ac_ext <<_ACEOF
16188 /* end confdefs.h. */
16189 #include <$ac_header>
16191 if { (ac_try="$ac_cpp conftest.$ac_ext"
16192 case "(($ac_try" in
16193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16194 *) ac_try_echo=$ac_try;;
16196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16199 grep -v '^ *+' conftest.er1 >conftest.err
16201 cat conftest.err >&5
16202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16203 (exit $ac_status); } >/dev/null; then
16204 if test -s conftest.err; then
16205 ac_cpp_err=$ac_c_preproc_warn_flag
16206 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16213 if test -z "$ac_cpp_err"; then
16214 ac_header_preproc=yes
16216 echo "$as_me: failed program was:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 ac_header_preproc=no
16222 rm -f conftest.err conftest.$ac_ext
16223 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16224 echo "${ECHO_T}$ac_header_preproc" >&6; }
16226 # So? What about this header?
16227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16229 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16230 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16231 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16233 ac_header_preproc=yes
16236 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16237 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16238 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16239 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16240 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16241 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16242 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16243 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16246 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16247 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16249 ## ------------------------------------ ##
16250 ## Report this to http://llvm.org/bugs/ ##
16251 ## ------------------------------------ ##
16253 ) | sed "s/^/$as_me: WARNING: /" >&2
16256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16259 echo $ECHO_N "(cached) $ECHO_C" >&6
16261 eval "$as_ac_Header=\$ac_header_preproc"
16263 ac_res=`eval echo '${'$as_ac_Header'}'`
16264 { echo "$as_me:$LINENO: result: $ac_res" >&5
16265 echo "${ECHO_T}$ac_res" >&6; }
16268 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16269 cat >>confdefs.h <<_ACEOF
16270 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16278 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16279 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16280 cat >conftest.$ac_ext <<_ACEOF
16283 cat confdefs.h >>conftest.$ac_ext
16284 cat >>conftest.$ac_ext <<_ACEOF
16285 /* end confdefs.h. */
16286 extern const char *__crashreporter_info__;
16288 __crashreporter_info__ = "test";
16293 rm -f conftest.$ac_objext conftest$ac_exeext
16294 if { (ac_try="$ac_link"
16295 case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_link") 2>conftest.er1
16302 grep -v '^ *+' conftest.er1 >conftest.err
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16308 { (case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313 (eval "$ac_try") 2>&5
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest$ac_exeext'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 { echo "$as_me:$LINENO: result: yes" >&5
16328 echo "${ECHO_T}yes" >&6; }
16330 cat >>confdefs.h <<\_ACEOF
16331 #define HAVE_CRASHREPORTER_INFO 1
16335 echo "$as_me: failed program was:" >&5
16336 sed 's/^/| /' conftest.$ac_ext >&5
16338 { echo "$as_me:$LINENO: result: no" >&5
16339 echo "${ECHO_T}no" >&6; }
16341 cat >>confdefs.h <<\_ACEOF
16342 #define HAVE_CRASHREPORTER_INFO 0
16347 rm -f core conftest.err conftest.$ac_objext \
16348 conftest$ac_exeext conftest.$ac_ext
16353 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16354 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16355 if test "${ac_cv_huge_val_sanity+set}" = set; then
16356 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 ac_cpp='$CXXCPP $CPPFLAGS'
16361 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16362 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16363 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16365 ac_save_CXXFLAGS=$CXXFLAGS
16366 CXXFLAGS="$CXXFLAGS -pedantic"
16367 if test "$cross_compiling" = yes; then
16368 ac_cv_huge_val_sanity=yes
16370 cat >conftest.$ac_ext <<_ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h. */
16380 double x = HUGE_VAL; return x != x;
16385 rm -f conftest$ac_exeext
16386 if { (ac_try="$ac_link"
16387 case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16392 (eval "$ac_link") 2>&5
16394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16395 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16396 { (case "(($ac_try" in
16397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16398 *) ac_try_echo=$ac_try;;
16400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16401 (eval "$ac_try") 2>&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); }; }; then
16405 ac_cv_huge_val_sanity=yes
16407 echo "$as_me: program exited with status $ac_status" >&5
16408 echo "$as_me: failed program was:" >&5
16409 sed 's/^/| /' conftest.$ac_ext >&5
16411 ( exit $ac_status )
16412 ac_cv_huge_val_sanity=no
16414 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16418 CXXFLAGS=$ac_save_CXXFLAGS
16420 ac_cpp='$CPP $CPPFLAGS'
16421 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16422 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16423 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16427 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16428 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16429 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16432 { echo "$as_me:$LINENO: checking for pid_t" >&5
16433 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16434 if test "${ac_cv_type_pid_t+set}" = set; then
16435 echo $ECHO_N "(cached) $ECHO_C" >&6
16437 cat >conftest.$ac_ext <<_ACEOF
16440 cat confdefs.h >>conftest.$ac_ext
16441 cat >>conftest.$ac_ext <<_ACEOF
16442 /* end confdefs.h. */
16443 $ac_includes_default
16444 typedef pid_t ac__type_new_;
16448 if ((ac__type_new_ *) 0)
16450 if (sizeof (ac__type_new_))
16456 rm -f conftest.$ac_objext
16457 if { (ac_try="$ac_compile"
16458 case "(($ac_try" in
16459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16460 *) ac_try_echo=$ac_try;;
16462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16463 (eval "$ac_compile") 2>conftest.er1
16465 grep -v '^ *+' conftest.er1 >conftest.err
16467 cat conftest.err >&5
16468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16469 (exit $ac_status); } &&
16470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16471 { (case "(($ac_try" in
16472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16473 *) ac_try_echo=$ac_try;;
16475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16476 (eval "$ac_try") 2>&5
16478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16479 (exit $ac_status); }; } &&
16480 { ac_try='test -s conftest.$ac_objext'
16481 { (case "(($ac_try" in
16482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16483 *) ac_try_echo=$ac_try;;
16485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16486 (eval "$ac_try") 2>&5
16488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16489 (exit $ac_status); }; }; then
16490 ac_cv_type_pid_t=yes
16492 echo "$as_me: failed program was:" >&5
16493 sed 's/^/| /' conftest.$ac_ext >&5
16495 ac_cv_type_pid_t=no
16498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16500 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16501 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16502 if test $ac_cv_type_pid_t = yes; then
16506 cat >>confdefs.h <<_ACEOF
16512 { echo "$as_me:$LINENO: checking for size_t" >&5
16513 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16514 if test "${ac_cv_type_size_t+set}" = set; then
16515 echo $ECHO_N "(cached) $ECHO_C" >&6
16517 cat >conftest.$ac_ext <<_ACEOF
16520 cat confdefs.h >>conftest.$ac_ext
16521 cat >>conftest.$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16523 $ac_includes_default
16524 typedef size_t ac__type_new_;
16528 if ((ac__type_new_ *) 0)
16530 if (sizeof (ac__type_new_))
16536 rm -f conftest.$ac_objext
16537 if { (ac_try="$ac_compile"
16538 case "(($ac_try" in
16539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16540 *) ac_try_echo=$ac_try;;
16542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16543 (eval "$ac_compile") 2>conftest.er1
16545 grep -v '^ *+' conftest.er1 >conftest.err
16547 cat conftest.err >&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); } &&
16550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16551 { (case "(($ac_try" in
16552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_try") 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; } &&
16560 { ac_try='test -s conftest.$ac_objext'
16561 { (case "(($ac_try" in
16562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16563 *) ac_try_echo=$ac_try;;
16565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16566 (eval "$ac_try") 2>&5
16568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16569 (exit $ac_status); }; }; then
16570 ac_cv_type_size_t=yes
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16575 ac_cv_type_size_t=no
16578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16581 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16582 if test $ac_cv_type_size_t = yes; then
16586 cat >>confdefs.h <<_ACEOF
16587 #define size_t unsigned int
16593 cat >>confdefs.h <<_ACEOF
16594 #define RETSIGTYPE void
16597 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16598 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16599 if test "${ac_cv_struct_tm+set}" = set; then
16600 echo $ECHO_N "(cached) $ECHO_C" >&6
16602 cat >conftest.$ac_ext <<_ACEOF
16605 cat confdefs.h >>conftest.$ac_ext
16606 cat >>conftest.$ac_ext <<_ACEOF
16607 /* end confdefs.h. */
16608 #include <sys/types.h>
16614 struct tm *tp; tp->tm_sec;
16619 rm -f conftest.$ac_objext
16620 if { (ac_try="$ac_compile"
16621 case "(($ac_try" in
16622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16623 *) ac_try_echo=$ac_try;;
16625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16626 (eval "$ac_compile") 2>conftest.er1
16628 grep -v '^ *+' conftest.er1 >conftest.err
16630 cat conftest.err >&5
16631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16632 (exit $ac_status); } &&
16633 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16634 { (case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16639 (eval "$ac_try") 2>&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); }; } &&
16643 { ac_try='test -s conftest.$ac_objext'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_try") 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; }; then
16653 ac_cv_struct_tm=time.h
16655 echo "$as_me: failed program was:" >&5
16656 sed 's/^/| /' conftest.$ac_ext >&5
16658 ac_cv_struct_tm=sys/time.h
16661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16663 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16664 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16665 if test $ac_cv_struct_tm = sys/time.h; then
16667 cat >>confdefs.h <<\_ACEOF
16668 #define TM_IN_SYS_TIME 1
16673 { echo "$as_me:$LINENO: checking for int64_t" >&5
16674 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16675 if test "${ac_cv_type_int64_t+set}" = set; then
16676 echo $ECHO_N "(cached) $ECHO_C" >&6
16678 cat >conftest.$ac_ext <<_ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 $ac_includes_default
16685 typedef int64_t ac__type_new_;
16689 if ((ac__type_new_ *) 0)
16691 if (sizeof (ac__type_new_))
16697 rm -f conftest.$ac_objext
16698 if { (ac_try="$ac_compile"
16699 case "(($ac_try" in
16700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16701 *) ac_try_echo=$ac_try;;
16703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16704 (eval "$ac_compile") 2>conftest.er1
16706 grep -v '^ *+' conftest.er1 >conftest.err
16708 cat conftest.err >&5
16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16710 (exit $ac_status); } &&
16711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16712 { (case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_try") 2>&5
16719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16720 (exit $ac_status); }; } &&
16721 { ac_try='test -s conftest.$ac_objext'
16722 { (case "(($ac_try" in
16723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16724 *) ac_try_echo=$ac_try;;
16726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16727 (eval "$ac_try") 2>&5
16729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16730 (exit $ac_status); }; }; then
16731 ac_cv_type_int64_t=yes
16733 echo "$as_me: failed program was:" >&5
16734 sed 's/^/| /' conftest.$ac_ext >&5
16736 ac_cv_type_int64_t=no
16739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16741 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16742 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16743 if test $ac_cv_type_int64_t = yes; then
16745 cat >>confdefs.h <<_ACEOF
16746 #define HAVE_INT64_T 1
16751 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16752 echo "$as_me: error: Type int64_t required but not found" >&2;}
16753 { (exit 1); exit 1; }; }
16756 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16757 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16758 if test "${ac_cv_type_uint64_t+set}" = set; then
16759 echo $ECHO_N "(cached) $ECHO_C" >&6
16761 cat >conftest.$ac_ext <<_ACEOF
16764 cat confdefs.h >>conftest.$ac_ext
16765 cat >>conftest.$ac_ext <<_ACEOF
16766 /* end confdefs.h. */
16767 $ac_includes_default
16768 typedef uint64_t ac__type_new_;
16772 if ((ac__type_new_ *) 0)
16774 if (sizeof (ac__type_new_))
16780 rm -f conftest.$ac_objext
16781 if { (ac_try="$ac_compile"
16782 case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_compile") 2>conftest.er1
16789 grep -v '^ *+' conftest.er1 >conftest.err
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } &&
16794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16795 { (case "(($ac_try" in
16796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16797 *) ac_try_echo=$ac_try;;
16799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16800 (eval "$ac_try") 2>&5
16802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16803 (exit $ac_status); }; } &&
16804 { ac_try='test -s conftest.$ac_objext'
16805 { (case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_try") 2>&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); }; }; then
16814 ac_cv_type_uint64_t=yes
16816 echo "$as_me: failed program was:" >&5
16817 sed 's/^/| /' conftest.$ac_ext >&5
16819 ac_cv_type_uint64_t=no
16822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16824 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16825 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16826 if test $ac_cv_type_uint64_t = yes; then
16828 cat >>confdefs.h <<_ACEOF
16829 #define HAVE_UINT64_T 1
16834 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16835 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16836 if test "${ac_cv_type_u_int64_t+set}" = set; then
16837 echo $ECHO_N "(cached) $ECHO_C" >&6
16839 cat >conftest.$ac_ext <<_ACEOF
16842 cat confdefs.h >>conftest.$ac_ext
16843 cat >>conftest.$ac_ext <<_ACEOF
16844 /* end confdefs.h. */
16845 $ac_includes_default
16846 typedef u_int64_t ac__type_new_;
16850 if ((ac__type_new_ *) 0)
16852 if (sizeof (ac__type_new_))
16858 rm -f conftest.$ac_objext
16859 if { (ac_try="$ac_compile"
16860 case "(($ac_try" in
16861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16862 *) ac_try_echo=$ac_try;;
16864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16865 (eval "$ac_compile") 2>conftest.er1
16867 grep -v '^ *+' conftest.er1 >conftest.err
16869 cat conftest.err >&5
16870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } &&
16872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16873 { (case "(($ac_try" in
16874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16875 *) ac_try_echo=$ac_try;;
16877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16878 (eval "$ac_try") 2>&5
16880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16881 (exit $ac_status); }; } &&
16882 { ac_try='test -s conftest.$ac_objext'
16883 { (case "(($ac_try" in
16884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16885 *) ac_try_echo=$ac_try;;
16887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16888 (eval "$ac_try") 2>&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); }; }; then
16892 ac_cv_type_u_int64_t=yes
16894 echo "$as_me: failed program was:" >&5
16895 sed 's/^/| /' conftest.$ac_ext >&5
16897 ac_cv_type_u_int64_t=no
16900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16902 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16903 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16904 if test $ac_cv_type_u_int64_t = yes; then
16906 cat >>confdefs.h <<_ACEOF
16907 #define HAVE_U_INT64_T 1
16912 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16913 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16914 { (exit 1); exit 1; }; }
16928 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16930 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16931 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16932 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16933 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 cat >conftest.$ac_ext <<_ACEOF
16939 cat confdefs.h >>conftest.$ac_ext
16940 cat >>conftest.$ac_ext <<_ACEOF
16941 /* end confdefs.h. */
16942 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16943 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16944 #define $ac_func innocuous_$ac_func
16946 /* System header to define __stub macros and hopefully few prototypes,
16947 which can conflict with char $ac_func (); below.
16948 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16949 <limits.h> exists even on freestanding compilers. */
16952 # include <limits.h>
16954 # include <assert.h>
16959 /* Override any GCC internal prototype to avoid an error.
16960 Use char because int might match the return type of a GCC
16961 builtin and then its argument prototype would still apply. */
16966 /* The GNU C library defines this for functions which it implements
16967 to always fail with ENOSYS. Some functions are actually named
16968 something starting with __ and the normal name is an alias. */
16969 #if defined __stub_$ac_func || defined __stub___$ac_func
16976 return $ac_func ();
16981 rm -f conftest.$ac_objext conftest$ac_exeext
16982 if { (ac_try="$ac_link"
16983 case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16988 (eval "$ac_link") 2>conftest.er1
16990 grep -v '^ *+' conftest.er1 >conftest.err
16992 cat conftest.err >&5
16993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); } &&
16995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16996 { (case "(($ac_try" in
16997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16998 *) ac_try_echo=$ac_try;;
17000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17001 (eval "$ac_try") 2>&5
17003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17004 (exit $ac_status); }; } &&
17005 { ac_try='test -s conftest$ac_exeext'
17006 { (case "(($ac_try" in
17007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17008 *) ac_try_echo=$ac_try;;
17010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17011 (eval "$ac_try") 2>&5
17013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17014 (exit $ac_status); }; }; then
17015 eval "$as_ac_var=yes"
17017 echo "$as_me: failed program was:" >&5
17018 sed 's/^/| /' conftest.$ac_ext >&5
17020 eval "$as_ac_var=no"
17023 rm -f core conftest.err conftest.$ac_objext \
17024 conftest$ac_exeext conftest.$ac_ext
17026 ac_res=`eval echo '${'$as_ac_var'}'`
17027 { echo "$as_me:$LINENO: result: $ac_res" >&5
17028 echo "${ECHO_T}$ac_res" >&6; }
17029 if test `eval echo '${'$as_ac_var'}'` = yes; then
17030 cat >>confdefs.h <<_ACEOF
17031 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17041 for ac_func in powf fmodf strtof round
17043 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17047 echo $ECHO_N "(cached) $ECHO_C" >&6
17049 cat >conftest.$ac_ext <<_ACEOF
17052 cat confdefs.h >>conftest.$ac_ext
17053 cat >>conftest.$ac_ext <<_ACEOF
17054 /* end confdefs.h. */
17055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17057 #define $ac_func innocuous_$ac_func
17059 /* System header to define __stub macros and hopefully few prototypes,
17060 which can conflict with char $ac_func (); below.
17061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17062 <limits.h> exists even on freestanding compilers. */
17065 # include <limits.h>
17067 # include <assert.h>
17072 /* Override any GCC internal prototype to avoid an error.
17073 Use char because int might match the return type of a GCC
17074 builtin and then its argument prototype would still apply. */
17079 /* The GNU C library defines this for functions which it implements
17080 to always fail with ENOSYS. Some functions are actually named
17081 something starting with __ and the normal name is an alias. */
17082 #if defined __stub_$ac_func || defined __stub___$ac_func
17089 return $ac_func ();
17094 rm -f conftest.$ac_objext conftest$ac_exeext
17095 if { (ac_try="$ac_link"
17096 case "(($ac_try" in
17097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17098 *) ac_try_echo=$ac_try;;
17100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17101 (eval "$ac_link") 2>conftest.er1
17103 grep -v '^ *+' conftest.er1 >conftest.err
17105 cat conftest.err >&5
17106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17107 (exit $ac_status); } &&
17108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17109 { (case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17114 (eval "$ac_try") 2>&5
17116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17117 (exit $ac_status); }; } &&
17118 { ac_try='test -s conftest$ac_exeext'
17119 { (case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_try") 2>&5
17126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17127 (exit $ac_status); }; }; then
17128 eval "$as_ac_var=yes"
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 eval "$as_ac_var=no"
17136 rm -f core conftest.err conftest.$ac_objext \
17137 conftest$ac_exeext conftest.$ac_ext
17139 ac_res=`eval echo '${'$as_ac_var'}'`
17140 { echo "$as_me:$LINENO: result: $ac_res" >&5
17141 echo "${ECHO_T}$ac_res" >&6; }
17142 if test `eval echo '${'$as_ac_var'}'` = yes; then
17143 cat >>confdefs.h <<_ACEOF
17144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17155 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17157 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17158 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17159 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17160 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17163 cat >conftest.$ac_ext <<_ACEOF
17166 cat confdefs.h >>conftest.$ac_ext
17167 cat >>conftest.$ac_ext <<_ACEOF
17168 /* end confdefs.h. */
17169 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17170 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17171 #define $ac_func innocuous_$ac_func
17173 /* System header to define __stub macros and hopefully few prototypes,
17174 which can conflict with char $ac_func (); below.
17175 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17176 <limits.h> exists even on freestanding compilers. */
17179 # include <limits.h>
17181 # include <assert.h>
17186 /* Override any GCC internal prototype to avoid an error.
17187 Use char because int might match the return type of a GCC
17188 builtin and then its argument prototype would still apply. */
17193 /* The GNU C library defines this for functions which it implements
17194 to always fail with ENOSYS. Some functions are actually named
17195 something starting with __ and the normal name is an alias. */
17196 #if defined __stub_$ac_func || defined __stub___$ac_func
17203 return $ac_func ();
17208 rm -f conftest.$ac_objext conftest$ac_exeext
17209 if { (ac_try="$ac_link"
17210 case "(($ac_try" in
17211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17212 *) ac_try_echo=$ac_try;;
17214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17215 (eval "$ac_link") 2>conftest.er1
17217 grep -v '^ *+' conftest.er1 >conftest.err
17219 cat conftest.err >&5
17220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17221 (exit $ac_status); } &&
17222 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17223 { (case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_try") 2>&5
17230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17231 (exit $ac_status); }; } &&
17232 { ac_try='test -s conftest$ac_exeext'
17233 { (case "(($ac_try" in
17234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17235 *) ac_try_echo=$ac_try;;
17237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17238 (eval "$ac_try") 2>&5
17240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17241 (exit $ac_status); }; }; then
17242 eval "$as_ac_var=yes"
17244 echo "$as_me: failed program was:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 eval "$as_ac_var=no"
17250 rm -f core conftest.err conftest.$ac_objext \
17251 conftest$ac_exeext conftest.$ac_ext
17253 ac_res=`eval echo '${'$as_ac_var'}'`
17254 { echo "$as_me:$LINENO: result: $ac_res" >&5
17255 echo "${ECHO_T}$ac_res" >&6; }
17256 if test `eval echo '${'$as_ac_var'}'` = yes; then
17257 cat >>confdefs.h <<_ACEOF
17258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17267 for ac_func in isatty mkdtemp mkstemp
17269 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17270 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17271 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17272 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17273 echo $ECHO_N "(cached) $ECHO_C" >&6
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17283 #define $ac_func innocuous_$ac_func
17285 /* System header to define __stub macros and hopefully few prototypes,
17286 which can conflict with char $ac_func (); below.
17287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288 <limits.h> exists even on freestanding compilers. */
17291 # include <limits.h>
17293 # include <assert.h>
17298 /* Override any GCC internal prototype to avoid an error.
17299 Use char because int might match the return type of a GCC
17300 builtin and then its argument prototype would still apply. */
17305 /* The GNU C library defines this for functions which it implements
17306 to always fail with ENOSYS. Some functions are actually named
17307 something starting with __ and the normal name is an alias. */
17308 #if defined __stub_$ac_func || defined __stub___$ac_func
17315 return $ac_func ();
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17329 grep -v '^ *+' conftest.er1 >conftest.err
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } &&
17334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17335 { (case "(($ac_try" in
17336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17337 *) ac_try_echo=$ac_try;;
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_try") 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; } &&
17344 { ac_try='test -s conftest$ac_exeext'
17345 { (case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_try") 2>&5
17352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17353 (exit $ac_status); }; }; then
17354 eval "$as_ac_var=yes"
17356 echo "$as_me: failed program was:" >&5
17357 sed 's/^/| /' conftest.$ac_ext >&5
17359 eval "$as_ac_var=no"
17362 rm -f core conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
17365 ac_res=`eval echo '${'$as_ac_var'}'`
17366 { echo "$as_me:$LINENO: result: $ac_res" >&5
17367 echo "${ECHO_T}$ac_res" >&6; }
17368 if test `eval echo '${'$as_ac_var'}'` = yes; then
17369 cat >>confdefs.h <<_ACEOF
17370 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17383 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17385 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17386 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17387 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17388 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17389 echo $ECHO_N "(cached) $ECHO_C" >&6
17391 cat >conftest.$ac_ext <<_ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17399 #define $ac_func innocuous_$ac_func
17401 /* System header to define __stub macros and hopefully few prototypes,
17402 which can conflict with char $ac_func (); below.
17403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17404 <limits.h> exists even on freestanding compilers. */
17407 # include <limits.h>
17409 # include <assert.h>
17414 /* Override any GCC internal prototype to avoid an error.
17415 Use char because int might match the return type of a GCC
17416 builtin and then its argument prototype would still apply. */
17421 /* The GNU C library defines this for functions which it implements
17422 to always fail with ENOSYS. Some functions are actually named
17423 something starting with __ and the normal name is an alias. */
17424 #if defined __stub_$ac_func || defined __stub___$ac_func
17431 return $ac_func ();
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_link") 2>conftest.er1
17445 grep -v '^ *+' conftest.er1 >conftest.err
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17449 (exit $ac_status); } &&
17450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17451 { (case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_try") 2>&5
17458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17459 (exit $ac_status); }; } &&
17460 { ac_try='test -s conftest$ac_exeext'
17461 { (case "(($ac_try" in
17462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17463 *) ac_try_echo=$ac_try;;
17465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17466 (eval "$ac_try") 2>&5
17468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17469 (exit $ac_status); }; }; then
17470 eval "$as_ac_var=yes"
17472 echo "$as_me: failed program was:" >&5
17473 sed 's/^/| /' conftest.$ac_ext >&5
17475 eval "$as_ac_var=no"
17478 rm -f core conftest.err conftest.$ac_objext \
17479 conftest$ac_exeext conftest.$ac_ext
17481 ac_res=`eval echo '${'$as_ac_var'}'`
17482 { echo "$as_me:$LINENO: result: $ac_res" >&5
17483 echo "${ECHO_T}$ac_res" >&6; }
17484 if test `eval echo '${'$as_ac_var'}'` = yes; then
17485 cat >>confdefs.h <<_ACEOF
17486 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17496 for ac_func in strerror strerror_r setenv arc4random
17498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17501 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17502 echo $ECHO_N "(cached) $ECHO_C" >&6
17504 cat >conftest.$ac_ext <<_ACEOF
17507 cat confdefs.h >>conftest.$ac_ext
17508 cat >>conftest.$ac_ext <<_ACEOF
17509 /* end confdefs.h. */
17510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17512 #define $ac_func innocuous_$ac_func
17514 /* System header to define __stub macros and hopefully few prototypes,
17515 which can conflict with char $ac_func (); below.
17516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17517 <limits.h> exists even on freestanding compilers. */
17520 # include <limits.h>
17522 # include <assert.h>
17527 /* Override any GCC internal prototype to avoid an error.
17528 Use char because int might match the return type of a GCC
17529 builtin and then its argument prototype would still apply. */
17534 /* The GNU C library defines this for functions which it implements
17535 to always fail with ENOSYS. Some functions are actually named
17536 something starting with __ and the normal name is an alias. */
17537 #if defined __stub_$ac_func || defined __stub___$ac_func
17544 return $ac_func ();
17549 rm -f conftest.$ac_objext conftest$ac_exeext
17550 if { (ac_try="$ac_link"
17551 case "(($ac_try" in
17552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17553 *) ac_try_echo=$ac_try;;
17555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17556 (eval "$ac_link") 2>conftest.er1
17558 grep -v '^ *+' conftest.er1 >conftest.err
17560 cat conftest.err >&5
17561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17562 (exit $ac_status); } &&
17563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17564 { (case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_try") 2>&5
17571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17572 (exit $ac_status); }; } &&
17573 { ac_try='test -s conftest$ac_exeext'
17574 { (case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_try") 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); }; }; then
17583 eval "$as_ac_var=yes"
17585 echo "$as_me: failed program was:" >&5
17586 sed 's/^/| /' conftest.$ac_ext >&5
17588 eval "$as_ac_var=no"
17591 rm -f core conftest.err conftest.$ac_objext \
17592 conftest$ac_exeext conftest.$ac_ext
17594 ac_res=`eval echo '${'$as_ac_var'}'`
17595 { echo "$as_me:$LINENO: result: $ac_res" >&5
17596 echo "${ECHO_T}$ac_res" >&6; }
17597 if test `eval echo '${'$as_ac_var'}'` = yes; then
17598 cat >>confdefs.h <<_ACEOF
17599 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17609 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17611 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17612 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17613 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17614 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17615 echo $ECHO_N "(cached) $ECHO_C" >&6
17617 cat >conftest.$ac_ext <<_ACEOF
17620 cat confdefs.h >>conftest.$ac_ext
17621 cat >>conftest.$ac_ext <<_ACEOF
17622 /* end confdefs.h. */
17623 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17624 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17625 #define $ac_func innocuous_$ac_func
17627 /* System header to define __stub macros and hopefully few prototypes,
17628 which can conflict with char $ac_func (); below.
17629 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17630 <limits.h> exists even on freestanding compilers. */
17633 # include <limits.h>
17635 # include <assert.h>
17640 /* Override any GCC internal prototype to avoid an error.
17641 Use char because int might match the return type of a GCC
17642 builtin and then its argument prototype would still apply. */
17647 /* The GNU C library defines this for functions which it implements
17648 to always fail with ENOSYS. Some functions are actually named
17649 something starting with __ and the normal name is an alias. */
17650 #if defined __stub_$ac_func || defined __stub___$ac_func
17657 return $ac_func ();
17662 rm -f conftest.$ac_objext conftest$ac_exeext
17663 if { (ac_try="$ac_link"
17664 case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669 (eval "$ac_link") 2>conftest.er1
17671 grep -v '^ *+' conftest.er1 >conftest.err
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } &&
17676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17677 { (case "(($ac_try" in
17678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17679 *) ac_try_echo=$ac_try;;
17681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17682 (eval "$ac_try") 2>&5
17684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17685 (exit $ac_status); }; } &&
17686 { ac_try='test -s conftest$ac_exeext'
17687 { (case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17692 (eval "$ac_try") 2>&5
17694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17695 (exit $ac_status); }; }; then
17696 eval "$as_ac_var=yes"
17698 echo "$as_me: failed program was:" >&5
17699 sed 's/^/| /' conftest.$ac_ext >&5
17701 eval "$as_ac_var=no"
17704 rm -f core conftest.err conftest.$ac_objext \
17705 conftest$ac_exeext conftest.$ac_ext
17707 ac_res=`eval echo '${'$as_ac_var'}'`
17708 { echo "$as_me:$LINENO: result: $ac_res" >&5
17709 echo "${ECHO_T}$ac_res" >&6; }
17710 if test `eval echo '${'$as_ac_var'}'` = yes; then
17711 cat >>confdefs.h <<_ACEOF
17712 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17723 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17725 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17726 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17727 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17728 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17731 cat >conftest.$ac_ext <<_ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17739 #define $ac_func innocuous_$ac_func
17741 /* System header to define __stub macros and hopefully few prototypes,
17742 which can conflict with char $ac_func (); below.
17743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17744 <limits.h> exists even on freestanding compilers. */
17747 # include <limits.h>
17749 # include <assert.h>
17754 /* Override any GCC internal prototype to avoid an error.
17755 Use char because int might match the return type of a GCC
17756 builtin and then its argument prototype would still apply. */
17761 /* The GNU C library defines this for functions which it implements
17762 to always fail with ENOSYS. Some functions are actually named
17763 something starting with __ and the normal name is an alias. */
17764 #if defined __stub_$ac_func || defined __stub___$ac_func
17771 return $ac_func ();
17776 rm -f conftest.$ac_objext conftest$ac_exeext
17777 if { (ac_try="$ac_link"
17778 case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_link") 2>conftest.er1
17785 grep -v '^ *+' conftest.er1 >conftest.err
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17789 (exit $ac_status); } &&
17790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17791 { (case "(($ac_try" in
17792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17793 *) ac_try_echo=$ac_try;;
17795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17796 (eval "$ac_try") 2>&5
17798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17799 (exit $ac_status); }; } &&
17800 { ac_try='test -s conftest$ac_exeext'
17801 { (case "(($ac_try" in
17802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17803 *) ac_try_echo=$ac_try;;
17805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17806 (eval "$ac_try") 2>&5
17808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17809 (exit $ac_status); }; }; then
17810 eval "$as_ac_var=yes"
17812 echo "$as_me: failed program was:" >&5
17813 sed 's/^/| /' conftest.$ac_ext >&5
17815 eval "$as_ac_var=no"
17818 rm -f core conftest.err conftest.$ac_objext \
17819 conftest$ac_exeext conftest.$ac_ext
17821 ac_res=`eval echo '${'$as_ac_var'}'`
17822 { echo "$as_me:$LINENO: result: $ac_res" >&5
17823 echo "${ECHO_T}$ac_res" >&6; }
17824 if test `eval echo '${'$as_ac_var'}'` = yes; then
17825 cat >>confdefs.h <<_ACEOF
17826 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17832 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17833 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17834 if test "${llvm_cv_c_printf_a+set}" = set; then
17835 echo $ECHO_N "(cached) $ECHO_C" >&6
17838 ac_cpp='$CPP $CPPFLAGS'
17839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17843 if test "$cross_compiling" = yes; then
17844 llvmac_cv_c_printf_a=no
17846 cat >conftest.$ac_ext <<_ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17855 #include <stdlib.h>
17861 volatile double A, B;
17865 sprintf(Buffer, "%a", A);
17869 if (A != 0x1.999999999999ap-4)
17876 rm -f conftest$ac_exeext
17877 if { (ac_try="$ac_link"
17878 case "(($ac_try" in
17879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17880 *) ac_try_echo=$ac_try;;
17882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17883 (eval "$ac_link") 2>&5
17885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17886 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17887 { (case "(($ac_try" in
17888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889 *) ac_try_echo=$ac_try;;
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892 (eval "$ac_try") 2>&5
17894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895 (exit $ac_status); }; }; then
17896 llvm_cv_c_printf_a=yes
17898 echo "$as_me: program exited with status $ac_status" >&5
17899 echo "$as_me: failed program was:" >&5
17900 sed 's/^/| /' conftest.$ac_ext >&5
17902 ( exit $ac_status )
17903 llvmac_cv_c_printf_a=no
17905 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17910 ac_cpp='$CPP $CPPFLAGS'
17911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17916 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17917 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17918 if test "$llvm_cv_c_printf_a" = "yes"; then
17920 cat >>confdefs.h <<\_ACEOF
17921 #define HAVE_PRINTF_A 1
17927 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17928 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17929 if test "${ac_cv_func_rand48+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17933 ac_cpp='$CXXCPP $CPPFLAGS'
17934 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17935 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17936 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17938 cat >conftest.$ac_ext <<_ACEOF
17941 cat confdefs.h >>conftest.$ac_ext
17942 cat >>conftest.$ac_ext <<_ACEOF
17943 /* end confdefs.h. */
17944 #include <stdlib.h>
17948 srand48(0);lrand48();drand48();
17953 rm -f conftest.$ac_objext
17954 if { (ac_try="$ac_compile"
17955 case "(($ac_try" in
17956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17957 *) ac_try_echo=$ac_try;;
17959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17960 (eval "$ac_compile") 2>conftest.er1
17962 grep -v '^ *+' conftest.er1 >conftest.err
17964 cat conftest.err >&5
17965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17966 (exit $ac_status); } &&
17967 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17968 { (case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17973 (eval "$ac_try") 2>&5
17975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); }; } &&
17977 { ac_try='test -s conftest.$ac_objext'
17978 { (case "(($ac_try" in
17979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17980 *) ac_try_echo=$ac_try;;
17982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17983 (eval "$ac_try") 2>&5
17985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17986 (exit $ac_status); }; }; then
17987 ac_cv_func_rand48=yes
17989 echo "$as_me: failed program was:" >&5
17990 sed 's/^/| /' conftest.$ac_ext >&5
17992 ac_cv_func_rand48=no
17995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17997 ac_cpp='$CPP $CPPFLAGS'
17998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18000 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18003 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18004 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18006 if test "$ac_cv_func_rand48" = "yes" ; then
18008 cat >>confdefs.h <<\_ACEOF
18009 #define HAVE_RAND48 1
18015 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18016 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18017 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18018 echo $ECHO_N "(cached) $ECHO_C" >&6
18020 cat >conftest.$ac_ext <<_ACEOF
18023 cat confdefs.h >>conftest.$ac_ext
18024 cat >>conftest.$ac_ext <<_ACEOF
18025 /* end confdefs.h. */
18026 $ac_includes_default
18031 char *p = (char *) strerror_s;
18039 rm -f conftest.$ac_objext
18040 if { (ac_try="$ac_compile"
18041 case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_compile") 2>conftest.er1
18048 grep -v '^ *+' conftest.er1 >conftest.err
18050 cat conftest.err >&5
18051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18052 (exit $ac_status); } &&
18053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18054 { (case "(($ac_try" in
18055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18056 *) ac_try_echo=$ac_try;;
18058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18059 (eval "$ac_try") 2>&5
18061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18062 (exit $ac_status); }; } &&
18063 { ac_try='test -s conftest.$ac_objext'
18064 { (case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_try") 2>&5
18071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18072 (exit $ac_status); }; }; then
18073 ac_cv_have_decl_strerror_s=yes
18075 echo "$as_me: failed program was:" >&5
18076 sed 's/^/| /' conftest.$ac_ext >&5
18078 ac_cv_have_decl_strerror_s=no
18081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18084 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18085 if test $ac_cv_have_decl_strerror_s = yes; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define HAVE_DECL_STRERROR_S 1
18093 cat >>confdefs.h <<_ACEOF
18094 #define HAVE_DECL_STRERROR_S 0
18102 if test "$llvm_cv_os_type" = "MingW" ; then
18103 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18104 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18105 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18106 echo $ECHO_N "(cached) $ECHO_C" >&6
18108 ac_check_lib_save_LIBS=$LIBS
18110 cat >conftest.$ac_ext <<_ACEOF
18113 cat confdefs.h >>conftest.$ac_ext
18114 cat >>conftest.$ac_ext <<_ACEOF
18115 /* end confdefs.h. */
18117 /* Override any GCC internal prototype to avoid an error.
18118 Use char because int might match the return type of a GCC
18119 builtin and then its argument prototype would still apply. */
18132 rm -f conftest.$ac_objext conftest$ac_exeext
18133 if { (ac_try="$ac_link"
18134 case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18139 (eval "$ac_link") 2>conftest.er1
18141 grep -v '^ *+' conftest.er1 >conftest.err
18143 cat conftest.err >&5
18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18145 (exit $ac_status); } &&
18146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18147 { (case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_try") 2>&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); }; } &&
18156 { ac_try='test -s conftest$ac_exeext'
18157 { (case "(($ac_try" in
18158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18159 *) ac_try_echo=$ac_try;;
18161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18162 (eval "$ac_try") 2>&5
18164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18165 (exit $ac_status); }; }; then
18166 ac_cv_lib_gcc__alloca=yes
18168 echo "$as_me: failed program was:" >&5
18169 sed 's/^/| /' conftest.$ac_ext >&5
18171 ac_cv_lib_gcc__alloca=no
18174 rm -f core conftest.err conftest.$ac_objext \
18175 conftest$ac_exeext conftest.$ac_ext
18176 LIBS=$ac_check_lib_save_LIBS
18178 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18179 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18180 if test $ac_cv_lib_gcc__alloca = yes; then
18182 cat >>confdefs.h <<\_ACEOF
18183 #define HAVE__ALLOCA 1
18188 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18189 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18190 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18191 echo $ECHO_N "(cached) $ECHO_C" >&6
18193 ac_check_lib_save_LIBS=$LIBS
18195 cat >conftest.$ac_ext <<_ACEOF
18198 cat confdefs.h >>conftest.$ac_ext
18199 cat >>conftest.$ac_ext <<_ACEOF
18200 /* end confdefs.h. */
18202 /* Override any GCC internal prototype to avoid an error.
18203 Use char because int might match the return type of a GCC
18204 builtin and then its argument prototype would still apply. */
18212 return __alloca ();
18217 rm -f conftest.$ac_objext conftest$ac_exeext
18218 if { (ac_try="$ac_link"
18219 case "(($ac_try" in
18220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18221 *) ac_try_echo=$ac_try;;
18223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18224 (eval "$ac_link") 2>conftest.er1
18226 grep -v '^ *+' conftest.er1 >conftest.err
18228 cat conftest.err >&5
18229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18230 (exit $ac_status); } &&
18231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18232 { (case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_try") 2>&5
18239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18240 (exit $ac_status); }; } &&
18241 { ac_try='test -s conftest$ac_exeext'
18242 { (case "(($ac_try" in
18243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18244 *) ac_try_echo=$ac_try;;
18246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18247 (eval "$ac_try") 2>&5
18249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18250 (exit $ac_status); }; }; then
18251 ac_cv_lib_gcc___alloca=yes
18253 echo "$as_me: failed program was:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_cv_lib_gcc___alloca=no
18259 rm -f core conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18261 LIBS=$ac_check_lib_save_LIBS
18263 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18264 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18265 if test $ac_cv_lib_gcc___alloca = yes; then
18267 cat >>confdefs.h <<\_ACEOF
18268 #define HAVE___ALLOCA 1
18273 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18274 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18275 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18276 echo $ECHO_N "(cached) $ECHO_C" >&6
18278 ac_check_lib_save_LIBS=$LIBS
18280 cat >conftest.$ac_ext <<_ACEOF
18283 cat confdefs.h >>conftest.$ac_ext
18284 cat >>conftest.$ac_ext <<_ACEOF
18285 /* end confdefs.h. */
18287 /* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18297 return __chkstk ();
18302 rm -f conftest.$ac_objext conftest$ac_exeext
18303 if { (ac_try="$ac_link"
18304 case "(($ac_try" in
18305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18306 *) ac_try_echo=$ac_try;;
18308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18309 (eval "$ac_link") 2>conftest.er1
18311 grep -v '^ *+' conftest.er1 >conftest.err
18313 cat conftest.err >&5
18314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18315 (exit $ac_status); } &&
18316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18317 { (case "(($ac_try" in
18318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319 *) ac_try_echo=$ac_try;;
18321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322 (eval "$ac_try") 2>&5
18324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18325 (exit $ac_status); }; } &&
18326 { ac_try='test -s conftest$ac_exeext'
18327 { (case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_try") 2>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); }; }; then
18336 ac_cv_lib_gcc___chkstk=yes
18338 echo "$as_me: failed program was:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 ac_cv_lib_gcc___chkstk=no
18344 rm -f core conftest.err conftest.$ac_objext \
18345 conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18348 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18349 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18350 if test $ac_cv_lib_gcc___chkstk = yes; then
18352 cat >>confdefs.h <<\_ACEOF
18353 #define HAVE___CHKSTK 1
18358 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18359 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18360 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18361 echo $ECHO_N "(cached) $ECHO_C" >&6
18363 ac_check_lib_save_LIBS=$LIBS
18365 cat >conftest.$ac_ext <<_ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18372 /* Override any GCC internal prototype to avoid an error.
18373 Use char because int might match the return type of a GCC
18374 builtin and then its argument prototype would still apply. */
18382 return ___chkstk ();
18387 rm -f conftest.$ac_objext conftest$ac_exeext
18388 if { (ac_try="$ac_link"
18389 case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18394 (eval "$ac_link") 2>conftest.er1
18396 grep -v '^ *+' conftest.er1 >conftest.err
18398 cat conftest.err >&5
18399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18400 (exit $ac_status); } &&
18401 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18402 { (case "(($ac_try" in
18403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18404 *) ac_try_echo=$ac_try;;
18406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18407 (eval "$ac_try") 2>&5
18409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18410 (exit $ac_status); }; } &&
18411 { ac_try='test -s conftest$ac_exeext'
18412 { (case "(($ac_try" in
18413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18414 *) ac_try_echo=$ac_try;;
18416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18417 (eval "$ac_try") 2>&5
18419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); }; }; then
18421 ac_cv_lib_gcc____chkstk=yes
18423 echo "$as_me: failed program was:" >&5
18424 sed 's/^/| /' conftest.$ac_ext >&5
18426 ac_cv_lib_gcc____chkstk=no
18429 rm -f core conftest.err conftest.$ac_objext \
18430 conftest$ac_exeext conftest.$ac_ext
18431 LIBS=$ac_check_lib_save_LIBS
18433 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18434 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18435 if test $ac_cv_lib_gcc____chkstk = yes; then
18437 cat >>confdefs.h <<\_ACEOF
18438 #define HAVE____CHKSTK 1
18444 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18445 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18446 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18447 echo $ECHO_N "(cached) $ECHO_C" >&6
18449 ac_check_lib_save_LIBS=$LIBS
18451 cat >conftest.$ac_ext <<_ACEOF
18454 cat confdefs.h >>conftest.$ac_ext
18455 cat >>conftest.$ac_ext <<_ACEOF
18456 /* end confdefs.h. */
18458 /* Override any GCC internal prototype to avoid an error.
18459 Use char because int might match the return type of a GCC
18460 builtin and then its argument prototype would still apply. */
18468 return __ashldi3 ();
18473 rm -f conftest.$ac_objext conftest$ac_exeext
18474 if { (ac_try="$ac_link"
18475 case "(($ac_try" in
18476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18477 *) ac_try_echo=$ac_try;;
18479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18480 (eval "$ac_link") 2>conftest.er1
18482 grep -v '^ *+' conftest.er1 >conftest.err
18484 cat conftest.err >&5
18485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18486 (exit $ac_status); } &&
18487 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18488 { (case "(($ac_try" in
18489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18490 *) ac_try_echo=$ac_try;;
18492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18493 (eval "$ac_try") 2>&5
18495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18496 (exit $ac_status); }; } &&
18497 { ac_try='test -s conftest$ac_exeext'
18498 { (case "(($ac_try" in
18499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18500 *) ac_try_echo=$ac_try;;
18502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18503 (eval "$ac_try") 2>&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); }; }; then
18507 ac_cv_lib_gcc___ashldi3=yes
18509 echo "$as_me: failed program was:" >&5
18510 sed 's/^/| /' conftest.$ac_ext >&5
18512 ac_cv_lib_gcc___ashldi3=no
18515 rm -f core conftest.err conftest.$ac_objext \
18516 conftest$ac_exeext conftest.$ac_ext
18517 LIBS=$ac_check_lib_save_LIBS
18519 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18520 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18521 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18523 cat >>confdefs.h <<\_ACEOF
18524 #define HAVE___ASHLDI3 1
18529 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18530 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18531 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18532 echo $ECHO_N "(cached) $ECHO_C" >&6
18534 ac_check_lib_save_LIBS=$LIBS
18536 cat >conftest.$ac_ext <<_ACEOF
18539 cat confdefs.h >>conftest.$ac_ext
18540 cat >>conftest.$ac_ext <<_ACEOF
18541 /* end confdefs.h. */
18543 /* Override any GCC internal prototype to avoid an error.
18544 Use char because int might match the return type of a GCC
18545 builtin and then its argument prototype would still apply. */
18553 return __ashrdi3 ();
18558 rm -f conftest.$ac_objext conftest$ac_exeext
18559 if { (ac_try="$ac_link"
18560 case "(($ac_try" in
18561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18562 *) ac_try_echo=$ac_try;;
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_link") 2>conftest.er1
18567 grep -v '^ *+' conftest.er1 >conftest.err
18569 cat conftest.err >&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } &&
18572 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18573 { (case "(($ac_try" in
18574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_try") 2>&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try='test -s conftest$ac_exeext'
18583 { (case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_try") 2>&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; }; then
18592 ac_cv_lib_gcc___ashrdi3=yes
18594 echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.$ac_ext >&5
18597 ac_cv_lib_gcc___ashrdi3=no
18600 rm -f core conftest.err conftest.$ac_objext \
18601 conftest$ac_exeext conftest.$ac_ext
18602 LIBS=$ac_check_lib_save_LIBS
18604 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18605 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18606 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18608 cat >>confdefs.h <<\_ACEOF
18609 #define HAVE___ASHRDI3 1
18614 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18615 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18616 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18617 echo $ECHO_N "(cached) $ECHO_C" >&6
18619 ac_check_lib_save_LIBS=$LIBS
18621 cat >conftest.$ac_ext <<_ACEOF
18624 cat confdefs.h >>conftest.$ac_ext
18625 cat >>conftest.$ac_ext <<_ACEOF
18626 /* end confdefs.h. */
18628 /* Override any GCC internal prototype to avoid an error.
18629 Use char because int might match the return type of a GCC
18630 builtin and then its argument prototype would still apply. */
18638 return __divdi3 ();
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (ac_try="$ac_link"
18645 case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_link") 2>conftest.er1
18652 grep -v '^ *+' conftest.er1 >conftest.err
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } &&
18657 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18658 { (case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_try") 2>&5
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; } &&
18667 { ac_try='test -s conftest$ac_exeext'
18668 { (case "(($ac_try" in
18669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18670 *) ac_try_echo=$ac_try;;
18672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18673 (eval "$ac_try") 2>&5
18675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18676 (exit $ac_status); }; }; then
18677 ac_cv_lib_gcc___divdi3=yes
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18682 ac_cv_lib_gcc___divdi3=no
18685 rm -f core conftest.err conftest.$ac_objext \
18686 conftest$ac_exeext conftest.$ac_ext
18687 LIBS=$ac_check_lib_save_LIBS
18689 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18690 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18691 if test $ac_cv_lib_gcc___divdi3 = yes; then
18693 cat >>confdefs.h <<\_ACEOF
18694 #define HAVE___DIVDI3 1
18699 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18700 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18701 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18704 ac_check_lib_save_LIBS=$LIBS
18706 cat >conftest.$ac_ext <<_ACEOF
18709 cat confdefs.h >>conftest.$ac_ext
18710 cat >>conftest.$ac_ext <<_ACEOF
18711 /* end confdefs.h. */
18713 /* Override any GCC internal prototype to avoid an error.
18714 Use char because int might match the return type of a GCC
18715 builtin and then its argument prototype would still apply. */
18723 return __fixdfdi ();
18728 rm -f conftest.$ac_objext conftest$ac_exeext
18729 if { (ac_try="$ac_link"
18730 case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_link") 2>conftest.er1
18737 grep -v '^ *+' conftest.er1 >conftest.err
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } &&
18742 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18743 { (case "(($ac_try" in
18744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18745 *) ac_try_echo=$ac_try;;
18747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18748 (eval "$ac_try") 2>&5
18750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18751 (exit $ac_status); }; } &&
18752 { ac_try='test -s conftest$ac_exeext'
18753 { (case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_try") 2>&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); }; }; then
18762 ac_cv_lib_gcc___fixdfdi=yes
18764 echo "$as_me: failed program was:" >&5
18765 sed 's/^/| /' conftest.$ac_ext >&5
18767 ac_cv_lib_gcc___fixdfdi=no
18770 rm -f core conftest.err conftest.$ac_objext \
18771 conftest$ac_exeext conftest.$ac_ext
18772 LIBS=$ac_check_lib_save_LIBS
18774 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18775 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18776 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18778 cat >>confdefs.h <<\_ACEOF
18779 #define HAVE___FIXDFDI 1
18784 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18785 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18786 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18787 echo $ECHO_N "(cached) $ECHO_C" >&6
18789 ac_check_lib_save_LIBS=$LIBS
18791 cat >conftest.$ac_ext <<_ACEOF
18794 cat confdefs.h >>conftest.$ac_ext
18795 cat >>conftest.$ac_ext <<_ACEOF
18796 /* end confdefs.h. */
18798 /* Override any GCC internal prototype to avoid an error.
18799 Use char because int might match the return type of a GCC
18800 builtin and then its argument prototype would still apply. */
18808 return __fixsfdi ();
18813 rm -f conftest.$ac_objext conftest$ac_exeext
18814 if { (ac_try="$ac_link"
18815 case "(($ac_try" in
18816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18817 *) ac_try_echo=$ac_try;;
18819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18820 (eval "$ac_link") 2>conftest.er1
18822 grep -v '^ *+' conftest.er1 >conftest.err
18824 cat conftest.err >&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); } &&
18827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18828 { (case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_try") 2>&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; } &&
18837 { ac_try='test -s conftest$ac_exeext'
18838 { (case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_try") 2>&5
18845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18846 (exit $ac_status); }; }; then
18847 ac_cv_lib_gcc___fixsfdi=yes
18849 echo "$as_me: failed program was:" >&5
18850 sed 's/^/| /' conftest.$ac_ext >&5
18852 ac_cv_lib_gcc___fixsfdi=no
18855 rm -f core conftest.err conftest.$ac_objext \
18856 conftest$ac_exeext conftest.$ac_ext
18857 LIBS=$ac_check_lib_save_LIBS
18859 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18860 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18861 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18863 cat >>confdefs.h <<\_ACEOF
18864 #define HAVE___FIXSFDI 1
18869 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18870 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18871 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18874 ac_check_lib_save_LIBS=$LIBS
18876 cat >conftest.$ac_ext <<_ACEOF
18879 cat confdefs.h >>conftest.$ac_ext
18880 cat >>conftest.$ac_ext <<_ACEOF
18881 /* end confdefs.h. */
18883 /* Override any GCC internal prototype to avoid an error.
18884 Use char because int might match the return type of a GCC
18885 builtin and then its argument prototype would still apply. */
18889 char __floatdidf ();
18893 return __floatdidf ();
18898 rm -f conftest.$ac_objext conftest$ac_exeext
18899 if { (ac_try="$ac_link"
18900 case "(($ac_try" in
18901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18902 *) ac_try_echo=$ac_try;;
18904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18905 (eval "$ac_link") 2>conftest.er1
18907 grep -v '^ *+' conftest.er1 >conftest.err
18909 cat conftest.err >&5
18910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18911 (exit $ac_status); } &&
18912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18913 { (case "(($ac_try" in
18914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18915 *) ac_try_echo=$ac_try;;
18917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18918 (eval "$ac_try") 2>&5
18920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18921 (exit $ac_status); }; } &&
18922 { ac_try='test -s conftest$ac_exeext'
18923 { (case "(($ac_try" in
18924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18925 *) ac_try_echo=$ac_try;;
18927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18928 (eval "$ac_try") 2>&5
18930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18931 (exit $ac_status); }; }; then
18932 ac_cv_lib_gcc___floatdidf=yes
18934 echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18937 ac_cv_lib_gcc___floatdidf=no
18940 rm -f core conftest.err conftest.$ac_objext \
18941 conftest$ac_exeext conftest.$ac_ext
18942 LIBS=$ac_check_lib_save_LIBS
18944 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18945 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18946 if test $ac_cv_lib_gcc___floatdidf = yes; then
18948 cat >>confdefs.h <<\_ACEOF
18949 #define HAVE___FLOATDIDF 1
18954 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18955 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18956 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18957 echo $ECHO_N "(cached) $ECHO_C" >&6
18959 ac_check_lib_save_LIBS=$LIBS
18961 cat >conftest.$ac_ext <<_ACEOF
18964 cat confdefs.h >>conftest.$ac_ext
18965 cat >>conftest.$ac_ext <<_ACEOF
18966 /* end confdefs.h. */
18968 /* Override any GCC internal prototype to avoid an error.
18969 Use char because int might match the return type of a GCC
18970 builtin and then its argument prototype would still apply. */
18978 return __lshrdi3 ();
18983 rm -f conftest.$ac_objext conftest$ac_exeext
18984 if { (ac_try="$ac_link"
18985 case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_link") 2>conftest.er1
18992 grep -v '^ *+' conftest.er1 >conftest.err
18994 cat conftest.err >&5
18995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18996 (exit $ac_status); } &&
18997 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18998 { (case "(($ac_try" in
18999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19000 *) ac_try_echo=$ac_try;;
19002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19003 (eval "$ac_try") 2>&5
19005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19006 (exit $ac_status); }; } &&
19007 { ac_try='test -s conftest$ac_exeext'
19008 { (case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19013 (eval "$ac_try") 2>&5
19015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19016 (exit $ac_status); }; }; then
19017 ac_cv_lib_gcc___lshrdi3=yes
19019 echo "$as_me: failed program was:" >&5
19020 sed 's/^/| /' conftest.$ac_ext >&5
19022 ac_cv_lib_gcc___lshrdi3=no
19025 rm -f core conftest.err conftest.$ac_objext \
19026 conftest$ac_exeext conftest.$ac_ext
19027 LIBS=$ac_check_lib_save_LIBS
19029 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19030 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19031 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19033 cat >>confdefs.h <<\_ACEOF
19034 #define HAVE___LSHRDI3 1
19039 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19040 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19041 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19042 echo $ECHO_N "(cached) $ECHO_C" >&6
19044 ac_check_lib_save_LIBS=$LIBS
19046 cat >conftest.$ac_ext <<_ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19053 /* Override any GCC internal prototype to avoid an error.
19054 Use char because int might match the return type of a GCC
19055 builtin and then its argument prototype would still apply. */
19063 return __moddi3 ();
19068 rm -f conftest.$ac_objext conftest$ac_exeext
19069 if { (ac_try="$ac_link"
19070 case "(($ac_try" in
19071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19072 *) ac_try_echo=$ac_try;;
19074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19075 (eval "$ac_link") 2>conftest.er1
19077 grep -v '^ *+' conftest.er1 >conftest.err
19079 cat conftest.err >&5
19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19081 (exit $ac_status); } &&
19082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19083 { (case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_try") 2>&5
19090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19091 (exit $ac_status); }; } &&
19092 { ac_try='test -s conftest$ac_exeext'
19093 { (case "(($ac_try" in
19094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19095 *) ac_try_echo=$ac_try;;
19097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19098 (eval "$ac_try") 2>&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); }; }; then
19102 ac_cv_lib_gcc___moddi3=yes
19104 echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19107 ac_cv_lib_gcc___moddi3=no
19110 rm -f core conftest.err conftest.$ac_objext \
19111 conftest$ac_exeext conftest.$ac_ext
19112 LIBS=$ac_check_lib_save_LIBS
19114 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19115 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19116 if test $ac_cv_lib_gcc___moddi3 = yes; then
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE___MODDI3 1
19124 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19125 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19126 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19127 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 ac_check_lib_save_LIBS=$LIBS
19131 cat >conftest.$ac_ext <<_ACEOF
19134 cat confdefs.h >>conftest.$ac_ext
19135 cat >>conftest.$ac_ext <<_ACEOF
19136 /* end confdefs.h. */
19138 /* Override any GCC internal prototype to avoid an error.
19139 Use char because int might match the return type of a GCC
19140 builtin and then its argument prototype would still apply. */
19148 return __udivdi3 ();
19153 rm -f conftest.$ac_objext conftest$ac_exeext
19154 if { (ac_try="$ac_link"
19155 case "(($ac_try" in
19156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19157 *) ac_try_echo=$ac_try;;
19159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19160 (eval "$ac_link") 2>conftest.er1
19162 grep -v '^ *+' conftest.er1 >conftest.err
19164 cat conftest.err >&5
19165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19166 (exit $ac_status); } &&
19167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19168 { (case "(($ac_try" in
19169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19170 *) ac_try_echo=$ac_try;;
19172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19173 (eval "$ac_try") 2>&5
19175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19176 (exit $ac_status); }; } &&
19177 { ac_try='test -s conftest$ac_exeext'
19178 { (case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_try") 2>&5
19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19186 (exit $ac_status); }; }; then
19187 ac_cv_lib_gcc___udivdi3=yes
19189 echo "$as_me: failed program was:" >&5
19190 sed 's/^/| /' conftest.$ac_ext >&5
19192 ac_cv_lib_gcc___udivdi3=no
19195 rm -f core conftest.err conftest.$ac_objext \
19196 conftest$ac_exeext conftest.$ac_ext
19197 LIBS=$ac_check_lib_save_LIBS
19199 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19200 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19201 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19203 cat >>confdefs.h <<\_ACEOF
19204 #define HAVE___UDIVDI3 1
19209 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19210 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19211 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19212 echo $ECHO_N "(cached) $ECHO_C" >&6
19214 ac_check_lib_save_LIBS=$LIBS
19216 cat >conftest.$ac_ext <<_ACEOF
19219 cat confdefs.h >>conftest.$ac_ext
19220 cat >>conftest.$ac_ext <<_ACEOF
19221 /* end confdefs.h. */
19223 /* Override any GCC internal prototype to avoid an error.
19224 Use char because int might match the return type of a GCC
19225 builtin and then its argument prototype would still apply. */
19233 return __umoddi3 ();
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (ac_try="$ac_link"
19240 case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_link") 2>conftest.er1
19247 grep -v '^ *+' conftest.er1 >conftest.err
19249 cat conftest.err >&5
19250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19251 (exit $ac_status); } &&
19252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19253 { (case "(($ac_try" in
19254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19255 *) ac_try_echo=$ac_try;;
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258 (eval "$ac_try") 2>&5
19260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19261 (exit $ac_status); }; } &&
19262 { ac_try='test -s conftest$ac_exeext'
19263 { (case "(($ac_try" in
19264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19265 *) ac_try_echo=$ac_try;;
19267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19268 (eval "$ac_try") 2>&5
19270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); }; }; then
19272 ac_cv_lib_gcc___umoddi3=yes
19274 echo "$as_me: failed program was:" >&5
19275 sed 's/^/| /' conftest.$ac_ext >&5
19277 ac_cv_lib_gcc___umoddi3=no
19280 rm -f core conftest.err conftest.$ac_objext \
19281 conftest$ac_exeext conftest.$ac_ext
19282 LIBS=$ac_check_lib_save_LIBS
19284 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19285 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19286 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19288 cat >>confdefs.h <<\_ACEOF
19289 #define HAVE___UMODDI3 1
19295 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19296 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19297 if test "${ac_cv_lib_gcc___main+set}" = set; then
19298 echo $ECHO_N "(cached) $ECHO_C" >&6
19300 ac_check_lib_save_LIBS=$LIBS
19302 cat >conftest.$ac_ext <<_ACEOF
19305 cat confdefs.h >>conftest.$ac_ext
19306 cat >>conftest.$ac_ext <<_ACEOF
19307 /* end confdefs.h. */
19309 /* Override any GCC internal prototype to avoid an error.
19310 Use char because int might match the return type of a GCC
19311 builtin and then its argument prototype would still apply. */
19324 rm -f conftest.$ac_objext conftest$ac_exeext
19325 if { (ac_try="$ac_link"
19326 case "(($ac_try" in
19327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_link") 2>conftest.er1
19333 grep -v '^ *+' conftest.er1 >conftest.err
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } &&
19338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19339 { (case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_try") 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try='test -s conftest$ac_exeext'
19349 { (case "(($ac_try" in
19350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_try") 2>&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 ac_cv_lib_gcc___main=yes
19360 echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19363 ac_cv_lib_gcc___main=no
19366 rm -f core conftest.err conftest.$ac_objext \
19367 conftest$ac_exeext conftest.$ac_ext
19368 LIBS=$ac_check_lib_save_LIBS
19370 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19371 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19372 if test $ac_cv_lib_gcc___main = yes; then
19374 cat >>confdefs.h <<\_ACEOF
19375 #define HAVE___MAIN 1
19380 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19381 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19382 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 ac_check_lib_save_LIBS=$LIBS
19387 cat >conftest.$ac_ext <<_ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19394 /* Override any GCC internal prototype to avoid an error.
19395 Use char because int might match the return type of a GCC
19396 builtin and then its argument prototype would still apply. */
19404 return __cmpdi2 ();
19409 rm -f conftest.$ac_objext conftest$ac_exeext
19410 if { (ac_try="$ac_link"
19411 case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_link") 2>conftest.er1
19418 grep -v '^ *+' conftest.er1 >conftest.err
19420 cat conftest.err >&5
19421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19422 (exit $ac_status); } &&
19423 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19424 { (case "(($ac_try" in
19425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19426 *) ac_try_echo=$ac_try;;
19428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19429 (eval "$ac_try") 2>&5
19431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19432 (exit $ac_status); }; } &&
19433 { ac_try='test -s conftest$ac_exeext'
19434 { (case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_try") 2>&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); }; }; then
19443 ac_cv_lib_gcc___cmpdi2=yes
19445 echo "$as_me: failed program was:" >&5
19446 sed 's/^/| /' conftest.$ac_ext >&5
19448 ac_cv_lib_gcc___cmpdi2=no
19451 rm -f core conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
19453 LIBS=$ac_check_lib_save_LIBS
19455 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19456 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19457 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19459 cat >>confdefs.h <<\_ACEOF
19460 #define HAVE___CMPDI2 1
19467 if test "$llvm_cv_os_type" = "MingW" ; then
19468 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19469 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19470 cat >conftest.$ac_ext <<_ACEOF
19471 #include <windows.h>
19472 #include <imagehlp.h>
19473 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19474 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19476 rm -f conftest.$ac_objext
19477 if { (ac_try="$ac_compile"
19478 case "(($ac_try" in
19479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19480 *) ac_try_echo=$ac_try;;
19482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19483 (eval "$ac_compile") 2>conftest.er1
19485 grep -v '^ *+' conftest.er1 >conftest.err
19487 cat conftest.err >&5
19488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19489 (exit $ac_status); } &&
19490 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19491 { (case "(($ac_try" in
19492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19493 *) ac_try_echo=$ac_try;;
19495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19496 (eval "$ac_try") 2>&5
19498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19499 (exit $ac_status); }; } &&
19500 { ac_try='test -s conftest.$ac_objext'
19501 { (case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_try") 2>&5
19508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19509 (exit $ac_status); }; }; then
19511 { echo "$as_me:$LINENO: result: yes" >&5
19512 echo "${ECHO_T}yes" >&6; }
19513 llvm_cv_win32_elmcb_pcstr="PCSTR"
19516 echo "$as_me: failed program was:" >&5
19517 sed 's/^/| /' conftest.$ac_ext >&5
19520 { echo "$as_me:$LINENO: result: no" >&5
19521 echo "${ECHO_T}no" >&6; }
19522 llvm_cv_win32_elmcb_pcstr="PSTR"
19526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19528 cat >>confdefs.h <<_ACEOF
19529 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19535 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19536 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19537 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19538 echo $ECHO_N "(cached) $ECHO_C" >&6
19541 ac_cpp='$CXXCPP $CPPFLAGS'
19542 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19543 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19544 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19546 cat >conftest.$ac_ext <<_ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19561 rm -f conftest.$ac_objext
19562 if { (ac_try="$ac_compile"
19563 case "(($ac_try" in
19564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19565 *) ac_try_echo=$ac_try;;
19567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19568 (eval "$ac_compile") 2>conftest.er1
19570 grep -v '^ *+' conftest.er1 >conftest.err
19572 cat conftest.err >&5
19573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19574 (exit $ac_status); } &&
19575 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19576 { (case "(($ac_try" in
19577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19578 *) ac_try_echo=$ac_try;;
19580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581 (eval "$ac_try") 2>&5
19583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19584 (exit $ac_status); }; } &&
19585 { ac_try='test -s conftest.$ac_objext'
19586 { (case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_try") 2>&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); }; }; then
19595 ac_cv_func_isnan_in_math_h=yes
19597 echo "$as_me: failed program was:" >&5
19598 sed 's/^/| /' conftest.$ac_ext >&5
19600 ac_cv_func_isnan_in_math_h=no
19603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19605 ac_cpp='$CPP $CPPFLAGS'
19606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19611 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19612 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19615 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19617 cat >>confdefs.h <<\_ACEOF
19618 #define HAVE_ISNAN_IN_MATH_H 1
19623 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19624 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19625 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19626 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 ac_cpp='$CXXCPP $CPPFLAGS'
19630 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19634 cat >conftest.$ac_ext <<_ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19649 rm -f conftest.$ac_objext
19650 if { (ac_try="$ac_compile"
19651 case "(($ac_try" in
19652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_compile") 2>conftest.er1
19658 grep -v '^ *+' conftest.er1 >conftest.err
19660 cat conftest.err >&5
19661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } &&
19663 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19664 { (case "(($ac_try" in
19665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19666 *) ac_try_echo=$ac_try;;
19668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19669 (eval "$ac_try") 2>&5
19671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672 (exit $ac_status); }; } &&
19673 { ac_try='test -s conftest.$ac_objext'
19674 { (case "(($ac_try" in
19675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676 *) ac_try_echo=$ac_try;;
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679 (eval "$ac_try") 2>&5
19681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682 (exit $ac_status); }; }; then
19683 ac_cv_func_isnan_in_cmath=yes
19685 echo "$as_me: failed program was:" >&5
19686 sed 's/^/| /' conftest.$ac_ext >&5
19688 ac_cv_func_isnan_in_cmath=no
19691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19693 ac_cpp='$CPP $CPPFLAGS'
19694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19699 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19700 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19702 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19704 cat >>confdefs.h <<\_ACEOF
19705 #define HAVE_ISNAN_IN_CMATH 1
19710 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19711 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19712 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 ac_cpp='$CXXCPP $CPPFLAGS'
19717 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19718 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19719 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19721 cat >conftest.$ac_ext <<_ACEOF
19724 cat confdefs.h >>conftest.$ac_ext
19725 cat >>conftest.$ac_ext <<_ACEOF
19726 /* end confdefs.h. */
19731 float f; std::isnan(f);
19736 rm -f conftest.$ac_objext
19737 if { (ac_try="$ac_compile"
19738 case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_compile") 2>conftest.er1
19745 grep -v '^ *+' conftest.er1 >conftest.err
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19749 (exit $ac_status); } &&
19750 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19751 { (case "(($ac_try" in
19752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19753 *) ac_try_echo=$ac_try;;
19755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19756 (eval "$ac_try") 2>&5
19758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); }; } &&
19760 { ac_try='test -s conftest.$ac_objext'
19761 { (case "(($ac_try" in
19762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19763 *) ac_try_echo=$ac_try;;
19765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19766 (eval "$ac_try") 2>&5
19768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); }; }; then
19770 ac_cv_func_std_isnan_in_cmath=yes
19772 echo "$as_me: failed program was:" >&5
19773 sed 's/^/| /' conftest.$ac_ext >&5
19775 ac_cv_func_std_isnan_in_cmath=no
19778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19780 ac_cpp='$CPP $CPPFLAGS'
19781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19786 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19787 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19789 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19791 cat >>confdefs.h <<\_ACEOF
19792 #define HAVE_STD_ISNAN_IN_CMATH 1
19798 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19799 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19800 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19804 ac_cpp='$CXXCPP $CPPFLAGS'
19805 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19806 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19807 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19809 cat >conftest.$ac_ext <<_ACEOF
19812 cat confdefs.h >>conftest.$ac_ext
19813 cat >>conftest.$ac_ext <<_ACEOF
19814 /* end confdefs.h. */
19824 rm -f conftest.$ac_objext
19825 if { (ac_try="$ac_compile"
19826 case "(($ac_try" in
19827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19828 *) ac_try_echo=$ac_try;;
19830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19831 (eval "$ac_compile") 2>conftest.er1
19833 grep -v '^ *+' conftest.er1 >conftest.err
19835 cat conftest.err >&5
19836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19837 (exit $ac_status); } &&
19838 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19839 { (case "(($ac_try" in
19840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19841 *) ac_try_echo=$ac_try;;
19843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19844 (eval "$ac_try") 2>&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); }; } &&
19848 { ac_try='test -s conftest.$ac_objext'
19849 { (case "(($ac_try" in
19850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19851 *) ac_try_echo=$ac_try;;
19853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19854 (eval "$ac_try") 2>&5
19856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19857 (exit $ac_status); }; }; then
19858 ac_cv_func_isinf_in_math_h=yes
19860 echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19863 ac_cv_func_isinf_in_math_h=no
19866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19868 ac_cpp='$CPP $CPPFLAGS'
19869 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19870 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19871 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19874 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19875 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19877 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19879 cat >>confdefs.h <<\_ACEOF
19880 #define HAVE_ISINF_IN_MATH_H 1
19885 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19886 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19887 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19888 echo $ECHO_N "(cached) $ECHO_C" >&6
19891 ac_cpp='$CXXCPP $CPPFLAGS'
19892 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19893 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19894 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19896 cat >conftest.$ac_ext <<_ACEOF
19899 cat confdefs.h >>conftest.$ac_ext
19900 cat >>conftest.$ac_ext <<_ACEOF
19901 /* end confdefs.h. */
19911 rm -f conftest.$ac_objext
19912 if { (ac_try="$ac_compile"
19913 case "(($ac_try" in
19914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19915 *) ac_try_echo=$ac_try;;
19917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19918 (eval "$ac_compile") 2>conftest.er1
19920 grep -v '^ *+' conftest.er1 >conftest.err
19922 cat conftest.err >&5
19923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19924 (exit $ac_status); } &&
19925 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19926 { (case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_try") 2>&5
19933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19934 (exit $ac_status); }; } &&
19935 { ac_try='test -s conftest.$ac_objext'
19936 { (case "(($ac_try" in
19937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19938 *) ac_try_echo=$ac_try;;
19940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19941 (eval "$ac_try") 2>&5
19943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19944 (exit $ac_status); }; }; then
19945 ac_cv_func_isinf_in_cmath=yes
19947 echo "$as_me: failed program was:" >&5
19948 sed 's/^/| /' conftest.$ac_ext >&5
19950 ac_cv_func_isinf_in_cmath=no
19953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19955 ac_cpp='$CPP $CPPFLAGS'
19956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19961 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19962 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19964 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19966 cat >>confdefs.h <<\_ACEOF
19967 #define HAVE_ISINF_IN_CMATH 1
19972 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19973 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19974 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19975 echo $ECHO_N "(cached) $ECHO_C" >&6
19978 ac_cpp='$CXXCPP $CPPFLAGS'
19979 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19980 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19981 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19983 cat >conftest.$ac_ext <<_ACEOF
19986 cat confdefs.h >>conftest.$ac_ext
19987 cat >>conftest.$ac_ext <<_ACEOF
19988 /* end confdefs.h. */
19993 float f; std::isinf(f);
19998 rm -f conftest.$ac_objext
19999 if { (ac_try="$ac_compile"
20000 case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005 (eval "$ac_compile") 2>conftest.er1
20007 grep -v '^ *+' conftest.er1 >conftest.err
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } &&
20012 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20013 { (case "(($ac_try" in
20014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20015 *) ac_try_echo=$ac_try;;
20017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20018 (eval "$ac_try") 2>&5
20020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20021 (exit $ac_status); }; } &&
20022 { ac_try='test -s conftest.$ac_objext'
20023 { (case "(($ac_try" in
20024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20025 *) ac_try_echo=$ac_try;;
20027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20028 (eval "$ac_try") 2>&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); }; }; then
20032 ac_cv_func_std_isinf_in_cmath=yes
20034 echo "$as_me: failed program was:" >&5
20035 sed 's/^/| /' conftest.$ac_ext >&5
20037 ac_cv_func_std_isinf_in_cmath=no
20040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20042 ac_cpp='$CPP $CPPFLAGS'
20043 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20044 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20045 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20048 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20049 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20051 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20053 cat >>confdefs.h <<\_ACEOF
20054 #define HAVE_STD_ISINF_IN_CMATH 1
20059 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20060 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20061 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20062 echo $ECHO_N "(cached) $ECHO_C" >&6
20065 ac_cpp='$CXXCPP $CPPFLAGS'
20066 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20067 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20068 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20070 cat >conftest.$ac_ext <<_ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 #include <ieeefp.h>
20080 float f; finite(f);
20085 rm -f conftest.$ac_objext
20086 if { (ac_try="$ac_compile"
20087 case "(($ac_try" in
20088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20089 *) ac_try_echo=$ac_try;;
20091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20092 (eval "$ac_compile") 2>conftest.er1
20094 grep -v '^ *+' conftest.er1 >conftest.err
20096 cat conftest.err >&5
20097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20098 (exit $ac_status); } &&
20099 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20100 { (case "(($ac_try" in
20101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20102 *) ac_try_echo=$ac_try;;
20104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20105 (eval "$ac_try") 2>&5
20107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20108 (exit $ac_status); }; } &&
20109 { ac_try='test -s conftest.$ac_objext'
20110 { (case "(($ac_try" in
20111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20112 *) ac_try_echo=$ac_try;;
20114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20115 (eval "$ac_try") 2>&5
20117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20118 (exit $ac_status); }; }; then
20119 ac_cv_func_finite_in_ieeefp_h=yes
20121 echo "$as_me: failed program was:" >&5
20122 sed 's/^/| /' conftest.$ac_ext >&5
20124 ac_cv_func_finite_in_ieeefp_h=no
20127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20129 ac_cpp='$CPP $CPPFLAGS'
20130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20135 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20136 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20138 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20140 cat >>confdefs.h <<\_ACEOF
20141 #define HAVE_FINITE_IN_IEEEFP_H 1
20148 if test "$llvm_cv_platform_type" = "Unix" ; then
20151 for ac_header in stdlib.h unistd.h
20153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20158 echo $ECHO_N "(cached) $ECHO_C" >&6
20160 ac_res=`eval echo '${'$as_ac_Header'}'`
20161 { echo "$as_me:$LINENO: result: $ac_res" >&5
20162 echo "${ECHO_T}$ac_res" >&6; }
20164 # Is the header compilable?
20165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20167 cat >conftest.$ac_ext <<_ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173 $ac_includes_default
20174 #include <$ac_header>
20176 rm -f conftest.$ac_objext
20177 if { (ac_try="$ac_compile"
20178 case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20183 (eval "$ac_compile") 2>conftest.er1
20185 grep -v '^ *+' conftest.er1 >conftest.err
20187 cat conftest.err >&5
20188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20189 (exit $ac_status); } &&
20190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20191 { (case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196 (eval "$ac_try") 2>&5
20198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20199 (exit $ac_status); }; } &&
20200 { ac_try='test -s conftest.$ac_objext'
20201 { (case "(($ac_try" in
20202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20203 *) ac_try_echo=$ac_try;;
20205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20206 (eval "$ac_try") 2>&5
20208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20209 (exit $ac_status); }; }; then
20210 ac_header_compiler=yes
20212 echo "$as_me: failed program was:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ac_header_compiler=no
20218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20220 echo "${ECHO_T}$ac_header_compiler" >&6; }
20222 # Is the header present?
20223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20225 cat >conftest.$ac_ext <<_ACEOF
20228 cat confdefs.h >>conftest.$ac_ext
20229 cat >>conftest.$ac_ext <<_ACEOF
20230 /* end confdefs.h. */
20231 #include <$ac_header>
20233 if { (ac_try="$ac_cpp conftest.$ac_ext"
20234 case "(($ac_try" in
20235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20236 *) ac_try_echo=$ac_try;;
20238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20241 grep -v '^ *+' conftest.er1 >conftest.err
20243 cat conftest.err >&5
20244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20245 (exit $ac_status); } >/dev/null; then
20246 if test -s conftest.err; then
20247 ac_cpp_err=$ac_c_preproc_warn_flag
20248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20255 if test -z "$ac_cpp_err"; then
20256 ac_header_preproc=yes
20258 echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20261 ac_header_preproc=no
20264 rm -f conftest.err conftest.$ac_ext
20265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20266 echo "${ECHO_T}$ac_header_preproc" >&6; }
20268 # So? What about this header?
20269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20275 ac_header_preproc=yes
20278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20291 ## ------------------------------------ ##
20292 ## Report this to http://llvm.org/bugs/ ##
20293 ## ------------------------------------ ##
20295 ) | sed "s/^/$as_me: WARNING: /" >&2
20298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20301 echo $ECHO_N "(cached) $ECHO_C" >&6
20303 eval "$as_ac_Header=\$ac_header_preproc"
20305 ac_res=`eval echo '${'$as_ac_Header'}'`
20306 { echo "$as_me:$LINENO: result: $ac_res" >&5
20307 echo "${ECHO_T}$ac_res" >&6; }
20310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20311 cat >>confdefs.h <<_ACEOF
20312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20320 for ac_func in getpagesize
20322 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20323 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20324 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20325 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20326 echo $ECHO_N "(cached) $ECHO_C" >&6
20328 cat >conftest.$ac_ext <<_ACEOF
20331 cat confdefs.h >>conftest.$ac_ext
20332 cat >>conftest.$ac_ext <<_ACEOF
20333 /* end confdefs.h. */
20334 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20336 #define $ac_func innocuous_$ac_func
20338 /* System header to define __stub macros and hopefully few prototypes,
20339 which can conflict with char $ac_func (); below.
20340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20341 <limits.h> exists even on freestanding compilers. */
20344 # include <limits.h>
20346 # include <assert.h>
20351 /* Override any GCC internal prototype to avoid an error.
20352 Use char because int might match the return type of a GCC
20353 builtin and then its argument prototype would still apply. */
20358 /* The GNU C library defines this for functions which it implements
20359 to always fail with ENOSYS. Some functions are actually named
20360 something starting with __ and the normal name is an alias. */
20361 #if defined __stub_$ac_func || defined __stub___$ac_func
20368 return $ac_func ();
20373 rm -f conftest.$ac_objext conftest$ac_exeext
20374 if { (ac_try="$ac_link"
20375 case "(($ac_try" in
20376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_link") 2>conftest.er1
20382 grep -v '^ *+' conftest.er1 >conftest.err
20384 cat conftest.err >&5
20385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20386 (exit $ac_status); } &&
20387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20388 { (case "(($ac_try" in
20389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20390 *) ac_try_echo=$ac_try;;
20392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20393 (eval "$ac_try") 2>&5
20395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20396 (exit $ac_status); }; } &&
20397 { ac_try='test -s conftest$ac_exeext'
20398 { (case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_try") 2>&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); }; }; then
20407 eval "$as_ac_var=yes"
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20412 eval "$as_ac_var=no"
20415 rm -f core conftest.err conftest.$ac_objext \
20416 conftest$ac_exeext conftest.$ac_ext
20418 ac_res=`eval echo '${'$as_ac_var'}'`
20419 { echo "$as_me:$LINENO: result: $ac_res" >&5
20420 echo "${ECHO_T}$ac_res" >&6; }
20421 if test `eval echo '${'$as_ac_var'}'` = yes; then
20422 cat >>confdefs.h <<_ACEOF
20423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20429 { echo "$as_me:$LINENO: checking for working mmap" >&5
20430 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20431 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20432 echo $ECHO_N "(cached) $ECHO_C" >&6
20434 if test "$cross_compiling" = yes; then
20435 ac_cv_func_mmap_fixed_mapped=no
20437 cat >conftest.$ac_ext <<_ACEOF
20440 cat confdefs.h >>conftest.$ac_ext
20441 cat >>conftest.$ac_ext <<_ACEOF
20442 /* end confdefs.h. */
20443 $ac_includes_default
20444 /* malloc might have been renamed as rpl_malloc. */
20447 /* Thanks to Mike Haertel and Jim Avera for this test.
20448 Here is a matrix of mmap possibilities:
20449 mmap private not fixed
20450 mmap private fixed at somewhere currently unmapped
20451 mmap private fixed at somewhere already mapped
20452 mmap shared not fixed
20453 mmap shared fixed at somewhere currently unmapped
20454 mmap shared fixed at somewhere already mapped
20455 For private mappings, we should verify that changes cannot be read()
20456 back from the file, nor mmap's back from the file at a different
20457 address. (There have been systems where private was not correctly
20458 implemented like the infamous i386 svr4.0, and systems where the
20459 VM page cache was not coherent with the file system buffer cache
20460 like early versions of FreeBSD and possibly contemporary NetBSD.)
20461 For shared mappings, we should conversely verify that changes get
20462 propagated back to all the places they're supposed to be.
20464 Grep wants private fixed already mapped.
20465 The main things grep needs to know about mmap are:
20466 * does it exist and is it safe to write into the mmap'd area
20467 * how to use it (BSD variants) */
20470 #include <sys/mman.h>
20472 #if !STDC_HEADERS && !HAVE_STDLIB_H
20476 /* This mess was copied from the GNU getpagesize.h. */
20477 #if !HAVE_GETPAGESIZE
20478 /* Assume that all systems that can run configure have sys/param.h. */
20479 # if !HAVE_SYS_PARAM_H
20480 # define HAVE_SYS_PARAM_H 1
20483 # ifdef _SC_PAGESIZE
20484 # define getpagesize() sysconf(_SC_PAGESIZE)
20485 # else /* no _SC_PAGESIZE */
20486 # if HAVE_SYS_PARAM_H
20487 # include <sys/param.h>
20488 # ifdef EXEC_PAGESIZE
20489 # define getpagesize() EXEC_PAGESIZE
20490 # else /* no EXEC_PAGESIZE */
20492 # define getpagesize() NBPG * CLSIZE
20495 # endif /* no CLSIZE */
20496 # else /* no NBPG */
20498 # define getpagesize() NBPC
20499 # else /* no NBPC */
20501 # define getpagesize() PAGESIZE
20502 # endif /* PAGESIZE */
20503 # endif /* no NBPC */
20504 # endif /* no NBPG */
20505 # endif /* no EXEC_PAGESIZE */
20506 # else /* no HAVE_SYS_PARAM_H */
20507 # define getpagesize() 8192 /* punt totally */
20508 # endif /* no HAVE_SYS_PARAM_H */
20509 # endif /* no _SC_PAGESIZE */
20511 #endif /* no HAVE_GETPAGESIZE */
20516 char *data, *data2, *data3;
20520 pagesize = getpagesize ();
20522 /* First, make a file with some known garbage in it. */
20523 data = (char *) malloc (pagesize);
20526 for (i = 0; i < pagesize; ++i)
20527 *(data + i) = rand ();
20529 fd = creat ("conftest.mmap", 0600);
20532 if (write (fd, data, pagesize) != pagesize)
20536 /* Next, try to mmap the file at a fixed address which already has
20537 something else allocated at it. If we can, also make sure that
20538 we see the same garbage. */
20539 fd = open ("conftest.mmap", O_RDWR);
20542 data2 = (char *) malloc (2 * pagesize);
20545 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20546 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20547 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20549 for (i = 0; i < pagesize; ++i)
20550 if (*(data + i) != *(data2 + i))
20553 /* Finally, make sure that changes to the mapped area do not
20554 percolate back to the file as seen by read(). (This is a bug on
20555 some variants of i386 svr4.0.) */
20556 for (i = 0; i < pagesize; ++i)
20557 *(data2 + i) = *(data2 + i) + 1;
20558 data3 = (char *) malloc (pagesize);
20561 if (read (fd, data3, pagesize) != pagesize)
20563 for (i = 0; i < pagesize; ++i)
20564 if (*(data + i) != *(data3 + i))
20570 rm -f conftest$ac_exeext
20571 if { (ac_try="$ac_link"
20572 case "(($ac_try" in
20573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20574 *) ac_try_echo=$ac_try;;
20576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20577 (eval "$ac_link") 2>&5
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20581 { (case "(($ac_try" in
20582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20583 *) ac_try_echo=$ac_try;;
20585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20586 (eval "$ac_try") 2>&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); }; }; then
20590 ac_cv_func_mmap_fixed_mapped=yes
20592 echo "$as_me: program exited with status $ac_status" >&5
20593 echo "$as_me: failed program was:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20596 ( exit $ac_status )
20597 ac_cv_func_mmap_fixed_mapped=no
20599 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20604 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20605 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20606 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20608 cat >>confdefs.h <<\_ACEOF
20609 #define HAVE_MMAP 1
20613 rm -f conftest.mmap
20615 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20616 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20617 if test "${ac_cv_func_mmap_file+set}" = set; then
20618 echo $ECHO_N "(cached) $ECHO_C" >&6
20621 ac_cpp='$CPP $CPPFLAGS'
20622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20626 if test "$cross_compiling" = yes; then
20627 ac_cv_func_mmap_file=no
20629 cat >conftest.$ac_ext <<_ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20637 #include <sys/types.h>
20638 #include <sys/mman.h>
20646 fd = creat ("foo",0777);
20647 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20649 return (fd != (int) MAP_FAILED);
20654 rm -f conftest$ac_exeext
20655 if { (ac_try="$ac_link"
20656 case "(($ac_try" in
20657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20658 *) ac_try_echo=$ac_try;;
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_link") 2>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20665 { (case "(($ac_try" in
20666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20667 *) ac_try_echo=$ac_try;;
20669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20670 (eval "$ac_try") 2>&5
20672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20673 (exit $ac_status); }; }; then
20674 ac_cv_func_mmap_file=yes
20676 echo "$as_me: program exited with status $ac_status" >&5
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ( exit $ac_status )
20681 ac_cv_func_mmap_file=no
20683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20688 ac_cpp='$CPP $CPPFLAGS'
20689 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20690 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20691 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20695 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20696 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20697 if test "$ac_cv_func_mmap_file" = yes; then
20699 cat >>confdefs.h <<\_ACEOF
20700 #define HAVE_MMAP_FILE
20707 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20708 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20709 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20710 echo $ECHO_N "(cached) $ECHO_C" >&6
20712 if test "$llvm_cv_os_type" = "Interix" ; then
20713 ac_cv_need_dev_zero_for_mmap=yes
20715 ac_cv_need_dev_zero_for_mmap=no
20719 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20720 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20721 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20723 cat >>confdefs.h <<\_ACEOF
20724 #define NEED_DEV_ZERO_FOR_MMAP 1
20729 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20731 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20732 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20734 if test "$ac_cv_func_mmap_file" = "no"
20736 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20737 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20741 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20742 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20744 ac_cpp='$CXXCPP $CPPFLAGS'
20745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20749 cat >conftest.$ac_ext <<_ACEOF
20752 cat confdefs.h >>conftest.$ac_ext
20753 cat >>conftest.$ac_ext <<_ACEOF
20754 /* end confdefs.h. */
20756 volatile unsigned long val = 1;
20757 __sync_synchronize();
20758 __sync_val_compare_and_swap(&val, 1, 0);
20759 __sync_add_and_fetch(&val, 1);
20760 __sync_sub_and_fetch(&val, 1);
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_link") 2>conftest.er1
20774 grep -v '^ *+' conftest.er1 >conftest.err
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20778 (exit $ac_status); } &&
20779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20780 { (case "(($ac_try" in
20781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20782 *) ac_try_echo=$ac_try;;
20784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20785 (eval "$ac_try") 2>&5
20787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20788 (exit $ac_status); }; } &&
20789 { ac_try='test -s conftest$ac_exeext'
20790 { (case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_try") 2>&5
20797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20798 (exit $ac_status); }; }; then
20800 ac_cpp='$CPP $CPPFLAGS'
20801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20805 { echo "$as_me:$LINENO: result: yes" >&5
20806 echo "${ECHO_T}yes" >&6; }
20808 cat >>confdefs.h <<\_ACEOF
20809 #define LLVM_HAS_ATOMICS 1
20813 echo "$as_me: failed program was:" >&5
20814 sed 's/^/| /' conftest.$ac_ext >&5
20816 { echo "$as_me:$LINENO: result: no" >&5
20817 echo "${ECHO_T}no" >&6; }
20819 cat >>confdefs.h <<\_ACEOF
20820 #define LLVM_HAS_ATOMICS 0
20823 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20824 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20827 rm -f core conftest.err conftest.$ac_objext \
20828 conftest$ac_exeext conftest.$ac_ext
20831 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20832 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20833 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20834 if test "${llvm_cv_linux_mixed+set}" = set; then
20835 echo $ECHO_N "(cached) $ECHO_C" >&6
20838 ac_cpp='$CPP $CPPFLAGS'
20839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20843 cat >conftest.$ac_ext <<_ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20850 error: Not x86-64 even if uname says so!
20861 rm -f conftest.$ac_objext
20862 if { (ac_try="$ac_compile"
20863 case "(($ac_try" in
20864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20865 *) ac_try_echo=$ac_try;;
20867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20868 (eval "$ac_compile") 2>conftest.er1
20870 grep -v '^ *+' conftest.er1 >conftest.err
20872 cat conftest.err >&5
20873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20874 (exit $ac_status); } &&
20875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20876 { (case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_try") 2>&5
20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20884 (exit $ac_status); }; } &&
20885 { ac_try='test -s conftest.$ac_objext'
20886 { (case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_try") 2>&5
20893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20894 (exit $ac_status); }; }; then
20895 llvm_cv_linux_mixed=no
20897 echo "$as_me: failed program was:" >&5
20898 sed 's/^/| /' conftest.$ac_ext >&5
20900 llvm_cv_linux_mixed=yes
20903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20905 ac_cpp='$CPP $CPPFLAGS'
20906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20912 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20913 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20915 if test "$llvm_cv_linux_mixed" = "yes"; then
20916 llvm_cv_target_arch="x86"
20922 for ac_func in __dso_handle
20924 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20925 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20926 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20927 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20928 echo $ECHO_N "(cached) $ECHO_C" >&6
20930 cat >conftest.$ac_ext <<_ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20936 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20937 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20938 #define $ac_func innocuous_$ac_func
20940 /* System header to define __stub macros and hopefully few prototypes,
20941 which can conflict with char $ac_func (); below.
20942 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20943 <limits.h> exists even on freestanding compilers. */
20946 # include <limits.h>
20948 # include <assert.h>
20953 /* Override any GCC internal prototype to avoid an error.
20954 Use char because int might match the return type of a GCC
20955 builtin and then its argument prototype would still apply. */
20960 /* The GNU C library defines this for functions which it implements
20961 to always fail with ENOSYS. Some functions are actually named
20962 something starting with __ and the normal name is an alias. */
20963 #if defined __stub_$ac_func || defined __stub___$ac_func
20970 return $ac_func ();
20975 rm -f conftest.$ac_objext conftest$ac_exeext
20976 if { (ac_try="$ac_link"
20977 case "(($ac_try" in
20978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20979 *) ac_try_echo=$ac_try;;
20981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20982 (eval "$ac_link") 2>conftest.er1
20984 grep -v '^ *+' conftest.er1 >conftest.err
20986 cat conftest.err >&5
20987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20988 (exit $ac_status); } &&
20989 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20990 { (case "(($ac_try" in
20991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20992 *) ac_try_echo=$ac_try;;
20994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20995 (eval "$ac_try") 2>&5
20997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20998 (exit $ac_status); }; } &&
20999 { ac_try='test -s conftest$ac_exeext'
21000 { (case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_try") 2>&5
21007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21008 (exit $ac_status); }; }; then
21009 eval "$as_ac_var=yes"
21011 echo "$as_me: failed program was:" >&5
21012 sed 's/^/| /' conftest.$ac_ext >&5
21014 eval "$as_ac_var=no"
21017 rm -f core conftest.err conftest.$ac_objext \
21018 conftest$ac_exeext conftest.$ac_ext
21020 ac_res=`eval echo '${'$as_ac_var'}'`
21021 { echo "$as_me:$LINENO: result: $ac_res" >&5
21022 echo "${ECHO_T}$ac_res" >&6; }
21023 if test `eval echo '${'$as_ac_var'}'` = yes; then
21024 cat >>confdefs.h <<_ACEOF
21025 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21032 SHLIBEXT=$libltdl_cv_shlibext
21035 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21038 if test "${prefix}" = "NONE" ; then
21039 prefix="/usr/local"
21041 eval LLVM_PREFIX="${prefix}";
21042 eval LLVM_BINDIR="${prefix}/bin";
21043 eval LLVM_LIBDIR="${prefix}/lib";
21044 eval LLVM_DATADIR="${prefix}/share/llvm";
21045 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21046 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21047 eval LLVM_INCLUDEDIR="${prefix}/include";
21048 eval LLVM_INFODIR="${prefix}/info";
21049 eval LLVM_MANDIR="${prefix}/man";
21050 LLVM_CONFIGTIME=`date`
21062 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21063 LLVM_CONFIGTIME="(timestamp not enabled)"
21067 cat >>confdefs.h <<_ACEOF
21068 #define LLVM_PREFIX "$LLVM_PREFIX"
21072 cat >>confdefs.h <<_ACEOF
21073 #define LLVM_BINDIR "$LLVM_BINDIR"
21077 cat >>confdefs.h <<_ACEOF
21078 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21082 cat >>confdefs.h <<_ACEOF
21083 #define LLVM_DATADIR "$LLVM_DATADIR"
21087 cat >>confdefs.h <<_ACEOF
21088 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21092 cat >>confdefs.h <<_ACEOF
21093 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21097 cat >>confdefs.h <<_ACEOF
21098 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21102 cat >>confdefs.h <<_ACEOF
21103 #define LLVM_INFODIR "$LLVM_INFODIR"
21107 cat >>confdefs.h <<_ACEOF
21108 #define LLVM_MANDIR "$LLVM_MANDIR"
21112 cat >>confdefs.h <<_ACEOF
21113 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21117 cat >>confdefs.h <<_ACEOF
21118 #define LLVM_HOSTTRIPLE "$host"
21122 cat >>confdefs.h <<_ACEOF
21123 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21127 if test "$BINDINGS_TO_BUILD" = auto ; then
21128 BINDINGS_TO_BUILD=""
21129 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21130 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21133 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21139 binding_prereqs_failed=0
21140 for a_binding in $BINDINGS_TO_BUILD ; do
21141 case "$a_binding" in
21143 if test "x$OCAMLC" = x ; then
21144 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21145 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21146 binding_prereqs_failed=1
21148 if test "x$OCAMLDEP" = x ; then
21149 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21150 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21151 binding_prereqs_failed=1
21153 if test "x$OCAMLOPT" = x ; then
21154 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21155 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21157 if test "x$with_ocaml_libdir" != xauto ; then
21158 OCAML_LIBDIR=$with_ocaml_libdir
21161 ocaml_stdlib="`"$OCAMLC" -where`"
21162 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21164 # ocaml stdlib is beneath our prefix; use stdlib
21165 OCAML_LIBDIR=$ocaml_stdlib
21168 # ocaml stdlib is outside our prefix; use libdir/ocaml
21169 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21176 if test "$binding_prereqs_failed" = 1 ; then
21177 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21178 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21179 { (exit 1); exit 1; }; }
21182 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21183 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21184 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21185 echo $ECHO_N "(cached) $ECHO_C" >&6
21188 ac_cpp='$CXXCPP $CPPFLAGS'
21189 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21190 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21191 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21193 oldcxxflags="$CXXFLAGS"
21194 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21195 cat >conftest.$ac_ext <<_ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21201 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21210 rm -f conftest.$ac_objext
21211 if { (ac_try="$ac_compile"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_compile") 2>conftest.er1
21219 grep -v '^ *+' conftest.er1 >conftest.err
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } &&
21224 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21225 { (case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_try") 2>&5
21232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21233 (exit $ac_status); }; } &&
21234 { ac_try='test -s conftest.$ac_objext'
21235 { (case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_try") 2>&5
21242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21243 (exit $ac_status); }; }; then
21244 llvm_cv_cxx_visibility_inlines_hidden=yes
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21249 llvm_cv_cxx_visibility_inlines_hidden=no
21252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21253 CXXFLAGS="$oldcxxflags"
21255 ac_cpp='$CPP $CPPFLAGS'
21256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21262 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21263 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21264 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21265 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21268 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21273 if test "$llvm_cv_link_use_r" = "yes" ; then
21280 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21281 RDYNAMIC="-Wl,-export-dynamic"
21288 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21295 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21297 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21299 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21301 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21303 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21306 ac_config_files="$ac_config_files Makefile.config"
21309 ac_config_files="$ac_config_files llvm.spec"
21312 ac_config_files="$ac_config_files docs/doxygen.cfg"
21315 if test "${clang_src_root}" = ""; then
21316 clang_src_root="$srcdir/tools/clang"
21318 if test -f ${clang_src_root}/README.txt; then
21319 configh="include/clang/Config/config.h"
21320 doxy="docs/doxygen.cfg"
21321 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21323 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21327 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21330 ac_config_commands="$ac_config_commands setup"
21332 ac_config_commands="$ac_config_commands Makefile"
21335 ac_config_commands="$ac_config_commands Makefile.common"
21338 ac_config_commands="$ac_config_commands examples/Makefile"
21341 ac_config_commands="$ac_config_commands lib/Makefile"
21344 ac_config_commands="$ac_config_commands runtime/Makefile"
21347 ac_config_commands="$ac_config_commands test/Makefile"
21350 ac_config_commands="$ac_config_commands test/Makefile.tests"
21353 ac_config_commands="$ac_config_commands unittests/Makefile"
21356 ac_config_commands="$ac_config_commands tools/Makefile"
21359 ac_config_commands="$ac_config_commands utils/Makefile"
21362 ac_config_commands="$ac_config_commands projects/Makefile"
21365 ac_config_commands="$ac_config_commands bindings/Makefile"
21368 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21372 cat >confcache <<\_ACEOF
21373 # This file is a shell script that caches the results of configure
21374 # tests run on this system so they can be shared between configure
21375 # scripts and configure runs, see configure's option --config-cache.
21376 # It is not useful on other systems. If it contains results you don't
21377 # want to keep, you may remove or edit it.
21379 # config.status only pays attention to the cache file if you give it
21380 # the --recheck option to rerun configure.
21382 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21383 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21384 # following values.
21388 # The following way of writing the cache mishandles newlines in values,
21389 # but we know of no workaround that is simple, portable, and efficient.
21390 # So, we kill variables containing newlines.
21391 # Ultrix sh set writes to stderr and can't be redirected directly,
21392 # and sets the high bit in the cache file unless we assign to the vars.
21394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21395 eval ac_val=\$$ac_var
21399 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21400 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21403 _ | IFS | as_nl) ;; #(
21404 *) $as_unset $ac_var ;;
21410 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21411 *${as_nl}ac_space=\ *)
21412 # `set' does not quote correctly, so add quotes (double-quote
21413 # substitution turns \\\\ into \\, and sed turns \\ into \).
21416 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21419 # `set' quotes correctly as required by POSIX, so do not add quotes.
21420 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21429 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21431 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21433 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21434 if test -w "$cache_file"; then
21435 test "x$cache_file" != "x/dev/null" &&
21436 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21437 echo "$as_me: updating cache $cache_file" >&6;}
21438 cat confcache >$cache_file
21440 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21441 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21446 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21447 # Let make expand exec_prefix.
21448 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21450 DEFS=-DHAVE_CONFIG_H
21454 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21455 # 1. Remove the extension, and $U if already installed.
21456 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21457 ac_i=`echo "$ac_i" | sed "$ac_script"`
21458 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21459 # will be set to the directory where LIBOBJS objects are built.
21460 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21461 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21463 LIBOBJS=$ac_libobjs
21465 LTLIBOBJS=$ac_ltlibobjs
21468 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21469 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21470 Usually this means the macro was only invoked conditionally." >&5
21471 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21472 Usually this means the macro was only invoked conditionally." >&2;}
21473 { (exit 1); exit 1; }; }
21475 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21476 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21477 Usually this means the macro was only invoked conditionally." >&5
21478 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21479 Usually this means the macro was only invoked conditionally." >&2;}
21480 { (exit 1); exit 1; }; }
21483 : ${CONFIG_STATUS=./config.status}
21484 ac_clean_files_save=$ac_clean_files
21485 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21486 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21487 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21488 cat >$CONFIG_STATUS <<_ACEOF
21490 # Generated by $as_me.
21491 # Run this file to recreate the current configuration.
21492 # Compiler output produced by configure, useful for debugging
21493 # configure, is in config.log if it exists.
21496 ac_cs_recheck=false
21498 SHELL=\${CONFIG_SHELL-$SHELL}
21501 cat >>$CONFIG_STATUS <<\_ACEOF
21502 ## --------------------- ##
21503 ## M4sh Initialization. ##
21504 ## --------------------- ##
21506 # Be Bourne compatible
21507 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21510 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21511 # is contrary to our usage. Disable this feature.
21512 alias -g '${1+"$@"}'='"$@"'
21513 setopt NO_GLOB_SUBST
21515 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21517 BIN_SH=xpg4; export BIN_SH # for Tru64
21518 DUALCASE=1; export DUALCASE # for MKS sh
21522 # Avoid depending upon Character Ranges.
21523 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21524 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21525 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21526 as_cr_digits='0123456789'
21527 as_cr_alnum=$as_cr_Letters$as_cr_digits
21529 # The user is always right.
21530 if test "${PATH_SEPARATOR+set}" != set; then
21531 echo "#! /bin/sh" >conf$$.sh
21532 echo "exit 0" >>conf$$.sh
21534 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21542 # Support unset when possible.
21543 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21551 # We need space, tab and new line, in precisely that order. Quoting is
21552 # there to prevent editors from complaining about space-tab.
21553 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21554 # splitting by setting IFS to empty value.)
21559 # Find who we are. Look in the path if we contain no directory separator.
21561 *[\\/]* ) as_myself=$0 ;;
21562 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21563 for as_dir in $PATH
21566 test -z "$as_dir" && as_dir=.
21567 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21573 # We did not find ourselves, most probably we were run as `sh COMMAND'
21574 # in which case we are not to be found in the path.
21575 if test "x$as_myself" = x; then
21578 if test ! -f "$as_myself"; then
21579 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21580 { (exit 1); exit 1; }
21583 # Work around bugs in pre-3.0 UWIN ksh.
21584 for as_var in ENV MAIL MAILPATH
21585 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21593 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21594 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21595 LC_TELEPHONE LC_TIME
21597 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21598 eval $as_var=C; export $as_var
21600 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21604 # Required to use basename.
21605 if expr a : '\(a\)' >/dev/null 2>&1 &&
21606 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21612 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21613 as_basename=basename
21619 # Name of the executable.
21620 as_me=`$as_basename -- "$0" ||
21621 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21622 X"$0" : 'X\(//\)$' \| \
21623 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21625 sed '/^.*\/\([^/][^/]*\)\/*$/{
21644 as_lineno_1=$LINENO
21645 as_lineno_2=$LINENO
21646 test "x$as_lineno_1" != "x$as_lineno_2" &&
21647 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21649 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21650 # uniformly replaced by the line number. The first 'sed' inserts a
21651 # line-number line after each line using $LINENO; the second 'sed'
21652 # does the real work. The second script uses 'N' to pair each
21653 # line-number line with the line containing $LINENO, and appends
21654 # trailing '-' during substitution so that $LINENO is not a special
21655 # case at line end.
21656 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21657 # scripts with optimization help from Paolo Bonzini. Blame Lee
21658 # E. McMahon (1931-1989) for sed's syntax. :-)
21670 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21673 ' >$as_me.lineno &&
21674 chmod +x "$as_me.lineno" ||
21675 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21676 { (exit 1); exit 1; }; }
21678 # Don't try to exec as it changes $[0], causing all sort of problems
21679 # (the dirname of $[0] is not the place where we might find the
21680 # original and so on. Autoconf is especially sensitive to this).
21681 . "./$as_me.lineno"
21682 # Exit status is that of the last command.
21687 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21693 ECHO_C= ECHO_N= ECHO_T=
21694 case `echo -n x` in
21696 case `echo 'x\c'` in
21697 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21704 if expr a : '\(a\)' >/dev/null 2>&1 &&
21705 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21711 rm -f conf$$ conf$$.exe conf$$.file
21712 if test -d conf$$.dir; then
21713 rm -f conf$$.dir/conf$$.file
21719 if ln -s conf$$.file conf$$ 2>/dev/null; then
21721 # ... but there are two gotchas:
21722 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21723 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21724 # In both cases, we have to default to `cp -p'.
21725 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21727 elif ln conf$$.file conf$$ 2>/dev/null; then
21732 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21733 rmdir conf$$.dir 2>/dev/null
21735 if mkdir -p . 2>/dev/null; then
21738 test -d ./-p && rmdir ./-p
21742 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21743 # systems may use methods other than mode bits to determine executability.
21744 cat >conf$$.file <<_ASEOF
21748 chmod +x conf$$.file
21749 if test -x conf$$.file >/dev/null 2>&1; then
21750 as_executable_p="test -x"
21756 # Sed expression to map a string onto a valid CPP name.
21757 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21759 # Sed expression to map a string onto a valid variable name.
21760 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21765 # Save the log message, to keep $[0] and so on meaningful, and to
21766 # report actual input values of CONFIG_FILES etc. instead of their
21767 # values after options handling.
21769 This file was extended by LLVM $as_me 3.2svn, which was
21770 generated by GNU Autoconf 2.60. Invocation command line was
21772 CONFIG_FILES = $CONFIG_FILES
21773 CONFIG_HEADERS = $CONFIG_HEADERS
21774 CONFIG_LINKS = $CONFIG_LINKS
21775 CONFIG_COMMANDS = $CONFIG_COMMANDS
21778 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21783 cat >>$CONFIG_STATUS <<_ACEOF
21784 # Files that config.status was made for.
21785 config_files="$ac_config_files"
21786 config_headers="$ac_config_headers"
21787 config_commands="$ac_config_commands"
21791 cat >>$CONFIG_STATUS <<\_ACEOF
21793 \`$as_me' instantiates files from templates according to the
21794 current configuration.
21796 Usage: $0 [OPTIONS] [FILE]...
21798 -h, --help print this help, then exit
21799 -V, --version print version number, then exit
21800 -q, --quiet do not print progress messages
21801 -d, --debug don't remove temporary files
21802 --recheck update $as_me by reconfiguring in the same conditions
21803 --file=FILE[:TEMPLATE]
21804 instantiate the configuration file FILE
21805 --header=FILE[:TEMPLATE]
21806 instantiate the configuration header FILE
21808 Configuration files:
21811 Configuration headers:
21814 Configuration commands:
21817 Report bugs to <bug-autoconf@gnu.org>."
21820 cat >>$CONFIG_STATUS <<_ACEOF
21822 LLVM config.status 3.2svn
21823 configured by $0, generated by GNU Autoconf 2.60,
21824 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21826 Copyright (C) 2006 Free Software Foundation, Inc.
21827 This config.status script is free software; the Free Software Foundation
21828 gives unlimited permission to copy, distribute and modify it."
21835 cat >>$CONFIG_STATUS <<\_ACEOF
21836 # If no file are specified by the user, then we need to provide default
21837 # value. By we need to know if files were specified by the user.
21843 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21844 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21855 # Handling of the options.
21856 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21858 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21859 echo "$ac_cs_version"; exit ;;
21860 --debug | --debu | --deb | --de | --d | -d )
21862 --file | --fil | --fi | --f )
21864 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21865 ac_need_defaults=false;;
21866 --header | --heade | --head | --hea )
21868 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21869 ac_need_defaults=false;;
21871 # Conflict between --help and --header
21872 { echo "$as_me: error: ambiguous option: $1
21873 Try \`$0 --help' for more information." >&2
21874 { (exit 1); exit 1; }; };;
21875 --help | --hel | -h )
21876 echo "$ac_cs_usage"; exit ;;
21877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21881 # This is an error.
21882 -*) { echo "$as_me: error: unrecognized option: $1
21883 Try \`$0 --help' for more information." >&2
21884 { (exit 1); exit 1; }; } ;;
21886 *) ac_config_targets="$ac_config_targets $1"
21887 ac_need_defaults=false ;;
21893 ac_configure_extra_args=
21895 if $ac_cs_silent; then
21897 ac_configure_extra_args="$ac_configure_extra_args --silent"
21901 cat >>$CONFIG_STATUS <<_ACEOF
21902 if \$ac_cs_recheck; then
21903 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21904 CONFIG_SHELL=$SHELL
21905 export CONFIG_SHELL
21906 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21910 cat >>$CONFIG_STATUS <<\_ACEOF
21914 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21915 ## Running $as_me. ##
21921 cat >>$CONFIG_STATUS <<_ACEOF
21925 llvm_src="${srcdir}"
21929 cat >>$CONFIG_STATUS <<\_ACEOF
21931 # Handling of arguments.
21932 for ac_config_target in $ac_config_targets
21934 case $ac_config_target in
21935 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21936 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21937 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21938 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21939 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21940 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21941 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21942 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21943 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21944 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21945 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21946 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21947 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21948 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21949 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21950 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21951 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21952 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21953 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21954 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21955 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21956 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21957 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21958 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21959 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21960 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21961 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21963 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21964 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21965 { (exit 1); exit 1; }; };;
21970 # If the user did not use the arguments to specify the items to instantiate,
21971 # then the envvar interface is used. Set only those that are not.
21972 # We use the long form for the default assignment because of an extremely
21973 # bizarre bug on SunOS 4.1.3.
21974 if $ac_need_defaults; then
21975 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21976 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21977 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21980 # Have a temporary directory for convenience. Make it in the build tree
21981 # simply because there is no reason against having it here, and in addition,
21982 # creating and moving files from /tmp can sometimes cause problems.
21983 # Hook for its removal unless debugging.
21984 # Note that there is a small window in which the directory will not be cleaned:
21985 # after its creation but before its name has been assigned to `$tmp'.
21989 trap 'exit_status=$?
21990 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21992 trap '{ (exit 1); exit 1; }' 1 2 13 15
21994 # Create a (secure) tmp directory for tmp files.
21997 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21998 test -n "$tmp" && test -d "$tmp"
22001 tmp=./conf$$-$RANDOM
22002 (umask 077 && mkdir "$tmp")
22005 echo "$me: cannot create a temporary directory in ." >&2
22006 { (exit 1); exit 1; }
22010 # Set up the sed scripts for CONFIG_FILES section.
22013 # No need to generate the scripts if there are no CONFIG_FILES.
22014 # This happens for instance when ./config.status config.h
22015 if test -n "$CONFIG_FILES"; then
22022 for ac_last_try in false false false false false :; do
22023 cat >conf$$subs.sed <<_ACEOF
22024 SHELL!$SHELL$ac_delim
22025 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22026 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22027 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22028 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22029 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22030 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22031 exec_prefix!$exec_prefix$ac_delim
22032 prefix!$prefix$ac_delim
22033 program_transform_name!$program_transform_name$ac_delim
22034 bindir!$bindir$ac_delim
22035 sbindir!$sbindir$ac_delim
22036 libexecdir!$libexecdir$ac_delim
22037 datarootdir!$datarootdir$ac_delim
22038 datadir!$datadir$ac_delim
22039 sysconfdir!$sysconfdir$ac_delim
22040 sharedstatedir!$sharedstatedir$ac_delim
22041 localstatedir!$localstatedir$ac_delim
22042 includedir!$includedir$ac_delim
22043 oldincludedir!$oldincludedir$ac_delim
22044 docdir!$docdir$ac_delim
22045 infodir!$infodir$ac_delim
22046 htmldir!$htmldir$ac_delim
22047 dvidir!$dvidir$ac_delim
22048 pdfdir!$pdfdir$ac_delim
22049 psdir!$psdir$ac_delim
22050 libdir!$libdir$ac_delim
22051 localedir!$localedir$ac_delim
22052 mandir!$mandir$ac_delim
22053 DEFS!$DEFS$ac_delim
22054 ECHO_C!$ECHO_C$ac_delim
22055 ECHO_N!$ECHO_N$ac_delim
22056 ECHO_T!$ECHO_T$ac_delim
22057 LIBS!$LIBS$ac_delim
22058 build_alias!$build_alias$ac_delim
22059 host_alias!$host_alias$ac_delim
22060 target_alias!$target_alias$ac_delim
22061 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22063 CFLAGS!$CFLAGS$ac_delim
22064 LDFLAGS!$LDFLAGS$ac_delim
22065 CPPFLAGS!$CPPFLAGS$ac_delim
22066 ac_ct_CC!$ac_ct_CC$ac_delim
22067 EXEEXT!$EXEEXT$ac_delim
22068 OBJEXT!$OBJEXT$ac_delim
22070 CXXFLAGS!$CXXFLAGS$ac_delim
22071 ac_ct_CXX!$ac_ct_CXX$ac_delim
22073 subdirs!$subdirs$ac_delim
22074 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22075 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22076 build!$build$ac_delim
22077 build_cpu!$build_cpu$ac_delim
22078 build_vendor!$build_vendor$ac_delim
22079 build_os!$build_os$ac_delim
22080 host!$host$ac_delim
22081 host_cpu!$host_cpu$ac_delim
22082 host_vendor!$host_vendor$ac_delim
22083 host_os!$host_os$ac_delim
22084 target!$target$ac_delim
22085 target_cpu!$target_cpu$ac_delim
22086 target_vendor!$target_vendor$ac_delim
22087 target_os!$target_os$ac_delim
22089 HOST_OS!$HOST_OS$ac_delim
22090 TARGET_OS!$TARGET_OS$ac_delim
22091 LINKALL!$LINKALL$ac_delim
22092 NOLINKALL!$NOLINKALL$ac_delim
22093 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22094 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22095 ARCH!$ARCH$ac_delim
22096 HOST_ARCH!$HOST_ARCH$ac_delim
22097 ENDIAN!$ENDIAN$ac_delim
22098 GREP!$GREP$ac_delim
22099 EGREP!$EGREP$ac_delim
22100 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22101 BUILD_CC!$BUILD_CC$ac_delim
22102 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22103 BUILD_CXX!$BUILD_CXX$ac_delim
22104 CVSBUILD!$CVSBUILD$ac_delim
22105 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22106 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22107 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22108 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22109 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22110 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22111 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22112 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22113 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22115 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22116 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22117 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22118 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22119 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22120 ENABLE_PIC!$ENABLE_PIC$ac_delim
22123 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22125 elif $ac_last_try; then
22126 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22127 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22128 { (exit 1); exit 1; }; }
22130 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22134 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22135 if test -n "$ac_eof"; then
22136 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22137 ac_eof=`expr $ac_eof + 1`
22140 cat >>$CONFIG_STATUS <<_ACEOF
22141 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22145 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22146 s/^/s,@/; s/!/@,|#_!!_#|/
22149 s/'"$ac_delim"'$/,g/; t
22151 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22152 ' >>$CONFIG_STATUS <conf$$subs.sed
22153 rm -f conf$$subs.sed
22154 cat >>$CONFIG_STATUS <<_ACEOF
22160 for ac_last_try in false false false false false :; do
22161 cat >conf$$subs.sed <<_ACEOF
22162 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22163 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22164 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22165 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22166 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22167 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22168 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22169 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22170 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22171 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22172 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22173 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22174 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22175 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22177 ifGNUmake!$ifGNUmake$ac_delim
22178 LN_S!$LN_S$ac_delim
22181 DATE!$DATE$ac_delim
22182 FIND!$FIND$ac_delim
22183 MKDIR!$MKDIR$ac_delim
22185 RANLIB!$RANLIB$ac_delim
22190 BINPWD!$BINPWD$ac_delim
22191 GRAPHVIZ!$GRAPHVIZ$ac_delim
22194 NEATO!$NEATO$ac_delim
22195 TWOPI!$TWOPI$ac_delim
22196 CIRCO!$CIRCO$ac_delim
22198 DOTTY!$DOTTY$ac_delim
22199 XDOT_PY!$XDOT_PY$ac_delim
22200 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22201 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22202 INSTALL_DATA!$INSTALL_DATA$ac_delim
22203 BZIP2!$BZIP2$ac_delim
22205 DOXYGEN!$DOXYGEN$ac_delim
22206 GROFF!$GROFF$ac_delim
22207 GZIPBIN!$GZIPBIN$ac_delim
22208 PDFROFF!$PDFROFF$ac_delim
22210 OCAMLC!$OCAMLC$ac_delim
22211 OCAMLOPT!$OCAMLOPT$ac_delim
22212 OCAMLDEP!$OCAMLDEP$ac_delim
22213 OCAMLDOC!$OCAMLDOC$ac_delim
22215 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22216 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22217 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22218 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22219 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22220 LIBADD_DL!$LIBADD_DL$ac_delim
22221 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22222 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22223 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22224 USE_UDIS86!$USE_UDIS86$ac_delim
22225 USE_OPROFILE!$USE_OPROFILE$ac_delim
22226 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22227 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22228 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22229 XML2CONFIG!$XML2CONFIG$ac_delim
22230 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22231 LIBXML2_INC!$LIBXML2_INC$ac_delim
22232 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22233 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22234 MMAP_FILE!$MMAP_FILE$ac_delim
22235 SHLIBEXT!$SHLIBEXT$ac_delim
22236 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22237 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22238 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22239 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22240 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22241 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22242 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22243 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22244 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22245 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22246 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22247 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22248 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22249 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22250 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22251 RPATH!$RPATH$ac_delim
22252 RDYNAMIC!$RDYNAMIC$ac_delim
22253 LIBOBJS!$LIBOBJS$ac_delim
22254 LTLIBOBJS!$LTLIBOBJS$ac_delim
22257 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
22259 elif $ac_last_try; then
22260 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22261 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22262 { (exit 1); exit 1; }; }
22264 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22268 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22269 if test -n "$ac_eof"; then
22270 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22271 ac_eof=`expr $ac_eof + 1`
22274 cat >>$CONFIG_STATUS <<_ACEOF
22275 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22279 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22280 s/^/s,@/; s/!/@,|#_!!_#|/
22283 s/'"$ac_delim"'$/,g/; t
22285 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22286 ' >>$CONFIG_STATUS <conf$$subs.sed
22287 rm -f conf$$subs.sed
22288 cat >>$CONFIG_STATUS <<_ACEOF
22295 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22296 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22297 # trailing colons and then remove the whole line if VPATH becomes empty
22298 # (actually we leave an empty line to preserve line numbers).
22299 if test "x$srcdir" = x.; then
22300 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22301 s/:*\$(srcdir):*/:/
22302 s/:*\${srcdir}:*/:/
22304 s/^\([^=]*=[ ]*\):*/\1/
22310 cat >>$CONFIG_STATUS <<\_ACEOF
22311 fi # test -n "$CONFIG_FILES"
22314 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22317 :[FHLC]) ac_mode=$ac_tag; continue;;
22319 case $ac_mode$ac_tag in
22321 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22322 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22323 { (exit 1); exit 1; }; };;
22324 :[FH]-) ac_tag=-:-;;
22325 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22342 -) ac_f="$tmp/stdin";;
22343 *) # Look for the file first in the build tree, then in the source tree
22344 # (if the path is not absolute). The absolute path cannot be DOS-style,
22345 # because $ac_f cannot contain `:'.
22349 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22351 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22352 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22353 { (exit 1); exit 1; }; };;
22355 ac_file_inputs="$ac_file_inputs $ac_f"
22358 # Let's still pretend it is `configure' which instantiates (i.e., don't
22359 # use $as_me), people would be surprised to read:
22360 # /* config.h. Generated by config.status. */
22361 configure_input="Generated from "`IFS=:
22362 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22363 if test x"$ac_file" != x-; then
22364 configure_input="$ac_file. $configure_input"
22365 { echo "$as_me:$LINENO: creating $ac_file" >&5
22366 echo "$as_me: creating $ac_file" >&6;}
22370 *:-:* | *:-) cat >"$tmp/stdin";;
22375 ac_dir=`$as_dirname -- "$ac_file" ||
22376 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22377 X"$ac_file" : 'X\(//\)[^/]' \| \
22378 X"$ac_file" : 'X\(//\)$' \| \
22379 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22381 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22385 /^X\(\/\/\)[^/].*/{
22400 -*) as_dir=./$as_dir;;
22402 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22406 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22407 *) as_qdir=$as_dir;;
22409 as_dirs="'$as_qdir' $as_dirs"
22410 as_dir=`$as_dirname -- "$as_dir" ||
22411 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22412 X"$as_dir" : 'X\(//\)[^/]' \| \
22413 X"$as_dir" : 'X\(//\)$' \| \
22414 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22416 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22420 /^X\(\/\/\)[^/].*/{
22433 test -d "$as_dir" && break
22435 test -z "$as_dirs" || eval "mkdir $as_dirs"
22436 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22437 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22438 { (exit 1); exit 1; }; }; }
22442 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22444 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22445 # A ".." for each directory in $ac_dir_suffix.
22446 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22447 case $ac_top_builddir_sub in
22448 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22449 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22452 ac_abs_top_builddir=$ac_pwd
22453 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22454 # for backward compatibility:
22455 ac_top_builddir=$ac_top_build_prefix
22458 .) # We are building in place.
22460 ac_top_srcdir=$ac_top_builddir_sub
22461 ac_abs_top_srcdir=$ac_pwd ;;
22462 [\\/]* | ?:[\\/]* ) # Absolute name.
22463 ac_srcdir=$srcdir$ac_dir_suffix;
22464 ac_top_srcdir=$srcdir
22465 ac_abs_top_srcdir=$srcdir ;;
22466 *) # Relative name.
22467 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22468 ac_top_srcdir=$ac_top_build_prefix$srcdir
22469 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22471 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22481 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22482 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22486 cat >>$CONFIG_STATUS <<\_ACEOF
22487 # If the template does not know about datarootdir, expand it.
22488 # FIXME: This hack should be removed a few years after 2.60.
22489 ac_datarootdir_hack=; ac_datarootdir_seen=
22491 case `sed -n '/datarootdir/ {
22500 ' $ac_file_inputs` in
22501 *datarootdir*) ac_datarootdir_seen=yes;;
22502 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22503 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22504 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22506 cat >>$CONFIG_STATUS <<_ACEOF
22507 ac_datarootdir_hack='
22508 s&@datadir@&$datadir&g
22509 s&@docdir@&$docdir&g
22510 s&@infodir@&$infodir&g
22511 s&@localedir@&$localedir&g
22512 s&@mandir@&$mandir&g
22513 s&\\\${datarootdir}&$datarootdir&g' ;;
22517 # Neutralize VPATH when `$srcdir' = `.'.
22518 # Shell code in configure.ac might set extrasub.
22519 # FIXME: do we really want to maintain this feature?
22520 cat >>$CONFIG_STATUS <<_ACEOF
22524 cat >>$CONFIG_STATUS <<\_ACEOF
22526 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22527 s&@configure_input@&$configure_input&;t t
22528 s&@top_builddir@&$ac_top_builddir_sub&;t t
22529 s&@srcdir@&$ac_srcdir&;t t
22530 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22531 s&@top_srcdir@&$ac_top_srcdir&;t t
22532 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22533 s&@builddir@&$ac_builddir&;t t
22534 s&@abs_builddir@&$ac_abs_builddir&;t t
22535 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22536 s&@INSTALL@&$ac_INSTALL&;t t
22537 $ac_datarootdir_hack
22538 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22540 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22541 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22542 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22543 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22544 which seems to be undefined. Please make sure it is defined." >&5
22545 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22546 which seems to be undefined. Please make sure it is defined." >&2;}
22550 -) cat "$tmp/out"; rm -f "$tmp/out";;
22551 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22560 # Transform confdefs.h into a sed script `conftest.defines', that
22561 # substitutes the proper values into config.h.in to produce config.h.
22562 rm -f conftest.defines conftest.tail
22563 # First, append a space to every undef/define line, to ease matching.
22564 echo 's/$/ /' >conftest.defines
22565 # Then, protect against being on the right side of a sed subst, or in
22566 # an unquoted here document, in config.status. If some macros were
22567 # called several times there might be several #defines for the same
22568 # symbol, which is useless. But do not sort them, since the last
22569 # AC_DEFINE must be honored.
22570 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22571 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22572 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22573 # PARAMS is the parameter list in the macro definition--in most cases, it's
22574 # just an empty string.
22575 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22576 ac_dB='\\)[ (].*,\\1define\\2'
22584 s/^[ ]*#[ ]*define[ ][ ]*//
22589 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22590 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22591 ' >>conftest.defines
22593 # Remove the space that was appended to ease matching.
22594 # Then replace #undef with comments. This is necessary, for
22595 # example, in the case of _POSIX_SOURCE, which is predefined and required
22596 # on some systems where configure will not decide to define it.
22597 # (The regexp can be short, since the line contains either #define or #undef.)
22599 s,^[ #]*u.*,/* & */,' >>conftest.defines
22601 # Break up conftest.defines:
22602 ac_max_sed_lines=50
22604 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22605 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22606 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22608 ac_in='$ac_file_inputs'
22609 ac_out='"$tmp/out1"'
22610 ac_nxt='"$tmp/out2"'
22614 # Write a here document:
22615 cat >>$CONFIG_STATUS <<_ACEOF
22616 # First, check the format of the line:
22617 cat >"\$tmp/defines.sed" <<\\CEOF
22618 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22619 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22623 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22625 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22626 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22627 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22628 grep . conftest.tail >/dev/null || break
22629 rm -f conftest.defines
22630 mv conftest.tail conftest.defines
22632 rm -f conftest.defines conftest.tail
22634 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22635 cat >>$CONFIG_STATUS <<\_ACEOF
22636 if test x"$ac_file" != x-; then
22637 echo "/* $configure_input */" >"$tmp/config.h"
22638 cat "$ac_result" >>"$tmp/config.h"
22639 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22640 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22641 echo "$as_me: $ac_file is unchanged" >&6;}
22644 mv "$tmp/config.h" $ac_file
22647 echo "/* $configure_input */"
22653 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22654 echo "$as_me: executing $ac_file commands" >&6;}
22659 case $ac_file$ac_mode in
22660 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22661 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22662 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22663 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22664 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22665 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22666 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22667 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22668 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22669 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22670 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22671 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22672 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22673 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22674 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22675 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22676 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22677 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22678 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22679 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22680 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22681 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22682 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22683 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22684 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22685 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22691 { (exit 0); exit 0; }
22693 chmod +x $CONFIG_STATUS
22694 ac_clean_files=$ac_clean_files_save
22697 # configure is writing to config.log, and then calls config.status.
22698 # config.status does its own redirection, appending to config.log.
22699 # Unfortunately, on DOS this fails, as config.log is still kept open
22700 # by configure, so config.status won't be able to write to it; its
22701 # output is simply discarded. So we exec the FD to /dev/null,
22702 # effectively closing config.log, so it can be properly (re)opened and
22703 # appended to by config.status. When coming back to configure, we
22704 # need to make the FD available again.
22705 if test "$no_create" != yes; then
22707 ac_config_status_args=
22708 test "$silent" = yes &&
22709 ac_config_status_args="$ac_config_status_args --quiet"
22711 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22713 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22714 # would make configure fail if this is the last instruction.
22715 $ac_cs_success || { (exit 1); exit 1; }
22719 # CONFIG_SUBDIRS section.
22721 if test "$no_recursion" != yes; then
22723 # Remove --cache-file and --srcdir arguments so they do not pile up.
22724 ac_sub_configure_args=
22726 eval "set x $ac_configure_args"
22730 if test -n "$ac_prev"; then
22735 -cache-file | --cache-file | --cache-fil | --cache-fi \
22736 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22737 ac_prev=cache_file ;;
22738 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22739 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22742 --config-cache | -C)
22744 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22746 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22748 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22750 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22754 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22756 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22760 # Always prepend --prefix to ensure using the same prefix
22761 # in subdir configurations.
22762 ac_arg="--prefix=$prefix"
22764 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22766 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22769 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22771 # Do not complain, so a configure script can configure whichever
22772 # parts of a large source tree are present.
22773 test -d "$srcdir/$ac_dir" || continue
22775 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22776 echo "$as_me:$LINENO: $ac_msg" >&5
22780 -*) as_dir=./$as_dir;;
22782 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22786 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22787 *) as_qdir=$as_dir;;
22789 as_dirs="'$as_qdir' $as_dirs"
22790 as_dir=`$as_dirname -- "$as_dir" ||
22791 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22792 X"$as_dir" : 'X\(//\)[^/]' \| \
22793 X"$as_dir" : 'X\(//\)$' \| \
22794 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22796 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22800 /^X\(\/\/\)[^/].*/{
22813 test -d "$as_dir" && break
22815 test -z "$as_dirs" || eval "mkdir $as_dirs"
22816 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22817 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22818 { (exit 1); exit 1; }; }; }
22822 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22824 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22825 # A ".." for each directory in $ac_dir_suffix.
22826 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22827 case $ac_top_builddir_sub in
22828 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22829 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22832 ac_abs_top_builddir=$ac_pwd
22833 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22834 # for backward compatibility:
22835 ac_top_builddir=$ac_top_build_prefix
22838 .) # We are building in place.
22840 ac_top_srcdir=$ac_top_builddir_sub
22841 ac_abs_top_srcdir=$ac_pwd ;;
22842 [\\/]* | ?:[\\/]* ) # Absolute name.
22843 ac_srcdir=$srcdir$ac_dir_suffix;
22844 ac_top_srcdir=$srcdir
22845 ac_abs_top_srcdir=$srcdir ;;
22846 *) # Relative name.
22847 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22848 ac_top_srcdir=$ac_top_build_prefix$srcdir
22849 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22851 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22856 # Check for guested configure; otherwise get Cygnus style configure.
22857 if test -f "$ac_srcdir/configure.gnu"; then
22858 ac_sub_configure=$ac_srcdir/configure.gnu
22859 elif test -f "$ac_srcdir/configure"; then
22860 ac_sub_configure=$ac_srcdir/configure
22861 elif test -f "$ac_srcdir/configure.in"; then
22862 # This should be Cygnus configure.
22863 ac_sub_configure=$ac_aux_dir/configure
22865 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22866 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22870 # The recursion is here.
22871 if test -n "$ac_sub_configure"; then
22872 # Make the cache file name correct relative to the subdirectory.
22873 case $cache_file in
22874 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22875 *) # Relative name.
22876 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22879 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22880 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22881 # The eval makes quoting arguments work.
22882 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22883 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22884 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22885 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22886 { (exit 1); exit 1; }; }