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
692 ENABLE_EXPENSIVE_CHECKS
708 LLVM_ENUM_ASM_PRINTERS
709 LLVM_ENUM_ASM_PARSERS
710 LLVM_ENUM_DISASSEMBLERS
756 HAVE_LINK_VERSION_SCRIPT
759 CONVENIENCE_LTDL_TRUE
760 CONVENIENCE_LTDL_FALSE
763 NO_MISSING_FIELD_INITIALIZERS
764 COVERED_SWITCH_DEFAULT
768 INTEL_JITEVENTS_INCDIR
769 INTEL_JITEVENTS_LIBDIR
791 ENABLE_VISIBILITY_INLINES_HIDDEN
797 ac_precious_vars='build_alias
808 ac_subdirs_all='projects/llvm-gcc
812 projects/llvm-poolalloc
815 projects/llvm-stacker
823 # Initialize some variables set by options.
825 ac_init_version=false
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
835 program_transform_name=s,x,x,
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 includedir='${prefix}/include'
858 oldincludedir='/usr/include'
859 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
860 infodir='${datarootdir}/info'
865 libdir='${exec_prefix}/lib'
866 localedir='${datarootdir}/locale'
867 mandir='${datarootdir}/man'
873 # If the previous option needs an argument, assign it.
874 if test -n "$ac_prev"; then
875 eval $ac_prev=\$ac_option
881 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
885 # Accept the important Cygnus configure options, so we can diagnose typos.
887 case $ac_dashdash$ac_option in
891 -bindir | --bindir | --bindi | --bind | --bin | --bi)
893 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 -build | --build | --buil | --bui | --bu)
897 ac_prev=build_alias ;;
898 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899 build_alias=$ac_optarg ;;
901 -cache-file | --cache-file | --cache-fil | --cache-fi \
902 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903 ac_prev=cache_file ;;
904 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906 cache_file=$ac_optarg ;;
909 cache_file=config.cache ;;
911 -datadir | --datadir | --datadi | --datad)
913 -datadir=* | --datadir=* | --datadi=* | --datad=*)
914 datadir=$ac_optarg ;;
916 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917 | --dataroo | --dataro | --datar)
918 ac_prev=datarootdir ;;
919 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921 datarootdir=$ac_optarg ;;
923 -disable-* | --disable-*)
924 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925 # Reject names that are not valid shell variable names.
926 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
927 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
928 { (exit 1); exit 1; }; }
929 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
930 eval enable_$ac_feature=no ;;
932 -docdir | --docdir | --docdi | --doc | --do)
934 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
937 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
939 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
942 -enable-* | --enable-*)
943 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
944 # Reject names that are not valid shell variable names.
945 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
946 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
947 { (exit 1); exit 1; }; }
948 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
949 eval enable_$ac_feature=\$ac_optarg ;;
951 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
952 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
953 | --exec | --exe | --ex)
954 ac_prev=exec_prefix ;;
955 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
956 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
957 | --exec=* | --exe=* | --ex=*)
958 exec_prefix=$ac_optarg ;;
960 -gas | --gas | --ga | --g)
961 # Obsolete; use --with-gas.
964 -help | --help | --hel | --he | -h)
966 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
967 ac_init_help=recursive ;;
968 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
969 ac_init_help=short ;;
971 -host | --host | --hos | --ho)
972 ac_prev=host_alias ;;
973 -host=* | --host=* | --hos=* | --ho=*)
974 host_alias=$ac_optarg ;;
976 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 htmldir=$ac_optarg ;;
982 -includedir | --includedir | --includedi | --included | --include \
983 | --includ | --inclu | --incl | --inc)
984 ac_prev=includedir ;;
985 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
986 | --includ=* | --inclu=* | --incl=* | --inc=*)
987 includedir=$ac_optarg ;;
989 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
992 infodir=$ac_optarg ;;
994 -libdir | --libdir | --libdi | --libd)
996 -libdir=* | --libdir=* | --libdi=* | --libd=*)
999 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1000 | --libexe | --libex | --libe)
1001 ac_prev=libexecdir ;;
1002 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1003 | --libexe=* | --libex=* | --libe=*)
1004 libexecdir=$ac_optarg ;;
1006 -localedir | --localedir | --localedi | --localed | --locale)
1007 ac_prev=localedir ;;
1008 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1009 localedir=$ac_optarg ;;
1011 -localstatedir | --localstatedir | --localstatedi | --localstated \
1012 | --localstate | --localstat | --localsta | --localst | --locals)
1013 ac_prev=localstatedir ;;
1014 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1015 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1016 localstatedir=$ac_optarg ;;
1018 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1021 mandir=$ac_optarg ;;
1023 -nfp | --nfp | --nf)
1024 # Obsolete; use --without-fp.
1027 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1028 | --no-cr | --no-c | -n)
1031 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1032 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1035 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1036 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1037 | --oldin | --oldi | --old | --ol | --o)
1038 ac_prev=oldincludedir ;;
1039 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1040 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1041 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1042 oldincludedir=$ac_optarg ;;
1044 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1047 prefix=$ac_optarg ;;
1049 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1050 | --program-pre | --program-pr | --program-p)
1051 ac_prev=program_prefix ;;
1052 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1053 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1054 program_prefix=$ac_optarg ;;
1056 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1057 | --program-suf | --program-su | --program-s)
1058 ac_prev=program_suffix ;;
1059 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1060 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1061 program_suffix=$ac_optarg ;;
1063 -program-transform-name | --program-transform-name \
1064 | --program-transform-nam | --program-transform-na \
1065 | --program-transform-n | --program-transform- \
1066 | --program-transform | --program-transfor \
1067 | --program-transfo | --program-transf \
1068 | --program-trans | --program-tran \
1069 | --progr-tra | --program-tr | --program-t)
1070 ac_prev=program_transform_name ;;
1071 -program-transform-name=* | --program-transform-name=* \
1072 | --program-transform-nam=* | --program-transform-na=* \
1073 | --program-transform-n=* | --program-transform-=* \
1074 | --program-transform=* | --program-transfor=* \
1075 | --program-transfo=* | --program-transf=* \
1076 | --program-trans=* | --program-tran=* \
1077 | --progr-tra=* | --program-tr=* | --program-t=*)
1078 program_transform_name=$ac_optarg ;;
1080 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1083 pdfdir=$ac_optarg ;;
1085 -psdir | --psdir | --psdi | --psd | --ps)
1087 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1090 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1091 | -silent | --silent | --silen | --sile | --sil)
1094 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 sbindir=$ac_optarg ;;
1100 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1101 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1102 | --sharedst | --shareds | --shared | --share | --shar \
1104 ac_prev=sharedstatedir ;;
1105 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1106 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1107 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 sharedstatedir=$ac_optarg ;;
1111 -site | --site | --sit)
1113 -site=* | --site=* | --sit=*)
1116 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1119 srcdir=$ac_optarg ;;
1121 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1122 | --syscon | --sysco | --sysc | --sys | --sy)
1123 ac_prev=sysconfdir ;;
1124 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1125 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1126 sysconfdir=$ac_optarg ;;
1128 -target | --target | --targe | --targ | --tar | --ta | --t)
1129 ac_prev=target_alias ;;
1130 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1131 target_alias=$ac_optarg ;;
1133 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1136 -version | --version | --versio | --versi | --vers | -V)
1137 ac_init_version=: ;;
1140 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1141 # Reject names that are not valid shell variable names.
1142 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1143 { echo "$as_me: error: invalid package name: $ac_package" >&2
1144 { (exit 1); exit 1; }; }
1145 ac_package=`echo $ac_package| sed 's/-/_/g'`
1146 eval with_$ac_package=\$ac_optarg ;;
1148 -without-* | --without-*)
1149 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1150 # Reject names that are not valid shell variable names.
1151 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1152 { echo "$as_me: error: invalid package name: $ac_package" >&2
1153 { (exit 1); exit 1; }; }
1154 ac_package=`echo $ac_package | sed 's/-/_/g'`
1155 eval with_$ac_package=no ;;
1158 # Obsolete; use --with-x.
1161 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1162 | --x-incl | --x-inc | --x-in | --x-i)
1163 ac_prev=x_includes ;;
1164 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1165 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1166 x_includes=$ac_optarg ;;
1168 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1169 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1170 ac_prev=x_libraries ;;
1171 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1172 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1173 x_libraries=$ac_optarg ;;
1175 -*) { echo "$as_me: error: unrecognized option: $ac_option
1176 Try \`$0 --help' for more information." >&2
1177 { (exit 1); exit 1; }; }
1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1182 # Reject names that are not valid shell variable names.
1183 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1184 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1185 { (exit 1); exit 1; }; }
1186 eval $ac_envvar=\$ac_optarg
1187 export $ac_envvar ;;
1190 # FIXME: should be removed in autoconf 3.0.
1191 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1192 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1193 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1194 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1200 if test -n "$ac_prev"; then
1201 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1202 { echo "$as_me: error: missing argument to $ac_option" >&2
1203 { (exit 1); exit 1; }; }
1206 # Be sure to have absolute directory names.
1207 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1208 datadir sysconfdir sharedstatedir localstatedir includedir \
1209 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1210 libdir localedir mandir
1212 eval ac_val=\$$ac_var
1214 [\\/$]* | ?:[\\/]* ) continue;;
1215 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1217 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1218 { (exit 1); exit 1; }; }
1221 # There might be people who depend on the old broken behavior: `$host'
1222 # used to hold the argument of --host etc.
1223 # FIXME: To remove some day.
1226 target=$target_alias
1228 # FIXME: To remove some day.
1229 if test "x$host_alias" != x; then
1230 if test "x$build_alias" = x; then
1231 cross_compiling=maybe
1232 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1233 If a cross compiler is detected then cross compile mode will be used." >&2
1234 elif test "x$build_alias" != "x$host_alias"; then
1240 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1242 test "$silent" = yes && exec 6>/dev/null
1245 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1246 ac_ls_di=`ls -di .` &&
1247 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1248 { echo "$as_me: error: Working directory cannot be determined" >&2
1249 { (exit 1); exit 1; }; }
1250 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 { echo "$as_me: error: pwd does not report name of working directory" >&2
1252 { (exit 1); exit 1; }; }
1255 # Find the source files, if location was not specified.
1256 if test -z "$srcdir"; then
1257 ac_srcdir_defaulted=yes
1258 # Try the directory containing this script, then the parent directory.
1259 ac_confdir=`$as_dirname -- "$0" ||
1260 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1261 X"$0" : 'X\(//\)[^/]' \| \
1262 X"$0" : 'X\(//\)$' \| \
1263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1265 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 if test ! -r "$srcdir/$ac_unique_file"; then
1287 ac_srcdir_defaulted=no
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1291 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1292 { (exit 1); exit 1; }; }
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1296 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1297 { (exit 1); exit 1; }; }
1299 # When building in place, set srcdir=.
1300 if test "$ac_abs_confdir" = "$ac_pwd"; then
1303 # Remove unnecessary trailing slashes from srcdir.
1304 # Double slashes in file names in object file debugging info
1305 # mess up M-x gdb in Emacs.
1307 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1309 for ac_var in $ac_precious_vars; do
1310 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1311 eval ac_env_${ac_var}_value=\$${ac_var}
1312 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1313 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1317 # Report the --help message.
1319 if test "$ac_init_help" = "long"; then
1320 # Omit some internal or obsolete options to make the list less imposing.
1321 # This message is too long to be a string in the A/UX 3.1 sh.
1323 \`configure' configures LLVM 3.2svn to adapt to many kinds of systems.
1325 Usage: $0 [OPTION]... [VAR=VALUE]...
1327 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1328 VAR=VALUE. See below for descriptions of some of the useful variables.
1330 Defaults for the options are specified in brackets.
1333 -h, --help display this help and exit
1334 --help=short display options specific to this package
1335 --help=recursive display the short help of all the included packages
1336 -V, --version display version information and exit
1337 -q, --quiet, --silent do not print \`checking...' messages
1338 --cache-file=FILE cache test results in FILE [disabled]
1339 -C, --config-cache alias for \`--cache-file=config.cache'
1340 -n, --no-create do not create output files
1341 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1343 Installation directories:
1344 --prefix=PREFIX install architecture-independent files in PREFIX
1345 [$ac_default_prefix]
1346 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1349 By default, \`make install' will install all the files in
1350 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1351 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1352 for instance \`--prefix=\$HOME'.
1354 For better control, use the options below.
1356 Fine tuning of the installation directories:
1357 --bindir=DIR user executables [EPREFIX/bin]
1358 --sbindir=DIR system admin executables [EPREFIX/sbin]
1359 --libexecdir=DIR program executables [EPREFIX/libexec]
1360 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1361 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1362 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1363 --libdir=DIR object code libraries [EPREFIX/lib]
1364 --includedir=DIR C header files [PREFIX/include]
1365 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1366 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1367 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1368 --infodir=DIR info documentation [DATAROOTDIR/info]
1369 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1370 --mandir=DIR man documentation [DATAROOTDIR/man]
1371 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1372 --htmldir=DIR html documentation [DOCDIR]
1373 --dvidir=DIR dvi documentation [DOCDIR]
1374 --pdfdir=DIR pdf documentation [DOCDIR]
1375 --psdir=DIR ps documentation [DOCDIR]
1381 --build=BUILD configure for building on BUILD [guessed]
1382 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1383 --target=TARGET configure for building compilers for TARGET [HOST]
1387 if test -n "$ac_init_help"; then
1388 case $ac_init_help in
1389 short | recursive ) echo "Configuration of LLVM 3.2svn:";;
1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1396 --enable-polly Use polly if available (default is YES)
1397 --enable-libcpp Use libc++ if available (default is NO)
1398 --enable-cxx11 Use c++11 if available (default is NO)
1399 --enable-optimized Compile with optimizations enabled (default is NO)
1400 --enable-profiling Compile with profiling enabled (default is NO)
1401 --enable-assertions Compile with assertion checks enabled (default is
1403 --enable-werror Compile with -Werror enabled (default is NO)
1404 --enable-expensive-checks
1405 Compile with expensive debug checks enabled (default
1407 --enable-debug-runtime Build runtime libs with debug symbols (default is
1409 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1410 optimization is on and YES if it's off)
1411 --enable-jit Enable Just In Time Compiling (default is YES)
1412 --enable-docs Build documents (default is YES)
1413 --enable-doxygen Build doxygen documentation (default is NO)
1414 --enable-threads Use threads if available (default is YES)
1415 --enable-pthreads Use pthreads if available (default is YES)
1416 --enable-pic Build LLVM with Position Independent Code (default
1418 --enable-shared Build a shared library and link tools against it
1420 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1421 Win32 DLL (default is NO)
1422 --enable-timestamps Enable embedding timestamp information in build
1424 --enable-targets Build specific host targets: all or
1425 target1,target2,... Valid targets are: host, x86,
1426 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1427 xcore, msp430, nvptx, and cpp (default=all)
1428 --enable-bindings Build specific language bindings:
1429 all,auto,none,{binding-name} (default=auto)
1430 --enable-libffi Check for the presence of libffi (default is NO)
1431 --enable-ltdl-install install libltdl
1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1436 --with-optimize-option Select the compiler options to use for optimized
1438 --with-extra-options Specify additional options to compile LLVM with
1439 --with-extra-ld-options Specify additional options to link LLVM with
1440 --with-ocaml-libdir Specify install location for ocaml bindings (default
1442 --with-clang-srcdir Directory to the out-of-tree Clang source
1443 --with-clang-resource-dir
1444 Relative directory from the Clang binary for
1446 --with-c-include-dirs Colon separated list of directories clang will
1448 --with-gcc-toolchain Directory where gcc is installed.
1449 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1450 --with-binutils-include Specify path to binutils/include/ containing
1451 plugin-api.h file for gold plugin.
1452 --with-bug-report-url Specify the URL where bug reports should be
1453 submitted (default=http://llvm.org/bugs/)
1454 --with-internal-prefix Installation directory for internal files
1455 --with-udis86=<path> Use udis86 external x86 disassembler library
1456 --with-oprofile=<prefix>
1457 Tell OProfile >= 0.9.4 how to symbolize JIT output
1458 --with-intel-jitevents=<vtune-amplifier-dir>
1459 Specify location of run-time support library for
1461 (default=/opt/intel/vtune_amplifier_xe_2011)
1463 Some influential environment variables:
1464 CC C compiler command
1465 CFLAGS C compiler flags
1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1467 nonstandard directory <lib dir>
1468 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1469 you have headers in a nonstandard directory <include dir>
1470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1477 Report bugs to <http://llvm.org/bugs/>.
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" || continue
1489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1492 # A ".." for each directory in $ac_dir_suffix.
1493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1494 case $ac_top_builddir_sub in
1495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 ac_abs_top_builddir=$ac_pwd
1500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1501 # for backward compatibility:
1502 ac_top_builddir=$ac_top_build_prefix
1505 .) # We are building in place.
1507 ac_top_srcdir=$ac_top_builddir_sub
1508 ac_abs_top_srcdir=$ac_pwd ;;
1509 [\\/]* | ?:[\\/]* ) # Absolute name.
1510 ac_srcdir=$srcdir$ac_dir_suffix;
1511 ac_top_srcdir=$srcdir
1512 ac_abs_top_srcdir=$srcdir ;;
1514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1515 ac_top_srcdir=$ac_top_build_prefix$srcdir
1516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1520 cd "$ac_dir" || { ac_status=$?; continue; }
1521 # Check for guested configure.
1522 if test -f "$ac_srcdir/configure.gnu"; then
1524 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1525 elif test -f "$ac_srcdir/configure"; then
1527 $SHELL "$ac_srcdir/configure" --help=recursive
1529 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1531 cd "$ac_pwd" || { ac_status=$?; break; }
1535 test -n "$ac_init_help" && exit $ac_status
1536 if $ac_init_version; then
1538 LLVM configure 3.2svn
1539 generated by GNU Autoconf 2.60
1541 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1542 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1543 This configure script is free software; the Free Software Foundation
1544 gives unlimited permission to copy, distribute and modify it.
1546 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1550 cat >config.log <<_ACEOF
1551 This file contains any messages produced by compilers while
1552 running configure, to aid debugging if configure makes a mistake.
1554 It was created by LLVM $as_me 3.2svn, which was
1555 generated by GNU Autoconf 2.60. Invocation command line was
1567 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1568 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1569 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1570 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1571 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1573 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1574 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1576 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1577 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1578 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1579 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1580 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1581 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1582 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 test -z "$as_dir" && as_dir=.
1591 echo "PATH: $as_dir"
1607 # Keep a trace of the command line.
1608 # Strip out --no-create and --no-recursion so they do not pile up.
1609 # Strip out --silent because we don't want to record it for future runs.
1610 # Also quote any args containing shell meta-characters.
1611 # Make two passes to allow for proper duplicate-argument suppression.
1615 ac_must_keep_next=false
1621 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1622 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1623 | -silent | --silent | --silen | --sile | --sil)
1626 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1629 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1631 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1632 if test $ac_must_keep_next = true; then
1633 ac_must_keep_next=false # Got value, back to normal.
1636 *=* | --config-cache | -C | -disable-* | --disable-* \
1637 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1638 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1639 | -with-* | --with-* | -without-* | --without-* | --x)
1640 case "$ac_configure_args0 " in
1641 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1644 -* ) ac_must_keep_next=true ;;
1647 ac_configure_args="$ac_configure_args '$ac_arg'"
1652 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1653 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1655 # When interrupted or exit'd, cleanup temporary files, and complete
1656 # config.log. We remove comments because anyway the quotes in there
1657 # would cause problems or look ugly.
1658 # WARNING: Use '\'' to represent an apostrophe within the trap.
1659 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1660 trap 'exit_status=$?
1661 # Save into config.log some information that might help in debugging.
1666 ## ---------------- ##
1667 ## Cache variables. ##
1668 ## ---------------- ##
1671 # The following way of writing the cache mishandles newlines in values,
1673 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1674 eval ac_val=\$$ac_var
1678 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1679 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1682 _ | IFS | as_nl) ;; #(
1683 *) $as_unset $ac_var ;;
1688 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1689 *${as_nl}ac_space=\ *)
1691 "s/'\''/'\''\\\\'\'''\''/g;
1692 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1695 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1703 ## ----------------- ##
1704 ## Output variables. ##
1705 ## ----------------- ##
1708 for ac_var in $ac_subst_vars
1710 eval ac_val=\$$ac_var
1712 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1714 echo "$ac_var='\''$ac_val'\''"
1718 if test -n "$ac_subst_files"; then
1720 ## ------------------- ##
1721 ## File substitutions. ##
1722 ## ------------------- ##
1725 for ac_var in $ac_subst_files
1727 eval ac_val=\$$ac_var
1729 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1731 echo "$ac_var='\''$ac_val'\''"
1736 if test -s confdefs.h; then
1746 test "$ac_signal" != 0 &&
1747 echo "$as_me: caught signal $ac_signal"
1748 echo "$as_me: exit $exit_status"
1750 rm -f core *.core core.conftest.* &&
1751 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1754 for ac_signal in 1 2 13 15; do
1755 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1759 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1760 rm -f -r conftest* confdefs.h
1762 # Predefined preprocessor variables.
1764 cat >>confdefs.h <<_ACEOF
1765 #define PACKAGE_NAME "$PACKAGE_NAME"
1769 cat >>confdefs.h <<_ACEOF
1770 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1779 cat >>confdefs.h <<_ACEOF
1780 #define PACKAGE_STRING "$PACKAGE_STRING"
1784 cat >>confdefs.h <<_ACEOF
1785 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1789 # Let the site file select an alternate cache file if it wants to.
1790 # Prefer explicitly selected file to automatically selected ones.
1791 if test -n "$CONFIG_SITE"; then
1792 set x "$CONFIG_SITE"
1793 elif test "x$prefix" != xNONE; then
1794 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1796 set x "$ac_default_prefix/share/config.site" \
1797 "$ac_default_prefix/etc/config.site"
1802 if test -r "$ac_site_file"; then
1803 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1804 echo "$as_me: loading site script $ac_site_file" >&6;}
1805 sed 's/^/| /' "$ac_site_file" >&5
1810 if test -r "$cache_file"; then
1811 # Some versions of bash will fail to source /dev/null (special
1812 # files actually), so we avoid doing that.
1813 if test -f "$cache_file"; then
1814 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1815 echo "$as_me: loading cache $cache_file" >&6;}
1817 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1818 *) . "./$cache_file";;
1822 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1823 echo "$as_me: creating cache $cache_file" >&6;}
1827 # Check that the precious variables saved in the cache have kept the same
1829 ac_cache_corrupted=false
1830 for ac_var in $ac_precious_vars; do
1831 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1832 eval ac_new_set=\$ac_env_${ac_var}_set
1833 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1834 eval ac_new_val=\$ac_env_${ac_var}_value
1835 case $ac_old_set,$ac_new_set in
1837 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1838 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1839 ac_cache_corrupted=: ;;
1841 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1842 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1843 ac_cache_corrupted=: ;;
1846 if test "x$ac_old_val" != "x$ac_new_val"; then
1847 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1848 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1849 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1850 echo "$as_me: former value: $ac_old_val" >&2;}
1851 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1852 echo "$as_me: current value: $ac_new_val" >&2;}
1853 ac_cache_corrupted=:
1856 # Pass precious variables to config.status.
1857 if test "$ac_new_set" = set; then
1859 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1860 *) ac_arg=$ac_var=$ac_new_val ;;
1862 case " $ac_configure_args " in
1863 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1864 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1868 if $ac_cache_corrupted; then
1869 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1870 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1871 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1872 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1873 { (exit 1); exit 1; }; }
1901 ac_cpp='$CPP $CPPFLAGS'
1902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1908 cat >>confdefs.h <<\_ACEOF
1909 #define LLVM_VERSION_MAJOR 3
1913 cat >>confdefs.h <<\_ACEOF
1914 #define LLVM_VERSION_MINOR 2
1918 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1927 for ac_dir in autoconf "$srcdir"/autoconf; do
1928 if test -f "$ac_dir/install-sh"; then
1930 ac_install_sh="$ac_aux_dir/install-sh -c"
1932 elif test -f "$ac_dir/install.sh"; then
1934 ac_install_sh="$ac_aux_dir/install.sh -c"
1936 elif test -f "$ac_dir/shtool"; then
1938 ac_install_sh="$ac_aux_dir/shtool install -c"
1942 if test -z "$ac_aux_dir"; then
1943 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1944 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1945 { (exit 1); exit 1; }; }
1948 # These three variables are undocumented and unsupported,
1949 # and are intended to be withdrawn in a future Autoconf release.
1950 # They can cause serious problems if a builder's source tree is in a directory
1951 # whose full name contains unusual characters.
1952 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1953 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1954 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1958 if test ${srcdir} != "." ; then
1959 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1960 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1961 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1962 { (exit 1); exit 1; }; }
1967 ac_cpp='$CPP $CPPFLAGS'
1968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1971 if test -n "$ac_tool_prefix"; then
1972 for ac_prog in clang llvm-gcc gcc
1974 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1975 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1978 if test "${ac_cv_prog_CC+set}" = set; then
1979 echo $ECHO_N "(cached) $ECHO_C" >&6
1981 if test -n "$CC"; then
1982 ac_cv_prog_CC="$CC" # Let the user override the test.
1984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1988 test -z "$as_dir" && as_dir=.
1989 for ac_exec_ext in '' $ac_executable_extensions; do
1990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1991 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2002 if test -n "$CC"; then
2003 { echo "$as_me:$LINENO: result: $CC" >&5
2004 echo "${ECHO_T}$CC" >&6; }
2006 { echo "$as_me:$LINENO: result: no" >&5
2007 echo "${ECHO_T}no" >&6; }
2011 test -n "$CC" && break
2014 if test -z "$CC"; then
2016 for ac_prog in clang llvm-gcc gcc
2018 # Extract the first word of "$ac_prog", so it can be a program name with args.
2019 set dummy $ac_prog; ac_word=$2
2020 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2021 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2022 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2023 echo $ECHO_N "(cached) $ECHO_C" >&6
2025 if test -n "$ac_ct_CC"; then
2026 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2032 test -z "$as_dir" && as_dir=.
2033 for ac_exec_ext in '' $ac_executable_extensions; do
2034 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2035 ac_cv_prog_ac_ct_CC="$ac_prog"
2036 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2045 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2046 if test -n "$ac_ct_CC"; then
2047 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2048 echo "${ECHO_T}$ac_ct_CC" >&6; }
2050 { echo "$as_me:$LINENO: result: no" >&5
2051 echo "${ECHO_T}no" >&6; }
2055 test -n "$ac_ct_CC" && break
2058 if test "x$ac_ct_CC" = x; then
2061 case $cross_compiling:$ac_tool_warned in
2063 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2064 whose name does not start with the host triplet. If you think this
2065 configuration is useful to you, please write to autoconf@gnu.org." >&5
2066 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2067 whose name does not start with the host triplet. If you think this
2068 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2069 ac_tool_warned=yes ;;
2076 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2077 See \`config.log' for more details." >&5
2078 echo "$as_me: error: no acceptable C compiler found in \$PATH
2079 See \`config.log' for more details." >&2;}
2080 { (exit 1); exit 1; }; }
2082 # Provide some information about the compiler.
2083 echo "$as_me:$LINENO: checking for C compiler version" >&5
2084 ac_compiler=`set X $ac_compile; echo $2`
2085 { (ac_try="$ac_compiler --version >&5"
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2091 (eval "$ac_compiler --version >&5") 2>&5
2093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2094 (exit $ac_status); }
2095 { (ac_try="$ac_compiler -v >&5"
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2101 (eval "$ac_compiler -v >&5") 2>&5
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }
2105 { (ac_try="$ac_compiler -V >&5"
2107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2108 *) ac_try_echo=$ac_try;;
2110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2111 (eval "$ac_compiler -V >&5") 2>&5
2113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2114 (exit $ac_status); }
2116 cat >conftest.$ac_ext <<_ACEOF
2119 cat confdefs.h >>conftest.$ac_ext
2120 cat >>conftest.$ac_ext <<_ACEOF
2121 /* end confdefs.h. */
2131 ac_clean_files_save=$ac_clean_files
2132 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2133 # Try to create an executable without -o first, disregard a.out.
2134 # It will help us diagnose broken compilers, and finding out an intuition
2136 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2137 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2138 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2140 # List of possible output files, starting from the most likely.
2141 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2142 # only as a last resort. b.out is created by i960 compilers.
2143 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2145 # The IRIX 6 linker writes into existing files which may not be
2146 # executable, retaining their permissions. Remove them first so a
2147 # subsequent execution test works.
2149 for ac_file in $ac_files
2152 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2153 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2158 if { (ac_try="$ac_link_default"
2160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2161 *) ac_try_echo=$ac_try;;
2163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2164 (eval "$ac_link_default") 2>&5
2166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2167 (exit $ac_status); }; then
2168 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2169 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2170 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2171 # so that the user can short-circuit this test for compilers unknown to
2173 for ac_file in $ac_files
2175 test -f "$ac_file" || continue
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2180 # We found the default executable, but exeext='' is most
2184 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2186 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2188 # We set ac_cv_exeext here because the later test for it is not
2189 # safe: cross compilers may not add the suffix if given an `-o'
2190 # argument, so we may need to know it at that point already.
2191 # Even if this section looks crufty: it has the advantage of
2198 test "$ac_cv_exeext" = no && ac_cv_exeext=
2201 echo "$as_me: failed program was:" >&5
2202 sed 's/^/| /' conftest.$ac_ext >&5
2204 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2205 See \`config.log' for more details." >&5
2206 echo "$as_me: error: C compiler cannot create executables
2207 See \`config.log' for more details." >&2;}
2208 { (exit 77); exit 77; }; }
2211 ac_exeext=$ac_cv_exeext
2212 { echo "$as_me:$LINENO: result: $ac_file" >&5
2213 echo "${ECHO_T}$ac_file" >&6; }
2215 # Check that the compiler produces executables we can run. If not, either
2216 # the compiler is broken, or we cross compile.
2217 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2218 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2219 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2220 # If not cross compiling, check that we can run a simple program.
2221 if test "$cross_compiling" != yes; then
2222 if { ac_try='./$ac_file'
2223 { (case "(($ac_try" in
2224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2225 *) ac_try_echo=$ac_try;;
2227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2228 (eval "$ac_try") 2>&5
2230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2231 (exit $ac_status); }; }; then
2234 if test "$cross_compiling" = maybe; then
2237 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2238 If you meant to cross compile, use \`--host'.
2239 See \`config.log' for more details." >&5
2240 echo "$as_me: error: cannot run C compiled programs.
2241 If you meant to cross compile, use \`--host'.
2242 See \`config.log' for more details." >&2;}
2243 { (exit 1); exit 1; }; }
2247 { echo "$as_me:$LINENO: result: yes" >&5
2248 echo "${ECHO_T}yes" >&6; }
2250 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2251 ac_clean_files=$ac_clean_files_save
2252 # Check that the compiler produces executables we can run. If not, either
2253 # the compiler is broken, or we cross compile.
2254 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2255 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2256 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2257 echo "${ECHO_T}$cross_compiling" >&6; }
2259 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2260 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2261 if { (ac_try="$ac_link"
2263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2264 *) ac_try_echo=$ac_try;;
2266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2267 (eval "$ac_link") 2>&5
2269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2270 (exit $ac_status); }; then
2271 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2272 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2273 # work properly (i.e., refer to `conftest.exe'), while it won't with
2275 for ac_file in conftest.exe conftest conftest.*; do
2276 test -f "$ac_file" || continue
2278 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2279 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2285 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2286 See \`config.log' for more details." >&5
2287 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2288 See \`config.log' for more details." >&2;}
2289 { (exit 1); exit 1; }; }
2292 rm -f conftest$ac_cv_exeext
2293 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2294 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2296 rm -f conftest.$ac_ext
2297 EXEEXT=$ac_cv_exeext
2299 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2300 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2301 if test "${ac_cv_objext+set}" = set; then
2302 echo $ECHO_N "(cached) $ECHO_C" >&6
2304 cat >conftest.$ac_ext <<_ACEOF
2307 cat confdefs.h >>conftest.$ac_ext
2308 cat >>conftest.$ac_ext <<_ACEOF
2309 /* end confdefs.h. */
2319 rm -f conftest.o conftest.obj
2320 if { (ac_try="$ac_compile"
2322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2323 *) ac_try_echo=$ac_try;;
2325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2326 (eval "$ac_compile") 2>&5
2328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2329 (exit $ac_status); }; then
2330 for ac_file in conftest.o conftest.obj conftest.*; do
2331 test -f "$ac_file" || continue;
2333 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2334 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2339 echo "$as_me: failed program was:" >&5
2340 sed 's/^/| /' conftest.$ac_ext >&5
2342 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2343 See \`config.log' for more details." >&5
2344 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2345 See \`config.log' for more details." >&2;}
2346 { (exit 1); exit 1; }; }
2349 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2351 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2352 echo "${ECHO_T}$ac_cv_objext" >&6; }
2353 OBJEXT=$ac_cv_objext
2355 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2356 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2357 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2358 echo $ECHO_N "(cached) $ECHO_C" >&6
2360 cat >conftest.$ac_ext <<_ACEOF
2363 cat confdefs.h >>conftest.$ac_ext
2364 cat >>conftest.$ac_ext <<_ACEOF
2365 /* end confdefs.h. */
2378 rm -f conftest.$ac_objext
2379 if { (ac_try="$ac_compile"
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2385 (eval "$ac_compile") 2>conftest.er1
2387 grep -v '^ *+' conftest.er1 >conftest.err
2389 cat conftest.err >&5
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); } &&
2392 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2393 { (case "(($ac_try" in
2394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2395 *) ac_try_echo=$ac_try;;
2397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2398 (eval "$ac_try") 2>&5
2400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2401 (exit $ac_status); }; } &&
2402 { ac_try='test -s conftest.$ac_objext'
2403 { (case "(($ac_try" in
2404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2405 *) ac_try_echo=$ac_try;;
2407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2408 (eval "$ac_try") 2>&5
2410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2411 (exit $ac_status); }; }; then
2414 echo "$as_me: failed program was:" >&5
2415 sed 's/^/| /' conftest.$ac_ext >&5
2420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2421 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2424 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2425 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2426 GCC=`test $ac_compiler_gnu = yes && echo yes`
2427 ac_test_CFLAGS=${CFLAGS+set}
2428 ac_save_CFLAGS=$CFLAGS
2429 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2430 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2431 if test "${ac_cv_prog_cc_g+set}" = set; then
2432 echo $ECHO_N "(cached) $ECHO_C" >&6
2434 ac_save_c_werror_flag=$ac_c_werror_flag
2435 ac_c_werror_flag=yes
2438 cat >conftest.$ac_ext <<_ACEOF
2441 cat confdefs.h >>conftest.$ac_ext
2442 cat >>conftest.$ac_ext <<_ACEOF
2443 /* end confdefs.h. */
2453 rm -f conftest.$ac_objext
2454 if { (ac_try="$ac_compile"
2456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2457 *) ac_try_echo=$ac_try;;
2459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2460 (eval "$ac_compile") 2>conftest.er1
2462 grep -v '^ *+' conftest.er1 >conftest.err
2464 cat conftest.err >&5
2465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2466 (exit $ac_status); } &&
2467 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2468 { (case "(($ac_try" in
2469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2470 *) ac_try_echo=$ac_try;;
2472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2473 (eval "$ac_try") 2>&5
2475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2476 (exit $ac_status); }; } &&
2477 { ac_try='test -s conftest.$ac_objext'
2478 { (case "(($ac_try" in
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2483 (eval "$ac_try") 2>&5
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2493 cat >conftest.$ac_ext <<_ACEOF
2496 cat confdefs.h >>conftest.$ac_ext
2497 cat >>conftest.$ac_ext <<_ACEOF
2498 /* end confdefs.h. */
2508 rm -f conftest.$ac_objext
2509 if { (ac_try="$ac_compile"
2511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2512 *) ac_try_echo=$ac_try;;
2514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2515 (eval "$ac_compile") 2>conftest.er1
2517 grep -v '^ *+' conftest.er1 >conftest.err
2519 cat conftest.err >&5
2520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2521 (exit $ac_status); } &&
2522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2523 { (case "(($ac_try" in
2524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2525 *) ac_try_echo=$ac_try;;
2527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2528 (eval "$ac_try") 2>&5
2530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2531 (exit $ac_status); }; } &&
2532 { ac_try='test -s conftest.$ac_objext'
2533 { (case "(($ac_try" in
2534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2535 *) ac_try_echo=$ac_try;;
2537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2538 (eval "$ac_try") 2>&5
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; }; then
2544 echo "$as_me: failed program was:" >&5
2545 sed 's/^/| /' conftest.$ac_ext >&5
2547 ac_c_werror_flag=$ac_save_c_werror_flag
2549 cat >conftest.$ac_ext <<_ACEOF
2552 cat confdefs.h >>conftest.$ac_ext
2553 cat >>conftest.$ac_ext <<_ACEOF
2554 /* end confdefs.h. */
2564 rm -f conftest.$ac_objext
2565 if { (ac_try="$ac_compile"
2567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2568 *) ac_try_echo=$ac_try;;
2570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2571 (eval "$ac_compile") 2>conftest.er1
2573 grep -v '^ *+' conftest.er1 >conftest.err
2575 cat conftest.err >&5
2576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2577 (exit $ac_status); } &&
2578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2579 { (case "(($ac_try" in
2580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2581 *) ac_try_echo=$ac_try;;
2583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2584 (eval "$ac_try") 2>&5
2586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2587 (exit $ac_status); }; } &&
2588 { ac_try='test -s conftest.$ac_objext'
2589 { (case "(($ac_try" in
2590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2591 *) ac_try_echo=$ac_try;;
2593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2594 (eval "$ac_try") 2>&5
2596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2597 (exit $ac_status); }; }; then
2600 echo "$as_me: failed program was:" >&5
2601 sed 's/^/| /' conftest.$ac_ext >&5
2606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2613 ac_c_werror_flag=$ac_save_c_werror_flag
2615 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2616 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2617 if test "$ac_test_CFLAGS" = set; then
2618 CFLAGS=$ac_save_CFLAGS
2619 elif test $ac_cv_prog_cc_g = yes; then
2620 if test "$GCC" = yes; then
2626 if test "$GCC" = yes; then
2632 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2633 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2634 if test "${ac_cv_prog_cc_c89+set}" = set; then
2635 echo $ECHO_N "(cached) $ECHO_C" >&6
2637 ac_cv_prog_cc_c89=no
2639 cat >conftest.$ac_ext <<_ACEOF
2642 cat confdefs.h >>conftest.$ac_ext
2643 cat >>conftest.$ac_ext <<_ACEOF
2644 /* end confdefs.h. */
2647 #include <sys/types.h>
2648 #include <sys/stat.h>
2649 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2650 struct buf { int x; };
2651 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2652 static char *e (p, i)
2658 static char *f (char * (*g) (char **, int), char **p, ...)
2663 s = g (p, va_arg (v,int));
2668 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2669 function prototypes and stuff, but not '\xHH' hex character constants.
2670 These don't provoke an error unfortunately, instead are silently treated
2671 as 'x'. The following induces an error, until -std is added to get
2672 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2673 array size at least. It's necessary to write '\x00'==0 to get something
2674 that's true only with -std. */
2675 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2677 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2678 inside strings and character constants. */
2680 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2682 int test (int i, double x);
2683 struct s1 {int (*f) (int a);};
2684 struct s2 {int (*f) (double a);};
2685 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2691 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2696 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2697 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2699 CC="$ac_save_CC $ac_arg"
2700 rm -f conftest.$ac_objext
2701 if { (ac_try="$ac_compile"
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compile") 2>conftest.er1
2709 grep -v '^ *+' conftest.er1 >conftest.err
2711 cat conftest.err >&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); } &&
2714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2715 { (case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_try") 2>&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }; } &&
2724 { ac_try='test -s conftest.$ac_objext'
2725 { (case "(($ac_try" in
2726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_try") 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }; }; then
2734 ac_cv_prog_cc_c89=$ac_arg
2736 echo "$as_me: failed program was:" >&5
2737 sed 's/^/| /' conftest.$ac_ext >&5
2742 rm -f core conftest.err conftest.$ac_objext
2743 test "x$ac_cv_prog_cc_c89" != "xno" && break
2745 rm -f conftest.$ac_ext
2750 case "x$ac_cv_prog_cc_c89" in
2752 { echo "$as_me:$LINENO: result: none needed" >&5
2753 echo "${ECHO_T}none needed" >&6; } ;;
2755 { echo "$as_me:$LINENO: result: unsupported" >&5
2756 echo "${ECHO_T}unsupported" >&6; } ;;
2758 CC="$CC $ac_cv_prog_cc_c89"
2759 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2760 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2765 ac_cpp='$CPP $CPPFLAGS'
2766 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2767 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2768 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2771 ac_cpp='$CXXCPP $CPPFLAGS'
2772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2775 if test -z "$CXX"; then
2776 if test -n "$CCC"; then
2779 if test -n "$ac_tool_prefix"; then
2780 for ac_prog in clang++ llvm-g++ g++
2782 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2783 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2784 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2786 if test "${ac_cv_prog_CXX+set}" = set; then
2787 echo $ECHO_N "(cached) $ECHO_C" >&6
2789 if test -n "$CXX"; then
2790 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2796 test -z "$as_dir" && as_dir=.
2797 for ac_exec_ext in '' $ac_executable_extensions; do
2798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2799 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2810 if test -n "$CXX"; then
2811 { echo "$as_me:$LINENO: result: $CXX" >&5
2812 echo "${ECHO_T}$CXX" >&6; }
2814 { echo "$as_me:$LINENO: result: no" >&5
2815 echo "${ECHO_T}no" >&6; }
2819 test -n "$CXX" && break
2822 if test -z "$CXX"; then
2824 for ac_prog in clang++ llvm-g++ g++
2826 # Extract the first word of "$ac_prog", so it can be a program name with args.
2827 set dummy $ac_prog; ac_word=$2
2828 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2829 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2830 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2831 echo $ECHO_N "(cached) $ECHO_C" >&6
2833 if test -n "$ac_ct_CXX"; then
2834 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2840 test -z "$as_dir" && as_dir=.
2841 for ac_exec_ext in '' $ac_executable_extensions; do
2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2843 ac_cv_prog_ac_ct_CXX="$ac_prog"
2844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2853 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2854 if test -n "$ac_ct_CXX"; then
2855 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2856 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2858 { echo "$as_me:$LINENO: result: no" >&5
2859 echo "${ECHO_T}no" >&6; }
2863 test -n "$ac_ct_CXX" && break
2866 if test "x$ac_ct_CXX" = x; then
2869 case $cross_compiling:$ac_tool_warned in
2871 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2872 whose name does not start with the host triplet. If you think this
2873 configuration is useful to you, please write to autoconf@gnu.org." >&5
2874 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2875 whose name does not start with the host triplet. If you think this
2876 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2877 ac_tool_warned=yes ;;
2885 # Provide some information about the compiler.
2886 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2887 ac_compiler=`set X $ac_compile; echo $2`
2888 { (ac_try="$ac_compiler --version >&5"
2890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2891 *) ac_try_echo=$ac_try;;
2893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2894 (eval "$ac_compiler --version >&5") 2>&5
2896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2897 (exit $ac_status); }
2898 { (ac_try="$ac_compiler -v >&5"
2900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2901 *) ac_try_echo=$ac_try;;
2903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2904 (eval "$ac_compiler -v >&5") 2>&5
2906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2907 (exit $ac_status); }
2908 { (ac_try="$ac_compiler -V >&5"
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compiler -V >&5") 2>&5
2916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2917 (exit $ac_status); }
2919 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2920 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2921 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2922 echo $ECHO_N "(cached) $ECHO_C" >&6
2924 cat >conftest.$ac_ext <<_ACEOF
2927 cat confdefs.h >>conftest.$ac_ext
2928 cat >>conftest.$ac_ext <<_ACEOF
2929 /* end confdefs.h. */
2942 rm -f conftest.$ac_objext
2943 if { (ac_try="$ac_compile"
2945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2946 *) ac_try_echo=$ac_try;;
2948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2949 (eval "$ac_compile") 2>conftest.er1
2951 grep -v '^ *+' conftest.er1 >conftest.err
2953 cat conftest.err >&5
2954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2955 (exit $ac_status); } &&
2956 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2957 { (case "(($ac_try" in
2958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2959 *) ac_try_echo=$ac_try;;
2961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2962 (eval "$ac_try") 2>&5
2964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2965 (exit $ac_status); }; } &&
2966 { ac_try='test -s conftest.$ac_objext'
2967 { (case "(($ac_try" in
2968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2969 *) ac_try_echo=$ac_try;;
2971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2972 (eval "$ac_try") 2>&5
2974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2975 (exit $ac_status); }; }; then
2978 echo "$as_me: failed program was:" >&5
2979 sed 's/^/| /' conftest.$ac_ext >&5
2984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2985 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2988 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2989 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2990 GXX=`test $ac_compiler_gnu = yes && echo yes`
2991 ac_test_CXXFLAGS=${CXXFLAGS+set}
2992 ac_save_CXXFLAGS=$CXXFLAGS
2993 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2994 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2995 if test "${ac_cv_prog_cxx_g+set}" = set; then
2996 echo $ECHO_N "(cached) $ECHO_C" >&6
2998 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2999 ac_cxx_werror_flag=yes
3002 cat >conftest.$ac_ext <<_ACEOF
3005 cat confdefs.h >>conftest.$ac_ext
3006 cat >>conftest.$ac_ext <<_ACEOF
3007 /* end confdefs.h. */
3017 rm -f conftest.$ac_objext
3018 if { (ac_try="$ac_compile"
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compile") 2>conftest.er1
3026 grep -v '^ *+' conftest.er1 >conftest.err
3028 cat conftest.err >&5
3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030 (exit $ac_status); } &&
3031 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3032 { (case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_try") 2>&5
3039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3040 (exit $ac_status); }; } &&
3041 { ac_try='test -s conftest.$ac_objext'
3042 { (case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3047 (eval "$ac_try") 2>&5
3049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3050 (exit $ac_status); }; }; then
3051 ac_cv_prog_cxx_g=yes
3053 echo "$as_me: failed program was:" >&5
3054 sed 's/^/| /' conftest.$ac_ext >&5
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3081 grep -v '^ *+' conftest.er1 >conftest.err
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095 (exit $ac_status); }; } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); }; }; then
3108 echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3111 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3113 cat >conftest.$ac_ext <<_ACEOF
3116 cat confdefs.h >>conftest.$ac_ext
3117 cat >>conftest.$ac_ext <<_ACEOF
3118 /* end confdefs.h. */
3128 rm -f conftest.$ac_objext
3129 if { (ac_try="$ac_compile"
3131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3132 *) ac_try_echo=$ac_try;;
3134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3135 (eval "$ac_compile") 2>conftest.er1
3137 grep -v '^ *+' conftest.er1 >conftest.err
3139 cat conftest.err >&5
3140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3141 (exit $ac_status); } &&
3142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3143 { (case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3148 (eval "$ac_try") 2>&5
3150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3151 (exit $ac_status); }; } &&
3152 { ac_try='test -s conftest.$ac_objext'
3153 { (case "(($ac_try" in
3154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3155 *) ac_try_echo=$ac_try;;
3157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3158 (eval "$ac_try") 2>&5
3160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3161 (exit $ac_status); }; }; then
3162 ac_cv_prog_cxx_g=yes
3164 echo "$as_me: failed program was:" >&5
3165 sed 's/^/| /' conftest.$ac_ext >&5
3170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3177 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3179 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3180 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3181 if test "$ac_test_CXXFLAGS" = set; then
3182 CXXFLAGS=$ac_save_CXXFLAGS
3183 elif test $ac_cv_prog_cxx_g = yes; then
3184 if test "$GXX" = yes; then
3190 if test "$GXX" = yes; then
3197 ac_cpp='$CPP $CPPFLAGS'
3198 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3199 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3200 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3203 ac_cpp='$CPP $CPPFLAGS'
3204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3207 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3208 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3209 # On Suns, sometimes $CPP names a directory.
3210 if test -n "$CPP" && test -d "$CPP"; then
3213 if test -z "$CPP"; then
3214 if test "${ac_cv_prog_CPP+set}" = set; then
3215 echo $ECHO_N "(cached) $ECHO_C" >&6
3217 # Double quotes because CPP needs to be expanded
3218 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3221 for ac_c_preproc_warn_flag in '' yes
3223 # Use a header file that comes with gcc, so configuring glibc
3224 # with a fresh cross-compiler works.
3225 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3226 # <limits.h> exists even on freestanding compilers.
3227 # On the NeXT, cc -E runs the code through the compiler's parser,
3228 # not just through cpp. "Syntax error" is here to catch this case.
3229 cat >conftest.$ac_ext <<_ACEOF
3232 cat confdefs.h >>conftest.$ac_ext
3233 cat >>conftest.$ac_ext <<_ACEOF
3234 /* end confdefs.h. */
3236 # include <limits.h>
3238 # include <assert.h>
3242 if { (ac_try="$ac_cpp conftest.$ac_ext"
3244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3245 *) ac_try_echo=$ac_try;;
3247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3250 grep -v '^ *+' conftest.er1 >conftest.err
3252 cat conftest.err >&5
3253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3254 (exit $ac_status); } >/dev/null; then
3255 if test -s conftest.err; then
3256 ac_cpp_err=$ac_c_preproc_warn_flag
3257 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3264 if test -z "$ac_cpp_err"; then
3267 echo "$as_me: failed program was:" >&5
3268 sed 's/^/| /' conftest.$ac_ext >&5
3270 # Broken: fails on valid input.
3274 rm -f conftest.err conftest.$ac_ext
3276 # OK, works on sane cases. Now check whether nonexistent headers
3277 # can be detected and how.
3278 cat >conftest.$ac_ext <<_ACEOF
3281 cat confdefs.h >>conftest.$ac_ext
3282 cat >>conftest.$ac_ext <<_ACEOF
3283 /* end confdefs.h. */
3284 #include <ac_nonexistent.h>
3286 if { (ac_try="$ac_cpp conftest.$ac_ext"
3288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3289 *) ac_try_echo=$ac_try;;
3291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3292 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3294 grep -v '^ *+' conftest.er1 >conftest.err
3296 cat conftest.err >&5
3297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3298 (exit $ac_status); } >/dev/null; then
3299 if test -s conftest.err; then
3300 ac_cpp_err=$ac_c_preproc_warn_flag
3301 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3308 if test -z "$ac_cpp_err"; then
3309 # Broken: success on invalid input.
3312 echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 # Passes both tests.
3320 rm -f conftest.err conftest.$ac_ext
3323 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324 rm -f conftest.err conftest.$ac_ext
3325 if $ac_preproc_ok; then
3337 { echo "$as_me:$LINENO: result: $CPP" >&5
3338 echo "${ECHO_T}$CPP" >&6; }
3340 for ac_c_preproc_warn_flag in '' yes
3342 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.$ac_ext <<_ACEOF
3351 cat confdefs.h >>conftest.$ac_ext
3352 cat >>conftest.$ac_ext <<_ACEOF
3353 /* end confdefs.h. */
3355 # include <limits.h>
3357 # include <assert.h>
3361 if { (ac_try="$ac_cpp conftest.$ac_ext"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3373 (exit $ac_status); } >/dev/null; then
3374 if test -s conftest.err; then
3375 ac_cpp_err=$ac_c_preproc_warn_flag
3376 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3383 if test -z "$ac_cpp_err"; then
3386 echo "$as_me: failed program was:" >&5
3387 sed 's/^/| /' conftest.$ac_ext >&5
3389 # Broken: fails on valid input.
3393 rm -f conftest.err conftest.$ac_ext
3395 # OK, works on sane cases. Now check whether nonexistent headers
3396 # can be detected and how.
3397 cat >conftest.$ac_ext <<_ACEOF
3400 cat confdefs.h >>conftest.$ac_ext
3401 cat >>conftest.$ac_ext <<_ACEOF
3402 /* end confdefs.h. */
3403 #include <ac_nonexistent.h>
3405 if { (ac_try="$ac_cpp conftest.$ac_ext"
3407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3408 *) ac_try_echo=$ac_try;;
3410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3411 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3413 grep -v '^ *+' conftest.er1 >conftest.err
3415 cat conftest.err >&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); } >/dev/null; then
3418 if test -s conftest.err; then
3419 ac_cpp_err=$ac_c_preproc_warn_flag
3420 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3427 if test -z "$ac_cpp_err"; then
3428 # Broken: success on invalid input.
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3434 # Passes both tests.
3439 rm -f conftest.err conftest.$ac_ext
3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443 rm -f conftest.err conftest.$ac_ext
3444 if $ac_preproc_ok; then
3447 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3448 See \`config.log' for more details." >&5
3449 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3450 See \`config.log' for more details." >&2;}
3451 { (exit 1); exit 1; }; }
3455 ac_cpp='$CPP $CPPFLAGS'
3456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3463 if test -d ${srcdir}/projects/llvm-gcc ; then
3464 subdirs="$subdirs projects/llvm-gcc"
3468 if test -d ${srcdir}/projects/test-suite ; then
3469 subdirs="$subdirs projects/test-suite"
3473 if test -d ${srcdir}/projects/llvm-test ; then
3474 subdirs="$subdirs projects/llvm-test"
3478 if test -d ${srcdir}/projects/poolalloc ; then
3479 subdirs="$subdirs projects/poolalloc"
3483 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3484 subdirs="$subdirs projects/llvm-poolalloc"
3488 for i in `ls ${srcdir}/projects`
3490 if test -d ${srcdir}/projects/${i} ; then
3492 sample) subdirs="$subdirs projects/sample"
3494 privbracket) subdirs="$subdirs projects/privbracket"
3496 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3498 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3500 llvm-java) subdirs="$subdirs projects/llvm-java"
3502 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3504 safecode) subdirs="$subdirs projects/safecode"
3506 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3515 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3516 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3522 # Check whether --enable-polly was given.
3523 if test "${enable_polly+set}" = set; then
3524 enableval=$enable_polly;
3529 case "$enableval" in
3534 default) ENABLE_POLLY=1
3536 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3537 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3538 { (exit 1); exit 1; }; } ;;
3542 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3545 subdirs="$subdirs tools/polly"
3550 # Make sure we can run config.sub.
3551 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3552 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3553 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3554 { (exit 1); exit 1; }; }
3556 { echo "$as_me:$LINENO: checking build system type" >&5
3557 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3558 if test "${ac_cv_build+set}" = set; then
3559 echo $ECHO_N "(cached) $ECHO_C" >&6
3561 ac_build_alias=$build_alias
3562 test "x$ac_build_alias" = x &&
3563 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3564 test "x$ac_build_alias" = x &&
3565 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3566 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3567 { (exit 1); exit 1; }; }
3568 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3569 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3570 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3571 { (exit 1); exit 1; }; }
3574 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3575 echo "${ECHO_T}$ac_cv_build" >&6; }
3576 case $ac_cv_build in
3578 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3579 echo "$as_me: error: invalid value of canonical build" >&2;}
3580 { (exit 1); exit 1; }; };;
3583 ac_save_IFS=$IFS; IFS='-'
3589 # Remember, the first character of IFS is used to create $*,
3590 # except with old shells:
3593 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3596 { echo "$as_me:$LINENO: checking host system type" >&5
3597 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3598 if test "${ac_cv_host+set}" = set; then
3599 echo $ECHO_N "(cached) $ECHO_C" >&6
3601 if test "x$host_alias" = x; then
3602 ac_cv_host=$ac_cv_build
3604 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3605 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3606 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3607 { (exit 1); exit 1; }; }
3611 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3612 echo "${ECHO_T}$ac_cv_host" >&6; }
3615 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3616 echo "$as_me: error: invalid value of canonical host" >&2;}
3617 { (exit 1); exit 1; }; };;
3620 ac_save_IFS=$IFS; IFS='-'
3626 # Remember, the first character of IFS is used to create $*,
3627 # except with old shells:
3630 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3633 { echo "$as_me:$LINENO: checking target system type" >&5
3634 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3635 if test "${ac_cv_target+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3638 if test "x$target_alias" = x; then
3639 ac_cv_target=$ac_cv_host
3641 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3642 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3643 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3644 { (exit 1); exit 1; }; }
3648 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3649 echo "${ECHO_T}$ac_cv_target" >&6; }
3650 case $ac_cv_target in
3652 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3653 echo "$as_me: error: invalid value of canonical target" >&2;}
3654 { (exit 1); exit 1; }; };;
3656 target=$ac_cv_target
3657 ac_save_IFS=$IFS; IFS='-'
3663 # Remember, the first character of IFS is used to create $*,
3664 # except with old shells:
3667 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3670 # The aliases save the names the user supplied, while $host etc.
3671 # will get canonicalized.
3672 test -n "$target_alias" &&
3673 test "$program_prefix$program_suffix$program_transform_name" = \
3675 program_prefix=${target_alias}-
3677 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3678 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3679 if test "${llvm_cv_os_type+set}" = set; then
3680 echo $ECHO_N "(cached) $ECHO_C" >&6
3684 llvm_cv_link_all_option="-Wl,--whole-archive"
3685 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3686 llvm_cv_os_type="AIX"
3687 llvm_cv_platform_type="Unix" ;;
3689 llvm_cv_link_all_option="-Wl,--whole-archive"
3690 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3691 llvm_cv_os_type="IRIX"
3692 llvm_cv_platform_type="Unix" ;;
3694 llvm_cv_link_all_option="-Wl,--whole-archive"
3695 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3696 llvm_cv_os_type="Cygwin"
3697 llvm_cv_platform_type="Unix" ;;
3699 llvm_cv_link_all_option="-Wl,-all_load"
3700 llvm_cv_no_link_all_option="-Wl,-noall_load"
3701 llvm_cv_os_type="Darwin"
3702 llvm_cv_platform_type="Unix" ;;
3704 llvm_cv_link_all_option="-Wl,-all_load"
3705 llvm_cv_no_link_all_option="-Wl,-noall_load"
3706 llvm_cv_os_type="Minix"
3707 llvm_cv_platform_type="Unix" ;;
3708 *-*-freebsd* | *-*-kfreebsd-gnu)
3709 llvm_cv_link_all_option="-Wl,--whole-archive"
3710 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3711 llvm_cv_os_type="FreeBSD"
3712 llvm_cv_platform_type="Unix" ;;
3714 llvm_cv_link_all_option="-Wl,--whole-archive"
3715 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3716 llvm_cv_os_type="OpenBSD"
3717 llvm_cv_platform_type="Unix" ;;
3719 llvm_cv_link_all_option="-Wl,--whole-archive"
3720 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3721 llvm_cv_os_type="NetBSD"
3722 llvm_cv_platform_type="Unix" ;;
3724 llvm_cv_link_all_option="-Wl,--whole-archive"
3725 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3726 llvm_cv_os_type="DragonFly"
3727 llvm_cv_platform_type="Unix" ;;
3729 llvm_cv_link_all_option="-Wl,--whole-archive"
3730 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3731 llvm_cv_os_type="HP-UX"
3732 llvm_cv_platform_type="Unix" ;;
3734 llvm_cv_link_all_option="-Wl,--whole-archive"
3735 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3736 llvm_cv_os_type="Interix"
3737 llvm_cv_platform_type="Unix" ;;
3739 llvm_cv_link_all_option="-Wl,--whole-archive"
3740 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3741 llvm_cv_os_type="Linux"
3742 llvm_cv_platform_type="Unix" ;;
3744 llvm_cv_link_all_option="-Wl,--whole-archive"
3745 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3746 llvm_cv_os_type="GNU"
3747 llvm_cv_platform_type="Unix" ;;
3749 llvm_cv_link_all_option="-Wl,-z,allextract"
3750 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3751 llvm_cv_os_type="SunOS"
3752 llvm_cv_platform_type="Unix" ;;
3754 llvm_cv_link_all_option="-Wl,-z,allextract"
3755 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3756 llvm_cv_os_type="AuroraUX"
3757 llvm_cv_platform_type="Unix" ;;
3759 llvm_cv_link_all_option="-Wl,--whole-archive"
3760 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3761 llvm_cv_os_type="Win32"
3762 llvm_cv_platform_type="Win32" ;;
3764 llvm_cv_link_all_option="-Wl,--whole-archive"
3765 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3766 llvm_cv_os_type="MingW"
3767 llvm_cv_platform_type="Win32" ;;
3769 llvm_cv_link_all_option="-Wl,--whole-archive"
3770 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3771 llvm_cv_os_type="Haiku"
3772 llvm_cv_platform_type="Unix" ;;
3774 llvm_cv_link_all_option="-Wl,--whole-archive"
3775 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3776 llvm_cv_os_type="Freestanding"
3777 llvm_cv_platform_type="Unix" ;;
3779 llvm_cv_link_all_option="-Wl,--whole-archive"
3780 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3781 llvm_cv_os_type="Freestanding"
3782 llvm_cv_platform_type="Unix" ;;
3784 llvm_cv_link_all_option=""
3785 llvm_cv_no_link_all_option=""
3786 llvm_cv_os_type="Unknown"
3787 llvm_cv_platform_type="Unknown" ;;
3790 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3791 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3793 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3794 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3795 if test "${llvm_cv_target_os_type+set}" = set; then
3796 echo $ECHO_N "(cached) $ECHO_C" >&6
3800 llvm_cv_target_os_type="AIX" ;;
3802 llvm_cv_target_os_type="IRIX" ;;
3804 llvm_cv_target_os_type="Cygwin" ;;
3806 llvm_cv_target_os_type="Darwin" ;;
3808 llvm_cv_target_os_type="Minix" ;;
3809 *-*-freebsd* | *-*-kfreebsd-gnu)
3810 llvm_cv_target_os_type="FreeBSD" ;;
3812 llvm_cv_target_os_type="OpenBSD" ;;
3814 llvm_cv_target_os_type="NetBSD" ;;
3816 llvm_cv_target_os_type="DragonFly" ;;
3818 llvm_cv_target_os_type="HP-UX" ;;
3820 llvm_cv_target_os_type="Interix" ;;
3822 llvm_cv_target_os_type="Linux" ;;
3824 llvm_cv_target_os_type="GNU" ;;
3826 llvm_cv_target_os_type="SunOS" ;;
3828 llvm_cv_target_os_type="AuroraUX" ;;
3830 llvm_cv_target_os_type="Win32" ;;
3832 llvm_cv_target_os_type="MingW" ;;
3834 llvm_cv_target_os_type="Haiku" ;;
3836 llvm_cv_target_os_type="RTEMS" ;;
3838 llvm_cv_target_os_type="NativeClient" ;;
3840 llvm_cv_target_os_type="Freestanding" ;;
3842 llvm_cv_target_os_type="Unknown" ;;
3845 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3846 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3848 if test "$llvm_cv_os_type" = "Unknown" ; then
3849 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3850 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3851 { (exit 1); exit 1; }; }
3856 HOST_OS=$llvm_cv_os_type
3858 TARGET_OS=$llvm_cv_target_os_type
3861 LINKALL=$llvm_cv_link_all_option
3863 NOLINKALL=$llvm_cv_no_link_all_option
3866 case $llvm_cv_platform_type in
3869 cat >>confdefs.h <<\_ACEOF
3870 #define LLVM_ON_UNIX 1
3880 cat >>confdefs.h <<\_ACEOF
3881 #define LLVM_ON_WIN32 1
3891 { echo "$as_me:$LINENO: checking target architecture" >&5
3892 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3893 if test "${llvm_cv_target_arch+set}" = set; then
3894 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 i?86-*) llvm_cv_target_arch="x86" ;;
3898 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3899 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3900 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3901 arm*-*) llvm_cv_target_arch="ARM" ;;
3902 mips-*) llvm_cv_target_arch="Mips" ;;
3903 mipsel-*) llvm_cv_target_arch="Mips" ;;
3904 xcore-*) llvm_cv_target_arch="XCore" ;;
3905 msp430-*) llvm_cv_target_arch="MSP430" ;;
3906 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3907 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3908 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
3909 *) llvm_cv_target_arch="Unknown" ;;
3912 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3913 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3915 if test "$llvm_cv_target_arch" = "Unknown" ; then
3916 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3917 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3920 case "$llvm_cv_target_arch" in
3921 x86) LLVM_NATIVE_ARCH="X86" ;;
3922 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3923 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3926 ARCH=$llvm_cv_target_arch
3930 i?86-*) host_arch="x86" ;;
3931 amd64-* | x86_64-*) host_arch="x86_64" ;;
3932 sparc*-*) host_arch="Sparc" ;;
3933 powerpc*-*) host_arch="PowerPC" ;;
3934 arm*-*) host_arch="ARM" ;;
3935 mips-*) host_arch="Mips" ;;
3936 mipsel-*) host_arch="Mips" ;;
3937 xcore-*) host_arch="XCore" ;;
3938 msp430-*) host_arch="MSP430" ;;
3939 hexagon-*) host_arch="Hexagon" ;;
3940 mblaze-*) host_arch="MBlaze" ;;
3941 *) host_arch="Unknown" ;;
3944 if test "$host_arch" = "Unknown" ; then
3945 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
3946 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
3949 HOST_ARCH=$host_arch
3954 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3955 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3956 if test "${ac_cv_path_GREP+set}" = set; then
3957 echo $ECHO_N "(cached) $ECHO_C" >&6
3959 # Extract the first word of "grep ggrep" to use in msg output
3960 if test -z "$GREP"; then
3961 set dummy grep ggrep; ac_prog_name=$2
3962 if test "${ac_cv_path_GREP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 ac_path_GREP_found=false
3966 # Loop through the user's path and test for each of PROGNAME-LIST
3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3968 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3971 test -z "$as_dir" && as_dir=.
3972 for ac_prog in grep ggrep; do
3973 for ac_exec_ext in '' $ac_executable_extensions; do
3974 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3975 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3976 # Check for GNU ac_path_GREP and select it if it is found.
3977 # Check for GNU $ac_path_GREP
3978 case `"$ac_path_GREP" --version 2>&1` in
3980 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3983 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3986 cat "conftest.in" "conftest.in" >"conftest.tmp"
3987 mv "conftest.tmp" "conftest.in"
3988 cp "conftest.in" "conftest.nl"
3989 echo 'GREP' >> "conftest.nl"
3990 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3992 ac_count=`expr $ac_count + 1`
3993 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3994 # Best one so far, save it but keep looking for a better one
3995 ac_cv_path_GREP="$ac_path_GREP"
3996 ac_path_GREP_max=$ac_count
3998 # 10*(2^10) chars as input seems more than enough
3999 test $ac_count -gt 10 && break
4001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4005 $ac_path_GREP_found && break 3
4015 GREP="$ac_cv_path_GREP"
4016 if test -z "$GREP"; then
4017 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4018 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4019 { (exit 1); exit 1; }; }
4023 ac_cv_path_GREP=$GREP
4028 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4029 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4030 GREP="$ac_cv_path_GREP"
4033 { echo "$as_me:$LINENO: checking for egrep" >&5
4034 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4035 if test "${ac_cv_path_EGREP+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4038 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4039 then ac_cv_path_EGREP="$GREP -E"
4041 # Extract the first word of "egrep" to use in msg output
4042 if test -z "$EGREP"; then
4043 set dummy egrep; ac_prog_name=$2
4044 if test "${ac_cv_path_EGREP+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4047 ac_path_EGREP_found=false
4048 # Loop through the user's path and test for each of PROGNAME-LIST
4049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4053 test -z "$as_dir" && as_dir=.
4054 for ac_prog in egrep; do
4055 for ac_exec_ext in '' $ac_executable_extensions; do
4056 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4057 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4058 # Check for GNU ac_path_EGREP and select it if it is found.
4059 # Check for GNU $ac_path_EGREP
4060 case `"$ac_path_EGREP" --version 2>&1` in
4062 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4065 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4068 cat "conftest.in" "conftest.in" >"conftest.tmp"
4069 mv "conftest.tmp" "conftest.in"
4070 cp "conftest.in" "conftest.nl"
4071 echo 'EGREP' >> "conftest.nl"
4072 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4074 ac_count=`expr $ac_count + 1`
4075 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4076 # Best one so far, save it but keep looking for a better one
4077 ac_cv_path_EGREP="$ac_path_EGREP"
4078 ac_path_EGREP_max=$ac_count
4080 # 10*(2^10) chars as input seems more than enough
4081 test $ac_count -gt 10 && break
4083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4087 $ac_path_EGREP_found && break 3
4097 EGREP="$ac_cv_path_EGREP"
4098 if test -z "$EGREP"; then
4099 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4100 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4101 { (exit 1); exit 1; }; }
4105 ac_cv_path_EGREP=$EGREP
4111 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4112 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4113 EGREP="$ac_cv_path_EGREP"
4116 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4117 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4118 if test "${ac_cv_header_stdc+set}" = set; then
4119 echo $ECHO_N "(cached) $ECHO_C" >&6
4121 cat >conftest.$ac_ext <<_ACEOF
4124 cat confdefs.h >>conftest.$ac_ext
4125 cat >>conftest.$ac_ext <<_ACEOF
4126 /* end confdefs.h. */
4140 rm -f conftest.$ac_objext
4141 if { (ac_try="$ac_compile"
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4147 (eval "$ac_compile") 2>conftest.er1
4149 grep -v '^ *+' conftest.er1 >conftest.err
4151 cat conftest.err >&5
4152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4153 (exit $ac_status); } &&
4154 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4155 { (case "(($ac_try" in
4156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4157 *) ac_try_echo=$ac_try;;
4159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4160 (eval "$ac_try") 2>&5
4162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4163 (exit $ac_status); }; } &&
4164 { ac_try='test -s conftest.$ac_objext'
4165 { (case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_try") 2>&5
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; }; then
4174 ac_cv_header_stdc=yes
4176 echo "$as_me: failed program was:" >&5
4177 sed 's/^/| /' conftest.$ac_ext >&5
4179 ac_cv_header_stdc=no
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4184 if test $ac_cv_header_stdc = yes; then
4185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4186 cat >conftest.$ac_ext <<_ACEOF
4189 cat confdefs.h >>conftest.$ac_ext
4190 cat >>conftest.$ac_ext <<_ACEOF
4191 /* end confdefs.h. */
4195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4196 $EGREP "memchr" >/dev/null 2>&1; then
4199 ac_cv_header_stdc=no
4205 if test $ac_cv_header_stdc = yes; then
4206 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4207 cat >conftest.$ac_ext <<_ACEOF
4210 cat confdefs.h >>conftest.$ac_ext
4211 cat >>conftest.$ac_ext <<_ACEOF
4212 /* end confdefs.h. */
4216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4217 $EGREP "free" >/dev/null 2>&1; then
4220 ac_cv_header_stdc=no
4226 if test $ac_cv_header_stdc = yes; then
4227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4228 if test "$cross_compiling" = yes; then
4231 cat >conftest.$ac_ext <<_ACEOF
4234 cat confdefs.h >>conftest.$ac_ext
4235 cat >>conftest.$ac_ext <<_ACEOF
4236 /* end confdefs.h. */
4239 #if ((' ' & 0x0FF) == 0x020)
4240 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4241 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243 # define ISLOWER(c) \
4244 (('a' <= (c) && (c) <= 'i') \
4245 || ('j' <= (c) && (c) <= 'r') \
4246 || ('s' <= (c) && (c) <= 'z'))
4247 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4250 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4255 for (i = 0; i < 256; i++)
4256 if (XOR (islower (i), ISLOWER (i))
4257 || toupper (i) != TOUPPER (i))
4262 rm -f conftest$ac_exeext
4263 if { (ac_try="$ac_link"
4265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4266 *) ac_try_echo=$ac_try;;
4268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4269 (eval "$ac_link") 2>&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4273 { (case "(($ac_try" in
4274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4275 *) ac_try_echo=$ac_try;;
4277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4278 (eval "$ac_try") 2>&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); }; }; then
4284 echo "$as_me: program exited with status $ac_status" >&5
4285 echo "$as_me: failed program was:" >&5
4286 sed 's/^/| /' conftest.$ac_ext >&5
4289 ac_cv_header_stdc=no
4291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4297 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4298 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4299 if test $ac_cv_header_stdc = yes; then
4301 cat >>confdefs.h <<\_ACEOF
4302 #define STDC_HEADERS 1
4307 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4317 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4318 inttypes.h stdint.h unistd.h
4320 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4321 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4322 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4323 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4324 echo $ECHO_N "(cached) $ECHO_C" >&6
4326 cat >conftest.$ac_ext <<_ACEOF
4329 cat confdefs.h >>conftest.$ac_ext
4330 cat >>conftest.$ac_ext <<_ACEOF
4331 /* end confdefs.h. */
4332 $ac_includes_default
4334 #include <$ac_header>
4336 rm -f conftest.$ac_objext
4337 if { (ac_try="$ac_compile"
4339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4340 *) ac_try_echo=$ac_try;;
4342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4343 (eval "$ac_compile") 2>conftest.er1
4345 grep -v '^ *+' conftest.er1 >conftest.err
4347 cat conftest.err >&5
4348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4349 (exit $ac_status); } &&
4350 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4351 { (case "(($ac_try" in
4352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4353 *) ac_try_echo=$ac_try;;
4355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4356 (eval "$ac_try") 2>&5
4358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4359 (exit $ac_status); }; } &&
4360 { ac_try='test -s conftest.$ac_objext'
4361 { (case "(($ac_try" in
4362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4363 *) ac_try_echo=$ac_try;;
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_try") 2>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); }; }; then
4370 eval "$as_ac_Header=yes"
4372 echo "$as_me: failed program was:" >&5
4373 sed 's/^/| /' conftest.$ac_ext >&5
4375 eval "$as_ac_Header=no"
4378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4380 ac_res=`eval echo '${'$as_ac_Header'}'`
4381 { echo "$as_me:$LINENO: result: $ac_res" >&5
4382 echo "${ECHO_T}$ac_res" >&6; }
4383 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4384 cat >>confdefs.h <<_ACEOF
4385 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4393 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4394 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4395 if test "${ac_cv_c_bigendian+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 # See if sys/param.h defines the BYTE_ORDER macro.
4399 cat >conftest.$ac_ext <<_ACEOF
4402 cat confdefs.h >>conftest.$ac_ext
4403 cat >>conftest.$ac_ext <<_ACEOF
4404 /* end confdefs.h. */
4405 #include <sys/types.h>
4406 #include <sys/param.h>
4411 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4419 rm -f conftest.$ac_objext
4420 if { (ac_try="$ac_compile"
4422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4423 *) ac_try_echo=$ac_try;;
4425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4426 (eval "$ac_compile") 2>conftest.er1
4428 grep -v '^ *+' conftest.er1 >conftest.err
4430 cat conftest.err >&5
4431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4432 (exit $ac_status); } &&
4433 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4434 { (case "(($ac_try" in
4435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4436 *) ac_try_echo=$ac_try;;
4438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4439 (eval "$ac_try") 2>&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; } &&
4443 { ac_try='test -s conftest.$ac_objext'
4444 { (case "(($ac_try" in
4445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4449 (eval "$ac_try") 2>&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; }; then
4453 # It does; now see whether it defined to BIG_ENDIAN or not.
4454 cat >conftest.$ac_ext <<_ACEOF
4457 cat confdefs.h >>conftest.$ac_ext
4458 cat >>conftest.$ac_ext <<_ACEOF
4459 /* end confdefs.h. */
4460 #include <sys/types.h>
4461 #include <sys/param.h>
4466 #if BYTE_ORDER != BIG_ENDIAN
4474 rm -f conftest.$ac_objext
4475 if { (ac_try="$ac_compile"
4477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4478 *) ac_try_echo=$ac_try;;
4480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4481 (eval "$ac_compile") 2>conftest.er1
4483 grep -v '^ *+' conftest.er1 >conftest.err
4485 cat conftest.err >&5
4486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4487 (exit $ac_status); } &&
4488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4489 { (case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_try") 2>&5
4496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4497 (exit $ac_status); }; } &&
4498 { ac_try='test -s conftest.$ac_objext'
4499 { (case "(($ac_try" in
4500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4501 *) ac_try_echo=$ac_try;;
4503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4504 (eval "$ac_try") 2>&5
4506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4507 (exit $ac_status); }; }; then
4508 ac_cv_c_bigendian=yes
4510 echo "$as_me: failed program was:" >&5
4511 sed 's/^/| /' conftest.$ac_ext >&5
4513 ac_cv_c_bigendian=no
4516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4518 echo "$as_me: failed program was:" >&5
4519 sed 's/^/| /' conftest.$ac_ext >&5
4521 # It does not; compile a test program.
4522 if test "$cross_compiling" = yes; then
4523 # try to guess the endianness by grepping values into an object file
4524 ac_cv_c_bigendian=unknown
4525 cat >conftest.$ac_ext <<_ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4532 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4533 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4534 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4535 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4536 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4540 _ascii (); _ebcdic ();
4545 rm -f conftest.$ac_objext
4546 if { (ac_try="$ac_compile"
4548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4549 *) ac_try_echo=$ac_try;;
4551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4552 (eval "$ac_compile") 2>conftest.er1
4554 grep -v '^ *+' conftest.er1 >conftest.err
4556 cat conftest.err >&5
4557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558 (exit $ac_status); } &&
4559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4560 { (case "(($ac_try" in
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4565 (eval "$ac_try") 2>&5
4567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); }; } &&
4569 { ac_try='test -s conftest.$ac_objext'
4570 { (case "(($ac_try" in
4571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4572 *) ac_try_echo=$ac_try;;
4574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4575 (eval "$ac_try") 2>&5
4577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4580 ac_cv_c_bigendian=yes
4582 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4583 if test "$ac_cv_c_bigendian" = unknown; then
4584 ac_cv_c_bigendian=no
4586 # finding both strings is unlikely to happen, but who knows?
4587 ac_cv_c_bigendian=unknown
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 cat >conftest.$ac_ext <<_ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 $ac_includes_default
4610 /* Are we little or big endian? From Harbison&Steele. */
4614 char c[sizeof (long int)];
4617 return u.c[sizeof (long int) - 1] == 1;
4623 rm -f conftest$ac_exeext
4624 if { (ac_try="$ac_link"
4626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4627 *) ac_try_echo=$ac_try;;
4629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4630 (eval "$ac_link") 2>&5
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4634 { (case "(($ac_try" in
4635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4636 *) ac_try_echo=$ac_try;;
4638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4639 (eval "$ac_try") 2>&5
4641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4642 (exit $ac_status); }; }; then
4643 ac_cv_c_bigendian=no
4645 echo "$as_me: program exited with status $ac_status" >&5
4646 echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4650 ac_cv_c_bigendian=yes
4652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4661 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4662 case $ac_cv_c_bigendian in
4670 { { echo "$as_me:$LINENO: error: unknown endianness
4671 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4672 echo "$as_me: error: unknown endianness
4673 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4674 { (exit 1); exit 1; }; } ;;
4678 if test "$cross_compiling" = yes; then
4679 LLVM_CROSS_COMPILING=1
4682 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4683 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4684 if test "${ac_cv_build_exeext+set}" = set; then
4685 echo $ECHO_N "(cached) $ECHO_C" >&6
4687 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4688 ac_cv_build_exeext=.exe
4690 ac_build_prefix=${build_alias}-
4692 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4693 set dummy ${ac_build_prefix}gcc; ac_word=$2
4694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4696 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4697 echo $ECHO_N "(cached) $ECHO_C" >&6
4699 if test -n "$BUILD_CC"; then
4700 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4706 test -z "$as_dir" && as_dir=.
4707 for ac_exec_ext in '' $ac_executable_extensions; do
4708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4709 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4719 BUILD_CC=$ac_cv_prog_BUILD_CC
4720 if test -n "$BUILD_CC"; then
4721 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4722 echo "${ECHO_T}$BUILD_CC" >&6; }
4724 { echo "$as_me:$LINENO: result: no" >&5
4725 echo "${ECHO_T}no" >&6; }
4729 if test -z "$BUILD_CC"; then
4730 # Extract the first word of "gcc", so it can be a program name with args.
4731 set dummy gcc; ac_word=$2
4732 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4733 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4734 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4735 echo $ECHO_N "(cached) $ECHO_C" >&6
4737 if test -n "$BUILD_CC"; then
4738 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 test -z "$as_dir" && as_dir=.
4745 for ac_exec_ext in '' $ac_executable_extensions; do
4746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4747 ac_cv_prog_BUILD_CC="gcc"
4748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4757 BUILD_CC=$ac_cv_prog_BUILD_CC
4758 if test -n "$BUILD_CC"; then
4759 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4760 echo "${ECHO_T}$BUILD_CC" >&6; }
4762 { echo "$as_me:$LINENO: result: no" >&5
4763 echo "${ECHO_T}no" >&6; }
4767 if test -z "$BUILD_CC"; then
4768 # Extract the first word of "cc", so it can be a program name with args.
4769 set dummy cc; ac_word=$2
4770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4772 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4773 echo $ECHO_N "(cached) $ECHO_C" >&6
4775 if test -n "$BUILD_CC"; then
4776 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4783 test -z "$as_dir" && as_dir=.
4784 for ac_exec_ext in '' $ac_executable_extensions; do
4785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4786 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4787 ac_prog_rejected=yes
4790 ac_cv_prog_BUILD_CC="cc"
4791 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4798 if test $ac_prog_rejected = yes; then
4799 # We found a bogon in the path, so make sure we never use it.
4800 set dummy $ac_cv_prog_BUILD_CC
4802 if test $# != 0; then
4803 # We chose a different compiler from the bogus one.
4804 # However, it has the same basename, so the bogon will be chosen
4805 # first if we set BUILD_CC to just the basename; use the full file name.
4807 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4812 BUILD_CC=$ac_cv_prog_BUILD_CC
4813 if test -n "$BUILD_CC"; then
4814 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4815 echo "${ECHO_T}$BUILD_CC" >&6; }
4817 { echo "$as_me:$LINENO: result: no" >&5
4818 echo "${ECHO_T}no" >&6; }
4824 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4825 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4826 { (exit 1); exit 1; }; }
4827 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4829 echo 'int main () { return 0; }' > conftest.$ac_ext
4831 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4832 (eval $ac_build_link) 2>&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); }; then
4836 for file in conftest.*; do
4838 *.c | *.o | *.obj | *.dSYM) ;;
4839 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4843 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4844 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4845 { (exit 1); exit 1; }; }
4848 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4853 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4854 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4855 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4856 ac_build_exeext=$BUILD_EXEEXT
4858 ac_build_prefix=${build_alias}-
4859 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4860 set dummy ${ac_build_prefix}g++; ac_word=$2
4861 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4862 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4863 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4864 echo $ECHO_N "(cached) $ECHO_C" >&6
4866 if test -n "$BUILD_CXX"; then
4867 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4886 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4887 if test -n "$BUILD_CXX"; then
4888 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4889 echo "${ECHO_T}$BUILD_CXX" >&6; }
4891 { echo "$as_me:$LINENO: result: no" >&5
4892 echo "${ECHO_T}no" >&6; }
4896 if test -z "$BUILD_CXX"; then
4897 # Extract the first word of "g++", so it can be a program name with args.
4898 set dummy g++; ac_word=$2
4899 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4901 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4902 echo $ECHO_N "(cached) $ECHO_C" >&6
4904 if test -n "$BUILD_CXX"; then
4905 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911 test -z "$as_dir" && as_dir=.
4912 for ac_exec_ext in '' $ac_executable_extensions; do
4913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4914 ac_cv_prog_BUILD_CXX="g++"
4915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4924 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4925 if test -n "$BUILD_CXX"; then
4926 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4927 echo "${ECHO_T}$BUILD_CXX" >&6; }
4929 { echo "$as_me:$LINENO: result: no" >&5
4930 echo "${ECHO_T}no" >&6; }
4934 if test -z "$BUILD_CXX"; then
4935 # Extract the first word of "c++", so it can be a program name with args.
4936 set dummy c++; ac_word=$2
4937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4939 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4940 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 if test -n "$BUILD_CXX"; then
4943 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4950 test -z "$as_dir" && as_dir=.
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4953 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4954 ac_prog_rejected=yes
4957 ac_cv_prog_BUILD_CXX="c++"
4958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4965 if test $ac_prog_rejected = yes; then
4966 # We found a bogon in the path, so make sure we never use it.
4967 set dummy $ac_cv_prog_BUILD_CXX
4969 if test $# != 0; then
4970 # We chose a different compiler from the bogus one.
4971 # However, it has the same basename, so the bogon will be chosen
4972 # first if we set BUILD_CXX to just the basename; use the full file name.
4974 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4979 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4980 if test -n "$BUILD_CXX"; then
4981 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4982 echo "${ECHO_T}$BUILD_CXX" >&6; }
4984 { echo "$as_me:$LINENO: result: no" >&5
4985 echo "${ECHO_T}no" >&6; }
4992 LLVM_CROSS_COMPILING=0
4996 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
5007 # Check whether --enable-libcpp was given.
5008 if test "${enable_libcpp+set}" = set; then
5009 enableval=$enable_libcpp;
5014 case "$enableval" in
5015 yes) ENABLE_LIBCPP=1
5019 default) ENABLE_LIBCPP=0
5021 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
5022 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
5023 { (exit 1); exit 1; }; } ;;
5026 # Check whether --enable-cxx11 was given.
5027 if test "${enable_cxx11+set}" = set; then
5028 enableval=$enable_cxx11;
5033 case "$enableval" in
5038 default) ENABLE_CXX11=0
5040 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&5
5041 echo "$as_me: error: Invalid setting for --enable-cxx11. Use \"yes\" or \"no\"" >&2;}
5042 { (exit 1); exit 1; }; } ;;
5045 # Check whether --enable-optimized was given.
5046 if test "${enable_optimized+set}" = set; then
5047 enableval=$enable_optimized;
5052 if test ${enableval} = "no" ; then
5056 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5060 # Check whether --enable-profiling was given.
5061 if test "${enable_profiling+set}" = set; then
5062 enableval=$enable_profiling;
5067 if test ${enableval} = "no" ; then
5071 ENABLE_PROFILING=ENABLE_PROFILING=1
5075 # Check whether --enable-assertions was given.
5076 if test "${enable_assertions+set}" = set; then
5077 enableval=$enable_assertions;
5082 if test ${enableval} = "yes" ; then
5086 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5090 # Check whether --enable-werror was given.
5091 if test "${enable_werror+set}" = set; then
5092 enableval=$enable_werror;
5097 case "$enableval" in
5098 yes) ENABLE_WERROR=1
5102 default) ENABLE_WERROR=0
5104 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&5
5105 echo "$as_me: error: Invalid setting for --enable-werror. Use \"yes\" or \"no\"" >&2;}
5106 { (exit 1); exit 1; }; } ;;
5109 # Check whether --enable-expensive-checks was given.
5110 if test "${enable_expensive_checks+set}" = set; then
5111 enableval=$enable_expensive_checks;
5116 if test ${enableval} = "yes" ; then
5117 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5119 EXPENSIVE_CHECKS=yes
5122 ENABLE_EXPENSIVE_CHECKS=
5128 # Check whether --enable-debug-runtime was given.
5129 if test "${enable_debug_runtime+set}" = set; then
5130 enableval=$enable_debug_runtime;
5135 if test ${enableval} = "no" ; then
5139 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5143 # Check whether --enable-debug-symbols was given.
5144 if test "${enable_debug_symbols+set}" = set; then
5145 enableval=$enable_debug_symbols;
5150 if test ${enableval} = "no" ; then
5154 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5158 # Check whether --enable-jit was given.
5159 if test "${enable_jit+set}" = set; then
5160 enableval=$enable_jit;
5165 if test ${enableval} = "no"
5170 case "$llvm_cv_target_arch" in
5171 x86) TARGET_HAS_JIT=1
5173 Sparc) TARGET_HAS_JIT=0
5175 PowerPC) TARGET_HAS_JIT=1
5177 x86_64) TARGET_HAS_JIT=1
5179 ARM) TARGET_HAS_JIT=1
5181 Mips) TARGET_HAS_JIT=1
5183 XCore) TARGET_HAS_JIT=0
5185 MSP430) TARGET_HAS_JIT=0
5187 Hexagon) TARGET_HAS_JIT=0
5189 MBlaze) TARGET_HAS_JIT=0
5191 NVPTX) TARGET_HAS_JIT=0
5198 # Check whether --enable-docs was given.
5199 if test "${enable_docs+set}" = set; then
5200 enableval=$enable_docs;
5205 case "$enableval" in
5210 default) ENABLE_DOCS=1
5212 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5213 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5214 { (exit 1); exit 1; }; } ;;
5217 # Check whether --enable-doxygen was given.
5218 if test "${enable_doxygen+set}" = set; then
5219 enableval=$enable_doxygen;
5224 case "$enableval" in
5225 yes) ENABLE_DOXYGEN=1
5227 no) ENABLE_DOXYGEN=0
5229 default) ENABLE_DOXYGEN=0
5231 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5232 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5236 # Check whether --enable-threads was given.
5237 if test "${enable_threads+set}" = set; then
5238 enableval=$enable_threads;
5243 case "$enableval" in
5244 yes) LLVM_ENABLE_THREADS=1
5246 no) LLVM_ENABLE_THREADS=0
5248 default) LLVM_ENABLE_THREADS=1
5250 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5251 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5252 { (exit 1); exit 1; }; } ;;
5255 cat >>confdefs.h <<_ACEOF
5256 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5260 # Check whether --enable-pthreads was given.
5261 if test "${enable_pthreads+set}" = set; then
5262 enableval=$enable_pthreads;
5267 case "$enableval" in
5268 yes) ENABLE_PTHREADS=1
5270 no) ENABLE_PTHREADS=0
5272 default) ENABLE_PTHREADS=1
5274 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5275 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5276 { (exit 1); exit 1; }; } ;;
5279 # Check whether --enable-pic was given.
5280 if test "${enable_pic+set}" = set; then
5281 enableval=$enable_pic;
5286 case "$enableval" in
5291 default) ENABLE_PIC=1
5293 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5294 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5295 { (exit 1); exit 1; }; } ;;
5298 cat >>confdefs.h <<_ACEOF
5299 #define ENABLE_PIC $ENABLE_PIC
5303 # Check whether --enable-shared was given.
5304 if test "${enable_shared+set}" = set; then
5305 enableval=$enable_shared;
5310 case "$enableval" in
5311 yes) ENABLE_SHARED=1
5315 default) ENABLE_SHARED=0
5317 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5318 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5319 { (exit 1); exit 1; }; } ;;
5322 # Check whether --enable-embed-stdcxx was given.
5323 if test "${enable_embed_stdcxx+set}" = set; then
5324 enableval=$enable_embed_stdcxx;
5329 case "$enableval" in
5330 yes) ENABLE_EMBED_STDCXX=1
5332 no) ENABLE_EMBED_STDCXX=0
5334 default) ENABLE_EMBED_STDCXX=0
5336 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5337 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5338 { (exit 1); exit 1; }; } ;;
5341 # Check whether --enable-timestamps was given.
5342 if test "${enable_timestamps+set}" = set; then
5343 enableval=$enable_timestamps;
5348 case "$enableval" in
5349 yes) ENABLE_TIMESTAMPS=1
5351 no) ENABLE_TIMESTAMPS=0
5353 default) ENABLE_TIMESTAMPS=1
5355 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5356 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5357 { (exit 1); exit 1; }; } ;;
5360 cat >>confdefs.h <<_ACEOF
5361 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5366 # Check whether --enable-targets was given.
5367 if test "${enable_targets+set}" = set; then
5368 enableval=$enable_targets;
5373 if test "$enableval" = host-only ; then
5376 case "$enableval" in
5377 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CppBackend MBlaze NVPTX Hexagon" ;;
5378 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5380 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5381 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5382 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5383 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5384 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5385 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5386 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5387 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5388 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5389 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5390 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5391 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5392 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5393 nvptx) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5394 host) case "$llvm_cv_target_arch" in
5395 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5396 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5397 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5398 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5399 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5400 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5401 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5402 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5403 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5404 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5405 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5406 NVPTX) TARGETS_TO_BUILD="NVPTX $TARGETS_TO_BUILD" ;;
5407 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5408 echo "$as_me: error: Can not set target to build" >&2;}
5409 { (exit 1); exit 1; }; } ;;
5411 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5412 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5413 { (exit 1); exit 1; }; } ;;
5418 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5421 for a_target in $TARGETS_TO_BUILD; do
5422 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5424 cat >>confdefs.h <<_ACEOF
5425 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5428 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5429 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5430 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5431 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5432 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5433 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5435 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5436 LLVM_NATIVE_DISASSEMBLER="LLVMInitialize${LLVM_NATIVE_ARCH}Disassembler"
5439 cat >>confdefs.h <<_ACEOF
5440 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5444 cat >>confdefs.h <<_ACEOF
5445 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5449 cat >>confdefs.h <<_ACEOF
5450 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5454 cat >>confdefs.h <<_ACEOF
5455 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5458 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5460 cat >>confdefs.h <<_ACEOF
5461 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5465 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/Disassembler/Makefile ; then
5467 cat >>confdefs.h <<_ACEOF
5468 #define LLVM_NATIVE_DISASSEMBLER $LLVM_NATIVE_DISASSEMBLER
5475 LLVM_ENUM_TARGETS=""
5476 LLVM_ENUM_ASM_PRINTERS=""
5477 LLVM_ENUM_ASM_PARSERS=""
5478 LLVM_ENUM_DISASSEMBLERS=""
5479 for target_to_build in $TARGETS_TO_BUILD; do
5480 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5481 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5482 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5484 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5485 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5487 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5488 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5497 # Check whether --with-optimize-option was given.
5498 if test "${with_optimize_option+set}" = set; then
5499 withval=$with_optimize_option;
5504 { echo "$as_me:$LINENO: checking optimization flags" >&5
5505 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5508 case "$llvm_cv_os_type" in
5509 FreeBSD) optimize_option=-O2 ;;
5510 MingW) optimize_option=-O2 ;;
5511 *) optimize_option=-O3 ;;
5513 *) optimize_option="$withval" ;;
5515 OPTIMIZE_OPTION=$optimize_option
5517 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5518 echo "${ECHO_T}$optimize_option" >&6; }
5521 # Check whether --with-extra-options was given.
5522 if test "${with_extra_options+set}" = set; then
5523 withval=$with_extra_options;
5529 default) EXTRA_OPTIONS= ;;
5530 *) EXTRA_OPTIONS=$withval ;;
5532 EXTRA_OPTIONS=$EXTRA_OPTIONS
5536 # Check whether --with-extra-ld-options was given.
5537 if test "${with_extra_ld_options+set}" = set; then
5538 withval=$with_extra_ld_options;
5544 default) EXTRA_LD_OPTIONS= ;;
5545 *) EXTRA_LD_OPTIONS=$withval ;;
5547 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5550 # Check whether --enable-bindings was given.
5551 if test "${enable_bindings+set}" = set; then
5552 enableval=$enable_bindings;
5557 BINDINGS_TO_BUILD=""
5558 case "$enableval" in
5559 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5560 all ) BINDINGS_TO_BUILD="ocaml" ;;
5561 none | no) BINDINGS_TO_BUILD="" ;;
5562 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5563 case "$a_binding" in
5564 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5565 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5566 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5567 { (exit 1); exit 1; }; } ;;
5574 # Check whether --with-ocaml-libdir was given.
5575 if test "${with_ocaml_libdir+set}" = set; then
5576 withval=$with_ocaml_libdir;
5582 auto) with_ocaml_libdir="$withval" ;;
5583 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5584 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5585 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5586 { (exit 1); exit 1; }; } ;;
5590 # Check whether --with-clang-srcdir was given.
5591 if test "${with_clang_srcdir+set}" = set; then
5592 withval=$with_clang_srcdir;
5598 -) clang_src_root="" ;;
5599 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5600 *) clang_src_root="$ac_pwd/$withval" ;;
5602 CLANG_SRC_ROOT=$clang_src_root
5606 # Check whether --with-clang-resource-dir was given.
5607 if test "${with_clang_resource_dir+set}" = set; then
5608 withval=$with_clang_resource_dir;
5614 cat >>confdefs.h <<_ACEOF
5615 #define CLANG_RESOURCE_DIR "$withval"
5620 # Check whether --with-c-include-dirs was given.
5621 if test "${with_c_include_dirs+set}" = set; then
5622 withval=$with_c_include_dirs;
5628 cat >>confdefs.h <<_ACEOF
5629 #define C_INCLUDE_DIRS "$withval"
5633 # Clang normally uses the system c++ headers and libraries. With this option,
5634 # clang will use the ones provided by a gcc installation instead. This option should
5635 # be passed the same value that was used with --prefix when configuring gcc.
5637 # Check whether --with-gcc-toolchain was given.
5638 if test "${with_gcc_toolchain+set}" = set; then
5639 withval=$with_gcc_toolchain;
5645 cat >>confdefs.h <<_ACEOF
5646 #define GCC_INSTALL_PREFIX "$withval"
5651 # Check whether --with-default-sysroot was given.
5652 if test "${with_default_sysroot+set}" = set; then
5653 withval=$with_default_sysroot;
5659 cat >>confdefs.h <<_ACEOF
5660 #define DEFAULT_SYSROOT "$withval"
5665 # Check whether --with-binutils-include was given.
5666 if test "${with_binutils_include+set}" = set; then
5667 withval=$with_binutils_include;
5673 default) WITH_BINUTILS_INCDIR=default ;;
5674 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5675 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5676 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5677 { (exit 1); exit 1; }; } ;;
5679 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5680 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5682 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5683 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5684 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5685 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5686 { (exit 1); exit 1; }; };
5691 # Check whether --with-bug-report-url was given.
5692 if test "${with_bug_report_url+set}" = set; then
5693 withval=$with_bug_report_url;
5695 withval="http://llvm.org/bugs/"
5699 cat >>confdefs.h <<_ACEOF
5700 #define BUG_REPORT_URL "$withval"
5704 # Check whether --enable-libffi was given.
5705 if test "${enable_libffi+set}" = set; then
5706 enableval=$enable_libffi; case "$enableval" in
5707 yes) llvm_cv_enable_libffi="yes" ;;
5708 no) llvm_cv_enable_libffi="no" ;;
5709 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5710 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5711 { (exit 1); exit 1; }; } ;;
5714 llvm_cv_enable_libffi=no
5719 # Check whether --with-internal-prefix was given.
5720 if test "${with_internal_prefix+set}" = set; then
5721 withval=$with_internal_prefix;
5726 INTERNAL_PREFIX=$withval
5730 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5731 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5732 if test "${lt_cv_path_NM+set}" = set; then
5733 echo $ECHO_N "(cached) $ECHO_C" >&6
5735 if test -n "$NM"; then
5736 # Let the user override the test.
5739 lt_nm_to_check="${ac_tool_prefix}nm"
5740 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5741 lt_nm_to_check="$lt_nm_to_check nm"
5743 for lt_tmp_nm in $lt_nm_to_check; do
5744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5745 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5747 test -z "$ac_dir" && ac_dir=.
5748 tmp_nm="$ac_dir/$lt_tmp_nm"
5749 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5750 # Check to see if the nm accepts a BSD-compat flag.
5751 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5752 # nm: unknown option "B" ignored
5753 # Tru64's nm complains that /dev/null is an invalid object file
5754 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5755 */dev/null* | *'Invalid file or object type'*)
5756 lt_cv_path_NM="$tmp_nm -B"
5760 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5762 lt_cv_path_NM="$tmp_nm -p"
5766 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5767 continue # so that we can try to find one that supports BSD flags
5776 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5779 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5780 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5785 { echo "$as_me:$LINENO: checking for GNU make" >&5
5786 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5787 if test "${llvm_cv_gnu_make_command+set}" = set; then
5788 echo $ECHO_N "(cached) $ECHO_C" >&6
5790 llvm_cv_gnu_make_command=''
5791 for a in "$MAKE" make gmake gnumake ; do
5792 if test -z "$a" ; then continue ; fi ;
5793 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5795 llvm_cv_gnu_make_command=$a ;
5800 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5801 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5802 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5806 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5807 echo "${ECHO_T}\"Not found\"" >&6; };
5811 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5812 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5814 if test "$LN_S" = "ln -s"; then
5815 { echo "$as_me:$LINENO: result: yes" >&5
5816 echo "${ECHO_T}yes" >&6; }
5818 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5819 echo "${ECHO_T}no, using $LN_S" >&6; }
5822 # Extract the first word of "cmp", so it can be a program name with args.
5823 set dummy cmp; ac_word=$2
5824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5826 if test "${ac_cv_path_CMP+set}" = set; then
5827 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
5840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5841 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5849 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5854 if test -n "$CMP"; then
5855 { echo "$as_me:$LINENO: result: $CMP" >&5
5856 echo "${ECHO_T}$CMP" >&6; }
5858 { echo "$as_me:$LINENO: result: no" >&5
5859 echo "${ECHO_T}no" >&6; }
5863 # Extract the first word of "cp", so it can be a program name with args.
5864 set dummy cp; ac_word=$2
5865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5867 if test "${ac_cv_path_CP+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5872 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5879 test -z "$as_dir" && as_dir=.
5880 for ac_exec_ext in '' $ac_executable_extensions; do
5881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5882 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5890 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5895 if test -n "$CP"; then
5896 { echo "$as_me:$LINENO: result: $CP" >&5
5897 echo "${ECHO_T}$CP" >&6; }
5899 { echo "$as_me:$LINENO: result: no" >&5
5900 echo "${ECHO_T}no" >&6; }
5904 # Extract the first word of "date", so it can be a program name with args.
5905 set dummy date; ac_word=$2
5906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5908 if test "${ac_cv_path_DATE+set}" = set; then
5909 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5920 test -z "$as_dir" && as_dir=.
5921 for ac_exec_ext in '' $ac_executable_extensions; do
5922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5923 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5935 DATE=$ac_cv_path_DATE
5936 if test -n "$DATE"; then
5937 { echo "$as_me:$LINENO: result: $DATE" >&5
5938 echo "${ECHO_T}$DATE" >&6; }
5940 { echo "$as_me:$LINENO: result: no" >&5
5941 echo "${ECHO_T}no" >&6; }
5945 # Extract the first word of "find", so it can be a program name with args.
5946 set dummy find; ac_word=$2
5947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5949 if test "${ac_cv_path_FIND+set}" = set; then
5950 echo $ECHO_N "(cached) $ECHO_C" >&6
5954 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5964 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5976 FIND=$ac_cv_path_FIND
5977 if test -n "$FIND"; then
5978 { echo "$as_me:$LINENO: result: $FIND" >&5
5979 echo "${ECHO_T}$FIND" >&6; }
5981 { echo "$as_me:$LINENO: result: no" >&5
5982 echo "${ECHO_T}no" >&6; }
5986 # Extract the first word of "grep", so it can be a program name with args.
5987 set dummy grep; ac_word=$2
5988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5990 if test "${ac_cv_path_GREP+set}" = set; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5995 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 test -z "$as_dir" && as_dir=.
6003 for ac_exec_ext in '' $ac_executable_extensions; do
6004 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6005 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6006 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6013 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6017 GREP=$ac_cv_path_GREP
6018 if test -n "$GREP"; then
6019 { echo "$as_me:$LINENO: result: $GREP" >&5
6020 echo "${ECHO_T}$GREP" >&6; }
6022 { echo "$as_me:$LINENO: result: no" >&5
6023 echo "${ECHO_T}no" >&6; }
6027 # Extract the first word of "mkdir", so it can be a program name with args.
6028 set dummy mkdir; ac_word=$2
6029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6031 if test "${ac_cv_path_MKDIR+set}" = set; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6036 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6054 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6058 MKDIR=$ac_cv_path_MKDIR
6059 if test -n "$MKDIR"; then
6060 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6061 echo "${ECHO_T}$MKDIR" >&6; }
6063 { echo "$as_me:$LINENO: result: no" >&5
6064 echo "${ECHO_T}no" >&6; }
6068 # Extract the first word of "mv", so it can be a program name with args.
6069 set dummy mv; ac_word=$2
6070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6072 if test "${ac_cv_path_MV+set}" = set; then
6073 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6084 test -z "$as_dir" && as_dir=.
6085 for ac_exec_ext in '' $ac_executable_extensions; do
6086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6087 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6088 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6095 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6100 if test -n "$MV"; then
6101 { echo "$as_me:$LINENO: result: $MV" >&5
6102 echo "${ECHO_T}$MV" >&6; }
6104 { echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6; }
6109 if test -n "$ac_tool_prefix"; then
6110 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6111 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6112 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6113 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6114 if test "${ac_cv_prog_RANLIB+set}" = set; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6117 if test -n "$RANLIB"; then
6118 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6124 test -z "$as_dir" && as_dir=.
6125 for ac_exec_ext in '' $ac_executable_extensions; do
6126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6127 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6137 RANLIB=$ac_cv_prog_RANLIB
6138 if test -n "$RANLIB"; then
6139 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6140 echo "${ECHO_T}$RANLIB" >&6; }
6142 { echo "$as_me:$LINENO: result: no" >&5
6143 echo "${ECHO_T}no" >&6; }
6148 if test -z "$ac_cv_prog_RANLIB"; then
6149 ac_ct_RANLIB=$RANLIB
6150 # Extract the first word of "ranlib", so it can be a program name with args.
6151 set dummy ranlib; ac_word=$2
6152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6154 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 if test -n "$ac_ct_RANLIB"; then
6158 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6164 test -z "$as_dir" && as_dir=.
6165 for ac_exec_ext in '' $ac_executable_extensions; do
6166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6167 ac_cv_prog_ac_ct_RANLIB="ranlib"
6168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6177 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6178 if test -n "$ac_ct_RANLIB"; then
6179 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6180 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6182 { echo "$as_me:$LINENO: result: no" >&5
6183 echo "${ECHO_T}no" >&6; }
6186 if test "x$ac_ct_RANLIB" = x; then
6189 case $cross_compiling:$ac_tool_warned in
6191 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6192 whose name does not start with the host triplet. If you think this
6193 configuration is useful to you, please write to autoconf@gnu.org." >&5
6194 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6195 whose name does not start with the host triplet. If you think this
6196 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6197 ac_tool_warned=yes ;;
6199 RANLIB=$ac_ct_RANLIB
6202 RANLIB="$ac_cv_prog_RANLIB"
6205 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6207 set dummy ${ac_tool_prefix}ar; ac_word=$2
6208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210 if test "${ac_cv_prog_AR+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 if test -n "$AR"; then
6214 ac_cv_prog_AR="$AR" # Let the user override the test.
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_AR="${ac_tool_prefix}ar"
6224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 if test -n "$AR"; then
6235 { echo "$as_me:$LINENO: result: $AR" >&5
6236 echo "${ECHO_T}$AR" >&6; }
6238 { echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6; }
6244 if test -z "$ac_cv_prog_AR"; then
6246 # Extract the first word of "ar", so it can be a program name with args.
6247 set dummy ar; ac_word=$2
6248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6250 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6253 if test -n "$ac_ct_AR"; then
6254 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 test -z "$as_dir" && as_dir=.
6261 for ac_exec_ext in '' $ac_executable_extensions; do
6262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6263 ac_cv_prog_ac_ct_AR="ar"
6264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6273 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6274 if test -n "$ac_ct_AR"; then
6275 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6276 echo "${ECHO_T}$ac_ct_AR" >&6; }
6278 { echo "$as_me:$LINENO: result: no" >&5
6279 echo "${ECHO_T}no" >&6; }
6282 if test "x$ac_ct_AR" = x; then
6285 case $cross_compiling:$ac_tool_warned in
6287 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6288 whose name does not start with the host triplet. If you think this
6289 configuration is useful to you, please write to autoconf@gnu.org." >&5
6290 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6291 whose name does not start with the host triplet. If you think this
6292 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6293 ac_tool_warned=yes ;;
6301 # Extract the first word of "rm", so it can be a program name with args.
6302 set dummy rm; ac_word=$2
6303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6305 if test "${ac_cv_path_RM+set}" = set; then
6306 echo $ECHO_N "(cached) $ECHO_C" >&6
6310 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6317 test -z "$as_dir" && as_dir=.
6318 for ac_exec_ext in '' $ac_executable_extensions; do
6319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6320 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6333 if test -n "$RM"; then
6334 { echo "$as_me:$LINENO: result: $RM" >&5
6335 echo "${ECHO_T}$RM" >&6; }
6337 { echo "$as_me:$LINENO: result: no" >&5
6338 echo "${ECHO_T}no" >&6; }
6342 # Extract the first word of "sed", so it can be a program name with args.
6343 set dummy sed; ac_word=$2
6344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6346 if test "${ac_cv_path_SED+set}" = set; then
6347 echo $ECHO_N "(cached) $ECHO_C" >&6
6351 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 test -z "$as_dir" && as_dir=.
6359 for ac_exec_ext in '' $ac_executable_extensions; do
6360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6361 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6369 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6374 if test -n "$SED"; then
6375 { echo "$as_me:$LINENO: result: $SED" >&5
6376 echo "${ECHO_T}$SED" >&6; }
6378 { echo "$as_me:$LINENO: result: no" >&5
6379 echo "${ECHO_T}no" >&6; }
6383 # Extract the first word of "tar", so it can be a program name with args.
6384 set dummy tar; ac_word=$2
6385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6387 if test "${ac_cv_path_TAR+set}" = set; then
6388 echo $ECHO_N "(cached) $ECHO_C" >&6
6392 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6399 test -z "$as_dir" && as_dir=.
6400 for ac_exec_ext in '' $ac_executable_extensions; do
6401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6402 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6410 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6415 if test -n "$TAR"; then
6416 { echo "$as_me:$LINENO: result: $TAR" >&5
6417 echo "${ECHO_T}$TAR" >&6; }
6419 { echo "$as_me:$LINENO: result: no" >&5
6420 echo "${ECHO_T}no" >&6; }
6424 # Extract the first word of "pwd", so it can be a program name with args.
6425 set dummy pwd; ac_word=$2
6426 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6427 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6428 if test "${ac_cv_path_BINPWD+set}" = set; then
6429 echo $ECHO_N "(cached) $ECHO_C" >&6
6433 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6440 test -z "$as_dir" && as_dir=.
6441 for ac_exec_ext in '' $ac_executable_extensions; do
6442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6443 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6444 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6451 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6455 BINPWD=$ac_cv_path_BINPWD
6456 if test -n "$BINPWD"; then
6457 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6458 echo "${ECHO_T}$BINPWD" >&6; }
6460 { echo "$as_me:$LINENO: result: no" >&5
6461 echo "${ECHO_T}no" >&6; }
6466 # Extract the first word of "Graphviz", so it can be a program name with args.
6467 set dummy Graphviz; ac_word=$2
6468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6470 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 test -z "$as_dir" && as_dir=.
6483 for ac_exec_ext in '' $ac_executable_extensions; do
6484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6485 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6493 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6497 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6498 if test -n "$GRAPHVIZ"; then
6499 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6500 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6502 { echo "$as_me:$LINENO: result: no" >&5
6503 echo "${ECHO_T}no" >&6; }
6507 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6509 cat >>confdefs.h <<\_ACEOF
6510 #define HAVE_GRAPHVIZ 1
6513 if test "$llvm_cv_os_type" = "MingW" ; then
6514 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6517 cat >>confdefs.h <<_ACEOF
6518 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6522 # Extract the first word of "dot", so it can be a program name with args.
6523 set dummy dot; ac_word=$2
6524 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6526 if test "${ac_cv_path_DOT+set}" = set; then
6527 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 test -z "$as_dir" && as_dir=.
6539 for ac_exec_ext in '' $ac_executable_extensions; do
6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6541 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6554 if test -n "$DOT"; then
6555 { echo "$as_me:$LINENO: result: $DOT" >&5
6556 echo "${ECHO_T}$DOT" >&6; }
6558 { echo "$as_me:$LINENO: result: no" >&5
6559 echo "${ECHO_T}no" >&6; }
6563 if test "$DOT" != "echo dot" ; then
6565 cat >>confdefs.h <<\_ACEOF
6569 if test "$llvm_cv_os_type" = "MingW" ; then
6570 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6573 cat >>confdefs.h <<_ACEOF
6574 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6578 # Extract the first word of "fdp", so it can be a program name with args.
6579 set dummy fdp; ac_word=$2
6580 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6581 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6582 if test "${ac_cv_path_FDP+set}" = set; then
6583 echo $ECHO_N "(cached) $ECHO_C" >&6
6587 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6594 test -z "$as_dir" && as_dir=.
6595 for ac_exec_ext in '' $ac_executable_extensions; do
6596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6597 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6598 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6605 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6610 if test -n "$FDP"; then
6611 { echo "$as_me:$LINENO: result: $FDP" >&5
6612 echo "${ECHO_T}$FDP" >&6; }
6614 { echo "$as_me:$LINENO: result: no" >&5
6615 echo "${ECHO_T}no" >&6; }
6619 if test "$FDP" != "echo fdp" ; then
6621 cat >>confdefs.h <<\_ACEOF
6625 if test "$llvm_cv_os_type" = "MingW" ; then
6626 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6629 cat >>confdefs.h <<_ACEOF
6630 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6634 # Extract the first word of "neato", so it can be a program name with args.
6635 set dummy neato; ac_word=$2
6636 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6638 if test "${ac_cv_path_NEATO+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6643 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6650 test -z "$as_dir" && as_dir=.
6651 for ac_exec_ext in '' $ac_executable_extensions; do
6652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6653 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6661 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6665 NEATO=$ac_cv_path_NEATO
6666 if test -n "$NEATO"; then
6667 { echo "$as_me:$LINENO: result: $NEATO" >&5
6668 echo "${ECHO_T}$NEATO" >&6; }
6670 { echo "$as_me:$LINENO: result: no" >&5
6671 echo "${ECHO_T}no" >&6; }
6675 if test "$NEATO" != "echo neato" ; then
6677 cat >>confdefs.h <<\_ACEOF
6678 #define HAVE_NEATO 1
6681 if test "$llvm_cv_os_type" = "MingW" ; then
6682 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6685 cat >>confdefs.h <<_ACEOF
6686 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6690 # Extract the first word of "twopi", so it can be a program name with args.
6691 set dummy twopi; ac_word=$2
6692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6694 if test "${ac_cv_path_TWOPI+set}" = set; then
6695 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706 test -z "$as_dir" && as_dir=.
6707 for ac_exec_ext in '' $ac_executable_extensions; do
6708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6709 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6717 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6721 TWOPI=$ac_cv_path_TWOPI
6722 if test -n "$TWOPI"; then
6723 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6724 echo "${ECHO_T}$TWOPI" >&6; }
6726 { echo "$as_me:$LINENO: result: no" >&5
6727 echo "${ECHO_T}no" >&6; }
6731 if test "$TWOPI" != "echo twopi" ; then
6733 cat >>confdefs.h <<\_ACEOF
6734 #define HAVE_TWOPI 1
6737 if test "$llvm_cv_os_type" = "MingW" ; then
6738 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6741 cat >>confdefs.h <<_ACEOF
6742 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6746 # Extract the first word of "circo", so it can be a program name with args.
6747 set dummy circo; ac_word=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_CIRCO+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir=.
6763 for ac_exec_ext in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6777 CIRCO=$ac_cv_path_CIRCO
6778 if test -n "$CIRCO"; then
6779 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6780 echo "${ECHO_T}$CIRCO" >&6; }
6782 { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6787 if test "$CIRCO" != "echo circo" ; then
6789 cat >>confdefs.h <<\_ACEOF
6790 #define HAVE_CIRCO 1
6793 if test "$llvm_cv_os_type" = "MingW" ; then
6794 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6797 cat >>confdefs.h <<_ACEOF
6798 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6802 for ac_prog in gv gsview32
6804 # Extract the first word of "$ac_prog", so it can be a program name with args.
6805 set dummy $ac_prog; ac_word=$2
6806 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6807 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6808 if test "${ac_cv_path_GV+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6813 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6820 test -z "$as_dir" && as_dir=.
6821 for ac_exec_ext in '' $ac_executable_extensions; do
6822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6823 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 if test -n "$GV"; then
6836 { echo "$as_me:$LINENO: result: $GV" >&5
6837 echo "${ECHO_T}$GV" >&6; }
6839 { echo "$as_me:$LINENO: result: no" >&5
6840 echo "${ECHO_T}no" >&6; }
6844 test -n "$GV" && break
6846 test -n "$GV" || GV="echo gv"
6848 if test "$GV" != "echo gv" ; then
6850 cat >>confdefs.h <<\_ACEOF
6854 if test "$llvm_cv_os_type" = "MingW" ; then
6855 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6858 cat >>confdefs.h <<_ACEOF
6859 #define LLVM_PATH_GV "$GV${EXEEXT}"
6863 # Extract the first word of "dotty", so it can be a program name with args.
6864 set dummy dotty; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_DOTTY+set}" = set; then
6868 echo $ECHO_N "(cached) $ECHO_C" >&6
6872 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6879 test -z "$as_dir" && as_dir=.
6880 for ac_exec_ext in '' $ac_executable_extensions; do
6881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6890 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6894 DOTTY=$ac_cv_path_DOTTY
6895 if test -n "$DOTTY"; then
6896 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6897 echo "${ECHO_T}$DOTTY" >&6; }
6899 { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6904 if test "$DOTTY" != "echo dotty" ; then
6906 cat >>confdefs.h <<\_ACEOF
6907 #define HAVE_DOTTY 1
6910 if test "$llvm_cv_os_type" = "MingW" ; then
6911 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6914 cat >>confdefs.h <<_ACEOF
6915 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6919 # Extract the first word of "xdot.py", so it can be a program name with args.
6920 set dummy xdot.py; ac_word=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6950 XDOT_PY=$ac_cv_path_XDOT_PY
6951 if test -n "$XDOT_PY"; then
6952 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6953 echo "${ECHO_T}$XDOT_PY" >&6; }
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6960 if test "$XDOT_PY" != "echo xdot.py" ; then
6962 cat >>confdefs.h <<\_ACEOF
6963 #define HAVE_XDOT_PY 1
6966 if test "$llvm_cv_os_type" = "MingW" ; then
6967 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6970 cat >>confdefs.h <<_ACEOF
6971 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6976 # Find a good install program. We prefer a C program (faster),
6977 # so one script is as good as another. But avoid the broken or
6978 # incompatible versions:
6979 # SysV /etc/install, /usr/sbin/install
6980 # SunOS /usr/etc/install
6981 # IRIX /sbin/install
6983 # AmigaOS /C/install, which installs bootblocks on floppy discs
6984 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6985 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6986 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6987 # OS/2's system install, which has a completely different semantic
6988 # ./install, which can be erroneously created by make from ./install.sh.
6989 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6990 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6991 if test -z "$INSTALL"; then
6992 if test "${ac_cv_path_install+set}" = set; then
6993 echo $ECHO_N "(cached) $ECHO_C" >&6
6995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 test -z "$as_dir" && as_dir=.
7000 # Account for people who put trailing slashes in PATH elements.
7002 ./ | .// | /cC/* | \
7003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7007 # OSF1 and SCO ODT 3.0 have their own names for install.
7008 # Don't use installbsd from OSF since it installs stuff as root
7010 for ac_prog in ginstall scoinst install; do
7011 for ac_exec_ext in '' $ac_executable_extensions; do
7012 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7013 if test $ac_prog = install &&
7014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7015 # AIX install. It has an incompatible calling convention.
7017 elif test $ac_prog = install &&
7018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7019 # program-specific install script used by HP pwplus--don't use.
7022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7035 if test "${ac_cv_path_install+set}" = set; then
7036 INSTALL=$ac_cv_path_install
7038 # As a last resort, use the slow shell script. Don't cache a
7039 # value for INSTALL within a source directory, because that will
7040 # break other packages using the cache if that directory is
7041 # removed, or if the value is a relative name.
7042 INSTALL=$ac_install_sh
7045 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7046 echo "${ECHO_T}$INSTALL" >&6; }
7048 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7049 # It thinks the first close brace ends the variable substitution.
7050 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7052 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7054 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7057 [\\/$]* | ?:[\\/]* ) ;;
7058 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
7061 # Extract the first word of "bzip2", so it can be a program name with args.
7062 set dummy bzip2; ac_word=$2
7063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7065 if test "${ac_cv_path_BZIP2+set}" = set; then
7066 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 BZIP2=$ac_cv_path_BZIP2
7092 if test -n "$BZIP2"; then
7093 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7094 echo "${ECHO_T}$BZIP2" >&6; }
7096 { echo "$as_me:$LINENO: result: no" >&5
7097 echo "${ECHO_T}no" >&6; }
7101 # Extract the first word of "cat", so it can be a program name with args.
7102 set dummy cat; ac_word=$2
7103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7105 if test "${ac_cv_path_CAT+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 if test -n "$CAT"; then
7133 { echo "$as_me:$LINENO: result: $CAT" >&5
7134 echo "${ECHO_T}$CAT" >&6; }
7136 { echo "$as_me:$LINENO: result: no" >&5
7137 echo "${ECHO_T}no" >&6; }
7141 # Extract the first word of "doxygen", so it can be a program name with args.
7142 set dummy doxygen; ac_word=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7171 DOXYGEN=$ac_cv_path_DOXYGEN
7172 if test -n "$DOXYGEN"; then
7173 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7174 echo "${ECHO_T}$DOXYGEN" >&6; }
7176 { echo "$as_me:$LINENO: result: no" >&5
7177 echo "${ECHO_T}no" >&6; }
7181 # Extract the first word of "groff", so it can be a program name with args.
7182 set dummy groff; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_path_GROFF+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7190 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197 test -z "$as_dir" && as_dir=.
7198 for ac_exec_ext in '' $ac_executable_extensions; do
7199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7200 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7211 GROFF=$ac_cv_path_GROFF
7212 if test -n "$GROFF"; then
7213 { echo "$as_me:$LINENO: result: $GROFF" >&5
7214 echo "${ECHO_T}$GROFF" >&6; }
7216 { echo "$as_me:$LINENO: result: no" >&5
7217 echo "${ECHO_T}no" >&6; }
7221 # Extract the first word of "gzip", so it can be a program name with args.
7222 set dummy gzip; ac_word=$2
7223 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7224 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7225 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7226 echo $ECHO_N "(cached) $ECHO_C" >&6
7230 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237 test -z "$as_dir" && as_dir=.
7238 for ac_exec_ext in '' $ac_executable_extensions; do
7239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7240 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7241 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7251 GZIPBIN=$ac_cv_path_GZIPBIN
7252 if test -n "$GZIPBIN"; then
7253 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7254 echo "${ECHO_T}$GZIPBIN" >&6; }
7256 { echo "$as_me:$LINENO: result: no" >&5
7257 echo "${ECHO_T}no" >&6; }
7261 # Extract the first word of "pdfroff", so it can be a program name with args.
7262 set dummy pdfroff; ac_word=$2
7263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7265 if test "${ac_cv_path_PDFROFF+set}" = set; then
7266 echo $ECHO_N "(cached) $ECHO_C" >&6
7270 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7277 test -z "$as_dir" && as_dir=.
7278 for ac_exec_ext in '' $ac_executable_extensions; do
7279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7280 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7281 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7291 PDFROFF=$ac_cv_path_PDFROFF
7292 if test -n "$PDFROFF"; then
7293 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7294 echo "${ECHO_T}$PDFROFF" >&6; }
7296 { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7301 # Extract the first word of "zip", so it can be a program name with args.
7302 set dummy zip; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_ZIP+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7310 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7317 test -z "$as_dir" && as_dir=.
7318 for ac_exec_ext in '' $ac_executable_extensions; do
7319 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7321 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 if test -n "$ZIP"; then
7333 { echo "$as_me:$LINENO: result: $ZIP" >&5
7334 echo "${ECHO_T}$ZIP" >&6; }
7336 { echo "$as_me:$LINENO: result: no" >&5
7337 echo "${ECHO_T}no" >&6; }
7341 for ac_prog in ocamlc
7343 # Extract the first word of "$ac_prog", so it can be a program name with args.
7344 set dummy $ac_prog; ac_word=$2
7345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7347 if test "${ac_cv_path_OCAMLC+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7352 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7359 test -z "$as_dir" && as_dir=.
7360 for ac_exec_ext in '' $ac_executable_extensions; do
7361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7362 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7373 OCAMLC=$ac_cv_path_OCAMLC
7374 if test -n "$OCAMLC"; then
7375 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7376 echo "${ECHO_T}$OCAMLC" >&6; }
7378 { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7383 test -n "$OCAMLC" && break
7386 for ac_prog in ocamlopt
7388 # Extract the first word of "$ac_prog", so it can be a program name with args.
7389 set dummy $ac_prog; ac_word=$2
7390 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7391 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7392 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7404 test -z "$as_dir" && as_dir=.
7405 for ac_exec_ext in '' $ac_executable_extensions; do
7406 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7407 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7408 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 OCAMLOPT=$ac_cv_path_OCAMLOPT
7419 if test -n "$OCAMLOPT"; then
7420 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7421 echo "${ECHO_T}$OCAMLOPT" >&6; }
7423 { echo "$as_me:$LINENO: result: no" >&5
7424 echo "${ECHO_T}no" >&6; }
7428 test -n "$OCAMLOPT" && break
7431 for ac_prog in ocamldep
7433 # Extract the first word of "$ac_prog", so it can be a program name with args.
7434 set dummy $ac_prog; ac_word=$2
7435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7437 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7438 echo $ECHO_N "(cached) $ECHO_C" >&6
7442 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7449 test -z "$as_dir" && as_dir=.
7450 for ac_exec_ext in '' $ac_executable_extensions; do
7451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7452 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7463 OCAMLDEP=$ac_cv_path_OCAMLDEP
7464 if test -n "$OCAMLDEP"; then
7465 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7466 echo "${ECHO_T}$OCAMLDEP" >&6; }
7468 { echo "$as_me:$LINENO: result: no" >&5
7469 echo "${ECHO_T}no" >&6; }
7473 test -n "$OCAMLDEP" && break
7476 for ac_prog in ocamldoc
7478 # Extract the first word of "$ac_prog", so it can be a program name with args.
7479 set dummy $ac_prog; ac_word=$2
7480 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7482 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7487 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7494 test -z "$as_dir" && as_dir=.
7495 for ac_exec_ext in '' $ac_executable_extensions; do
7496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7497 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7498 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7508 OCAMLDOC=$ac_cv_path_OCAMLDOC
7509 if test -n "$OCAMLDOC"; then
7510 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7511 echo "${ECHO_T}$OCAMLDOC" >&6; }
7513 { echo "$as_me:$LINENO: result: no" >&5
7514 echo "${ECHO_T}no" >&6; }
7518 test -n "$OCAMLDOC" && break
7521 for ac_prog in gas as
7523 # Extract the first word of "$ac_prog", so it can be a program name with args.
7524 set dummy $ac_prog; ac_word=$2
7525 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7526 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7527 if test "${ac_cv_path_GAS+set}" = set; then
7528 echo $ECHO_N "(cached) $ECHO_C" >&6
7532 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7539 test -z "$as_dir" && as_dir=.
7540 for ac_exec_ext in '' $ac_executable_extensions; do
7541 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7542 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7554 if test -n "$GAS"; then
7555 { echo "$as_me:$LINENO: result: $GAS" >&5
7556 echo "${ECHO_T}$GAS" >&6; }
7558 { echo "$as_me:$LINENO: result: no" >&5
7559 echo "${ECHO_T}no" >&6; }
7563 test -n "$GAS" && break
7567 { echo "$as_me:$LINENO: checking for linker version" >&5
7568 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7569 if test "${llvm_cv_link_version+set}" = set; then
7570 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 version_string="$(ld -v 2>&1 | head -1)"
7576 if (echo "$version_string" | grep -q "ld64"); then
7577 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7579 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7583 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7584 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7586 cat >>confdefs.h <<_ACEOF
7587 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7592 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7593 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7594 if test "${llvm_cv_link_use_r+set}" = set; then
7595 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 ac_cpp='$CPP $CPPFLAGS'
7599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7604 CFLAGS="$CFLAGS -Wl,-R."
7605 cat >conftest.$ac_ext <<_ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */
7620 rm -f conftest.$ac_objext conftest$ac_exeext
7621 if { (ac_try="$ac_link"
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7627 (eval "$ac_link") 2>conftest.er1
7629 grep -v '^ *+' conftest.er1 >conftest.err
7631 cat conftest.err >&5
7632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7633 (exit $ac_status); } &&
7634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7635 { (case "(($ac_try" in
7636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7637 *) ac_try_echo=$ac_try;;
7639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7640 (eval "$ac_try") 2>&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); }; } &&
7644 { ac_try='test -s conftest$ac_exeext'
7645 { (case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_try") 2>&5
7652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7653 (exit $ac_status); }; }; then
7654 llvm_cv_link_use_r=yes
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7659 llvm_cv_link_use_r=no
7662 rm -f core conftest.err conftest.$ac_objext \
7663 conftest$ac_exeext conftest.$ac_ext
7666 ac_cpp='$CPP $CPPFLAGS'
7667 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7668 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7669 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7673 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7674 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7675 if test "$llvm_cv_link_use_r" = yes ; then
7677 cat >>confdefs.h <<\_ACEOF
7678 #define HAVE_LINK_R 1
7684 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7685 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7686 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7687 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 ac_cpp='$CPP $CPPFLAGS'
7691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7696 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7697 cat >conftest.$ac_ext <<_ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7712 rm -f conftest.$ac_objext conftest$ac_exeext
7713 if { (ac_try="$ac_link"
7715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7716 *) ac_try_echo=$ac_try;;
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719 (eval "$ac_link") 2>conftest.er1
7721 grep -v '^ *+' conftest.er1 >conftest.err
7723 cat conftest.err >&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } &&
7726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7727 { (case "(($ac_try" in
7728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7729 *) ac_try_echo=$ac_try;;
7731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7732 (eval "$ac_try") 2>&5
7734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7735 (exit $ac_status); }; } &&
7736 { ac_try='test -s conftest$ac_exeext'
7737 { (case "(($ac_try" in
7738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7739 *) ac_try_echo=$ac_try;;
7741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7742 (eval "$ac_try") 2>&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); }; }; then
7746 llvm_cv_link_use_export_dynamic=yes
7748 echo "$as_me: failed program was:" >&5
7749 sed 's/^/| /' conftest.$ac_ext >&5
7751 llvm_cv_link_use_export_dynamic=no
7754 rm -f core conftest.err conftest.$ac_objext \
7755 conftest$ac_exeext conftest.$ac_ext
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7765 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7766 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7767 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7769 cat >>confdefs.h <<\_ACEOF
7770 #define HAVE_LINK_EXPORT_DYNAMIC 1
7776 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7777 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7778 if test "${llvm_cv_link_use_version_script+set}" = set; then
7779 echo $ECHO_N "(cached) $ECHO_C" >&6
7782 ac_cpp='$CPP $CPPFLAGS'
7783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7789 # The following code is from the autoconf manual,
7790 # "11.13: Limitations of Usual Tools".
7791 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7792 # Use mktemp if possible; otherwise fall back on mkdir,
7793 # with $RANDOM to make collisions less likely.
7797 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7799 test -n "$tmp" && test -d "$tmp"
7801 tmp=$TMPDIR/foo$$-$RANDOM
7802 (umask 077 && mkdir "$tmp")
7805 echo "{" > "$tmp/export.map"
7806 echo " global: main;" >> "$tmp/export.map"
7807 echo " local: *;" >> "$tmp/export.map"
7808 echo "};" >> "$tmp/export.map"
7810 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7811 cat >conftest.$ac_ext <<_ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (ac_try="$ac_link"
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_link") 2>conftest.er1
7835 grep -v '^ *+' conftest.er1 >conftest.err
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } &&
7840 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7841 { (case "(($ac_try" in
7842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7843 *) ac_try_echo=$ac_try;;
7845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7846 (eval "$ac_try") 2>&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; } &&
7850 { ac_try='test -s conftest$ac_exeext'
7851 { (case "(($ac_try" in
7852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7853 *) ac_try_echo=$ac_try;;
7855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7856 (eval "$ac_try") 2>&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; }; then
7860 llvm_cv_link_use_version_script=yes
7862 echo "$as_me: failed program was:" >&5
7863 sed 's/^/| /' conftest.$ac_ext >&5
7865 llvm_cv_link_use_version_script=no
7868 rm -f core conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
7870 rm "$tmp/export.map"
7874 ac_cpp='$CPP $CPPFLAGS'
7875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7881 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
7882 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
7883 if test "$llvm_cv_link_use_version_script" = yes ; then
7884 HAVE_LINK_VERSION_SCRIPT=1
7891 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7892 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7893 if test "${ac_cv_c_const+set}" = set; then
7894 echo $ECHO_N "(cached) $ECHO_C" >&6
7896 cat >conftest.$ac_ext <<_ACEOF
7899 cat confdefs.h >>conftest.$ac_ext
7900 cat >>conftest.$ac_ext <<_ACEOF
7901 /* end confdefs.h. */
7906 /* FIXME: Include the comments suggested by Paul. */
7908 /* Ultrix mips cc rejects this. */
7909 typedef int charset[2];
7911 /* SunOS 4.1.1 cc rejects this. */
7912 char const *const *ccp;
7914 /* NEC SVR4.0.2 mips cc rejects this. */
7915 struct point {int x, y;};
7916 static struct point const zero = {0,0};
7917 /* AIX XL C 1.02.0.0 rejects this.
7918 It does not let you subtract one const X* pointer from another in
7919 an arm of an if-expression whose if-part is not a constant
7921 const char *g = "string";
7922 ccp = &g + (g ? g-g : 0);
7923 /* HPUX 7.0 cc rejects these. */
7926 ccp = (char const *const *) p;
7927 { /* SCO 3.2v4 cc rejects this. */
7929 char const *s = 0 ? (char *) 0 : (char const *) 0;
7934 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7936 const int *foo = &x[0];
7939 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7940 typedef const int *iptr;
7944 { /* AIX XL C 1.02.0.0 rejects this saying
7945 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7946 struct s { int j; const int *ap[3]; };
7947 struct s *b; b->j = 5;
7949 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7953 return !x[0] && !zero.x;
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
7969 grep -v '^ *+' conftest.er1 >conftest.err
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } &&
7974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7975 { (case "(($ac_try" in
7976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7977 *) ac_try_echo=$ac_try;;
7979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7980 (eval "$ac_try") 2>&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); }; } &&
7984 { ac_try='test -s conftest.$ac_objext'
7985 { (case "(($ac_try" in
7986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7987 *) ac_try_echo=$ac_try;;
7989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7990 (eval "$ac_try") 2>&5
7992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7993 (exit $ac_status); }; }; then
7996 echo "$as_me: failed program was:" >&5
7997 sed 's/^/| /' conftest.$ac_ext >&5
8002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8005 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8006 if test $ac_cv_c_const = no; then
8008 cat >>confdefs.h <<\_ACEOF
8020 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8021 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8022 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8023 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8025 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 cat >conftest.$ac_ext <<_ACEOF
8030 cat confdefs.h >>conftest.$ac_ext
8031 cat >>conftest.$ac_ext <<_ACEOF
8032 /* end confdefs.h. */
8033 #include <sys/types.h>
8045 rm -f conftest.$ac_objext
8046 if { (ac_try="$ac_compile"
8048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8049 *) ac_try_echo=$ac_try;;
8051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8052 (eval "$ac_compile") 2>conftest.er1
8054 grep -v '^ *+' conftest.er1 >conftest.err
8056 cat conftest.err >&5
8057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8058 (exit $ac_status); } &&
8059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8060 { (case "(($ac_try" in
8061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8062 *) ac_try_echo=$ac_try;;
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_try") 2>&5
8067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8068 (exit $ac_status); }; } &&
8069 { ac_try='test -s conftest.$ac_objext'
8070 { (case "(($ac_try" in
8071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8072 *) ac_try_echo=$ac_try;;
8074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8075 (eval "$ac_try") 2>&5
8077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8078 (exit $ac_status); }; }; then
8079 eval "$as_ac_Header=yes"
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 eval "$as_ac_Header=no"
8087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8089 ac_res=`eval echo '${'$as_ac_Header'}'`
8090 { echo "$as_me:$LINENO: result: $ac_res" >&5
8091 echo "${ECHO_T}$ac_res" >&6; }
8092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8093 cat >>confdefs.h <<_ACEOF
8094 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8097 ac_header_dirent=$ac_hdr; break
8101 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8102 if test $ac_header_dirent = dirent.h; then
8103 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8104 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8105 if test "${ac_cv_search_opendir+set}" = set; then
8106 echo $ECHO_N "(cached) $ECHO_C" >&6
8108 ac_func_search_save_LIBS=$LIBS
8109 cat >conftest.$ac_ext <<_ACEOF
8112 cat confdefs.h >>conftest.$ac_ext
8113 cat >>conftest.$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8116 /* Override any GCC internal prototype to avoid an error.
8117 Use char because int might match the return type of a GCC
8118 builtin and then its argument prototype would still apply. */
8131 for ac_lib in '' dir; do
8132 if test -z "$ac_lib"; then
8133 ac_res="none required"
8136 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8138 rm -f conftest.$ac_objext conftest$ac_exeext
8139 if { (ac_try="$ac_link"
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_link") 2>conftest.er1
8147 grep -v '^ *+' conftest.er1 >conftest.err
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } &&
8152 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8153 { (case "(($ac_try" in
8154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8155 *) ac_try_echo=$ac_try;;
8157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8158 (eval "$ac_try") 2>&5
8160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8161 (exit $ac_status); }; } &&
8162 { ac_try='test -s conftest$ac_exeext'
8163 { (case "(($ac_try" in
8164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8165 *) ac_try_echo=$ac_try;;
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_try") 2>&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); }; }; then
8172 ac_cv_search_opendir=$ac_res
8174 echo "$as_me: failed program was:" >&5
8175 sed 's/^/| /' conftest.$ac_ext >&5
8180 rm -f core conftest.err conftest.$ac_objext \
8182 if test "${ac_cv_search_opendir+set}" = set; then
8186 if test "${ac_cv_search_opendir+set}" = set; then
8189 ac_cv_search_opendir=no
8192 LIBS=$ac_func_search_save_LIBS
8194 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8195 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8196 ac_res=$ac_cv_search_opendir
8197 if test "$ac_res" != no; then
8198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8203 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8204 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8205 if test "${ac_cv_search_opendir+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 ac_func_search_save_LIBS=$LIBS
8209 cat >conftest.$ac_ext <<_ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8216 /* Override any GCC internal prototype to avoid an error.
8217 Use char because int might match the return type of a GCC
8218 builtin and then its argument prototype would still apply. */
8231 for ac_lib in '' x; do
8232 if test -z "$ac_lib"; then
8233 ac_res="none required"
8236 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8238 rm -f conftest.$ac_objext conftest$ac_exeext
8239 if { (ac_try="$ac_link"
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245 (eval "$ac_link") 2>conftest.er1
8247 grep -v '^ *+' conftest.er1 >conftest.err
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } &&
8252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8253 { (case "(($ac_try" in
8254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8255 *) ac_try_echo=$ac_try;;
8257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8258 (eval "$ac_try") 2>&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); }; } &&
8262 { ac_try='test -s conftest$ac_exeext'
8263 { (case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_try") 2>&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); }; }; then
8272 ac_cv_search_opendir=$ac_res
8274 echo "$as_me: failed program was:" >&5
8275 sed 's/^/| /' conftest.$ac_ext >&5
8280 rm -f core conftest.err conftest.$ac_objext \
8282 if test "${ac_cv_search_opendir+set}" = set; then
8286 if test "${ac_cv_search_opendir+set}" = set; then
8289 ac_cv_search_opendir=no
8292 LIBS=$ac_func_search_save_LIBS
8294 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8295 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8296 ac_res=$ac_cv_search_opendir
8297 if test "$ac_res" != no; then
8298 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8305 for ac_header in dlfcn.h
8307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8312 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 ac_res=`eval echo '${'$as_ac_Header'}'`
8315 { echo "$as_me:$LINENO: result: $ac_res" >&5
8316 echo "${ECHO_T}$ac_res" >&6; }
8318 # Is the header compilable?
8319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8321 cat >conftest.$ac_ext <<_ACEOF
8324 cat confdefs.h >>conftest.$ac_ext
8325 cat >>conftest.$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 $ac_includes_default
8328 #include <$ac_header>
8330 rm -f conftest.$ac_objext
8331 if { (ac_try="$ac_compile"
8333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8334 *) ac_try_echo=$ac_try;;
8336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8337 (eval "$ac_compile") 2>conftest.er1
8339 grep -v '^ *+' conftest.er1 >conftest.err
8341 cat conftest.err >&5
8342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8343 (exit $ac_status); } &&
8344 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8345 { (case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_try") 2>&5
8352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8353 (exit $ac_status); }; } &&
8354 { ac_try='test -s conftest.$ac_objext'
8355 { (case "(($ac_try" in
8356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8357 *) ac_try_echo=$ac_try;;
8359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8360 (eval "$ac_try") 2>&5
8362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8363 (exit $ac_status); }; }; then
8364 ac_header_compiler=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 ac_header_compiler=no
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8374 echo "${ECHO_T}$ac_header_compiler" >&6; }
8376 # Is the header present?
8377 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8378 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8379 cat >conftest.$ac_ext <<_ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 #include <$ac_header>
8387 if { (ac_try="$ac_cpp conftest.$ac_ext"
8389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8390 *) ac_try_echo=$ac_try;;
8392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8393 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8395 grep -v '^ *+' conftest.er1 >conftest.err
8397 cat conftest.err >&5
8398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8399 (exit $ac_status); } >/dev/null; then
8400 if test -s conftest.err; then
8401 ac_cpp_err=$ac_c_preproc_warn_flag
8402 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8409 if test -z "$ac_cpp_err"; then
8410 ac_header_preproc=yes
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8415 ac_header_preproc=no
8418 rm -f conftest.err conftest.$ac_ext
8419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8420 echo "${ECHO_T}$ac_header_preproc" >&6; }
8422 # So? What about this header?
8423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8429 ac_header_preproc=yes
8432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8445 ## ------------------------------------ ##
8446 ## Report this to http://llvm.org/bugs/ ##
8447 ## ------------------------------------ ##
8449 ) | sed "s/^/$as_me: WARNING: /" >&2
8452 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8453 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8455 echo $ECHO_N "(cached) $ECHO_C" >&6
8457 eval "$as_ac_Header=\$ac_header_preproc"
8459 ac_res=`eval echo '${'$as_ac_Header'}'`
8460 { echo "$as_me:$LINENO: result: $ac_res" >&5
8461 echo "${ECHO_T}$ac_res" >&6; }
8464 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8465 cat >>confdefs.h <<_ACEOF
8466 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8473 # Check whether --enable-ltdl-install was given.
8474 if test "${enable_ltdl_install+set}" = set; then
8475 enableval=$enable_ltdl_install;
8481 if test x"${enable_ltdl_install-no}" != xno; then
8483 INSTALL_LTDL_FALSE='#'
8485 INSTALL_LTDL_TRUE='#'
8491 if test x"${enable_ltdl_convenience-no}" != xno; then
8492 CONVENIENCE_LTDL_TRUE=
8493 CONVENIENCE_LTDL_FALSE='#'
8495 CONVENIENCE_LTDL_TRUE='#'
8496 CONVENIENCE_LTDL_FALSE=
8500 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8501 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8503 libname_spec='lib$name'
8511 shlibpath_overrides_runpath=unknown
8513 dynamic_linker="$host_os ld.so"
8514 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8515 if test "$GCC" = yes; then
8516 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8517 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8518 # if the path contains ";" then we assume it to be the separator
8519 # otherwise default to the standard path separator (i.e. ":") - it is
8520 # assumed that no part of a normal pathname contains ";" but that should
8521 # okay in the real world where ";" in dirpaths is itself problematic.
8522 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8524 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8527 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8529 need_lib_prefix=unknown
8530 hardcode_into_libs=no
8532 # when you set need_version to no, make sure it does not cause -set_version
8533 # flags to be left without arguments
8534 need_version=unknown
8539 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8540 shlibpath_var=LIBPATH
8542 # AIX 3 has no versioning support, so we append a major version to the name.
8543 soname_spec='${libname}${release}${shared_ext}$major'
8550 hardcode_into_libs=yes
8551 if test "$host_cpu" = ia64; then
8552 # AIX 5 supports IA64
8553 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8554 shlibpath_var=LD_LIBRARY_PATH
8556 # With GCC up to 2.95.x, collect2 would create an import file
8557 # for dependence libraries. The import file would start with
8558 # the line `#! .'. This would cause the generated library to
8559 # depend on `.', always an invalid library. This was fixed in
8560 # development snapshots of GCC prior to 3.0.
8562 aix4 | aix4.[01] | aix4.[01].*)
8563 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8565 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8572 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8573 # soname into executable. Probably we can add versioning support to
8574 # collect2, so additional links can be useful in future.
8575 if test "$aix_use_runtimelinking" = yes; then
8576 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8577 # instead of lib<name>.a to let people know that these are not
8578 # typical AIX shared libraries.
8579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8581 # We preserve .a as extension for shared libraries through AIX4.2
8582 # and later when we are not doing run time linking.
8583 library_names_spec='${libname}${release}.a $libname.a'
8584 soname_spec='${libname}${release}${shared_ext}$major'
8586 shlibpath_var=LIBPATH
8591 library_names_spec='$libname.ixlibrary $libname.a'
8592 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8593 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'
8597 library_names_spec='${libname}${shared_ext}'
8598 dynamic_linker="$host_os ld.so"
8599 shlibpath_var=LIBRARY_PATH
8605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8606 soname_spec='${libname}${release}${shared_ext}$major'
8607 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8608 shlibpath_var=LD_LIBRARY_PATH
8609 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8610 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8611 # the default ld.so.conf also contains /usr/contrib/lib and
8612 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8613 # libtool to hard-code these into programs
8616 cygwin* | mingw* | pw32*)
8617 version_type=windows
8622 case $GCC,$host_os in
8623 yes,cygwin* | yes,mingw* | yes,pw32*)
8624 library_names_spec='$libname.dll.a'
8625 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8626 postinstall_cmds='base_file=`basename \${file}`~
8627 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8628 dldir=$destdir/`dirname \$dlpath`~
8629 test -d \$dldir || mkdir -p \$dldir~
8630 $install_prog $dir/$dlname \$dldir/$dlname~
8631 chmod a+x \$dldir/$dlname'
8632 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8633 dlpath=$dir/\$dldll~
8635 shlibpath_overrides_runpath=yes
8639 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8640 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8641 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8644 # MinGW DLLs use traditional 'lib' prefix
8645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8646 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8647 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8648 # It is most probably a Windows format PATH printed by
8649 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8650 # path with ; separators, and with drive letters. We can handle the
8651 # drive letters (cygwin fileutils understands them), so leave them,
8652 # especially as we might pass files found there to a mingw objdump,
8653 # which wouldn't understand a cygwinified path. Ahh.
8654 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8660 # pw32 DLLs use 'pw' prefix rather than 'lib'
8661 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8667 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8670 dynamic_linker='Win32 ld.exe'
8671 # FIXME: first we should search . and the directory the executable is in
8675 darwin* | rhapsody*)
8676 dynamic_linker="$host_os dyld"
8680 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8681 soname_spec='${libname}${release}${major}$shared_ext'
8682 shlibpath_overrides_runpath=yes
8683 shlibpath_var=DYLD_LIBRARY_PATH
8684 shrext_cmds='.dylib'
8685 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8686 if test "$GCC" = yes; then
8687 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"`
8689 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8691 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8698 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8699 soname_spec='${libname}${release}${shared_ext}$major'
8700 shlibpath_var=LD_LIBRARY_PATH
8711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8712 soname_spec='${libname}${release}${shared_ext}$major'
8713 shlibpath_var=LD_LIBRARY_PATH
8714 shlibpath_overrides_runpath=no
8715 hardcode_into_libs=yes
8716 dynamic_linker='GNU ld.so'
8719 freebsd* | dragonfly*)
8720 # DragonFly does not have aout. When/if they implement a new
8721 # versioning mechanism, adjust this.
8722 if test -x /usr/bin/objformat; then
8723 objformat=`/usr/bin/objformat`
8726 freebsd[123].*) objformat=aout ;;
8730 version_type=freebsd-$objformat
8731 case $version_type in
8733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8738 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8742 shlibpath_var=LD_LIBRARY_PATH
8745 shlibpath_overrides_runpath=yes
8747 freebsd3.[01]* | freebsdelf3.[01]*)
8748 shlibpath_overrides_runpath=yes
8749 hardcode_into_libs=yes
8751 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8752 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8753 shlibpath_overrides_runpath=no
8754 hardcode_into_libs=yes
8756 freebsd*) # from 4.6 on
8757 shlibpath_overrides_runpath=yes
8758 hardcode_into_libs=yes
8767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8768 soname_spec='${libname}${release}${shared_ext}$major'
8769 shlibpath_var=LD_LIBRARY_PATH
8770 hardcode_into_libs=yes
8773 hpux9* | hpux10* | hpux11*)
8774 # Give a soname corresponding to the major version so that dld.sl refuses to
8775 # link against other versions.
8782 hardcode_into_libs=yes
8783 dynamic_linker="$host_os dld.so"
8784 shlibpath_var=LD_LIBRARY_PATH
8785 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8787 soname_spec='${libname}${release}${shared_ext}$major'
8788 if test "X$HPUX_IA64_MODE" = X32; then
8789 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8791 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8793 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8797 hardcode_into_libs=yes
8798 dynamic_linker="$host_os dld.sl"
8799 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8800 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8802 soname_spec='${libname}${release}${shared_ext}$major'
8803 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8804 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8808 dynamic_linker="$host_os dld.sl"
8809 shlibpath_var=SHLIB_PATH
8810 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8812 soname_spec='${libname}${release}${shared_ext}$major'
8815 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8816 postinstall_cmds='chmod 555 $lib'
8823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8824 soname_spec='${libname}${release}${shared_ext}$major'
8825 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8826 shlibpath_var=LD_LIBRARY_PATH
8827 shlibpath_overrides_runpath=no
8828 hardcode_into_libs=yes
8831 irix5* | irix6* | nonstopux*)
8833 nonstopux*) version_type=nonstopux ;;
8835 if test "$lt_cv_prog_gnu_ld" = yes; then
8843 soname_spec='${libname}${release}${shared_ext}$major'
8844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8846 irix5* | nonstopux*)
8850 case $LD in # libtool.m4 will add one of these switches to LD
8851 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8852 libsuff= shlibsuff= libmagic=32-bit;;
8853 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8854 libsuff=32 shlibsuff=N32 libmagic=N32;;
8855 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8856 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8857 *) libsuff= shlibsuff= libmagic=never-match;;
8861 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8862 shlibpath_overrides_runpath=no
8863 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8864 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8865 hardcode_into_libs=yes
8868 # No shared lib support for Linux oldld, aout, or coff.
8869 linux*oldld* | linux*aout* | linux*coff*)
8873 # This must be Linux ELF.
8878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8879 soname_spec='${libname}${release}${shared_ext}$major'
8880 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8881 shlibpath_var=LD_LIBRARY_PATH
8882 shlibpath_overrides_runpath=no
8883 # This implies no fast_install, which is unacceptable.
8884 # Some rework will be needed to allow for fast_install
8885 # before this can be enabled.
8886 hardcode_into_libs=yes
8888 # Append ld.so.conf contents to the search path
8889 if test -f /etc/ld.so.conf; then
8890 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' ' '`
8891 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
8894 # We used to test for /lib/ld.so.1 and disable shared libraries on
8895 # powerpc, because MkLinux only supported shared libraries with the
8896 # GNU dynamic linker. Since this was broken with cross compilers,
8897 # most powerpc-linux boxes support dynamic linking these days and
8898 # people can always --disable-shared, the test was removed, and we
8899 # assume the GNU/Linux dynamic linker is in use.
8900 dynamic_linker='GNU/Linux ld.so'
8907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8908 soname_spec='${libname}${release}${shared_ext}$major'
8909 shlibpath_var=LD_LIBRARY_PATH
8910 shlibpath_overrides_runpath=no
8911 hardcode_into_libs=yes
8912 dynamic_linker='GNU ld.so'
8919 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8921 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8922 dynamic_linker='NetBSD (a.out) ld.so'
8924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8925 soname_spec='${libname}${release}${shared_ext}$major'
8926 dynamic_linker='NetBSD ld.elf_so'
8928 shlibpath_var=LD_LIBRARY_PATH
8929 shlibpath_overrides_runpath=yes
8930 hardcode_into_libs=yes
8935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8936 shlibpath_var=LD_LIBRARY_PATH
8937 shlibpath_overrides_runpath=yes
8944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8945 soname_spec='${libname}${release}${shared_ext}$major'
8946 shlibpath_var=LD_LIBRARY_PATH
8947 shlibpath_overrides_runpath=yes
8952 sys_lib_dlsearch_path_spec="/usr/lib"
8954 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8956 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8957 *) need_version=no ;;
8959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8960 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8961 shlibpath_var=LD_LIBRARY_PATH
8962 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8964 openbsd2.[89] | openbsd2.[89].*)
8965 shlibpath_overrides_runpath=no
8968 shlibpath_overrides_runpath=yes
8972 shlibpath_overrides_runpath=yes
8977 libname_spec='$name'
8980 library_names_spec='$libname${shared_ext} $libname.a'
8981 dynamic_linker='OS/2 ld.exe'
8982 shlibpath_var=LIBPATH
8985 osf3* | osf4* | osf5*)
8989 soname_spec='${libname}${release}${shared_ext}$major'
8990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8991 shlibpath_var=LD_LIBRARY_PATH
8992 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8993 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9001 soname_spec='${libname}${release}${shared_ext}$major'
9002 shlibpath_var=LD_LIBRARY_PATH
9003 shlibpath_overrides_runpath=yes
9004 hardcode_into_libs=yes
9005 # ldd complains unless libraries are executable
9006 postinstall_cmds='chmod +x $lib'
9011 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9012 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9013 shlibpath_var=LD_LIBRARY_PATH
9014 shlibpath_overrides_runpath=yes
9015 if test "$with_gnu_ld" = yes; then
9023 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9024 soname_spec='${libname}${release}${shared_ext}$major'
9025 shlibpath_var=LD_LIBRARY_PATH
9026 case $host_vendor in
9028 shlibpath_overrides_runpath=no
9030 export_dynamic_flag_spec='${wl}-Blargedynsym'
9031 runpath_var=LD_RUN_PATH
9039 shlibpath_overrides_runpath=no
9040 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9046 if test -d /usr/nec ;then
9048 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9049 soname_spec='$libname${shared_ext}.$major'
9050 shlibpath_var=LD_LIBRARY_PATH
9054 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9055 version_type=freebsd-elf
9058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9059 soname_spec='${libname}${release}${shared_ext}$major'
9060 shlibpath_var=LD_LIBRARY_PATH
9061 hardcode_into_libs=yes
9062 if test "$with_gnu_ld" = yes; then
9063 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9064 shlibpath_overrides_runpath=no
9066 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9067 shlibpath_overrides_runpath=yes
9070 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9074 sys_lib_dlsearch_path_spec='/usr/lib'
9079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9080 soname_spec='${libname}${release}${shared_ext}$major'
9081 shlibpath_var=LD_LIBRARY_PATH
9088 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9089 echo "${ECHO_T}$dynamic_linker" >&6; }
9090 test "$dynamic_linker" = no && can_build_shared=no
9092 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9093 if test "$GCC" = yes; then
9094 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9098 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9099 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9100 if test "${libltdl_cv_shlibext+set}" = set; then
9101 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 eval libltdl_cv_shlibext=$shrext_cmds
9108 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9109 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9110 if test -n "$libltdl_cv_shlibext"; then
9112 cat >>confdefs.h <<_ACEOF
9113 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9119 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9120 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9121 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9122 echo $ECHO_N "(cached) $ECHO_C" >&6
9124 libltdl_cv_shlibpath_var="$shlibpath_var"
9126 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9127 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9128 if test -n "$libltdl_cv_shlibpath_var"; then
9130 cat >>confdefs.h <<_ACEOF
9131 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9137 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9138 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9139 if test "${libltdl_cv_sys_search_path+set}" = set; then
9140 echo $ECHO_N "(cached) $ECHO_C" >&6
9142 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9144 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9145 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9146 if test -n "$libltdl_cv_sys_search_path"; then
9148 for dir in $libltdl_cv_sys_search_path; do
9149 if test -z "$sys_search_path"; then
9150 sys_search_path="$dir"
9152 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9156 cat >>confdefs.h <<_ACEOF
9157 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9162 { echo "$as_me:$LINENO: checking for objdir" >&5
9163 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9164 if test "${libltdl_cv_objdir+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9167 libltdl_cv_objdir="$objdir"
9168 if test -n "$objdir"; then
9171 rm -f .libs 2>/dev/null
9172 mkdir .libs 2>/dev/null
9173 if test -d .libs; then
9174 libltdl_cv_objdir=.libs
9176 # MS-DOS does not allow filenames that begin with a dot.
9177 libltdl_cv_objdir=_libs
9179 rmdir .libs 2>/dev/null
9183 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9184 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9186 cat >>confdefs.h <<_ACEOF
9187 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9195 # Check for command to grab the raw symbol name followed by C symbol from nm.
9196 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9197 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9198 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9199 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 # These are sane defaults that work on at least a few old systems.
9203 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9205 # Character class describing NM global symbol codes.
9206 symcode='[BCDEGRST]'
9208 # Regexp to match symbols that can be accessed directly from C.
9209 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9211 # Transform an extracted symbol line into a proper C declaration
9212 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9214 # Transform an extracted symbol line into symbol name and symbol address
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'"
9217 # Define system-specific variables.
9222 cygwin* | mingw* | pw32*)
9223 symcode='[ABCDGISTW]'
9225 hpux*) # Its linker distinguishes data from code symbols
9226 if test "$host_cpu" = ia64; then
9227 symcode='[ABCDEGRST]'
9229 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9230 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'"
9233 if test "$host_cpu" = ia64; then
9234 symcode='[ABCDGIRSTW]'
9235 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9236 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'"
9240 symcode='[BCDEGRST]'
9243 symcode='[BCDEGQRST]'
9254 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9262 # Handle CRLF in mingw tool chain
9266 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9270 # If we're using GNU nm, then use its standard symbol codes.
9271 case `$NM -V 2>&1` in
9272 *GNU* | *'with BFD'*)
9273 symcode='[ABCDGIRSTW]' ;;
9276 # Try without a prefix undercore, then with it.
9277 for ac_symprfx in "" "_"; do
9279 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9280 symxfrm="\\1 $ac_symprfx\\2 \\2"
9282 # Write the raw and C identifiers.
9283 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9285 # Check to see that the pipe works correctly.
9289 cat > conftest.$ac_ext <<EOF
9294 void nm_test_func(){}
9298 int main(){nm_test_var='a';nm_test_func();return(0);}
9301 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9302 (eval $ac_compile) 2>&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; then
9306 # Now try to grab the symbols.
9308 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9309 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9312 (exit $ac_status); } && test -s "$nlist"; then
9313 # Try sorting and uniquifying the output.
9314 if sort "$nlist" | uniq > "$nlist"T; then
9315 mv -f "$nlist"T "$nlist"
9320 # Make sure that we snagged all the symbols we need.
9321 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9322 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9323 cat <<EOF > conftest.$ac_ext
9329 # Now generate the symbol file.
9330 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9332 cat <<EOF >> conftest.$ac_ext
9333 #if defined (__STDC__) && __STDC__
9334 # define lt_ptr_t void *
9336 # define lt_ptr_t char *
9340 /* The mapping between symbol names and symbols. */
9345 lt_preloaded_symbols[] =
9348 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9349 cat <<\EOF >> conftest.$ac_ext
9357 # Now try linking the two files.
9358 mv conftest.$ac_objext conftstm.$ac_objext
9359 lt_save_LIBS="$LIBS"
9360 lt_save_CFLAGS="$CFLAGS"
9361 LIBS="conftstm.$ac_objext"
9362 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9364 (eval $ac_link) 2>&5
9366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9367 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9370 LIBS="$lt_save_LIBS"
9371 CFLAGS="$lt_save_CFLAGS"
9373 echo "cannot find nm_test_func in $nlist" >&5
9376 echo "cannot find nm_test_var in $nlist" >&5
9379 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9382 echo "$progname: failed program was:" >&5
9383 cat conftest.$ac_ext >&5
9385 rm -f conftest* conftst*
9387 # Do not use the global_symbol_pipe unless it works.
9388 if test "$pipe_works" = yes; then
9391 lt_cv_sys_global_symbol_pipe=
9397 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9398 lt_cv_sys_global_symbol_to_cdecl=
9400 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9401 { echo "$as_me:$LINENO: result: failed" >&5
9402 echo "${ECHO_T}failed" >&6; }
9404 { echo "$as_me:$LINENO: result: ok" >&5
9405 echo "${ECHO_T}ok" >&6; }
9409 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9410 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9411 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9415 libltdl_cv_preloaded_symbols=yes
9417 libltdl_cv_preloaded_symbols=no
9421 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9422 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9423 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9425 cat >>confdefs.h <<\_ACEOF
9426 #define HAVE_PRELOADED_SYMBOLS 1
9434 ac_cpp='$CPP $CPPFLAGS'
9435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9440 { echo "$as_me:$LINENO: checking for shl_load" >&5
9441 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9442 if test "${ac_cv_func_shl_load+set}" = set; then
9443 echo $ECHO_N "(cached) $ECHO_C" >&6
9445 cat >conftest.$ac_ext <<_ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9452 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9453 #define shl_load innocuous_shl_load
9455 /* System header to define __stub macros and hopefully few prototypes,
9456 which can conflict with char shl_load (); below.
9457 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9458 <limits.h> exists even on freestanding compilers. */
9461 # include <limits.h>
9463 # include <assert.h>
9468 /* Override any GCC internal prototype to avoid an error.
9469 Use char because int might match the return type of a GCC
9470 builtin and then its argument prototype would still apply. */
9475 /* The GNU C library defines this for functions which it implements
9476 to always fail with ENOSYS. Some functions are actually named
9477 something starting with __ and the normal name is an alias. */
9478 #if defined __stub_shl_load || defined __stub___shl_load
9490 rm -f conftest.$ac_objext conftest$ac_exeext
9491 if { (ac_try="$ac_link"
9493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9494 *) ac_try_echo=$ac_try;;
9496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9497 (eval "$ac_link") 2>conftest.er1
9499 grep -v '^ *+' conftest.er1 >conftest.err
9501 cat conftest.err >&5
9502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9503 (exit $ac_status); } &&
9504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9505 { (case "(($ac_try" in
9506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9507 *) ac_try_echo=$ac_try;;
9509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9510 (eval "$ac_try") 2>&5
9512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); }; } &&
9514 { ac_try='test -s conftest$ac_exeext'
9515 { (case "(($ac_try" in
9516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9517 *) ac_try_echo=$ac_try;;
9519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9520 (eval "$ac_try") 2>&5
9522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9523 (exit $ac_status); }; }; then
9524 ac_cv_func_shl_load=yes
9526 echo "$as_me: failed program was:" >&5
9527 sed 's/^/| /' conftest.$ac_ext >&5
9529 ac_cv_func_shl_load=no
9532 rm -f core conftest.err conftest.$ac_objext \
9533 conftest$ac_exeext conftest.$ac_ext
9535 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9536 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9537 if test $ac_cv_func_shl_load = yes; then
9539 cat >>confdefs.h <<\_ACEOF
9540 #define HAVE_SHL_LOAD 1
9544 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9545 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9546 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9547 echo $ECHO_N "(cached) $ECHO_C" >&6
9549 ac_check_lib_save_LIBS=$LIBS
9551 cat >conftest.$ac_ext <<_ACEOF
9554 cat confdefs.h >>conftest.$ac_ext
9555 cat >>conftest.$ac_ext <<_ACEOF
9556 /* end confdefs.h. */
9558 /* Override any GCC internal prototype to avoid an error.
9559 Use char because int might match the return type of a GCC
9560 builtin and then its argument prototype would still apply. */
9573 rm -f conftest.$ac_objext conftest$ac_exeext
9574 if { (ac_try="$ac_link"
9576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9577 *) ac_try_echo=$ac_try;;
9579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9580 (eval "$ac_link") 2>conftest.er1
9582 grep -v '^ *+' conftest.er1 >conftest.err
9584 cat conftest.err >&5
9585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9586 (exit $ac_status); } &&
9587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9588 { (case "(($ac_try" in
9589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9590 *) ac_try_echo=$ac_try;;
9592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9593 (eval "$ac_try") 2>&5
9595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9596 (exit $ac_status); }; } &&
9597 { ac_try='test -s conftest$ac_exeext'
9598 { (case "(($ac_try" in
9599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9600 *) ac_try_echo=$ac_try;;
9602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9603 (eval "$ac_try") 2>&5
9605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9606 (exit $ac_status); }; }; then
9607 ac_cv_lib_dld_shl_load=yes
9609 echo "$as_me: failed program was:" >&5
9610 sed 's/^/| /' conftest.$ac_ext >&5
9612 ac_cv_lib_dld_shl_load=no
9615 rm -f core conftest.err conftest.$ac_objext \
9616 conftest$ac_exeext conftest.$ac_ext
9617 LIBS=$ac_check_lib_save_LIBS
9619 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9620 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9621 if test $ac_cv_lib_dld_shl_load = yes; then
9623 cat >>confdefs.h <<\_ACEOF
9624 #define HAVE_SHL_LOAD 1
9627 LIBADD_DL="$LIBADD_DL -ldld"
9629 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9630 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9631 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9632 echo $ECHO_N "(cached) $ECHO_C" >&6
9634 ac_check_lib_save_LIBS=$LIBS
9636 cat >conftest.$ac_ext <<_ACEOF
9639 cat confdefs.h >>conftest.$ac_ext
9640 cat >>conftest.$ac_ext <<_ACEOF
9641 /* end confdefs.h. */
9643 /* Override any GCC internal prototype to avoid an error.
9644 Use char because int might match the return type of a GCC
9645 builtin and then its argument prototype would still apply. */
9658 rm -f conftest.$ac_objext conftest$ac_exeext
9659 if { (ac_try="$ac_link"
9661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9662 *) ac_try_echo=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_link") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1 >conftest.err
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } &&
9672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9673 { (case "(($ac_try" in
9674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9675 *) ac_try_echo=$ac_try;;
9677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9678 (eval "$ac_try") 2>&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); }; } &&
9682 { ac_try='test -s conftest$ac_exeext'
9683 { (case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_try") 2>&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 (exit $ac_status); }; }; then
9692 ac_cv_lib_dl_dlopen=yes
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9697 ac_cv_lib_dl_dlopen=no
9700 rm -f core conftest.err conftest.$ac_objext \
9701 conftest$ac_exeext conftest.$ac_ext
9702 LIBS=$ac_check_lib_save_LIBS
9704 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9705 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9706 if test $ac_cv_lib_dl_dlopen = yes; then
9708 cat >>confdefs.h <<\_ACEOF
9709 #define HAVE_LIBDL 1
9712 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9714 cat >conftest.$ac_ext <<_ACEOF
9717 cat confdefs.h >>conftest.$ac_ext
9718 cat >>conftest.$ac_ext <<_ACEOF
9719 /* end confdefs.h. */
9732 rm -f conftest.$ac_objext conftest$ac_exeext
9733 if { (ac_try="$ac_link"
9735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9736 *) ac_try_echo=$ac_try;;
9738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9739 (eval "$ac_link") 2>conftest.er1
9741 grep -v '^ *+' conftest.er1 >conftest.err
9743 cat conftest.err >&5
9744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9745 (exit $ac_status); } &&
9746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9747 { (case "(($ac_try" in
9748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9749 *) ac_try_echo=$ac_try;;
9751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9752 (eval "$ac_try") 2>&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); }; } &&
9756 { ac_try='test -s conftest$ac_exeext'
9757 { (case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9762 (eval "$ac_try") 2>&5
9764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9765 (exit $ac_status); }; }; then
9767 cat >>confdefs.h <<\_ACEOF
9768 #define HAVE_LIBDL 1
9770 libltdl_cv_func_dlopen="yes"
9772 echo "$as_me: failed program was:" >&5
9773 sed 's/^/| /' conftest.$ac_ext >&5
9775 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9776 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9777 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9780 ac_check_lib_save_LIBS=$LIBS
9782 cat >conftest.$ac_ext <<_ACEOF
9785 cat confdefs.h >>conftest.$ac_ext
9786 cat >>conftest.$ac_ext <<_ACEOF
9787 /* end confdefs.h. */
9789 /* Override any GCC internal prototype to avoid an error.
9790 Use char because int might match the return type of a GCC
9791 builtin and then its argument prototype would still apply. */
9804 rm -f conftest.$ac_objext conftest$ac_exeext
9805 if { (ac_try="$ac_link"
9807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9808 *) ac_try_echo=$ac_try;;
9810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9811 (eval "$ac_link") 2>conftest.er1
9813 grep -v '^ *+' conftest.er1 >conftest.err
9815 cat conftest.err >&5
9816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9817 (exit $ac_status); } &&
9818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9819 { (case "(($ac_try" in
9820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9821 *) ac_try_echo=$ac_try;;
9823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9824 (eval "$ac_try") 2>&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 (exit $ac_status); }; } &&
9828 { ac_try='test -s conftest$ac_exeext'
9829 { (case "(($ac_try" in
9830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9831 *) ac_try_echo=$ac_try;;
9833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9834 (eval "$ac_try") 2>&5
9836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9837 (exit $ac_status); }; }; then
9838 ac_cv_lib_svld_dlopen=yes
9840 echo "$as_me: failed program was:" >&5
9841 sed 's/^/| /' conftest.$ac_ext >&5
9843 ac_cv_lib_svld_dlopen=no
9846 rm -f core conftest.err conftest.$ac_objext \
9847 conftest$ac_exeext conftest.$ac_ext
9848 LIBS=$ac_check_lib_save_LIBS
9850 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9851 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9852 if test $ac_cv_lib_svld_dlopen = yes; then
9854 cat >>confdefs.h <<\_ACEOF
9855 #define HAVE_LIBDL 1
9858 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
9860 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9861 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
9862 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9863 echo $ECHO_N "(cached) $ECHO_C" >&6
9865 ac_check_lib_save_LIBS=$LIBS
9867 cat >conftest.$ac_ext <<_ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9874 /* Override any GCC internal prototype to avoid an error.
9875 Use char because int might match the return type of a GCC
9876 builtin and then its argument prototype would still apply. */
9889 rm -f conftest.$ac_objext conftest$ac_exeext
9890 if { (ac_try="$ac_link"
9892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9893 *) ac_try_echo=$ac_try;;
9895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9896 (eval "$ac_link") 2>conftest.er1
9898 grep -v '^ *+' conftest.er1 >conftest.err
9900 cat conftest.err >&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); } &&
9903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9904 { (case "(($ac_try" in
9905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9906 *) ac_try_echo=$ac_try;;
9908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9909 (eval "$ac_try") 2>&5
9911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9912 (exit $ac_status); }; } &&
9913 { ac_try='test -s conftest$ac_exeext'
9914 { (case "(($ac_try" in
9915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9916 *) ac_try_echo=$ac_try;;
9918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9919 (eval "$ac_try") 2>&5
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 ac_cv_lib_dld_dld_link=yes
9925 echo "$as_me: failed program was:" >&5
9926 sed 's/^/| /' conftest.$ac_ext >&5
9928 ac_cv_lib_dld_dld_link=no
9931 rm -f core conftest.err conftest.$ac_objext \
9932 conftest$ac_exeext conftest.$ac_ext
9933 LIBS=$ac_check_lib_save_LIBS
9935 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9936 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
9937 if test $ac_cv_lib_dld_dld_link = yes; then
9939 cat >>confdefs.h <<\_ACEOF
9943 LIBADD_DL="$LIBADD_DL -ldld"
9945 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
9946 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
9947 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
9948 echo $ECHO_N "(cached) $ECHO_C" >&6
9950 cat >conftest.$ac_ext <<_ACEOF
9953 cat confdefs.h >>conftest.$ac_ext
9954 cat >>conftest.$ac_ext <<_ACEOF
9955 /* end confdefs.h. */
9956 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
9957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9958 #define _dyld_func_lookup innocuous__dyld_func_lookup
9960 /* System header to define __stub macros and hopefully few prototypes,
9961 which can conflict with char _dyld_func_lookup (); below.
9962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9963 <limits.h> exists even on freestanding compilers. */
9966 # include <limits.h>
9968 # include <assert.h>
9971 #undef _dyld_func_lookup
9973 /* Override any GCC internal prototype to avoid an error.
9974 Use char because int might match the return type of a GCC
9975 builtin and then its argument prototype would still apply. */
9979 char _dyld_func_lookup ();
9980 /* The GNU C library defines this for functions which it implements
9981 to always fail with ENOSYS. Some functions are actually named
9982 something starting with __ and the normal name is an alias. */
9983 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
9990 return _dyld_func_lookup ();
9995 rm -f conftest.$ac_objext conftest$ac_exeext
9996 if { (ac_try="$ac_link"
9998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9999 *) ac_try_echo=$ac_try;;
10001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10002 (eval "$ac_link") 2>conftest.er1
10004 grep -v '^ *+' conftest.er1 >conftest.err
10006 cat conftest.err >&5
10007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10008 (exit $ac_status); } &&
10009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10010 { (case "(($ac_try" in
10011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10012 *) ac_try_echo=$ac_try;;
10014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10015 (eval "$ac_try") 2>&5
10017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); }; } &&
10019 { ac_try='test -s conftest$ac_exeext'
10020 { (case "(($ac_try" in
10021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10022 *) ac_try_echo=$ac_try;;
10024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10025 (eval "$ac_try") 2>&5
10027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10028 (exit $ac_status); }; }; then
10029 ac_cv_func__dyld_func_lookup=yes
10031 echo "$as_me: failed program was:" >&5
10032 sed 's/^/| /' conftest.$ac_ext >&5
10034 ac_cv_func__dyld_func_lookup=no
10037 rm -f core conftest.err conftest.$ac_objext \
10038 conftest$ac_exeext conftest.$ac_ext
10040 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10041 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10042 if test $ac_cv_func__dyld_func_lookup = yes; then
10044 cat >>confdefs.h <<\_ACEOF
10045 #define HAVE_DYLD 1
10059 rm -f core conftest.err conftest.$ac_objext \
10060 conftest$ac_exeext conftest.$ac_ext
10071 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10073 lt_save_LIBS="$LIBS"
10074 LIBS="$LIBS $LIBADD_DL"
10076 for ac_func in dlerror
10078 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10079 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10080 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10081 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10082 echo $ECHO_N "(cached) $ECHO_C" >&6
10084 cat >conftest.$ac_ext <<_ACEOF
10087 cat confdefs.h >>conftest.$ac_ext
10088 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */
10090 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10092 #define $ac_func innocuous_$ac_func
10094 /* System header to define __stub macros and hopefully few prototypes,
10095 which can conflict with char $ac_func (); below.
10096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10097 <limits.h> exists even on freestanding compilers. */
10100 # include <limits.h>
10102 # include <assert.h>
10107 /* Override any GCC internal prototype to avoid an error.
10108 Use char because int might match the return type of a GCC
10109 builtin and then its argument prototype would still apply. */
10114 /* The GNU C library defines this for functions which it implements
10115 to always fail with ENOSYS. Some functions are actually named
10116 something starting with __ and the normal name is an alias. */
10117 #if defined __stub_$ac_func || defined __stub___$ac_func
10124 return $ac_func ();
10129 rm -f conftest.$ac_objext conftest$ac_exeext
10130 if { (ac_try="$ac_link"
10131 case "(($ac_try" in
10132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10133 *) ac_try_echo=$ac_try;;
10135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10136 (eval "$ac_link") 2>conftest.er1
10138 grep -v '^ *+' conftest.er1 >conftest.err
10140 cat conftest.err >&5
10141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10142 (exit $ac_status); } &&
10143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10144 { (case "(($ac_try" in
10145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10146 *) ac_try_echo=$ac_try;;
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_try") 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); }; } &&
10153 { ac_try='test -s conftest$ac_exeext'
10154 { (case "(($ac_try" in
10155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10156 *) ac_try_echo=$ac_try;;
10158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10159 (eval "$ac_try") 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); }; }; then
10163 eval "$as_ac_var=yes"
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10168 eval "$as_ac_var=no"
10171 rm -f core conftest.err conftest.$ac_objext \
10172 conftest$ac_exeext conftest.$ac_ext
10174 ac_res=`eval echo '${'$as_ac_var'}'`
10175 { echo "$as_me:$LINENO: result: $ac_res" >&5
10176 echo "${ECHO_T}$ac_res" >&6; }
10177 if test `eval echo '${'$as_ac_var'}'` = yes; then
10178 cat >>confdefs.h <<_ACEOF
10179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10185 LIBS="$lt_save_LIBS"
10188 ac_cpp='$CPP $CPPFLAGS'
10189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10195 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10196 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10197 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10198 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 ac_cv_sys_symbol_underscore=no
10201 cat > conftest.$ac_ext <<EOF
10202 void nm_test_func(){}
10203 int main(){nm_test_func;return 0;}
10205 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10206 (eval $ac_compile) 2>&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); }; then
10210 # Now try to grab the symbols.
10211 ac_nlist=conftest.nm
10212 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10213 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && test -s "$ac_nlist"; then
10217 # See whether the symbols have a leading underscore.
10218 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10219 ac_cv_sys_symbol_underscore=yes
10221 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10224 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10228 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10231 echo "configure: failed program was:" >&5
10237 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10238 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10241 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10242 if test x"$libltdl_cv_func_dlopen" = xyes ||
10243 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10244 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10245 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10246 if test "${libltdl_cv_need_uscore+set}" = set; then
10247 echo $ECHO_N "(cached) $ECHO_C" >&6
10249 libltdl_cv_need_uscore=unknown
10251 LIBS="$LIBS $LIBADD_DL"
10252 if test "$cross_compiling" = yes; then :
10253 libltdl_cv_need_uscore=cross
10255 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10256 lt_status=$lt_dlunknown
10257 cat > conftest.$ac_ext <<EOF
10258 #line 10258 "configure"
10259 #include "confdefs.h"
10268 # define LT_DLGLOBAL RTLD_GLOBAL
10271 # define LT_DLGLOBAL DL_GLOBAL
10273 # define LT_DLGLOBAL 0
10277 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10278 find out it does not work in some platform. */
10279 #ifndef LT_DLLAZY_OR_NOW
10281 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10284 # define LT_DLLAZY_OR_NOW DL_LAZY
10287 # define LT_DLLAZY_OR_NOW RTLD_NOW
10290 # define LT_DLLAZY_OR_NOW DL_NOW
10292 # define LT_DLLAZY_OR_NOW 0
10300 extern "C" void exit (int);
10303 void fnord() { int i=42;}
10306 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10307 int status = $lt_dlunknown;
10311 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10312 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10313 /* dlclose (self); */
10321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10322 (eval $ac_link) 2>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10326 (./conftest; exit; ) >&5 2>/dev/null
10328 case x$lt_status in
10329 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10330 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10331 x$lt_dlunknown|x*) ;;
10334 # compilation failed
10343 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10344 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10348 if test x"$libltdl_cv_need_uscore" = xyes; then
10350 cat >>confdefs.h <<\_ACEOF
10351 #define NEED_USCORE 1
10357 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10358 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10359 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10360 echo $ECHO_N "(cached) $ECHO_C" >&6
10362 # PORTME does your system automatically load deplibs for dlopen?
10363 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10364 # For now, we just catch OSes we know something about -- in the
10365 # future, we'll try test this programmatically.
10366 libltdl_cv_sys_dlopen_deplibs=unknown
10368 aix3*|aix4.1.*|aix4.2.*)
10369 # Unknown whether this is true for these versions of AIX, but
10370 # we want this `case' here to explicitly catch those versions.
10371 libltdl_cv_sys_dlopen_deplibs=unknown
10374 libltdl_cv_sys_dlopen_deplibs=yes
10377 # Assuming the user has installed a libdl from somewhere, this is true
10378 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10379 libltdl_cv_sys_dlopen_deplibs=yes
10381 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10382 # GNU and its variants, using gnu ld.so (Glibc)
10383 libltdl_cv_sys_dlopen_deplibs=yes
10386 libltdl_cv_sys_dlopen_deplibs=yes
10389 libltdl_cv_sys_dlopen_deplibs=yes
10391 irix[12345]*|irix6.[01]*)
10392 # Catch all versions of IRIX before 6.2, and indicate that we don't
10393 # know how it worked for any of those versions.
10394 libltdl_cv_sys_dlopen_deplibs=unknown
10397 # The case above catches anything before 6.2, and it's known that
10398 # at 6.2 and later dlopen does load deplibs.
10399 libltdl_cv_sys_dlopen_deplibs=yes
10402 libltdl_cv_sys_dlopen_deplibs=yes
10405 libltdl_cv_sys_dlopen_deplibs=yes
10408 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10409 # it did *not* use an RPATH in a shared library to find objects the
10410 # library depends on, so we explicitly say `no'.
10411 libltdl_cv_sys_dlopen_deplibs=no
10413 osf5.0|osf5.0a|osf5.1)
10414 # dlopen *does* load deplibs and with the right loader patch applied
10415 # it even uses RPATH in a shared library to search for shared objects
10416 # that the library depends on, but there's no easy way to know if that
10417 # patch is installed. Since this is the case, all we can really
10418 # say is unknown -- it depends on the patch being installed. If
10419 # it is, this changes to `yes'. Without it, it would be `no'.
10420 libltdl_cv_sys_dlopen_deplibs=unknown
10423 # the two cases above should catch all versions of osf <= 5.1. Read
10424 # the comments above for what we know about them.
10425 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10426 # is used to find them so we can finally say `yes'.
10427 libltdl_cv_sys_dlopen_deplibs=yes
10430 libltdl_cv_sys_dlopen_deplibs=yes
10432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10433 libltdl_cv_sys_dlopen_deplibs=yes
10438 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10439 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10440 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10442 cat >>confdefs.h <<\_ACEOF
10443 #define LTDL_DLOPEN_DEPLIBS 1
10449 for ac_header in argz.h
10451 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10453 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10454 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10456 echo $ECHO_N "(cached) $ECHO_C" >&6
10458 ac_res=`eval echo '${'$as_ac_Header'}'`
10459 { echo "$as_me:$LINENO: result: $ac_res" >&5
10460 echo "${ECHO_T}$ac_res" >&6; }
10462 # Is the header compilable?
10463 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10464 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10465 cat >conftest.$ac_ext <<_ACEOF
10468 cat confdefs.h >>conftest.$ac_ext
10469 cat >>conftest.$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10471 $ac_includes_default
10472 #include <$ac_header>
10474 rm -f conftest.$ac_objext
10475 if { (ac_try="$ac_compile"
10476 case "(($ac_try" in
10477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10478 *) ac_try_echo=$ac_try;;
10480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10481 (eval "$ac_compile") 2>conftest.er1
10483 grep -v '^ *+' conftest.er1 >conftest.err
10485 cat conftest.err >&5
10486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10487 (exit $ac_status); } &&
10488 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10489 { (case "(($ac_try" in
10490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10491 *) ac_try_echo=$ac_try;;
10493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10494 (eval "$ac_try") 2>&5
10496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10497 (exit $ac_status); }; } &&
10498 { ac_try='test -s conftest.$ac_objext'
10499 { (case "(($ac_try" in
10500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10501 *) ac_try_echo=$ac_try;;
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_try") 2>&5
10506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507 (exit $ac_status); }; }; then
10508 ac_header_compiler=yes
10510 echo "$as_me: failed program was:" >&5
10511 sed 's/^/| /' conftest.$ac_ext >&5
10513 ac_header_compiler=no
10516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10517 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10518 echo "${ECHO_T}$ac_header_compiler" >&6; }
10520 # Is the header present?
10521 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10522 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10523 cat >conftest.$ac_ext <<_ACEOF
10526 cat confdefs.h >>conftest.$ac_ext
10527 cat >>conftest.$ac_ext <<_ACEOF
10528 /* end confdefs.h. */
10529 #include <$ac_header>
10531 if { (ac_try="$ac_cpp conftest.$ac_ext"
10532 case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10539 grep -v '^ *+' conftest.er1 >conftest.err
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } >/dev/null; then
10544 if test -s conftest.err; then
10545 ac_cpp_err=$ac_c_preproc_warn_flag
10546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10553 if test -z "$ac_cpp_err"; then
10554 ac_header_preproc=yes
10556 echo "$as_me: failed program was:" >&5
10557 sed 's/^/| /' conftest.$ac_ext >&5
10559 ac_header_preproc=no
10562 rm -f conftest.err conftest.$ac_ext
10563 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10564 echo "${ECHO_T}$ac_header_preproc" >&6; }
10566 # So? What about this header?
10567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10569 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10570 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10571 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10573 ac_header_preproc=yes
10576 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10577 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10578 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10579 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10580 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10581 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10582 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10583 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10584 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10586 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10587 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10589 ## ------------------------------------ ##
10590 ## Report this to http://llvm.org/bugs/ ##
10591 ## ------------------------------------ ##
10593 ) | sed "s/^/$as_me: WARNING: /" >&2
10596 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10597 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10598 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10599 echo $ECHO_N "(cached) $ECHO_C" >&6
10601 eval "$as_ac_Header=\$ac_header_preproc"
10603 ac_res=`eval echo '${'$as_ac_Header'}'`
10604 { echo "$as_me:$LINENO: result: $ac_res" >&5
10605 echo "${ECHO_T}$ac_res" >&6; }
10608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10609 cat >>confdefs.h <<_ACEOF
10610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10618 { echo "$as_me:$LINENO: checking for error_t" >&5
10619 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10620 if test "${ac_cv_type_error_t+set}" = set; then
10621 echo $ECHO_N "(cached) $ECHO_C" >&6
10623 cat >conftest.$ac_ext <<_ACEOF
10626 cat confdefs.h >>conftest.$ac_ext
10627 cat >>conftest.$ac_ext <<_ACEOF
10628 /* end confdefs.h. */
10633 typedef error_t ac__type_new_;
10637 if ((ac__type_new_ *) 0)
10639 if (sizeof (ac__type_new_))
10645 rm -f conftest.$ac_objext
10646 if { (ac_try="$ac_compile"
10647 case "(($ac_try" in
10648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10649 *) ac_try_echo=$ac_try;;
10651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10652 (eval "$ac_compile") 2>conftest.er1
10654 grep -v '^ *+' conftest.er1 >conftest.err
10656 cat conftest.err >&5
10657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10658 (exit $ac_status); } &&
10659 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10660 { (case "(($ac_try" in
10661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10662 *) ac_try_echo=$ac_try;;
10664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10665 (eval "$ac_try") 2>&5
10667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10668 (exit $ac_status); }; } &&
10669 { ac_try='test -s conftest.$ac_objext'
10670 { (case "(($ac_try" in
10671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10672 *) ac_try_echo=$ac_try;;
10674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10675 (eval "$ac_try") 2>&5
10677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10678 (exit $ac_status); }; }; then
10679 ac_cv_type_error_t=yes
10681 echo "$as_me: failed program was:" >&5
10682 sed 's/^/| /' conftest.$ac_ext >&5
10684 ac_cv_type_error_t=no
10687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10689 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10690 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10691 if test $ac_cv_type_error_t = yes; then
10693 cat >>confdefs.h <<_ACEOF
10694 #define HAVE_ERROR_T 1
10700 cat >>confdefs.h <<\_ACEOF
10701 #define error_t int
10712 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 cat >conftest.$ac_ext <<_ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10728 #define $ac_func innocuous_$ac_func
10730 /* System header to define __stub macros and hopefully few prototypes,
10731 which can conflict with char $ac_func (); below.
10732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10733 <limits.h> exists even on freestanding compilers. */
10736 # include <limits.h>
10738 # include <assert.h>
10743 /* Override any GCC internal prototype to avoid an error.
10744 Use char because int might match the return type of a GCC
10745 builtin and then its argument prototype would still apply. */
10750 /* The GNU C library defines this for functions which it implements
10751 to always fail with ENOSYS. Some functions are actually named
10752 something starting with __ and the normal name is an alias. */
10753 #if defined __stub_$ac_func || defined __stub___$ac_func
10760 return $ac_func ();
10765 rm -f conftest.$ac_objext conftest$ac_exeext
10766 if { (ac_try="$ac_link"
10767 case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_link") 2>conftest.er1
10774 grep -v '^ *+' conftest.er1 >conftest.err
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } &&
10779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10780 { (case "(($ac_try" in
10781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10782 *) ac_try_echo=$ac_try;;
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_try") 2>&5
10787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10788 (exit $ac_status); }; } &&
10789 { ac_try='test -s conftest$ac_exeext'
10790 { (case "(($ac_try" in
10791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10792 *) ac_try_echo=$ac_try;;
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_try") 2>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); }; }; then
10799 eval "$as_ac_var=yes"
10801 echo "$as_me: failed program was:" >&5
10802 sed 's/^/| /' conftest.$ac_ext >&5
10804 eval "$as_ac_var=no"
10807 rm -f core conftest.err conftest.$ac_objext \
10808 conftest$ac_exeext conftest.$ac_ext
10810 ac_res=`eval echo '${'$as_ac_var'}'`
10811 { echo "$as_me:$LINENO: result: $ac_res" >&5
10812 echo "${ECHO_T}$ac_res" >&6; }
10813 if test `eval echo '${'$as_ac_var'}'` = yes; then
10814 cat >>confdefs.h <<_ACEOF
10815 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10848 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10851 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10853 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10854 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10855 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 ac_res=`eval echo '${'$as_ac_Header'}'`
10859 { echo "$as_me:$LINENO: result: $ac_res" >&5
10860 echo "${ECHO_T}$ac_res" >&6; }
10862 # Is the header compilable?
10863 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10864 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10865 cat >conftest.$ac_ext <<_ACEOF
10868 cat confdefs.h >>conftest.$ac_ext
10869 cat >>conftest.$ac_ext <<_ACEOF
10870 /* end confdefs.h. */
10871 $ac_includes_default
10872 #include <$ac_header>
10874 rm -f conftest.$ac_objext
10875 if { (ac_try="$ac_compile"
10876 case "(($ac_try" in
10877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10878 *) ac_try_echo=$ac_try;;
10880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10881 (eval "$ac_compile") 2>conftest.er1
10883 grep -v '^ *+' conftest.er1 >conftest.err
10885 cat conftest.err >&5
10886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10887 (exit $ac_status); } &&
10888 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10889 { (case "(($ac_try" in
10890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10891 *) ac_try_echo=$ac_try;;
10893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10894 (eval "$ac_try") 2>&5
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; } &&
10898 { ac_try='test -s conftest.$ac_objext'
10899 { (case "(($ac_try" in
10900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10901 *) ac_try_echo=$ac_try;;
10903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10904 (eval "$ac_try") 2>&5
10906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10907 (exit $ac_status); }; }; then
10908 ac_header_compiler=yes
10910 echo "$as_me: failed program was:" >&5
10911 sed 's/^/| /' conftest.$ac_ext >&5
10913 ac_header_compiler=no
10916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10917 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10918 echo "${ECHO_T}$ac_header_compiler" >&6; }
10920 # Is the header present?
10921 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10922 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10923 cat >conftest.$ac_ext <<_ACEOF
10926 cat confdefs.h >>conftest.$ac_ext
10927 cat >>conftest.$ac_ext <<_ACEOF
10928 /* end confdefs.h. */
10929 #include <$ac_header>
10931 if { (ac_try="$ac_cpp conftest.$ac_ext"
10932 case "(($ac_try" in
10933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10934 *) ac_try_echo=$ac_try;;
10936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10939 grep -v '^ *+' conftest.er1 >conftest.err
10941 cat conftest.err >&5
10942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10943 (exit $ac_status); } >/dev/null; then
10944 if test -s conftest.err; then
10945 ac_cpp_err=$ac_c_preproc_warn_flag
10946 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10953 if test -z "$ac_cpp_err"; then
10954 ac_header_preproc=yes
10956 echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10959 ac_header_preproc=no
10962 rm -f conftest.err conftest.$ac_ext
10963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10964 echo "${ECHO_T}$ac_header_preproc" >&6; }
10966 # So? What about this header?
10967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10969 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10970 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10973 ac_header_preproc=yes
10976 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10977 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10978 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10979 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10980 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10981 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10983 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10986 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10987 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10989 ## ------------------------------------ ##
10990 ## Report this to http://llvm.org/bugs/ ##
10991 ## ------------------------------------ ##
10993 ) | sed "s/^/$as_me: WARNING: /" >&2
10996 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10999 echo $ECHO_N "(cached) $ECHO_C" >&6
11001 eval "$as_ac_Header=\$ac_header_preproc"
11003 ac_res=`eval echo '${'$as_ac_Header'}'`
11004 { echo "$as_me:$LINENO: result: $ac_res" >&5
11005 echo "${ECHO_T}$ac_res" >&6; }
11008 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11009 cat >>confdefs.h <<_ACEOF
11010 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11021 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11023 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11024 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 ac_res=`eval echo '${'$as_ac_Header'}'`
11031 { echo "$as_me:$LINENO: result: $ac_res" >&5
11032 echo "${ECHO_T}$ac_res" >&6; }
11034 # Is the header compilable?
11035 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11036 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11037 cat >conftest.$ac_ext <<_ACEOF
11040 cat confdefs.h >>conftest.$ac_ext
11041 cat >>conftest.$ac_ext <<_ACEOF
11042 /* end confdefs.h. */
11043 $ac_includes_default
11044 #include <$ac_header>
11046 rm -f conftest.$ac_objext
11047 if { (ac_try="$ac_compile"
11048 case "(($ac_try" in
11049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11050 *) ac_try_echo=$ac_try;;
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_compile") 2>conftest.er1
11055 grep -v '^ *+' conftest.er1 >conftest.err
11057 cat conftest.err >&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); } &&
11060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11061 { (case "(($ac_try" in
11062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11063 *) ac_try_echo=$ac_try;;
11065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11066 (eval "$ac_try") 2>&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); }; } &&
11070 { ac_try='test -s conftest.$ac_objext'
11071 { (case "(($ac_try" in
11072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11073 *) ac_try_echo=$ac_try;;
11075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11076 (eval "$ac_try") 2>&5
11078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11079 (exit $ac_status); }; }; then
11080 ac_header_compiler=yes
11082 echo "$as_me: failed program was:" >&5
11083 sed 's/^/| /' conftest.$ac_ext >&5
11085 ac_header_compiler=no
11088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11090 echo "${ECHO_T}$ac_header_compiler" >&6; }
11092 # Is the header present?
11093 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11094 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11095 cat >conftest.$ac_ext <<_ACEOF
11098 cat confdefs.h >>conftest.$ac_ext
11099 cat >>conftest.$ac_ext <<_ACEOF
11100 /* end confdefs.h. */
11101 #include <$ac_header>
11103 if { (ac_try="$ac_cpp conftest.$ac_ext"
11104 case "(($ac_try" in
11105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11106 *) ac_try_echo=$ac_try;;
11108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11111 grep -v '^ *+' conftest.er1 >conftest.err
11113 cat conftest.err >&5
11114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11115 (exit $ac_status); } >/dev/null; then
11116 if test -s conftest.err; then
11117 ac_cpp_err=$ac_c_preproc_warn_flag
11118 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11125 if test -z "$ac_cpp_err"; then
11126 ac_header_preproc=yes
11128 echo "$as_me: failed program was:" >&5
11129 sed 's/^/| /' conftest.$ac_ext >&5
11131 ac_header_preproc=no
11134 rm -f conftest.err conftest.$ac_ext
11135 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11136 echo "${ECHO_T}$ac_header_preproc" >&6; }
11138 # So? What about this header?
11139 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11141 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11142 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11143 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11144 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11145 ac_header_preproc=yes
11148 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11149 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11150 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11151 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11152 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11153 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11154 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11155 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11157 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11158 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11159 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11161 ## ------------------------------------ ##
11162 ## Report this to http://llvm.org/bugs/ ##
11163 ## ------------------------------------ ##
11165 ) | sed "s/^/$as_me: WARNING: /" >&2
11168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11171 echo $ECHO_N "(cached) $ECHO_C" >&6
11173 eval "$as_ac_Header=\$ac_header_preproc"
11175 ac_res=`eval echo '${'$as_ac_Header'}'`
11176 { echo "$as_me:$LINENO: result: $ac_res" >&5
11177 echo "${ECHO_T}$ac_res" >&6; }
11180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11181 cat >>confdefs.h <<_ACEOF
11182 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11191 for ac_header in string.h strings.h
11193 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11197 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11198 echo $ECHO_N "(cached) $ECHO_C" >&6
11200 ac_res=`eval echo '${'$as_ac_Header'}'`
11201 { echo "$as_me:$LINENO: result: $ac_res" >&5
11202 echo "${ECHO_T}$ac_res" >&6; }
11204 # Is the header compilable?
11205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11207 cat >conftest.$ac_ext <<_ACEOF
11210 cat confdefs.h >>conftest.$ac_ext
11211 cat >>conftest.$ac_ext <<_ACEOF
11212 /* end confdefs.h. */
11213 $ac_includes_default
11214 #include <$ac_header>
11216 rm -f conftest.$ac_objext
11217 if { (ac_try="$ac_compile"
11218 case "(($ac_try" in
11219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11220 *) ac_try_echo=$ac_try;;
11222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11223 (eval "$ac_compile") 2>conftest.er1
11225 grep -v '^ *+' conftest.er1 >conftest.err
11227 cat conftest.err >&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); } &&
11230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11231 { (case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_try") 2>&5
11238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11239 (exit $ac_status); }; } &&
11240 { ac_try='test -s conftest.$ac_objext'
11241 { (case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_try") 2>&5
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); }; }; then
11250 ac_header_compiler=yes
11252 echo "$as_me: failed program was:" >&5
11253 sed 's/^/| /' conftest.$ac_ext >&5
11255 ac_header_compiler=no
11258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11260 echo "${ECHO_T}$ac_header_compiler" >&6; }
11262 # Is the header present?
11263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11265 cat >conftest.$ac_ext <<_ACEOF
11268 cat confdefs.h >>conftest.$ac_ext
11269 cat >>conftest.$ac_ext <<_ACEOF
11270 /* end confdefs.h. */
11271 #include <$ac_header>
11273 if { (ac_try="$ac_cpp conftest.$ac_ext"
11274 case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11281 grep -v '^ *+' conftest.er1 >conftest.err
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } >/dev/null; then
11286 if test -s conftest.err; then
11287 ac_cpp_err=$ac_c_preproc_warn_flag
11288 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11295 if test -z "$ac_cpp_err"; then
11296 ac_header_preproc=yes
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 ac_header_preproc=no
11304 rm -f conftest.err conftest.$ac_ext
11305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11306 echo "${ECHO_T}$ac_header_preproc" >&6; }
11308 # So? What about this header?
11309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11315 ac_header_preproc=yes
11318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11331 ## ------------------------------------ ##
11332 ## Report this to http://llvm.org/bugs/ ##
11333 ## ------------------------------------ ##
11335 ) | sed "s/^/$as_me: WARNING: /" >&2
11338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11343 eval "$as_ac_Header=\$ac_header_preproc"
11345 ac_res=`eval echo '${'$as_ac_Header'}'`
11346 { echo "$as_me:$LINENO: result: $ac_res" >&5
11347 echo "${ECHO_T}$ac_res" >&6; }
11350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11351 cat >>confdefs.h <<_ACEOF
11352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11362 for ac_func in strchr index
11364 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11365 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11366 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11367 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11368 echo $ECHO_N "(cached) $ECHO_C" >&6
11370 cat >conftest.$ac_ext <<_ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11377 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11378 #define $ac_func innocuous_$ac_func
11380 /* System header to define __stub macros and hopefully few prototypes,
11381 which can conflict with char $ac_func (); below.
11382 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11383 <limits.h> exists even on freestanding compilers. */
11386 # include <limits.h>
11388 # include <assert.h>
11393 /* Override any GCC internal prototype to avoid an error.
11394 Use char because int might match the return type of a GCC
11395 builtin and then its argument prototype would still apply. */
11400 /* The GNU C library defines this for functions which it implements
11401 to always fail with ENOSYS. Some functions are actually named
11402 something starting with __ and the normal name is an alias. */
11403 #if defined __stub_$ac_func || defined __stub___$ac_func
11410 return $ac_func ();
11415 rm -f conftest.$ac_objext conftest$ac_exeext
11416 if { (ac_try="$ac_link"
11417 case "(($ac_try" in
11418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11419 *) ac_try_echo=$ac_try;;
11421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11422 (eval "$ac_link") 2>conftest.er1
11424 grep -v '^ *+' conftest.er1 >conftest.err
11426 cat conftest.err >&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } &&
11429 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11430 { (case "(($ac_try" in
11431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11432 *) ac_try_echo=$ac_try;;
11434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11435 (eval "$ac_try") 2>&5
11437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11438 (exit $ac_status); }; } &&
11439 { ac_try='test -s conftest$ac_exeext'
11440 { (case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_try") 2>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); }; }; then
11449 eval "$as_ac_var=yes"
11451 echo "$as_me: failed program was:" >&5
11452 sed 's/^/| /' conftest.$ac_ext >&5
11454 eval "$as_ac_var=no"
11457 rm -f core conftest.err conftest.$ac_objext \
11458 conftest$ac_exeext conftest.$ac_ext
11460 ac_res=`eval echo '${'$as_ac_var'}'`
11461 { echo "$as_me:$LINENO: result: $ac_res" >&5
11462 echo "${ECHO_T}$ac_res" >&6; }
11463 if test `eval echo '${'$as_ac_var'}'` = yes; then
11464 cat >>confdefs.h <<_ACEOF
11465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11473 for ac_func in strrchr rindex
11475 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11476 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11477 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11478 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 cat >conftest.$ac_ext <<_ACEOF
11484 cat confdefs.h >>conftest.$ac_ext
11485 cat >>conftest.$ac_ext <<_ACEOF
11486 /* end confdefs.h. */
11487 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11488 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11489 #define $ac_func innocuous_$ac_func
11491 /* System header to define __stub macros and hopefully few prototypes,
11492 which can conflict with char $ac_func (); below.
11493 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11494 <limits.h> exists even on freestanding compilers. */
11497 # include <limits.h>
11499 # include <assert.h>
11504 /* Override any GCC internal prototype to avoid an error.
11505 Use char because int might match the return type of a GCC
11506 builtin and then its argument prototype would still apply. */
11511 /* The GNU C library defines this for functions which it implements
11512 to always fail with ENOSYS. Some functions are actually named
11513 something starting with __ and the normal name is an alias. */
11514 #if defined __stub_$ac_func || defined __stub___$ac_func
11521 return $ac_func ();
11526 rm -f conftest.$ac_objext conftest$ac_exeext
11527 if { (ac_try="$ac_link"
11528 case "(($ac_try" in
11529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11530 *) ac_try_echo=$ac_try;;
11532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11533 (eval "$ac_link") 2>conftest.er1
11535 grep -v '^ *+' conftest.er1 >conftest.err
11537 cat conftest.err >&5
11538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11539 (exit $ac_status); } &&
11540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11541 { (case "(($ac_try" in
11542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11543 *) ac_try_echo=$ac_try;;
11545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11546 (eval "$ac_try") 2>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); }; } &&
11550 { ac_try='test -s conftest$ac_exeext'
11551 { (case "(($ac_try" in
11552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_try") 2>&5
11558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11559 (exit $ac_status); }; }; then
11560 eval "$as_ac_var=yes"
11562 echo "$as_me: failed program was:" >&5
11563 sed 's/^/| /' conftest.$ac_ext >&5
11565 eval "$as_ac_var=no"
11568 rm -f core conftest.err conftest.$ac_objext \
11569 conftest$ac_exeext conftest.$ac_ext
11571 ac_res=`eval echo '${'$as_ac_var'}'`
11572 { echo "$as_me:$LINENO: result: $ac_res" >&5
11573 echo "${ECHO_T}$ac_res" >&6; }
11574 if test `eval echo '${'$as_ac_var'}'` = yes; then
11575 cat >>confdefs.h <<_ACEOF
11576 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11584 for ac_func in memcpy bcopy
11586 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11587 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11588 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11589 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 cat >conftest.$ac_ext <<_ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11598 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11600 #define $ac_func innocuous_$ac_func
11602 /* System header to define __stub macros and hopefully few prototypes,
11603 which can conflict with char $ac_func (); below.
11604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11605 <limits.h> exists even on freestanding compilers. */
11608 # include <limits.h>
11610 # include <assert.h>
11615 /* Override any GCC internal prototype to avoid an error.
11616 Use char because int might match the return type of a GCC
11617 builtin and then its argument prototype would still apply. */
11622 /* The GNU C library defines this for functions which it implements
11623 to always fail with ENOSYS. Some functions are actually named
11624 something starting with __ and the normal name is an alias. */
11625 #if defined __stub_$ac_func || defined __stub___$ac_func
11632 return $ac_func ();
11637 rm -f conftest.$ac_objext conftest$ac_exeext
11638 if { (ac_try="$ac_link"
11639 case "(($ac_try" in
11640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11641 *) ac_try_echo=$ac_try;;
11643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11644 (eval "$ac_link") 2>conftest.er1
11646 grep -v '^ *+' conftest.er1 >conftest.err
11648 cat conftest.err >&5
11649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11650 (exit $ac_status); } &&
11651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11652 { (case "(($ac_try" in
11653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11654 *) ac_try_echo=$ac_try;;
11656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11657 (eval "$ac_try") 2>&5
11659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11660 (exit $ac_status); }; } &&
11661 { ac_try='test -s conftest$ac_exeext'
11662 { (case "(($ac_try" in
11663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11664 *) ac_try_echo=$ac_try;;
11666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11667 (eval "$ac_try") 2>&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); }; }; then
11671 eval "$as_ac_var=yes"
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.$ac_ext >&5
11676 eval "$as_ac_var=no"
11679 rm -f core conftest.err conftest.$ac_objext \
11680 conftest$ac_exeext conftest.$ac_ext
11682 ac_res=`eval echo '${'$as_ac_var'}'`
11683 { echo "$as_me:$LINENO: result: $ac_res" >&5
11684 echo "${ECHO_T}$ac_res" >&6; }
11685 if test `eval echo '${'$as_ac_var'}'` = yes; then
11686 cat >>confdefs.h <<_ACEOF
11687 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11695 for ac_func in memmove strcmp
11697 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11698 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11699 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11700 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11701 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 cat >conftest.$ac_ext <<_ACEOF
11706 cat confdefs.h >>conftest.$ac_ext
11707 cat >>conftest.$ac_ext <<_ACEOF
11708 /* end confdefs.h. */
11709 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11710 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11711 #define $ac_func innocuous_$ac_func
11713 /* System header to define __stub macros and hopefully few prototypes,
11714 which can conflict with char $ac_func (); below.
11715 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11716 <limits.h> exists even on freestanding compilers. */
11719 # include <limits.h>
11721 # include <assert.h>
11726 /* Override any GCC internal prototype to avoid an error.
11727 Use char because int might match the return type of a GCC
11728 builtin and then its argument prototype would still apply. */
11733 /* The GNU C library defines this for functions which it implements
11734 to always fail with ENOSYS. Some functions are actually named
11735 something starting with __ and the normal name is an alias. */
11736 #if defined __stub_$ac_func || defined __stub___$ac_func
11743 return $ac_func ();
11748 rm -f conftest.$ac_objext conftest$ac_exeext
11749 if { (ac_try="$ac_link"
11750 case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_link") 2>conftest.er1
11757 grep -v '^ *+' conftest.er1 >conftest.err
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } &&
11762 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11763 { (case "(($ac_try" in
11764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11765 *) ac_try_echo=$ac_try;;
11767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11768 (eval "$ac_try") 2>&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); }; } &&
11772 { ac_try='test -s conftest$ac_exeext'
11773 { (case "(($ac_try" in
11774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11775 *) ac_try_echo=$ac_try;;
11777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11778 (eval "$ac_try") 2>&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); }; }; then
11782 eval "$as_ac_var=yes"
11784 echo "$as_me: failed program was:" >&5
11785 sed 's/^/| /' conftest.$ac_ext >&5
11787 eval "$as_ac_var=no"
11790 rm -f core conftest.err conftest.$ac_objext \
11791 conftest$ac_exeext conftest.$ac_ext
11793 ac_res=`eval echo '${'$as_ac_var'}'`
11794 { echo "$as_me:$LINENO: result: $ac_res" >&5
11795 echo "${ECHO_T}$ac_res" >&6; }
11796 if test `eval echo '${'$as_ac_var'}'` = yes; then
11797 cat >>confdefs.h <<_ACEOF
11798 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11807 for ac_func in closedir opendir readdir
11809 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11810 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11811 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11812 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11813 echo $ECHO_N "(cached) $ECHO_C" >&6
11815 cat >conftest.$ac_ext <<_ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11823 #define $ac_func innocuous_$ac_func
11825 /* System header to define __stub macros and hopefully few prototypes,
11826 which can conflict with char $ac_func (); below.
11827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11828 <limits.h> exists even on freestanding compilers. */
11831 # include <limits.h>
11833 # include <assert.h>
11838 /* Override any GCC internal prototype to avoid an error.
11839 Use char because int might match the return type of a GCC
11840 builtin and then its argument prototype would still apply. */
11845 /* The GNU C library defines this for functions which it implements
11846 to always fail with ENOSYS. Some functions are actually named
11847 something starting with __ and the normal name is an alias. */
11848 #if defined __stub_$ac_func || defined __stub___$ac_func
11855 return $ac_func ();
11860 rm -f conftest.$ac_objext conftest$ac_exeext
11861 if { (ac_try="$ac_link"
11862 case "(($ac_try" in
11863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11864 *) ac_try_echo=$ac_try;;
11866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11867 (eval "$ac_link") 2>conftest.er1
11869 grep -v '^ *+' conftest.er1 >conftest.err
11871 cat conftest.err >&5
11872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873 (exit $ac_status); } &&
11874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11875 { (case "(($ac_try" in
11876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11877 *) ac_try_echo=$ac_try;;
11879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11880 (eval "$ac_try") 2>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); }; } &&
11884 { ac_try='test -s conftest$ac_exeext'
11885 { (case "(($ac_try" in
11886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_try") 2>&5
11892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11893 (exit $ac_status); }; }; then
11894 eval "$as_ac_var=yes"
11896 echo "$as_me: failed program was:" >&5
11897 sed 's/^/| /' conftest.$ac_ext >&5
11899 eval "$as_ac_var=no"
11902 rm -f core conftest.err conftest.$ac_objext \
11903 conftest$ac_exeext conftest.$ac_ext
11905 ac_res=`eval echo '${'$as_ac_var'}'`
11906 { echo "$as_me:$LINENO: result: $ac_res" >&5
11907 echo "${ECHO_T}$ac_res" >&6; }
11908 if test `eval echo '${'$as_ac_var'}'` = yes; then
11909 cat >>confdefs.h <<_ACEOF
11910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11918 { echo "$as_me:$LINENO: checking tool compatibility" >&5
11919 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
11932 if test "$GCC" != "yes" && test "$ICC" != "yes"
11934 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
11935 echo "$as_me: error: gcc|icc required but not found" >&2;}
11936 { (exit 1); exit 1; }; }
11939 if test "$GXX" != "yes" && test "$IXX" != "yes"
11941 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
11942 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
11943 { (exit 1); exit 1; }; }
11946 if test "$GCC" = "yes"
11948 cat >conftest.$ac_ext <<_ACEOF
11949 #if !defined(__GNUC__) || __GNUC__ < 3
11950 #error Unsupported GCC version
11954 rm -f conftest.$ac_objext
11955 if { (ac_try="$ac_compile"
11956 case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest.$ac_objext'
11979 { (case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_try") 2>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
11994 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
11995 { (exit 1); exit 1; }; }
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12001 if test -z "$llvm_cv_gnu_make_command"
12003 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12004 echo "$as_me: error: GNU Make required but not found" >&2;}
12005 { (exit 1); exit 1; }; }
12008 { echo "$as_me:$LINENO: result: ok" >&5
12009 echo "${ECHO_T}ok" >&6; }
12011 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12012 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12013 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12015 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12017 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12019 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12020 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12024 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12025 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12026 if test "${ac_cv_lib_m_sin+set}" = set; then
12027 echo $ECHO_N "(cached) $ECHO_C" >&6
12029 ac_check_lib_save_LIBS=$LIBS
12031 cat >conftest.$ac_ext <<_ACEOF
12034 cat confdefs.h >>conftest.$ac_ext
12035 cat >>conftest.$ac_ext <<_ACEOF
12036 /* end confdefs.h. */
12038 /* Override any GCC internal prototype to avoid an error.
12039 Use char because int might match the return type of a GCC
12040 builtin and then its argument prototype would still apply. */
12053 rm -f conftest.$ac_objext conftest$ac_exeext
12054 if { (ac_try="$ac_link"
12055 case "(($ac_try" in
12056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12057 *) ac_try_echo=$ac_try;;
12059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12060 (eval "$ac_link") 2>conftest.er1
12062 grep -v '^ *+' conftest.er1 >conftest.err
12064 cat conftest.err >&5
12065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12066 (exit $ac_status); } &&
12067 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12068 { (case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_try") 2>&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); }; } &&
12077 { ac_try='test -s conftest$ac_exeext'
12078 { (case "(($ac_try" in
12079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12080 *) ac_try_echo=$ac_try;;
12082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12083 (eval "$ac_try") 2>&5
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; }; then
12087 ac_cv_lib_m_sin=yes
12089 echo "$as_me: failed program was:" >&5
12090 sed 's/^/| /' conftest.$ac_ext >&5
12095 rm -f core conftest.err conftest.$ac_objext \
12096 conftest$ac_exeext conftest.$ac_ext
12097 LIBS=$ac_check_lib_save_LIBS
12099 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12100 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12101 if test $ac_cv_lib_m_sin = yes; then
12102 cat >>confdefs.h <<_ACEOF
12103 #define HAVE_LIBM 1
12110 if test "$llvm_cv_os_type" = "MingW" ; then
12112 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12113 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12114 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12115 echo $ECHO_N "(cached) $ECHO_C" >&6
12117 ac_check_lib_save_LIBS=$LIBS
12118 LIBS="-limagehlp $LIBS"
12119 cat >conftest.$ac_ext <<_ACEOF
12122 cat confdefs.h >>conftest.$ac_ext
12123 cat >>conftest.$ac_ext <<_ACEOF
12124 /* end confdefs.h. */
12135 rm -f conftest.$ac_objext conftest$ac_exeext
12136 if { (ac_try="$ac_link"
12137 case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_link") 2>conftest.er1
12144 grep -v '^ *+' conftest.er1 >conftest.err
12146 cat conftest.err >&5
12147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12148 (exit $ac_status); } &&
12149 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12150 { (case "(($ac_try" in
12151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12152 *) ac_try_echo=$ac_try;;
12154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12155 (eval "$ac_try") 2>&5
12157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12158 (exit $ac_status); }; } &&
12159 { ac_try='test -s conftest$ac_exeext'
12160 { (case "(($ac_try" in
12161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12162 *) ac_try_echo=$ac_try;;
12164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12165 (eval "$ac_try") 2>&5
12167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12168 (exit $ac_status); }; }; then
12169 ac_cv_lib_imagehlp_main=yes
12171 echo "$as_me: failed program was:" >&5
12172 sed 's/^/| /' conftest.$ac_ext >&5
12174 ac_cv_lib_imagehlp_main=no
12177 rm -f core conftest.err conftest.$ac_objext \
12178 conftest$ac_exeext conftest.$ac_ext
12179 LIBS=$ac_check_lib_save_LIBS
12181 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12182 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12183 if test $ac_cv_lib_imagehlp_main = yes; then
12184 cat >>confdefs.h <<_ACEOF
12185 #define HAVE_LIBIMAGEHLP 1
12188 LIBS="-limagehlp $LIBS"
12193 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12194 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12195 if test "${ac_cv_lib_psapi_main+set}" = set; then
12196 echo $ECHO_N "(cached) $ECHO_C" >&6
12198 ac_check_lib_save_LIBS=$LIBS
12199 LIBS="-lpsapi $LIBS"
12200 cat >conftest.$ac_ext <<_ACEOF
12203 cat confdefs.h >>conftest.$ac_ext
12204 cat >>conftest.$ac_ext <<_ACEOF
12205 /* end confdefs.h. */
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (ac_try="$ac_link"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12225 grep -v '^ *+' conftest.er1 >conftest.err
12227 cat conftest.err >&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } &&
12230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12231 { (case "(($ac_try" in
12232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12233 *) ac_try_echo=$ac_try;;
12235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12236 (eval "$ac_try") 2>&5
12238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12239 (exit $ac_status); }; } &&
12240 { ac_try='test -s conftest$ac_exeext'
12241 { (case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_try") 2>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); }; }; then
12250 ac_cv_lib_psapi_main=yes
12252 echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12255 ac_cv_lib_psapi_main=no
12258 rm -f core conftest.err conftest.$ac_objext \
12259 conftest$ac_exeext conftest.$ac_ext
12260 LIBS=$ac_check_lib_save_LIBS
12262 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12263 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12264 if test $ac_cv_lib_psapi_main = yes; then
12265 cat >>confdefs.h <<_ACEOF
12266 #define HAVE_LIBPSAPI 1
12269 LIBS="-lpsapi $LIBS"
12275 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12276 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12277 if test "${ac_cv_search_dlopen+set}" = set; then
12278 echo $ECHO_N "(cached) $ECHO_C" >&6
12280 ac_func_search_save_LIBS=$LIBS
12281 cat >conftest.$ac_ext <<_ACEOF
12284 cat confdefs.h >>conftest.$ac_ext
12285 cat >>conftest.$ac_ext <<_ACEOF
12286 /* end confdefs.h. */
12288 /* Override any GCC internal prototype to avoid an error.
12289 Use char because int might match the return type of a GCC
12290 builtin and then its argument prototype would still apply. */
12303 for ac_lib in '' dl; do
12304 if test -z "$ac_lib"; then
12305 ac_res="none required"
12308 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12310 rm -f conftest.$ac_objext conftest$ac_exeext
12311 if { (ac_try="$ac_link"
12312 case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_link") 2>conftest.er1
12319 grep -v '^ *+' conftest.er1 >conftest.err
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } &&
12324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12325 { (case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_try") 2>&5
12332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12333 (exit $ac_status); }; } &&
12334 { ac_try='test -s conftest$ac_exeext'
12335 { (case "(($ac_try" in
12336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12337 *) ac_try_echo=$ac_try;;
12339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12340 (eval "$ac_try") 2>&5
12342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12343 (exit $ac_status); }; }; then
12344 ac_cv_search_dlopen=$ac_res
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12352 rm -f core conftest.err conftest.$ac_objext \
12354 if test "${ac_cv_search_dlopen+set}" = set; then
12358 if test "${ac_cv_search_dlopen+set}" = set; then
12361 ac_cv_search_dlopen=no
12363 rm conftest.$ac_ext
12364 LIBS=$ac_func_search_save_LIBS
12366 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12367 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12368 ac_res=$ac_cv_search_dlopen
12369 if test "$ac_res" != no; then
12370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12372 cat >>confdefs.h <<\_ACEOF
12373 #define HAVE_DLOPEN 1
12377 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12378 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12382 if test "$llvm_cv_enable_libffi" = "yes" ; then
12383 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12384 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12385 if test "${ac_cv_search_ffi_call+set}" = set; then
12386 echo $ECHO_N "(cached) $ECHO_C" >&6
12388 ac_func_search_save_LIBS=$LIBS
12389 cat >conftest.$ac_ext <<_ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12396 /* Override any GCC internal prototype to avoid an error.
12397 Use char because int might match the return type of a GCC
12398 builtin and then its argument prototype would still apply. */
12406 return ffi_call ();
12411 for ac_lib in '' ffi; do
12412 if test -z "$ac_lib"; then
12413 ac_res="none required"
12416 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12418 rm -f conftest.$ac_objext conftest$ac_exeext
12419 if { (ac_try="$ac_link"
12420 case "(($ac_try" in
12421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12422 *) ac_try_echo=$ac_try;;
12424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12425 (eval "$ac_link") 2>conftest.er1
12427 grep -v '^ *+' conftest.er1 >conftest.err
12429 cat conftest.err >&5
12430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12431 (exit $ac_status); } &&
12432 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12433 { (case "(($ac_try" in
12434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12435 *) ac_try_echo=$ac_try;;
12437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12438 (eval "$ac_try") 2>&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); }; } &&
12442 { ac_try='test -s conftest$ac_exeext'
12443 { (case "(($ac_try" in
12444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445 *) ac_try_echo=$ac_try;;
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_try") 2>&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; }; then
12452 ac_cv_search_ffi_call=$ac_res
12454 echo "$as_me: failed program was:" >&5
12455 sed 's/^/| /' conftest.$ac_ext >&5
12460 rm -f core conftest.err conftest.$ac_objext \
12462 if test "${ac_cv_search_ffi_call+set}" = set; then
12466 if test "${ac_cv_search_ffi_call+set}" = set; then
12469 ac_cv_search_ffi_call=no
12471 rm conftest.$ac_ext
12472 LIBS=$ac_func_search_save_LIBS
12474 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12475 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12476 ac_res=$ac_cv_search_ffi_call
12477 if test "$ac_res" != no; then
12478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12480 cat >>confdefs.h <<\_ACEOF
12481 #define HAVE_FFI_CALL 1
12485 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12486 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12487 { (exit 1); exit 1; }; }
12492 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12493 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12494 if test "${ac_cv_search_mallinfo+set}" = set; then
12495 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 ac_func_search_save_LIBS=$LIBS
12498 cat >conftest.$ac_ext <<_ACEOF
12501 cat confdefs.h >>conftest.$ac_ext
12502 cat >>conftest.$ac_ext <<_ACEOF
12503 /* end confdefs.h. */
12505 /* Override any GCC internal prototype to avoid an error.
12506 Use char because int might match the return type of a GCC
12507 builtin and then its argument prototype would still apply. */
12515 return mallinfo ();
12520 for ac_lib in '' malloc; do
12521 if test -z "$ac_lib"; then
12522 ac_res="none required"
12525 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12527 rm -f conftest.$ac_objext conftest$ac_exeext
12528 if { (ac_try="$ac_link"
12529 case "(($ac_try" in
12530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12531 *) ac_try_echo=$ac_try;;
12533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12534 (eval "$ac_link") 2>conftest.er1
12536 grep -v '^ *+' conftest.er1 >conftest.err
12538 cat conftest.err >&5
12539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12540 (exit $ac_status); } &&
12541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12542 { (case "(($ac_try" in
12543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12544 *) ac_try_echo=$ac_try;;
12546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12547 (eval "$ac_try") 2>&5
12549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12550 (exit $ac_status); }; } &&
12551 { ac_try='test -s conftest$ac_exeext'
12552 { (case "(($ac_try" in
12553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12554 *) ac_try_echo=$ac_try;;
12556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12557 (eval "$ac_try") 2>&5
12559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12560 (exit $ac_status); }; }; then
12561 ac_cv_search_mallinfo=$ac_res
12563 echo "$as_me: failed program was:" >&5
12564 sed 's/^/| /' conftest.$ac_ext >&5
12569 rm -f core conftest.err conftest.$ac_objext \
12571 if test "${ac_cv_search_mallinfo+set}" = set; then
12575 if test "${ac_cv_search_mallinfo+set}" = set; then
12578 ac_cv_search_mallinfo=no
12580 rm conftest.$ac_ext
12581 LIBS=$ac_func_search_save_LIBS
12583 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12584 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12585 ac_res=$ac_cv_search_mallinfo
12586 if test "$ac_res" != no; then
12587 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12589 cat >>confdefs.h <<\_ACEOF
12590 #define HAVE_MALLINFO 1
12596 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12598 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12599 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12600 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12601 echo $ECHO_N "(cached) $ECHO_C" >&6
12603 ac_check_lib_save_LIBS=$LIBS
12604 LIBS="-lpthread $LIBS"
12605 cat >conftest.$ac_ext <<_ACEOF
12608 cat confdefs.h >>conftest.$ac_ext
12609 cat >>conftest.$ac_ext <<_ACEOF
12610 /* end confdefs.h. */
12612 /* Override any GCC internal prototype to avoid an error.
12613 Use char because int might match the return type of a GCC
12614 builtin and then its argument prototype would still apply. */
12618 char pthread_mutex_init ();
12622 return pthread_mutex_init ();
12627 rm -f conftest.$ac_objext conftest$ac_exeext
12628 if { (ac_try="$ac_link"
12629 case "(($ac_try" in
12630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_link") 2>conftest.er1
12636 grep -v '^ *+' conftest.er1 >conftest.err
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642 { (case "(($ac_try" in
12643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644 *) ac_try_echo=$ac_try;;
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_try") 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try='test -s conftest$ac_exeext'
12652 { (case "(($ac_try" in
12653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_try") 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 ac_cv_lib_pthread_pthread_mutex_init=yes
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12666 ac_cv_lib_pthread_pthread_mutex_init=no
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671 LIBS=$ac_check_lib_save_LIBS
12673 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12674 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12675 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12676 cat >>confdefs.h <<_ACEOF
12677 #define HAVE_LIBPTHREAD 1
12680 LIBS="-lpthread $LIBS"
12684 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12685 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12686 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12687 echo $ECHO_N "(cached) $ECHO_C" >&6
12689 ac_func_search_save_LIBS=$LIBS
12690 cat >conftest.$ac_ext <<_ACEOF
12693 cat confdefs.h >>conftest.$ac_ext
12694 cat >>conftest.$ac_ext <<_ACEOF
12695 /* end confdefs.h. */
12697 /* Override any GCC internal prototype to avoid an error.
12698 Use char because int might match the return type of a GCC
12699 builtin and then its argument prototype would still apply. */
12703 char pthread_mutex_lock ();
12707 return pthread_mutex_lock ();
12712 for ac_lib in '' pthread; do
12713 if test -z "$ac_lib"; then
12714 ac_res="none required"
12717 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12719 rm -f conftest.$ac_objext conftest$ac_exeext
12720 if { (ac_try="$ac_link"
12721 case "(($ac_try" in
12722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12723 *) ac_try_echo=$ac_try;;
12725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12726 (eval "$ac_link") 2>conftest.er1
12728 grep -v '^ *+' conftest.er1 >conftest.err
12730 cat conftest.err >&5
12731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12732 (exit $ac_status); } &&
12733 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12734 { (case "(($ac_try" in
12735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12736 *) ac_try_echo=$ac_try;;
12738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12739 (eval "$ac_try") 2>&5
12741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12742 (exit $ac_status); }; } &&
12743 { ac_try='test -s conftest$ac_exeext'
12744 { (case "(($ac_try" in
12745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12746 *) ac_try_echo=$ac_try;;
12748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12749 (eval "$ac_try") 2>&5
12751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12752 (exit $ac_status); }; }; then
12753 ac_cv_search_pthread_mutex_lock=$ac_res
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12761 rm -f core conftest.err conftest.$ac_objext \
12763 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12767 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12770 ac_cv_search_pthread_mutex_lock=no
12772 rm conftest.$ac_ext
12773 LIBS=$ac_func_search_save_LIBS
12775 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12776 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12777 ac_res=$ac_cv_search_pthread_mutex_lock
12778 if test "$ac_res" != no; then
12779 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12781 cat >>confdefs.h <<\_ACEOF
12782 #define HAVE_PTHREAD_MUTEX_LOCK 1
12787 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12788 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12789 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12790 echo $ECHO_N "(cached) $ECHO_C" >&6
12792 ac_func_search_save_LIBS=$LIBS
12793 cat >conftest.$ac_ext <<_ACEOF
12796 cat confdefs.h >>conftest.$ac_ext
12797 cat >>conftest.$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12800 /* Override any GCC internal prototype to avoid an error.
12801 Use char because int might match the return type of a GCC
12802 builtin and then its argument prototype would still apply. */
12806 char pthread_rwlock_init ();
12810 return pthread_rwlock_init ();
12815 for ac_lib in '' pthread; do
12816 if test -z "$ac_lib"; then
12817 ac_res="none required"
12820 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12822 rm -f conftest.$ac_objext conftest$ac_exeext
12823 if { (ac_try="$ac_link"
12824 case "(($ac_try" in
12825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12826 *) ac_try_echo=$ac_try;;
12828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12829 (eval "$ac_link") 2>conftest.er1
12831 grep -v '^ *+' conftest.er1 >conftest.err
12833 cat conftest.err >&5
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); } &&
12836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12837 { (case "(($ac_try" in
12838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12839 *) ac_try_echo=$ac_try;;
12841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12842 (eval "$ac_try") 2>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); }; } &&
12846 { ac_try='test -s conftest$ac_exeext'
12847 { (case "(($ac_try" in
12848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; }; then
12856 ac_cv_search_pthread_rwlock_init=$ac_res
12858 echo "$as_me: failed program was:" >&5
12859 sed 's/^/| /' conftest.$ac_ext >&5
12864 rm -f core conftest.err conftest.$ac_objext \
12866 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12870 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12873 ac_cv_search_pthread_rwlock_init=no
12875 rm conftest.$ac_ext
12876 LIBS=$ac_func_search_save_LIBS
12878 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
12879 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
12880 ac_res=$ac_cv_search_pthread_rwlock_init
12881 if test "$ac_res" != no; then
12882 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12884 cat >>confdefs.h <<\_ACEOF
12885 #define HAVE_PTHREAD_RWLOCK_INIT 1
12890 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
12891 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
12892 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12893 echo $ECHO_N "(cached) $ECHO_C" >&6
12895 ac_func_search_save_LIBS=$LIBS
12896 cat >conftest.$ac_ext <<_ACEOF
12899 cat confdefs.h >>conftest.$ac_ext
12900 cat >>conftest.$ac_ext <<_ACEOF
12901 /* end confdefs.h. */
12903 /* Override any GCC internal prototype to avoid an error.
12904 Use char because int might match the return type of a GCC
12905 builtin and then its argument prototype would still apply. */
12909 char pthread_getspecific ();
12913 return pthread_getspecific ();
12918 for ac_lib in '' pthread; do
12919 if test -z "$ac_lib"; then
12920 ac_res="none required"
12923 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12925 rm -f conftest.$ac_objext conftest$ac_exeext
12926 if { (ac_try="$ac_link"
12927 case "(($ac_try" in
12928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12929 *) ac_try_echo=$ac_try;;
12931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12932 (eval "$ac_link") 2>conftest.er1
12934 grep -v '^ *+' conftest.er1 >conftest.err
12936 cat conftest.err >&5
12937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12938 (exit $ac_status); } &&
12939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12940 { (case "(($ac_try" in
12941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942 *) ac_try_echo=$ac_try;;
12944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12945 (eval "$ac_try") 2>&5
12947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12948 (exit $ac_status); }; } &&
12949 { ac_try='test -s conftest$ac_exeext'
12950 { (case "(($ac_try" in
12951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952 *) ac_try_echo=$ac_try;;
12954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12955 (eval "$ac_try") 2>&5
12957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12958 (exit $ac_status); }; }; then
12959 ac_cv_search_pthread_getspecific=$ac_res
12961 echo "$as_me: failed program was:" >&5
12962 sed 's/^/| /' conftest.$ac_ext >&5
12967 rm -f core conftest.err conftest.$ac_objext \
12969 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12973 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
12976 ac_cv_search_pthread_getspecific=no
12978 rm conftest.$ac_ext
12979 LIBS=$ac_func_search_save_LIBS
12981 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
12982 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
12983 ac_res=$ac_cv_search_pthread_getspecific
12984 if test "$ac_res" != no; then
12985 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12987 cat >>confdefs.h <<\_ACEOF
12988 #define HAVE_PTHREAD_GETSPECIFIC 1
12996 # Check whether --with-udis86 was given.
12997 if test "${with_udis86+set}" = set; then
12998 withval=$with_udis86;
13003 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13006 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13007 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13008 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13011 ac_check_lib_save_LIBS=$LIBS
13012 LIBS="-ludis86 $LIBS"
13013 cat >conftest.$ac_ext <<_ACEOF
13016 cat confdefs.h >>conftest.$ac_ext
13017 cat >>conftest.$ac_ext <<_ACEOF
13018 /* end confdefs.h. */
13020 /* Override any GCC internal prototype to avoid an error.
13021 Use char because int might match the return type of a GCC
13022 builtin and then its argument prototype would still apply. */
13035 rm -f conftest.$ac_objext conftest$ac_exeext
13036 if { (ac_try="$ac_link"
13037 case "(($ac_try" in
13038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13039 *) ac_try_echo=$ac_try;;
13041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13042 (eval "$ac_link") 2>conftest.er1
13044 grep -v '^ *+' conftest.er1 >conftest.err
13046 cat conftest.err >&5
13047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13048 (exit $ac_status); } &&
13049 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13050 { (case "(($ac_try" in
13051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13052 *) ac_try_echo=$ac_try;;
13054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13055 (eval "$ac_try") 2>&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); }; } &&
13059 { ac_try='test -s conftest$ac_exeext'
13060 { (case "(($ac_try" in
13061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13062 *) ac_try_echo=$ac_try;;
13064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13065 (eval "$ac_try") 2>&5
13067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068 (exit $ac_status); }; }; then
13069 ac_cv_lib_udis86_ud_init=yes
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_cv_lib_udis86_ud_init=no
13077 rm -f core conftest.err conftest.$ac_objext \
13078 conftest$ac_exeext conftest.$ac_ext
13079 LIBS=$ac_check_lib_save_LIBS
13081 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13082 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13083 if test $ac_cv_lib_udis86_ud_init = yes; then
13084 cat >>confdefs.h <<_ACEOF
13085 #define HAVE_LIBUDIS86 1
13088 LIBS="-ludis86 $LIBS"
13092 echo "Error! You need to have libudis86 around."
13104 cat >>confdefs.h <<_ACEOF
13105 #define USE_UDIS86 $USE_UDIS86
13110 # Check whether --with-oprofile was given.
13111 if test "${with_oprofile+set}" = set; then
13112 withval=$with_oprofile;
13116 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13117 no) llvm_cv_oppath=
13120 *) llvm_cv_oppath="${withval}/lib/oprofile"
13121 CPPFLAGS="-I${withval}/include";;
13123 case $llvm_cv_os_type in
13125 if test -n "$llvm_cv_oppath" ; then
13126 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13127 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13128 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13129 if test "${ac_cv_search_bfd_init+set}" = set; then
13130 echo $ECHO_N "(cached) $ECHO_C" >&6
13132 ac_func_search_save_LIBS=$LIBS
13133 cat >conftest.$ac_ext <<_ACEOF
13136 cat confdefs.h >>conftest.$ac_ext
13137 cat >>conftest.$ac_ext <<_ACEOF
13138 /* end confdefs.h. */
13140 /* Override any GCC internal prototype to avoid an error.
13141 Use char because int might match the return type of a GCC
13142 builtin and then its argument prototype would still apply. */
13150 return bfd_init ();
13155 for ac_lib in '' bfd; do
13156 if test -z "$ac_lib"; then
13157 ac_res="none required"
13160 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13162 rm -f conftest.$ac_objext conftest$ac_exeext
13163 if { (ac_try="$ac_link"
13164 case "(($ac_try" in
13165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13166 *) ac_try_echo=$ac_try;;
13168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13169 (eval "$ac_link") 2>conftest.er1
13171 grep -v '^ *+' conftest.er1 >conftest.err
13173 cat conftest.err >&5
13174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13175 (exit $ac_status); } &&
13176 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13177 { (case "(($ac_try" in
13178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13179 *) ac_try_echo=$ac_try;;
13181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13182 (eval "$ac_try") 2>&5
13184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13185 (exit $ac_status); }; } &&
13186 { ac_try='test -s conftest$ac_exeext'
13187 { (case "(($ac_try" in
13188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_try") 2>&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); }; }; then
13196 ac_cv_search_bfd_init=$ac_res
13198 echo "$as_me: failed program was:" >&5
13199 sed 's/^/| /' conftest.$ac_ext >&5
13204 rm -f core conftest.err conftest.$ac_objext \
13206 if test "${ac_cv_search_bfd_init+set}" = set; then
13210 if test "${ac_cv_search_bfd_init+set}" = set; then
13213 ac_cv_search_bfd_init=no
13215 rm conftest.$ac_ext
13216 LIBS=$ac_func_search_save_LIBS
13218 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13219 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13220 ac_res=$ac_cv_search_bfd_init
13221 if test "$ac_res" != no; then
13222 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13226 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13227 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13228 if test "${ac_cv_search_op_open_agent+set}" = set; then
13229 echo $ECHO_N "(cached) $ECHO_C" >&6
13231 ac_func_search_save_LIBS=$LIBS
13232 cat >conftest.$ac_ext <<_ACEOF
13235 cat confdefs.h >>conftest.$ac_ext
13236 cat >>conftest.$ac_ext <<_ACEOF
13237 /* end confdefs.h. */
13239 /* Override any GCC internal prototype to avoid an error.
13240 Use char because int might match the return type of a GCC
13241 builtin and then its argument prototype would still apply. */
13245 char op_open_agent ();
13249 return op_open_agent ();
13254 for ac_lib in '' opagent; do
13255 if test -z "$ac_lib"; then
13256 ac_res="none required"
13259 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13261 rm -f conftest.$ac_objext conftest$ac_exeext
13262 if { (ac_try="$ac_link"
13263 case "(($ac_try" in
13264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13265 *) ac_try_echo=$ac_try;;
13267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13268 (eval "$ac_link") 2>conftest.er1
13270 grep -v '^ *+' conftest.er1 >conftest.err
13272 cat conftest.err >&5
13273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13274 (exit $ac_status); } &&
13275 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13276 { (case "(($ac_try" in
13277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13278 *) ac_try_echo=$ac_try;;
13280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13281 (eval "$ac_try") 2>&5
13283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13284 (exit $ac_status); }; } &&
13285 { ac_try='test -s conftest$ac_exeext'
13286 { (case "(($ac_try" in
13287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13288 *) ac_try_echo=$ac_try;;
13290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13291 (eval "$ac_try") 2>&5
13293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13294 (exit $ac_status); }; }; then
13295 ac_cv_search_op_open_agent=$ac_res
13297 echo "$as_me: failed program was:" >&5
13298 sed 's/^/| /' conftest.$ac_ext >&5
13303 rm -f core conftest.err conftest.$ac_objext \
13305 if test "${ac_cv_search_op_open_agent+set}" = set; then
13309 if test "${ac_cv_search_op_open_agent+set}" = set; then
13312 ac_cv_search_op_open_agent=no
13314 rm conftest.$ac_ext
13315 LIBS=$ac_func_search_save_LIBS
13317 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13318 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13319 ac_res=$ac_cv_search_op_open_agent
13320 if test "$ac_res" != no; then
13321 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13325 echo "Error! You need to have libopagent around."
13330 if test "${ac_cv_header_opagent_h+set}" = set; then
13331 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13332 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13333 if test "${ac_cv_header_opagent_h+set}" = set; then
13334 echo $ECHO_N "(cached) $ECHO_C" >&6
13336 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13337 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13339 # Is the header compilable?
13340 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13341 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13342 cat >conftest.$ac_ext <<_ACEOF
13345 cat confdefs.h >>conftest.$ac_ext
13346 cat >>conftest.$ac_ext <<_ACEOF
13347 /* end confdefs.h. */
13348 $ac_includes_default
13349 #include <opagent.h>
13351 rm -f conftest.$ac_objext
13352 if { (ac_try="$ac_compile"
13353 case "(($ac_try" in
13354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13355 *) ac_try_echo=$ac_try;;
13357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13358 (eval "$ac_compile") 2>conftest.er1
13360 grep -v '^ *+' conftest.er1 >conftest.err
13362 cat conftest.err >&5
13363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13364 (exit $ac_status); } &&
13365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13366 { (case "(($ac_try" in
13367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13368 *) ac_try_echo=$ac_try;;
13370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13371 (eval "$ac_try") 2>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); }; } &&
13375 { ac_try='test -s conftest.$ac_objext'
13376 { (case "(($ac_try" in
13377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13378 *) ac_try_echo=$ac_try;;
13380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13381 (eval "$ac_try") 2>&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); }; }; then
13385 ac_header_compiler=yes
13387 echo "$as_me: failed program was:" >&5
13388 sed 's/^/| /' conftest.$ac_ext >&5
13390 ac_header_compiler=no
13393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13395 echo "${ECHO_T}$ac_header_compiler" >&6; }
13397 # Is the header present?
13398 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13399 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13400 cat >conftest.$ac_ext <<_ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */
13406 #include <opagent.h>
13408 if { (ac_try="$ac_cpp conftest.$ac_ext"
13409 case "(($ac_try" in
13410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13416 grep -v '^ *+' conftest.er1 >conftest.err
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } >/dev/null; then
13421 if test -s conftest.err; then
13422 ac_cpp_err=$ac_c_preproc_warn_flag
13423 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13430 if test -z "$ac_cpp_err"; then
13431 ac_header_preproc=yes
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 ac_header_preproc=no
13439 rm -f conftest.err conftest.$ac_ext
13440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13441 echo "${ECHO_T}$ac_header_preproc" >&6; }
13443 # So? What about this header?
13444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13446 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13447 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13448 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13449 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13450 ac_header_preproc=yes
13453 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13454 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13455 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13456 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13458 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13460 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13461 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13462 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13463 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13464 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13466 ## ------------------------------------ ##
13467 ## Report this to http://llvm.org/bugs/ ##
13468 ## ------------------------------------ ##
13470 ) | sed "s/^/$as_me: WARNING: /" >&2
13473 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13474 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13475 if test "${ac_cv_header_opagent_h+set}" = set; then
13476 echo $ECHO_N "(cached) $ECHO_C" >&6
13478 ac_cv_header_opagent_h=$ac_header_preproc
13480 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13481 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13484 if test $ac_cv_header_opagent_h = yes; then
13488 echo "Error! You need to have opagent.h around."
13496 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13497 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13498 { (exit 1); exit 1; }; } ;;
13509 cat >>confdefs.h <<_ACEOF
13510 #define LLVM_USE_OPROFILE $USE_OPROFILE
13515 # Check whether --with-intel-jitevents was given.
13516 if test "${with_intel_jitevents+set}" = set; then
13517 withval=$with_intel_jitevents;
13518 case $llvm_cv_os_type in
13519 Linux|Win32|Cygwin|MingW) ;;
13521 { { echo "$as_me:$LINENO: error:
13522 Intel JIT API support is available on Linux and Windows only.\"" >&5
13523 echo "$as_me: error:
13524 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13525 { (exit 1); exit 1; }; } ;;
13528 USE_INTEL_JITEVENTS=1
13530 case "$llvm_cv_target_arch" in
13531 x86) llvm_intel_jitevents_archdir="lib32";;
13532 x86_64) llvm_intel_jitevents_archdir="lib64";;
13533 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13536 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13537 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13539 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13540 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13547 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13548 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13550 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13551 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13552 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13553 echo $ECHO_N "(cached) $ECHO_C" >&6
13555 ac_func_search_save_LIBS=$LIBS
13556 cat >conftest.$ac_ext <<_ACEOF
13559 cat confdefs.h >>conftest.$ac_ext
13560 cat >>conftest.$ac_ext <<_ACEOF
13561 /* end confdefs.h. */
13563 /* Override any GCC internal prototype to avoid an error.
13564 Use char because int might match the return type of a GCC
13565 builtin and then its argument prototype would still apply. */
13569 char iJIT_IsProfilingActive ();
13573 return iJIT_IsProfilingActive ();
13578 for ac_lib in '' jitprofiling; do
13579 if test -z "$ac_lib"; then
13580 ac_res="none required"
13583 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13585 rm -f conftest.$ac_objext conftest$ac_exeext
13586 if { (ac_try="$ac_link"
13587 case "(($ac_try" in
13588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13589 *) ac_try_echo=$ac_try;;
13591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13592 (eval "$ac_link") 2>conftest.er1
13594 grep -v '^ *+' conftest.er1 >conftest.err
13596 cat conftest.err >&5
13597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13598 (exit $ac_status); } &&
13599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13600 { (case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_try") 2>&5
13607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13608 (exit $ac_status); }; } &&
13609 { ac_try='test -s conftest$ac_exeext'
13610 { (case "(($ac_try" in
13611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13612 *) ac_try_echo=$ac_try;;
13614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13615 (eval "$ac_try") 2>&5
13617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13618 (exit $ac_status); }; }; then
13619 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13621 echo "$as_me: failed program was:" >&5
13622 sed 's/^/| /' conftest.$ac_ext >&5
13627 rm -f core conftest.err conftest.$ac_objext \
13629 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13633 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13636 ac_cv_search_iJIT_IsProfilingActive=no
13638 rm conftest.$ac_ext
13639 LIBS=$ac_func_search_save_LIBS
13641 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13642 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13643 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13644 if test "$ac_res" != no; then
13645 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13649 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13654 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13655 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13656 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13657 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13661 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13663 # Is the header compilable?
13664 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13665 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 $ac_includes_default
13673 #include <jitprofiling.h>
13675 rm -f conftest.$ac_objext
13676 if { (ac_try="$ac_compile"
13677 case "(($ac_try" in
13678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13679 *) ac_try_echo=$ac_try;;
13681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13682 (eval "$ac_compile") 2>conftest.er1
13684 grep -v '^ *+' conftest.er1 >conftest.err
13686 cat conftest.err >&5
13687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13688 (exit $ac_status); } &&
13689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13690 { (case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_try") 2>&5
13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13698 (exit $ac_status); }; } &&
13699 { ac_try='test -s conftest.$ac_objext'
13700 { (case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_try") 2>&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); }; }; then
13709 ac_header_compiler=yes
13711 echo "$as_me: failed program was:" >&5
13712 sed 's/^/| /' conftest.$ac_ext >&5
13714 ac_header_compiler=no
13717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13719 echo "${ECHO_T}$ac_header_compiler" >&6; }
13721 # Is the header present?
13722 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13723 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13724 cat >conftest.$ac_ext <<_ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13730 #include <jitprofiling.h>
13732 if { (ac_try="$ac_cpp conftest.$ac_ext"
13733 case "(($ac_try" in
13734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13735 *) ac_try_echo=$ac_try;;
13737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13740 grep -v '^ *+' conftest.er1 >conftest.err
13742 cat conftest.err >&5
13743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } >/dev/null; then
13745 if test -s conftest.err; then
13746 ac_cpp_err=$ac_c_preproc_warn_flag
13747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13754 if test -z "$ac_cpp_err"; then
13755 ac_header_preproc=yes
13757 echo "$as_me: failed program was:" >&5
13758 sed 's/^/| /' conftest.$ac_ext >&5
13760 ac_header_preproc=no
13763 rm -f conftest.err conftest.$ac_ext
13764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13765 echo "${ECHO_T}$ac_header_preproc" >&6; }
13767 # So? What about this header?
13768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13770 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13771 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13772 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13773 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13774 ac_header_preproc=yes
13777 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13778 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13779 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13780 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13781 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13782 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13783 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13784 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13785 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13786 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13787 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13788 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13790 ## ------------------------------------ ##
13791 ## Report this to http://llvm.org/bugs/ ##
13792 ## ------------------------------------ ##
13794 ) | sed "s/^/$as_me: WARNING: /" >&2
13797 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13798 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13799 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13800 echo $ECHO_N "(cached) $ECHO_C" >&6
13802 ac_cv_header_jitprofiling_h=$ac_header_preproc
13804 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13805 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13808 if test $ac_cv_header_jitprofiling_h = yes; then
13812 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13822 USE_INTEL_JITEVENTS=0
13828 cat >>confdefs.h <<_ACEOF
13829 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13833 for ac_prog in xml2-config
13835 # Extract the first word of "$ac_prog", so it can be a program name with args.
13836 set dummy $ac_prog; ac_word=$2
13837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13839 if test "${ac_cv_prog_XML2CONFIG+set}" = set; then
13840 echo $ECHO_N "(cached) $ECHO_C" >&6
13842 if test -n "$XML2CONFIG"; then
13843 ac_cv_prog_XML2CONFIG="$XML2CONFIG" # Let the user override the test.
13845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13846 for as_dir in $PATH
13849 test -z "$as_dir" && as_dir=.
13850 for ac_exec_ext in '' $ac_executable_extensions; do
13851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13852 ac_cv_prog_XML2CONFIG="$ac_prog"
13853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13862 XML2CONFIG=$ac_cv_prog_XML2CONFIG
13863 if test -n "$XML2CONFIG"; then
13864 { echo "$as_me:$LINENO: result: $XML2CONFIG" >&5
13865 echo "${ECHO_T}$XML2CONFIG" >&6; }
13867 { echo "$as_me:$LINENO: result: no" >&5
13868 echo "${ECHO_T}no" >&6; }
13872 test -n "$XML2CONFIG" && break
13876 { echo "$as_me:$LINENO: checking for libxml2 includes" >&5
13877 echo $ECHO_N "checking for libxml2 includes... $ECHO_C" >&6; }
13878 if test "x$XML2CONFIG" = "x"; then
13879 { echo "$as_me:$LINENO: result: xml2-config not found" >&5
13880 echo "${ECHO_T}xml2-config not found" >&6; }
13882 LIBXML2_INC=`$XML2CONFIG --cflags`
13883 { echo "$as_me:$LINENO: result: $LIBXML2_INC" >&5
13884 echo "${ECHO_T}$LIBXML2_INC" >&6; }
13885 { echo "$as_me:$LINENO: checking for xmlReadFile in -lxml2" >&5
13886 echo $ECHO_N "checking for xmlReadFile in -lxml2... $ECHO_C" >&6; }
13887 if test "${ac_cv_lib_xml2_xmlReadFile+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 ac_check_lib_save_LIBS=$LIBS
13891 LIBS="-lxml2 $LIBS"
13892 cat >conftest.$ac_ext <<_ACEOF
13895 cat confdefs.h >>conftest.$ac_ext
13896 cat >>conftest.$ac_ext <<_ACEOF
13897 /* end confdefs.h. */
13899 /* Override any GCC internal prototype to avoid an error.
13900 Use char because int might match the return type of a GCC
13901 builtin and then its argument prototype would still apply. */
13905 char xmlReadFile ();
13909 return xmlReadFile ();
13914 rm -f conftest.$ac_objext conftest$ac_exeext
13915 if { (ac_try="$ac_link"
13916 case "(($ac_try" in
13917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13918 *) ac_try_echo=$ac_try;;
13920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13921 (eval "$ac_link") 2>conftest.er1
13923 grep -v '^ *+' conftest.er1 >conftest.err
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13929 { (case "(($ac_try" in
13930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13931 *) ac_try_echo=$ac_try;;
13933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13934 (eval "$ac_try") 2>&5
13936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13937 (exit $ac_status); }; } &&
13938 { ac_try='test -s conftest$ac_exeext'
13939 { (case "(($ac_try" in
13940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13941 *) ac_try_echo=$ac_try;;
13943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13944 (eval "$ac_try") 2>&5
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; }; then
13948 ac_cv_lib_xml2_xmlReadFile=yes
13950 echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13953 ac_cv_lib_xml2_xmlReadFile=no
13956 rm -f core conftest.err conftest.$ac_objext \
13957 conftest$ac_exeext conftest.$ac_ext
13958 LIBS=$ac_check_lib_save_LIBS
13960 { echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlReadFile" >&5
13961 echo "${ECHO_T}$ac_cv_lib_xml2_xmlReadFile" >&6; }
13962 if test $ac_cv_lib_xml2_xmlReadFile = yes; then
13964 cat >>confdefs.h <<\_ACEOF
13965 #define CLANG_HAVE_LIBXML 1
13968 LIBXML2_LIBS="-lxml2"
13981 ac_header_dirent=no
13982 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13983 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13984 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13985 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13987 echo $ECHO_N "(cached) $ECHO_C" >&6
13989 cat >conftest.$ac_ext <<_ACEOF
13992 cat confdefs.h >>conftest.$ac_ext
13993 cat >>conftest.$ac_ext <<_ACEOF
13994 /* end confdefs.h. */
13995 #include <sys/types.h>
14007 rm -f conftest.$ac_objext
14008 if { (ac_try="$ac_compile"
14009 case "(($ac_try" in
14010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14011 *) ac_try_echo=$ac_try;;
14013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14014 (eval "$ac_compile") 2>conftest.er1
14016 grep -v '^ *+' conftest.er1 >conftest.err
14018 cat conftest.err >&5
14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14020 (exit $ac_status); } &&
14021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14022 { (case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027 (eval "$ac_try") 2>&5
14029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14030 (exit $ac_status); }; } &&
14031 { ac_try='test -s conftest.$ac_objext'
14032 { (case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_try") 2>&5
14039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); }; }; then
14041 eval "$as_ac_Header=yes"
14043 echo "$as_me: failed program was:" >&5
14044 sed 's/^/| /' conftest.$ac_ext >&5
14046 eval "$as_ac_Header=no"
14049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14051 ac_res=`eval echo '${'$as_ac_Header'}'`
14052 { echo "$as_me:$LINENO: result: $ac_res" >&5
14053 echo "${ECHO_T}$ac_res" >&6; }
14054 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14055 cat >>confdefs.h <<_ACEOF
14056 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14059 ac_header_dirent=$ac_hdr; break
14063 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14064 if test $ac_header_dirent = dirent.h; then
14065 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14066 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14067 if test "${ac_cv_search_opendir+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14070 ac_func_search_save_LIBS=$LIBS
14071 cat >conftest.$ac_ext <<_ACEOF
14074 cat confdefs.h >>conftest.$ac_ext
14075 cat >>conftest.$ac_ext <<_ACEOF
14076 /* end confdefs.h. */
14078 /* Override any GCC internal prototype to avoid an error.
14079 Use char because int might match the return type of a GCC
14080 builtin and then its argument prototype would still apply. */
14093 for ac_lib in '' dir; do
14094 if test -z "$ac_lib"; then
14095 ac_res="none required"
14098 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (ac_try="$ac_link"
14102 case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_link") 2>conftest.er1
14109 grep -v '^ *+' conftest.er1 >conftest.err
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } &&
14114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14115 { (case "(($ac_try" in
14116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14117 *) ac_try_echo=$ac_try;;
14119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14120 (eval "$ac_try") 2>&5
14122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14123 (exit $ac_status); }; } &&
14124 { ac_try='test -s conftest$ac_exeext'
14125 { (case "(($ac_try" in
14126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14127 *) ac_try_echo=$ac_try;;
14129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14130 (eval "$ac_try") 2>&5
14132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14133 (exit $ac_status); }; }; then
14134 ac_cv_search_opendir=$ac_res
14136 echo "$as_me: failed program was:" >&5
14137 sed 's/^/| /' conftest.$ac_ext >&5
14142 rm -f core conftest.err conftest.$ac_objext \
14144 if test "${ac_cv_search_opendir+set}" = set; then
14148 if test "${ac_cv_search_opendir+set}" = set; then
14151 ac_cv_search_opendir=no
14153 rm conftest.$ac_ext
14154 LIBS=$ac_func_search_save_LIBS
14156 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14157 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14158 ac_res=$ac_cv_search_opendir
14159 if test "$ac_res" != no; then
14160 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14165 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14166 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14167 if test "${ac_cv_search_opendir+set}" = set; then
14168 echo $ECHO_N "(cached) $ECHO_C" >&6
14170 ac_func_search_save_LIBS=$LIBS
14171 cat >conftest.$ac_ext <<_ACEOF
14174 cat confdefs.h >>conftest.$ac_ext
14175 cat >>conftest.$ac_ext <<_ACEOF
14176 /* end confdefs.h. */
14178 /* Override any GCC internal prototype to avoid an error.
14179 Use char because int might match the return type of a GCC
14180 builtin and then its argument prototype would still apply. */
14193 for ac_lib in '' x; do
14194 if test -z "$ac_lib"; then
14195 ac_res="none required"
14198 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14200 rm -f conftest.$ac_objext conftest$ac_exeext
14201 if { (ac_try="$ac_link"
14202 case "(($ac_try" in
14203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14204 *) ac_try_echo=$ac_try;;
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_link") 2>conftest.er1
14209 grep -v '^ *+' conftest.er1 >conftest.err
14211 cat conftest.err >&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } &&
14214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14215 { (case "(($ac_try" in
14216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14217 *) ac_try_echo=$ac_try;;
14219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14220 (eval "$ac_try") 2>&5
14222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14223 (exit $ac_status); }; } &&
14224 { ac_try='test -s conftest$ac_exeext'
14225 { (case "(($ac_try" in
14226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14227 *) ac_try_echo=$ac_try;;
14229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14230 (eval "$ac_try") 2>&5
14232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14233 (exit $ac_status); }; }; then
14234 ac_cv_search_opendir=$ac_res
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14242 rm -f core conftest.err conftest.$ac_objext \
14244 if test "${ac_cv_search_opendir+set}" = set; then
14248 if test "${ac_cv_search_opendir+set}" = set; then
14251 ac_cv_search_opendir=no
14253 rm conftest.$ac_ext
14254 LIBS=$ac_func_search_save_LIBS
14256 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14257 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14258 ac_res=$ac_cv_search_opendir
14259 if test "$ac_res" != no; then
14260 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14266 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14267 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14268 if test "${ac_cv_header_mmap_anon+set}" = set; then
14269 echo $ECHO_N "(cached) $ECHO_C" >&6
14272 ac_cpp='$CPP $CPPFLAGS'
14273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14277 cat >conftest.$ac_ext <<_ACEOF
14280 cat confdefs.h >>conftest.$ac_ext
14281 cat >>conftest.$ac_ext <<_ACEOF
14282 /* end confdefs.h. */
14283 #include <sys/mman.h>
14284 #include <unistd.h>
14289 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14294 rm -f conftest.$ac_objext
14295 if { (ac_try="$ac_compile"
14296 case "(($ac_try" in
14297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14298 *) ac_try_echo=$ac_try;;
14300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14301 (eval "$ac_compile") 2>conftest.er1
14303 grep -v '^ *+' conftest.er1 >conftest.err
14305 cat conftest.err >&5
14306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14307 (exit $ac_status); } &&
14308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14309 { (case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_try") 2>&5
14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14317 (exit $ac_status); }; } &&
14318 { ac_try='test -s conftest.$ac_objext'
14319 { (case "(($ac_try" in
14320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14321 *) ac_try_echo=$ac_try;;
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_try") 2>&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); }; }; then
14328 ac_cv_header_mmap_anon=yes
14330 echo "$as_me: failed program was:" >&5
14331 sed 's/^/| /' conftest.$ac_ext >&5
14333 ac_cv_header_mmap_anon=no
14336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14338 ac_cpp='$CPP $CPPFLAGS'
14339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14345 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14346 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14347 if test "$ac_cv_header_mmap_anon" = yes; then
14349 cat >>confdefs.h <<\_ACEOF
14350 #define HAVE_MMAP_ANONYMOUS 1
14355 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14356 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14357 if test "${ac_cv_header_stat_broken+set}" = set; then
14358 echo $ECHO_N "(cached) $ECHO_C" >&6
14360 cat >conftest.$ac_ext <<_ACEOF
14363 cat confdefs.h >>conftest.$ac_ext
14364 cat >>conftest.$ac_ext <<_ACEOF
14365 /* end confdefs.h. */
14366 #include <sys/types.h>
14367 #include <sys/stat.h>
14369 #if defined S_ISBLK && defined S_IFDIR
14370 # if S_ISBLK (S_IFDIR)
14375 #if defined S_ISBLK && defined S_IFCHR
14376 # if S_ISBLK (S_IFCHR)
14381 #if defined S_ISLNK && defined S_IFREG
14382 # if S_ISLNK (S_IFREG)
14387 #if defined S_ISSOCK && defined S_IFREG
14388 # if S_ISSOCK (S_IFREG)
14394 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14395 $EGREP "You lose" >/dev/null 2>&1; then
14396 ac_cv_header_stat_broken=yes
14398 ac_cv_header_stat_broken=no
14403 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14404 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14405 if test $ac_cv_header_stat_broken = yes; then
14407 cat >>confdefs.h <<\_ACEOF
14408 #define STAT_MACROS_BROKEN 1
14413 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14414 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14415 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 cat >conftest.$ac_ext <<_ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424 #include <sys/types.h>
14425 #include <sys/wait.h>
14426 #ifndef WEXITSTATUS
14427 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14430 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14438 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14443 rm -f conftest.$ac_objext
14444 if { (ac_try="$ac_compile"
14445 case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_compile") 2>conftest.er1
14452 grep -v '^ *+' conftest.er1 >conftest.err
14454 cat conftest.err >&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } &&
14457 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14458 { (case "(($ac_try" in
14459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14460 *) ac_try_echo=$ac_try;;
14462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14463 (eval "$ac_try") 2>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; } &&
14467 { ac_try='test -s conftest.$ac_objext'
14468 { (case "(($ac_try" in
14469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14470 *) ac_try_echo=$ac_try;;
14472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14473 (eval "$ac_try") 2>&5
14475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14476 (exit $ac_status); }; }; then
14477 ac_cv_header_sys_wait_h=yes
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14482 ac_cv_header_sys_wait_h=no
14485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14487 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14488 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14489 if test $ac_cv_header_sys_wait_h = yes; then
14491 cat >>confdefs.h <<\_ACEOF
14492 #define HAVE_SYS_WAIT_H 1
14497 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14498 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14499 if test "${ac_cv_header_time+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14502 cat >conftest.$ac_ext <<_ACEOF
14505 cat confdefs.h >>conftest.$ac_ext
14506 cat >>conftest.$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14508 #include <sys/types.h>
14509 #include <sys/time.h>
14515 if ((struct tm *) 0)
14521 rm -f conftest.$ac_objext
14522 if { (ac_try="$ac_compile"
14523 case "(($ac_try" in
14524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14525 *) ac_try_echo=$ac_try;;
14527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14528 (eval "$ac_compile") 2>conftest.er1
14530 grep -v '^ *+' conftest.er1 >conftest.err
14532 cat conftest.err >&5
14533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14534 (exit $ac_status); } &&
14535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14536 { (case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_try") 2>&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); }; } &&
14545 { ac_try='test -s conftest.$ac_objext'
14546 { (case "(($ac_try" in
14547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14548 *) ac_try_echo=$ac_try;;
14550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551 (eval "$ac_try") 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; }; then
14555 ac_cv_header_time=yes
14557 echo "$as_me: failed program was:" >&5
14558 sed 's/^/| /' conftest.$ac_ext >&5
14560 ac_cv_header_time=no
14563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14565 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14566 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14567 if test $ac_cv_header_time = yes; then
14569 cat >>confdefs.h <<\_ACEOF
14570 #define TIME_WITH_SYS_TIME 1
14582 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14584 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 ac_res=`eval echo '${'$as_ac_Header'}'`
14592 { echo "$as_me:$LINENO: result: $ac_res" >&5
14593 echo "${ECHO_T}$ac_res" >&6; }
14595 # Is the header compilable?
14596 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14597 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14598 cat >conftest.$ac_ext <<_ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */
14604 $ac_includes_default
14605 #include <$ac_header>
14607 rm -f conftest.$ac_objext
14608 if { (ac_try="$ac_compile"
14609 case "(($ac_try" in
14610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14611 *) ac_try_echo=$ac_try;;
14613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14614 (eval "$ac_compile") 2>conftest.er1
14616 grep -v '^ *+' conftest.er1 >conftest.err
14618 cat conftest.err >&5
14619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14620 (exit $ac_status); } &&
14621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14622 { (case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_try") 2>&5
14629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14630 (exit $ac_status); }; } &&
14631 { ac_try='test -s conftest.$ac_objext'
14632 { (case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14637 (eval "$ac_try") 2>&5
14639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14640 (exit $ac_status); }; }; then
14641 ac_header_compiler=yes
14643 echo "$as_me: failed program was:" >&5
14644 sed 's/^/| /' conftest.$ac_ext >&5
14646 ac_header_compiler=no
14649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14651 echo "${ECHO_T}$ac_header_compiler" >&6; }
14653 # Is the header present?
14654 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14655 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14656 cat >conftest.$ac_ext <<_ACEOF
14659 cat confdefs.h >>conftest.$ac_ext
14660 cat >>conftest.$ac_ext <<_ACEOF
14661 /* end confdefs.h. */
14662 #include <$ac_header>
14664 if { (ac_try="$ac_cpp conftest.$ac_ext"
14665 case "(($ac_try" in
14666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14667 *) ac_try_echo=$ac_try;;
14669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14672 grep -v '^ *+' conftest.er1 >conftest.err
14674 cat conftest.err >&5
14675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14676 (exit $ac_status); } >/dev/null; then
14677 if test -s conftest.err; then
14678 ac_cpp_err=$ac_c_preproc_warn_flag
14679 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14686 if test -z "$ac_cpp_err"; then
14687 ac_header_preproc=yes
14689 echo "$as_me: failed program was:" >&5
14690 sed 's/^/| /' conftest.$ac_ext >&5
14692 ac_header_preproc=no
14695 rm -f conftest.err conftest.$ac_ext
14696 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14697 echo "${ECHO_T}$ac_header_preproc" >&6; }
14699 # So? What about this header?
14700 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14702 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14703 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14705 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14706 ac_header_preproc=yes
14709 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14710 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14711 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14712 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14713 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14714 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14715 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14716 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14718 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14720 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14722 ## ------------------------------------ ##
14723 ## Report this to http://llvm.org/bugs/ ##
14724 ## ------------------------------------ ##
14726 ) | sed "s/^/$as_me: WARNING: /" >&2
14729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14734 eval "$as_ac_Header=\$ac_header_preproc"
14736 ac_res=`eval echo '${'$as_ac_Header'}'`
14737 { echo "$as_me:$LINENO: result: $ac_res" >&5
14738 echo "${ECHO_T}$ac_res" >&6; }
14741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14742 cat >>confdefs.h <<_ACEOF
14743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14756 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14758 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14760 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14761 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14765 ac_res=`eval echo '${'$as_ac_Header'}'`
14766 { echo "$as_me:$LINENO: result: $ac_res" >&5
14767 echo "${ECHO_T}$ac_res" >&6; }
14769 # Is the header compilable?
14770 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14771 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14772 cat >conftest.$ac_ext <<_ACEOF
14775 cat confdefs.h >>conftest.$ac_ext
14776 cat >>conftest.$ac_ext <<_ACEOF
14777 /* end confdefs.h. */
14778 $ac_includes_default
14779 #include <$ac_header>
14781 rm -f conftest.$ac_objext
14782 if { (ac_try="$ac_compile"
14783 case "(($ac_try" in
14784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14785 *) ac_try_echo=$ac_try;;
14787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14788 (eval "$ac_compile") 2>conftest.er1
14790 grep -v '^ *+' conftest.er1 >conftest.err
14792 cat conftest.err >&5
14793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14794 (exit $ac_status); } &&
14795 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14796 { (case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_try") 2>&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); }; } &&
14805 { ac_try='test -s conftest.$ac_objext'
14806 { (case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_try") 2>&5
14813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14814 (exit $ac_status); }; }; then
14815 ac_header_compiler=yes
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14820 ac_header_compiler=no
14823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14825 echo "${ECHO_T}$ac_header_compiler" >&6; }
14827 # Is the header present?
14828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14830 cat >conftest.$ac_ext <<_ACEOF
14833 cat confdefs.h >>conftest.$ac_ext
14834 cat >>conftest.$ac_ext <<_ACEOF
14835 /* end confdefs.h. */
14836 #include <$ac_header>
14838 if { (ac_try="$ac_cpp conftest.$ac_ext"
14839 case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14846 grep -v '^ *+' conftest.er1 >conftest.err
14848 cat conftest.err >&5
14849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14850 (exit $ac_status); } >/dev/null; then
14851 if test -s conftest.err; then
14852 ac_cpp_err=$ac_c_preproc_warn_flag
14853 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14860 if test -z "$ac_cpp_err"; then
14861 ac_header_preproc=yes
14863 echo "$as_me: failed program was:" >&5
14864 sed 's/^/| /' conftest.$ac_ext >&5
14866 ac_header_preproc=no
14869 rm -f conftest.err conftest.$ac_ext
14870 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14871 echo "${ECHO_T}$ac_header_preproc" >&6; }
14873 # So? What about this header?
14874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14876 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14877 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14878 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14879 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14880 ac_header_preproc=yes
14883 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14884 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14885 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14886 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14887 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14888 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14890 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14892 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14894 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14896 ## ------------------------------------ ##
14897 ## Report this to http://llvm.org/bugs/ ##
14898 ## ------------------------------------ ##
14900 ) | sed "s/^/$as_me: WARNING: /" >&2
14903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14906 echo $ECHO_N "(cached) $ECHO_C" >&6
14908 eval "$as_ac_Header=\$ac_header_preproc"
14910 ac_res=`eval echo '${'$as_ac_Header'}'`
14911 { echo "$as_me:$LINENO: result: $ac_res" >&5
14912 echo "${ECHO_T}$ac_res" >&6; }
14915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14916 cat >>confdefs.h <<_ACEOF
14917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14926 for ac_header in utime.h windows.h
14928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14933 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 ac_res=`eval echo '${'$as_ac_Header'}'`
14936 { echo "$as_me:$LINENO: result: $ac_res" >&5
14937 echo "${ECHO_T}$ac_res" >&6; }
14939 # Is the header compilable?
14940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14942 cat >conftest.$ac_ext <<_ACEOF
14945 cat confdefs.h >>conftest.$ac_ext
14946 cat >>conftest.$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14948 $ac_includes_default
14949 #include <$ac_header>
14951 rm -f conftest.$ac_objext
14952 if { (ac_try="$ac_compile"
14953 case "(($ac_try" in
14954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14955 *) ac_try_echo=$ac_try;;
14957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14958 (eval "$ac_compile") 2>conftest.er1
14960 grep -v '^ *+' conftest.er1 >conftest.err
14962 cat conftest.err >&5
14963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14964 (exit $ac_status); } &&
14965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14966 { (case "(($ac_try" in
14967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14968 *) ac_try_echo=$ac_try;;
14970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14971 (eval "$ac_try") 2>&5
14973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14974 (exit $ac_status); }; } &&
14975 { ac_try='test -s conftest.$ac_objext'
14976 { (case "(($ac_try" in
14977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_try") 2>&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); }; }; then
14985 ac_header_compiler=yes
14987 echo "$as_me: failed program was:" >&5
14988 sed 's/^/| /' conftest.$ac_ext >&5
14990 ac_header_compiler=no
14993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14995 echo "${ECHO_T}$ac_header_compiler" >&6; }
14997 # Is the header present?
14998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15000 cat >conftest.$ac_ext <<_ACEOF
15003 cat confdefs.h >>conftest.$ac_ext
15004 cat >>conftest.$ac_ext <<_ACEOF
15005 /* end confdefs.h. */
15006 #include <$ac_header>
15008 if { (ac_try="$ac_cpp conftest.$ac_ext"
15009 case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15016 grep -v '^ *+' conftest.er1 >conftest.err
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } >/dev/null; then
15021 if test -s conftest.err; then
15022 ac_cpp_err=$ac_c_preproc_warn_flag
15023 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15030 if test -z "$ac_cpp_err"; then
15031 ac_header_preproc=yes
15033 echo "$as_me: failed program was:" >&5
15034 sed 's/^/| /' conftest.$ac_ext >&5
15036 ac_header_preproc=no
15039 rm -f conftest.err conftest.$ac_ext
15040 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15041 echo "${ECHO_T}$ac_header_preproc" >&6; }
15043 # So? What about this header?
15044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15046 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15047 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15048 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15049 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15050 ac_header_preproc=yes
15053 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15054 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15056 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15058 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15060 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15062 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15064 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15066 ## ------------------------------------ ##
15067 ## Report this to http://llvm.org/bugs/ ##
15068 ## ------------------------------------ ##
15070 ) | sed "s/^/$as_me: WARNING: /" >&2
15073 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15074 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15075 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15076 echo $ECHO_N "(cached) $ECHO_C" >&6
15078 eval "$as_ac_Header=\$ac_header_preproc"
15080 ac_res=`eval echo '${'$as_ac_Header'}'`
15081 { echo "$as_me:$LINENO: result: $ac_res" >&5
15082 echo "${ECHO_T}$ac_res" >&6; }
15085 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15086 cat >>confdefs.h <<_ACEOF
15087 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15099 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15106 echo $ECHO_N "(cached) $ECHO_C" >&6
15108 ac_res=`eval echo '${'$as_ac_Header'}'`
15109 { echo "$as_me:$LINENO: result: $ac_res" >&5
15110 echo "${ECHO_T}$ac_res" >&6; }
15112 # Is the header compilable?
15113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15114 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15115 cat >conftest.$ac_ext <<_ACEOF
15118 cat confdefs.h >>conftest.$ac_ext
15119 cat >>conftest.$ac_ext <<_ACEOF
15120 /* end confdefs.h. */
15121 $ac_includes_default
15122 #include <$ac_header>
15124 rm -f conftest.$ac_objext
15125 if { (ac_try="$ac_compile"
15126 case "(($ac_try" in
15127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15128 *) ac_try_echo=$ac_try;;
15130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15131 (eval "$ac_compile") 2>conftest.er1
15133 grep -v '^ *+' conftest.er1 >conftest.err
15135 cat conftest.err >&5
15136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15137 (exit $ac_status); } &&
15138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15139 { (case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_try") 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); }; } &&
15148 { ac_try='test -s conftest.$ac_objext'
15149 { (case "(($ac_try" in
15150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15151 *) ac_try_echo=$ac_try;;
15153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15154 (eval "$ac_try") 2>&5
15156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15157 (exit $ac_status); }; }; then
15158 ac_header_compiler=yes
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ac_header_compiler=no
15166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15168 echo "${ECHO_T}$ac_header_compiler" >&6; }
15170 # Is the header present?
15171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15173 cat >conftest.$ac_ext <<_ACEOF
15176 cat confdefs.h >>conftest.$ac_ext
15177 cat >>conftest.$ac_ext <<_ACEOF
15178 /* end confdefs.h. */
15179 #include <$ac_header>
15181 if { (ac_try="$ac_cpp conftest.$ac_ext"
15182 case "(($ac_try" in
15183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15184 *) ac_try_echo=$ac_try;;
15186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15189 grep -v '^ *+' conftest.er1 >conftest.err
15191 cat conftest.err >&5
15192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15193 (exit $ac_status); } >/dev/null; then
15194 if test -s conftest.err; then
15195 ac_cpp_err=$ac_c_preproc_warn_flag
15196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15203 if test -z "$ac_cpp_err"; then
15204 ac_header_preproc=yes
15206 echo "$as_me: failed program was:" >&5
15207 sed 's/^/| /' conftest.$ac_ext >&5
15209 ac_header_preproc=no
15212 rm -f conftest.err conftest.$ac_ext
15213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15214 echo "${ECHO_T}$ac_header_preproc" >&6; }
15216 # So? What about this header?
15217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15223 ac_header_preproc=yes
15226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15239 ## ------------------------------------ ##
15240 ## Report this to http://llvm.org/bugs/ ##
15241 ## ------------------------------------ ##
15243 ) | sed "s/^/$as_me: WARNING: /" >&2
15246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15249 echo $ECHO_N "(cached) $ECHO_C" >&6
15251 eval "$as_ac_Header=\$ac_header_preproc"
15253 ac_res=`eval echo '${'$as_ac_Header'}'`
15254 { echo "$as_me:$LINENO: result: $ac_res" >&5
15255 echo "${ECHO_T}$ac_res" >&6; }
15258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15259 cat >>confdefs.h <<_ACEOF
15260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15271 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15273 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15275 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15276 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15278 echo $ECHO_N "(cached) $ECHO_C" >&6
15280 ac_res=`eval echo '${'$as_ac_Header'}'`
15281 { echo "$as_me:$LINENO: result: $ac_res" >&5
15282 echo "${ECHO_T}$ac_res" >&6; }
15284 # Is the header compilable?
15285 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15286 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 $ac_includes_default
15294 #include <$ac_header>
15296 rm -f conftest.$ac_objext
15297 if { (ac_try="$ac_compile"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_compile") 2>conftest.er1
15305 grep -v '^ *+' conftest.er1 >conftest.err
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } &&
15310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15311 { (case "(($ac_try" in
15312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15313 *) ac_try_echo=$ac_try;;
15315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15316 (eval "$ac_try") 2>&5
15318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15319 (exit $ac_status); }; } &&
15320 { ac_try='test -s conftest.$ac_objext'
15321 { (case "(($ac_try" in
15322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323 *) ac_try_echo=$ac_try;;
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_try") 2>&5
15328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15329 (exit $ac_status); }; }; then
15330 ac_header_compiler=yes
15332 echo "$as_me: failed program was:" >&5
15333 sed 's/^/| /' conftest.$ac_ext >&5
15335 ac_header_compiler=no
15338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15339 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15340 echo "${ECHO_T}$ac_header_compiler" >&6; }
15342 # Is the header present?
15343 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15344 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15345 cat >conftest.$ac_ext <<_ACEOF
15348 cat confdefs.h >>conftest.$ac_ext
15349 cat >>conftest.$ac_ext <<_ACEOF
15350 /* end confdefs.h. */
15351 #include <$ac_header>
15353 if { (ac_try="$ac_cpp conftest.$ac_ext"
15354 case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15361 grep -v '^ *+' conftest.er1 >conftest.err
15363 cat conftest.err >&5
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } >/dev/null; then
15366 if test -s conftest.err; then
15367 ac_cpp_err=$ac_c_preproc_warn_flag
15368 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15375 if test -z "$ac_cpp_err"; then
15376 ac_header_preproc=yes
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15381 ac_header_preproc=no
15384 rm -f conftest.err conftest.$ac_ext
15385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15386 echo "${ECHO_T}$ac_header_preproc" >&6; }
15388 # So? What about this header?
15389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15391 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15392 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15393 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15394 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15395 ac_header_preproc=yes
15398 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15399 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15400 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15401 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15402 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15403 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15405 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15407 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15409 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15411 ## ------------------------------------ ##
15412 ## Report this to http://llvm.org/bugs/ ##
15413 ## ------------------------------------ ##
15415 ) | sed "s/^/$as_me: WARNING: /" >&2
15418 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15419 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15420 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15421 echo $ECHO_N "(cached) $ECHO_C" >&6
15423 eval "$as_ac_Header=\$ac_header_preproc"
15425 ac_res=`eval echo '${'$as_ac_Header'}'`
15426 { echo "$as_me:$LINENO: result: $ac_res" >&5
15427 echo "${ECHO_T}$ac_res" >&6; }
15430 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15431 cat >>confdefs.h <<_ACEOF
15432 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15440 for ac_header in valgrind/valgrind.h
15442 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15443 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15447 echo $ECHO_N "(cached) $ECHO_C" >&6
15449 ac_res=`eval echo '${'$as_ac_Header'}'`
15450 { echo "$as_me:$LINENO: result: $ac_res" >&5
15451 echo "${ECHO_T}$ac_res" >&6; }
15453 # Is the header compilable?
15454 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15455 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15456 cat >conftest.$ac_ext <<_ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 $ac_includes_default
15463 #include <$ac_header>
15465 rm -f conftest.$ac_objext
15466 if { (ac_try="$ac_compile"
15467 case "(($ac_try" in
15468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15469 *) ac_try_echo=$ac_try;;
15471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15472 (eval "$ac_compile") 2>conftest.er1
15474 grep -v '^ *+' conftest.er1 >conftest.err
15476 cat conftest.err >&5
15477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15478 (exit $ac_status); } &&
15479 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15480 { (case "(($ac_try" in
15481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15482 *) ac_try_echo=$ac_try;;
15484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15485 (eval "$ac_try") 2>&5
15487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); }; } &&
15489 { ac_try='test -s conftest.$ac_objext'
15490 { (case "(($ac_try" in
15491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15492 *) ac_try_echo=$ac_try;;
15494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15495 (eval "$ac_try") 2>&5
15497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15498 (exit $ac_status); }; }; then
15499 ac_header_compiler=yes
15501 echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15504 ac_header_compiler=no
15507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15509 echo "${ECHO_T}$ac_header_compiler" >&6; }
15511 # Is the header present?
15512 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15513 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15514 cat >conftest.$ac_ext <<_ACEOF
15517 cat confdefs.h >>conftest.$ac_ext
15518 cat >>conftest.$ac_ext <<_ACEOF
15519 /* end confdefs.h. */
15520 #include <$ac_header>
15522 if { (ac_try="$ac_cpp conftest.$ac_ext"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15534 (exit $ac_status); } >/dev/null; then
15535 if test -s conftest.err; then
15536 ac_cpp_err=$ac_c_preproc_warn_flag
15537 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15544 if test -z "$ac_cpp_err"; then
15545 ac_header_preproc=yes
15547 echo "$as_me: failed program was:" >&5
15548 sed 's/^/| /' conftest.$ac_ext >&5
15550 ac_header_preproc=no
15553 rm -f conftest.err conftest.$ac_ext
15554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15555 echo "${ECHO_T}$ac_header_preproc" >&6; }
15557 # So? What about this header?
15558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15560 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15561 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15563 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15564 ac_header_preproc=yes
15567 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15568 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15570 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15572 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15574 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15576 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15578 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15580 ## ------------------------------------ ##
15581 ## Report this to http://llvm.org/bugs/ ##
15582 ## ------------------------------------ ##
15584 ) | sed "s/^/$as_me: WARNING: /" >&2
15587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15590 echo $ECHO_N "(cached) $ECHO_C" >&6
15592 eval "$as_ac_Header=\$ac_header_preproc"
15594 ac_res=`eval echo '${'$as_ac_Header'}'`
15595 { echo "$as_me:$LINENO: result: $ac_res" >&5
15596 echo "${ECHO_T}$ac_res" >&6; }
15599 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15600 cat >>confdefs.h <<_ACEOF
15601 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15609 for ac_header in fenv.h
15611 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15612 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15613 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15614 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15615 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15616 echo $ECHO_N "(cached) $ECHO_C" >&6
15618 ac_res=`eval echo '${'$as_ac_Header'}'`
15619 { echo "$as_me:$LINENO: result: $ac_res" >&5
15620 echo "${ECHO_T}$ac_res" >&6; }
15622 # Is the header compilable?
15623 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15624 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15625 cat >conftest.$ac_ext <<_ACEOF
15628 cat confdefs.h >>conftest.$ac_ext
15629 cat >>conftest.$ac_ext <<_ACEOF
15630 /* end confdefs.h. */
15631 $ac_includes_default
15632 #include <$ac_header>
15634 rm -f conftest.$ac_objext
15635 if { (ac_try="$ac_compile"
15636 case "(($ac_try" in
15637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_compile") 2>conftest.er1
15643 grep -v '^ *+' conftest.er1 >conftest.err
15645 cat conftest.err >&5
15646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15647 (exit $ac_status); } &&
15648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15649 { (case "(($ac_try" in
15650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15651 *) ac_try_echo=$ac_try;;
15653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15654 (eval "$ac_try") 2>&5
15656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15657 (exit $ac_status); }; } &&
15658 { ac_try='test -s conftest.$ac_objext'
15659 { (case "(($ac_try" in
15660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15661 *) ac_try_echo=$ac_try;;
15663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15664 (eval "$ac_try") 2>&5
15666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15667 (exit $ac_status); }; }; then
15668 ac_header_compiler=yes
15670 echo "$as_me: failed program was:" >&5
15671 sed 's/^/| /' conftest.$ac_ext >&5
15673 ac_header_compiler=no
15676 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15677 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15678 echo "${ECHO_T}$ac_header_compiler" >&6; }
15680 # Is the header present?
15681 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15682 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15683 cat >conftest.$ac_ext <<_ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 #include <$ac_header>
15691 if { (ac_try="$ac_cpp conftest.$ac_ext"
15692 case "(($ac_try" in
15693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15694 *) ac_try_echo=$ac_try;;
15696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15699 grep -v '^ *+' conftest.er1 >conftest.err
15701 cat conftest.err >&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); } >/dev/null; then
15704 if test -s conftest.err; then
15705 ac_cpp_err=$ac_c_preproc_warn_flag
15706 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15713 if test -z "$ac_cpp_err"; then
15714 ac_header_preproc=yes
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 ac_header_preproc=no
15722 rm -f conftest.err conftest.$ac_ext
15723 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15724 echo "${ECHO_T}$ac_header_preproc" >&6; }
15726 # So? What about this header?
15727 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15730 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15732 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15733 ac_header_preproc=yes
15736 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15737 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15739 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15741 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15743 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15745 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15747 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15749 ## ------------------------------------ ##
15750 ## Report this to http://llvm.org/bugs/ ##
15751 ## ------------------------------------ ##
15753 ) | sed "s/^/$as_me: WARNING: /" >&2
15756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15759 echo $ECHO_N "(cached) $ECHO_C" >&6
15761 eval "$as_ac_Header=\$ac_header_preproc"
15763 ac_res=`eval echo '${'$as_ac_Header'}'`
15764 { echo "$as_me:$LINENO: result: $ac_res" >&5
15765 echo "${ECHO_T}$ac_res" >&6; }
15768 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15769 cat >>confdefs.h <<_ACEOF
15770 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15777 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15779 for ac_header in pthread.h
15781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15786 echo $ECHO_N "(cached) $ECHO_C" >&6
15788 ac_res=`eval echo '${'$as_ac_Header'}'`
15789 { echo "$as_me:$LINENO: result: $ac_res" >&5
15790 echo "${ECHO_T}$ac_res" >&6; }
15792 # Is the header compilable?
15793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15795 cat >conftest.$ac_ext <<_ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801 $ac_includes_default
15802 #include <$ac_header>
15804 rm -f conftest.$ac_objext
15805 if { (ac_try="$ac_compile"
15806 case "(($ac_try" in
15807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15808 *) ac_try_echo=$ac_try;;
15810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15811 (eval "$ac_compile") 2>conftest.er1
15813 grep -v '^ *+' conftest.er1 >conftest.err
15815 cat conftest.err >&5
15816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15817 (exit $ac_status); } &&
15818 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15819 { (case "(($ac_try" in
15820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15821 *) ac_try_echo=$ac_try;;
15823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15824 (eval "$ac_try") 2>&5
15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15827 (exit $ac_status); }; } &&
15828 { ac_try='test -s conftest.$ac_objext'
15829 { (case "(($ac_try" in
15830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15831 *) ac_try_echo=$ac_try;;
15833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15834 (eval "$ac_try") 2>&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); }; }; then
15838 ac_header_compiler=yes
15840 echo "$as_me: failed program was:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 ac_header_compiler=no
15846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15848 echo "${ECHO_T}$ac_header_compiler" >&6; }
15850 # Is the header present?
15851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15853 cat >conftest.$ac_ext <<_ACEOF
15856 cat confdefs.h >>conftest.$ac_ext
15857 cat >>conftest.$ac_ext <<_ACEOF
15858 /* end confdefs.h. */
15859 #include <$ac_header>
15861 if { (ac_try="$ac_cpp conftest.$ac_ext"
15862 case "(($ac_try" in
15863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864 *) ac_try_echo=$ac_try;;
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15869 grep -v '^ *+' conftest.er1 >conftest.err
15871 cat conftest.err >&5
15872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15873 (exit $ac_status); } >/dev/null; then
15874 if test -s conftest.err; then
15875 ac_cpp_err=$ac_c_preproc_warn_flag
15876 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15883 if test -z "$ac_cpp_err"; then
15884 ac_header_preproc=yes
15886 echo "$as_me: failed program was:" >&5
15887 sed 's/^/| /' conftest.$ac_ext >&5
15889 ac_header_preproc=no
15892 rm -f conftest.err conftest.$ac_ext
15893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15894 echo "${ECHO_T}$ac_header_preproc" >&6; }
15896 # So? What about this header?
15897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15903 ac_header_preproc=yes
15906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15919 ## ------------------------------------ ##
15920 ## Report this to http://llvm.org/bugs/ ##
15921 ## ------------------------------------ ##
15923 ) | sed "s/^/$as_me: WARNING: /" >&2
15926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15929 echo $ECHO_N "(cached) $ECHO_C" >&6
15931 eval "$as_ac_Header=\$ac_header_preproc"
15933 ac_res=`eval echo '${'$as_ac_Header'}'`
15934 { echo "$as_me:$LINENO: result: $ac_res" >&5
15935 echo "${ECHO_T}$ac_res" >&6; }
15938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15939 cat >>confdefs.h <<_ACEOF
15940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15956 if test "$llvm_cv_enable_libffi" = "yes" ; then
15959 for ac_header in ffi.h ffi/ffi.h
15961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15966 echo $ECHO_N "(cached) $ECHO_C" >&6
15968 ac_res=`eval echo '${'$as_ac_Header'}'`
15969 { echo "$as_me:$LINENO: result: $ac_res" >&5
15970 echo "${ECHO_T}$ac_res" >&6; }
15972 # Is the header compilable?
15973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15975 cat >conftest.$ac_ext <<_ACEOF
15978 cat confdefs.h >>conftest.$ac_ext
15979 cat >>conftest.$ac_ext <<_ACEOF
15980 /* end confdefs.h. */
15981 $ac_includes_default
15982 #include <$ac_header>
15984 rm -f conftest.$ac_objext
15985 if { (ac_try="$ac_compile"
15986 case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_compile") 2>conftest.er1
15993 grep -v '^ *+' conftest.er1 >conftest.err
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15997 (exit $ac_status); } &&
15998 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15999 { (case "(($ac_try" in
16000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16001 *) ac_try_echo=$ac_try;;
16003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16004 (eval "$ac_try") 2>&5
16006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16007 (exit $ac_status); }; } &&
16008 { ac_try='test -s conftest.$ac_objext'
16009 { (case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_try") 2>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); }; }; then
16018 ac_header_compiler=yes
16020 echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16023 ac_header_compiler=no
16026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16028 echo "${ECHO_T}$ac_header_compiler" >&6; }
16030 # Is the header present?
16031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16033 cat >conftest.$ac_ext <<_ACEOF
16036 cat confdefs.h >>conftest.$ac_ext
16037 cat >>conftest.$ac_ext <<_ACEOF
16038 /* end confdefs.h. */
16039 #include <$ac_header>
16041 if { (ac_try="$ac_cpp conftest.$ac_ext"
16042 case "(($ac_try" in
16043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16044 *) ac_try_echo=$ac_try;;
16046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16049 grep -v '^ *+' conftest.er1 >conftest.err
16051 cat conftest.err >&5
16052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16053 (exit $ac_status); } >/dev/null; then
16054 if test -s conftest.err; then
16055 ac_cpp_err=$ac_c_preproc_warn_flag
16056 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16063 if test -z "$ac_cpp_err"; then
16064 ac_header_preproc=yes
16066 echo "$as_me: failed program was:" >&5
16067 sed 's/^/| /' conftest.$ac_ext >&5
16069 ac_header_preproc=no
16072 rm -f conftest.err conftest.$ac_ext
16073 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16074 echo "${ECHO_T}$ac_header_preproc" >&6; }
16076 # So? What about this header?
16077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16079 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16080 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16083 ac_header_preproc=yes
16086 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16087 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16088 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16089 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16090 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16091 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16092 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16093 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16097 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16099 ## ------------------------------------ ##
16100 ## Report this to http://llvm.org/bugs/ ##
16101 ## ------------------------------------ ##
16103 ) | sed "s/^/$as_me: WARNING: /" >&2
16106 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16109 echo $ECHO_N "(cached) $ECHO_C" >&6
16111 eval "$as_ac_Header=\$ac_header_preproc"
16113 ac_res=`eval echo '${'$as_ac_Header'}'`
16114 { echo "$as_me:$LINENO: result: $ac_res" >&5
16115 echo "${ECHO_T}$ac_res" >&6; }
16118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16119 cat >>confdefs.h <<_ACEOF
16120 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16130 for ac_header in CrashReporterClient.h
16132 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16134 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16135 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16136 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16137 echo $ECHO_N "(cached) $ECHO_C" >&6
16139 ac_res=`eval echo '${'$as_ac_Header'}'`
16140 { echo "$as_me:$LINENO: result: $ac_res" >&5
16141 echo "${ECHO_T}$ac_res" >&6; }
16143 # Is the header compilable?
16144 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16145 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16146 cat >conftest.$ac_ext <<_ACEOF
16149 cat confdefs.h >>conftest.$ac_ext
16150 cat >>conftest.$ac_ext <<_ACEOF
16151 /* end confdefs.h. */
16152 $ac_includes_default
16153 #include <$ac_header>
16155 rm -f conftest.$ac_objext
16156 if { (ac_try="$ac_compile"
16157 case "(($ac_try" in
16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159 *) ac_try_echo=$ac_try;;
16161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16162 (eval "$ac_compile") 2>conftest.er1
16164 grep -v '^ *+' conftest.er1 >conftest.err
16166 cat conftest.err >&5
16167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16168 (exit $ac_status); } &&
16169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16170 { (case "(($ac_try" in
16171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16172 *) ac_try_echo=$ac_try;;
16174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16175 (eval "$ac_try") 2>&5
16177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16178 (exit $ac_status); }; } &&
16179 { ac_try='test -s conftest.$ac_objext'
16180 { (case "(($ac_try" in
16181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16182 *) ac_try_echo=$ac_try;;
16184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16185 (eval "$ac_try") 2>&5
16187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16188 (exit $ac_status); }; }; then
16189 ac_header_compiler=yes
16191 echo "$as_me: failed program was:" >&5
16192 sed 's/^/| /' conftest.$ac_ext >&5
16194 ac_header_compiler=no
16197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16198 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16199 echo "${ECHO_T}$ac_header_compiler" >&6; }
16201 # Is the header present?
16202 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16203 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16204 cat >conftest.$ac_ext <<_ACEOF
16207 cat confdefs.h >>conftest.$ac_ext
16208 cat >>conftest.$ac_ext <<_ACEOF
16209 /* end confdefs.h. */
16210 #include <$ac_header>
16212 if { (ac_try="$ac_cpp conftest.$ac_ext"
16213 case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16220 grep -v '^ *+' conftest.er1 >conftest.err
16222 cat conftest.err >&5
16223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16224 (exit $ac_status); } >/dev/null; then
16225 if test -s conftest.err; then
16226 ac_cpp_err=$ac_c_preproc_warn_flag
16227 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16234 if test -z "$ac_cpp_err"; then
16235 ac_header_preproc=yes
16237 echo "$as_me: failed program was:" >&5
16238 sed 's/^/| /' conftest.$ac_ext >&5
16240 ac_header_preproc=no
16243 rm -f conftest.err conftest.$ac_ext
16244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16245 echo "${ECHO_T}$ac_header_preproc" >&6; }
16247 # So? What about this header?
16248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16254 ac_header_preproc=yes
16257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16270 ## ------------------------------------ ##
16271 ## Report this to http://llvm.org/bugs/ ##
16272 ## ------------------------------------ ##
16274 ) | sed "s/^/$as_me: WARNING: /" >&2
16277 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16278 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16279 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16280 echo $ECHO_N "(cached) $ECHO_C" >&6
16282 eval "$as_ac_Header=\$ac_header_preproc"
16284 ac_res=`eval echo '${'$as_ac_Header'}'`
16285 { echo "$as_me:$LINENO: result: $ac_res" >&5
16286 echo "${ECHO_T}$ac_res" >&6; }
16289 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16290 cat >>confdefs.h <<_ACEOF
16291 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16299 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16300 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16301 cat >conftest.$ac_ext <<_ACEOF
16304 cat confdefs.h >>conftest.$ac_ext
16305 cat >>conftest.$ac_ext <<_ACEOF
16306 /* end confdefs.h. */
16307 extern const char *__crashreporter_info__;
16309 __crashreporter_info__ = "test";
16314 rm -f conftest.$ac_objext conftest$ac_exeext
16315 if { (ac_try="$ac_link"
16316 case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_link") 2>conftest.er1
16323 grep -v '^ *+' conftest.er1 >conftest.err
16325 cat conftest.err >&5
16326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16327 (exit $ac_status); } &&
16328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16329 { (case "(($ac_try" in
16330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16331 *) ac_try_echo=$ac_try;;
16333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16334 (eval "$ac_try") 2>&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); }; } &&
16338 { ac_try='test -s conftest$ac_exeext'
16339 { (case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_try") 2>&5
16346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16347 (exit $ac_status); }; }; then
16348 { echo "$as_me:$LINENO: result: yes" >&5
16349 echo "${ECHO_T}yes" >&6; }
16351 cat >>confdefs.h <<\_ACEOF
16352 #define HAVE_CRASHREPORTER_INFO 1
16356 echo "$as_me: failed program was:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 { echo "$as_me:$LINENO: result: no" >&5
16360 echo "${ECHO_T}no" >&6; }
16362 cat >>confdefs.h <<\_ACEOF
16363 #define HAVE_CRASHREPORTER_INFO 0
16368 rm -f core conftest.err conftest.$ac_objext \
16369 conftest$ac_exeext conftest.$ac_ext
16374 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16375 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16376 if test "${ac_cv_huge_val_sanity+set}" = set; then
16377 echo $ECHO_N "(cached) $ECHO_C" >&6
16381 ac_cpp='$CXXCPP $CPPFLAGS'
16382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16386 ac_save_CXXFLAGS=$CXXFLAGS
16387 CXXFLAGS="$CXXFLAGS -pedantic"
16388 if test "$cross_compiling" = yes; then
16389 ac_cv_huge_val_sanity=yes
16391 cat >conftest.$ac_ext <<_ACEOF
16394 cat confdefs.h >>conftest.$ac_ext
16395 cat >>conftest.$ac_ext <<_ACEOF
16396 /* end confdefs.h. */
16401 double x = HUGE_VAL; return x != x;
16406 rm -f conftest$ac_exeext
16407 if { (ac_try="$ac_link"
16408 case "(($ac_try" in
16409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16410 *) ac_try_echo=$ac_try;;
16412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16413 (eval "$ac_link") 2>&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16417 { (case "(($ac_try" in
16418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16419 *) ac_try_echo=$ac_try;;
16421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16422 (eval "$ac_try") 2>&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); }; }; then
16426 ac_cv_huge_val_sanity=yes
16428 echo "$as_me: program exited with status $ac_status" >&5
16429 echo "$as_me: failed program was:" >&5
16430 sed 's/^/| /' conftest.$ac_ext >&5
16432 ( exit $ac_status )
16433 ac_cv_huge_val_sanity=no
16435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16439 CXXFLAGS=$ac_save_CXXFLAGS
16441 ac_cpp='$CPP $CPPFLAGS'
16442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16448 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16449 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16450 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16453 { echo "$as_me:$LINENO: checking for pid_t" >&5
16454 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16455 if test "${ac_cv_type_pid_t+set}" = set; then
16456 echo $ECHO_N "(cached) $ECHO_C" >&6
16458 cat >conftest.$ac_ext <<_ACEOF
16461 cat confdefs.h >>conftest.$ac_ext
16462 cat >>conftest.$ac_ext <<_ACEOF
16463 /* end confdefs.h. */
16464 $ac_includes_default
16465 typedef pid_t ac__type_new_;
16469 if ((ac__type_new_ *) 0)
16471 if (sizeof (ac__type_new_))
16477 rm -f conftest.$ac_objext
16478 if { (ac_try="$ac_compile"
16479 case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_compile") 2>conftest.er1
16486 grep -v '^ *+' conftest.er1 >conftest.err
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16490 (exit $ac_status); } &&
16491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16492 { (case "(($ac_try" in
16493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16494 *) ac_try_echo=$ac_try;;
16496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16497 (eval "$ac_try") 2>&5
16499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16500 (exit $ac_status); }; } &&
16501 { ac_try='test -s conftest.$ac_objext'
16502 { (case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_try") 2>&5
16509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16510 (exit $ac_status); }; }; then
16511 ac_cv_type_pid_t=yes
16513 echo "$as_me: failed program was:" >&5
16514 sed 's/^/| /' conftest.$ac_ext >&5
16516 ac_cv_type_pid_t=no
16519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16521 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16522 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16523 if test $ac_cv_type_pid_t = yes; then
16527 cat >>confdefs.h <<_ACEOF
16533 { echo "$as_me:$LINENO: checking for size_t" >&5
16534 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16535 if test "${ac_cv_type_size_t+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16538 cat >conftest.$ac_ext <<_ACEOF
16541 cat confdefs.h >>conftest.$ac_ext
16542 cat >>conftest.$ac_ext <<_ACEOF
16543 /* end confdefs.h. */
16544 $ac_includes_default
16545 typedef size_t ac__type_new_;
16549 if ((ac__type_new_ *) 0)
16551 if (sizeof (ac__type_new_))
16557 rm -f conftest.$ac_objext
16558 if { (ac_try="$ac_compile"
16559 case "(($ac_try" in
16560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16561 *) ac_try_echo=$ac_try;;
16563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16564 (eval "$ac_compile") 2>conftest.er1
16566 grep -v '^ *+' conftest.er1 >conftest.err
16568 cat conftest.err >&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); } &&
16571 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16572 { (case "(($ac_try" in
16573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16574 *) ac_try_echo=$ac_try;;
16576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16577 (eval "$ac_try") 2>&5
16579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16580 (exit $ac_status); }; } &&
16581 { ac_try='test -s conftest.$ac_objext'
16582 { (case "(($ac_try" in
16583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16584 *) ac_try_echo=$ac_try;;
16586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16587 (eval "$ac_try") 2>&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); }; }; then
16591 ac_cv_type_size_t=yes
16593 echo "$as_me: failed program was:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 ac_cv_type_size_t=no
16599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16601 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16602 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16603 if test $ac_cv_type_size_t = yes; then
16607 cat >>confdefs.h <<_ACEOF
16608 #define size_t unsigned int
16614 cat >>confdefs.h <<_ACEOF
16615 #define RETSIGTYPE void
16618 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16619 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16620 if test "${ac_cv_struct_tm+set}" = set; then
16621 echo $ECHO_N "(cached) $ECHO_C" >&6
16623 cat >conftest.$ac_ext <<_ACEOF
16626 cat confdefs.h >>conftest.$ac_ext
16627 cat >>conftest.$ac_ext <<_ACEOF
16628 /* end confdefs.h. */
16629 #include <sys/types.h>
16635 struct tm *tp; tp->tm_sec;
16640 rm -f conftest.$ac_objext
16641 if { (ac_try="$ac_compile"
16642 case "(($ac_try" in
16643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16644 *) ac_try_echo=$ac_try;;
16646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16647 (eval "$ac_compile") 2>conftest.er1
16649 grep -v '^ *+' conftest.er1 >conftest.err
16651 cat conftest.err >&5
16652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); } &&
16654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16655 { (case "(($ac_try" in
16656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16657 *) ac_try_echo=$ac_try;;
16659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16660 (eval "$ac_try") 2>&5
16662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16663 (exit $ac_status); }; } &&
16664 { ac_try='test -s conftest.$ac_objext'
16665 { (case "(($ac_try" in
16666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16667 *) ac_try_echo=$ac_try;;
16669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16670 (eval "$ac_try") 2>&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); }; }; then
16674 ac_cv_struct_tm=time.h
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16679 ac_cv_struct_tm=sys/time.h
16682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16684 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16685 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16686 if test $ac_cv_struct_tm = sys/time.h; then
16688 cat >>confdefs.h <<\_ACEOF
16689 #define TM_IN_SYS_TIME 1
16694 { echo "$as_me:$LINENO: checking for int64_t" >&5
16695 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16696 if test "${ac_cv_type_int64_t+set}" = set; then
16697 echo $ECHO_N "(cached) $ECHO_C" >&6
16699 cat >conftest.$ac_ext <<_ACEOF
16702 cat confdefs.h >>conftest.$ac_ext
16703 cat >>conftest.$ac_ext <<_ACEOF
16704 /* end confdefs.h. */
16705 $ac_includes_default
16706 typedef int64_t ac__type_new_;
16710 if ((ac__type_new_ *) 0)
16712 if (sizeof (ac__type_new_))
16718 rm -f conftest.$ac_objext
16719 if { (ac_try="$ac_compile"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_compile") 2>conftest.er1
16727 grep -v '^ *+' conftest.er1 >conftest.err
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16731 (exit $ac_status); } &&
16732 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16733 { (case "(($ac_try" in
16734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16735 *) ac_try_echo=$ac_try;;
16737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16738 (eval "$ac_try") 2>&5
16740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16741 (exit $ac_status); }; } &&
16742 { ac_try='test -s conftest.$ac_objext'
16743 { (case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_try") 2>&5
16750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_cv_type_int64_t=yes
16754 echo "$as_me: failed program was:" >&5
16755 sed 's/^/| /' conftest.$ac_ext >&5
16757 ac_cv_type_int64_t=no
16760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16762 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16763 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16764 if test $ac_cv_type_int64_t = yes; then
16766 cat >>confdefs.h <<_ACEOF
16767 #define HAVE_INT64_T 1
16772 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16773 echo "$as_me: error: Type int64_t required but not found" >&2;}
16774 { (exit 1); exit 1; }; }
16777 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16778 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16779 if test "${ac_cv_type_uint64_t+set}" = set; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16782 cat >conftest.$ac_ext <<_ACEOF
16785 cat confdefs.h >>conftest.$ac_ext
16786 cat >>conftest.$ac_ext <<_ACEOF
16787 /* end confdefs.h. */
16788 $ac_includes_default
16789 typedef uint64_t ac__type_new_;
16793 if ((ac__type_new_ *) 0)
16795 if (sizeof (ac__type_new_))
16801 rm -f conftest.$ac_objext
16802 if { (ac_try="$ac_compile"
16803 case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_compile") 2>conftest.er1
16810 grep -v '^ *+' conftest.er1 >conftest.err
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } &&
16815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16816 { (case "(($ac_try" in
16817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16818 *) ac_try_echo=$ac_try;;
16820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16821 (eval "$ac_try") 2>&5
16823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16824 (exit $ac_status); }; } &&
16825 { ac_try='test -s conftest.$ac_objext'
16826 { (case "(($ac_try" in
16827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16828 *) ac_try_echo=$ac_try;;
16830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16831 (eval "$ac_try") 2>&5
16833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16834 (exit $ac_status); }; }; then
16835 ac_cv_type_uint64_t=yes
16837 echo "$as_me: failed program was:" >&5
16838 sed 's/^/| /' conftest.$ac_ext >&5
16840 ac_cv_type_uint64_t=no
16843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16845 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16846 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16847 if test $ac_cv_type_uint64_t = yes; then
16849 cat >>confdefs.h <<_ACEOF
16850 #define HAVE_UINT64_T 1
16855 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16856 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16857 if test "${ac_cv_type_u_int64_t+set}" = set; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 cat >conftest.$ac_ext <<_ACEOF
16863 cat confdefs.h >>conftest.$ac_ext
16864 cat >>conftest.$ac_ext <<_ACEOF
16865 /* end confdefs.h. */
16866 $ac_includes_default
16867 typedef u_int64_t ac__type_new_;
16871 if ((ac__type_new_ *) 0)
16873 if (sizeof (ac__type_new_))
16879 rm -f conftest.$ac_objext
16880 if { (ac_try="$ac_compile"
16881 case "(($ac_try" in
16882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16883 *) ac_try_echo=$ac_try;;
16885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16886 (eval "$ac_compile") 2>conftest.er1
16888 grep -v '^ *+' conftest.er1 >conftest.err
16890 cat conftest.err >&5
16891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892 (exit $ac_status); } &&
16893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16894 { (case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_try") 2>&5
16901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); }; } &&
16903 { ac_try='test -s conftest.$ac_objext'
16904 { (case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_try") 2>&5
16911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16912 (exit $ac_status); }; }; then
16913 ac_cv_type_u_int64_t=yes
16915 echo "$as_me: failed program was:" >&5
16916 sed 's/^/| /' conftest.$ac_ext >&5
16918 ac_cv_type_u_int64_t=no
16921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16923 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16924 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16925 if test $ac_cv_type_u_int64_t = yes; then
16927 cat >>confdefs.h <<_ACEOF
16928 #define HAVE_U_INT64_T 1
16933 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16934 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16935 { (exit 1); exit 1; }; }
16949 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16955 echo $ECHO_N "(cached) $ECHO_C" >&6
16957 cat >conftest.$ac_ext <<_ACEOF
16960 cat confdefs.h >>conftest.$ac_ext
16961 cat >>conftest.$ac_ext <<_ACEOF
16962 /* end confdefs.h. */
16963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16965 #define $ac_func innocuous_$ac_func
16967 /* System header to define __stub macros and hopefully few prototypes,
16968 which can conflict with char $ac_func (); below.
16969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16970 <limits.h> exists even on freestanding compilers. */
16973 # include <limits.h>
16975 # include <assert.h>
16980 /* Override any GCC internal prototype to avoid an error.
16981 Use char because int might match the return type of a GCC
16982 builtin and then its argument prototype would still apply. */
16987 /* The GNU C library defines this for functions which it implements
16988 to always fail with ENOSYS. Some functions are actually named
16989 something starting with __ and the normal name is an alias. */
16990 #if defined __stub_$ac_func || defined __stub___$ac_func
16997 return $ac_func ();
17002 rm -f conftest.$ac_objext conftest$ac_exeext
17003 if { (ac_try="$ac_link"
17004 case "(($ac_try" in
17005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17006 *) ac_try_echo=$ac_try;;
17008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17009 (eval "$ac_link") 2>conftest.er1
17011 grep -v '^ *+' conftest.er1 >conftest.err
17013 cat conftest.err >&5
17014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17015 (exit $ac_status); } &&
17016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17017 { (case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_try") 2>&5
17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17025 (exit $ac_status); }; } &&
17026 { ac_try='test -s conftest$ac_exeext'
17027 { (case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_try") 2>&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); }; }; then
17036 eval "$as_ac_var=yes"
17038 echo "$as_me: failed program was:" >&5
17039 sed 's/^/| /' conftest.$ac_ext >&5
17041 eval "$as_ac_var=no"
17044 rm -f core conftest.err conftest.$ac_objext \
17045 conftest$ac_exeext conftest.$ac_ext
17047 ac_res=`eval echo '${'$as_ac_var'}'`
17048 { echo "$as_me:$LINENO: result: $ac_res" >&5
17049 echo "${ECHO_T}$ac_res" >&6; }
17050 if test `eval echo '${'$as_ac_var'}'` = yes; then
17051 cat >>confdefs.h <<_ACEOF
17052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17062 for ac_func in powf fmodf strtof round
17064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17068 echo $ECHO_N "(cached) $ECHO_C" >&6
17070 cat >conftest.$ac_ext <<_ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17078 #define $ac_func innocuous_$ac_func
17080 /* System header to define __stub macros and hopefully few prototypes,
17081 which can conflict with char $ac_func (); below.
17082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17083 <limits.h> exists even on freestanding compilers. */
17086 # include <limits.h>
17088 # include <assert.h>
17093 /* Override any GCC internal prototype to avoid an error.
17094 Use char because int might match the return type of a GCC
17095 builtin and then its argument prototype would still apply. */
17100 /* The GNU C library defines this for functions which it implements
17101 to always fail with ENOSYS. Some functions are actually named
17102 something starting with __ and the normal name is an alias. */
17103 #if defined __stub_$ac_func || defined __stub___$ac_func
17110 return $ac_func ();
17115 rm -f conftest.$ac_objext conftest$ac_exeext
17116 if { (ac_try="$ac_link"
17117 case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_link") 2>conftest.er1
17124 grep -v '^ *+' conftest.er1 >conftest.err
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } &&
17129 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17130 { (case "(($ac_try" in
17131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17135 (eval "$ac_try") 2>&5
17137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17138 (exit $ac_status); }; } &&
17139 { ac_try='test -s conftest$ac_exeext'
17140 { (case "(($ac_try" in
17141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17142 *) ac_try_echo=$ac_try;;
17144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17145 (eval "$ac_try") 2>&5
17147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); }; }; then
17149 eval "$as_ac_var=yes"
17151 echo "$as_me: failed program was:" >&5
17152 sed 's/^/| /' conftest.$ac_ext >&5
17154 eval "$as_ac_var=no"
17157 rm -f core conftest.err conftest.$ac_objext \
17158 conftest$ac_exeext conftest.$ac_ext
17160 ac_res=`eval echo '${'$as_ac_var'}'`
17161 { echo "$as_me:$LINENO: result: $ac_res" >&5
17162 echo "${ECHO_T}$ac_res" >&6; }
17163 if test `eval echo '${'$as_ac_var'}'` = yes; then
17164 cat >>confdefs.h <<_ACEOF
17165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17176 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17182 echo $ECHO_N "(cached) $ECHO_C" >&6
17184 cat >conftest.$ac_ext <<_ACEOF
17187 cat confdefs.h >>conftest.$ac_ext
17188 cat >>conftest.$ac_ext <<_ACEOF
17189 /* end confdefs.h. */
17190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17192 #define $ac_func innocuous_$ac_func
17194 /* System header to define __stub macros and hopefully few prototypes,
17195 which can conflict with char $ac_func (); below.
17196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17197 <limits.h> exists even on freestanding compilers. */
17200 # include <limits.h>
17202 # include <assert.h>
17207 /* Override any GCC internal prototype to avoid an error.
17208 Use char because int might match the return type of a GCC
17209 builtin and then its argument prototype would still apply. */
17214 /* The GNU C library defines this for functions which it implements
17215 to always fail with ENOSYS. Some functions are actually named
17216 something starting with __ and the normal name is an alias. */
17217 #if defined __stub_$ac_func || defined __stub___$ac_func
17224 return $ac_func ();
17229 rm -f conftest.$ac_objext conftest$ac_exeext
17230 if { (ac_try="$ac_link"
17231 case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_link") 2>conftest.er1
17238 grep -v '^ *+' conftest.er1 >conftest.err
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } &&
17243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17244 { (case "(($ac_try" in
17245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17246 *) ac_try_echo=$ac_try;;
17248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17249 (eval "$ac_try") 2>&5
17251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17252 (exit $ac_status); }; } &&
17253 { ac_try='test -s conftest$ac_exeext'
17254 { (case "(($ac_try" in
17255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17256 *) ac_try_echo=$ac_try;;
17258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17259 (eval "$ac_try") 2>&5
17261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17262 (exit $ac_status); }; }; then
17263 eval "$as_ac_var=yes"
17265 echo "$as_me: failed program was:" >&5
17266 sed 's/^/| /' conftest.$ac_ext >&5
17268 eval "$as_ac_var=no"
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17274 ac_res=`eval echo '${'$as_ac_var'}'`
17275 { echo "$as_me:$LINENO: result: $ac_res" >&5
17276 echo "${ECHO_T}$ac_res" >&6; }
17277 if test `eval echo '${'$as_ac_var'}'` = yes; then
17278 cat >>confdefs.h <<_ACEOF
17279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17288 for ac_func in isatty mkdtemp mkstemp
17290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17296 cat >conftest.$ac_ext <<_ACEOF
17299 cat confdefs.h >>conftest.$ac_ext
17300 cat >>conftest.$ac_ext <<_ACEOF
17301 /* end confdefs.h. */
17302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17304 #define $ac_func innocuous_$ac_func
17306 /* System header to define __stub macros and hopefully few prototypes,
17307 which can conflict with char $ac_func (); below.
17308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17309 <limits.h> exists even on freestanding compilers. */
17312 # include <limits.h>
17314 # include <assert.h>
17319 /* Override any GCC internal prototype to avoid an error.
17320 Use char because int might match the return type of a GCC
17321 builtin and then its argument prototype would still apply. */
17326 /* The GNU C library defines this for functions which it implements
17327 to always fail with ENOSYS. Some functions are actually named
17328 something starting with __ and the normal name is an alias. */
17329 #if defined __stub_$ac_func || defined __stub___$ac_func
17336 return $ac_func ();
17341 rm -f conftest.$ac_objext conftest$ac_exeext
17342 if { (ac_try="$ac_link"
17343 case "(($ac_try" in
17344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17345 *) ac_try_echo=$ac_try;;
17347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17348 (eval "$ac_link") 2>conftest.er1
17350 grep -v '^ *+' conftest.er1 >conftest.err
17352 cat conftest.err >&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); } &&
17355 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17356 { (case "(($ac_try" in
17357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17358 *) ac_try_echo=$ac_try;;
17360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17361 (eval "$ac_try") 2>&5
17363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17364 (exit $ac_status); }; } &&
17365 { ac_try='test -s conftest$ac_exeext'
17366 { (case "(($ac_try" in
17367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17368 *) ac_try_echo=$ac_try;;
17370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17371 (eval "$ac_try") 2>&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 eval "$as_ac_var=yes"
17377 echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17380 eval "$as_ac_var=no"
17383 rm -f core conftest.err conftest.$ac_objext \
17384 conftest$ac_exeext conftest.$ac_ext
17386 ac_res=`eval echo '${'$as_ac_var'}'`
17387 { echo "$as_me:$LINENO: result: $ac_res" >&5
17388 echo "${ECHO_T}$ac_res" >&6; }
17389 if test `eval echo '${'$as_ac_var'}'` = yes; then
17390 cat >>confdefs.h <<_ACEOF
17391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17404 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17406 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17407 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17408 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17409 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17410 echo $ECHO_N "(cached) $ECHO_C" >&6
17412 cat >conftest.$ac_ext <<_ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17420 #define $ac_func innocuous_$ac_func
17422 /* System header to define __stub macros and hopefully few prototypes,
17423 which can conflict with char $ac_func (); below.
17424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17425 <limits.h> exists even on freestanding compilers. */
17428 # include <limits.h>
17430 # include <assert.h>
17435 /* Override any GCC internal prototype to avoid an error.
17436 Use char because int might match the return type of a GCC
17437 builtin and then its argument prototype would still apply. */
17442 /* The GNU C library defines this for functions which it implements
17443 to always fail with ENOSYS. Some functions are actually named
17444 something starting with __ and the normal name is an alias. */
17445 #if defined __stub_$ac_func || defined __stub___$ac_func
17452 return $ac_func ();
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (ac_try="$ac_link"
17459 case "(($ac_try" in
17460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17461 *) ac_try_echo=$ac_try;;
17463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17464 (eval "$ac_link") 2>conftest.er1
17466 grep -v '^ *+' conftest.er1 >conftest.err
17468 cat conftest.err >&5
17469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17470 (exit $ac_status); } &&
17471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17472 { (case "(($ac_try" in
17473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17474 *) ac_try_echo=$ac_try;;
17476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17477 (eval "$ac_try") 2>&5
17479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17480 (exit $ac_status); }; } &&
17481 { ac_try='test -s conftest$ac_exeext'
17482 { (case "(($ac_try" in
17483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_try") 2>&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); }; }; then
17491 eval "$as_ac_var=yes"
17493 echo "$as_me: failed program was:" >&5
17494 sed 's/^/| /' conftest.$ac_ext >&5
17496 eval "$as_ac_var=no"
17499 rm -f core conftest.err conftest.$ac_objext \
17500 conftest$ac_exeext conftest.$ac_ext
17502 ac_res=`eval echo '${'$as_ac_var'}'`
17503 { echo "$as_me:$LINENO: result: $ac_res" >&5
17504 echo "${ECHO_T}$ac_res" >&6; }
17505 if test `eval echo '${'$as_ac_var'}'` = yes; then
17506 cat >>confdefs.h <<_ACEOF
17507 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17517 for ac_func in strerror strerror_r setenv arc4random
17519 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17520 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17521 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17522 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17523 echo $ECHO_N "(cached) $ECHO_C" >&6
17525 cat >conftest.$ac_ext <<_ACEOF
17528 cat confdefs.h >>conftest.$ac_ext
17529 cat >>conftest.$ac_ext <<_ACEOF
17530 /* end confdefs.h. */
17531 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17532 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17533 #define $ac_func innocuous_$ac_func
17535 /* System header to define __stub macros and hopefully few prototypes,
17536 which can conflict with char $ac_func (); below.
17537 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17538 <limits.h> exists even on freestanding compilers. */
17541 # include <limits.h>
17543 # include <assert.h>
17548 /* Override any GCC internal prototype to avoid an error.
17549 Use char because int might match the return type of a GCC
17550 builtin and then its argument prototype would still apply. */
17555 /* The GNU C library defines this for functions which it implements
17556 to always fail with ENOSYS. Some functions are actually named
17557 something starting with __ and the normal name is an alias. */
17558 #if defined __stub_$ac_func || defined __stub___$ac_func
17565 return $ac_func ();
17570 rm -f conftest.$ac_objext conftest$ac_exeext
17571 if { (ac_try="$ac_link"
17572 case "(($ac_try" in
17573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_link") 2>conftest.er1
17579 grep -v '^ *+' conftest.er1 >conftest.err
17581 cat conftest.err >&5
17582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17583 (exit $ac_status); } &&
17584 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17585 { (case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_try") 2>&5
17592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17593 (exit $ac_status); }; } &&
17594 { ac_try='test -s conftest$ac_exeext'
17595 { (case "(($ac_try" in
17596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17597 *) ac_try_echo=$ac_try;;
17599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17600 (eval "$ac_try") 2>&5
17602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17603 (exit $ac_status); }; }; then
17604 eval "$as_ac_var=yes"
17606 echo "$as_me: failed program was:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17609 eval "$as_ac_var=no"
17612 rm -f core conftest.err conftest.$ac_objext \
17613 conftest$ac_exeext conftest.$ac_ext
17615 ac_res=`eval echo '${'$as_ac_var'}'`
17616 { echo "$as_me:$LINENO: result: $ac_res" >&5
17617 echo "${ECHO_T}$ac_res" >&6; }
17618 if test `eval echo '${'$as_ac_var'}'` = yes; then
17619 cat >>confdefs.h <<_ACEOF
17620 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17630 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17632 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17633 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17634 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17635 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17636 echo $ECHO_N "(cached) $ECHO_C" >&6
17638 cat >conftest.$ac_ext <<_ACEOF
17641 cat confdefs.h >>conftest.$ac_ext
17642 cat >>conftest.$ac_ext <<_ACEOF
17643 /* end confdefs.h. */
17644 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17646 #define $ac_func innocuous_$ac_func
17648 /* System header to define __stub macros and hopefully few prototypes,
17649 which can conflict with char $ac_func (); below.
17650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17651 <limits.h> exists even on freestanding compilers. */
17654 # include <limits.h>
17656 # include <assert.h>
17661 /* Override any GCC internal prototype to avoid an error.
17662 Use char because int might match the return type of a GCC
17663 builtin and then its argument prototype would still apply. */
17668 /* The GNU C library defines this for functions which it implements
17669 to always fail with ENOSYS. Some functions are actually named
17670 something starting with __ and the normal name is an alias. */
17671 #if defined __stub_$ac_func || defined __stub___$ac_func
17678 return $ac_func ();
17683 rm -f conftest.$ac_objext conftest$ac_exeext
17684 if { (ac_try="$ac_link"
17685 case "(($ac_try" in
17686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17687 *) ac_try_echo=$ac_try;;
17689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17690 (eval "$ac_link") 2>conftest.er1
17692 grep -v '^ *+' conftest.er1 >conftest.err
17694 cat conftest.err >&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } &&
17697 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17698 { (case "(($ac_try" in
17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700 *) ac_try_echo=$ac_try;;
17702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_try") 2>&5
17705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17706 (exit $ac_status); }; } &&
17707 { ac_try='test -s conftest$ac_exeext'
17708 { (case "(($ac_try" in
17709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17710 *) ac_try_echo=$ac_try;;
17712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17713 (eval "$ac_try") 2>&5
17715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17716 (exit $ac_status); }; }; then
17717 eval "$as_ac_var=yes"
17719 echo "$as_me: failed program was:" >&5
17720 sed 's/^/| /' conftest.$ac_ext >&5
17722 eval "$as_ac_var=no"
17725 rm -f core conftest.err conftest.$ac_objext \
17726 conftest$ac_exeext conftest.$ac_ext
17728 ac_res=`eval echo '${'$as_ac_var'}'`
17729 { echo "$as_me:$LINENO: result: $ac_res" >&5
17730 echo "${ECHO_T}$ac_res" >&6; }
17731 if test `eval echo '${'$as_ac_var'}'` = yes; then
17732 cat >>confdefs.h <<_ACEOF
17733 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17744 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17746 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17747 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17748 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17749 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17752 cat >conftest.$ac_ext <<_ACEOF
17755 cat confdefs.h >>conftest.$ac_ext
17756 cat >>conftest.$ac_ext <<_ACEOF
17757 /* end confdefs.h. */
17758 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17760 #define $ac_func innocuous_$ac_func
17762 /* System header to define __stub macros and hopefully few prototypes,
17763 which can conflict with char $ac_func (); below.
17764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17765 <limits.h> exists even on freestanding compilers. */
17768 # include <limits.h>
17770 # include <assert.h>
17775 /* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17782 /* The GNU C library defines this for functions which it implements
17783 to always fail with ENOSYS. Some functions are actually named
17784 something starting with __ and the normal name is an alias. */
17785 #if defined __stub_$ac_func || defined __stub___$ac_func
17792 return $ac_func ();
17797 rm -f conftest.$ac_objext conftest$ac_exeext
17798 if { (ac_try="$ac_link"
17799 case "(($ac_try" in
17800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801 *) ac_try_echo=$ac_try;;
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804 (eval "$ac_link") 2>conftest.er1
17806 grep -v '^ *+' conftest.er1 >conftest.err
17808 cat conftest.err >&5
17809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17810 (exit $ac_status); } &&
17811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17812 { (case "(($ac_try" in
17813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17814 *) ac_try_echo=$ac_try;;
17816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17817 (eval "$ac_try") 2>&5
17819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17820 (exit $ac_status); }; } &&
17821 { ac_try='test -s conftest$ac_exeext'
17822 { (case "(($ac_try" in
17823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17824 *) ac_try_echo=$ac_try;;
17826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17827 (eval "$ac_try") 2>&5
17829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17830 (exit $ac_status); }; }; then
17831 eval "$as_ac_var=yes"
17833 echo "$as_me: failed program was:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 eval "$as_ac_var=no"
17839 rm -f core conftest.err conftest.$ac_objext \
17840 conftest$ac_exeext conftest.$ac_ext
17842 ac_res=`eval echo '${'$as_ac_var'}'`
17843 { echo "$as_me:$LINENO: result: $ac_res" >&5
17844 echo "${ECHO_T}$ac_res" >&6; }
17845 if test `eval echo '${'$as_ac_var'}'` = yes; then
17846 cat >>confdefs.h <<_ACEOF
17847 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17853 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17854 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17855 if test "${llvm_cv_c_printf_a+set}" = set; then
17856 echo $ECHO_N "(cached) $ECHO_C" >&6
17859 ac_cpp='$CPP $CPPFLAGS'
17860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17864 if test "$cross_compiling" = yes; then
17865 llvmac_cv_c_printf_a=no
17867 cat >conftest.$ac_ext <<_ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17876 #include <stdlib.h>
17882 volatile double A, B;
17886 sprintf(Buffer, "%a", A);
17890 if (A != 0x1.999999999999ap-4)
17897 rm -f conftest$ac_exeext
17898 if { (ac_try="$ac_link"
17899 case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_link") 2>&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17908 { (case "(($ac_try" in
17909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17910 *) ac_try_echo=$ac_try;;
17912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17913 (eval "$ac_try") 2>&5
17915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17916 (exit $ac_status); }; }; then
17917 llvm_cv_c_printf_a=yes
17919 echo "$as_me: program exited with status $ac_status" >&5
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17923 ( exit $ac_status )
17924 llvmac_cv_c_printf_a=no
17926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17931 ac_cpp='$CPP $CPPFLAGS'
17932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17937 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17938 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17939 if test "$llvm_cv_c_printf_a" = "yes"; then
17941 cat >>confdefs.h <<\_ACEOF
17942 #define HAVE_PRINTF_A 1
17948 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17949 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17950 if test "${ac_cv_func_rand48+set}" = set; then
17951 echo $ECHO_N "(cached) $ECHO_C" >&6
17954 ac_cpp='$CXXCPP $CPPFLAGS'
17955 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17956 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17957 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17959 cat >conftest.$ac_ext <<_ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965 #include <stdlib.h>
17969 srand48(0);lrand48();drand48();
17974 rm -f conftest.$ac_objext
17975 if { (ac_try="$ac_compile"
17976 case "(($ac_try" in
17977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17978 *) ac_try_echo=$ac_try;;
17980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17981 (eval "$ac_compile") 2>conftest.er1
17983 grep -v '^ *+' conftest.er1 >conftest.err
17985 cat conftest.err >&5
17986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17987 (exit $ac_status); } &&
17988 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17989 { (case "(($ac_try" in
17990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17991 *) ac_try_echo=$ac_try;;
17993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17994 (eval "$ac_try") 2>&5
17996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17997 (exit $ac_status); }; } &&
17998 { ac_try='test -s conftest.$ac_objext'
17999 { (case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_try") 2>&5
18006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18007 (exit $ac_status); }; }; then
18008 ac_cv_func_rand48=yes
18010 echo "$as_me: failed program was:" >&5
18011 sed 's/^/| /' conftest.$ac_ext >&5
18013 ac_cv_func_rand48=no
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18018 ac_cpp='$CPP $CPPFLAGS'
18019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18024 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18025 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18027 if test "$ac_cv_func_rand48" = "yes" ; then
18029 cat >>confdefs.h <<\_ACEOF
18030 #define HAVE_RAND48 1
18036 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18037 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18038 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18039 echo $ECHO_N "(cached) $ECHO_C" >&6
18041 cat >conftest.$ac_ext <<_ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 $ac_includes_default
18052 char *p = (char *) strerror_s;
18060 rm -f conftest.$ac_objext
18061 if { (ac_try="$ac_compile"
18062 case "(($ac_try" in
18063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18064 *) ac_try_echo=$ac_try;;
18066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18067 (eval "$ac_compile") 2>conftest.er1
18069 grep -v '^ *+' conftest.er1 >conftest.err
18071 cat conftest.err >&5
18072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18073 (exit $ac_status); } &&
18074 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18075 { (case "(($ac_try" in
18076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18077 *) ac_try_echo=$ac_try;;
18079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18080 (eval "$ac_try") 2>&5
18082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18083 (exit $ac_status); }; } &&
18084 { ac_try='test -s conftest.$ac_objext'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 ac_cv_have_decl_strerror_s=yes
18096 echo "$as_me: failed program was:" >&5
18097 sed 's/^/| /' conftest.$ac_ext >&5
18099 ac_cv_have_decl_strerror_s=no
18102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18104 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18105 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18106 if test $ac_cv_have_decl_strerror_s = yes; then
18108 cat >>confdefs.h <<_ACEOF
18109 #define HAVE_DECL_STRERROR_S 1
18114 cat >>confdefs.h <<_ACEOF
18115 #define HAVE_DECL_STRERROR_S 0
18123 if test "$llvm_cv_os_type" = "MingW" ; then
18124 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18125 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18126 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18127 echo $ECHO_N "(cached) $ECHO_C" >&6
18129 ac_check_lib_save_LIBS=$LIBS
18131 cat >conftest.$ac_ext <<_ACEOF
18134 cat confdefs.h >>conftest.$ac_ext
18135 cat >>conftest.$ac_ext <<_ACEOF
18136 /* end confdefs.h. */
18138 /* Override any GCC internal prototype to avoid an error.
18139 Use char because int might match the return type of a GCC
18140 builtin and then its argument prototype would still apply. */
18153 rm -f conftest.$ac_objext conftest$ac_exeext
18154 if { (ac_try="$ac_link"
18155 case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18160 (eval "$ac_link") 2>conftest.er1
18162 grep -v '^ *+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18166 (exit $ac_status); } &&
18167 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18168 { (case "(($ac_try" in
18169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18170 *) ac_try_echo=$ac_try;;
18172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18173 (eval "$ac_try") 2>&5
18175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18176 (exit $ac_status); }; } &&
18177 { ac_try='test -s conftest$ac_exeext'
18178 { (case "(($ac_try" in
18179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18180 *) ac_try_echo=$ac_try;;
18182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18183 (eval "$ac_try") 2>&5
18185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18186 (exit $ac_status); }; }; then
18187 ac_cv_lib_gcc__alloca=yes
18189 echo "$as_me: failed program was:" >&5
18190 sed 's/^/| /' conftest.$ac_ext >&5
18192 ac_cv_lib_gcc__alloca=no
18195 rm -f core conftest.err conftest.$ac_objext \
18196 conftest$ac_exeext conftest.$ac_ext
18197 LIBS=$ac_check_lib_save_LIBS
18199 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18200 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18201 if test $ac_cv_lib_gcc__alloca = yes; then
18203 cat >>confdefs.h <<\_ACEOF
18204 #define HAVE__ALLOCA 1
18209 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18210 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18211 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18212 echo $ECHO_N "(cached) $ECHO_C" >&6
18214 ac_check_lib_save_LIBS=$LIBS
18216 cat >conftest.$ac_ext <<_ACEOF
18219 cat confdefs.h >>conftest.$ac_ext
18220 cat >>conftest.$ac_ext <<_ACEOF
18221 /* end confdefs.h. */
18223 /* Override any GCC internal prototype to avoid an error.
18224 Use char because int might match the return type of a GCC
18225 builtin and then its argument prototype would still apply. */
18233 return __alloca ();
18238 rm -f conftest.$ac_objext conftest$ac_exeext
18239 if { (ac_try="$ac_link"
18240 case "(($ac_try" in
18241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18242 *) ac_try_echo=$ac_try;;
18244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18245 (eval "$ac_link") 2>conftest.er1
18247 grep -v '^ *+' conftest.er1 >conftest.err
18249 cat conftest.err >&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); } &&
18252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18253 { (case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_try") 2>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; } &&
18262 { ac_try='test -s conftest$ac_exeext'
18263 { (case "(($ac_try" in
18264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18265 *) ac_try_echo=$ac_try;;
18267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18268 (eval "$ac_try") 2>&5
18270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); }; }; then
18272 ac_cv_lib_gcc___alloca=yes
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 ac_cv_lib_gcc___alloca=no
18280 rm -f core conftest.err conftest.$ac_objext \
18281 conftest$ac_exeext conftest.$ac_ext
18282 LIBS=$ac_check_lib_save_LIBS
18284 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18285 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18286 if test $ac_cv_lib_gcc___alloca = yes; then
18288 cat >>confdefs.h <<\_ACEOF
18289 #define HAVE___ALLOCA 1
18294 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18295 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18296 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18297 echo $ECHO_N "(cached) $ECHO_C" >&6
18299 ac_check_lib_save_LIBS=$LIBS
18301 cat >conftest.$ac_ext <<_ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18308 /* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18318 return __chkstk ();
18323 rm -f conftest.$ac_objext conftest$ac_exeext
18324 if { (ac_try="$ac_link"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_link") 2>conftest.er1
18332 grep -v '^ *+' conftest.er1 >conftest.err
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } &&
18337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18338 { (case "(($ac_try" in
18339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18340 *) ac_try_echo=$ac_try;;
18342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18343 (eval "$ac_try") 2>&5
18345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18346 (exit $ac_status); }; } &&
18347 { ac_try='test -s conftest$ac_exeext'
18348 { (case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_try") 2>&5
18355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18356 (exit $ac_status); }; }; then
18357 ac_cv_lib_gcc___chkstk=yes
18359 echo "$as_me: failed program was:" >&5
18360 sed 's/^/| /' conftest.$ac_ext >&5
18362 ac_cv_lib_gcc___chkstk=no
18365 rm -f core conftest.err conftest.$ac_objext \
18366 conftest$ac_exeext conftest.$ac_ext
18367 LIBS=$ac_check_lib_save_LIBS
18369 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18370 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18371 if test $ac_cv_lib_gcc___chkstk = yes; then
18373 cat >>confdefs.h <<\_ACEOF
18374 #define HAVE___CHKSTK 1
18379 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18380 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18381 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18384 ac_check_lib_save_LIBS=$LIBS
18386 cat >conftest.$ac_ext <<_ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18393 /* Override any GCC internal prototype to avoid an error.
18394 Use char because int might match the return type of a GCC
18395 builtin and then its argument prototype would still apply. */
18403 return ___chkstk ();
18408 rm -f conftest.$ac_objext conftest$ac_exeext
18409 if { (ac_try="$ac_link"
18410 case "(($ac_try" in
18411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_link") 2>conftest.er1
18417 grep -v '^ *+' conftest.er1 >conftest.err
18419 cat conftest.err >&5
18420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18421 (exit $ac_status); } &&
18422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18423 { (case "(($ac_try" in
18424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18425 *) ac_try_echo=$ac_try;;
18427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18428 (eval "$ac_try") 2>&5
18430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18431 (exit $ac_status); }; } &&
18432 { ac_try='test -s conftest$ac_exeext'
18433 { (case "(($ac_try" in
18434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18435 *) ac_try_echo=$ac_try;;
18437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18438 (eval "$ac_try") 2>&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); }; }; then
18442 ac_cv_lib_gcc____chkstk=yes
18444 echo "$as_me: failed program was:" >&5
18445 sed 's/^/| /' conftest.$ac_ext >&5
18447 ac_cv_lib_gcc____chkstk=no
18450 rm -f core conftest.err conftest.$ac_objext \
18451 conftest$ac_exeext conftest.$ac_ext
18452 LIBS=$ac_check_lib_save_LIBS
18454 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18455 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18456 if test $ac_cv_lib_gcc____chkstk = yes; then
18458 cat >>confdefs.h <<\_ACEOF
18459 #define HAVE____CHKSTK 1
18465 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18466 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18467 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18468 echo $ECHO_N "(cached) $ECHO_C" >&6
18470 ac_check_lib_save_LIBS=$LIBS
18472 cat >conftest.$ac_ext <<_ACEOF
18475 cat confdefs.h >>conftest.$ac_ext
18476 cat >>conftest.$ac_ext <<_ACEOF
18477 /* end confdefs.h. */
18479 /* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
18489 return __ashldi3 ();
18494 rm -f conftest.$ac_objext conftest$ac_exeext
18495 if { (ac_try="$ac_link"
18496 case "(($ac_try" in
18497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18498 *) ac_try_echo=$ac_try;;
18500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18501 (eval "$ac_link") 2>conftest.er1
18503 grep -v '^ *+' conftest.er1 >conftest.err
18505 cat conftest.err >&5
18506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } &&
18508 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18509 { (case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_try") 2>&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); }; } &&
18518 { ac_try='test -s conftest$ac_exeext'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; }; then
18528 ac_cv_lib_gcc___ashldi3=yes
18530 echo "$as_me: failed program was:" >&5
18531 sed 's/^/| /' conftest.$ac_ext >&5
18533 ac_cv_lib_gcc___ashldi3=no
18536 rm -f core conftest.err conftest.$ac_objext \
18537 conftest$ac_exeext conftest.$ac_ext
18538 LIBS=$ac_check_lib_save_LIBS
18540 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18541 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18542 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18544 cat >>confdefs.h <<\_ACEOF
18545 #define HAVE___ASHLDI3 1
18550 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18551 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18552 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18555 ac_check_lib_save_LIBS=$LIBS
18557 cat >conftest.$ac_ext <<_ACEOF
18560 cat confdefs.h >>conftest.$ac_ext
18561 cat >>conftest.$ac_ext <<_ACEOF
18562 /* end confdefs.h. */
18564 /* Override any GCC internal prototype to avoid an error.
18565 Use char because int might match the return type of a GCC
18566 builtin and then its argument prototype would still apply. */
18574 return __ashrdi3 ();
18579 rm -f conftest.$ac_objext conftest$ac_exeext
18580 if { (ac_try="$ac_link"
18581 case "(($ac_try" in
18582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18583 *) ac_try_echo=$ac_try;;
18585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18586 (eval "$ac_link") 2>conftest.er1
18588 grep -v '^ *+' conftest.er1 >conftest.err
18590 cat conftest.err >&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); } &&
18593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18594 { (case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_try") 2>&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; } &&
18603 { ac_try='test -s conftest$ac_exeext'
18604 { (case "(($ac_try" in
18605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18606 *) ac_try_echo=$ac_try;;
18608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18609 (eval "$ac_try") 2>&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); }; }; then
18613 ac_cv_lib_gcc___ashrdi3=yes
18615 echo "$as_me: failed program was:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18618 ac_cv_lib_gcc___ashrdi3=no
18621 rm -f core conftest.err conftest.$ac_objext \
18622 conftest$ac_exeext conftest.$ac_ext
18623 LIBS=$ac_check_lib_save_LIBS
18625 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18626 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18627 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18629 cat >>confdefs.h <<\_ACEOF
18630 #define HAVE___ASHRDI3 1
18635 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18636 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18637 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18638 echo $ECHO_N "(cached) $ECHO_C" >&6
18640 ac_check_lib_save_LIBS=$LIBS
18642 cat >conftest.$ac_ext <<_ACEOF
18645 cat confdefs.h >>conftest.$ac_ext
18646 cat >>conftest.$ac_ext <<_ACEOF
18647 /* end confdefs.h. */
18649 /* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18659 return __divdi3 ();
18664 rm -f conftest.$ac_objext conftest$ac_exeext
18665 if { (ac_try="$ac_link"
18666 case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18671 (eval "$ac_link") 2>conftest.er1
18673 grep -v '^ *+' conftest.er1 >conftest.err
18675 cat conftest.err >&5
18676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18677 (exit $ac_status); } &&
18678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18679 { (case "(($ac_try" in
18680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18681 *) ac_try_echo=$ac_try;;
18683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18684 (eval "$ac_try") 2>&5
18686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18687 (exit $ac_status); }; } &&
18688 { ac_try='test -s conftest$ac_exeext'
18689 { (case "(($ac_try" in
18690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18691 *) ac_try_echo=$ac_try;;
18693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18694 (eval "$ac_try") 2>&5
18696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18697 (exit $ac_status); }; }; then
18698 ac_cv_lib_gcc___divdi3=yes
18700 echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18703 ac_cv_lib_gcc___divdi3=no
18706 rm -f core conftest.err conftest.$ac_objext \
18707 conftest$ac_exeext conftest.$ac_ext
18708 LIBS=$ac_check_lib_save_LIBS
18710 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18711 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18712 if test $ac_cv_lib_gcc___divdi3 = yes; then
18714 cat >>confdefs.h <<\_ACEOF
18715 #define HAVE___DIVDI3 1
18720 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18721 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18722 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18723 echo $ECHO_N "(cached) $ECHO_C" >&6
18725 ac_check_lib_save_LIBS=$LIBS
18727 cat >conftest.$ac_ext <<_ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
18732 /* end confdefs.h. */
18734 /* Override any GCC internal prototype to avoid an error.
18735 Use char because int might match the return type of a GCC
18736 builtin and then its argument prototype would still apply. */
18744 return __fixdfdi ();
18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (ac_try="$ac_link"
18751 case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_link") 2>conftest.er1
18758 grep -v '^ *+' conftest.er1 >conftest.err
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18762 (exit $ac_status); } &&
18763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18764 { (case "(($ac_try" in
18765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18766 *) ac_try_echo=$ac_try;;
18768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18769 (eval "$ac_try") 2>&5
18771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18772 (exit $ac_status); }; } &&
18773 { ac_try='test -s conftest$ac_exeext'
18774 { (case "(($ac_try" in
18775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18776 *) ac_try_echo=$ac_try;;
18778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18779 (eval "$ac_try") 2>&5
18781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18782 (exit $ac_status); }; }; then
18783 ac_cv_lib_gcc___fixdfdi=yes
18785 echo "$as_me: failed program was:" >&5
18786 sed 's/^/| /' conftest.$ac_ext >&5
18788 ac_cv_lib_gcc___fixdfdi=no
18791 rm -f core conftest.err conftest.$ac_objext \
18792 conftest$ac_exeext conftest.$ac_ext
18793 LIBS=$ac_check_lib_save_LIBS
18795 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18796 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18797 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18799 cat >>confdefs.h <<\_ACEOF
18800 #define HAVE___FIXDFDI 1
18805 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18806 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18807 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18808 echo $ECHO_N "(cached) $ECHO_C" >&6
18810 ac_check_lib_save_LIBS=$LIBS
18812 cat >conftest.$ac_ext <<_ACEOF
18815 cat confdefs.h >>conftest.$ac_ext
18816 cat >>conftest.$ac_ext <<_ACEOF
18817 /* end confdefs.h. */
18819 /* Override any GCC internal prototype to avoid an error.
18820 Use char because int might match the return type of a GCC
18821 builtin and then its argument prototype would still apply. */
18829 return __fixsfdi ();
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18843 grep -v '^ *+' conftest.er1 >conftest.err
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); } &&
18848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18849 { (case "(($ac_try" in
18850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18851 *) ac_try_echo=$ac_try;;
18853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18854 (eval "$ac_try") 2>&5
18856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18857 (exit $ac_status); }; } &&
18858 { ac_try='test -s conftest$ac_exeext'
18859 { (case "(($ac_try" in
18860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18861 *) ac_try_echo=$ac_try;;
18863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18864 (eval "$ac_try") 2>&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); }; }; then
18868 ac_cv_lib_gcc___fixsfdi=yes
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 ac_cv_lib_gcc___fixsfdi=no
18876 rm -f core conftest.err conftest.$ac_objext \
18877 conftest$ac_exeext conftest.$ac_ext
18878 LIBS=$ac_check_lib_save_LIBS
18880 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18881 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18882 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18884 cat >>confdefs.h <<\_ACEOF
18885 #define HAVE___FIXSFDI 1
18890 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18891 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18892 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18893 echo $ECHO_N "(cached) $ECHO_C" >&6
18895 ac_check_lib_save_LIBS=$LIBS
18897 cat >conftest.$ac_ext <<_ACEOF
18900 cat confdefs.h >>conftest.$ac_ext
18901 cat >>conftest.$ac_ext <<_ACEOF
18902 /* end confdefs.h. */
18904 /* Override any GCC internal prototype to avoid an error.
18905 Use char because int might match the return type of a GCC
18906 builtin and then its argument prototype would still apply. */
18910 char __floatdidf ();
18914 return __floatdidf ();
18919 rm -f conftest.$ac_objext conftest$ac_exeext
18920 if { (ac_try="$ac_link"
18921 case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_link") 2>conftest.er1
18928 grep -v '^ *+' conftest.er1 >conftest.err
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } &&
18933 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18934 { (case "(($ac_try" in
18935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18936 *) ac_try_echo=$ac_try;;
18938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18939 (eval "$ac_try") 2>&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); }; } &&
18943 { ac_try='test -s conftest$ac_exeext'
18944 { (case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_try") 2>&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; }; then
18953 ac_cv_lib_gcc___floatdidf=yes
18955 echo "$as_me: failed program was:" >&5
18956 sed 's/^/| /' conftest.$ac_ext >&5
18958 ac_cv_lib_gcc___floatdidf=no
18961 rm -f core conftest.err conftest.$ac_objext \
18962 conftest$ac_exeext conftest.$ac_ext
18963 LIBS=$ac_check_lib_save_LIBS
18965 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18966 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18967 if test $ac_cv_lib_gcc___floatdidf = yes; then
18969 cat >>confdefs.h <<\_ACEOF
18970 #define HAVE___FLOATDIDF 1
18975 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18976 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18977 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18980 ac_check_lib_save_LIBS=$LIBS
18982 cat >conftest.$ac_ext <<_ACEOF
18985 cat confdefs.h >>conftest.$ac_ext
18986 cat >>conftest.$ac_ext <<_ACEOF
18987 /* end confdefs.h. */
18989 /* Override any GCC internal prototype to avoid an error.
18990 Use char because int might match the return type of a GCC
18991 builtin and then its argument prototype would still apply. */
18999 return __lshrdi3 ();
19004 rm -f conftest.$ac_objext conftest$ac_exeext
19005 if { (ac_try="$ac_link"
19006 case "(($ac_try" in
19007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19008 *) ac_try_echo=$ac_try;;
19010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19011 (eval "$ac_link") 2>conftest.er1
19013 grep -v '^ *+' conftest.er1 >conftest.err
19015 cat conftest.err >&5
19016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19017 (exit $ac_status); } &&
19018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19019 { (case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_try") 2>&5
19026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19027 (exit $ac_status); }; } &&
19028 { ac_try='test -s conftest$ac_exeext'
19029 { (case "(($ac_try" in
19030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19031 *) ac_try_echo=$ac_try;;
19033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19034 (eval "$ac_try") 2>&5
19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19037 (exit $ac_status); }; }; then
19038 ac_cv_lib_gcc___lshrdi3=yes
19040 echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19043 ac_cv_lib_gcc___lshrdi3=no
19046 rm -f core conftest.err conftest.$ac_objext \
19047 conftest$ac_exeext conftest.$ac_ext
19048 LIBS=$ac_check_lib_save_LIBS
19050 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19051 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19052 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19054 cat >>confdefs.h <<\_ACEOF
19055 #define HAVE___LSHRDI3 1
19060 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19061 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19062 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19063 echo $ECHO_N "(cached) $ECHO_C" >&6
19065 ac_check_lib_save_LIBS=$LIBS
19067 cat >conftest.$ac_ext <<_ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19074 /* Override any GCC internal prototype to avoid an error.
19075 Use char because int might match the return type of a GCC
19076 builtin and then its argument prototype would still apply. */
19084 return __moddi3 ();
19089 rm -f conftest.$ac_objext conftest$ac_exeext
19090 if { (ac_try="$ac_link"
19091 case "(($ac_try" in
19092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19093 *) ac_try_echo=$ac_try;;
19095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19096 (eval "$ac_link") 2>conftest.er1
19098 grep -v '^ *+' conftest.er1 >conftest.err
19100 cat conftest.err >&5
19101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19102 (exit $ac_status); } &&
19103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19104 { (case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_try") 2>&5
19111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19112 (exit $ac_status); }; } &&
19113 { ac_try='test -s conftest$ac_exeext'
19114 { (case "(($ac_try" in
19115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19116 *) ac_try_echo=$ac_try;;
19118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19119 (eval "$ac_try") 2>&5
19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19122 (exit $ac_status); }; }; then
19123 ac_cv_lib_gcc___moddi3=yes
19125 echo "$as_me: failed program was:" >&5
19126 sed 's/^/| /' conftest.$ac_ext >&5
19128 ac_cv_lib_gcc___moddi3=no
19131 rm -f core conftest.err conftest.$ac_objext \
19132 conftest$ac_exeext conftest.$ac_ext
19133 LIBS=$ac_check_lib_save_LIBS
19135 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19136 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19137 if test $ac_cv_lib_gcc___moddi3 = yes; then
19139 cat >>confdefs.h <<\_ACEOF
19140 #define HAVE___MODDI3 1
19145 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19146 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19147 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19150 ac_check_lib_save_LIBS=$LIBS
19152 cat >conftest.$ac_ext <<_ACEOF
19155 cat confdefs.h >>conftest.$ac_ext
19156 cat >>conftest.$ac_ext <<_ACEOF
19157 /* end confdefs.h. */
19159 /* Override any GCC internal prototype to avoid an error.
19160 Use char because int might match the return type of a GCC
19161 builtin and then its argument prototype would still apply. */
19169 return __udivdi3 ();
19174 rm -f conftest.$ac_objext conftest$ac_exeext
19175 if { (ac_try="$ac_link"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_link") 2>conftest.er1
19183 grep -v '^ *+' conftest.er1 >conftest.err
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); } &&
19188 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19191 *) ac_try_echo=$ac_try;;
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; } &&
19198 { ac_try='test -s conftest$ac_exeext'
19199 { (case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_try") 2>&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); }; }; then
19208 ac_cv_lib_gcc___udivdi3=yes
19210 echo "$as_me: failed program was:" >&5
19211 sed 's/^/| /' conftest.$ac_ext >&5
19213 ac_cv_lib_gcc___udivdi3=no
19216 rm -f core conftest.err conftest.$ac_objext \
19217 conftest$ac_exeext conftest.$ac_ext
19218 LIBS=$ac_check_lib_save_LIBS
19220 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19221 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19222 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19224 cat >>confdefs.h <<\_ACEOF
19225 #define HAVE___UDIVDI3 1
19230 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19231 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19232 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19235 ac_check_lib_save_LIBS=$LIBS
19237 cat >conftest.$ac_ext <<_ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19244 /* Override any GCC internal prototype to avoid an error.
19245 Use char because int might match the return type of a GCC
19246 builtin and then its argument prototype would still apply. */
19254 return __umoddi3 ();
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (ac_try="$ac_link"
19261 case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_link") 2>conftest.er1
19268 grep -v '^ *+' conftest.er1 >conftest.err
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } &&
19273 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19274 { (case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_try") 2>&5
19281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19282 (exit $ac_status); }; } &&
19283 { ac_try='test -s conftest$ac_exeext'
19284 { (case "(($ac_try" in
19285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19286 *) ac_try_echo=$ac_try;;
19288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19289 (eval "$ac_try") 2>&5
19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19292 (exit $ac_status); }; }; then
19293 ac_cv_lib_gcc___umoddi3=yes
19295 echo "$as_me: failed program was:" >&5
19296 sed 's/^/| /' conftest.$ac_ext >&5
19298 ac_cv_lib_gcc___umoddi3=no
19301 rm -f core conftest.err conftest.$ac_objext \
19302 conftest$ac_exeext conftest.$ac_ext
19303 LIBS=$ac_check_lib_save_LIBS
19305 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19306 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19307 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19309 cat >>confdefs.h <<\_ACEOF
19310 #define HAVE___UMODDI3 1
19316 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19317 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19318 if test "${ac_cv_lib_gcc___main+set}" = set; then
19319 echo $ECHO_N "(cached) $ECHO_C" >&6
19321 ac_check_lib_save_LIBS=$LIBS
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19330 /* Override any GCC internal prototype to avoid an error.
19331 Use char because int might match the return type of a GCC
19332 builtin and then its argument prototype would still apply. */
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (ac_try="$ac_link"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_link") 2>conftest.er1
19354 grep -v '^ *+' conftest.er1 >conftest.err
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19358 (exit $ac_status); } &&
19359 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19360 { (case "(($ac_try" in
19361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19362 *) ac_try_echo=$ac_try;;
19364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19365 (eval "$ac_try") 2>&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); }; } &&
19369 { ac_try='test -s conftest$ac_exeext'
19370 { (case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_try") 2>&5
19377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); }; }; then
19379 ac_cv_lib_gcc___main=yes
19381 echo "$as_me: failed program was:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_lib_gcc___main=no
19387 rm -f core conftest.err conftest.$ac_objext \
19388 conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19391 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19392 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19393 if test $ac_cv_lib_gcc___main = yes; then
19395 cat >>confdefs.h <<\_ACEOF
19396 #define HAVE___MAIN 1
19401 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19402 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19403 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19404 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 ac_check_lib_save_LIBS=$LIBS
19408 cat >conftest.$ac_ext <<_ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19415 /* Override any GCC internal prototype to avoid an error.
19416 Use char because int might match the return type of a GCC
19417 builtin and then its argument prototype would still apply. */
19425 return __cmpdi2 ();
19430 rm -f conftest.$ac_objext conftest$ac_exeext
19431 if { (ac_try="$ac_link"
19432 case "(($ac_try" in
19433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19434 *) ac_try_echo=$ac_try;;
19436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19437 (eval "$ac_link") 2>conftest.er1
19439 grep -v '^ *+' conftest.er1 >conftest.err
19441 cat conftest.err >&5
19442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19443 (exit $ac_status); } &&
19444 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19445 { (case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_try") 2>&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); }; } &&
19454 { ac_try='test -s conftest$ac_exeext'
19455 { (case "(($ac_try" in
19456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19457 *) ac_try_echo=$ac_try;;
19459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19460 (eval "$ac_try") 2>&5
19462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19463 (exit $ac_status); }; }; then
19464 ac_cv_lib_gcc___cmpdi2=yes
19466 echo "$as_me: failed program was:" >&5
19467 sed 's/^/| /' conftest.$ac_ext >&5
19469 ac_cv_lib_gcc___cmpdi2=no
19472 rm -f core conftest.err conftest.$ac_objext \
19473 conftest$ac_exeext conftest.$ac_ext
19474 LIBS=$ac_check_lib_save_LIBS
19476 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19477 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19478 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE___CMPDI2 1
19488 if test "$llvm_cv_os_type" = "MingW" ; then
19489 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19490 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19491 cat >conftest.$ac_ext <<_ACEOF
19492 #include <windows.h>
19493 #include <imagehlp.h>
19494 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19495 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19497 rm -f conftest.$ac_objext
19498 if { (ac_try="$ac_compile"
19499 case "(($ac_try" in
19500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19501 *) ac_try_echo=$ac_try;;
19503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19504 (eval "$ac_compile") 2>conftest.er1
19506 grep -v '^ *+' conftest.er1 >conftest.err
19508 cat conftest.err >&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); } &&
19511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19512 { (case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_try") 2>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; } &&
19521 { ac_try='test -s conftest.$ac_objext'
19522 { (case "(($ac_try" in
19523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19524 *) ac_try_echo=$ac_try;;
19526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19527 (eval "$ac_try") 2>&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); }; }; then
19532 { echo "$as_me:$LINENO: result: yes" >&5
19533 echo "${ECHO_T}yes" >&6; }
19534 llvm_cv_win32_elmcb_pcstr="PCSTR"
19537 echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19541 { echo "$as_me:$LINENO: result: no" >&5
19542 echo "${ECHO_T}no" >&6; }
19543 llvm_cv_win32_elmcb_pcstr="PSTR"
19547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19549 cat >>confdefs.h <<_ACEOF
19550 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19556 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19557 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19558 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19559 echo $ECHO_N "(cached) $ECHO_C" >&6
19562 ac_cpp='$CXXCPP $CPPFLAGS'
19563 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19564 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19565 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19567 cat >conftest.$ac_ext <<_ACEOF
19570 cat confdefs.h >>conftest.$ac_ext
19571 cat >>conftest.$ac_ext <<_ACEOF
19572 /* end confdefs.h. */
19582 rm -f conftest.$ac_objext
19583 if { (ac_try="$ac_compile"
19584 case "(($ac_try" in
19585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19586 *) ac_try_echo=$ac_try;;
19588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19589 (eval "$ac_compile") 2>conftest.er1
19591 grep -v '^ *+' conftest.er1 >conftest.err
19593 cat conftest.err >&5
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); } &&
19596 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19597 { (case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_try") 2>&5
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; } &&
19606 { ac_try='test -s conftest.$ac_objext'
19607 { (case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_try") 2>&5
19614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19615 (exit $ac_status); }; }; then
19616 ac_cv_func_isnan_in_math_h=yes
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19621 ac_cv_func_isnan_in_math_h=no
19624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19626 ac_cpp='$CPP $CPPFLAGS'
19627 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19628 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19629 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19632 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19633 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19636 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19638 cat >>confdefs.h <<\_ACEOF
19639 #define HAVE_ISNAN_IN_MATH_H 1
19644 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19645 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19646 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19650 ac_cpp='$CXXCPP $CPPFLAGS'
19651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19655 cat >conftest.$ac_ext <<_ACEOF
19658 cat confdefs.h >>conftest.$ac_ext
19659 cat >>conftest.$ac_ext <<_ACEOF
19660 /* end confdefs.h. */
19670 rm -f conftest.$ac_objext
19671 if { (ac_try="$ac_compile"
19672 case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19677 (eval "$ac_compile") 2>conftest.er1
19679 grep -v '^ *+' conftest.er1 >conftest.err
19681 cat conftest.err >&5
19682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19683 (exit $ac_status); } &&
19684 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19685 { (case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_try") 2>&5
19692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19693 (exit $ac_status); }; } &&
19694 { ac_try='test -s conftest.$ac_objext'
19695 { (case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19700 (eval "$ac_try") 2>&5
19702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19703 (exit $ac_status); }; }; then
19704 ac_cv_func_isnan_in_cmath=yes
19706 echo "$as_me: failed program was:" >&5
19707 sed 's/^/| /' conftest.$ac_ext >&5
19709 ac_cv_func_isnan_in_cmath=no
19712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19714 ac_cpp='$CPP $CPPFLAGS'
19715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19720 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19721 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19723 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19725 cat >>confdefs.h <<\_ACEOF
19726 #define HAVE_ISNAN_IN_CMATH 1
19731 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19732 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19733 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19734 echo $ECHO_N "(cached) $ECHO_C" >&6
19737 ac_cpp='$CXXCPP $CPPFLAGS'
19738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19742 cat >conftest.$ac_ext <<_ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19752 float f; std::isnan(f);
19757 rm -f conftest.$ac_objext
19758 if { (ac_try="$ac_compile"
19759 case "(($ac_try" in
19760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19761 *) ac_try_echo=$ac_try;;
19763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19764 (eval "$ac_compile") 2>conftest.er1
19766 grep -v '^ *+' conftest.er1 >conftest.err
19768 cat conftest.err >&5
19769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19770 (exit $ac_status); } &&
19771 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19772 { (case "(($ac_try" in
19773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19774 *) ac_try_echo=$ac_try;;
19776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19777 (eval "$ac_try") 2>&5
19779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19780 (exit $ac_status); }; } &&
19781 { ac_try='test -s conftest.$ac_objext'
19782 { (case "(($ac_try" in
19783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19784 *) ac_try_echo=$ac_try;;
19786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19787 (eval "$ac_try") 2>&5
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 ac_cv_func_std_isnan_in_cmath=yes
19793 echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19796 ac_cv_func_std_isnan_in_cmath=no
19799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19801 ac_cpp='$CPP $CPPFLAGS'
19802 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19803 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19804 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19807 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19808 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19810 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19812 cat >>confdefs.h <<\_ACEOF
19813 #define HAVE_STD_ISNAN_IN_CMATH 1
19819 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19820 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19821 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19822 echo $ECHO_N "(cached) $ECHO_C" >&6
19825 ac_cpp='$CXXCPP $CPPFLAGS'
19826 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19827 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19828 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19830 cat >conftest.$ac_ext <<_ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19845 rm -f conftest.$ac_objext
19846 if { (ac_try="$ac_compile"
19847 case "(($ac_try" in
19848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19849 *) ac_try_echo=$ac_try;;
19851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19852 (eval "$ac_compile") 2>conftest.er1
19854 grep -v '^ *+' conftest.er1 >conftest.err
19856 cat conftest.err >&5
19857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19858 (exit $ac_status); } &&
19859 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19860 { (case "(($ac_try" in
19861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19862 *) ac_try_echo=$ac_try;;
19864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19865 (eval "$ac_try") 2>&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); }; } &&
19869 { ac_try='test -s conftest.$ac_objext'
19870 { (case "(($ac_try" in
19871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19872 *) ac_try_echo=$ac_try;;
19874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19875 (eval "$ac_try") 2>&5
19877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19878 (exit $ac_status); }; }; then
19879 ac_cv_func_isinf_in_math_h=yes
19881 echo "$as_me: failed program was:" >&5
19882 sed 's/^/| /' conftest.$ac_ext >&5
19884 ac_cv_func_isinf_in_math_h=no
19887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19889 ac_cpp='$CPP $CPPFLAGS'
19890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19895 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19896 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19898 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19900 cat >>confdefs.h <<\_ACEOF
19901 #define HAVE_ISINF_IN_MATH_H 1
19906 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19907 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19908 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19909 echo $ECHO_N "(cached) $ECHO_C" >&6
19912 ac_cpp='$CXXCPP $CPPFLAGS'
19913 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19914 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19915 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19917 cat >conftest.$ac_ext <<_ACEOF
19920 cat confdefs.h >>conftest.$ac_ext
19921 cat >>conftest.$ac_ext <<_ACEOF
19922 /* end confdefs.h. */
19932 rm -f conftest.$ac_objext
19933 if { (ac_try="$ac_compile"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19939 (eval "$ac_compile") 2>conftest.er1
19941 grep -v '^ *+' conftest.er1 >conftest.err
19943 cat conftest.err >&5
19944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19945 (exit $ac_status); } &&
19946 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19947 { (case "(($ac_try" in
19948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19949 *) ac_try_echo=$ac_try;;
19951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19952 (eval "$ac_try") 2>&5
19954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19955 (exit $ac_status); }; } &&
19956 { ac_try='test -s conftest.$ac_objext'
19957 { (case "(($ac_try" in
19958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19959 *) ac_try_echo=$ac_try;;
19961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19962 (eval "$ac_try") 2>&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); }; }; then
19966 ac_cv_func_isinf_in_cmath=yes
19968 echo "$as_me: failed program was:" >&5
19969 sed 's/^/| /' conftest.$ac_ext >&5
19971 ac_cv_func_isinf_in_cmath=no
19974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19976 ac_cpp='$CPP $CPPFLAGS'
19977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19982 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19983 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19985 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19987 cat >>confdefs.h <<\_ACEOF
19988 #define HAVE_ISINF_IN_CMATH 1
19993 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19994 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19995 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19996 echo $ECHO_N "(cached) $ECHO_C" >&6
19999 ac_cpp='$CXXCPP $CPPFLAGS'
20000 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20001 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20002 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20004 cat >conftest.$ac_ext <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20014 float f; std::isinf(f);
20019 rm -f conftest.$ac_objext
20020 if { (ac_try="$ac_compile"
20021 case "(($ac_try" in
20022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20023 *) ac_try_echo=$ac_try;;
20025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20026 (eval "$ac_compile") 2>conftest.er1
20028 grep -v '^ *+' conftest.er1 >conftest.err
20030 cat conftest.err >&5
20031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20032 (exit $ac_status); } &&
20033 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20034 { (case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20039 (eval "$ac_try") 2>&5
20041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20042 (exit $ac_status); }; } &&
20043 { ac_try='test -s conftest.$ac_objext'
20044 { (case "(($ac_try" in
20045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20046 *) ac_try_echo=$ac_try;;
20048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20049 (eval "$ac_try") 2>&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; }; then
20053 ac_cv_func_std_isinf_in_cmath=yes
20055 echo "$as_me: failed program was:" >&5
20056 sed 's/^/| /' conftest.$ac_ext >&5
20058 ac_cv_func_std_isinf_in_cmath=no
20061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20063 ac_cpp='$CPP $CPPFLAGS'
20064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20069 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20070 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20072 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20074 cat >>confdefs.h <<\_ACEOF
20075 #define HAVE_STD_ISINF_IN_CMATH 1
20080 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20081 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20082 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 ac_cpp='$CXXCPP $CPPFLAGS'
20087 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20088 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20089 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20091 cat >conftest.$ac_ext <<_ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20097 #include <ieeefp.h>
20101 float f; finite(f);
20106 rm -f conftest.$ac_objext
20107 if { (ac_try="$ac_compile"
20108 case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_compile") 2>conftest.er1
20115 grep -v '^ *+' conftest.er1 >conftest.err
20117 cat conftest.err >&5
20118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20119 (exit $ac_status); } &&
20120 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20121 { (case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_try") 2>&5
20128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20129 (exit $ac_status); }; } &&
20130 { ac_try='test -s conftest.$ac_objext'
20131 { (case "(($ac_try" in
20132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20133 *) ac_try_echo=$ac_try;;
20135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20136 (eval "$ac_try") 2>&5
20138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20139 (exit $ac_status); }; }; then
20140 ac_cv_func_finite_in_ieeefp_h=yes
20142 echo "$as_me: failed program was:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20145 ac_cv_func_finite_in_ieeefp_h=no
20148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20150 ac_cpp='$CPP $CPPFLAGS'
20151 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20152 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20153 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20156 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20157 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20159 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20161 cat >>confdefs.h <<\_ACEOF
20162 #define HAVE_FINITE_IN_IEEEFP_H 1
20169 if test "$llvm_cv_platform_type" = "Unix" ; then
20172 for ac_header in stdlib.h unistd.h
20174 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20175 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20181 ac_res=`eval echo '${'$as_ac_Header'}'`
20182 { echo "$as_me:$LINENO: result: $ac_res" >&5
20183 echo "${ECHO_T}$ac_res" >&6; }
20185 # Is the header compilable?
20186 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20187 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20188 cat >conftest.$ac_ext <<_ACEOF
20191 cat confdefs.h >>conftest.$ac_ext
20192 cat >>conftest.$ac_ext <<_ACEOF
20193 /* end confdefs.h. */
20194 $ac_includes_default
20195 #include <$ac_header>
20197 rm -f conftest.$ac_objext
20198 if { (ac_try="$ac_compile"
20199 case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_compile") 2>conftest.er1
20206 grep -v '^ *+' conftest.er1 >conftest.err
20208 cat conftest.err >&5
20209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20210 (exit $ac_status); } &&
20211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20212 { (case "(($ac_try" in
20213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20214 *) ac_try_echo=$ac_try;;
20216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20217 (eval "$ac_try") 2>&5
20219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20220 (exit $ac_status); }; } &&
20221 { ac_try='test -s conftest.$ac_objext'
20222 { (case "(($ac_try" in
20223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20224 *) ac_try_echo=$ac_try;;
20226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20227 (eval "$ac_try") 2>&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); }; }; then
20231 ac_header_compiler=yes
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20236 ac_header_compiler=no
20239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20241 echo "${ECHO_T}$ac_header_compiler" >&6; }
20243 # Is the header present?
20244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20246 cat >conftest.$ac_ext <<_ACEOF
20249 cat confdefs.h >>conftest.$ac_ext
20250 cat >>conftest.$ac_ext <<_ACEOF
20251 /* end confdefs.h. */
20252 #include <$ac_header>
20254 if { (ac_try="$ac_cpp conftest.$ac_ext"
20255 case "(($ac_try" in
20256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20257 *) ac_try_echo=$ac_try;;
20259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20262 grep -v '^ *+' conftest.er1 >conftest.err
20264 cat conftest.err >&5
20265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20266 (exit $ac_status); } >/dev/null; then
20267 if test -s conftest.err; then
20268 ac_cpp_err=$ac_c_preproc_warn_flag
20269 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20276 if test -z "$ac_cpp_err"; then
20277 ac_header_preproc=yes
20279 echo "$as_me: failed program was:" >&5
20280 sed 's/^/| /' conftest.$ac_ext >&5
20282 ac_header_preproc=no
20285 rm -f conftest.err conftest.$ac_ext
20286 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20287 echo "${ECHO_T}$ac_header_preproc" >&6; }
20289 # So? What about this header?
20290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20292 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20293 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20294 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20296 ac_header_preproc=yes
20299 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20300 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20301 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20302 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20303 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20304 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20305 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20306 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20307 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20310 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20312 ## ------------------------------------ ##
20313 ## Report this to http://llvm.org/bugs/ ##
20314 ## ------------------------------------ ##
20316 ) | sed "s/^/$as_me: WARNING: /" >&2
20319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20322 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 eval "$as_ac_Header=\$ac_header_preproc"
20326 ac_res=`eval echo '${'$as_ac_Header'}'`
20327 { echo "$as_me:$LINENO: result: $ac_res" >&5
20328 echo "${ECHO_T}$ac_res" >&6; }
20331 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20332 cat >>confdefs.h <<_ACEOF
20333 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20341 for ac_func in getpagesize
20343 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20344 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20345 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20346 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20349 cat >conftest.$ac_ext <<_ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20355 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20357 #define $ac_func innocuous_$ac_func
20359 /* System header to define __stub macros and hopefully few prototypes,
20360 which can conflict with char $ac_func (); below.
20361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20362 <limits.h> exists even on freestanding compilers. */
20365 # include <limits.h>
20367 # include <assert.h>
20372 /* Override any GCC internal prototype to avoid an error.
20373 Use char because int might match the return type of a GCC
20374 builtin and then its argument prototype would still apply. */
20379 /* The GNU C library defines this for functions which it implements
20380 to always fail with ENOSYS. Some functions are actually named
20381 something starting with __ and the normal name is an alias. */
20382 #if defined __stub_$ac_func || defined __stub___$ac_func
20389 return $ac_func ();
20394 rm -f conftest.$ac_objext conftest$ac_exeext
20395 if { (ac_try="$ac_link"
20396 case "(($ac_try" in
20397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20398 *) ac_try_echo=$ac_try;;
20400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20401 (eval "$ac_link") 2>conftest.er1
20403 grep -v '^ *+' conftest.er1 >conftest.err
20405 cat conftest.err >&5
20406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20407 (exit $ac_status); } &&
20408 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20409 { (case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_try") 2>&5
20416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); }; } &&
20418 { ac_try='test -s conftest$ac_exeext'
20419 { (case "(($ac_try" in
20420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20421 *) ac_try_echo=$ac_try;;
20423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20424 (eval "$ac_try") 2>&5
20426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); }; }; then
20428 eval "$as_ac_var=yes"
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20433 eval "$as_ac_var=no"
20436 rm -f core conftest.err conftest.$ac_objext \
20437 conftest$ac_exeext conftest.$ac_ext
20439 ac_res=`eval echo '${'$as_ac_var'}'`
20440 { echo "$as_me:$LINENO: result: $ac_res" >&5
20441 echo "${ECHO_T}$ac_res" >&6; }
20442 if test `eval echo '${'$as_ac_var'}'` = yes; then
20443 cat >>confdefs.h <<_ACEOF
20444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20450 { echo "$as_me:$LINENO: checking for working mmap" >&5
20451 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20452 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20453 echo $ECHO_N "(cached) $ECHO_C" >&6
20455 if test "$cross_compiling" = yes; then
20456 ac_cv_func_mmap_fixed_mapped=no
20458 cat >conftest.$ac_ext <<_ACEOF
20461 cat confdefs.h >>conftest.$ac_ext
20462 cat >>conftest.$ac_ext <<_ACEOF
20463 /* end confdefs.h. */
20464 $ac_includes_default
20465 /* malloc might have been renamed as rpl_malloc. */
20468 /* Thanks to Mike Haertel and Jim Avera for this test.
20469 Here is a matrix of mmap possibilities:
20470 mmap private not fixed
20471 mmap private fixed at somewhere currently unmapped
20472 mmap private fixed at somewhere already mapped
20473 mmap shared not fixed
20474 mmap shared fixed at somewhere currently unmapped
20475 mmap shared fixed at somewhere already mapped
20476 For private mappings, we should verify that changes cannot be read()
20477 back from the file, nor mmap's back from the file at a different
20478 address. (There have been systems where private was not correctly
20479 implemented like the infamous i386 svr4.0, and systems where the
20480 VM page cache was not coherent with the file system buffer cache
20481 like early versions of FreeBSD and possibly contemporary NetBSD.)
20482 For shared mappings, we should conversely verify that changes get
20483 propagated back to all the places they're supposed to be.
20485 Grep wants private fixed already mapped.
20486 The main things grep needs to know about mmap are:
20487 * does it exist and is it safe to write into the mmap'd area
20488 * how to use it (BSD variants) */
20491 #include <sys/mman.h>
20493 #if !STDC_HEADERS && !HAVE_STDLIB_H
20497 /* This mess was copied from the GNU getpagesize.h. */
20498 #if !HAVE_GETPAGESIZE
20499 /* Assume that all systems that can run configure have sys/param.h. */
20500 # if !HAVE_SYS_PARAM_H
20501 # define HAVE_SYS_PARAM_H 1
20504 # ifdef _SC_PAGESIZE
20505 # define getpagesize() sysconf(_SC_PAGESIZE)
20506 # else /* no _SC_PAGESIZE */
20507 # if HAVE_SYS_PARAM_H
20508 # include <sys/param.h>
20509 # ifdef EXEC_PAGESIZE
20510 # define getpagesize() EXEC_PAGESIZE
20511 # else /* no EXEC_PAGESIZE */
20513 # define getpagesize() NBPG * CLSIZE
20516 # endif /* no CLSIZE */
20517 # else /* no NBPG */
20519 # define getpagesize() NBPC
20520 # else /* no NBPC */
20522 # define getpagesize() PAGESIZE
20523 # endif /* PAGESIZE */
20524 # endif /* no NBPC */
20525 # endif /* no NBPG */
20526 # endif /* no EXEC_PAGESIZE */
20527 # else /* no HAVE_SYS_PARAM_H */
20528 # define getpagesize() 8192 /* punt totally */
20529 # endif /* no HAVE_SYS_PARAM_H */
20530 # endif /* no _SC_PAGESIZE */
20532 #endif /* no HAVE_GETPAGESIZE */
20537 char *data, *data2, *data3;
20541 pagesize = getpagesize ();
20543 /* First, make a file with some known garbage in it. */
20544 data = (char *) malloc (pagesize);
20547 for (i = 0; i < pagesize; ++i)
20548 *(data + i) = rand ();
20550 fd = creat ("conftest.mmap", 0600);
20553 if (write (fd, data, pagesize) != pagesize)
20557 /* Next, try to mmap the file at a fixed address which already has
20558 something else allocated at it. If we can, also make sure that
20559 we see the same garbage. */
20560 fd = open ("conftest.mmap", O_RDWR);
20563 data2 = (char *) malloc (2 * pagesize);
20566 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20567 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20568 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20570 for (i = 0; i < pagesize; ++i)
20571 if (*(data + i) != *(data2 + i))
20574 /* Finally, make sure that changes to the mapped area do not
20575 percolate back to the file as seen by read(). (This is a bug on
20576 some variants of i386 svr4.0.) */
20577 for (i = 0; i < pagesize; ++i)
20578 *(data2 + i) = *(data2 + i) + 1;
20579 data3 = (char *) malloc (pagesize);
20582 if (read (fd, data3, pagesize) != pagesize)
20584 for (i = 0; i < pagesize; ++i)
20585 if (*(data + i) != *(data3 + i))
20591 rm -f conftest$ac_exeext
20592 if { (ac_try="$ac_link"
20593 case "(($ac_try" in
20594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20595 *) ac_try_echo=$ac_try;;
20597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20598 (eval "$ac_link") 2>&5
20600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20601 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20602 { (case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_try") 2>&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); }; }; then
20611 ac_cv_func_mmap_fixed_mapped=yes
20613 echo "$as_me: program exited with status $ac_status" >&5
20614 echo "$as_me: failed program was:" >&5
20615 sed 's/^/| /' conftest.$ac_ext >&5
20617 ( exit $ac_status )
20618 ac_cv_func_mmap_fixed_mapped=no
20620 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20625 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20626 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20627 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20629 cat >>confdefs.h <<\_ACEOF
20630 #define HAVE_MMAP 1
20634 rm -f conftest.mmap
20636 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20637 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20638 if test "${ac_cv_func_mmap_file+set}" = set; then
20639 echo $ECHO_N "(cached) $ECHO_C" >&6
20642 ac_cpp='$CPP $CPPFLAGS'
20643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20647 if test "$cross_compiling" = yes; then
20648 ac_cv_func_mmap_file=no
20650 cat >conftest.$ac_ext <<_ACEOF
20654 cat confdefs.h >>conftest.$ac_ext
20655 cat >>conftest.$ac_ext <<_ACEOF
20656 /* end confdefs.h. */
20658 #include <sys/types.h>
20659 #include <sys/mman.h>
20667 fd = creat ("foo",0777);
20668 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20670 return (fd != (int) MAP_FAILED);
20675 rm -f conftest$ac_exeext
20676 if { (ac_try="$ac_link"
20677 case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20682 (eval "$ac_link") 2>&5
20684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20685 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20686 { (case "(($ac_try" in
20687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20688 *) ac_try_echo=$ac_try;;
20690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20691 (eval "$ac_try") 2>&5
20693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20694 (exit $ac_status); }; }; then
20695 ac_cv_func_mmap_file=yes
20697 echo "$as_me: program exited with status $ac_status" >&5
20698 echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20701 ( exit $ac_status )
20702 ac_cv_func_mmap_file=no
20704 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20709 ac_cpp='$CPP $CPPFLAGS'
20710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20716 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20717 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20718 if test "$ac_cv_func_mmap_file" = yes; then
20720 cat >>confdefs.h <<\_ACEOF
20721 #define HAVE_MMAP_FILE
20728 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20729 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20730 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20733 if test "$llvm_cv_os_type" = "Interix" ; then
20734 ac_cv_need_dev_zero_for_mmap=yes
20736 ac_cv_need_dev_zero_for_mmap=no
20740 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20741 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20742 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20744 cat >>confdefs.h <<\_ACEOF
20745 #define NEED_DEV_ZERO_FOR_MMAP 1
20750 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20752 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20753 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20755 if test "$ac_cv_func_mmap_file" = "no"
20757 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20758 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20762 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20763 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20765 ac_cpp='$CXXCPP $CPPFLAGS'
20766 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20767 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20768 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20770 cat >conftest.$ac_ext <<_ACEOF
20773 cat confdefs.h >>conftest.$ac_ext
20774 cat >>conftest.$ac_ext <<_ACEOF
20775 /* end confdefs.h. */
20777 volatile unsigned long val = 1;
20778 __sync_synchronize();
20779 __sync_val_compare_and_swap(&val, 1, 0);
20780 __sync_add_and_fetch(&val, 1);
20781 __sync_sub_and_fetch(&val, 1);
20786 rm -f conftest.$ac_objext conftest$ac_exeext
20787 if { (ac_try="$ac_link"
20788 case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20793 (eval "$ac_link") 2>conftest.er1
20795 grep -v '^ *+' conftest.er1 >conftest.err
20797 cat conftest.err >&5
20798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20799 (exit $ac_status); } &&
20800 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20801 { (case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_try") 2>&5
20808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20809 (exit $ac_status); }; } &&
20810 { ac_try='test -s conftest$ac_exeext'
20811 { (case "(($ac_try" in
20812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20813 *) ac_try_echo=$ac_try;;
20815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20816 (eval "$ac_try") 2>&5
20818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); }; }; then
20821 ac_cpp='$CPP $CPPFLAGS'
20822 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20823 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20824 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20826 { echo "$as_me:$LINENO: result: yes" >&5
20827 echo "${ECHO_T}yes" >&6; }
20829 cat >>confdefs.h <<\_ACEOF
20830 #define LLVM_HAS_ATOMICS 1
20834 echo "$as_me: failed program was:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 { echo "$as_me:$LINENO: result: no" >&5
20838 echo "${ECHO_T}no" >&6; }
20840 cat >>confdefs.h <<\_ACEOF
20841 #define LLVM_HAS_ATOMICS 0
20844 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20845 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20848 rm -f core conftest.err conftest.$ac_objext \
20849 conftest$ac_exeext conftest.$ac_ext
20852 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20853 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20854 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20855 if test "${llvm_cv_linux_mixed+set}" = set; then
20856 echo $ECHO_N "(cached) $ECHO_C" >&6
20859 ac_cpp='$CPP $CPPFLAGS'
20860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20864 cat >conftest.$ac_ext <<_ACEOF
20867 cat confdefs.h >>conftest.$ac_ext
20868 cat >>conftest.$ac_ext <<_ACEOF
20869 /* end confdefs.h. */
20871 error: Not x86-64 even if uname says so!
20882 rm -f conftest.$ac_objext
20883 if { (ac_try="$ac_compile"
20884 case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_compile") 2>conftest.er1
20891 grep -v '^ *+' conftest.er1 >conftest.err
20893 cat conftest.err >&5
20894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20895 (exit $ac_status); } &&
20896 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20897 { (case "(($ac_try" in
20898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20899 *) ac_try_echo=$ac_try;;
20901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20902 (eval "$ac_try") 2>&5
20904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); }; } &&
20906 { ac_try='test -s conftest.$ac_objext'
20907 { (case "(($ac_try" in
20908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20909 *) ac_try_echo=$ac_try;;
20911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20912 (eval "$ac_try") 2>&5
20914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; }; then
20916 llvm_cv_linux_mixed=no
20918 echo "$as_me: failed program was:" >&5
20919 sed 's/^/| /' conftest.$ac_ext >&5
20921 llvm_cv_linux_mixed=yes
20924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20926 ac_cpp='$CPP $CPPFLAGS'
20927 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20928 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20929 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20933 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20934 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20936 if test "$llvm_cv_linux_mixed" = "yes"; then
20937 llvm_cv_target_arch="x86"
20943 for ac_func in __dso_handle
20945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20949 echo $ECHO_N "(cached) $ECHO_C" >&6
20951 cat >conftest.$ac_ext <<_ACEOF
20954 cat confdefs.h >>conftest.$ac_ext
20955 cat >>conftest.$ac_ext <<_ACEOF
20956 /* end confdefs.h. */
20957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20959 #define $ac_func innocuous_$ac_func
20961 /* System header to define __stub macros and hopefully few prototypes,
20962 which can conflict with char $ac_func (); below.
20963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20964 <limits.h> exists even on freestanding compilers. */
20967 # include <limits.h>
20969 # include <assert.h>
20974 /* Override any GCC internal prototype to avoid an error.
20975 Use char because int might match the return type of a GCC
20976 builtin and then its argument prototype would still apply. */
20981 /* The GNU C library defines this for functions which it implements
20982 to always fail with ENOSYS. Some functions are actually named
20983 something starting with __ and the normal name is an alias. */
20984 #if defined __stub_$ac_func || defined __stub___$ac_func
20991 return $ac_func ();
20996 rm -f conftest.$ac_objext conftest$ac_exeext
20997 if { (ac_try="$ac_link"
20998 case "(($ac_try" in
20999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21000 *) ac_try_echo=$ac_try;;
21002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21003 (eval "$ac_link") 2>conftest.er1
21005 grep -v '^ *+' conftest.er1 >conftest.err
21007 cat conftest.err >&5
21008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21009 (exit $ac_status); } &&
21010 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21011 { (case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_try") 2>&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); }; } &&
21020 { ac_try='test -s conftest$ac_exeext'
21021 { (case "(($ac_try" in
21022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21023 *) ac_try_echo=$ac_try;;
21025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21026 (eval "$ac_try") 2>&5
21028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); }; }; then
21030 eval "$as_ac_var=yes"
21032 echo "$as_me: failed program was:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 eval "$as_ac_var=no"
21038 rm -f core conftest.err conftest.$ac_objext \
21039 conftest$ac_exeext conftest.$ac_ext
21041 ac_res=`eval echo '${'$as_ac_var'}'`
21042 { echo "$as_me:$LINENO: result: $ac_res" >&5
21043 echo "${ECHO_T}$ac_res" >&6; }
21044 if test `eval echo '${'$as_ac_var'}'` = yes; then
21045 cat >>confdefs.h <<_ACEOF
21046 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21053 SHLIBEXT=$libltdl_cv_shlibext
21056 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21059 if test "${prefix}" = "NONE" ; then
21060 prefix="/usr/local"
21062 eval LLVM_PREFIX="${prefix}";
21063 eval LLVM_BINDIR="${prefix}/bin";
21064 eval LLVM_LIBDIR="${prefix}/lib";
21065 eval LLVM_DATADIR="${prefix}/share/llvm";
21066 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21067 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21068 eval LLVM_INCLUDEDIR="${prefix}/include";
21069 eval LLVM_INFODIR="${prefix}/info";
21070 eval LLVM_MANDIR="${prefix}/man";
21071 LLVM_CONFIGTIME=`date`
21083 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21084 LLVM_CONFIGTIME="(timestamp not enabled)"
21088 cat >>confdefs.h <<_ACEOF
21089 #define LLVM_PREFIX "$LLVM_PREFIX"
21093 cat >>confdefs.h <<_ACEOF
21094 #define LLVM_BINDIR "$LLVM_BINDIR"
21098 cat >>confdefs.h <<_ACEOF
21099 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21103 cat >>confdefs.h <<_ACEOF
21104 #define LLVM_DATADIR "$LLVM_DATADIR"
21108 cat >>confdefs.h <<_ACEOF
21109 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21113 cat >>confdefs.h <<_ACEOF
21114 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21118 cat >>confdefs.h <<_ACEOF
21119 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21123 cat >>confdefs.h <<_ACEOF
21124 #define LLVM_INFODIR "$LLVM_INFODIR"
21128 cat >>confdefs.h <<_ACEOF
21129 #define LLVM_MANDIR "$LLVM_MANDIR"
21133 cat >>confdefs.h <<_ACEOF
21134 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
21138 cat >>confdefs.h <<_ACEOF
21139 #define LLVM_HOSTTRIPLE "$host"
21143 cat >>confdefs.h <<_ACEOF
21144 #define LLVM_DEFAULT_TARGET_TRIPLE "$target"
21148 if test "$BINDINGS_TO_BUILD" = auto ; then
21149 BINDINGS_TO_BUILD=""
21150 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
21151 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
21154 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
21160 binding_prereqs_failed=0
21161 for a_binding in $BINDINGS_TO_BUILD ; do
21162 case "$a_binding" in
21164 if test "x$OCAMLC" = x ; then
21165 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
21166 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
21167 binding_prereqs_failed=1
21169 if test "x$OCAMLDEP" = x ; then
21170 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
21171 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
21172 binding_prereqs_failed=1
21174 if test "x$OCAMLOPT" = x ; then
21175 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
21176 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
21178 if test "x$with_ocaml_libdir" != xauto ; then
21179 OCAML_LIBDIR=$with_ocaml_libdir
21182 ocaml_stdlib="`"$OCAMLC" -where`"
21183 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
21185 # ocaml stdlib is beneath our prefix; use stdlib
21186 OCAML_LIBDIR=$ocaml_stdlib
21189 # ocaml stdlib is outside our prefix; use libdir/ocaml
21190 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
21197 if test "$binding_prereqs_failed" = 1 ; then
21198 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
21199 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
21200 { (exit 1); exit 1; }; }
21203 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
21204 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
21205 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
21206 echo $ECHO_N "(cached) $ECHO_C" >&6
21209 ac_cpp='$CXXCPP $CPPFLAGS'
21210 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21211 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21212 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
21214 oldcxxflags="$CXXFLAGS"
21215 CXXFLAGS="$CXXFLAGS -O0 -fvisibility-inlines-hidden -Werror"
21216 cat >conftest.$ac_ext <<_ACEOF
21219 cat confdefs.h >>conftest.$ac_ext
21220 cat >>conftest.$ac_ext <<_ACEOF
21221 /* end confdefs.h. */
21222 template <typename T> struct X { void __attribute__((noinline)) f() {} };
21231 rm -f conftest.$ac_objext
21232 if { (ac_try="$ac_compile"
21233 case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21238 (eval "$ac_compile") 2>conftest.er1
21240 grep -v '^ *+' conftest.er1 >conftest.err
21242 cat conftest.err >&5
21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21244 (exit $ac_status); } &&
21245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
21246 { (case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_try") 2>&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); }; } &&
21255 { ac_try='test -s conftest.$ac_objext'
21256 { (case "(($ac_try" in
21257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21258 *) ac_try_echo=$ac_try;;
21260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21261 (eval "$ac_try") 2>&5
21263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); }; }; then
21265 llvm_cv_cxx_visibility_inlines_hidden=yes
21267 echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21270 llvm_cv_cxx_visibility_inlines_hidden=no
21273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21274 CXXFLAGS="$oldcxxflags"
21276 ac_cpp='$CPP $CPPFLAGS'
21277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21283 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
21284 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
21285 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21286 ENABLE_VISIBILITY_INLINES_HIDDEN=1
21289 ENABLE_VISIBILITY_INLINES_HIDDEN=0
21294 if test "$llvm_cv_link_use_r" = "yes" ; then
21301 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21302 RDYNAMIC="-Wl,-export-dynamic"
21309 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21316 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
21318 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
21320 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
21322 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
21324 ac_config_headers="$ac_config_headers include/llvm/Support/DataTypes.h"
21327 ac_config_files="$ac_config_files Makefile.config"
21330 ac_config_files="$ac_config_files llvm.spec"
21333 ac_config_files="$ac_config_files docs/doxygen.cfg"
21336 if test "${clang_src_root}" = ""; then
21337 clang_src_root="$srcdir/tools/clang"
21339 if test -f ${clang_src_root}/README.txt; then
21340 configh="include/clang/Config/config.h"
21341 doxy="docs/doxygen.cfg"
21342 ac_config_headers="$ac_config_headers tools/clang/${configh}:${clang_src_root}/${configh}.in"
21344 ac_config_files="$ac_config_files tools/clang/${doxy}:${clang_src_root}/${doxy}.in"
21348 ac_config_files="$ac_config_files bindings/ocaml/llvm/META.llvm"
21351 ac_config_commands="$ac_config_commands setup"
21353 ac_config_commands="$ac_config_commands Makefile"
21356 ac_config_commands="$ac_config_commands Makefile.common"
21359 ac_config_commands="$ac_config_commands examples/Makefile"
21362 ac_config_commands="$ac_config_commands lib/Makefile"
21365 ac_config_commands="$ac_config_commands runtime/Makefile"
21368 ac_config_commands="$ac_config_commands test/Makefile"
21371 ac_config_commands="$ac_config_commands test/Makefile.tests"
21374 ac_config_commands="$ac_config_commands unittests/Makefile"
21377 ac_config_commands="$ac_config_commands tools/Makefile"
21380 ac_config_commands="$ac_config_commands utils/Makefile"
21383 ac_config_commands="$ac_config_commands projects/Makefile"
21386 ac_config_commands="$ac_config_commands bindings/Makefile"
21389 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21393 cat >confcache <<\_ACEOF
21394 # This file is a shell script that caches the results of configure
21395 # tests run on this system so they can be shared between configure
21396 # scripts and configure runs, see configure's option --config-cache.
21397 # It is not useful on other systems. If it contains results you don't
21398 # want to keep, you may remove or edit it.
21400 # config.status only pays attention to the cache file if you give it
21401 # the --recheck option to rerun configure.
21403 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21404 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21405 # following values.
21409 # The following way of writing the cache mishandles newlines in values,
21410 # but we know of no workaround that is simple, portable, and efficient.
21411 # So, we kill variables containing newlines.
21412 # Ultrix sh set writes to stderr and can't be redirected directly,
21413 # and sets the high bit in the cache file unless we assign to the vars.
21415 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21416 eval ac_val=\$$ac_var
21420 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21421 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21424 _ | IFS | as_nl) ;; #(
21425 *) $as_unset $ac_var ;;
21431 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21432 *${as_nl}ac_space=\ *)
21433 # `set' does not quote correctly, so add quotes (double-quote
21434 # substitution turns \\\\ into \\, and sed turns \\ into \).
21437 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21440 # `set' quotes correctly as required by POSIX, so do not add quotes.
21441 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21450 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21452 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21454 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
21455 if test -w "$cache_file"; then
21456 test "x$cache_file" != "x/dev/null" &&
21457 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21458 echo "$as_me: updating cache $cache_file" >&6;}
21459 cat confcache >$cache_file
21461 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21462 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21467 test "x$prefix" = xNONE && prefix=$ac_default_prefix
21468 # Let make expand exec_prefix.
21469 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
21471 DEFS=-DHAVE_CONFIG_H
21475 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
21476 # 1. Remove the extension, and $U if already installed.
21477 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
21478 ac_i=`echo "$ac_i" | sed "$ac_script"`
21479 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21480 # will be set to the directory where LIBOBJS objects are built.
21481 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21482 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21484 LIBOBJS=$ac_libobjs
21486 LTLIBOBJS=$ac_ltlibobjs
21489 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21490 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21491 Usually this means the macro was only invoked conditionally." >&5
21492 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21493 Usually this means the macro was only invoked conditionally." >&2;}
21494 { (exit 1); exit 1; }; }
21496 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21497 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21498 Usually this means the macro was only invoked conditionally." >&5
21499 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21500 Usually this means the macro was only invoked conditionally." >&2;}
21501 { (exit 1); exit 1; }; }
21504 : ${CONFIG_STATUS=./config.status}
21505 ac_clean_files_save=$ac_clean_files
21506 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21507 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21508 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21509 cat >$CONFIG_STATUS <<_ACEOF
21511 # Generated by $as_me.
21512 # Run this file to recreate the current configuration.
21513 # Compiler output produced by configure, useful for debugging
21514 # configure, is in config.log if it exists.
21517 ac_cs_recheck=false
21519 SHELL=\${CONFIG_SHELL-$SHELL}
21522 cat >>$CONFIG_STATUS <<\_ACEOF
21523 ## --------------------- ##
21524 ## M4sh Initialization. ##
21525 ## --------------------- ##
21527 # Be Bourne compatible
21528 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21531 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21532 # is contrary to our usage. Disable this feature.
21533 alias -g '${1+"$@"}'='"$@"'
21534 setopt NO_GLOB_SUBST
21536 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21538 BIN_SH=xpg4; export BIN_SH # for Tru64
21539 DUALCASE=1; export DUALCASE # for MKS sh
21543 # Avoid depending upon Character Ranges.
21544 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21545 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21546 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21547 as_cr_digits='0123456789'
21548 as_cr_alnum=$as_cr_Letters$as_cr_digits
21550 # The user is always right.
21551 if test "${PATH_SEPARATOR+set}" != set; then
21552 echo "#! /bin/sh" >conf$$.sh
21553 echo "exit 0" >>conf$$.sh
21555 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21563 # Support unset when possible.
21564 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21572 # We need space, tab and new line, in precisely that order. Quoting is
21573 # there to prevent editors from complaining about space-tab.
21574 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21575 # splitting by setting IFS to empty value.)
21580 # Find who we are. Look in the path if we contain no directory separator.
21582 *[\\/]* ) as_myself=$0 ;;
21583 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21584 for as_dir in $PATH
21587 test -z "$as_dir" && as_dir=.
21588 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21594 # We did not find ourselves, most probably we were run as `sh COMMAND'
21595 # in which case we are not to be found in the path.
21596 if test "x$as_myself" = x; then
21599 if test ! -f "$as_myself"; then
21600 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21601 { (exit 1); exit 1; }
21604 # Work around bugs in pre-3.0 UWIN ksh.
21605 for as_var in ENV MAIL MAILPATH
21606 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21614 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21615 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21616 LC_TELEPHONE LC_TIME
21618 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21619 eval $as_var=C; export $as_var
21621 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21625 # Required to use basename.
21626 if expr a : '\(a\)' >/dev/null 2>&1 &&
21627 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21633 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21634 as_basename=basename
21640 # Name of the executable.
21641 as_me=`$as_basename -- "$0" ||
21642 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21643 X"$0" : 'X\(//\)$' \| \
21644 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21646 sed '/^.*\/\([^/][^/]*\)\/*$/{
21665 as_lineno_1=$LINENO
21666 as_lineno_2=$LINENO
21667 test "x$as_lineno_1" != "x$as_lineno_2" &&
21668 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21670 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21671 # uniformly replaced by the line number. The first 'sed' inserts a
21672 # line-number line after each line using $LINENO; the second 'sed'
21673 # does the real work. The second script uses 'N' to pair each
21674 # line-number line with the line containing $LINENO, and appends
21675 # trailing '-' during substitution so that $LINENO is not a special
21676 # case at line end.
21677 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21678 # scripts with optimization help from Paolo Bonzini. Blame Lee
21679 # E. McMahon (1931-1989) for sed's syntax. :-)
21691 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21694 ' >$as_me.lineno &&
21695 chmod +x "$as_me.lineno" ||
21696 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21697 { (exit 1); exit 1; }; }
21699 # Don't try to exec as it changes $[0], causing all sort of problems
21700 # (the dirname of $[0] is not the place where we might find the
21701 # original and so on. Autoconf is especially sensitive to this).
21702 . "./$as_me.lineno"
21703 # Exit status is that of the last command.
21708 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21714 ECHO_C= ECHO_N= ECHO_T=
21715 case `echo -n x` in
21717 case `echo 'x\c'` in
21718 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21725 if expr a : '\(a\)' >/dev/null 2>&1 &&
21726 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21732 rm -f conf$$ conf$$.exe conf$$.file
21733 if test -d conf$$.dir; then
21734 rm -f conf$$.dir/conf$$.file
21740 if ln -s conf$$.file conf$$ 2>/dev/null; then
21742 # ... but there are two gotchas:
21743 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21744 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21745 # In both cases, we have to default to `cp -p'.
21746 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21748 elif ln conf$$.file conf$$ 2>/dev/null; then
21753 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21754 rmdir conf$$.dir 2>/dev/null
21756 if mkdir -p . 2>/dev/null; then
21759 test -d ./-p && rmdir ./-p
21763 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21764 # systems may use methods other than mode bits to determine executability.
21765 cat >conf$$.file <<_ASEOF
21769 chmod +x conf$$.file
21770 if test -x conf$$.file >/dev/null 2>&1; then
21771 as_executable_p="test -x"
21777 # Sed expression to map a string onto a valid CPP name.
21778 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21780 # Sed expression to map a string onto a valid variable name.
21781 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21786 # Save the log message, to keep $[0] and so on meaningful, and to
21787 # report actual input values of CONFIG_FILES etc. instead of their
21788 # values after options handling.
21790 This file was extended by LLVM $as_me 3.2svn, which was
21791 generated by GNU Autoconf 2.60. Invocation command line was
21793 CONFIG_FILES = $CONFIG_FILES
21794 CONFIG_HEADERS = $CONFIG_HEADERS
21795 CONFIG_LINKS = $CONFIG_LINKS
21796 CONFIG_COMMANDS = $CONFIG_COMMANDS
21799 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21804 cat >>$CONFIG_STATUS <<_ACEOF
21805 # Files that config.status was made for.
21806 config_files="$ac_config_files"
21807 config_headers="$ac_config_headers"
21808 config_commands="$ac_config_commands"
21812 cat >>$CONFIG_STATUS <<\_ACEOF
21814 \`$as_me' instantiates files from templates according to the
21815 current configuration.
21817 Usage: $0 [OPTIONS] [FILE]...
21819 -h, --help print this help, then exit
21820 -V, --version print version number, then exit
21821 -q, --quiet do not print progress messages
21822 -d, --debug don't remove temporary files
21823 --recheck update $as_me by reconfiguring in the same conditions
21824 --file=FILE[:TEMPLATE]
21825 instantiate the configuration file FILE
21826 --header=FILE[:TEMPLATE]
21827 instantiate the configuration header FILE
21829 Configuration files:
21832 Configuration headers:
21835 Configuration commands:
21838 Report bugs to <bug-autoconf@gnu.org>."
21841 cat >>$CONFIG_STATUS <<_ACEOF
21843 LLVM config.status 3.2svn
21844 configured by $0, generated by GNU Autoconf 2.60,
21845 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21847 Copyright (C) 2006 Free Software Foundation, Inc.
21848 This config.status script is free software; the Free Software Foundation
21849 gives unlimited permission to copy, distribute and modify it."
21856 cat >>$CONFIG_STATUS <<\_ACEOF
21857 # If no file are specified by the user, then we need to provide default
21858 # value. By we need to know if files were specified by the user.
21864 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21865 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21876 # Handling of the options.
21877 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21879 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21880 echo "$ac_cs_version"; exit ;;
21881 --debug | --debu | --deb | --de | --d | -d )
21883 --file | --fil | --fi | --f )
21885 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21886 ac_need_defaults=false;;
21887 --header | --heade | --head | --hea )
21889 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21890 ac_need_defaults=false;;
21892 # Conflict between --help and --header
21893 { echo "$as_me: error: ambiguous option: $1
21894 Try \`$0 --help' for more information." >&2
21895 { (exit 1); exit 1; }; };;
21896 --help | --hel | -h )
21897 echo "$ac_cs_usage"; exit ;;
21898 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21899 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21902 # This is an error.
21903 -*) { echo "$as_me: error: unrecognized option: $1
21904 Try \`$0 --help' for more information." >&2
21905 { (exit 1); exit 1; }; } ;;
21907 *) ac_config_targets="$ac_config_targets $1"
21908 ac_need_defaults=false ;;
21914 ac_configure_extra_args=
21916 if $ac_cs_silent; then
21918 ac_configure_extra_args="$ac_configure_extra_args --silent"
21922 cat >>$CONFIG_STATUS <<_ACEOF
21923 if \$ac_cs_recheck; then
21924 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21925 CONFIG_SHELL=$SHELL
21926 export CONFIG_SHELL
21927 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21931 cat >>$CONFIG_STATUS <<\_ACEOF
21935 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21936 ## Running $as_me. ##
21942 cat >>$CONFIG_STATUS <<_ACEOF
21946 llvm_src="${srcdir}"
21950 cat >>$CONFIG_STATUS <<\_ACEOF
21952 # Handling of arguments.
21953 for ac_config_target in $ac_config_targets
21955 case $ac_config_target in
21956 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21957 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21958 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21959 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21960 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21961 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21962 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21963 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21964 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21965 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
21966 "tools/clang/${configh}") CONFIG_HEADERS="$CONFIG_HEADERS tools/clang/${configh}:${clang_src_root}/${configh}.in" ;;
21967 "tools/clang/${doxy}") CONFIG_FILES="$CONFIG_FILES tools/clang/${doxy}:${clang_src_root}/${doxy}.in" ;;
21968 "bindings/ocaml/llvm/META.llvm") CONFIG_FILES="$CONFIG_FILES bindings/ocaml/llvm/META.llvm" ;;
21969 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21970 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21971 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21972 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21973 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21974 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21975 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21976 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21977 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21978 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21979 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21980 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21981 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21982 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21984 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21985 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21986 { (exit 1); exit 1; }; };;
21991 # If the user did not use the arguments to specify the items to instantiate,
21992 # then the envvar interface is used. Set only those that are not.
21993 # We use the long form for the default assignment because of an extremely
21994 # bizarre bug on SunOS 4.1.3.
21995 if $ac_need_defaults; then
21996 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21997 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21998 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22001 # Have a temporary directory for convenience. Make it in the build tree
22002 # simply because there is no reason against having it here, and in addition,
22003 # creating and moving files from /tmp can sometimes cause problems.
22004 # Hook for its removal unless debugging.
22005 # Note that there is a small window in which the directory will not be cleaned:
22006 # after its creation but before its name has been assigned to `$tmp'.
22010 trap 'exit_status=$?
22011 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22013 trap '{ (exit 1); exit 1; }' 1 2 13 15
22015 # Create a (secure) tmp directory for tmp files.
22018 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22019 test -n "$tmp" && test -d "$tmp"
22022 tmp=./conf$$-$RANDOM
22023 (umask 077 && mkdir "$tmp")
22026 echo "$me: cannot create a temporary directory in ." >&2
22027 { (exit 1); exit 1; }
22031 # Set up the sed scripts for CONFIG_FILES section.
22034 # No need to generate the scripts if there are no CONFIG_FILES.
22035 # This happens for instance when ./config.status config.h
22036 if test -n "$CONFIG_FILES"; then
22043 for ac_last_try in false false false false false :; do
22044 cat >conf$$subs.sed <<_ACEOF
22045 SHELL!$SHELL$ac_delim
22046 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
22047 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
22048 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
22049 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
22050 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
22051 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
22052 exec_prefix!$exec_prefix$ac_delim
22053 prefix!$prefix$ac_delim
22054 program_transform_name!$program_transform_name$ac_delim
22055 bindir!$bindir$ac_delim
22056 sbindir!$sbindir$ac_delim
22057 libexecdir!$libexecdir$ac_delim
22058 datarootdir!$datarootdir$ac_delim
22059 datadir!$datadir$ac_delim
22060 sysconfdir!$sysconfdir$ac_delim
22061 sharedstatedir!$sharedstatedir$ac_delim
22062 localstatedir!$localstatedir$ac_delim
22063 includedir!$includedir$ac_delim
22064 oldincludedir!$oldincludedir$ac_delim
22065 docdir!$docdir$ac_delim
22066 infodir!$infodir$ac_delim
22067 htmldir!$htmldir$ac_delim
22068 dvidir!$dvidir$ac_delim
22069 pdfdir!$pdfdir$ac_delim
22070 psdir!$psdir$ac_delim
22071 libdir!$libdir$ac_delim
22072 localedir!$localedir$ac_delim
22073 mandir!$mandir$ac_delim
22074 DEFS!$DEFS$ac_delim
22075 ECHO_C!$ECHO_C$ac_delim
22076 ECHO_N!$ECHO_N$ac_delim
22077 ECHO_T!$ECHO_T$ac_delim
22078 LIBS!$LIBS$ac_delim
22079 build_alias!$build_alias$ac_delim
22080 host_alias!$host_alias$ac_delim
22081 target_alias!$target_alias$ac_delim
22082 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
22084 CFLAGS!$CFLAGS$ac_delim
22085 LDFLAGS!$LDFLAGS$ac_delim
22086 CPPFLAGS!$CPPFLAGS$ac_delim
22087 ac_ct_CC!$ac_ct_CC$ac_delim
22088 EXEEXT!$EXEEXT$ac_delim
22089 OBJEXT!$OBJEXT$ac_delim
22091 CXXFLAGS!$CXXFLAGS$ac_delim
22092 ac_ct_CXX!$ac_ct_CXX$ac_delim
22094 subdirs!$subdirs$ac_delim
22095 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
22096 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
22097 build!$build$ac_delim
22098 build_cpu!$build_cpu$ac_delim
22099 build_vendor!$build_vendor$ac_delim
22100 build_os!$build_os$ac_delim
22101 host!$host$ac_delim
22102 host_cpu!$host_cpu$ac_delim
22103 host_vendor!$host_vendor$ac_delim
22104 host_os!$host_os$ac_delim
22105 target!$target$ac_delim
22106 target_cpu!$target_cpu$ac_delim
22107 target_vendor!$target_vendor$ac_delim
22108 target_os!$target_os$ac_delim
22110 HOST_OS!$HOST_OS$ac_delim
22111 TARGET_OS!$TARGET_OS$ac_delim
22112 LINKALL!$LINKALL$ac_delim
22113 NOLINKALL!$NOLINKALL$ac_delim
22114 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
22115 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
22116 ARCH!$ARCH$ac_delim
22117 HOST_ARCH!$HOST_ARCH$ac_delim
22118 ENDIAN!$ENDIAN$ac_delim
22119 GREP!$GREP$ac_delim
22120 EGREP!$EGREP$ac_delim
22121 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22122 BUILD_CC!$BUILD_CC$ac_delim
22123 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22124 BUILD_CXX!$BUILD_CXX$ac_delim
22125 CVSBUILD!$CVSBUILD$ac_delim
22126 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22127 ENABLE_CXX11!$ENABLE_CXX11$ac_delim
22128 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22129 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22130 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22131 ENABLE_WERROR!$ENABLE_WERROR$ac_delim
22132 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22133 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22134 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22135 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22137 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22138 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22139 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22140 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22141 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22144 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
22146 elif $ac_last_try; then
22147 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22148 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22149 { (exit 1); exit 1; }; }
22151 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22155 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22156 if test -n "$ac_eof"; then
22157 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22158 ac_eof=`expr $ac_eof + 1`
22161 cat >>$CONFIG_STATUS <<_ACEOF
22162 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
22163 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22166 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22167 s/^/s,@/; s/!/@,|#_!!_#|/
22170 s/'"$ac_delim"'$/,g/; t
22172 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22173 ' >>$CONFIG_STATUS <conf$$subs.sed
22174 rm -f conf$$subs.sed
22175 cat >>$CONFIG_STATUS <<_ACEOF
22181 for ac_last_try in false false false false false :; do
22182 cat >conf$$subs.sed <<_ACEOF
22183 ENABLE_PIC!$ENABLE_PIC$ac_delim
22184 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22185 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
22186 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22187 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22188 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22189 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22190 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22191 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22192 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22193 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22194 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22195 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22196 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22197 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22199 ifGNUmake!$ifGNUmake$ac_delim
22200 LN_S!$LN_S$ac_delim
22203 DATE!$DATE$ac_delim
22204 FIND!$FIND$ac_delim
22205 MKDIR!$MKDIR$ac_delim
22207 RANLIB!$RANLIB$ac_delim
22212 BINPWD!$BINPWD$ac_delim
22213 GRAPHVIZ!$GRAPHVIZ$ac_delim
22216 NEATO!$NEATO$ac_delim
22217 TWOPI!$TWOPI$ac_delim
22218 CIRCO!$CIRCO$ac_delim
22220 DOTTY!$DOTTY$ac_delim
22221 XDOT_PY!$XDOT_PY$ac_delim
22222 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22223 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22224 INSTALL_DATA!$INSTALL_DATA$ac_delim
22225 BZIP2!$BZIP2$ac_delim
22227 DOXYGEN!$DOXYGEN$ac_delim
22228 GROFF!$GROFF$ac_delim
22229 GZIPBIN!$GZIPBIN$ac_delim
22230 PDFROFF!$PDFROFF$ac_delim
22232 OCAMLC!$OCAMLC$ac_delim
22233 OCAMLOPT!$OCAMLOPT$ac_delim
22234 OCAMLDEP!$OCAMLDEP$ac_delim
22235 OCAMLDOC!$OCAMLDOC$ac_delim
22237 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22238 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22239 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22240 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22241 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22242 LIBADD_DL!$LIBADD_DL$ac_delim
22243 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22244 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22245 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22246 USE_UDIS86!$USE_UDIS86$ac_delim
22247 USE_OPROFILE!$USE_OPROFILE$ac_delim
22248 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22249 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22250 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22251 XML2CONFIG!$XML2CONFIG$ac_delim
22252 LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim
22253 LIBXML2_INC!$LIBXML2_INC$ac_delim
22254 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22255 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22256 MMAP_FILE!$MMAP_FILE$ac_delim
22257 SHLIBEXT!$SHLIBEXT$ac_delim
22258 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22259 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22260 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22261 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22262 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22263 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22264 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22265 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22266 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22267 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22268 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22269 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22270 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22271 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22272 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22273 RPATH!$RPATH$ac_delim
22274 RDYNAMIC!$RDYNAMIC$ac_delim
22275 LIBOBJS!$LIBOBJS$ac_delim
22276 LTLIBOBJS!$LTLIBOBJS$ac_delim
22279 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
22281 elif $ac_last_try; then
22282 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22283 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22284 { (exit 1); exit 1; }; }
22286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22290 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22291 if test -n "$ac_eof"; then
22292 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22293 ac_eof=`expr $ac_eof + 1`
22296 cat >>$CONFIG_STATUS <<_ACEOF
22297 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22298 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22301 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22302 s/^/s,@/; s/!/@,|#_!!_#|/
22305 s/'"$ac_delim"'$/,g/; t
22307 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22308 ' >>$CONFIG_STATUS <conf$$subs.sed
22309 rm -f conf$$subs.sed
22310 cat >>$CONFIG_STATUS <<_ACEOF
22317 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22318 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22319 # trailing colons and then remove the whole line if VPATH becomes empty
22320 # (actually we leave an empty line to preserve line numbers).
22321 if test "x$srcdir" = x.; then
22322 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22323 s/:*\$(srcdir):*/:/
22324 s/:*\${srcdir}:*/:/
22326 s/^\([^=]*=[ ]*\):*/\1/
22332 cat >>$CONFIG_STATUS <<\_ACEOF
22333 fi # test -n "$CONFIG_FILES"
22336 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22339 :[FHLC]) ac_mode=$ac_tag; continue;;
22341 case $ac_mode$ac_tag in
22343 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22344 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22345 { (exit 1); exit 1; }; };;
22346 :[FH]-) ac_tag=-:-;;
22347 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22364 -) ac_f="$tmp/stdin";;
22365 *) # Look for the file first in the build tree, then in the source tree
22366 # (if the path is not absolute). The absolute path cannot be DOS-style,
22367 # because $ac_f cannot contain `:'.
22371 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22373 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22374 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22375 { (exit 1); exit 1; }; };;
22377 ac_file_inputs="$ac_file_inputs $ac_f"
22380 # Let's still pretend it is `configure' which instantiates (i.e., don't
22381 # use $as_me), people would be surprised to read:
22382 # /* config.h. Generated by config.status. */
22383 configure_input="Generated from "`IFS=:
22384 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22385 if test x"$ac_file" != x-; then
22386 configure_input="$ac_file. $configure_input"
22387 { echo "$as_me:$LINENO: creating $ac_file" >&5
22388 echo "$as_me: creating $ac_file" >&6;}
22392 *:-:* | *:-) cat >"$tmp/stdin";;
22397 ac_dir=`$as_dirname -- "$ac_file" ||
22398 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22399 X"$ac_file" : 'X\(//\)[^/]' \| \
22400 X"$ac_file" : 'X\(//\)$' \| \
22401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22407 /^X\(\/\/\)[^/].*/{
22422 -*) as_dir=./$as_dir;;
22424 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22428 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22429 *) as_qdir=$as_dir;;
22431 as_dirs="'$as_qdir' $as_dirs"
22432 as_dir=`$as_dirname -- "$as_dir" ||
22433 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22434 X"$as_dir" : 'X\(//\)[^/]' \| \
22435 X"$as_dir" : 'X\(//\)$' \| \
22436 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22442 /^X\(\/\/\)[^/].*/{
22455 test -d "$as_dir" && break
22457 test -z "$as_dirs" || eval "mkdir $as_dirs"
22458 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22459 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22460 { (exit 1); exit 1; }; }; }
22464 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22466 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22467 # A ".." for each directory in $ac_dir_suffix.
22468 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22469 case $ac_top_builddir_sub in
22470 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22471 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22474 ac_abs_top_builddir=$ac_pwd
22475 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22476 # for backward compatibility:
22477 ac_top_builddir=$ac_top_build_prefix
22480 .) # We are building in place.
22482 ac_top_srcdir=$ac_top_builddir_sub
22483 ac_abs_top_srcdir=$ac_pwd ;;
22484 [\\/]* | ?:[\\/]* ) # Absolute name.
22485 ac_srcdir=$srcdir$ac_dir_suffix;
22486 ac_top_srcdir=$srcdir
22487 ac_abs_top_srcdir=$srcdir ;;
22488 *) # Relative name.
22489 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22490 ac_top_srcdir=$ac_top_build_prefix$srcdir
22491 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22493 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22503 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22504 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22508 cat >>$CONFIG_STATUS <<\_ACEOF
22509 # If the template does not know about datarootdir, expand it.
22510 # FIXME: This hack should be removed a few years after 2.60.
22511 ac_datarootdir_hack=; ac_datarootdir_seen=
22513 case `sed -n '/datarootdir/ {
22522 ' $ac_file_inputs` in
22523 *datarootdir*) ac_datarootdir_seen=yes;;
22524 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22525 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22526 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22528 cat >>$CONFIG_STATUS <<_ACEOF
22529 ac_datarootdir_hack='
22530 s&@datadir@&$datadir&g
22531 s&@docdir@&$docdir&g
22532 s&@infodir@&$infodir&g
22533 s&@localedir@&$localedir&g
22534 s&@mandir@&$mandir&g
22535 s&\\\${datarootdir}&$datarootdir&g' ;;
22539 # Neutralize VPATH when `$srcdir' = `.'.
22540 # Shell code in configure.ac might set extrasub.
22541 # FIXME: do we really want to maintain this feature?
22542 cat >>$CONFIG_STATUS <<_ACEOF
22546 cat >>$CONFIG_STATUS <<\_ACEOF
22548 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22549 s&@configure_input@&$configure_input&;t t
22550 s&@top_builddir@&$ac_top_builddir_sub&;t t
22551 s&@srcdir@&$ac_srcdir&;t t
22552 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22553 s&@top_srcdir@&$ac_top_srcdir&;t t
22554 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22555 s&@builddir@&$ac_builddir&;t t
22556 s&@abs_builddir@&$ac_abs_builddir&;t t
22557 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22558 s&@INSTALL@&$ac_INSTALL&;t t
22559 $ac_datarootdir_hack
22560 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22563 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22564 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22565 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22566 which seems to be undefined. Please make sure it is defined." >&5
22567 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22568 which seems to be undefined. Please make sure it is defined." >&2;}
22572 -) cat "$tmp/out"; rm -f "$tmp/out";;
22573 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22582 # Transform confdefs.h into a sed script `conftest.defines', that
22583 # substitutes the proper values into config.h.in to produce config.h.
22584 rm -f conftest.defines conftest.tail
22585 # First, append a space to every undef/define line, to ease matching.
22586 echo 's/$/ /' >conftest.defines
22587 # Then, protect against being on the right side of a sed subst, or in
22588 # an unquoted here document, in config.status. If some macros were
22589 # called several times there might be several #defines for the same
22590 # symbol, which is useless. But do not sort them, since the last
22591 # AC_DEFINE must be honored.
22592 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22593 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22594 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22595 # PARAMS is the parameter list in the macro definition--in most cases, it's
22596 # just an empty string.
22597 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22598 ac_dB='\\)[ (].*,\\1define\\2'
22606 s/^[ ]*#[ ]*define[ ][ ]*//
22611 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22612 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22613 ' >>conftest.defines
22615 # Remove the space that was appended to ease matching.
22616 # Then replace #undef with comments. This is necessary, for
22617 # example, in the case of _POSIX_SOURCE, which is predefined and required
22618 # on some systems where configure will not decide to define it.
22619 # (The regexp can be short, since the line contains either #define or #undef.)
22621 s,^[ #]*u.*,/* & */,' >>conftest.defines
22623 # Break up conftest.defines:
22624 ac_max_sed_lines=50
22626 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22627 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22628 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22630 ac_in='$ac_file_inputs'
22631 ac_out='"$tmp/out1"'
22632 ac_nxt='"$tmp/out2"'
22636 # Write a here document:
22637 cat >>$CONFIG_STATUS <<_ACEOF
22638 # First, check the format of the line:
22639 cat >"\$tmp/defines.sed" <<\\CEOF
22640 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22641 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22645 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22647 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22648 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22649 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22650 grep . conftest.tail >/dev/null || break
22651 rm -f conftest.defines
22652 mv conftest.tail conftest.defines
22654 rm -f conftest.defines conftest.tail
22656 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22657 cat >>$CONFIG_STATUS <<\_ACEOF
22658 if test x"$ac_file" != x-; then
22659 echo "/* $configure_input */" >"$tmp/config.h"
22660 cat "$ac_result" >>"$tmp/config.h"
22661 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22662 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22663 echo "$as_me: $ac_file is unchanged" >&6;}
22666 mv "$tmp/config.h" $ac_file
22669 echo "/* $configure_input */"
22675 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22676 echo "$as_me: executing $ac_file commands" >&6;}
22681 case $ac_file$ac_mode in
22682 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22683 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22684 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22685 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22686 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22687 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22688 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22689 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22690 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22691 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22692 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22693 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22694 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22695 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22696 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22697 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22698 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22699 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22700 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22701 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22702 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22703 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22704 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22705 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22706 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22707 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22713 { (exit 0); exit 0; }
22715 chmod +x $CONFIG_STATUS
22716 ac_clean_files=$ac_clean_files_save
22719 # configure is writing to config.log, and then calls config.status.
22720 # config.status does its own redirection, appending to config.log.
22721 # Unfortunately, on DOS this fails, as config.log is still kept open
22722 # by configure, so config.status won't be able to write to it; its
22723 # output is simply discarded. So we exec the FD to /dev/null,
22724 # effectively closing config.log, so it can be properly (re)opened and
22725 # appended to by config.status. When coming back to configure, we
22726 # need to make the FD available again.
22727 if test "$no_create" != yes; then
22729 ac_config_status_args=
22730 test "$silent" = yes &&
22731 ac_config_status_args="$ac_config_status_args --quiet"
22733 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22735 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22736 # would make configure fail if this is the last instruction.
22737 $ac_cs_success || { (exit 1); exit 1; }
22741 # CONFIG_SUBDIRS section.
22743 if test "$no_recursion" != yes; then
22745 # Remove --cache-file and --srcdir arguments so they do not pile up.
22746 ac_sub_configure_args=
22748 eval "set x $ac_configure_args"
22752 if test -n "$ac_prev"; then
22757 -cache-file | --cache-file | --cache-fil | --cache-fi \
22758 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22759 ac_prev=cache_file ;;
22760 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22761 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22764 --config-cache | -C)
22766 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22768 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22770 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22772 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22776 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22778 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22782 # Always prepend --prefix to ensure using the same prefix
22783 # in subdir configurations.
22784 ac_arg="--prefix=$prefix"
22786 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22788 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22791 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22793 # Do not complain, so a configure script can configure whichever
22794 # parts of a large source tree are present.
22795 test -d "$srcdir/$ac_dir" || continue
22797 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22798 echo "$as_me:$LINENO: $ac_msg" >&5
22802 -*) as_dir=./$as_dir;;
22804 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22808 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22809 *) as_qdir=$as_dir;;
22811 as_dirs="'$as_qdir' $as_dirs"
22812 as_dir=`$as_dirname -- "$as_dir" ||
22813 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22814 X"$as_dir" : 'X\(//\)[^/]' \| \
22815 X"$as_dir" : 'X\(//\)$' \| \
22816 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22818 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22822 /^X\(\/\/\)[^/].*/{
22835 test -d "$as_dir" && break
22837 test -z "$as_dirs" || eval "mkdir $as_dirs"
22838 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22839 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22840 { (exit 1); exit 1; }; }; }
22844 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22846 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22847 # A ".." for each directory in $ac_dir_suffix.
22848 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22849 case $ac_top_builddir_sub in
22850 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22851 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22854 ac_abs_top_builddir=$ac_pwd
22855 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22856 # for backward compatibility:
22857 ac_top_builddir=$ac_top_build_prefix
22860 .) # We are building in place.
22862 ac_top_srcdir=$ac_top_builddir_sub
22863 ac_abs_top_srcdir=$ac_pwd ;;
22864 [\\/]* | ?:[\\/]* ) # Absolute name.
22865 ac_srcdir=$srcdir$ac_dir_suffix;
22866 ac_top_srcdir=$srcdir
22867 ac_abs_top_srcdir=$srcdir ;;
22868 *) # Relative name.
22869 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22870 ac_top_srcdir=$ac_top_build_prefix$srcdir
22871 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22873 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22878 # Check for guested configure; otherwise get Cygnus style configure.
22879 if test -f "$ac_srcdir/configure.gnu"; then
22880 ac_sub_configure=$ac_srcdir/configure.gnu
22881 elif test -f "$ac_srcdir/configure"; then
22882 ac_sub_configure=$ac_srcdir/configure
22883 elif test -f "$ac_srcdir/configure.in"; then
22884 # This should be Cygnus configure.
22885 ac_sub_configure=$ac_aux_dir/configure
22887 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22888 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22892 # The recursion is here.
22893 if test -n "$ac_sub_configure"; then
22894 # Make the cache file name correct relative to the subdirectory.
22895 case $cache_file in
22896 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22897 *) # Relative name.
22898 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22901 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22902 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22903 # The eval makes quoting arguments work.
22904 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22905 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22906 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22907 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22908 { (exit 1); exit 1; }; }