2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.1svn.
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.1svn'
565 PACKAGE_STRING='LLVM 3.1svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
689 ENABLE_EXPENSIVE_CHECKS
705 LLVM_ENUM_ASM_PRINTERS
706 LLVM_ENUM_ASM_PARSERS
707 LLVM_ENUM_DISASSEMBLERS
758 HAVE_LINK_VERSION_SCRIPT
761 CONVENIENCE_LTDL_TRUE
762 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
766 COVERED_SWITCH_DEFAULT
770 INTEL_JITEVENTS_INCDIR
771 INTEL_JITEVENTS_LIBDIR
790 ENABLE_VISIBILITY_INLINES_HIDDEN
796 ac_precious_vars='build_alias
807 ac_subdirs_all='projects/llvm-gcc
811 projects/llvm-poolalloc
814 projects/llvm-stacker
822 # Initialize some variables set by options.
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name=s,x,x,
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\$ac_option
880 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir | --bindir | --bindi | --bind | --bin | --bi)
892 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
895 -build | --build | --buil | --bui | --bu)
896 ac_prev=build_alias ;;
897 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898 build_alias=$ac_optarg ;;
900 -cache-file | --cache-file | --cache-fil | --cache-fi \
901 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902 ac_prev=cache_file ;;
903 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905 cache_file=$ac_optarg ;;
908 cache_file=config.cache ;;
910 -datadir | --datadir | --datadi | --datad)
912 -datadir=* | --datadir=* | --datadi=* | --datad=*)
913 datadir=$ac_optarg ;;
915 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916 | --dataroo | --dataro | --datar)
917 ac_prev=datarootdir ;;
918 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920 datarootdir=$ac_optarg ;;
922 -disable-* | --disable-*)
923 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_$ac_feature=no ;;
931 -docdir | --docdir | --docdi | --doc | --do)
933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
941 -enable-* | --enable-*)
942 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_$ac_feature=\$ac_optarg ;;
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
963 -help | --help | --hel | --he | -h)
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
979 htmldir=$ac_optarg ;;
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
993 -libdir | --libdir | --libdi | --libd)
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1084 -psdir | --psdir | --psdi | --psd | --ps)
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1097 sbindir=$ac_optarg ;;
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1108 sharedstatedir=$ac_optarg ;;
1110 -site | --site | --sit)
1112 -site=* | --site=* | --sit=*)
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1139 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_$ac_package=\$ac_optarg ;;
1147 -without-* | --without-*)
1148 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_$ac_package=no ;;
1157 # Obsolete; use --with-x.
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
1180 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1189 # FIXME: should be removed in autoconf 3.0.
1190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
1205 # Be sure to have absolute directory names.
1206 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val=\$$ac_var
1213 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1225 target=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229 if test "x$build_alias" = x; then
1230 cross_compiling=maybe
1231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1241 test "$silent" = yes && exec 6>/dev/null
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1322 \`configure' configures LLVM 3.1svn to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1380 --build=BUILD configure for building on BUILD [guessed]
1381 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1382 --target=TARGET configure for building compilers for TARGET [HOST]
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive ) echo "Configuration of LLVM 3.1svn:";;
1393 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1394 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1395 --enable-polly Use polly if available (default is YES)
1396 --enable-libcpp Use libc++ if available (default is NO)
1397 --enable-optimized Compile with optimizations enabled (default is NO)
1398 --enable-profiling Compile with profiling enabled (default is NO)
1399 --enable-assertions Compile with assertion checks enabled (default is
1401 --enable-expensive-checks
1402 Compile with expensive debug checks enabled (default
1404 --enable-debug-runtime Build runtime libs with debug symbols (default is
1406 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1407 optimization is on and YES if it's off)
1408 --enable-jit Enable Just In Time Compiling (default is YES)
1409 --enable-docs Build documents (default is YES)
1410 --enable-doxygen Build doxygen documentation (default is NO)
1411 --enable-threads Use threads if available (default is YES)
1412 --enable-pthreads Use pthreads if available (default is YES)
1413 --enable-pic Build LLVM with Position Independent Code (default
1415 --enable-shared Build a shared library and link tools against it
1417 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1418 Win32 DLL (default is NO)
1419 --enable-timestamps Enable embedding timestamp information in build
1421 --enable-targets Build specific host targets: all or
1422 target1,target2,... Valid targets are: host, x86,
1423 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
1424 xcore, msp430, ptx, cbe, and cpp (default=all)
1425 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1427 --enable-bindings Build specific language bindings:
1428 all,auto,none,{binding-name} (default=auto)
1429 --enable-libffi Check for the presence of libffi (default is NO)
1430 --enable-ltdl-install install libltdl
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-optimize-option Select the compiler options to use for optimized
1437 --with-extra-options Specify additional options to compile LLVM with
1438 --with-extra-ld-options Specify additional options to link LLVM with
1439 --with-ocaml-libdir Specify install location for ocaml bindings (default
1441 --with-clang-srcdir Directory to the out-of-tree Clang source
1442 --with-clang-resource-dir
1443 Relative directory from the Clang binary for
1445 --with-c-include-dirs Colon separated list of directories clang will
1447 --with-gcc-toolchain Directory where gcc is installed.
1448 --with-binutils-include Specify path to binutils/include/ containing
1449 plugin-api.h file for gold plugin.
1450 --with-bug-report-url Specify the URL where bug reports should be
1451 submitted (default=http://llvm.org/bugs/)
1452 --with-internal-prefix Installation directory for internal files
1453 --with-tclinclude directory where tcl headers are
1454 --with-udis86=<path> Use udis86 external x86 disassembler library
1455 --with-oprofile=<prefix>
1456 Tell OProfile >= 0.9.4 how to symbolize JIT output
1457 --with-intel-jitevents=<vtune-amplifier-dir>
1458 Specify location of run-time support library for
1460 (default=/opt/intel/vtune_amplifier_xe_2011)
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1476 Report bugs to <http://llvm.org/bugs/>.
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484 test -d "$ac_dir" || continue
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1490 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1504 .) # We are building in place.
1506 ac_top_srcdir=$ac_top_builddir_sub
1507 ac_abs_top_srcdir=$ac_pwd ;;
1508 [\\/]* | ?:[\\/]* ) # Absolute name.
1509 ac_srcdir=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir=$srcdir
1511 ac_abs_top_srcdir=$srcdir ;;
1513 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" || { ac_status=$?; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 cd "$ac_pwd" || { ac_status=$?; break; }
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1537 LLVM configure 3.1svn
1538 generated by GNU Autoconf 2.60
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1545 Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign.
1549 cat >config.log <<_ACEOF
1550 This file contains any messages produced by compilers while
1551 running configure, to aid debugging if configure makes a mistake.
1553 It was created by LLVM $as_me 3.1svn, which was
1554 generated by GNU Autoconf 2.60. Invocation command line was
1566 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1572 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1575 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1576 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1577 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1579 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1580 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1581 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 test -z "$as_dir" && as_dir=.
1590 echo "PATH: $as_dir"
1606 # Keep a trace of the command line.
1607 # Strip out --no-create and --no-recursion so they do not pile up.
1608 # Strip out --silent because we don't want to record it for future runs.
1609 # Also quote any args containing shell meta-characters.
1610 # Make two passes to allow for proper duplicate-argument suppression.
1614 ac_must_keep_next=false
1620 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622 | -silent | --silent | --silen | --sile | --sil)
1625 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1628 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1630 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1631 if test $ac_must_keep_next = true; then
1632 ac_must_keep_next=false # Got value, back to normal.
1635 *=* | --config-cache | -C | -disable-* | --disable-* \
1636 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638 | -with-* | --with-* | -without-* | --without-* | --x)
1639 case "$ac_configure_args0 " in
1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1643 -* ) ac_must_keep_next=true ;;
1646 ac_configure_args="$ac_configure_args '$ac_arg'"
1651 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1654 # When interrupted or exit'd, cleanup temporary files, and complete
1655 # config.log. We remove comments because anyway the quotes in there
1656 # would cause problems or look ugly.
1657 # WARNING: Use '\'' to represent an apostrophe within the trap.
1658 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659 trap 'exit_status=$?
1660 # Save into config.log some information that might help in debugging.
1665 ## ---------------- ##
1666 ## Cache variables. ##
1667 ## ---------------- ##
1670 # The following way of writing the cache mishandles newlines in values,
1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673 eval ac_val=\$$ac_var
1677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1681 _ | IFS | as_nl) ;; #(
1682 *) $as_unset $ac_var ;;
1687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
1690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1707 for ac_var in $ac_subst_vars
1709 eval ac_val=\$$ac_var
1711 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713 echo "$ac_var='\''$ac_val'\''"
1717 if test -n "$ac_subst_files"; then
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1724 for ac_var in $ac_subst_files
1726 eval ac_val=\$$ac_var
1728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 echo "$ac_var='\''$ac_val'\''"
1735 if test -s confdefs.h; then
1745 test "$ac_signal" != 0 &&
1746 echo "$as_me: caught signal $ac_signal"
1747 echo "$as_me: exit $exit_status"
1749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1753 for ac_signal in 1 2 13 15; do
1754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1761 # Predefined preprocessor variables.
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791 set x "$CONFIG_SITE"
1792 elif test "x$prefix" != xNONE; then
1793 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1795 set x "$ac_default_prefix/share/config.site" \
1796 "$ac_default_prefix/etc/config.site"
1801 if test -r "$ac_site_file"; then
1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803 echo "$as_me: loading site script $ac_site_file" >&6;}
1804 sed 's/^/| /' "$ac_site_file" >&5
1809 if test -r "$cache_file"; then
1810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814 echo "$as_me: loading cache $cache_file" >&6;}
1816 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817 *) . "./$cache_file";;
1821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822 echo "$as_me: creating cache $cache_file" >&6;}
1826 # Check that the precious variables saved in the cache have kept the same
1828 ac_cache_corrupted=false
1829 for ac_var in $ac_precious_vars; do
1830 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831 eval ac_new_set=\$ac_env_${ac_var}_set
1832 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833 eval ac_new_val=\$ac_env_${ac_var}_value
1834 case $ac_old_set,$ac_new_set in
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838 ac_cache_corrupted=: ;;
1840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842 ac_cache_corrupted=: ;;
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
1846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1849 echo "$as_me: former value: $ac_old_val" >&2;}
1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1851 echo "$as_me: current value: $ac_new_val" >&2;}
1852 ac_cache_corrupted=:
1855 # Pass precious variables to config.status.
1856 if test "$ac_new_set" = set; then
1858 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859 *) ac_arg=$ac_var=$ac_new_val ;;
1861 case " $ac_configure_args " in
1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1863 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1867 if $ac_cache_corrupted; then
1868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872 { (exit 1); exit 1; }; }
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907 cat >>confdefs.h <<\_ACEOF
1908 #define LLVM_VERSION_MAJOR 3
1912 cat >>confdefs.h <<\_ACEOF
1913 #define LLVM_VERSION_MINOR 1
1917 LLVM_COPYRIGHT="Copyright (c) 2003-2012 University of Illinois at Urbana-Champaign."
1926 for ac_dir in autoconf "$srcdir"/autoconf; do
1927 if test -f "$ac_dir/install-sh"; then
1929 ac_install_sh="$ac_aux_dir/install-sh -c"
1931 elif test -f "$ac_dir/install.sh"; then
1933 ac_install_sh="$ac_aux_dir/install.sh -c"
1935 elif test -f "$ac_dir/shtool"; then
1937 ac_install_sh="$ac_aux_dir/shtool install -c"
1941 if test -z "$ac_aux_dir"; then
1942 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1943 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1944 { (exit 1); exit 1; }; }
1947 # These three variables are undocumented and unsupported,
1948 # and are intended to be withdrawn in a future Autoconf release.
1949 # They can cause serious problems if a builder's source tree is in a directory
1950 # whose full name contains unusual characters.
1951 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1952 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1953 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1957 if test ${srcdir} != "." ; then
1958 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1959 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1960 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1961 { (exit 1); exit 1; }; }
1966 ac_cpp='$CPP $CPPFLAGS'
1967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1970 if test -n "$ac_tool_prefix"; then
1971 for ac_prog in clang llvm-gcc gcc
1973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
1976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
1977 if test "${ac_cv_prog_CC+set}" = set; then
1978 echo $ECHO_N "(cached) $ECHO_C" >&6
1980 if test -n "$CC"; then
1981 ac_cv_prog_CC="$CC" # Let the user override the test.
1983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1987 test -z "$as_dir" && as_dir=.
1988 for ac_exec_ext in '' $ac_executable_extensions; do
1989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
1990 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2001 if test -n "$CC"; then
2002 { echo "$as_me:$LINENO: result: $CC" >&5
2003 echo "${ECHO_T}$CC" >&6; }
2005 { echo "$as_me:$LINENO: result: no" >&5
2006 echo "${ECHO_T}no" >&6; }
2010 test -n "$CC" && break
2013 if test -z "$CC"; then
2015 for ac_prog in clang llvm-gcc gcc
2017 # Extract the first word of "$ac_prog", so it can be a program name with args.
2018 set dummy $ac_prog; ac_word=$2
2019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2021 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 if test -n "$ac_ct_CC"; then
2025 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2031 test -z "$as_dir" && as_dir=.
2032 for ac_exec_ext in '' $ac_executable_extensions; do
2033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2034 ac_cv_prog_ac_ct_CC="$ac_prog"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2044 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2045 if test -n "$ac_ct_CC"; then
2046 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2047 echo "${ECHO_T}$ac_ct_CC" >&6; }
2049 { echo "$as_me:$LINENO: result: no" >&5
2050 echo "${ECHO_T}no" >&6; }
2054 test -n "$ac_ct_CC" && break
2057 if test "x$ac_ct_CC" = x; then
2060 case $cross_compiling:$ac_tool_warned in
2062 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2063 whose name does not start with the host triplet. If you think this
2064 configuration is useful to you, please write to autoconf@gnu.org." >&5
2065 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2066 whose name does not start with the host triplet. If you think this
2067 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2068 ac_tool_warned=yes ;;
2075 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2076 See \`config.log' for more details." >&5
2077 echo "$as_me: error: no acceptable C compiler found in \$PATH
2078 See \`config.log' for more details." >&2;}
2079 { (exit 1); exit 1; }; }
2081 # Provide some information about the compiler.
2082 echo "$as_me:$LINENO: checking for C compiler version" >&5
2083 ac_compiler=`set X $ac_compile; echo $2`
2084 { (ac_try="$ac_compiler --version >&5"
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2090 (eval "$ac_compiler --version >&5") 2>&5
2092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2093 (exit $ac_status); }
2094 { (ac_try="$ac_compiler -v >&5"
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2100 (eval "$ac_compiler -v >&5") 2>&5
2102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103 (exit $ac_status); }
2104 { (ac_try="$ac_compiler -V >&5"
2106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2107 *) ac_try_echo=$ac_try;;
2109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2110 (eval "$ac_compiler -V >&5") 2>&5
2112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2113 (exit $ac_status); }
2115 cat >conftest.$ac_ext <<_ACEOF
2118 cat confdefs.h >>conftest.$ac_ext
2119 cat >>conftest.$ac_ext <<_ACEOF
2120 /* end confdefs.h. */
2130 ac_clean_files_save=$ac_clean_files
2131 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2132 # Try to create an executable without -o first, disregard a.out.
2133 # It will help us diagnose broken compilers, and finding out an intuition
2135 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2136 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2137 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2139 # List of possible output files, starting from the most likely.
2140 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2141 # only as a last resort. b.out is created by i960 compilers.
2142 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2144 # The IRIX 6 linker writes into existing files which may not be
2145 # executable, retaining their permissions. Remove them first so a
2146 # subsequent execution test works.
2148 for ac_file in $ac_files
2151 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2152 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2157 if { (ac_try="$ac_link_default"
2159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2160 *) ac_try_echo=$ac_try;;
2162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2163 (eval "$ac_link_default") 2>&5
2165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2166 (exit $ac_status); }; then
2167 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2168 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2169 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2170 # so that the user can short-circuit this test for compilers unknown to
2172 for ac_file in $ac_files
2174 test -f "$ac_file" || continue
2176 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2179 # We found the default executable, but exeext='' is most
2183 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2185 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2187 # We set ac_cv_exeext here because the later test for it is not
2188 # safe: cross compilers may not add the suffix if given an `-o'
2189 # argument, so we may need to know it at that point already.
2190 # Even if this section looks crufty: it has the advantage of
2197 test "$ac_cv_exeext" = no && ac_cv_exeext=
2200 echo "$as_me: failed program was:" >&5
2201 sed 's/^/| /' conftest.$ac_ext >&5
2203 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2204 See \`config.log' for more details." >&5
2205 echo "$as_me: error: C compiler cannot create executables
2206 See \`config.log' for more details." >&2;}
2207 { (exit 77); exit 77; }; }
2210 ac_exeext=$ac_cv_exeext
2211 { echo "$as_me:$LINENO: result: $ac_file" >&5
2212 echo "${ECHO_T}$ac_file" >&6; }
2214 # Check that the compiler produces executables we can run. If not, either
2215 # the compiler is broken, or we cross compile.
2216 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2217 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2218 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2219 # If not cross compiling, check that we can run a simple program.
2220 if test "$cross_compiling" != yes; then
2221 if { ac_try='./$ac_file'
2222 { (case "(($ac_try" in
2223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2224 *) ac_try_echo=$ac_try;;
2226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2227 (eval "$ac_try") 2>&5
2229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2230 (exit $ac_status); }; }; then
2233 if test "$cross_compiling" = maybe; then
2236 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2237 If you meant to cross compile, use \`--host'.
2238 See \`config.log' for more details." >&5
2239 echo "$as_me: error: cannot run C compiled programs.
2240 If you meant to cross compile, use \`--host'.
2241 See \`config.log' for more details." >&2;}
2242 { (exit 1); exit 1; }; }
2246 { echo "$as_me:$LINENO: result: yes" >&5
2247 echo "${ECHO_T}yes" >&6; }
2249 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2250 ac_clean_files=$ac_clean_files_save
2251 # Check that the compiler produces executables we can run. If not, either
2252 # the compiler is broken, or we cross compile.
2253 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2254 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2255 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2256 echo "${ECHO_T}$cross_compiling" >&6; }
2258 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2259 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2260 if { (ac_try="$ac_link"
2262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2263 *) ac_try_echo=$ac_try;;
2265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2266 (eval "$ac_link") 2>&5
2268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2269 (exit $ac_status); }; then
2270 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2271 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2272 # work properly (i.e., refer to `conftest.exe'), while it won't with
2274 for ac_file in conftest.exe conftest conftest.*; do
2275 test -f "$ac_file" || continue
2277 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2278 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2284 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2285 See \`config.log' for more details." >&5
2286 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2287 See \`config.log' for more details." >&2;}
2288 { (exit 1); exit 1; }; }
2291 rm -f conftest$ac_cv_exeext
2292 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2293 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2295 rm -f conftest.$ac_ext
2296 EXEEXT=$ac_cv_exeext
2298 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2299 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2300 if test "${ac_cv_objext+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2303 cat >conftest.$ac_ext <<_ACEOF
2306 cat confdefs.h >>conftest.$ac_ext
2307 cat >>conftest.$ac_ext <<_ACEOF
2308 /* end confdefs.h. */
2318 rm -f conftest.o conftest.obj
2319 if { (ac_try="$ac_compile"
2321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2322 *) ac_try_echo=$ac_try;;
2324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2325 (eval "$ac_compile") 2>&5
2327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2328 (exit $ac_status); }; then
2329 for ac_file in conftest.o conftest.obj conftest.*; do
2330 test -f "$ac_file" || continue;
2332 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2333 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2338 echo "$as_me: failed program was:" >&5
2339 sed 's/^/| /' conftest.$ac_ext >&5
2341 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2342 See \`config.log' for more details." >&5
2343 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2344 See \`config.log' for more details." >&2;}
2345 { (exit 1); exit 1; }; }
2348 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2350 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2351 echo "${ECHO_T}$ac_cv_objext" >&6; }
2352 OBJEXT=$ac_cv_objext
2354 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2355 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2356 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2357 echo $ECHO_N "(cached) $ECHO_C" >&6
2359 cat >conftest.$ac_ext <<_ACEOF
2362 cat confdefs.h >>conftest.$ac_ext
2363 cat >>conftest.$ac_ext <<_ACEOF
2364 /* end confdefs.h. */
2377 rm -f conftest.$ac_objext
2378 if { (ac_try="$ac_compile"
2380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2381 *) ac_try_echo=$ac_try;;
2383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2384 (eval "$ac_compile") 2>conftest.er1
2386 grep -v '^ *+' conftest.er1 >conftest.err
2388 cat conftest.err >&5
2389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2390 (exit $ac_status); } &&
2391 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2392 { (case "(($ac_try" in
2393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394 *) ac_try_echo=$ac_try;;
2396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2397 (eval "$ac_try") 2>&5
2399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2400 (exit $ac_status); }; } &&
2401 { ac_try='test -s conftest.$ac_objext'
2402 { (case "(($ac_try" in
2403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2404 *) ac_try_echo=$ac_try;;
2406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2407 (eval "$ac_try") 2>&5
2409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2410 (exit $ac_status); }; }; then
2413 echo "$as_me: failed program was:" >&5
2414 sed 's/^/| /' conftest.$ac_ext >&5
2419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2420 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2423 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2424 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2425 GCC=`test $ac_compiler_gnu = yes && echo yes`
2426 ac_test_CFLAGS=${CFLAGS+set}
2427 ac_save_CFLAGS=$CFLAGS
2428 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2429 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2430 if test "${ac_cv_prog_cc_g+set}" = set; then
2431 echo $ECHO_N "(cached) $ECHO_C" >&6
2433 ac_save_c_werror_flag=$ac_c_werror_flag
2434 ac_c_werror_flag=yes
2437 cat >conftest.$ac_ext <<_ACEOF
2440 cat confdefs.h >>conftest.$ac_ext
2441 cat >>conftest.$ac_ext <<_ACEOF
2442 /* end confdefs.h. */
2452 rm -f conftest.$ac_objext
2453 if { (ac_try="$ac_compile"
2455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2456 *) ac_try_echo=$ac_try;;
2458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2459 (eval "$ac_compile") 2>conftest.er1
2461 grep -v '^ *+' conftest.er1 >conftest.err
2463 cat conftest.err >&5
2464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2465 (exit $ac_status); } &&
2466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2467 { (case "(($ac_try" in
2468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2469 *) ac_try_echo=$ac_try;;
2471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2472 (eval "$ac_try") 2>&5
2474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2475 (exit $ac_status); }; } &&
2476 { ac_try='test -s conftest.$ac_objext'
2477 { (case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2482 (eval "$ac_try") 2>&5
2484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2485 (exit $ac_status); }; }; then
2488 echo "$as_me: failed program was:" >&5
2489 sed 's/^/| /' conftest.$ac_ext >&5
2492 cat >conftest.$ac_ext <<_ACEOF
2495 cat confdefs.h >>conftest.$ac_ext
2496 cat >>conftest.$ac_ext <<_ACEOF
2497 /* end confdefs.h. */
2507 rm -f conftest.$ac_objext
2508 if { (ac_try="$ac_compile"
2510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2511 *) ac_try_echo=$ac_try;;
2513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2514 (eval "$ac_compile") 2>conftest.er1
2516 grep -v '^ *+' conftest.er1 >conftest.err
2518 cat conftest.err >&5
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); } &&
2521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2522 { (case "(($ac_try" in
2523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2524 *) ac_try_echo=$ac_try;;
2526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2527 (eval "$ac_try") 2>&5
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }; } &&
2531 { ac_try='test -s conftest.$ac_objext'
2532 { (case "(($ac_try" in
2533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2534 *) ac_try_echo=$ac_try;;
2536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2537 (eval "$ac_try") 2>&5
2539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2540 (exit $ac_status); }; }; then
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2546 ac_c_werror_flag=$ac_save_c_werror_flag
2548 cat >conftest.$ac_ext <<_ACEOF
2551 cat confdefs.h >>conftest.$ac_ext
2552 cat >>conftest.$ac_ext <<_ACEOF
2553 /* end confdefs.h. */
2563 rm -f conftest.$ac_objext
2564 if { (ac_try="$ac_compile"
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_compile") 2>conftest.er1
2572 grep -v '^ *+' conftest.er1 >conftest.err
2574 cat conftest.err >&5
2575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2576 (exit $ac_status); } &&
2577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2578 { (case "(($ac_try" in
2579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2580 *) ac_try_echo=$ac_try;;
2582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2583 (eval "$ac_try") 2>&5
2585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2586 (exit $ac_status); }; } &&
2587 { ac_try='test -s conftest.$ac_objext'
2588 { (case "(($ac_try" in
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_try") 2>&5
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; }; then
2599 echo "$as_me: failed program was:" >&5
2600 sed 's/^/| /' conftest.$ac_ext >&5
2605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2612 ac_c_werror_flag=$ac_save_c_werror_flag
2614 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2615 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2616 if test "$ac_test_CFLAGS" = set; then
2617 CFLAGS=$ac_save_CFLAGS
2618 elif test $ac_cv_prog_cc_g = yes; then
2619 if test "$GCC" = yes; then
2625 if test "$GCC" = yes; then
2631 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2632 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2633 if test "${ac_cv_prog_cc_c89+set}" = set; then
2634 echo $ECHO_N "(cached) $ECHO_C" >&6
2636 ac_cv_prog_cc_c89=no
2638 cat >conftest.$ac_ext <<_ACEOF
2641 cat confdefs.h >>conftest.$ac_ext
2642 cat >>conftest.$ac_ext <<_ACEOF
2643 /* end confdefs.h. */
2646 #include <sys/types.h>
2647 #include <sys/stat.h>
2648 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2649 struct buf { int x; };
2650 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2651 static char *e (p, i)
2657 static char *f (char * (*g) (char **, int), char **p, ...)
2662 s = g (p, va_arg (v,int));
2667 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2668 function prototypes and stuff, but not '\xHH' hex character constants.
2669 These don't provoke an error unfortunately, instead are silently treated
2670 as 'x'. The following induces an error, until -std is added to get
2671 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2672 array size at least. It's necessary to write '\x00'==0 to get something
2673 that's true only with -std. */
2674 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2676 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2677 inside strings and character constants. */
2679 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2681 int test (int i, double x);
2682 struct s1 {int (*f) (int a);};
2683 struct s2 {int (*f) (double a);};
2684 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2690 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2695 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2696 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2698 CC="$ac_save_CC $ac_arg"
2699 rm -f conftest.$ac_objext
2700 if { (ac_try="$ac_compile"
2702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compile") 2>conftest.er1
2708 grep -v '^ *+' conftest.er1 >conftest.err
2710 cat conftest.err >&5
2711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2712 (exit $ac_status); } &&
2713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2714 { (case "(($ac_try" in
2715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2716 *) ac_try_echo=$ac_try;;
2718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2719 (eval "$ac_try") 2>&5
2721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2722 (exit $ac_status); }; } &&
2723 { ac_try='test -s conftest.$ac_objext'
2724 { (case "(($ac_try" in
2725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2726 *) ac_try_echo=$ac_try;;
2728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2729 (eval "$ac_try") 2>&5
2731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2732 (exit $ac_status); }; }; then
2733 ac_cv_prog_cc_c89=$ac_arg
2735 echo "$as_me: failed program was:" >&5
2736 sed 's/^/| /' conftest.$ac_ext >&5
2741 rm -f core conftest.err conftest.$ac_objext
2742 test "x$ac_cv_prog_cc_c89" != "xno" && break
2744 rm -f conftest.$ac_ext
2749 case "x$ac_cv_prog_cc_c89" in
2751 { echo "$as_me:$LINENO: result: none needed" >&5
2752 echo "${ECHO_T}none needed" >&6; } ;;
2754 { echo "$as_me:$LINENO: result: unsupported" >&5
2755 echo "${ECHO_T}unsupported" >&6; } ;;
2757 CC="$CC $ac_cv_prog_cc_c89"
2758 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2759 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2764 ac_cpp='$CPP $CPPFLAGS'
2765 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2770 ac_cpp='$CXXCPP $CPPFLAGS'
2771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2774 if test -z "$CXX"; then
2775 if test -n "$CCC"; then
2778 if test -n "$ac_tool_prefix"; then
2779 for ac_prog in clang++ llvm-g++ g++
2781 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2782 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2785 if test "${ac_cv_prog_CXX+set}" = set; then
2786 echo $ECHO_N "(cached) $ECHO_C" >&6
2788 if test -n "$CXX"; then
2789 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2795 test -z "$as_dir" && as_dir=.
2796 for ac_exec_ext in '' $ac_executable_extensions; do
2797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2798 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2799 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2809 if test -n "$CXX"; then
2810 { echo "$as_me:$LINENO: result: $CXX" >&5
2811 echo "${ECHO_T}$CXX" >&6; }
2813 { echo "$as_me:$LINENO: result: no" >&5
2814 echo "${ECHO_T}no" >&6; }
2818 test -n "$CXX" && break
2821 if test -z "$CXX"; then
2823 for ac_prog in clang++ llvm-g++ g++
2825 # Extract the first word of "$ac_prog", so it can be a program name with args.
2826 set dummy $ac_prog; ac_word=$2
2827 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2828 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2829 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2830 echo $ECHO_N "(cached) $ECHO_C" >&6
2832 if test -n "$ac_ct_CXX"; then
2833 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2839 test -z "$as_dir" && as_dir=.
2840 for ac_exec_ext in '' $ac_executable_extensions; do
2841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2842 ac_cv_prog_ac_ct_CXX="$ac_prog"
2843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2852 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2853 if test -n "$ac_ct_CXX"; then
2854 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2855 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2857 { echo "$as_me:$LINENO: result: no" >&5
2858 echo "${ECHO_T}no" >&6; }
2862 test -n "$ac_ct_CXX" && break
2865 if test "x$ac_ct_CXX" = x; then
2868 case $cross_compiling:$ac_tool_warned in
2870 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2871 whose name does not start with the host triplet. If you think this
2872 configuration is useful to you, please write to autoconf@gnu.org." >&5
2873 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2874 whose name does not start with the host triplet. If you think this
2875 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2876 ac_tool_warned=yes ;;
2884 # Provide some information about the compiler.
2885 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2886 ac_compiler=`set X $ac_compile; echo $2`
2887 { (ac_try="$ac_compiler --version >&5"
2889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2890 *) ac_try_echo=$ac_try;;
2892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2893 (eval "$ac_compiler --version >&5") 2>&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); }
2897 { (ac_try="$ac_compiler -v >&5"
2899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2900 *) ac_try_echo=$ac_try;;
2902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2903 (eval "$ac_compiler -v >&5") 2>&5
2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906 (exit $ac_status); }
2907 { (ac_try="$ac_compiler -V >&5"
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_compiler -V >&5") 2>&5
2915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2916 (exit $ac_status); }
2918 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2919 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2920 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 cat >conftest.$ac_ext <<_ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2941 rm -f conftest.$ac_objext
2942 if { (ac_try="$ac_compile"
2944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2945 *) ac_try_echo=$ac_try;;
2947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2948 (eval "$ac_compile") 2>conftest.er1
2950 grep -v '^ *+' conftest.er1 >conftest.err
2952 cat conftest.err >&5
2953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2954 (exit $ac_status); } &&
2955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2956 { (case "(($ac_try" in
2957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2958 *) ac_try_echo=$ac_try;;
2960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2961 (eval "$ac_try") 2>&5
2963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2964 (exit $ac_status); }; } &&
2965 { ac_try='test -s conftest.$ac_objext'
2966 { (case "(($ac_try" in
2967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2968 *) ac_try_echo=$ac_try;;
2970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2971 (eval "$ac_try") 2>&5
2973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2974 (exit $ac_status); }; }; then
2977 echo "$as_me: failed program was:" >&5
2978 sed 's/^/| /' conftest.$ac_ext >&5
2983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2984 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2987 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2988 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2989 GXX=`test $ac_compiler_gnu = yes && echo yes`
2990 ac_test_CXXFLAGS=${CXXFLAGS+set}
2991 ac_save_CXXFLAGS=$CXXFLAGS
2992 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2993 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2994 if test "${ac_cv_prog_cxx_g+set}" = set; then
2995 echo $ECHO_N "(cached) $ECHO_C" >&6
2997 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2998 ac_cxx_werror_flag=yes
3001 cat >conftest.$ac_ext <<_ACEOF
3004 cat confdefs.h >>conftest.$ac_ext
3005 cat >>conftest.$ac_ext <<_ACEOF
3006 /* end confdefs.h. */
3016 rm -f conftest.$ac_objext
3017 if { (ac_try="$ac_compile"
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_compile") 2>conftest.er1
3025 grep -v '^ *+' conftest.er1 >conftest.err
3027 cat conftest.err >&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); } &&
3030 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3031 { (case "(($ac_try" in
3032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3033 *) ac_try_echo=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_try") 2>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }; } &&
3040 { ac_try='test -s conftest.$ac_objext'
3041 { (case "(($ac_try" in
3042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_try") 2>&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }; }; then
3050 ac_cv_prog_cxx_g=yes
3052 echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3056 cat >conftest.$ac_ext <<_ACEOF
3059 cat confdefs.h >>conftest.$ac_ext
3060 cat >>conftest.$ac_ext <<_ACEOF
3061 /* end confdefs.h. */
3071 rm -f conftest.$ac_objext
3072 if { (ac_try="$ac_compile"
3074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3075 *) ac_try_echo=$ac_try;;
3077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3078 (eval "$ac_compile") 2>conftest.er1
3080 grep -v '^ *+' conftest.er1 >conftest.err
3082 cat conftest.err >&5
3083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3084 (exit $ac_status); } &&
3085 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3086 { (case "(($ac_try" in
3087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3088 *) ac_try_echo=$ac_try;;
3090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3091 (eval "$ac_try") 2>&5
3093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3094 (exit $ac_status); }; } &&
3095 { ac_try='test -s conftest.$ac_objext'
3096 { (case "(($ac_try" in
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_try") 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; }; then
3107 echo "$as_me: failed program was:" >&5
3108 sed 's/^/| /' conftest.$ac_ext >&5
3110 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3112 cat >conftest.$ac_ext <<_ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150 (exit $ac_status); }; } &&
3151 { ac_try='test -s conftest.$ac_objext'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160 (exit $ac_status); }; }; then
3161 ac_cv_prog_cxx_g=yes
3163 echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3176 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3178 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3179 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3180 if test "$ac_test_CXXFLAGS" = set; then
3181 CXXFLAGS=$ac_save_CXXFLAGS
3182 elif test $ac_cv_prog_cxx_g = yes; then
3183 if test "$GXX" = yes; then
3189 if test "$GXX" = yes; then
3196 ac_cpp='$CPP $CPPFLAGS'
3197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3199 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3202 ac_cpp='$CPP $CPPFLAGS'
3203 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3206 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3207 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3208 # On Suns, sometimes $CPP names a directory.
3209 if test -n "$CPP" && test -d "$CPP"; then
3212 if test -z "$CPP"; then
3213 if test "${ac_cv_prog_CPP+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3216 # Double quotes because CPP needs to be expanded
3217 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3220 for ac_c_preproc_warn_flag in '' yes
3222 # Use a header file that comes with gcc, so configuring glibc
3223 # with a fresh cross-compiler works.
3224 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3225 # <limits.h> exists even on freestanding compilers.
3226 # On the NeXT, cc -E runs the code through the compiler's parser,
3227 # not just through cpp. "Syntax error" is here to catch this case.
3228 cat >conftest.$ac_ext <<_ACEOF
3231 cat confdefs.h >>conftest.$ac_ext
3232 cat >>conftest.$ac_ext <<_ACEOF
3233 /* end confdefs.h. */
3235 # include <limits.h>
3237 # include <assert.h>
3241 if { (ac_try="$ac_cpp conftest.$ac_ext"
3243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3244 *) ac_try_echo=$ac_try;;
3246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3247 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3249 grep -v '^ *+' conftest.er1 >conftest.err
3251 cat conftest.err >&5
3252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3253 (exit $ac_status); } >/dev/null; then
3254 if test -s conftest.err; then
3255 ac_cpp_err=$ac_c_preproc_warn_flag
3256 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3263 if test -z "$ac_cpp_err"; then
3266 echo "$as_me: failed program was:" >&5
3267 sed 's/^/| /' conftest.$ac_ext >&5
3269 # Broken: fails on valid input.
3273 rm -f conftest.err conftest.$ac_ext
3275 # OK, works on sane cases. Now check whether nonexistent headers
3276 # can be detected and how.
3277 cat >conftest.$ac_ext <<_ACEOF
3280 cat confdefs.h >>conftest.$ac_ext
3281 cat >>conftest.$ac_ext <<_ACEOF
3282 /* end confdefs.h. */
3283 #include <ac_nonexistent.h>
3285 if { (ac_try="$ac_cpp conftest.$ac_ext"
3287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3288 *) ac_try_echo=$ac_try;;
3290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3291 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3293 grep -v '^ *+' conftest.er1 >conftest.err
3295 cat conftest.err >&5
3296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3297 (exit $ac_status); } >/dev/null; then
3298 if test -s conftest.err; then
3299 ac_cpp_err=$ac_c_preproc_warn_flag
3300 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3307 if test -z "$ac_cpp_err"; then
3308 # Broken: success on invalid input.
3311 echo "$as_me: failed program was:" >&5
3312 sed 's/^/| /' conftest.$ac_ext >&5
3314 # Passes both tests.
3319 rm -f conftest.err conftest.$ac_ext
3322 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3323 rm -f conftest.err conftest.$ac_ext
3324 if $ac_preproc_ok; then
3336 { echo "$as_me:$LINENO: result: $CPP" >&5
3337 echo "${ECHO_T}$CPP" >&6; }
3339 for ac_c_preproc_warn_flag in '' yes
3341 # Use a header file that comes with gcc, so configuring glibc
3342 # with a fresh cross-compiler works.
3343 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3344 # <limits.h> exists even on freestanding compilers.
3345 # On the NeXT, cc -E runs the code through the compiler's parser,
3346 # not just through cpp. "Syntax error" is here to catch this case.
3347 cat >conftest.$ac_ext <<_ACEOF
3350 cat confdefs.h >>conftest.$ac_ext
3351 cat >>conftest.$ac_ext <<_ACEOF
3352 /* end confdefs.h. */
3354 # include <limits.h>
3356 # include <assert.h>
3360 if { (ac_try="$ac_cpp conftest.$ac_ext"
3362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3363 *) ac_try_echo=$ac_try;;
3365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3368 grep -v '^ *+' conftest.er1 >conftest.err
3370 cat conftest.err >&5
3371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); } >/dev/null; then
3373 if test -s conftest.err; then
3374 ac_cpp_err=$ac_c_preproc_warn_flag
3375 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3382 if test -z "$ac_cpp_err"; then
3385 echo "$as_me: failed program was:" >&5
3386 sed 's/^/| /' conftest.$ac_ext >&5
3388 # Broken: fails on valid input.
3392 rm -f conftest.err conftest.$ac_ext
3394 # OK, works on sane cases. Now check whether nonexistent headers
3395 # can be detected and how.
3396 cat >conftest.$ac_ext <<_ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402 #include <ac_nonexistent.h>
3404 if { (ac_try="$ac_cpp conftest.$ac_ext"
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3412 grep -v '^ *+' conftest.er1 >conftest.err
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } >/dev/null; then
3417 if test -s conftest.err; then
3418 ac_cpp_err=$ac_c_preproc_warn_flag
3419 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3426 if test -z "$ac_cpp_err"; then
3427 # Broken: success on invalid input.
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 # Passes both tests.
3438 rm -f conftest.err conftest.$ac_ext
3441 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3442 rm -f conftest.err conftest.$ac_ext
3443 if $ac_preproc_ok; then
3446 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3447 See \`config.log' for more details." >&5
3448 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3449 See \`config.log' for more details." >&2;}
3450 { (exit 1); exit 1; }; }
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3462 if test -d ${srcdir}/projects/llvm-gcc ; then
3463 subdirs="$subdirs projects/llvm-gcc"
3467 if test -d ${srcdir}/projects/test-suite ; then
3468 subdirs="$subdirs projects/test-suite"
3472 if test -d ${srcdir}/projects/llvm-test ; then
3473 subdirs="$subdirs projects/llvm-test"
3477 if test -d ${srcdir}/projects/poolalloc ; then
3478 subdirs="$subdirs projects/poolalloc"
3482 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3483 subdirs="$subdirs projects/llvm-poolalloc"
3487 for i in `ls ${srcdir}/projects`
3489 if test -d ${srcdir}/projects/${i} ; then
3491 sample) subdirs="$subdirs projects/sample"
3493 privbracket) subdirs="$subdirs projects/privbracket"
3495 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
3497 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
3499 llvm-java) subdirs="$subdirs projects/llvm-java"
3501 llvm-tv) subdirs="$subdirs projects/llvm-tv"
3503 safecode) subdirs="$subdirs projects/safecode"
3505 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
3514 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3515 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3521 # Check whether --enable-polly was given.
3522 if test "${enable_polly+set}" = set; then
3523 enableval=$enable_polly;
3528 case "$enableval" in
3533 default) ENABLE_POLLY=1
3535 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3536 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3537 { (exit 1); exit 1; }; } ;;
3541 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3544 subdirs="$subdirs tools/polly"
3549 # Make sure we can run config.sub.
3550 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3551 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3552 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3553 { (exit 1); exit 1; }; }
3555 { echo "$as_me:$LINENO: checking build system type" >&5
3556 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3557 if test "${ac_cv_build+set}" = set; then
3558 echo $ECHO_N "(cached) $ECHO_C" >&6
3560 ac_build_alias=$build_alias
3561 test "x$ac_build_alias" = x &&
3562 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3563 test "x$ac_build_alias" = x &&
3564 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3565 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3566 { (exit 1); exit 1; }; }
3567 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3568 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3569 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3570 { (exit 1); exit 1; }; }
3573 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3574 echo "${ECHO_T}$ac_cv_build" >&6; }
3575 case $ac_cv_build in
3577 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3578 echo "$as_me: error: invalid value of canonical build" >&2;}
3579 { (exit 1); exit 1; }; };;
3582 ac_save_IFS=$IFS; IFS='-'
3588 # Remember, the first character of IFS is used to create $*,
3589 # except with old shells:
3592 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3595 { echo "$as_me:$LINENO: checking host system type" >&5
3596 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3597 if test "${ac_cv_host+set}" = set; then
3598 echo $ECHO_N "(cached) $ECHO_C" >&6
3600 if test "x$host_alias" = x; then
3601 ac_cv_host=$ac_cv_build
3603 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3604 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3605 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3606 { (exit 1); exit 1; }; }
3610 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3611 echo "${ECHO_T}$ac_cv_host" >&6; }
3614 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3615 echo "$as_me: error: invalid value of canonical host" >&2;}
3616 { (exit 1); exit 1; }; };;
3619 ac_save_IFS=$IFS; IFS='-'
3625 # Remember, the first character of IFS is used to create $*,
3626 # except with old shells:
3629 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3632 { echo "$as_me:$LINENO: checking target system type" >&5
3633 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3634 if test "${ac_cv_target+set}" = set; then
3635 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 if test "x$target_alias" = x; then
3638 ac_cv_target=$ac_cv_host
3640 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3641 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3642 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3643 { (exit 1); exit 1; }; }
3647 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3648 echo "${ECHO_T}$ac_cv_target" >&6; }
3649 case $ac_cv_target in
3651 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3652 echo "$as_me: error: invalid value of canonical target" >&2;}
3653 { (exit 1); exit 1; }; };;
3655 target=$ac_cv_target
3656 ac_save_IFS=$IFS; IFS='-'
3662 # Remember, the first character of IFS is used to create $*,
3663 # except with old shells:
3666 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3669 # The aliases save the names the user supplied, while $host etc.
3670 # will get canonicalized.
3671 test -n "$target_alias" &&
3672 test "$program_prefix$program_suffix$program_transform_name" = \
3674 program_prefix=${target_alias}-
3676 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3677 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3678 if test "${llvm_cv_os_type+set}" = set; then
3679 echo $ECHO_N "(cached) $ECHO_C" >&6
3683 llvm_cv_link_all_option="-Wl,--whole-archive"
3684 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3685 llvm_cv_os_type="AIX"
3686 llvm_cv_platform_type="Unix" ;;
3688 llvm_cv_link_all_option="-Wl,--whole-archive"
3689 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3690 llvm_cv_os_type="IRIX"
3691 llvm_cv_platform_type="Unix" ;;
3693 llvm_cv_link_all_option="-Wl,--whole-archive"
3694 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3695 llvm_cv_os_type="Cygwin"
3696 llvm_cv_platform_type="Unix" ;;
3698 llvm_cv_link_all_option="-Wl,-all_load"
3699 llvm_cv_no_link_all_option="-Wl,-noall_load"
3700 llvm_cv_os_type="Darwin"
3701 llvm_cv_platform_type="Unix" ;;
3703 llvm_cv_link_all_option="-Wl,-all_load"
3704 llvm_cv_no_link_all_option="-Wl,-noall_load"
3705 llvm_cv_os_type="Minix"
3706 llvm_cv_platform_type="Unix" ;;
3707 *-*-freebsd* | *-*-kfreebsd-gnu)
3708 llvm_cv_link_all_option="-Wl,--whole-archive"
3709 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3710 llvm_cv_os_type="FreeBSD"
3711 llvm_cv_platform_type="Unix" ;;
3713 llvm_cv_link_all_option="-Wl,--whole-archive"
3714 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3715 llvm_cv_os_type="OpenBSD"
3716 llvm_cv_platform_type="Unix" ;;
3718 llvm_cv_link_all_option="-Wl,--whole-archive"
3719 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3720 llvm_cv_os_type="NetBSD"
3721 llvm_cv_platform_type="Unix" ;;
3723 llvm_cv_link_all_option="-Wl,--whole-archive"
3724 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3725 llvm_cv_os_type="DragonFly"
3726 llvm_cv_platform_type="Unix" ;;
3728 llvm_cv_link_all_option="-Wl,--whole-archive"
3729 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3730 llvm_cv_os_type="HP-UX"
3731 llvm_cv_platform_type="Unix" ;;
3733 llvm_cv_link_all_option="-Wl,--whole-archive"
3734 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3735 llvm_cv_os_type="Interix"
3736 llvm_cv_platform_type="Unix" ;;
3738 llvm_cv_link_all_option="-Wl,--whole-archive"
3739 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3740 llvm_cv_os_type="Linux"
3741 llvm_cv_platform_type="Unix" ;;
3743 llvm_cv_link_all_option="-Wl,--whole-archive"
3744 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3745 llvm_cv_os_type="GNU"
3746 llvm_cv_platform_type="Unix" ;;
3748 llvm_cv_link_all_option="-Wl,-z,allextract"
3749 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3750 llvm_cv_os_type="SunOS"
3751 llvm_cv_platform_type="Unix" ;;
3753 llvm_cv_link_all_option="-Wl,-z,allextract"
3754 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3755 llvm_cv_os_type="AuroraUX"
3756 llvm_cv_platform_type="Unix" ;;
3758 llvm_cv_link_all_option="-Wl,--whole-archive"
3759 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3760 llvm_cv_os_type="Win32"
3761 llvm_cv_platform_type="Win32" ;;
3763 llvm_cv_link_all_option="-Wl,--whole-archive"
3764 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3765 llvm_cv_os_type="MingW"
3766 llvm_cv_platform_type="Win32" ;;
3768 llvm_cv_link_all_option="-Wl,--whole-archive"
3769 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3770 llvm_cv_os_type="Haiku"
3771 llvm_cv_platform_type="Unix" ;;
3773 llvm_cv_link_all_option="-Wl,--whole-archive"
3774 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3775 llvm_cv_os_type="Freestanding"
3776 llvm_cv_platform_type="Unix" ;;
3778 llvm_cv_link_all_option="-Wl,--whole-archive"
3779 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3780 llvm_cv_os_type="Freestanding"
3781 llvm_cv_platform_type="Unix" ;;
3783 llvm_cv_link_all_option=""
3784 llvm_cv_no_link_all_option=""
3785 llvm_cv_os_type="Unknown"
3786 llvm_cv_platform_type="Unknown" ;;
3789 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3790 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3792 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3793 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3794 if test "${llvm_cv_target_os_type+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3799 llvm_cv_target_os_type="AIX" ;;
3801 llvm_cv_target_os_type="IRIX" ;;
3803 llvm_cv_target_os_type="Cygwin" ;;
3805 llvm_cv_target_os_type="Darwin" ;;
3807 llvm_cv_target_os_type="Minix" ;;
3809 llvm_cv_target_os_type="FreeBSD" ;;
3811 llvm_cv_target_os_type="OpenBSD" ;;
3813 llvm_cv_target_os_type="NetBSD" ;;
3815 llvm_cv_target_os_type="DragonFly" ;;
3817 llvm_cv_target_os_type="HP-UX" ;;
3819 llvm_cv_target_os_type="Interix" ;;
3821 llvm_cv_target_os_type="Linux" ;;
3823 llvm_cv_target_os_type="SunOS" ;;
3825 llvm_cv_target_os_type="AuroraUX" ;;
3827 llvm_cv_target_os_type="Win32" ;;
3829 llvm_cv_target_os_type="MingW" ;;
3831 llvm_cv_target_os_type="Haiku" ;;
3833 llvm_cv_target_os_type="RTEMS" ;;
3835 llvm_cv_target_os_type="NativeClient" ;;
3837 llvm_cv_target_os_type="Freestanding" ;;
3839 llvm_cv_target_os_type="Unknown" ;;
3842 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3843 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3845 if test "$llvm_cv_os_type" = "Unknown" ; then
3846 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3847 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3848 { (exit 1); exit 1; }; }
3853 HOST_OS=$llvm_cv_os_type
3855 TARGET_OS=$llvm_cv_target_os_type
3858 LINKALL=$llvm_cv_link_all_option
3860 NOLINKALL=$llvm_cv_no_link_all_option
3863 case $llvm_cv_platform_type in
3866 cat >>confdefs.h <<\_ACEOF
3867 #define LLVM_ON_UNIX 1
3877 cat >>confdefs.h <<\_ACEOF
3878 #define LLVM_ON_WIN32 1
3888 { echo "$as_me:$LINENO: checking target architecture" >&5
3889 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
3890 if test "${llvm_cv_target_arch+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 i?86-*) llvm_cv_target_arch="x86" ;;
3895 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
3896 sparc*-*) llvm_cv_target_arch="Sparc" ;;
3897 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
3898 arm*-*) llvm_cv_target_arch="ARM" ;;
3899 mips-*) llvm_cv_target_arch="Mips" ;;
3900 mipsel-*) llvm_cv_target_arch="Mips" ;;
3901 xcore-*) llvm_cv_target_arch="XCore" ;;
3902 msp430-*) llvm_cv_target_arch="MSP430" ;;
3903 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
3904 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
3905 ptx-*) llvm_cv_target_arch="PTX" ;;
3906 *) llvm_cv_target_arch="Unknown" ;;
3909 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
3910 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
3912 if test "$llvm_cv_target_arch" = "Unknown" ; then
3913 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
3914 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
3917 case "$llvm_cv_target_arch" in
3918 x86) LLVM_NATIVE_ARCH="X86" ;;
3919 x86_64) LLVM_NATIVE_ARCH="X86" ;;
3920 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
3923 ARCH=$llvm_cv_target_arch
3928 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3929 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3930 if test "${ac_cv_path_GREP+set}" = set; then
3931 echo $ECHO_N "(cached) $ECHO_C" >&6
3933 # Extract the first word of "grep ggrep" to use in msg output
3934 if test -z "$GREP"; then
3935 set dummy grep ggrep; ac_prog_name=$2
3936 if test "${ac_cv_path_GREP+set}" = set; then
3937 echo $ECHO_N "(cached) $ECHO_C" >&6
3939 ac_path_GREP_found=false
3940 # Loop through the user's path and test for each of PROGNAME-LIST
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3942 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3945 test -z "$as_dir" && as_dir=.
3946 for ac_prog in grep ggrep; do
3947 for ac_exec_ext in '' $ac_executable_extensions; do
3948 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3949 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3950 # Check for GNU ac_path_GREP and select it if it is found.
3951 # Check for GNU $ac_path_GREP
3952 case `"$ac_path_GREP" --version 2>&1` in
3954 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3957 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3960 cat "conftest.in" "conftest.in" >"conftest.tmp"
3961 mv "conftest.tmp" "conftest.in"
3962 cp "conftest.in" "conftest.nl"
3963 echo 'GREP' >> "conftest.nl"
3964 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3965 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3966 ac_count=`expr $ac_count + 1`
3967 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3968 # Best one so far, save it but keep looking for a better one
3969 ac_cv_path_GREP="$ac_path_GREP"
3970 ac_path_GREP_max=$ac_count
3972 # 10*(2^10) chars as input seems more than enough
3973 test $ac_count -gt 10 && break
3975 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3979 $ac_path_GREP_found && break 3
3989 GREP="$ac_cv_path_GREP"
3990 if test -z "$GREP"; then
3991 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3992 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3993 { (exit 1); exit 1; }; }
3997 ac_cv_path_GREP=$GREP
4002 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4003 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4004 GREP="$ac_cv_path_GREP"
4007 { echo "$as_me:$LINENO: checking for egrep" >&5
4008 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4009 if test "${ac_cv_path_EGREP+set}" = set; then
4010 echo $ECHO_N "(cached) $ECHO_C" >&6
4012 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4013 then ac_cv_path_EGREP="$GREP -E"
4015 # Extract the first word of "egrep" to use in msg output
4016 if test -z "$EGREP"; then
4017 set dummy egrep; ac_prog_name=$2
4018 if test "${ac_cv_path_EGREP+set}" = set; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 ac_path_EGREP_found=false
4022 # Loop through the user's path and test for each of PROGNAME-LIST
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4024 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4027 test -z "$as_dir" && as_dir=.
4028 for ac_prog in egrep; do
4029 for ac_exec_ext in '' $ac_executable_extensions; do
4030 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4031 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4032 # Check for GNU ac_path_EGREP and select it if it is found.
4033 # Check for GNU $ac_path_EGREP
4034 case `"$ac_path_EGREP" --version 2>&1` in
4036 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4039 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4042 cat "conftest.in" "conftest.in" >"conftest.tmp"
4043 mv "conftest.tmp" "conftest.in"
4044 cp "conftest.in" "conftest.nl"
4045 echo 'EGREP' >> "conftest.nl"
4046 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4047 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4048 ac_count=`expr $ac_count + 1`
4049 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4050 # Best one so far, save it but keep looking for a better one
4051 ac_cv_path_EGREP="$ac_path_EGREP"
4052 ac_path_EGREP_max=$ac_count
4054 # 10*(2^10) chars as input seems more than enough
4055 test $ac_count -gt 10 && break
4057 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4061 $ac_path_EGREP_found && break 3
4071 EGREP="$ac_cv_path_EGREP"
4072 if test -z "$EGREP"; then
4073 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4074 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4075 { (exit 1); exit 1; }; }
4079 ac_cv_path_EGREP=$EGREP
4085 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4086 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4087 EGREP="$ac_cv_path_EGREP"
4090 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4091 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4092 if test "${ac_cv_header_stdc+set}" = set; then
4093 echo $ECHO_N "(cached) $ECHO_C" >&6
4095 cat >conftest.$ac_ext <<_ACEOF
4098 cat confdefs.h >>conftest.$ac_ext
4099 cat >>conftest.$ac_ext <<_ACEOF
4100 /* end confdefs.h. */
4114 rm -f conftest.$ac_objext
4115 if { (ac_try="$ac_compile"
4117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121 (eval "$ac_compile") 2>conftest.er1
4123 grep -v '^ *+' conftest.er1 >conftest.err
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try='test -s conftest.$ac_objext'
4139 { (case "(($ac_try" in
4140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_try") 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 ac_cv_header_stdc=yes
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4153 ac_cv_header_stdc=no
4156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 if test $ac_cv_header_stdc = yes; then
4159 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4160 cat >conftest.$ac_ext <<_ACEOF
4163 cat confdefs.h >>conftest.$ac_ext
4164 cat >>conftest.$ac_ext <<_ACEOF
4165 /* end confdefs.h. */
4169 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4170 $EGREP "memchr" >/dev/null 2>&1; then
4173 ac_cv_header_stdc=no
4179 if test $ac_cv_header_stdc = yes; then
4180 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4181 cat >conftest.$ac_ext <<_ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4191 $EGREP "free" >/dev/null 2>&1; then
4194 ac_cv_header_stdc=no
4200 if test $ac_cv_header_stdc = yes; then
4201 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4202 if test "$cross_compiling" = yes; then
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4213 #if ((' ' & 0x0FF) == 0x020)
4214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4217 # define ISLOWER(c) \
4218 (('a' <= (c) && (c) <= 'i') \
4219 || ('j' <= (c) && (c) <= 'r') \
4220 || ('s' <= (c) && (c) <= 'z'))
4221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4229 for (i = 0; i < 256; i++)
4230 if (XOR (islower (i), ISLOWER (i))
4231 || toupper (i) != TOUPPER (i))
4236 rm -f conftest$ac_exeext
4237 if { (ac_try="$ac_link"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_link") 2>&5
4245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4247 { (case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4252 (eval "$ac_try") 2>&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); }; }; then
4258 echo "$as_me: program exited with status $ac_status" >&5
4259 echo "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4263 ac_cv_header_stdc=no
4265 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4271 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4272 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4273 if test $ac_cv_header_stdc = yes; then
4275 cat >>confdefs.h <<\_ACEOF
4276 #define STDC_HEADERS 1
4281 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4292 inttypes.h stdint.h unistd.h
4294 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4295 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4296 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4297 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4298 echo $ECHO_N "(cached) $ECHO_C" >&6
4300 cat >conftest.$ac_ext <<_ACEOF
4303 cat confdefs.h >>conftest.$ac_ext
4304 cat >>conftest.$ac_ext <<_ACEOF
4305 /* end confdefs.h. */
4306 $ac_includes_default
4308 #include <$ac_header>
4310 rm -f conftest.$ac_objext
4311 if { (ac_try="$ac_compile"
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_compile") 2>conftest.er1
4319 grep -v '^ *+' conftest.er1 >conftest.err
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } &&
4324 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4325 { (case "(($ac_try" in
4326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; } &&
4334 { ac_try='test -s conftest.$ac_objext'
4335 { (case "(($ac_try" in
4336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4337 *) ac_try_echo=$ac_try;;
4339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4340 (eval "$ac_try") 2>&5
4342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4343 (exit $ac_status); }; }; then
4344 eval "$as_ac_Header=yes"
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4349 eval "$as_ac_Header=no"
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 ac_res=`eval echo '${'$as_ac_Header'}'`
4355 { echo "$as_me:$LINENO: result: $ac_res" >&5
4356 echo "${ECHO_T}$ac_res" >&6; }
4357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4358 cat >>confdefs.h <<_ACEOF
4359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4367 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4368 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4369 if test "${ac_cv_c_bigendian+set}" = set; then
4370 echo $ECHO_N "(cached) $ECHO_C" >&6
4372 # See if sys/param.h defines the BYTE_ORDER macro.
4373 cat >conftest.$ac_ext <<_ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 #include <sys/types.h>
4380 #include <sys/param.h>
4385 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4393 rm -f conftest.$ac_objext
4394 if { (ac_try="$ac_compile"
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4400 (eval "$ac_compile") 2>conftest.er1
4402 grep -v '^ *+' conftest.er1 >conftest.err
4404 cat conftest.err >&5
4405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4406 (exit $ac_status); } &&
4407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4408 { (case "(($ac_try" in
4409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4410 *) ac_try_echo=$ac_try;;
4412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4413 (eval "$ac_try") 2>&5
4415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4416 (exit $ac_status); }; } &&
4417 { ac_try='test -s conftest.$ac_objext'
4418 { (case "(($ac_try" in
4419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4420 *) ac_try_echo=$ac_try;;
4422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4423 (eval "$ac_try") 2>&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); }; }; then
4427 # It does; now see whether it defined to BIG_ENDIAN or not.
4428 cat >conftest.$ac_ext <<_ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h. */
4434 #include <sys/types.h>
4435 #include <sys/param.h>
4440 #if BYTE_ORDER != BIG_ENDIAN
4448 rm -f conftest.$ac_objext
4449 if { (ac_try="$ac_compile"
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_compile") 2>conftest.er1
4457 grep -v '^ *+' conftest.er1 >conftest.err
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } &&
4462 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4463 { (case "(($ac_try" in
4464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4465 *) ac_try_echo=$ac_try;;
4467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4468 (eval "$ac_try") 2>&5
4470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4471 (exit $ac_status); }; } &&
4472 { ac_try='test -s conftest.$ac_objext'
4473 { (case "(($ac_try" in
4474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4475 *) ac_try_echo=$ac_try;;
4477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4478 (eval "$ac_try") 2>&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); }; }; then
4482 ac_cv_c_bigendian=yes
4484 echo "$as_me: failed program was:" >&5
4485 sed 's/^/| /' conftest.$ac_ext >&5
4487 ac_cv_c_bigendian=no
4490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4495 # It does not; compile a test program.
4496 if test "$cross_compiling" = yes; then
4497 # try to guess the endianness by grepping values into an object file
4498 ac_cv_c_bigendian=unknown
4499 cat >conftest.$ac_ext <<_ACEOF
4502 cat confdefs.h >>conftest.$ac_ext
4503 cat >>conftest.$ac_ext <<_ACEOF
4504 /* end confdefs.h. */
4505 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4506 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4507 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4508 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4509 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4510 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4514 _ascii (); _ebcdic ();
4519 rm -f conftest.$ac_objext
4520 if { (ac_try="$ac_compile"
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_compile") 2>conftest.er1
4528 grep -v '^ *+' conftest.er1 >conftest.err
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } &&
4533 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4534 { (case "(($ac_try" in
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4536 *) ac_try_echo=$ac_try;;
4538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4539 (eval "$ac_try") 2>&5
4541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4542 (exit $ac_status); }; } &&
4543 { ac_try='test -s conftest.$ac_objext'
4544 { (case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4549 (eval "$ac_try") 2>&5
4551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4552 (exit $ac_status); }; }; then
4553 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4554 ac_cv_c_bigendian=yes
4556 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4557 if test "$ac_cv_c_bigendian" = unknown; then
4558 ac_cv_c_bigendian=no
4560 # finding both strings is unlikely to happen, but who knows?
4561 ac_cv_c_bigendian=unknown
4565 echo "$as_me: failed program was:" >&5
4566 sed 's/^/| /' conftest.$ac_ext >&5
4571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4573 cat >conftest.$ac_ext <<_ACEOF
4576 cat confdefs.h >>conftest.$ac_ext
4577 cat >>conftest.$ac_ext <<_ACEOF
4578 /* end confdefs.h. */
4579 $ac_includes_default
4584 /* Are we little or big endian? From Harbison&Steele. */
4588 char c[sizeof (long int)];
4591 return u.c[sizeof (long int) - 1] == 1;
4597 rm -f conftest$ac_exeext
4598 if { (ac_try="$ac_link"
4600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4601 *) ac_try_echo=$ac_try;;
4603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4604 (eval "$ac_link") 2>&5
4606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4608 { (case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_try") 2>&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); }; }; then
4617 ac_cv_c_bigendian=no
4619 echo "$as_me: program exited with status $ac_status" >&5
4620 echo "$as_me: failed program was:" >&5
4621 sed 's/^/| /' conftest.$ac_ext >&5
4624 ac_cv_c_bigendian=yes
4626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4634 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4635 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4636 case $ac_cv_c_bigendian in
4644 { { echo "$as_me:$LINENO: error: unknown endianness
4645 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4646 echo "$as_me: error: unknown endianness
4647 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4648 { (exit 1); exit 1; }; } ;;
4652 if test "$cross_compiling" = yes; then
4653 LLVM_CROSS_COMPILING=1
4656 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4657 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4658 if test "${ac_cv_build_exeext+set}" = set; then
4659 echo $ECHO_N "(cached) $ECHO_C" >&6
4661 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4662 ac_cv_build_exeext=.exe
4664 ac_build_prefix=${build_alias}-
4666 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4667 set dummy ${ac_build_prefix}gcc; ac_word=$2
4668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4670 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4671 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 if test -n "$BUILD_CC"; then
4674 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4680 test -z "$as_dir" && as_dir=.
4681 for ac_exec_ext in '' $ac_executable_extensions; do
4682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4683 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4693 BUILD_CC=$ac_cv_prog_BUILD_CC
4694 if test -n "$BUILD_CC"; then
4695 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4696 echo "${ECHO_T}$BUILD_CC" >&6; }
4698 { echo "$as_me:$LINENO: result: no" >&5
4699 echo "${ECHO_T}no" >&6; }
4703 if test -z "$BUILD_CC"; then
4704 # Extract the first word of "gcc", so it can be a program name with args.
4705 set dummy gcc; ac_word=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 if test -n "$BUILD_CC"; then
4712 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir=.
4719 for ac_exec_ext in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_BUILD_CC="gcc"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 BUILD_CC=$ac_cv_prog_BUILD_CC
4732 if test -n "$BUILD_CC"; then
4733 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4734 echo "${ECHO_T}$BUILD_CC" >&6; }
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4741 if test -z "$BUILD_CC"; then
4742 # Extract the first word of "cc", so it can be a program name with args.
4743 set dummy cc; ac_word=$2
4744 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4746 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4747 echo $ECHO_N "(cached) $ECHO_C" >&6
4749 if test -n "$BUILD_CC"; then
4750 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir=.
4758 for ac_exec_ext in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4761 ac_prog_rejected=yes
4764 ac_cv_prog_BUILD_CC="cc"
4765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 if test $ac_prog_rejected = yes; then
4773 # We found a bogon in the path, so make sure we never use it.
4774 set dummy $ac_cv_prog_BUILD_CC
4776 if test $# != 0; then
4777 # We chose a different compiler from the bogus one.
4778 # However, it has the same basename, so the bogon will be chosen
4779 # first if we set BUILD_CC to just the basename; use the full file name.
4781 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4786 BUILD_CC=$ac_cv_prog_BUILD_CC
4787 if test -n "$BUILD_CC"; then
4788 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4789 echo "${ECHO_T}$BUILD_CC" >&6; }
4791 { echo "$as_me:$LINENO: result: no" >&5
4792 echo "${ECHO_T}no" >&6; }
4798 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4799 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4800 { (exit 1); exit 1; }; }
4801 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4803 echo 'int main () { return 0; }' > conftest.$ac_ext
4805 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4806 (eval $ac_build_link) 2>&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); }; then
4810 for file in conftest.*; do
4812 *.c | *.o | *.obj | *.dSYM) ;;
4813 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4817 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4818 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4819 { (exit 1); exit 1; }; }
4822 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4827 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4828 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4829 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4830 ac_build_exeext=$BUILD_EXEEXT
4832 ac_build_prefix=${build_alias}-
4833 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4834 set dummy ${ac_build_prefix}g++; ac_word=$2
4835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4837 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4838 echo $ECHO_N "(cached) $ECHO_C" >&6
4840 if test -n "$BUILD_CXX"; then
4841 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4847 test -z "$as_dir" && as_dir=.
4848 for ac_exec_ext in '' $ac_executable_extensions; do
4849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4850 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4851 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4860 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4861 if test -n "$BUILD_CXX"; then
4862 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4863 echo "${ECHO_T}$BUILD_CXX" >&6; }
4865 { echo "$as_me:$LINENO: result: no" >&5
4866 echo "${ECHO_T}no" >&6; }
4870 if test -z "$BUILD_CXX"; then
4871 # Extract the first word of "g++", so it can be a program name with args.
4872 set dummy g++; ac_word=$2
4873 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4875 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4876 echo $ECHO_N "(cached) $ECHO_C" >&6
4878 if test -n "$BUILD_CXX"; then
4879 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4885 test -z "$as_dir" && as_dir=.
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4888 ac_cv_prog_BUILD_CXX="g++"
4889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4898 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4899 if test -n "$BUILD_CXX"; then
4900 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4901 echo "${ECHO_T}$BUILD_CXX" >&6; }
4903 { echo "$as_me:$LINENO: result: no" >&5
4904 echo "${ECHO_T}no" >&6; }
4908 if test -z "$BUILD_CXX"; then
4909 # Extract the first word of "c++", so it can be a program name with args.
4910 set dummy c++; ac_word=$2
4911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4913 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4914 echo $ECHO_N "(cached) $ECHO_C" >&6
4916 if test -n "$BUILD_CXX"; then
4917 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 test -z "$as_dir" && as_dir=.
4925 for ac_exec_ext in '' $ac_executable_extensions; do
4926 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4927 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4928 ac_prog_rejected=yes
4931 ac_cv_prog_BUILD_CXX="c++"
4932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4939 if test $ac_prog_rejected = yes; then
4940 # We found a bogon in the path, so make sure we never use it.
4941 set dummy $ac_cv_prog_BUILD_CXX
4943 if test $# != 0; then
4944 # We chose a different compiler from the bogus one.
4945 # However, it has the same basename, so the bogon will be chosen
4946 # first if we set BUILD_CXX to just the basename; use the full file name.
4948 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4953 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4954 if test -n "$BUILD_CXX"; then
4955 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4956 echo "${ECHO_T}$BUILD_CXX" >&6; }
4958 { echo "$as_me:$LINENO: result: no" >&5
4959 echo "${ECHO_T}no" >&6; }
4966 LLVM_CROSS_COMPILING=0
4970 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4981 # Check whether --enable-libcpp was given.
4982 if test "${enable_libcpp+set}" = set; then
4983 enableval=$enable_libcpp;
4988 case "$enableval" in
4989 yes) ENABLE_LIBCPP=1
4993 default) ENABLE_LIBCPP=0
4995 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&5
4996 echo "$as_me: error: Invalid setting for --enable-libcpp. Use \"yes\" or \"no\"" >&2;}
4997 { (exit 1); exit 1; }; } ;;
5000 # Check whether --enable-optimized was given.
5001 if test "${enable_optimized+set}" = set; then
5002 enableval=$enable_optimized;
5007 if test ${enableval} = "no" ; then
5011 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
5015 # Check whether --enable-profiling was given.
5016 if test "${enable_profiling+set}" = set; then
5017 enableval=$enable_profiling;
5022 if test ${enableval} = "no" ; then
5026 ENABLE_PROFILING=ENABLE_PROFILING=1
5030 # Check whether --enable-assertions was given.
5031 if test "${enable_assertions+set}" = set; then
5032 enableval=$enable_assertions;
5037 if test ${enableval} = "yes" ; then
5041 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
5045 # Check whether --enable-expensive-checks was given.
5046 if test "${enable_expensive_checks+set}" = set; then
5047 enableval=$enable_expensive_checks;
5052 if test ${enableval} = "yes" ; then
5053 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
5055 EXPENSIVE_CHECKS=yes
5058 ENABLE_EXPENSIVE_CHECKS=
5064 # Check whether --enable-debug-runtime was given.
5065 if test "${enable_debug_runtime+set}" = set; then
5066 enableval=$enable_debug_runtime;
5071 if test ${enableval} = "no" ; then
5075 DEBUG_RUNTIME=DEBUG_RUNTIME=1
5079 # Check whether --enable-debug-symbols was given.
5080 if test "${enable_debug_symbols+set}" = set; then
5081 enableval=$enable_debug_symbols;
5086 if test ${enableval} = "no" ; then
5090 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
5094 # Check whether --enable-jit was given.
5095 if test "${enable_jit+set}" = set; then
5096 enableval=$enable_jit;
5101 if test ${enableval} = "no"
5106 case "$llvm_cv_target_arch" in
5107 x86) TARGET_HAS_JIT=1
5109 Sparc) TARGET_HAS_JIT=0
5111 PowerPC) TARGET_HAS_JIT=1
5113 x86_64) TARGET_HAS_JIT=1
5115 ARM) TARGET_HAS_JIT=1
5117 Mips) TARGET_HAS_JIT=1
5119 XCore) TARGET_HAS_JIT=0
5121 MSP430) TARGET_HAS_JIT=0
5123 Hexagon) TARGET_HAS_JIT=0
5125 MBlaze) TARGET_HAS_JIT=0
5127 PTX) TARGET_HAS_JIT=0
5134 # Check whether --enable-docs was given.
5135 if test "${enable_docs+set}" = set; then
5136 enableval=$enable_docs;
5141 case "$enableval" in
5146 default) ENABLE_DOCS=1
5148 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
5149 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
5150 { (exit 1); exit 1; }; } ;;
5153 # Check whether --enable-doxygen was given.
5154 if test "${enable_doxygen+set}" = set; then
5155 enableval=$enable_doxygen;
5160 case "$enableval" in
5161 yes) ENABLE_DOXYGEN=1
5163 no) ENABLE_DOXYGEN=0
5165 default) ENABLE_DOXYGEN=0
5167 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
5168 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
5169 { (exit 1); exit 1; }; } ;;
5172 # Check whether --enable-threads was given.
5173 if test "${enable_threads+set}" = set; then
5174 enableval=$enable_threads;
5179 case "$enableval" in
5180 yes) LLVM_ENABLE_THREADS=1
5182 no) LLVM_ENABLE_THREADS=0
5184 default) LLVM_ENABLE_THREADS=1
5186 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
5187 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
5188 { (exit 1); exit 1; }; } ;;
5191 cat >>confdefs.h <<_ACEOF
5192 #define LLVM_ENABLE_THREADS $LLVM_ENABLE_THREADS
5196 # Check whether --enable-pthreads was given.
5197 if test "${enable_pthreads+set}" = set; then
5198 enableval=$enable_pthreads;
5203 case "$enableval" in
5204 yes) ENABLE_PTHREADS=1
5206 no) ENABLE_PTHREADS=0
5208 default) ENABLE_PTHREADS=1
5210 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
5211 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
5212 { (exit 1); exit 1; }; } ;;
5215 # Check whether --enable-pic was given.
5216 if test "${enable_pic+set}" = set; then
5217 enableval=$enable_pic;
5222 case "$enableval" in
5227 default) ENABLE_PIC=1
5229 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
5230 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
5231 { (exit 1); exit 1; }; } ;;
5234 cat >>confdefs.h <<_ACEOF
5235 #define ENABLE_PIC $ENABLE_PIC
5239 # Check whether --enable-shared was given.
5240 if test "${enable_shared+set}" = set; then
5241 enableval=$enable_shared;
5246 case "$enableval" in
5247 yes) ENABLE_SHARED=1
5251 default) ENABLE_SHARED=0
5253 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5254 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5255 { (exit 1); exit 1; }; } ;;
5258 # Check whether --enable-embed-stdcxx was given.
5259 if test "${enable_embed_stdcxx+set}" = set; then
5260 enableval=$enable_embed_stdcxx;
5265 case "$enableval" in
5266 yes) ENABLE_EMBED_STDCXX=1
5268 no) ENABLE_EMBED_STDCXX=0
5270 default) ENABLE_EMBED_STDCXX=0
5272 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5273 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5274 { (exit 1); exit 1; }; } ;;
5277 # Check whether --enable-timestamps was given.
5278 if test "${enable_timestamps+set}" = set; then
5279 enableval=$enable_timestamps;
5284 case "$enableval" in
5285 yes) ENABLE_TIMESTAMPS=1
5287 no) ENABLE_TIMESTAMPS=0
5289 default) ENABLE_TIMESTAMPS=1
5291 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5292 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5293 { (exit 1); exit 1; }; } ;;
5296 cat >>confdefs.h <<_ACEOF
5297 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5302 # Check whether --enable-targets was given.
5303 if test "${enable_targets+set}" = set; then
5304 enableval=$enable_targets;
5309 if test "$enableval" = host-only ; then
5312 case "$enableval" in
5313 all) TARGETS_TO_BUILD="X86 Sparc PowerPC ARM Mips CellSPU XCore MSP430 CBackend CppBackend MBlaze PTX Hexagon" ;;
5314 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
5316 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5317 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5318 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5319 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5320 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5321 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5322 mipsel) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5323 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5324 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5325 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5326 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5327 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5328 hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5329 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5330 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5331 host) case "$llvm_cv_target_arch" in
5332 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5333 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5334 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5335 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5336 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5337 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5338 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5339 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5340 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5341 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5342 Hexagon) TARGETS_TO_BUILD="Hexagon $TARGETS_TO_BUILD" ;;
5343 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5344 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5345 echo "$as_me: error: Can not set target to build" >&2;}
5346 { (exit 1); exit 1; }; } ;;
5348 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5349 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5350 { (exit 1); exit 1; }; } ;;
5355 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5358 for a_target in $TARGETS_TO_BUILD; do
5359 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5361 cat >>confdefs.h <<_ACEOF
5362 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5365 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5366 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5367 LLVM_NATIVE_TARGETMC="LLVMInitialize${LLVM_NATIVE_ARCH}TargetMC"
5368 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5369 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5370 LLVM_NATIVE_ASMPARSER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmParser"
5373 cat >>confdefs.h <<_ACEOF
5374 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5378 cat >>confdefs.h <<_ACEOF
5379 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5383 cat >>confdefs.h <<_ACEOF
5384 #define LLVM_NATIVE_TARGETMC $LLVM_NATIVE_TARGETMC
5388 cat >>confdefs.h <<_ACEOF
5389 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5392 if test -f ${srcdir}/lib/Target/${LLVM_NATIVE_ARCH}/AsmParser/Makefile ; then
5394 cat >>confdefs.h <<_ACEOF
5395 #define LLVM_NATIVE_ASMPARSER $LLVM_NATIVE_ASMPARSER
5402 LLVM_ENUM_TARGETS=""
5403 LLVM_ENUM_ASM_PRINTERS=""
5404 LLVM_ENUM_ASM_PARSERS=""
5405 LLVM_ENUM_DISASSEMBLERS=""
5406 for target_to_build in $TARGETS_TO_BUILD; do
5407 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5408 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5409 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5411 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5412 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5414 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5415 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5423 # Check whether --enable-cbe-printf-a was given.
5424 if test "${enable_cbe_printf_a+set}" = set; then
5425 enableval=$enable_cbe_printf_a;
5430 case "$enableval" in
5431 yes) ENABLE_CBE_PRINTF_A=1
5433 no) ENABLE_CBE_PRINTF_A=0
5435 default) ENABLE_CBE_PRINTF_A=1
5437 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5438 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5439 { (exit 1); exit 1; }; } ;;
5442 cat >>confdefs.h <<_ACEOF
5443 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5448 # Check whether --with-optimize-option was given.
5449 if test "${with_optimize_option+set}" = set; then
5450 withval=$with_optimize_option;
5455 { echo "$as_me:$LINENO: checking optimization flags" >&5
5456 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5459 case "$llvm_cv_os_type" in
5460 FreeBSD) optimize_option=-O2 ;;
5461 MingW) optimize_option=-O2 ;;
5462 *) optimize_option=-O3 ;;
5464 *) optimize_option="$withval" ;;
5466 OPTIMIZE_OPTION=$optimize_option
5468 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5469 echo "${ECHO_T}$optimize_option" >&6; }
5472 # Check whether --with-extra-options was given.
5473 if test "${with_extra_options+set}" = set; then
5474 withval=$with_extra_options;
5480 default) EXTRA_OPTIONS= ;;
5481 *) EXTRA_OPTIONS=$withval ;;
5483 EXTRA_OPTIONS=$EXTRA_OPTIONS
5487 # Check whether --with-extra-ld-options was given.
5488 if test "${with_extra_ld_options+set}" = set; then
5489 withval=$with_extra_ld_options;
5495 default) EXTRA_LD_OPTIONS= ;;
5496 *) EXTRA_LD_OPTIONS=$withval ;;
5498 EXTRA_LD_OPTIONS=$EXTRA_LD_OPTIONS
5501 # Check whether --enable-bindings was given.
5502 if test "${enable_bindings+set}" = set; then
5503 enableval=$enable_bindings;
5508 BINDINGS_TO_BUILD=""
5509 case "$enableval" in
5510 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5511 all ) BINDINGS_TO_BUILD="ocaml" ;;
5512 none | no) BINDINGS_TO_BUILD="" ;;
5513 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5514 case "$a_binding" in
5515 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5516 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5517 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5518 { (exit 1); exit 1; }; } ;;
5525 # Check whether --with-ocaml-libdir was given.
5526 if test "${with_ocaml_libdir+set}" = set; then
5527 withval=$with_ocaml_libdir;
5533 auto) with_ocaml_libdir="$withval" ;;
5534 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5535 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5536 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5537 { (exit 1); exit 1; }; } ;;
5541 # Check whether --with-clang-srcdir was given.
5542 if test "${with_clang_srcdir+set}" = set; then
5543 withval=$with_clang_srcdir;
5549 -) clang_src_root="" ;;
5550 /* | [A-Za-z]:[\\/]*) clang_src_root="$withval" ;;
5551 *) clang_src_root="$ac_pwd/$withval" ;;
5553 CLANG_SRC_ROOT=$clang_src_root
5557 # Check whether --with-clang-resource-dir was given.
5558 if test "${with_clang_resource_dir+set}" = set; then
5559 withval=$with_clang_resource_dir;
5565 cat >>confdefs.h <<_ACEOF
5566 #define CLANG_RESOURCE_DIR "$withval"
5571 # Check whether --with-c-include-dirs was given.
5572 if test "${with_c_include_dirs+set}" = set; then
5573 withval=$with_c_include_dirs;
5579 cat >>confdefs.h <<_ACEOF
5580 #define C_INCLUDE_DIRS "$withval"
5584 # Clang normally uses the system c++ headers and libraries. With this option,
5585 # clang will use the ones provided by a gcc installation instead. This option should
5586 # be passed the same value that was used with --prefix when configuring gcc.
5588 # Check whether --with-gcc-toolchain was given.
5589 if test "${with_gcc_toolchain+set}" = set; then
5590 withval=$with_gcc_toolchain;
5596 cat >>confdefs.h <<_ACEOF
5597 #define GCC_INSTALL_PREFIX "$withval"
5602 # Check whether --with-binutils-include was given.
5603 if test "${with_binutils_include+set}" = set; then
5604 withval=$with_binutils_include;
5610 default) WITH_BINUTILS_INCDIR=default ;;
5611 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5612 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5613 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5614 { (exit 1); exit 1; }; } ;;
5616 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5617 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5619 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5620 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5621 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5622 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5623 { (exit 1); exit 1; }; };
5628 # Check whether --with-bug-report-url was given.
5629 if test "${with_bug_report_url+set}" = set; then
5630 withval=$with_bug_report_url;
5632 withval="http://llvm.org/bugs/"
5636 cat >>confdefs.h <<_ACEOF
5637 #define BUG_REPORT_URL "$withval"
5641 # Check whether --enable-libffi was given.
5642 if test "${enable_libffi+set}" = set; then
5643 enableval=$enable_libffi; case "$enableval" in
5644 yes) llvm_cv_enable_libffi="yes" ;;
5645 no) llvm_cv_enable_libffi="no" ;;
5646 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5647 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5648 { (exit 1); exit 1; }; } ;;
5651 llvm_cv_enable_libffi=no
5656 # Check whether --with-internal-prefix was given.
5657 if test "${with_internal_prefix+set}" = set; then
5658 withval=$with_internal_prefix;
5663 INTERNAL_PREFIX=$withval
5667 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5668 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
5669 if test "${lt_cv_path_NM+set}" = set; then
5670 echo $ECHO_N "(cached) $ECHO_C" >&6
5672 if test -n "$NM"; then
5673 # Let the user override the test.
5676 lt_nm_to_check="${ac_tool_prefix}nm"
5677 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5678 lt_nm_to_check="$lt_nm_to_check nm"
5680 for lt_tmp_nm in $lt_nm_to_check; do
5681 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5682 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5684 test -z "$ac_dir" && ac_dir=.
5685 tmp_nm="$ac_dir/$lt_tmp_nm"
5686 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5687 # Check to see if the nm accepts a BSD-compat flag.
5688 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5689 # nm: unknown option "B" ignored
5690 # Tru64's nm complains that /dev/null is an invalid object file
5691 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5692 */dev/null* | *'Invalid file or object type'*)
5693 lt_cv_path_NM="$tmp_nm -B"
5697 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5699 lt_cv_path_NM="$tmp_nm -p"
5703 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5704 continue # so that we can try to find one that supports BSD flags
5713 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5716 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5717 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
5722 { echo "$as_me:$LINENO: checking for GNU make" >&5
5723 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
5724 if test "${llvm_cv_gnu_make_command+set}" = set; then
5725 echo $ECHO_N "(cached) $ECHO_C" >&6
5727 llvm_cv_gnu_make_command=''
5728 for a in "$MAKE" make gmake gnumake ; do
5729 if test -z "$a" ; then continue ; fi ;
5730 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
5732 llvm_cv_gnu_make_command=$a ;
5737 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
5738 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
5739 if test "x$llvm_cv_gnu_make_command" != "x" ; then
5743 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
5744 echo "${ECHO_T}\"Not found\"" >&6; };
5748 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
5749 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
5751 if test "$LN_S" = "ln -s"; then
5752 { echo "$as_me:$LINENO: result: yes" >&5
5753 echo "${ECHO_T}yes" >&6; }
5755 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5756 echo "${ECHO_T}no, using $LN_S" >&6; }
5759 # Extract the first word of "cmp", so it can be a program name with args.
5760 set dummy cmp; ac_word=$2
5761 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5762 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5763 if test "${ac_cv_path_CMP+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5768 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5778 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5786 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5791 if test -n "$CMP"; then
5792 { echo "$as_me:$LINENO: result: $CMP" >&5
5793 echo "${ECHO_T}$CMP" >&6; }
5795 { echo "$as_me:$LINENO: result: no" >&5
5796 echo "${ECHO_T}no" >&6; }
5800 # Extract the first word of "cp", so it can be a program name with args.
5801 set dummy cp; ac_word=$2
5802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5804 if test "${ac_cv_path_CP+set}" = set; then
5805 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 ac_cv_path_CP="$CP" # Let the user override the test with a path.
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
5820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5827 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
5832 if test -n "$CP"; then
5833 { echo "$as_me:$LINENO: result: $CP" >&5
5834 echo "${ECHO_T}$CP" >&6; }
5836 { echo "$as_me:$LINENO: result: no" >&5
5837 echo "${ECHO_T}no" >&6; }
5841 # Extract the first word of "date", so it can be a program name with args.
5842 set dummy date; ac_word=$2
5843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5845 if test "${ac_cv_path_DATE+set}" = set; then
5846 echo $ECHO_N "(cached) $ECHO_C" >&6
5850 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
5853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5857 test -z "$as_dir" && as_dir=.
5858 for ac_exec_ext in '' $ac_executable_extensions; do
5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5860 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
5861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5868 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
5872 DATE=$ac_cv_path_DATE
5873 if test -n "$DATE"; then
5874 { echo "$as_me:$LINENO: result: $DATE" >&5
5875 echo "${ECHO_T}$DATE" >&6; }
5877 { echo "$as_me:$LINENO: result: no" >&5
5878 echo "${ECHO_T}no" >&6; }
5882 # Extract the first word of "find", so it can be a program name with args.
5883 set dummy find; ac_word=$2
5884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5886 if test "${ac_cv_path_FIND+set}" = set; then
5887 echo $ECHO_N "(cached) $ECHO_C" >&6
5891 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
5894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5898 test -z "$as_dir" && as_dir=.
5899 for ac_exec_ext in '' $ac_executable_extensions; do
5900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5901 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
5902 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5909 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
5913 FIND=$ac_cv_path_FIND
5914 if test -n "$FIND"; then
5915 { echo "$as_me:$LINENO: result: $FIND" >&5
5916 echo "${ECHO_T}$FIND" >&6; }
5918 { echo "$as_me:$LINENO: result: no" >&5
5919 echo "${ECHO_T}no" >&6; }
5923 # Extract the first word of "grep", so it can be a program name with args.
5924 set dummy grep; ac_word=$2
5925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5927 if test "${ac_cv_path_GREP+set}" = set; then
5928 echo $ECHO_N "(cached) $ECHO_C" >&6
5932 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
5935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5939 test -z "$as_dir" && as_dir=.
5940 for ac_exec_ext in '' $ac_executable_extensions; do
5941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5942 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
5943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5950 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
5954 GREP=$ac_cv_path_GREP
5955 if test -n "$GREP"; then
5956 { echo "$as_me:$LINENO: result: $GREP" >&5
5957 echo "${ECHO_T}$GREP" >&6; }
5959 { echo "$as_me:$LINENO: result: no" >&5
5960 echo "${ECHO_T}no" >&6; }
5964 # Extract the first word of "mkdir", so it can be a program name with args.
5965 set dummy mkdir; ac_word=$2
5966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5968 if test "${ac_cv_path_MKDIR+set}" = set; then
5969 echo $ECHO_N "(cached) $ECHO_C" >&6
5973 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
5976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5980 test -z "$as_dir" && as_dir=.
5981 for ac_exec_ext in '' $ac_executable_extensions; do
5982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5983 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
5984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5991 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
5995 MKDIR=$ac_cv_path_MKDIR
5996 if test -n "$MKDIR"; then
5997 { echo "$as_me:$LINENO: result: $MKDIR" >&5
5998 echo "${ECHO_T}$MKDIR" >&6; }
6000 { echo "$as_me:$LINENO: result: no" >&5
6001 echo "${ECHO_T}no" >&6; }
6005 # Extract the first word of "mv", so it can be a program name with args.
6006 set dummy mv; ac_word=$2
6007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6009 if test "${ac_cv_path_MV+set}" = set; then
6010 echo $ECHO_N "(cached) $ECHO_C" >&6
6014 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
6023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6024 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6037 if test -n "$MV"; then
6038 { echo "$as_me:$LINENO: result: $MV" >&5
6039 echo "${ECHO_T}$MV" >&6; }
6041 { echo "$as_me:$LINENO: result: no" >&5
6042 echo "${ECHO_T}no" >&6; }
6046 if test -n "$ac_tool_prefix"; then
6047 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6048 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6051 if test "${ac_cv_prog_RANLIB+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 if test -n "$RANLIB"; then
6055 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 test -z "$as_dir" && as_dir=.
6062 for ac_exec_ext in '' $ac_executable_extensions; do
6063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6064 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6074 RANLIB=$ac_cv_prog_RANLIB
6075 if test -n "$RANLIB"; then
6076 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6077 echo "${ECHO_T}$RANLIB" >&6; }
6079 { echo "$as_me:$LINENO: result: no" >&5
6080 echo "${ECHO_T}no" >&6; }
6085 if test -z "$ac_cv_prog_RANLIB"; then
6086 ac_ct_RANLIB=$RANLIB
6087 # Extract the first word of "ranlib", so it can be a program name with args.
6088 set dummy ranlib; ac_word=$2
6089 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6090 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6091 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6092 echo $ECHO_N "(cached) $ECHO_C" >&6
6094 if test -n "$ac_ct_RANLIB"; then
6095 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6101 test -z "$as_dir" && as_dir=.
6102 for ac_exec_ext in '' $ac_executable_extensions; do
6103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6104 ac_cv_prog_ac_ct_RANLIB="ranlib"
6105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6114 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6115 if test -n "$ac_ct_RANLIB"; then
6116 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6117 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6119 { echo "$as_me:$LINENO: result: no" >&5
6120 echo "${ECHO_T}no" >&6; }
6123 if test "x$ac_ct_RANLIB" = x; then
6126 case $cross_compiling:$ac_tool_warned in
6128 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6129 whose name does not start with the host triplet. If you think this
6130 configuration is useful to you, please write to autoconf@gnu.org." >&5
6131 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6132 whose name does not start with the host triplet. If you think this
6133 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6134 ac_tool_warned=yes ;;
6136 RANLIB=$ac_ct_RANLIB
6139 RANLIB="$ac_cv_prog_RANLIB"
6142 if test -n "$ac_tool_prefix"; then
6143 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6144 set dummy ${ac_tool_prefix}ar; ac_word=$2
6145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6147 if test "${ac_cv_prog_AR+set}" = set; then
6148 echo $ECHO_N "(cached) $ECHO_C" >&6
6150 if test -n "$AR"; then
6151 ac_cv_prog_AR="$AR" # Let the user override the test.
6153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6157 test -z "$as_dir" && as_dir=.
6158 for ac_exec_ext in '' $ac_executable_extensions; do
6159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6160 ac_cv_prog_AR="${ac_tool_prefix}ar"
6161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6171 if test -n "$AR"; then
6172 { echo "$as_me:$LINENO: result: $AR" >&5
6173 echo "${ECHO_T}$AR" >&6; }
6175 { echo "$as_me:$LINENO: result: no" >&5
6176 echo "${ECHO_T}no" >&6; }
6181 if test -z "$ac_cv_prog_AR"; then
6183 # Extract the first word of "ar", so it can be a program name with args.
6184 set dummy ar; ac_word=$2
6185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6187 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6188 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 if test -n "$ac_ct_AR"; then
6191 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6197 test -z "$as_dir" && as_dir=.
6198 for ac_exec_ext in '' $ac_executable_extensions; do
6199 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6200 ac_cv_prog_ac_ct_AR="ar"
6201 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6210 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6211 if test -n "$ac_ct_AR"; then
6212 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6213 echo "${ECHO_T}$ac_ct_AR" >&6; }
6215 { echo "$as_me:$LINENO: result: no" >&5
6216 echo "${ECHO_T}no" >&6; }
6219 if test "x$ac_ct_AR" = x; then
6222 case $cross_compiling:$ac_tool_warned in
6224 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6225 whose name does not start with the host triplet. If you think this
6226 configuration is useful to you, please write to autoconf@gnu.org." >&5
6227 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6228 whose name does not start with the host triplet. If you think this
6229 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6230 ac_tool_warned=yes ;;
6238 # Extract the first word of "rm", so it can be a program name with args.
6239 set dummy rm; ac_word=$2
6240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6242 if test "${ac_cv_path_RM+set}" = set; then
6243 echo $ECHO_N "(cached) $ECHO_C" >&6
6247 ac_cv_path_RM="$RM" # Let the user override the test with a path.
6250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6254 test -z "$as_dir" && as_dir=.
6255 for ac_exec_ext in '' $ac_executable_extensions; do
6256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6257 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
6258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6265 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
6270 if test -n "$RM"; then
6271 { echo "$as_me:$LINENO: result: $RM" >&5
6272 echo "${ECHO_T}$RM" >&6; }
6274 { echo "$as_me:$LINENO: result: no" >&5
6275 echo "${ECHO_T}no" >&6; }
6279 # Extract the first word of "sed", so it can be a program name with args.
6280 set dummy sed; ac_word=$2
6281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6283 if test "${ac_cv_path_SED+set}" = set; then
6284 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 ac_cv_path_SED="$SED" # Let the user override the test with a path.
6291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 test -z "$as_dir" && as_dir=.
6296 for ac_exec_ext in '' $ac_executable_extensions; do
6297 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6298 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
6299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
6311 if test -n "$SED"; then
6312 { echo "$as_me:$LINENO: result: $SED" >&5
6313 echo "${ECHO_T}$SED" >&6; }
6315 { echo "$as_me:$LINENO: result: no" >&5
6316 echo "${ECHO_T}no" >&6; }
6320 # Extract the first word of "tar", so it can be a program name with args.
6321 set dummy tar; ac_word=$2
6322 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6323 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6324 if test "${ac_cv_path_TAR+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6329 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
6332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6336 test -z "$as_dir" && as_dir=.
6337 for ac_exec_ext in '' $ac_executable_extensions; do
6338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6339 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
6340 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
6352 if test -n "$TAR"; then
6353 { echo "$as_me:$LINENO: result: $TAR" >&5
6354 echo "${ECHO_T}$TAR" >&6; }
6356 { echo "$as_me:$LINENO: result: no" >&5
6357 echo "${ECHO_T}no" >&6; }
6361 # Extract the first word of "pwd", so it can be a program name with args.
6362 set dummy pwd; ac_word=$2
6363 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6365 if test "${ac_cv_path_BINPWD+set}" = set; then
6366 echo $ECHO_N "(cached) $ECHO_C" >&6
6370 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
6373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6377 test -z "$as_dir" && as_dir=.
6378 for ac_exec_ext in '' $ac_executable_extensions; do
6379 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6380 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
6381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
6392 BINPWD=$ac_cv_path_BINPWD
6393 if test -n "$BINPWD"; then
6394 { echo "$as_me:$LINENO: result: $BINPWD" >&5
6395 echo "${ECHO_T}$BINPWD" >&6; }
6397 { echo "$as_me:$LINENO: result: no" >&5
6398 echo "${ECHO_T}no" >&6; }
6403 # Extract the first word of "Graphviz", so it can be a program name with args.
6404 set dummy Graphviz; ac_word=$2
6405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6407 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
6408 echo $ECHO_N "(cached) $ECHO_C" >&6
6412 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
6415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6419 test -z "$as_dir" && as_dir=.
6420 for ac_exec_ext in '' $ac_executable_extensions; do
6421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6422 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
6423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6430 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
6434 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
6435 if test -n "$GRAPHVIZ"; then
6436 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
6437 echo "${ECHO_T}$GRAPHVIZ" >&6; }
6439 { echo "$as_me:$LINENO: result: no" >&5
6440 echo "${ECHO_T}no" >&6; }
6444 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6446 cat >>confdefs.h <<\_ACEOF
6447 #define HAVE_GRAPHVIZ 1
6450 if test "$llvm_cv_os_type" = "MingW" ; then
6451 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6454 cat >>confdefs.h <<_ACEOF
6455 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6459 # Extract the first word of "dot", so it can be a program name with args.
6460 set dummy dot; ac_word=$2
6461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6463 if test "${ac_cv_path_DOT+set}" = set; then
6464 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
6471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475 test -z "$as_dir" && as_dir=.
6476 for ac_exec_ext in '' $ac_executable_extensions; do
6477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6478 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
6479 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6486 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
6491 if test -n "$DOT"; then
6492 { echo "$as_me:$LINENO: result: $DOT" >&5
6493 echo "${ECHO_T}$DOT" >&6; }
6495 { echo "$as_me:$LINENO: result: no" >&5
6496 echo "${ECHO_T}no" >&6; }
6500 if test "$DOT" != "echo dot" ; then
6502 cat >>confdefs.h <<\_ACEOF
6506 if test "$llvm_cv_os_type" = "MingW" ; then
6507 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6510 cat >>confdefs.h <<_ACEOF
6511 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6515 # Extract the first word of "fdp", so it can be a program name with args.
6516 set dummy fdp; ac_word=$2
6517 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6518 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6519 if test "${ac_cv_path_FDP+set}" = set; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6524 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6534 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6542 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
6547 if test -n "$FDP"; then
6548 { echo "$as_me:$LINENO: result: $FDP" >&5
6549 echo "${ECHO_T}$FDP" >&6; }
6551 { echo "$as_me:$LINENO: result: no" >&5
6552 echo "${ECHO_T}no" >&6; }
6556 if test "$FDP" != "echo fdp" ; then
6558 cat >>confdefs.h <<\_ACEOF
6562 if test "$llvm_cv_os_type" = "MingW" ; then
6563 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6566 cat >>confdefs.h <<_ACEOF
6567 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
6571 # Extract the first word of "neato", so it can be a program name with args.
6572 set dummy neato; ac_word=$2
6573 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6574 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6575 if test "${ac_cv_path_NEATO+set}" = set; then
6576 echo $ECHO_N "(cached) $ECHO_C" >&6
6580 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
6583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6587 test -z "$as_dir" && as_dir=.
6588 for ac_exec_ext in '' $ac_executable_extensions; do
6589 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6590 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
6591 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6598 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
6602 NEATO=$ac_cv_path_NEATO
6603 if test -n "$NEATO"; then
6604 { echo "$as_me:$LINENO: result: $NEATO" >&5
6605 echo "${ECHO_T}$NEATO" >&6; }
6607 { echo "$as_me:$LINENO: result: no" >&5
6608 echo "${ECHO_T}no" >&6; }
6612 if test "$NEATO" != "echo neato" ; then
6614 cat >>confdefs.h <<\_ACEOF
6615 #define HAVE_NEATO 1
6618 if test "$llvm_cv_os_type" = "MingW" ; then
6619 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6622 cat >>confdefs.h <<_ACEOF
6623 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
6627 # Extract the first word of "twopi", so it can be a program name with args.
6628 set dummy twopi; ac_word=$2
6629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6631 if test "${ac_cv_path_TWOPI+set}" = set; then
6632 echo $ECHO_N "(cached) $ECHO_C" >&6
6636 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
6639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6643 test -z "$as_dir" && as_dir=.
6644 for ac_exec_ext in '' $ac_executable_extensions; do
6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6646 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
6647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
6658 TWOPI=$ac_cv_path_TWOPI
6659 if test -n "$TWOPI"; then
6660 { echo "$as_me:$LINENO: result: $TWOPI" >&5
6661 echo "${ECHO_T}$TWOPI" >&6; }
6663 { echo "$as_me:$LINENO: result: no" >&5
6664 echo "${ECHO_T}no" >&6; }
6668 if test "$TWOPI" != "echo twopi" ; then
6670 cat >>confdefs.h <<\_ACEOF
6671 #define HAVE_TWOPI 1
6674 if test "$llvm_cv_os_type" = "MingW" ; then
6675 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6678 cat >>confdefs.h <<_ACEOF
6679 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
6683 # Extract the first word of "circo", so it can be a program name with args.
6684 set dummy circo; ac_word=$2
6685 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6686 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6687 if test "${ac_cv_path_CIRCO+set}" = set; then
6688 echo $ECHO_N "(cached) $ECHO_C" >&6
6692 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
6695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 test -z "$as_dir" && as_dir=.
6700 for ac_exec_ext in '' $ac_executable_extensions; do
6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6702 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
6703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6710 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
6714 CIRCO=$ac_cv_path_CIRCO
6715 if test -n "$CIRCO"; then
6716 { echo "$as_me:$LINENO: result: $CIRCO" >&5
6717 echo "${ECHO_T}$CIRCO" >&6; }
6719 { echo "$as_me:$LINENO: result: no" >&5
6720 echo "${ECHO_T}no" >&6; }
6724 if test "$CIRCO" != "echo circo" ; then
6726 cat >>confdefs.h <<\_ACEOF
6727 #define HAVE_CIRCO 1
6730 if test "$llvm_cv_os_type" = "MingW" ; then
6731 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6734 cat >>confdefs.h <<_ACEOF
6735 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
6739 for ac_prog in gv gsview32
6741 # Extract the first word of "$ac_prog", so it can be a program name with args.
6742 set dummy $ac_prog; ac_word=$2
6743 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6745 if test "${ac_cv_path_GV+set}" = set; then
6746 echo $ECHO_N "(cached) $ECHO_C" >&6
6750 ac_cv_path_GV="$GV" # Let the user override the test with a path.
6753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6757 test -z "$as_dir" && as_dir=.
6758 for ac_exec_ext in '' $ac_executable_extensions; do
6759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6760 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
6761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6772 if test -n "$GV"; then
6773 { echo "$as_me:$LINENO: result: $GV" >&5
6774 echo "${ECHO_T}$GV" >&6; }
6776 { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6781 test -n "$GV" && break
6783 test -n "$GV" || GV="echo gv"
6785 if test "$GV" != "echo gv" ; then
6787 cat >>confdefs.h <<\_ACEOF
6791 if test "$llvm_cv_os_type" = "MingW" ; then
6792 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6795 cat >>confdefs.h <<_ACEOF
6796 #define LLVM_PATH_GV "$GV${EXEEXT}"
6800 # Extract the first word of "dotty", so it can be a program name with args.
6801 set dummy dotty; ac_word=$2
6802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804 if test "${ac_cv_path_DOTTY+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6809 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
6812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6816 test -z "$as_dir" && as_dir=.
6817 for ac_exec_ext in '' $ac_executable_extensions; do
6818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6819 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
6820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6827 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
6831 DOTTY=$ac_cv_path_DOTTY
6832 if test -n "$DOTTY"; then
6833 { echo "$as_me:$LINENO: result: $DOTTY" >&5
6834 echo "${ECHO_T}$DOTTY" >&6; }
6836 { echo "$as_me:$LINENO: result: no" >&5
6837 echo "${ECHO_T}no" >&6; }
6841 if test "$DOTTY" != "echo dotty" ; then
6843 cat >>confdefs.h <<\_ACEOF
6844 #define HAVE_DOTTY 1
6847 if test "$llvm_cv_os_type" = "MingW" ; then
6848 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6851 cat >>confdefs.h <<_ACEOF
6852 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
6856 # Extract the first word of "xdot.py", so it can be a program name with args.
6857 set dummy xdot.py; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_path_XDOT_PY+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6865 ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
6868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 test -z "$as_dir" && as_dir=.
6873 for ac_exec_ext in '' $ac_executable_extensions; do
6874 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6875 ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
6876 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6883 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
6887 XDOT_PY=$ac_cv_path_XDOT_PY
6888 if test -n "$XDOT_PY"; then
6889 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
6890 echo "${ECHO_T}$XDOT_PY" >&6; }
6892 { echo "$as_me:$LINENO: result: no" >&5
6893 echo "${ECHO_T}no" >&6; }
6897 if test "$XDOT_PY" != "echo xdot.py" ; then
6899 cat >>confdefs.h <<\_ACEOF
6900 #define HAVE_XDOT_PY 1
6903 if test "$llvm_cv_os_type" = "MingW" ; then
6904 XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6907 cat >>confdefs.h <<_ACEOF
6908 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
6913 # Find a good install program. We prefer a C program (faster),
6914 # so one script is as good as another. But avoid the broken or
6915 # incompatible versions:
6916 # SysV /etc/install, /usr/sbin/install
6917 # SunOS /usr/etc/install
6918 # IRIX /sbin/install
6920 # AmigaOS /C/install, which installs bootblocks on floppy discs
6921 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
6922 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
6923 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
6924 # OS/2's system install, which has a completely different semantic
6925 # ./install, which can be erroneously created by make from ./install.sh.
6926 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
6927 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
6928 if test -z "$INSTALL"; then
6929 if test "${ac_cv_path_install+set}" = set; then
6930 echo $ECHO_N "(cached) $ECHO_C" >&6
6932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6936 test -z "$as_dir" && as_dir=.
6937 # Account for people who put trailing slashes in PATH elements.
6939 ./ | .// | /cC/* | \
6940 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
6941 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
6944 # OSF1 and SCO ODT 3.0 have their own names for install.
6945 # Don't use installbsd from OSF since it installs stuff as root
6947 for ac_prog in ginstall scoinst install; do
6948 for ac_exec_ext in '' $ac_executable_extensions; do
6949 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
6950 if test $ac_prog = install &&
6951 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6952 # AIX install. It has an incompatible calling convention.
6954 elif test $ac_prog = install &&
6955 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
6956 # program-specific install script used by HP pwplus--don't use.
6959 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
6972 if test "${ac_cv_path_install+set}" = set; then
6973 INSTALL=$ac_cv_path_install
6975 # As a last resort, use the slow shell script. Don't cache a
6976 # value for INSTALL within a source directory, because that will
6977 # break other packages using the cache if that directory is
6978 # removed, or if the value is a relative name.
6979 INSTALL=$ac_install_sh
6982 { echo "$as_me:$LINENO: result: $INSTALL" >&5
6983 echo "${ECHO_T}$INSTALL" >&6; }
6985 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
6986 # It thinks the first close brace ends the variable substitution.
6987 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
6989 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
6991 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
6994 [\\/$]* | ?:[\\/]* ) ;;
6995 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
6998 # Extract the first word of "bzip2", so it can be a program name with args.
6999 set dummy bzip2; ac_word=$2
7000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7002 if test "${ac_cv_path_BZIP2+set}" = set; then
7003 echo $ECHO_N "(cached) $ECHO_C" >&6
7007 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7017 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 BZIP2=$ac_cv_path_BZIP2
7029 if test -n "$BZIP2"; then
7030 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7031 echo "${ECHO_T}$BZIP2" >&6; }
7033 { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7038 # Extract the first word of "cat", so it can be a program name with args.
7039 set dummy cat; ac_word=$2
7040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7042 if test "${ac_cv_path_CAT+set}" = set; then
7043 echo $ECHO_N "(cached) $ECHO_C" >&6
7047 ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
7050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7054 test -z "$as_dir" && as_dir=.
7055 for ac_exec_ext in '' $ac_executable_extensions; do
7056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7057 ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
7058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7069 if test -n "$CAT"; then
7070 { echo "$as_me:$LINENO: result: $CAT" >&5
7071 echo "${ECHO_T}$CAT" >&6; }
7073 { echo "$as_me:$LINENO: result: no" >&5
7074 echo "${ECHO_T}no" >&6; }
7078 # Extract the first word of "doxygen", so it can be a program name with args.
7079 set dummy doxygen; ac_word=$2
7080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7082 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7083 echo $ECHO_N "(cached) $ECHO_C" >&6
7087 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7094 test -z "$as_dir" && as_dir=.
7095 for ac_exec_ext in '' $ac_executable_extensions; do
7096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7097 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7108 DOXYGEN=$ac_cv_path_DOXYGEN
7109 if test -n "$DOXYGEN"; then
7110 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7111 echo "${ECHO_T}$DOXYGEN" >&6; }
7113 { echo "$as_me:$LINENO: result: no" >&5
7114 echo "${ECHO_T}no" >&6; }
7118 # Extract the first word of "groff", so it can be a program name with args.
7119 set dummy groff; ac_word=$2
7120 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7121 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7122 if test "${ac_cv_path_GROFF+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7127 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7137 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
7138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 GROFF=$ac_cv_path_GROFF
7149 if test -n "$GROFF"; then
7150 { echo "$as_me:$LINENO: result: $GROFF" >&5
7151 echo "${ECHO_T}$GROFF" >&6; }
7153 { echo "$as_me:$LINENO: result: no" >&5
7154 echo "${ECHO_T}no" >&6; }
7158 # Extract the first word of "gzip", so it can be a program name with args.
7159 set dummy gzip; ac_word=$2
7160 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7161 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7162 if test "${ac_cv_path_GZIPBIN+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7167 ac_cv_path_GZIPBIN="$GZIPBIN" # Let the user override the test with a path.
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7177 ac_cv_path_GZIPBIN="$as_dir/$ac_word$ac_exec_ext"
7178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 GZIPBIN=$ac_cv_path_GZIPBIN
7189 if test -n "$GZIPBIN"; then
7190 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
7191 echo "${ECHO_T}$GZIPBIN" >&6; }
7193 { echo "$as_me:$LINENO: result: no" >&5
7194 echo "${ECHO_T}no" >&6; }
7198 # Extract the first word of "pod2html", so it can be a program name with args.
7199 set dummy pod2html; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_POD2HTML+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7228 POD2HTML=$ac_cv_path_POD2HTML
7229 if test -n "$POD2HTML"; then
7230 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
7231 echo "${ECHO_T}$POD2HTML" >&6; }
7233 { echo "$as_me:$LINENO: result: no" >&5
7234 echo "${ECHO_T}no" >&6; }
7238 # Extract the first word of "pod2man", so it can be a program name with args.
7239 set dummy pod2man; ac_word=$2
7240 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7241 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7242 if test "${ac_cv_path_POD2MAN+set}" = set; then
7243 echo $ECHO_N "(cached) $ECHO_C" >&6
7247 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
7250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7254 test -z "$as_dir" && as_dir=.
7255 for ac_exec_ext in '' $ac_executable_extensions; do
7256 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7257 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
7258 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7268 POD2MAN=$ac_cv_path_POD2MAN
7269 if test -n "$POD2MAN"; then
7270 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
7271 echo "${ECHO_T}$POD2MAN" >&6; }
7273 { echo "$as_me:$LINENO: result: no" >&5
7274 echo "${ECHO_T}no" >&6; }
7278 # Extract the first word of "pdfroff", so it can be a program name with args.
7279 set dummy pdfroff; ac_word=$2
7280 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7281 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7282 if test "${ac_cv_path_PDFROFF+set}" = set; then
7283 echo $ECHO_N "(cached) $ECHO_C" >&6
7287 ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7297 ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
7298 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7308 PDFROFF=$ac_cv_path_PDFROFF
7309 if test -n "$PDFROFF"; then
7310 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
7311 echo "${ECHO_T}$PDFROFF" >&6; }
7313 { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7318 # Extract the first word of "runtest", so it can be a program name with args.
7319 set dummy runtest; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_RUNTEST+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
7330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir=.
7335 for ac_exec_ext in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 RUNTEST=$ac_cv_path_RUNTEST
7349 if test -n "$RUNTEST"; then
7350 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
7351 echo "${ECHO_T}$RUNTEST" >&6; }
7353 { echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6; }
7360 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
7361 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
7363 # Check whether --with-tclinclude was given.
7364 if test "${with_tclinclude+set}" = set; then
7365 withval=$with_tclinclude; with_tclinclude=${withval}
7370 if test "${ac_cv_path_tclsh+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 if test x"${with_tclinclude}" != x ; then
7375 if test -f ${with_tclinclude}/tclsh ; then
7376 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
7377 elif test -f ${with_tclinclude}/src/tclsh ; then
7378 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
7380 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
7381 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
7382 { (exit 1); exit 1; }; }
7388 if test x"${ac_cv_path_tclsh}" = x ; then
7389 { echo "$as_me:$LINENO: result: none" >&5
7390 echo "${ECHO_T}none" >&6; }
7391 for ac_prog in tclsh8.4 tclsh8.4.8 tclsh8.4.7 tclsh8.4.6 tclsh8.4.5 tclsh8.4.4 tclsh8.4.3 tclsh8.4.2 tclsh8.4.1 tclsh8.4.0 tclsh8.3 tclsh8.3.5 tclsh8.3.4 tclsh8.3.3 tclsh8.3.2 tclsh8.3.1 tclsh8.3.0 tclsh
7393 # Extract the first word of "$ac_prog", so it can be a program name with args.
7394 set dummy $ac_prog; ac_word=$2
7395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7397 if test "${ac_cv_path_TCLSH+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7402 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
7405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 test -z "$as_dir" && as_dir=.
7410 for ac_exec_ext in '' $ac_executable_extensions; do
7411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7412 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
7413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7423 TCLSH=$ac_cv_path_TCLSH
7424 if test -n "$TCLSH"; then
7425 { echo "$as_me:$LINENO: result: $TCLSH" >&5
7426 echo "${ECHO_T}$TCLSH" >&6; }
7428 { echo "$as_me:$LINENO: result: no" >&5
7429 echo "${ECHO_T}no" >&6; }
7433 test -n "$TCLSH" && break
7436 if test x"${TCLSH}" = x ; then
7437 ac_cv_path_tclsh='';
7439 ac_cv_path_tclsh="${TCLSH}";
7442 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
7443 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
7444 TCLSH="${ac_cv_path_tclsh}"
7448 # Extract the first word of "zip", so it can be a program name with args.
7449 set dummy zip; ac_word=$2
7450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7452 if test "${ac_cv_path_ZIP+set}" = set; then
7453 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7464 test -z "$as_dir" && as_dir=.
7465 for ac_exec_ext in '' $ac_executable_extensions; do
7466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7467 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7479 if test -n "$ZIP"; then
7480 { echo "$as_me:$LINENO: result: $ZIP" >&5
7481 echo "${ECHO_T}$ZIP" >&6; }
7483 { echo "$as_me:$LINENO: result: no" >&5
7484 echo "${ECHO_T}no" >&6; }
7488 for ac_prog in ocamlc
7490 # Extract the first word of "$ac_prog", so it can be a program name with args.
7491 set dummy $ac_prog; ac_word=$2
7492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7494 if test "${ac_cv_path_OCAMLC+set}" = set; then
7495 echo $ECHO_N "(cached) $ECHO_C" >&6
7499 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
7502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7506 test -z "$as_dir" && as_dir=.
7507 for ac_exec_ext in '' $ac_executable_extensions; do
7508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7509 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
7510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7520 OCAMLC=$ac_cv_path_OCAMLC
7521 if test -n "$OCAMLC"; then
7522 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
7523 echo "${ECHO_T}$OCAMLC" >&6; }
7525 { echo "$as_me:$LINENO: result: no" >&5
7526 echo "${ECHO_T}no" >&6; }
7530 test -n "$OCAMLC" && break
7533 for ac_prog in ocamlopt
7535 # Extract the first word of "$ac_prog", so it can be a program name with args.
7536 set dummy $ac_prog; ac_word=$2
7537 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7538 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7539 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7544 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
7555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7565 OCAMLOPT=$ac_cv_path_OCAMLOPT
7566 if test -n "$OCAMLOPT"; then
7567 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
7568 echo "${ECHO_T}$OCAMLOPT" >&6; }
7570 { echo "$as_me:$LINENO: result: no" >&5
7571 echo "${ECHO_T}no" >&6; }
7575 test -n "$OCAMLOPT" && break
7578 for ac_prog in ocamldep
7580 # Extract the first word of "$ac_prog", so it can be a program name with args.
7581 set dummy $ac_prog; ac_word=$2
7582 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7583 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7584 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
7585 echo $ECHO_N "(cached) $ECHO_C" >&6
7589 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
7592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir=.
7597 for ac_exec_ext in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
7600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 OCAMLDEP=$ac_cv_path_OCAMLDEP
7611 if test -n "$OCAMLDEP"; then
7612 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
7613 echo "${ECHO_T}$OCAMLDEP" >&6; }
7615 { echo "$as_me:$LINENO: result: no" >&5
7616 echo "${ECHO_T}no" >&6; }
7620 test -n "$OCAMLDEP" && break
7623 for ac_prog in ocamldoc
7625 # Extract the first word of "$ac_prog", so it can be a program name with args.
7626 set dummy $ac_prog; ac_word=$2
7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir=.
7642 for ac_exec_ext in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 OCAMLDOC=$ac_cv_path_OCAMLDOC
7656 if test -n "$OCAMLDOC"; then
7657 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
7658 echo "${ECHO_T}$OCAMLDOC" >&6; }
7660 { echo "$as_me:$LINENO: result: no" >&5
7661 echo "${ECHO_T}no" >&6; }
7665 test -n "$OCAMLDOC" && break
7668 for ac_prog in gas as
7670 # Extract the first word of "$ac_prog", so it can be a program name with args.
7671 set dummy $ac_prog; ac_word=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_GAS+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
7682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7686 test -z "$as_dir" && as_dir=.
7687 for ac_exec_ext in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7701 if test -n "$GAS"; then
7702 { echo "$as_me:$LINENO: result: $GAS" >&5
7703 echo "${ECHO_T}$GAS" >&6; }
7705 { echo "$as_me:$LINENO: result: no" >&5
7706 echo "${ECHO_T}no" >&6; }
7710 test -n "$GAS" && break
7714 { echo "$as_me:$LINENO: checking for linker version" >&5
7715 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
7716 if test "${llvm_cv_link_version+set}" = set; then
7717 echo $ECHO_N "(cached) $ECHO_C" >&6
7720 version_string="$(ld -v 2>&1 | head -1)"
7723 if (echo "$version_string" | grep -q "ld64"); then
7724 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)\( (.*)\)\{0,1\}#\1#")
7726 llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
7730 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
7731 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
7733 cat >>confdefs.h <<_ACEOF
7734 #define HOST_LINK_VERSION "$llvm_cv_link_version"
7739 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
7740 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
7741 if test "${llvm_cv_link_use_r+set}" = set; then
7742 echo $ECHO_N "(cached) $ECHO_C" >&6
7745 ac_cpp='$CPP $CPPFLAGS'
7746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7751 CFLAGS="$CFLAGS -Wl,-R."
7752 cat >conftest.$ac_ext <<_ACEOF
7755 cat confdefs.h >>conftest.$ac_ext
7756 cat >>conftest.$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7767 rm -f conftest.$ac_objext conftest$ac_exeext
7768 if { (ac_try="$ac_link"
7770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7771 *) ac_try_echo=$ac_try;;
7773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7774 (eval "$ac_link") 2>conftest.er1
7776 grep -v '^ *+' conftest.er1 >conftest.err
7778 cat conftest.err >&5
7779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7780 (exit $ac_status); } &&
7781 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7782 { (case "(($ac_try" in
7783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7784 *) ac_try_echo=$ac_try;;
7786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7787 (eval "$ac_try") 2>&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; } &&
7791 { ac_try='test -s conftest$ac_exeext'
7792 { (case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_try") 2>&5
7799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7800 (exit $ac_status); }; }; then
7801 llvm_cv_link_use_r=yes
7803 echo "$as_me: failed program was:" >&5
7804 sed 's/^/| /' conftest.$ac_ext >&5
7806 llvm_cv_link_use_r=no
7809 rm -f core conftest.err conftest.$ac_objext \
7810 conftest$ac_exeext conftest.$ac_ext
7813 ac_cpp='$CPP $CPPFLAGS'
7814 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7815 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7816 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7820 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
7821 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
7822 if test "$llvm_cv_link_use_r" = yes ; then
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_LINK_R 1
7831 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
7832 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
7833 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
7834 echo $ECHO_N "(cached) $ECHO_C" >&6
7837 ac_cpp='$CPP $CPPFLAGS'
7838 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7839 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7840 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7843 CFLAGS="$CFLAGS -Wl,-export-dynamic"
7844 cat >conftest.$ac_ext <<_ACEOF
7847 cat confdefs.h >>conftest.$ac_ext
7848 cat >>conftest.$ac_ext <<_ACEOF
7849 /* end confdefs.h. */
7859 rm -f conftest.$ac_objext conftest$ac_exeext
7860 if { (ac_try="$ac_link"
7862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7863 *) ac_try_echo=$ac_try;;
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_link") 2>conftest.er1
7868 grep -v '^ *+' conftest.er1 >conftest.err
7870 cat conftest.err >&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } &&
7873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7874 { (case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_try") 2>&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); }; } &&
7883 { ac_try='test -s conftest$ac_exeext'
7884 { (case "(($ac_try" in
7885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7886 *) ac_try_echo=$ac_try;;
7888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7889 (eval "$ac_try") 2>&5
7891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); }; }; then
7893 llvm_cv_link_use_export_dynamic=yes
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7898 llvm_cv_link_use_export_dynamic=no
7901 rm -f core conftest.err conftest.$ac_objext \
7902 conftest$ac_exeext conftest.$ac_ext
7905 ac_cpp='$CPP $CPPFLAGS'
7906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7912 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
7913 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
7914 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
7916 cat >>confdefs.h <<\_ACEOF
7917 #define HAVE_LINK_EXPORT_DYNAMIC 1
7923 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
7924 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
7925 if test "${llvm_cv_link_use_version_script+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 ac_cpp='$CPP $CPPFLAGS'
7930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936 # The following code is from the autoconf manual,
7937 # "11.13: Limitations of Usual Tools".
7938 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
7939 # Use mktemp if possible; otherwise fall back on mkdir,
7940 # with $RANDOM to make collisions less likely.
7944 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
7946 test -n "$tmp" && test -d "$tmp"
7948 tmp=$TMPDIR/foo$$-$RANDOM
7949 (umask 077 && mkdir "$tmp")
7952 echo "{" > "$tmp/export.map"
7953 echo " global: main;" >> "$tmp/export.map"
7954 echo " local: *;" >> "$tmp/export.map"
7955 echo "};" >> "$tmp/export.map"
7957 CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7973 rm -f conftest.$ac_objext conftest$ac_exeext
7974 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
7982 grep -v '^ *+' conftest.er1 >conftest.err
7984 cat conftest.err >&5
7985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7986 (exit $ac_status); } &&
7987 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7988 { (case "(($ac_try" in
7989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7990 *) ac_try_echo=$ac_try;;
7992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7993 (eval "$ac_try") 2>&5
7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7996 (exit $ac_status); }; } &&
7997 { ac_try='test -s conftest$ac_exeext'
7998 { (case "(($ac_try" in
7999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8000 *) ac_try_echo=$ac_try;;
8002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8003 (eval "$ac_try") 2>&5
8005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8006 (exit $ac_status); }; }; then
8007 llvm_cv_link_use_version_script=yes
8009 echo "$as_me: failed program was:" >&5
8010 sed 's/^/| /' conftest.$ac_ext >&5
8012 llvm_cv_link_use_version_script=no
8015 rm -f core conftest.err conftest.$ac_objext \
8016 conftest$ac_exeext conftest.$ac_ext
8017 rm "$tmp/export.map"
8021 ac_cpp='$CPP $CPPFLAGS'
8022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8028 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
8029 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
8030 if test "$llvm_cv_link_use_version_script" = yes ; then
8031 HAVE_LINK_VERSION_SCRIPT=1
8038 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8039 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8040 if test "${ac_cv_c_const+set}" = set; then
8041 echo $ECHO_N "(cached) $ECHO_C" >&6
8043 cat >conftest.$ac_ext <<_ACEOF
8046 cat confdefs.h >>conftest.$ac_ext
8047 cat >>conftest.$ac_ext <<_ACEOF
8048 /* end confdefs.h. */
8053 /* FIXME: Include the comments suggested by Paul. */
8055 /* Ultrix mips cc rejects this. */
8056 typedef int charset[2];
8058 /* SunOS 4.1.1 cc rejects this. */
8059 char const *const *ccp;
8061 /* NEC SVR4.0.2 mips cc rejects this. */
8062 struct point {int x, y;};
8063 static struct point const zero = {0,0};
8064 /* AIX XL C 1.02.0.0 rejects this.
8065 It does not let you subtract one const X* pointer from another in
8066 an arm of an if-expression whose if-part is not a constant
8068 const char *g = "string";
8069 ccp = &g + (g ? g-g : 0);
8070 /* HPUX 7.0 cc rejects these. */
8073 ccp = (char const *const *) p;
8074 { /* SCO 3.2v4 cc rejects this. */
8076 char const *s = 0 ? (char *) 0 : (char const *) 0;
8081 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8083 const int *foo = &x[0];
8086 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8087 typedef const int *iptr;
8091 { /* AIX XL C 1.02.0.0 rejects this saying
8092 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8093 struct s { int j; const int *ap[3]; };
8094 struct s *b; b->j = 5;
8096 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8100 return !x[0] && !zero.x;
8107 rm -f conftest.$ac_objext
8108 if { (ac_try="$ac_compile"
8110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8111 *) ac_try_echo=$ac_try;;
8113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8114 (eval "$ac_compile") 2>conftest.er1
8116 grep -v '^ *+' conftest.er1 >conftest.err
8118 cat conftest.err >&5
8119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8120 (exit $ac_status); } &&
8121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8122 { (case "(($ac_try" in
8123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8124 *) ac_try_echo=$ac_try;;
8126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8127 (eval "$ac_try") 2>&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); }; } &&
8131 { ac_try='test -s conftest.$ac_objext'
8132 { (case "(($ac_try" in
8133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8134 *) ac_try_echo=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_try") 2>&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); }; }; then
8143 echo "$as_me: failed program was:" >&5
8144 sed 's/^/| /' conftest.$ac_ext >&5
8149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8151 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8152 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8153 if test $ac_cv_c_const = no; then
8155 cat >>confdefs.h <<\_ACEOF
8167 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8168 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8169 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8170 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8172 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 cat >conftest.$ac_ext <<_ACEOF
8177 cat confdefs.h >>conftest.$ac_ext
8178 cat >>conftest.$ac_ext <<_ACEOF
8179 /* end confdefs.h. */
8180 #include <sys/types.h>
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8201 grep -v '^ *+' conftest.er1 >conftest.err
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } &&
8206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8207 { (case "(($ac_try" in
8208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8209 *) ac_try_echo=$ac_try;;
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_try") 2>&5
8214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8215 (exit $ac_status); }; } &&
8216 { ac_try='test -s conftest.$ac_objext'
8217 { (case "(($ac_try" in
8218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8219 *) ac_try_echo=$ac_try;;
8221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8222 (eval "$ac_try") 2>&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); }; }; then
8226 eval "$as_ac_Header=yes"
8228 echo "$as_me: failed program was:" >&5
8229 sed 's/^/| /' conftest.$ac_ext >&5
8231 eval "$as_ac_Header=no"
8234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8236 ac_res=`eval echo '${'$as_ac_Header'}'`
8237 { echo "$as_me:$LINENO: result: $ac_res" >&5
8238 echo "${ECHO_T}$ac_res" >&6; }
8239 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8240 cat >>confdefs.h <<_ACEOF
8241 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8244 ac_header_dirent=$ac_hdr; break
8248 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8249 if test $ac_header_dirent = dirent.h; then
8250 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8251 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8252 if test "${ac_cv_search_opendir+set}" = set; then
8253 echo $ECHO_N "(cached) $ECHO_C" >&6
8255 ac_func_search_save_LIBS=$LIBS
8256 cat >conftest.$ac_ext <<_ACEOF
8259 cat confdefs.h >>conftest.$ac_ext
8260 cat >>conftest.$ac_ext <<_ACEOF
8261 /* end confdefs.h. */
8263 /* Override any GCC internal prototype to avoid an error.
8264 Use char because int might match the return type of a GCC
8265 builtin and then its argument prototype would still apply. */
8278 for ac_lib in '' dir; do
8279 if test -z "$ac_lib"; then
8280 ac_res="none required"
8283 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8285 rm -f conftest.$ac_objext conftest$ac_exeext
8286 if { (ac_try="$ac_link"
8288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8289 *) ac_try_echo=$ac_try;;
8291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8292 (eval "$ac_link") 2>conftest.er1
8294 grep -v '^ *+' conftest.er1 >conftest.err
8296 cat conftest.err >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); } &&
8299 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8300 { (case "(($ac_try" in
8301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8302 *) ac_try_echo=$ac_try;;
8304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8305 (eval "$ac_try") 2>&5
8307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8308 (exit $ac_status); }; } &&
8309 { ac_try='test -s conftest$ac_exeext'
8310 { (case "(($ac_try" in
8311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8312 *) ac_try_echo=$ac_try;;
8314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8315 (eval "$ac_try") 2>&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); }; }; then
8319 ac_cv_search_opendir=$ac_res
8321 echo "$as_me: failed program was:" >&5
8322 sed 's/^/| /' conftest.$ac_ext >&5
8327 rm -f core conftest.err conftest.$ac_objext \
8329 if test "${ac_cv_search_opendir+set}" = set; then
8333 if test "${ac_cv_search_opendir+set}" = set; then
8336 ac_cv_search_opendir=no
8339 LIBS=$ac_func_search_save_LIBS
8341 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8342 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8343 ac_res=$ac_cv_search_opendir
8344 if test "$ac_res" != no; then
8345 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8350 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8351 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8352 if test "${ac_cv_search_opendir+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 ac_func_search_save_LIBS=$LIBS
8356 cat >conftest.$ac_ext <<_ACEOF
8359 cat confdefs.h >>conftest.$ac_ext
8360 cat >>conftest.$ac_ext <<_ACEOF
8361 /* end confdefs.h. */
8363 /* Override any GCC internal prototype to avoid an error.
8364 Use char because int might match the return type of a GCC
8365 builtin and then its argument prototype would still apply. */
8378 for ac_lib in '' x; do
8379 if test -z "$ac_lib"; then
8380 ac_res="none required"
8383 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8385 rm -f conftest.$ac_objext conftest$ac_exeext
8386 if { (ac_try="$ac_link"
8388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8389 *) ac_try_echo=$ac_try;;
8391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8392 (eval "$ac_link") 2>conftest.er1
8394 grep -v '^ *+' conftest.er1 >conftest.err
8396 cat conftest.err >&5
8397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8398 (exit $ac_status); } &&
8399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8400 { (case "(($ac_try" in
8401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8402 *) ac_try_echo=$ac_try;;
8404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8405 (eval "$ac_try") 2>&5
8407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); }; } &&
8409 { ac_try='test -s conftest$ac_exeext'
8410 { (case "(($ac_try" in
8411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8412 *) ac_try_echo=$ac_try;;
8414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8415 (eval "$ac_try") 2>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); }; }; then
8419 ac_cv_search_opendir=$ac_res
8421 echo "$as_me: failed program was:" >&5
8422 sed 's/^/| /' conftest.$ac_ext >&5
8427 rm -f core conftest.err conftest.$ac_objext \
8429 if test "${ac_cv_search_opendir+set}" = set; then
8433 if test "${ac_cv_search_opendir+set}" = set; then
8436 ac_cv_search_opendir=no
8439 LIBS=$ac_func_search_save_LIBS
8441 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
8442 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
8443 ac_res=$ac_cv_search_opendir
8444 if test "$ac_res" != no; then
8445 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8452 for ac_header in dlfcn.h
8454 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8455 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8456 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8457 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8458 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8461 ac_res=`eval echo '${'$as_ac_Header'}'`
8462 { echo "$as_me:$LINENO: result: $ac_res" >&5
8463 echo "${ECHO_T}$ac_res" >&6; }
8465 # Is the header compilable?
8466 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
8467 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
8468 cat >conftest.$ac_ext <<_ACEOF
8471 cat confdefs.h >>conftest.$ac_ext
8472 cat >>conftest.$ac_ext <<_ACEOF
8473 /* end confdefs.h. */
8474 $ac_includes_default
8475 #include <$ac_header>
8477 rm -f conftest.$ac_objext
8478 if { (ac_try="$ac_compile"
8480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8481 *) ac_try_echo=$ac_try;;
8483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8484 (eval "$ac_compile") 2>conftest.er1
8486 grep -v '^ *+' conftest.er1 >conftest.err
8488 cat conftest.err >&5
8489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8490 (exit $ac_status); } &&
8491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8492 { (case "(($ac_try" in
8493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8494 *) ac_try_echo=$ac_try;;
8496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8497 (eval "$ac_try") 2>&5
8499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8500 (exit $ac_status); }; } &&
8501 { ac_try='test -s conftest.$ac_objext'
8502 { (case "(($ac_try" in
8503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8504 *) ac_try_echo=$ac_try;;
8506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8507 (eval "$ac_try") 2>&5
8509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8510 (exit $ac_status); }; }; then
8511 ac_header_compiler=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 ac_header_compiler=no
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8521 echo "${ECHO_T}$ac_header_compiler" >&6; }
8523 # Is the header present?
8524 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8525 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8526 cat >conftest.$ac_ext <<_ACEOF
8529 cat confdefs.h >>conftest.$ac_ext
8530 cat >>conftest.$ac_ext <<_ACEOF
8531 /* end confdefs.h. */
8532 #include <$ac_header>
8534 if { (ac_try="$ac_cpp conftest.$ac_ext"
8536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8537 *) ac_try_echo=$ac_try;;
8539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8542 grep -v '^ *+' conftest.er1 >conftest.err
8544 cat conftest.err >&5
8545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8546 (exit $ac_status); } >/dev/null; then
8547 if test -s conftest.err; then
8548 ac_cpp_err=$ac_c_preproc_warn_flag
8549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8556 if test -z "$ac_cpp_err"; then
8557 ac_header_preproc=yes
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.$ac_ext >&5
8562 ac_header_preproc=no
8565 rm -f conftest.err conftest.$ac_ext
8566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8567 echo "${ECHO_T}$ac_header_preproc" >&6; }
8569 # So? What about this header?
8570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8576 ac_header_preproc=yes
8579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8592 ## ------------------------------------ ##
8593 ## Report this to http://llvm.org/bugs/ ##
8594 ## ------------------------------------ ##
8596 ) | sed "s/^/$as_me: WARNING: /" >&2
8599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8602 echo $ECHO_N "(cached) $ECHO_C" >&6
8604 eval "$as_ac_Header=\$ac_header_preproc"
8606 ac_res=`eval echo '${'$as_ac_Header'}'`
8607 { echo "$as_me:$LINENO: result: $ac_res" >&5
8608 echo "${ECHO_T}$ac_res" >&6; }
8611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8612 cat >>confdefs.h <<_ACEOF
8613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8620 # Check whether --enable-ltdl-install was given.
8621 if test "${enable_ltdl_install+set}" = set; then
8622 enableval=$enable_ltdl_install;
8628 if test x"${enable_ltdl_install-no}" != xno; then
8630 INSTALL_LTDL_FALSE='#'
8632 INSTALL_LTDL_TRUE='#'
8638 if test x"${enable_ltdl_convenience-no}" != xno; then
8639 CONVENIENCE_LTDL_TRUE=
8640 CONVENIENCE_LTDL_FALSE='#'
8642 CONVENIENCE_LTDL_TRUE='#'
8643 CONVENIENCE_LTDL_FALSE=
8647 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8648 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
8650 libname_spec='lib$name'
8658 shlibpath_overrides_runpath=unknown
8660 dynamic_linker="$host_os ld.so"
8661 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8662 if test "$GCC" = yes; then
8663 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8664 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8665 # if the path contains ";" then we assume it to be the separator
8666 # otherwise default to the standard path separator (i.e. ":") - it is
8667 # assumed that no part of a normal pathname contains ";" but that should
8668 # okay in the real world where ";" in dirpaths is itself problematic.
8669 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8671 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8674 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8676 need_lib_prefix=unknown
8677 hardcode_into_libs=no
8679 # when you set need_version to no, make sure it does not cause -set_version
8680 # flags to be left without arguments
8681 need_version=unknown
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8687 shlibpath_var=LIBPATH
8689 # AIX 3 has no versioning support, so we append a major version to the name.
8690 soname_spec='${libname}${release}${shared_ext}$major'
8697 hardcode_into_libs=yes
8698 if test "$host_cpu" = ia64; then
8699 # AIX 5 supports IA64
8700 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8701 shlibpath_var=LD_LIBRARY_PATH
8703 # With GCC up to 2.95.x, collect2 would create an import file
8704 # for dependence libraries. The import file would start with
8705 # the line `#! .'. This would cause the generated library to
8706 # depend on `.', always an invalid library. This was fixed in
8707 # development snapshots of GCC prior to 3.0.
8709 aix4 | aix4.[01] | aix4.[01].*)
8710 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8712 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8719 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8720 # soname into executable. Probably we can add versioning support to
8721 # collect2, so additional links can be useful in future.
8722 if test "$aix_use_runtimelinking" = yes; then
8723 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8724 # instead of lib<name>.a to let people know that these are not
8725 # typical AIX shared libraries.
8726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8728 # We preserve .a as extension for shared libraries through AIX4.2
8729 # and later when we are not doing run time linking.
8730 library_names_spec='${libname}${release}.a $libname.a'
8731 soname_spec='${libname}${release}${shared_ext}$major'
8733 shlibpath_var=LIBPATH
8738 library_names_spec='$libname.ixlibrary $libname.a'
8739 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8740 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'
8744 library_names_spec='${libname}${shared_ext}'
8745 dynamic_linker="$host_os ld.so"
8746 shlibpath_var=LIBRARY_PATH
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8753 soname_spec='${libname}${release}${shared_ext}$major'
8754 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8755 shlibpath_var=LD_LIBRARY_PATH
8756 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8757 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8758 # the default ld.so.conf also contains /usr/contrib/lib and
8759 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8760 # libtool to hard-code these into programs
8763 cygwin* | mingw* | pw32*)
8764 version_type=windows
8769 case $GCC,$host_os in
8770 yes,cygwin* | yes,mingw* | yes,pw32*)
8771 library_names_spec='$libname.dll.a'
8772 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8773 postinstall_cmds='base_file=`basename \${file}`~
8774 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8775 dldir=$destdir/`dirname \$dlpath`~
8776 test -d \$dldir || mkdir -p \$dldir~
8777 $install_prog $dir/$dlname \$dldir/$dlname~
8778 chmod a+x \$dldir/$dlname'
8779 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8780 dlpath=$dir/\$dldll~
8782 shlibpath_overrides_runpath=yes
8786 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8787 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8788 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8791 # MinGW DLLs use traditional 'lib' prefix
8792 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8793 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8794 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8795 # It is most probably a Windows format PATH printed by
8796 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8797 # path with ; separators, and with drive letters. We can handle the
8798 # drive letters (cygwin fileutils understands them), so leave them,
8799 # especially as we might pass files found there to a mingw objdump,
8800 # which wouldn't understand a cygwinified path. Ahh.
8801 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8803 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8807 # pw32 DLLs use 'pw' prefix rather than 'lib'
8808 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8814 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8817 dynamic_linker='Win32 ld.exe'
8818 # FIXME: first we should search . and the directory the executable is in
8822 darwin* | rhapsody*)
8823 dynamic_linker="$host_os dyld"
8827 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8828 soname_spec='${libname}${release}${major}$shared_ext'
8829 shlibpath_overrides_runpath=yes
8830 shlibpath_var=DYLD_LIBRARY_PATH
8831 shrext_cmds='.dylib'
8832 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8833 if test "$GCC" = yes; then
8834 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"`
8836 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8838 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8846 soname_spec='${libname}${release}${shared_ext}$major'
8847 shlibpath_var=LD_LIBRARY_PATH
8858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8859 soname_spec='${libname}${release}${shared_ext}$major'
8860 shlibpath_var=LD_LIBRARY_PATH
8861 shlibpath_overrides_runpath=no
8862 hardcode_into_libs=yes
8863 dynamic_linker='GNU ld.so'
8866 freebsd* | dragonfly*)
8867 # DragonFly does not have aout. When/if they implement a new
8868 # versioning mechanism, adjust this.
8869 if test -x /usr/bin/objformat; then
8870 objformat=`/usr/bin/objformat`
8873 freebsd[123].*) objformat=aout ;;
8877 version_type=freebsd-$objformat
8878 case $version_type in
8880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8885 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8889 shlibpath_var=LD_LIBRARY_PATH
8892 shlibpath_overrides_runpath=yes
8894 freebsd3.[01]* | freebsdelf3.[01]*)
8895 shlibpath_overrides_runpath=yes
8896 hardcode_into_libs=yes
8898 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8899 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8900 shlibpath_overrides_runpath=no
8901 hardcode_into_libs=yes
8903 freebsd*) # from 4.6 on
8904 shlibpath_overrides_runpath=yes
8905 hardcode_into_libs=yes
8914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8915 soname_spec='${libname}${release}${shared_ext}$major'
8916 shlibpath_var=LD_LIBRARY_PATH
8917 hardcode_into_libs=yes
8920 hpux9* | hpux10* | hpux11*)
8921 # Give a soname corresponding to the major version so that dld.sl refuses to
8922 # link against other versions.
8929 hardcode_into_libs=yes
8930 dynamic_linker="$host_os dld.so"
8931 shlibpath_var=LD_LIBRARY_PATH
8932 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8934 soname_spec='${libname}${release}${shared_ext}$major'
8935 if test "X$HPUX_IA64_MODE" = X32; then
8936 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8938 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8940 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8944 hardcode_into_libs=yes
8945 dynamic_linker="$host_os dld.sl"
8946 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8947 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8949 soname_spec='${libname}${release}${shared_ext}$major'
8950 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8951 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8955 dynamic_linker="$host_os dld.sl"
8956 shlibpath_var=SHLIB_PATH
8957 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8959 soname_spec='${libname}${release}${shared_ext}$major'
8962 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8963 postinstall_cmds='chmod 555 $lib'
8970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8971 soname_spec='${libname}${release}${shared_ext}$major'
8972 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8973 shlibpath_var=LD_LIBRARY_PATH
8974 shlibpath_overrides_runpath=no
8975 hardcode_into_libs=yes
8978 irix5* | irix6* | nonstopux*)
8980 nonstopux*) version_type=nonstopux ;;
8982 if test "$lt_cv_prog_gnu_ld" = yes; then
8990 soname_spec='${libname}${release}${shared_ext}$major'
8991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8993 irix5* | nonstopux*)
8997 case $LD in # libtool.m4 will add one of these switches to LD
8998 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8999 libsuff= shlibsuff= libmagic=32-bit;;
9000 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9001 libsuff=32 shlibsuff=N32 libmagic=N32;;
9002 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9003 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9004 *) libsuff= shlibsuff= libmagic=never-match;;
9008 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9009 shlibpath_overrides_runpath=no
9010 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9011 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9012 hardcode_into_libs=yes
9015 # No shared lib support for Linux oldld, aout, or coff.
9016 linux*oldld* | linux*aout* | linux*coff*)
9020 # This must be Linux ELF.
9025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9026 soname_spec='${libname}${release}${shared_ext}$major'
9027 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9028 shlibpath_var=LD_LIBRARY_PATH
9029 shlibpath_overrides_runpath=no
9030 # This implies no fast_install, which is unacceptable.
9031 # Some rework will be needed to allow for fast_install
9032 # before this can be enabled.
9033 hardcode_into_libs=yes
9035 # Append ld.so.conf contents to the search path
9036 if test -f /etc/ld.so.conf; then
9037 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' ' '`
9038 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9041 # We used to test for /lib/ld.so.1 and disable shared libraries on
9042 # powerpc, because MkLinux only supported shared libraries with the
9043 # GNU dynamic linker. Since this was broken with cross compilers,
9044 # most powerpc-linux boxes support dynamic linking these days and
9045 # people can always --disable-shared, the test was removed, and we
9046 # assume the GNU/Linux dynamic linker is in use.
9047 dynamic_linker='GNU/Linux ld.so'
9054 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9055 soname_spec='${libname}${release}${shared_ext}$major'
9056 shlibpath_var=LD_LIBRARY_PATH
9057 shlibpath_overrides_runpath=no
9058 hardcode_into_libs=yes
9059 dynamic_linker='GNU ld.so'
9066 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9068 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9069 dynamic_linker='NetBSD (a.out) ld.so'
9071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9072 soname_spec='${libname}${release}${shared_ext}$major'
9073 dynamic_linker='NetBSD ld.elf_so'
9075 shlibpath_var=LD_LIBRARY_PATH
9076 shlibpath_overrides_runpath=yes
9077 hardcode_into_libs=yes
9082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9083 shlibpath_var=LD_LIBRARY_PATH
9084 shlibpath_overrides_runpath=yes
9091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9092 soname_spec='${libname}${release}${shared_ext}$major'
9093 shlibpath_var=LD_LIBRARY_PATH
9094 shlibpath_overrides_runpath=yes
9099 sys_lib_dlsearch_path_spec="/usr/lib"
9101 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9103 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9104 *) need_version=no ;;
9106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9107 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9108 shlibpath_var=LD_LIBRARY_PATH
9109 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9111 openbsd2.[89] | openbsd2.[89].*)
9112 shlibpath_overrides_runpath=no
9115 shlibpath_overrides_runpath=yes
9119 shlibpath_overrides_runpath=yes
9124 libname_spec='$name'
9127 library_names_spec='$libname${shared_ext} $libname.a'
9128 dynamic_linker='OS/2 ld.exe'
9129 shlibpath_var=LIBPATH
9132 osf3* | osf4* | osf5*)
9136 soname_spec='${libname}${release}${shared_ext}$major'
9137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9138 shlibpath_var=LD_LIBRARY_PATH
9139 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9140 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 shlibpath_var=LD_LIBRARY_PATH
9150 shlibpath_overrides_runpath=yes
9151 hardcode_into_libs=yes
9152 # ldd complains unless libraries are executable
9153 postinstall_cmds='chmod +x $lib'
9158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9159 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9160 shlibpath_var=LD_LIBRARY_PATH
9161 shlibpath_overrides_runpath=yes
9162 if test "$with_gnu_ld" = yes; then
9170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9171 soname_spec='${libname}${release}${shared_ext}$major'
9172 shlibpath_var=LD_LIBRARY_PATH
9173 case $host_vendor in
9175 shlibpath_overrides_runpath=no
9177 export_dynamic_flag_spec='${wl}-Blargedynsym'
9178 runpath_var=LD_RUN_PATH
9186 shlibpath_overrides_runpath=no
9187 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9193 if test -d /usr/nec ;then
9195 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9196 soname_spec='$libname${shared_ext}.$major'
9197 shlibpath_var=LD_LIBRARY_PATH
9201 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9202 version_type=freebsd-elf
9205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9206 soname_spec='${libname}${release}${shared_ext}$major'
9207 shlibpath_var=LD_LIBRARY_PATH
9208 hardcode_into_libs=yes
9209 if test "$with_gnu_ld" = yes; then
9210 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9211 shlibpath_overrides_runpath=no
9213 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9214 shlibpath_overrides_runpath=yes
9217 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9221 sys_lib_dlsearch_path_spec='/usr/lib'
9226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9227 soname_spec='${libname}${release}${shared_ext}$major'
9228 shlibpath_var=LD_LIBRARY_PATH
9235 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9236 echo "${ECHO_T}$dynamic_linker" >&6; }
9237 test "$dynamic_linker" = no && can_build_shared=no
9239 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9240 if test "$GCC" = yes; then
9241 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9245 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9246 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9247 if test "${libltdl_cv_shlibext+set}" = set; then
9248 echo $ECHO_N "(cached) $ECHO_C" >&6
9252 eval libltdl_cv_shlibext=$shrext_cmds
9255 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9256 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9257 if test -n "$libltdl_cv_shlibext"; then
9259 cat >>confdefs.h <<_ACEOF
9260 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9266 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9267 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9268 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9269 echo $ECHO_N "(cached) $ECHO_C" >&6
9271 libltdl_cv_shlibpath_var="$shlibpath_var"
9273 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9274 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9275 if test -n "$libltdl_cv_shlibpath_var"; then
9277 cat >>confdefs.h <<_ACEOF
9278 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9284 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9285 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9286 if test "${libltdl_cv_sys_search_path+set}" = set; then
9287 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9291 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9292 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9293 if test -n "$libltdl_cv_sys_search_path"; then
9295 for dir in $libltdl_cv_sys_search_path; do
9296 if test -z "$sys_search_path"; then
9297 sys_search_path="$dir"
9299 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
9303 cat >>confdefs.h <<_ACEOF
9304 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9309 { echo "$as_me:$LINENO: checking for objdir" >&5
9310 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
9311 if test "${libltdl_cv_objdir+set}" = set; then
9312 echo $ECHO_N "(cached) $ECHO_C" >&6
9314 libltdl_cv_objdir="$objdir"
9315 if test -n "$objdir"; then
9318 rm -f .libs 2>/dev/null
9319 mkdir .libs 2>/dev/null
9320 if test -d .libs; then
9321 libltdl_cv_objdir=.libs
9323 # MS-DOS does not allow filenames that begin with a dot.
9324 libltdl_cv_objdir=_libs
9326 rmdir .libs 2>/dev/null
9330 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
9331 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
9333 cat >>confdefs.h <<_ACEOF
9334 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9342 # Check for command to grab the raw symbol name followed by C symbol from nm.
9343 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
9344 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
9345 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 # These are sane defaults that work on at least a few old systems.
9350 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9352 # Character class describing NM global symbol codes.
9353 symcode='[BCDEGRST]'
9355 # Regexp to match symbols that can be accessed directly from C.
9356 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9358 # Transform an extracted symbol line into a proper C declaration
9359 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9361 # Transform an extracted symbol line into symbol name and symbol address
9362 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'"
9364 # Define system-specific variables.
9369 cygwin* | mingw* | pw32*)
9370 symcode='[ABCDGISTW]'
9372 hpux*) # Its linker distinguishes data from code symbols
9373 if test "$host_cpu" = ia64; then
9374 symcode='[ABCDEGRST]'
9376 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9377 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'"
9380 if test "$host_cpu" = ia64; then
9381 symcode='[ABCDGIRSTW]'
9382 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9383 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'"
9387 symcode='[BCDEGRST]'
9390 symcode='[BCDEGQRST]'
9401 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9409 # Handle CRLF in mingw tool chain
9413 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9417 # If we're using GNU nm, then use its standard symbol codes.
9418 case `$NM -V 2>&1` in
9419 *GNU* | *'with BFD'*)
9420 symcode='[ABCDGIRSTW]' ;;
9423 # Try without a prefix undercore, then with it.
9424 for ac_symprfx in "" "_"; do
9426 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9427 symxfrm="\\1 $ac_symprfx\\2 \\2"
9429 # Write the raw and C identifiers.
9430 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9432 # Check to see that the pipe works correctly.
9436 cat > conftest.$ac_ext <<EOF
9441 void nm_test_func(){}
9445 int main(){nm_test_var='a';nm_test_func();return(0);}
9448 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9449 (eval $ac_compile) 2>&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); }; then
9453 # Now try to grab the symbols.
9455 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
9456 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9459 (exit $ac_status); } && test -s "$nlist"; then
9460 # Try sorting and uniquifying the output.
9461 if sort "$nlist" | uniq > "$nlist"T; then
9462 mv -f "$nlist"T "$nlist"
9467 # Make sure that we snagged all the symbols we need.
9468 if grep ' nm_test_var$' "$nlist" >/dev/null; then
9469 if grep ' nm_test_func$' "$nlist" >/dev/null; then
9470 cat <<EOF > conftest.$ac_ext
9476 # Now generate the symbol file.
9477 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9479 cat <<EOF >> conftest.$ac_ext
9480 #if defined (__STDC__) && __STDC__
9481 # define lt_ptr_t void *
9483 # define lt_ptr_t char *
9487 /* The mapping between symbol names and symbols. */
9492 lt_preloaded_symbols[] =
9495 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
9496 cat <<\EOF >> conftest.$ac_ext
9504 # Now try linking the two files.
9505 mv conftest.$ac_objext conftstm.$ac_objext
9506 lt_save_LIBS="$LIBS"
9507 lt_save_CFLAGS="$CFLAGS"
9508 LIBS="conftstm.$ac_objext"
9509 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9511 (eval $ac_link) 2>&5
9513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9514 (exit $ac_status); } && test -s conftest${ac_exeext}; then
9517 LIBS="$lt_save_LIBS"
9518 CFLAGS="$lt_save_CFLAGS"
9520 echo "cannot find nm_test_func in $nlist" >&5
9523 echo "cannot find nm_test_var in $nlist" >&5
9526 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9529 echo "$progname: failed program was:" >&5
9530 cat conftest.$ac_ext >&5
9532 rm -f conftest* conftst*
9534 # Do not use the global_symbol_pipe unless it works.
9535 if test "$pipe_works" = yes; then
9538 lt_cv_sys_global_symbol_pipe=
9544 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9545 lt_cv_sys_global_symbol_to_cdecl=
9547 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9548 { echo "$as_me:$LINENO: result: failed" >&5
9549 echo "${ECHO_T}failed" >&6; }
9551 { echo "$as_me:$LINENO: result: ok" >&5
9552 echo "${ECHO_T}ok" >&6; }
9556 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
9557 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
9558 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
9559 echo $ECHO_N "(cached) $ECHO_C" >&6
9561 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9562 libltdl_cv_preloaded_symbols=yes
9564 libltdl_cv_preloaded_symbols=no
9568 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
9569 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
9570 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
9572 cat >>confdefs.h <<\_ACEOF
9573 #define HAVE_PRELOADED_SYMBOLS 1
9581 ac_cpp='$CPP $CPPFLAGS'
9582 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9583 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9584 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9587 { echo "$as_me:$LINENO: checking for shl_load" >&5
9588 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9589 if test "${ac_cv_func_shl_load+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 cat >conftest.$ac_ext <<_ACEOF
9595 cat confdefs.h >>conftest.$ac_ext
9596 cat >>conftest.$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9598 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9600 #define shl_load innocuous_shl_load
9602 /* System header to define __stub macros and hopefully few prototypes,
9603 which can conflict with char shl_load (); below.
9604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9605 <limits.h> exists even on freestanding compilers. */
9608 # include <limits.h>
9610 # include <assert.h>
9615 /* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9622 /* The GNU C library defines this for functions which it implements
9623 to always fail with ENOSYS. Some functions are actually named
9624 something starting with __ and the normal name is an alias. */
9625 #if defined __stub_shl_load || defined __stub___shl_load
9637 rm -f conftest.$ac_objext conftest$ac_exeext
9638 if { (ac_try="$ac_link"
9640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_link") 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } &&
9651 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9652 { (case "(($ac_try" in
9653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9654 *) ac_try_echo=$ac_try;;
9656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9657 (eval "$ac_try") 2>&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); }; } &&
9661 { ac_try='test -s conftest$ac_exeext'
9662 { (case "(($ac_try" in
9663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9664 *) ac_try_echo=$ac_try;;
9666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9667 (eval "$ac_try") 2>&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); }; }; then
9671 ac_cv_func_shl_load=yes
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_cv_func_shl_load=no
9679 rm -f core conftest.err conftest.$ac_objext \
9680 conftest$ac_exeext conftest.$ac_ext
9682 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9683 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9684 if test $ac_cv_func_shl_load = yes; then
9686 cat >>confdefs.h <<\_ACEOF
9687 #define HAVE_SHL_LOAD 1
9691 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9692 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9693 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9694 echo $ECHO_N "(cached) $ECHO_C" >&6
9696 ac_check_lib_save_LIBS=$LIBS
9698 cat >conftest.$ac_ext <<_ACEOF
9701 cat confdefs.h >>conftest.$ac_ext
9702 cat >>conftest.$ac_ext <<_ACEOF
9703 /* end confdefs.h. */
9705 /* Override any GCC internal prototype to avoid an error.
9706 Use char because int might match the return type of a GCC
9707 builtin and then its argument prototype would still apply. */
9720 rm -f conftest.$ac_objext conftest$ac_exeext
9721 if { (ac_try="$ac_link"
9723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9724 *) ac_try_echo=$ac_try;;
9726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9727 (eval "$ac_link") 2>conftest.er1
9729 grep -v '^ *+' conftest.er1 >conftest.err
9731 cat conftest.err >&5
9732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9733 (exit $ac_status); } &&
9734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9735 { (case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_try") 2>&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); }; } &&
9744 { ac_try='test -s conftest$ac_exeext'
9745 { (case "(($ac_try" in
9746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9747 *) ac_try_echo=$ac_try;;
9749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9750 (eval "$ac_try") 2>&5
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); }; }; then
9754 ac_cv_lib_dld_shl_load=yes
9756 echo "$as_me: failed program was:" >&5
9757 sed 's/^/| /' conftest.$ac_ext >&5
9759 ac_cv_lib_dld_shl_load=no
9762 rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764 LIBS=$ac_check_lib_save_LIBS
9766 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9767 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9768 if test $ac_cv_lib_dld_shl_load = yes; then
9770 cat >>confdefs.h <<\_ACEOF
9771 #define HAVE_SHL_LOAD 1
9774 LIBADD_DL="$LIBADD_DL -ldld"
9776 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9777 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9778 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9779 echo $ECHO_N "(cached) $ECHO_C" >&6
9781 ac_check_lib_save_LIBS=$LIBS
9783 cat >conftest.$ac_ext <<_ACEOF
9786 cat confdefs.h >>conftest.$ac_ext
9787 cat >>conftest.$ac_ext <<_ACEOF
9788 /* end confdefs.h. */
9790 /* Override any GCC internal prototype to avoid an error.
9791 Use char because int might match the return type of a GCC
9792 builtin and then its argument prototype would still apply. */
9805 rm -f conftest.$ac_objext conftest$ac_exeext
9806 if { (ac_try="$ac_link"
9808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_link") 2>conftest.er1
9814 grep -v '^ *+' conftest.er1 >conftest.err
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } &&
9819 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9820 { (case "(($ac_try" in
9821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9822 *) ac_try_echo=$ac_try;;
9824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9825 (eval "$ac_try") 2>&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); }; } &&
9829 { ac_try='test -s conftest$ac_exeext'
9830 { (case "(($ac_try" in
9831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9832 *) ac_try_echo=$ac_try;;
9834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9835 (eval "$ac_try") 2>&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); }; }; then
9839 ac_cv_lib_dl_dlopen=yes
9841 echo "$as_me: failed program was:" >&5
9842 sed 's/^/| /' conftest.$ac_ext >&5
9844 ac_cv_lib_dl_dlopen=no
9847 rm -f core conftest.err conftest.$ac_objext \
9848 conftest$ac_exeext conftest.$ac_ext
9849 LIBS=$ac_check_lib_save_LIBS
9851 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9852 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9853 if test $ac_cv_lib_dl_dlopen = yes; then
9855 cat >>confdefs.h <<\_ACEOF
9856 #define HAVE_LIBDL 1
9859 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
9861 cat >conftest.$ac_ext <<_ACEOF
9864 cat confdefs.h >>conftest.$ac_ext
9865 cat >>conftest.$ac_ext <<_ACEOF
9866 /* end confdefs.h. */
9879 rm -f conftest.$ac_objext conftest$ac_exeext
9880 if { (ac_try="$ac_link"
9882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9883 *) ac_try_echo=$ac_try;;
9885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9886 (eval "$ac_link") 2>conftest.er1
9888 grep -v '^ *+' conftest.er1 >conftest.err
9890 cat conftest.err >&5
9891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9892 (exit $ac_status); } &&
9893 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9894 { (case "(($ac_try" in
9895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9896 *) ac_try_echo=$ac_try;;
9898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9899 (eval "$ac_try") 2>&5
9901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9902 (exit $ac_status); }; } &&
9903 { ac_try='test -s conftest$ac_exeext'
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); }; }; then
9914 cat >>confdefs.h <<\_ACEOF
9915 #define HAVE_LIBDL 1
9917 libltdl_cv_func_dlopen="yes"
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.$ac_ext >&5
9922 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9923 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
9924 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9925 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 ac_check_lib_save_LIBS=$LIBS
9929 cat >conftest.$ac_ext <<_ACEOF
9932 cat confdefs.h >>conftest.$ac_ext
9933 cat >>conftest.$ac_ext <<_ACEOF
9934 /* end confdefs.h. */
9936 /* Override any GCC internal prototype to avoid an error.
9937 Use char because int might match the return type of a GCC
9938 builtin and then its argument prototype would still apply. */
9951 rm -f conftest.$ac_objext conftest$ac_exeext
9952 if { (ac_try="$ac_link"
9954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9955 *) ac_try_echo=$ac_try;;
9957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9958 (eval "$ac_link") 2>conftest.er1
9960 grep -v '^ *+' conftest.er1 >conftest.err
9962 cat conftest.err >&5
9963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9964 (exit $ac_status); } &&
9965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9966 { (case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_try") 2>&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); }; } &&
9975 { ac_try='test -s conftest$ac_exeext'
9976 { (case "(($ac_try" in
9977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9978 *) ac_try_echo=$ac_try;;
9980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9981 (eval "$ac_try") 2>&5
9983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9984 (exit $ac_status); }; }; then
9985 ac_cv_lib_svld_dlopen=yes
9987 echo "$as_me: failed program was:" >&5
9988 sed 's/^/| /' conftest.$ac_ext >&5
9990 ac_cv_lib_svld_dlopen=no
9993 rm -f core conftest.err conftest.$ac_objext \
9994 conftest$ac_exeext conftest.$ac_ext
9995 LIBS=$ac_check_lib_save_LIBS
9997 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9998 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
9999 if test $ac_cv_lib_svld_dlopen = yes; then
10001 cat >>confdefs.h <<\_ACEOF
10002 #define HAVE_LIBDL 1
10005 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10007 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10008 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10009 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10010 echo $ECHO_N "(cached) $ECHO_C" >&6
10012 ac_check_lib_save_LIBS=$LIBS
10014 cat >conftest.$ac_ext <<_ACEOF
10017 cat confdefs.h >>conftest.$ac_ext
10018 cat >>conftest.$ac_ext <<_ACEOF
10019 /* end confdefs.h. */
10021 /* Override any GCC internal prototype to avoid an error.
10022 Use char because int might match the return type of a GCC
10023 builtin and then its argument prototype would still apply. */
10031 return dld_link ();
10036 rm -f conftest.$ac_objext conftest$ac_exeext
10037 if { (ac_try="$ac_link"
10038 case "(($ac_try" in
10039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10040 *) ac_try_echo=$ac_try;;
10042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10043 (eval "$ac_link") 2>conftest.er1
10045 grep -v '^ *+' conftest.er1 >conftest.err
10047 cat conftest.err >&5
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); } &&
10050 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10051 { (case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_try") 2>&5
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; } &&
10060 { ac_try='test -s conftest$ac_exeext'
10061 { (case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_try") 2>&5
10068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10069 (exit $ac_status); }; }; then
10070 ac_cv_lib_dld_dld_link=yes
10072 echo "$as_me: failed program was:" >&5
10073 sed 's/^/| /' conftest.$ac_ext >&5
10075 ac_cv_lib_dld_dld_link=no
10078 rm -f core conftest.err conftest.$ac_objext \
10079 conftest$ac_exeext conftest.$ac_ext
10080 LIBS=$ac_check_lib_save_LIBS
10082 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10083 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10084 if test $ac_cv_lib_dld_dld_link = yes; then
10086 cat >>confdefs.h <<\_ACEOF
10090 LIBADD_DL="$LIBADD_DL -ldld"
10092 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10093 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10094 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10097 cat >conftest.$ac_ext <<_ACEOF
10100 cat confdefs.h >>conftest.$ac_ext
10101 cat >>conftest.$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10103 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10105 #define _dyld_func_lookup innocuous__dyld_func_lookup
10107 /* System header to define __stub macros and hopefully few prototypes,
10108 which can conflict with char _dyld_func_lookup (); below.
10109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10110 <limits.h> exists even on freestanding compilers. */
10113 # include <limits.h>
10115 # include <assert.h>
10118 #undef _dyld_func_lookup
10120 /* Override any GCC internal prototype to avoid an error.
10121 Use char because int might match the return type of a GCC
10122 builtin and then its argument prototype would still apply. */
10126 char _dyld_func_lookup ();
10127 /* The GNU C library defines this for functions which it implements
10128 to always fail with ENOSYS. Some functions are actually named
10129 something starting with __ and the normal name is an alias. */
10130 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10137 return _dyld_func_lookup ();
10142 rm -f conftest.$ac_objext conftest$ac_exeext
10143 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10151 grep -v '^ *+' conftest.er1 >conftest.err
10153 cat conftest.err >&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); } &&
10156 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10157 { (case "(($ac_try" in
10158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10159 *) ac_try_echo=$ac_try;;
10161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10162 (eval "$ac_try") 2>&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 (exit $ac_status); }; } &&
10166 { ac_try='test -s conftest$ac_exeext'
10167 { (case "(($ac_try" in
10168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10169 *) ac_try_echo=$ac_try;;
10171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10172 (eval "$ac_try") 2>&5
10174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10175 (exit $ac_status); }; }; then
10176 ac_cv_func__dyld_func_lookup=yes
10178 echo "$as_me: failed program was:" >&5
10179 sed 's/^/| /' conftest.$ac_ext >&5
10181 ac_cv_func__dyld_func_lookup=no
10184 rm -f core conftest.err conftest.$ac_objext \
10185 conftest$ac_exeext conftest.$ac_ext
10187 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10188 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10189 if test $ac_cv_func__dyld_func_lookup = yes; then
10191 cat >>confdefs.h <<\_ACEOF
10192 #define HAVE_DYLD 1
10206 rm -f core conftest.err conftest.$ac_objext \
10207 conftest$ac_exeext conftest.$ac_ext
10218 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10220 lt_save_LIBS="$LIBS"
10221 LIBS="$LIBS $LIBADD_DL"
10223 for ac_func in dlerror
10225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10231 cat >conftest.$ac_ext <<_ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10239 #define $ac_func innocuous_$ac_func
10241 /* System header to define __stub macros and hopefully few prototypes,
10242 which can conflict with char $ac_func (); below.
10243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10244 <limits.h> exists even on freestanding compilers. */
10247 # include <limits.h>
10249 # include <assert.h>
10254 /* Override any GCC internal prototype to avoid an error.
10255 Use char because int might match the return type of a GCC
10256 builtin and then its argument prototype would still apply. */
10261 /* The GNU C library defines this for functions which it implements
10262 to always fail with ENOSYS. Some functions are actually named
10263 something starting with __ and the normal name is an alias. */
10264 #if defined __stub_$ac_func || defined __stub___$ac_func
10271 return $ac_func ();
10276 rm -f conftest.$ac_objext conftest$ac_exeext
10277 if { (ac_try="$ac_link"
10278 case "(($ac_try" in
10279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10280 *) ac_try_echo=$ac_try;;
10282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10283 (eval "$ac_link") 2>conftest.er1
10285 grep -v '^ *+' conftest.er1 >conftest.err
10287 cat conftest.err >&5
10288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10289 (exit $ac_status); } &&
10290 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10291 { (case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10296 (eval "$ac_try") 2>&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); }; } &&
10300 { ac_try='test -s conftest$ac_exeext'
10301 { (case "(($ac_try" in
10302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10303 *) ac_try_echo=$ac_try;;
10305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10306 (eval "$ac_try") 2>&5
10308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10309 (exit $ac_status); }; }; then
10310 eval "$as_ac_var=yes"
10312 echo "$as_me: failed program was:" >&5
10313 sed 's/^/| /' conftest.$ac_ext >&5
10315 eval "$as_ac_var=no"
10318 rm -f core conftest.err conftest.$ac_objext \
10319 conftest$ac_exeext conftest.$ac_ext
10321 ac_res=`eval echo '${'$as_ac_var'}'`
10322 { echo "$as_me:$LINENO: result: $ac_res" >&5
10323 echo "${ECHO_T}$ac_res" >&6; }
10324 if test `eval echo '${'$as_ac_var'}'` = yes; then
10325 cat >>confdefs.h <<_ACEOF
10326 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10332 LIBS="$lt_save_LIBS"
10335 ac_cpp='$CPP $CPPFLAGS'
10336 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10337 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10338 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10342 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
10343 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
10344 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
10345 echo $ECHO_N "(cached) $ECHO_C" >&6
10347 ac_cv_sys_symbol_underscore=no
10348 cat > conftest.$ac_ext <<EOF
10349 void nm_test_func(){}
10350 int main(){nm_test_func;return 0;}
10352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10353 (eval $ac_compile) 2>&5
10355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10356 (exit $ac_status); }; then
10357 # Now try to grab the symbols.
10358 ac_nlist=conftest.nm
10359 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
10360 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); } && test -s "$ac_nlist"; then
10364 # See whether the symbols have a leading underscore.
10365 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
10366 ac_cv_sys_symbol_underscore=yes
10368 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
10371 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
10375 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
10378 echo "configure: failed program was:" >&5
10384 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
10385 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
10388 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
10389 if test x"$libltdl_cv_func_dlopen" = xyes ||
10390 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
10391 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
10392 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
10393 if test "${libltdl_cv_need_uscore+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10396 libltdl_cv_need_uscore=unknown
10398 LIBS="$LIBS $LIBADD_DL"
10399 if test "$cross_compiling" = yes; then :
10400 libltdl_cv_need_uscore=cross
10402 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10403 lt_status=$lt_dlunknown
10404 cat > conftest.$ac_ext <<EOF
10405 #line 10405 "configure"
10406 #include "confdefs.h"
10415 # define LT_DLGLOBAL RTLD_GLOBAL
10418 # define LT_DLGLOBAL DL_GLOBAL
10420 # define LT_DLGLOBAL 0
10424 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10425 find out it does not work in some platform. */
10426 #ifndef LT_DLLAZY_OR_NOW
10428 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10431 # define LT_DLLAZY_OR_NOW DL_LAZY
10434 # define LT_DLLAZY_OR_NOW RTLD_NOW
10437 # define LT_DLLAZY_OR_NOW DL_NOW
10439 # define LT_DLLAZY_OR_NOW 0
10447 extern "C" void exit (int);
10450 void fnord() { int i=42;}
10453 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10454 int status = $lt_dlunknown;
10458 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10459 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10460 /* dlclose (self); */
10468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10469 (eval $ac_link) 2>&5
10471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10472 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10473 (./conftest; exit; ) >&5 2>/dev/null
10475 case x$lt_status in
10476 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
10477 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
10478 x$lt_dlunknown|x*) ;;
10481 # compilation failed
10490 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
10491 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
10495 if test x"$libltdl_cv_need_uscore" = xyes; then
10497 cat >>confdefs.h <<\_ACEOF
10498 #define NEED_USCORE 1
10504 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
10505 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
10506 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
10507 echo $ECHO_N "(cached) $ECHO_C" >&6
10509 # PORTME does your system automatically load deplibs for dlopen?
10510 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10511 # For now, we just catch OSes we know something about -- in the
10512 # future, we'll try test this programmatically.
10513 libltdl_cv_sys_dlopen_deplibs=unknown
10515 aix3*|aix4.1.*|aix4.2.*)
10516 # Unknown whether this is true for these versions of AIX, but
10517 # we want this `case' here to explicitly catch those versions.
10518 libltdl_cv_sys_dlopen_deplibs=unknown
10521 libltdl_cv_sys_dlopen_deplibs=yes
10524 # Assuming the user has installed a libdl from somewhere, this is true
10525 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10526 libltdl_cv_sys_dlopen_deplibs=yes
10528 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
10529 # GNU and its variants, using gnu ld.so (Glibc)
10530 libltdl_cv_sys_dlopen_deplibs=yes
10533 libltdl_cv_sys_dlopen_deplibs=yes
10536 libltdl_cv_sys_dlopen_deplibs=yes
10538 irix[12345]*|irix6.[01]*)
10539 # Catch all versions of IRIX before 6.2, and indicate that we don't
10540 # know how it worked for any of those versions.
10541 libltdl_cv_sys_dlopen_deplibs=unknown
10544 # The case above catches anything before 6.2, and it's known that
10545 # at 6.2 and later dlopen does load deplibs.
10546 libltdl_cv_sys_dlopen_deplibs=yes
10549 libltdl_cv_sys_dlopen_deplibs=yes
10552 libltdl_cv_sys_dlopen_deplibs=yes
10555 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10556 # it did *not* use an RPATH in a shared library to find objects the
10557 # library depends on, so we explicitly say `no'.
10558 libltdl_cv_sys_dlopen_deplibs=no
10560 osf5.0|osf5.0a|osf5.1)
10561 # dlopen *does* load deplibs and with the right loader patch applied
10562 # it even uses RPATH in a shared library to search for shared objects
10563 # that the library depends on, but there's no easy way to know if that
10564 # patch is installed. Since this is the case, all we can really
10565 # say is unknown -- it depends on the patch being installed. If
10566 # it is, this changes to `yes'. Without it, it would be `no'.
10567 libltdl_cv_sys_dlopen_deplibs=unknown
10570 # the two cases above should catch all versions of osf <= 5.1. Read
10571 # the comments above for what we know about them.
10572 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10573 # is used to find them so we can finally say `yes'.
10574 libltdl_cv_sys_dlopen_deplibs=yes
10577 libltdl_cv_sys_dlopen_deplibs=yes
10579 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10580 libltdl_cv_sys_dlopen_deplibs=yes
10585 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10586 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
10587 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10589 cat >>confdefs.h <<\_ACEOF
10590 #define LTDL_DLOPEN_DEPLIBS 1
10596 for ac_header in argz.h
10598 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10599 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10600 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10601 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10602 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10603 echo $ECHO_N "(cached) $ECHO_C" >&6
10605 ac_res=`eval echo '${'$as_ac_Header'}'`
10606 { echo "$as_me:$LINENO: result: $ac_res" >&5
10607 echo "${ECHO_T}$ac_res" >&6; }
10609 # Is the header compilable?
10610 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10611 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10612 cat >conftest.$ac_ext <<_ACEOF
10615 cat confdefs.h >>conftest.$ac_ext
10616 cat >>conftest.$ac_ext <<_ACEOF
10617 /* end confdefs.h. */
10618 $ac_includes_default
10619 #include <$ac_header>
10621 rm -f conftest.$ac_objext
10622 if { (ac_try="$ac_compile"
10623 case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_compile") 2>conftest.er1
10630 grep -v '^ *+' conftest.er1 >conftest.err
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } &&
10635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10636 { (case "(($ac_try" in
10637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10638 *) ac_try_echo=$ac_try;;
10640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10641 (eval "$ac_try") 2>&5
10643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); }; } &&
10645 { ac_try='test -s conftest.$ac_objext'
10646 { (case "(($ac_try" in
10647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10648 *) ac_try_echo=$ac_try;;
10650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10651 (eval "$ac_try") 2>&5
10653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_header_compiler=yes
10657 echo "$as_me: failed program was:" >&5
10658 sed 's/^/| /' conftest.$ac_ext >&5
10660 ac_header_compiler=no
10663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10665 echo "${ECHO_T}$ac_header_compiler" >&6; }
10667 # Is the header present?
10668 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10669 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10670 cat >conftest.$ac_ext <<_ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676 #include <$ac_header>
10678 if { (ac_try="$ac_cpp conftest.$ac_ext"
10679 case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10686 grep -v '^ *+' conftest.er1 >conftest.err
10688 cat conftest.err >&5
10689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10690 (exit $ac_status); } >/dev/null; then
10691 if test -s conftest.err; then
10692 ac_cpp_err=$ac_c_preproc_warn_flag
10693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10700 if test -z "$ac_cpp_err"; then
10701 ac_header_preproc=yes
10703 echo "$as_me: failed program was:" >&5
10704 sed 's/^/| /' conftest.$ac_ext >&5
10706 ac_header_preproc=no
10709 rm -f conftest.err conftest.$ac_ext
10710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10711 echo "${ECHO_T}$ac_header_preproc" >&6; }
10713 # So? What about this header?
10714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10716 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10717 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10719 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10720 ac_header_preproc=yes
10723 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10724 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10725 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10726 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10727 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10728 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10729 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10730 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10731 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10732 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10733 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10734 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10736 ## ------------------------------------ ##
10737 ## Report this to http://llvm.org/bugs/ ##
10738 ## ------------------------------------ ##
10740 ) | sed "s/^/$as_me: WARNING: /" >&2
10743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10746 echo $ECHO_N "(cached) $ECHO_C" >&6
10748 eval "$as_ac_Header=\$ac_header_preproc"
10750 ac_res=`eval echo '${'$as_ac_Header'}'`
10751 { echo "$as_me:$LINENO: result: $ac_res" >&5
10752 echo "${ECHO_T}$ac_res" >&6; }
10755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10756 cat >>confdefs.h <<_ACEOF
10757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10765 { echo "$as_me:$LINENO: checking for error_t" >&5
10766 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
10767 if test "${ac_cv_type_error_t+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10780 typedef error_t ac__type_new_;
10784 if ((ac__type_new_ *) 0)
10786 if (sizeof (ac__type_new_))
10792 rm -f conftest.$ac_objext
10793 if { (ac_try="$ac_compile"
10794 case "(($ac_try" in
10795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_compile") 2>conftest.er1
10801 grep -v '^ *+' conftest.er1 >conftest.err
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
10806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10809 *) ac_try_echo=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try='test -s conftest.$ac_objext'
10817 { (case "(($ac_try" in
10818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_try") 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 ac_cv_type_error_t=yes
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10831 ac_cv_type_error_t=no
10834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10836 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
10837 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
10838 if test $ac_cv_type_error_t = yes; then
10840 cat >>confdefs.h <<_ACEOF
10841 #define HAVE_ERROR_T 1
10847 cat >>confdefs.h <<\_ACEOF
10848 #define error_t int
10859 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
10861 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10862 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10863 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10864 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10865 echo $ECHO_N "(cached) $ECHO_C" >&6
10867 cat >conftest.$ac_ext <<_ACEOF
10870 cat confdefs.h >>conftest.$ac_ext
10871 cat >>conftest.$ac_ext <<_ACEOF
10872 /* end confdefs.h. */
10873 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10874 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10875 #define $ac_func innocuous_$ac_func
10877 /* System header to define __stub macros and hopefully few prototypes,
10878 which can conflict with char $ac_func (); below.
10879 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10880 <limits.h> exists even on freestanding compilers. */
10883 # include <limits.h>
10885 # include <assert.h>
10890 /* Override any GCC internal prototype to avoid an error.
10891 Use char because int might match the return type of a GCC
10892 builtin and then its argument prototype would still apply. */
10897 /* The GNU C library defines this for functions which it implements
10898 to always fail with ENOSYS. Some functions are actually named
10899 something starting with __ and the normal name is an alias. */
10900 #if defined __stub_$ac_func || defined __stub___$ac_func
10907 return $ac_func ();
10912 rm -f conftest.$ac_objext conftest$ac_exeext
10913 if { (ac_try="$ac_link"
10914 case "(($ac_try" in
10915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10916 *) ac_try_echo=$ac_try;;
10918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10919 (eval "$ac_link") 2>conftest.er1
10921 grep -v '^ *+' conftest.er1 >conftest.err
10923 cat conftest.err >&5
10924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10925 (exit $ac_status); } &&
10926 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10927 { (case "(($ac_try" in
10928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10929 *) ac_try_echo=$ac_try;;
10931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10932 (eval "$ac_try") 2>&5
10934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10935 (exit $ac_status); }; } &&
10936 { ac_try='test -s conftest$ac_exeext'
10937 { (case "(($ac_try" in
10938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10939 *) ac_try_echo=$ac_try;;
10941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10942 (eval "$ac_try") 2>&5
10944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10945 (exit $ac_status); }; }; then
10946 eval "$as_ac_var=yes"
10948 echo "$as_me: failed program was:" >&5
10949 sed 's/^/| /' conftest.$ac_ext >&5
10951 eval "$as_ac_var=no"
10954 rm -f core conftest.err conftest.$ac_objext \
10955 conftest$ac_exeext conftest.$ac_ext
10957 ac_res=`eval echo '${'$as_ac_var'}'`
10958 { echo "$as_me:$LINENO: result: $ac_res" >&5
10959 echo "${ECHO_T}$ac_res" >&6; }
10960 if test `eval echo '${'$as_ac_var'}'` = yes; then
10961 cat >>confdefs.h <<_ACEOF
10962 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10995 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10998 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10999 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 ac_res=`eval echo '${'$as_ac_Header'}'`
11006 { echo "$as_me:$LINENO: result: $ac_res" >&5
11007 echo "${ECHO_T}$ac_res" >&6; }
11009 # Is the header compilable?
11010 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11011 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11012 cat >conftest.$ac_ext <<_ACEOF
11015 cat confdefs.h >>conftest.$ac_ext
11016 cat >>conftest.$ac_ext <<_ACEOF
11017 /* end confdefs.h. */
11018 $ac_includes_default
11019 #include <$ac_header>
11021 rm -f conftest.$ac_objext
11022 if { (ac_try="$ac_compile"
11023 case "(($ac_try" in
11024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11025 *) ac_try_echo=$ac_try;;
11027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11028 (eval "$ac_compile") 2>conftest.er1
11030 grep -v '^ *+' conftest.er1 >conftest.err
11032 cat conftest.err >&5
11033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11034 (exit $ac_status); } &&
11035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11036 { (case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_try") 2>&5
11043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11044 (exit $ac_status); }; } &&
11045 { ac_try='test -s conftest.$ac_objext'
11046 { (case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11051 (eval "$ac_try") 2>&5
11053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11054 (exit $ac_status); }; }; then
11055 ac_header_compiler=yes
11057 echo "$as_me: failed program was:" >&5
11058 sed 's/^/| /' conftest.$ac_ext >&5
11060 ac_header_compiler=no
11063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11065 echo "${ECHO_T}$ac_header_compiler" >&6; }
11067 # Is the header present?
11068 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11070 cat >conftest.$ac_ext <<_ACEOF
11073 cat confdefs.h >>conftest.$ac_ext
11074 cat >>conftest.$ac_ext <<_ACEOF
11075 /* end confdefs.h. */
11076 #include <$ac_header>
11078 if { (ac_try="$ac_cpp conftest.$ac_ext"
11079 case "(($ac_try" in
11080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11081 *) ac_try_echo=$ac_try;;
11083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11086 grep -v '^ *+' conftest.er1 >conftest.err
11088 cat conftest.err >&5
11089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11090 (exit $ac_status); } >/dev/null; then
11091 if test -s conftest.err; then
11092 ac_cpp_err=$ac_c_preproc_warn_flag
11093 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11100 if test -z "$ac_cpp_err"; then
11101 ac_header_preproc=yes
11103 echo "$as_me: failed program was:" >&5
11104 sed 's/^/| /' conftest.$ac_ext >&5
11106 ac_header_preproc=no
11109 rm -f conftest.err conftest.$ac_ext
11110 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11111 echo "${ECHO_T}$ac_header_preproc" >&6; }
11113 # So? What about this header?
11114 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11116 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11117 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11119 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11120 ac_header_preproc=yes
11123 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11124 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11125 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11126 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11127 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11128 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11129 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11130 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11131 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11132 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11133 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11134 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11136 ## ------------------------------------ ##
11137 ## Report this to http://llvm.org/bugs/ ##
11138 ## ------------------------------------ ##
11140 ) | sed "s/^/$as_me: WARNING: /" >&2
11143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11146 echo $ECHO_N "(cached) $ECHO_C" >&6
11148 eval "$as_ac_Header=\$ac_header_preproc"
11150 ac_res=`eval echo '${'$as_ac_Header'}'`
11151 { echo "$as_me:$LINENO: result: $ac_res" >&5
11152 echo "${ECHO_T}$ac_res" >&6; }
11155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11156 cat >>confdefs.h <<_ACEOF
11157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11168 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 ac_res=`eval echo '${'$as_ac_Header'}'`
11178 { echo "$as_me:$LINENO: result: $ac_res" >&5
11179 echo "${ECHO_T}$ac_res" >&6; }
11181 # Is the header compilable?
11182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11184 cat >conftest.$ac_ext <<_ACEOF
11187 cat confdefs.h >>conftest.$ac_ext
11188 cat >>conftest.$ac_ext <<_ACEOF
11189 /* end confdefs.h. */
11190 $ac_includes_default
11191 #include <$ac_header>
11193 rm -f conftest.$ac_objext
11194 if { (ac_try="$ac_compile"
11195 case "(($ac_try" in
11196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11197 *) ac_try_echo=$ac_try;;
11199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11200 (eval "$ac_compile") 2>conftest.er1
11202 grep -v '^ *+' conftest.er1 >conftest.err
11204 cat conftest.err >&5
11205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11206 (exit $ac_status); } &&
11207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11208 { (case "(($ac_try" in
11209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11210 *) ac_try_echo=$ac_try;;
11212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11213 (eval "$ac_try") 2>&5
11215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11216 (exit $ac_status); }; } &&
11217 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
11225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11226 (exit $ac_status); }; }; then
11227 ac_header_compiler=yes
11229 echo "$as_me: failed program was:" >&5
11230 sed 's/^/| /' conftest.$ac_ext >&5
11232 ac_header_compiler=no
11235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11237 echo "${ECHO_T}$ac_header_compiler" >&6; }
11239 # Is the header present?
11240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11242 cat >conftest.$ac_ext <<_ACEOF
11245 cat confdefs.h >>conftest.$ac_ext
11246 cat >>conftest.$ac_ext <<_ACEOF
11247 /* end confdefs.h. */
11248 #include <$ac_header>
11250 if { (ac_try="$ac_cpp conftest.$ac_ext"
11251 case "(($ac_try" in
11252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11253 *) ac_try_echo=$ac_try;;
11255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11258 grep -v '^ *+' conftest.er1 >conftest.err
11260 cat conftest.err >&5
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } >/dev/null; then
11263 if test -s conftest.err; then
11264 ac_cpp_err=$ac_c_preproc_warn_flag
11265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11272 if test -z "$ac_cpp_err"; then
11273 ac_header_preproc=yes
11275 echo "$as_me: failed program was:" >&5
11276 sed 's/^/| /' conftest.$ac_ext >&5
11278 ac_header_preproc=no
11281 rm -f conftest.err conftest.$ac_ext
11282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11283 echo "${ECHO_T}$ac_header_preproc" >&6; }
11285 # So? What about this header?
11286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11292 ac_header_preproc=yes
11295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11308 ## ------------------------------------ ##
11309 ## Report this to http://llvm.org/bugs/ ##
11310 ## ------------------------------------ ##
11312 ) | sed "s/^/$as_me: WARNING: /" >&2
11315 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11316 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11320 eval "$as_ac_Header=\$ac_header_preproc"
11322 ac_res=`eval echo '${'$as_ac_Header'}'`
11323 { echo "$as_me:$LINENO: result: $ac_res" >&5
11324 echo "${ECHO_T}$ac_res" >&6; }
11327 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11328 cat >>confdefs.h <<_ACEOF
11329 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11338 for ac_header in string.h strings.h
11340 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11342 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11343 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11344 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 ac_res=`eval echo '${'$as_ac_Header'}'`
11348 { echo "$as_me:$LINENO: result: $ac_res" >&5
11349 echo "${ECHO_T}$ac_res" >&6; }
11351 # Is the header compilable?
11352 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11353 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11354 cat >conftest.$ac_ext <<_ACEOF
11357 cat confdefs.h >>conftest.$ac_ext
11358 cat >>conftest.$ac_ext <<_ACEOF
11359 /* end confdefs.h. */
11360 $ac_includes_default
11361 #include <$ac_header>
11363 rm -f conftest.$ac_objext
11364 if { (ac_try="$ac_compile"
11365 case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_compile") 2>conftest.er1
11372 grep -v '^ *+' conftest.er1 >conftest.err
11374 cat conftest.err >&5
11375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11376 (exit $ac_status); } &&
11377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11378 { (case "(($ac_try" in
11379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11380 *) ac_try_echo=$ac_try;;
11382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11383 (eval "$ac_try") 2>&5
11385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11386 (exit $ac_status); }; } &&
11387 { ac_try='test -s conftest.$ac_objext'
11388 { (case "(($ac_try" in
11389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390 *) ac_try_echo=$ac_try;;
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393 (eval "$ac_try") 2>&5
11395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11396 (exit $ac_status); }; }; then
11397 ac_header_compiler=yes
11399 echo "$as_me: failed program was:" >&5
11400 sed 's/^/| /' conftest.$ac_ext >&5
11402 ac_header_compiler=no
11405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11407 echo "${ECHO_T}$ac_header_compiler" >&6; }
11409 # Is the header present?
11410 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11411 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11412 cat >conftest.$ac_ext <<_ACEOF
11415 cat confdefs.h >>conftest.$ac_ext
11416 cat >>conftest.$ac_ext <<_ACEOF
11417 /* end confdefs.h. */
11418 #include <$ac_header>
11420 if { (ac_try="$ac_cpp conftest.$ac_ext"
11421 case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11428 grep -v '^ *+' conftest.er1 >conftest.err
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } >/dev/null; then
11433 if test -s conftest.err; then
11434 ac_cpp_err=$ac_c_preproc_warn_flag
11435 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11442 if test -z "$ac_cpp_err"; then
11443 ac_header_preproc=yes
11445 echo "$as_me: failed program was:" >&5
11446 sed 's/^/| /' conftest.$ac_ext >&5
11448 ac_header_preproc=no
11451 rm -f conftest.err conftest.$ac_ext
11452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11453 echo "${ECHO_T}$ac_header_preproc" >&6; }
11455 # So? What about this header?
11456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11462 ac_header_preproc=yes
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11478 ## ------------------------------------ ##
11479 ## Report this to http://llvm.org/bugs/ ##
11480 ## ------------------------------------ ##
11482 ) | sed "s/^/$as_me: WARNING: /" >&2
11485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11488 echo $ECHO_N "(cached) $ECHO_C" >&6
11490 eval "$as_ac_Header=\$ac_header_preproc"
11492 ac_res=`eval echo '${'$as_ac_Header'}'`
11493 { echo "$as_me:$LINENO: result: $ac_res" >&5
11494 echo "${ECHO_T}$ac_res" >&6; }
11497 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11498 cat >>confdefs.h <<_ACEOF
11499 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11509 for ac_func in strchr index
11511 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11512 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11513 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11514 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11515 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 cat >conftest.$ac_ext <<_ACEOF
11520 cat confdefs.h >>conftest.$ac_ext
11521 cat >>conftest.$ac_ext <<_ACEOF
11522 /* end confdefs.h. */
11523 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11524 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11525 #define $ac_func innocuous_$ac_func
11527 /* System header to define __stub macros and hopefully few prototypes,
11528 which can conflict with char $ac_func (); below.
11529 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11530 <limits.h> exists even on freestanding compilers. */
11533 # include <limits.h>
11535 # include <assert.h>
11540 /* Override any GCC internal prototype to avoid an error.
11541 Use char because int might match the return type of a GCC
11542 builtin and then its argument prototype would still apply. */
11547 /* The GNU C library defines this for functions which it implements
11548 to always fail with ENOSYS. Some functions are actually named
11549 something starting with __ and the normal name is an alias. */
11550 #if defined __stub_$ac_func || defined __stub___$ac_func
11557 return $ac_func ();
11562 rm -f conftest.$ac_objext conftest$ac_exeext
11563 if { (ac_try="$ac_link"
11564 case "(($ac_try" in
11565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11566 *) ac_try_echo=$ac_try;;
11568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11569 (eval "$ac_link") 2>conftest.er1
11571 grep -v '^ *+' conftest.er1 >conftest.err
11573 cat conftest.err >&5
11574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11575 (exit $ac_status); } &&
11576 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11577 { (case "(($ac_try" in
11578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11579 *) ac_try_echo=$ac_try;;
11581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11582 (eval "$ac_try") 2>&5
11584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11585 (exit $ac_status); }; } &&
11586 { ac_try='test -s conftest$ac_exeext'
11587 { (case "(($ac_try" in
11588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11589 *) ac_try_echo=$ac_try;;
11591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11592 (eval "$ac_try") 2>&5
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 eval "$as_ac_var=yes"
11598 echo "$as_me: failed program was:" >&5
11599 sed 's/^/| /' conftest.$ac_ext >&5
11601 eval "$as_ac_var=no"
11604 rm -f core conftest.err conftest.$ac_objext \
11605 conftest$ac_exeext conftest.$ac_ext
11607 ac_res=`eval echo '${'$as_ac_var'}'`
11608 { echo "$as_me:$LINENO: result: $ac_res" >&5
11609 echo "${ECHO_T}$ac_res" >&6; }
11610 if test `eval echo '${'$as_ac_var'}'` = yes; then
11611 cat >>confdefs.h <<_ACEOF
11612 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11620 for ac_func in strrchr rindex
11622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 cat >conftest.$ac_ext <<_ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11636 #define $ac_func innocuous_$ac_func
11638 /* System header to define __stub macros and hopefully few prototypes,
11639 which can conflict with char $ac_func (); below.
11640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11641 <limits.h> exists even on freestanding compilers. */
11644 # include <limits.h>
11646 # include <assert.h>
11651 /* Override any GCC internal prototype to avoid an error.
11652 Use char because int might match the return type of a GCC
11653 builtin and then its argument prototype would still apply. */
11658 /* The GNU C library defines this for functions which it implements
11659 to always fail with ENOSYS. Some functions are actually named
11660 something starting with __ and the normal name is an alias. */
11661 #if defined __stub_$ac_func || defined __stub___$ac_func
11668 return $ac_func ();
11673 rm -f conftest.$ac_objext conftest$ac_exeext
11674 if { (ac_try="$ac_link"
11675 case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_link") 2>conftest.er1
11682 grep -v '^ *+' conftest.er1 >conftest.err
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } &&
11687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11688 { (case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_try") 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_try") 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 eval "$as_ac_var=yes"
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 eval "$as_ac_var=no"
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11718 ac_res=`eval echo '${'$as_ac_var'}'`
11719 { echo "$as_me:$LINENO: result: $ac_res" >&5
11720 echo "${ECHO_T}$ac_res" >&6; }
11721 if test `eval echo '${'$as_ac_var'}'` = yes; then
11722 cat >>confdefs.h <<_ACEOF
11723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11731 for ac_func in memcpy bcopy
11733 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11737 echo $ECHO_N "(cached) $ECHO_C" >&6
11739 cat >conftest.$ac_ext <<_ACEOF
11742 cat confdefs.h >>conftest.$ac_ext
11743 cat >>conftest.$ac_ext <<_ACEOF
11744 /* end confdefs.h. */
11745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11747 #define $ac_func innocuous_$ac_func
11749 /* System header to define __stub macros and hopefully few prototypes,
11750 which can conflict with char $ac_func (); below.
11751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11752 <limits.h> exists even on freestanding compilers. */
11755 # include <limits.h>
11757 # include <assert.h>
11762 /* Override any GCC internal prototype to avoid an error.
11763 Use char because int might match the return type of a GCC
11764 builtin and then its argument prototype would still apply. */
11769 /* The GNU C library defines this for functions which it implements
11770 to always fail with ENOSYS. Some functions are actually named
11771 something starting with __ and the normal name is an alias. */
11772 #if defined __stub_$ac_func || defined __stub___$ac_func
11779 return $ac_func ();
11784 rm -f conftest.$ac_objext conftest$ac_exeext
11785 if { (ac_try="$ac_link"
11786 case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_link") 2>conftest.er1
11793 grep -v '^ *+' conftest.er1 >conftest.err
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } &&
11798 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11799 { (case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_try") 2>&5
11806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11807 (exit $ac_status); }; } &&
11808 { ac_try='test -s conftest$ac_exeext'
11809 { (case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_try") 2>&5
11816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11817 (exit $ac_status); }; }; then
11818 eval "$as_ac_var=yes"
11820 echo "$as_me: failed program was:" >&5
11821 sed 's/^/| /' conftest.$ac_ext >&5
11823 eval "$as_ac_var=no"
11826 rm -f core conftest.err conftest.$ac_objext \
11827 conftest$ac_exeext conftest.$ac_ext
11829 ac_res=`eval echo '${'$as_ac_var'}'`
11830 { echo "$as_me:$LINENO: result: $ac_res" >&5
11831 echo "${ECHO_T}$ac_res" >&6; }
11832 if test `eval echo '${'$as_ac_var'}'` = yes; then
11833 cat >>confdefs.h <<_ACEOF
11834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11842 for ac_func in memmove strcmp
11844 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11845 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11846 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11847 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11848 echo $ECHO_N "(cached) $ECHO_C" >&6
11850 cat >conftest.$ac_ext <<_ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11858 #define $ac_func innocuous_$ac_func
11860 /* System header to define __stub macros and hopefully few prototypes,
11861 which can conflict with char $ac_func (); below.
11862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11863 <limits.h> exists even on freestanding compilers. */
11866 # include <limits.h>
11868 # include <assert.h>
11873 /* Override any GCC internal prototype to avoid an error.
11874 Use char because int might match the return type of a GCC
11875 builtin and then its argument prototype would still apply. */
11880 /* The GNU C library defines this for functions which it implements
11881 to always fail with ENOSYS. Some functions are actually named
11882 something starting with __ and the normal name is an alias. */
11883 #if defined __stub_$ac_func || defined __stub___$ac_func
11890 return $ac_func ();
11895 rm -f conftest.$ac_objext conftest$ac_exeext
11896 if { (ac_try="$ac_link"
11897 case "(($ac_try" in
11898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11899 *) ac_try_echo=$ac_try;;
11901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11902 (eval "$ac_link") 2>conftest.er1
11904 grep -v '^ *+' conftest.er1 >conftest.err
11906 cat conftest.err >&5
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); } &&
11909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11910 { (case "(($ac_try" in
11911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11912 *) ac_try_echo=$ac_try;;
11914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11915 (eval "$ac_try") 2>&5
11917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); }; } &&
11919 { ac_try='test -s conftest$ac_exeext'
11920 { (case "(($ac_try" in
11921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11922 *) ac_try_echo=$ac_try;;
11924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11925 (eval "$ac_try") 2>&5
11927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11928 (exit $ac_status); }; }; then
11929 eval "$as_ac_var=yes"
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11934 eval "$as_ac_var=no"
11937 rm -f core conftest.err conftest.$ac_objext \
11938 conftest$ac_exeext conftest.$ac_ext
11940 ac_res=`eval echo '${'$as_ac_var'}'`
11941 { echo "$as_me:$LINENO: result: $ac_res" >&5
11942 echo "${ECHO_T}$ac_res" >&6; }
11943 if test `eval echo '${'$as_ac_var'}'` = yes; then
11944 cat >>confdefs.h <<_ACEOF
11945 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11954 for ac_func in closedir opendir readdir
11956 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11957 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11958 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11959 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11962 cat >conftest.$ac_ext <<_ACEOF
11965 cat confdefs.h >>conftest.$ac_ext
11966 cat >>conftest.$ac_ext <<_ACEOF
11967 /* end confdefs.h. */
11968 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11970 #define $ac_func innocuous_$ac_func
11972 /* System header to define __stub macros and hopefully few prototypes,
11973 which can conflict with char $ac_func (); below.
11974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11975 <limits.h> exists even on freestanding compilers. */
11978 # include <limits.h>
11980 # include <assert.h>
11985 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */
11992 /* The GNU C library defines this for functions which it implements
11993 to always fail with ENOSYS. Some functions are actually named
11994 something starting with __ and the normal name is an alias. */
11995 #if defined __stub_$ac_func || defined __stub___$ac_func
12002 return $ac_func ();
12007 rm -f conftest.$ac_objext conftest$ac_exeext
12008 if { (ac_try="$ac_link"
12009 case "(($ac_try" in
12010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12011 *) ac_try_echo=$ac_try;;
12013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12014 (eval "$ac_link") 2>conftest.er1
12016 grep -v '^ *+' conftest.er1 >conftest.err
12018 cat conftest.err >&5
12019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12020 (exit $ac_status); } &&
12021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12022 { (case "(($ac_try" in
12023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12024 *) ac_try_echo=$ac_try;;
12026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12027 (eval "$ac_try") 2>&5
12029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12030 (exit $ac_status); }; } &&
12031 { ac_try='test -s conftest$ac_exeext'
12032 { (case "(($ac_try" in
12033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12034 *) ac_try_echo=$ac_try;;
12036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12037 (eval "$ac_try") 2>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); }; }; then
12041 eval "$as_ac_var=yes"
12043 echo "$as_me: failed program was:" >&5
12044 sed 's/^/| /' conftest.$ac_ext >&5
12046 eval "$as_ac_var=no"
12049 rm -f core conftest.err conftest.$ac_objext \
12050 conftest$ac_exeext conftest.$ac_ext
12052 ac_res=`eval echo '${'$as_ac_var'}'`
12053 { echo "$as_me:$LINENO: result: $ac_res" >&5
12054 echo "${ECHO_T}$ac_res" >&6; }
12055 if test `eval echo '${'$as_ac_var'}'` = yes; then
12056 cat >>confdefs.h <<_ACEOF
12057 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12065 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12066 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12079 if test "$GCC" != "yes" && test "$ICC" != "yes"
12081 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12082 echo "$as_me: error: gcc|icc required but not found" >&2;}
12083 { (exit 1); exit 1; }; }
12086 if test "$GXX" != "yes" && test "$IXX" != "yes"
12088 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
12089 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
12090 { (exit 1); exit 1; }; }
12093 if test "$GCC" = "yes"
12095 cat >conftest.$ac_ext <<_ACEOF
12096 #if !defined(__GNUC__) || __GNUC__ < 3
12097 #error Unsupported GCC version
12101 rm -f conftest.$ac_objext
12102 if { (ac_try="$ac_compile"
12103 case "(($ac_try" in
12104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12105 *) ac_try_echo=$ac_try;;
12107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12108 (eval "$ac_compile") 2>conftest.er1
12110 grep -v '^ *+' conftest.er1 >conftest.err
12112 cat conftest.err >&5
12113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12114 (exit $ac_status); } &&
12115 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12116 { (case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_try") 2>&5
12123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12124 (exit $ac_status); }; } &&
12125 { ac_try='test -s conftest.$ac_objext'
12126 { (case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_try") 2>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); }; }; then
12137 echo "$as_me: failed program was:" >&5
12138 sed 's/^/| /' conftest.$ac_ext >&5
12140 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12141 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12142 { (exit 1); exit 1; }; }
12145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12148 if test -z "$llvm_cv_gnu_make_command"
12150 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12151 echo "$as_me: error: GNU Make required but not found" >&2;}
12152 { (exit 1); exit 1; }; }
12155 { echo "$as_me:$LINENO: result: ok" >&5
12156 echo "${ECHO_T}ok" >&6; }
12158 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
12159 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
12160 NO_VARIADIC_MACROS=`$CXX -Werror -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
12162 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Werror -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
12164 COVERED_SWITCH_DEFAULT=`$CXX -Werror -Wcovered-switch-default -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wcovered-switch-default`
12166 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&5
12167 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS $COVERED_SWITCH_DEFAULT" >&6; }
12171 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
12172 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
12173 if test "${ac_cv_lib_m_sin+set}" = set; then
12174 echo $ECHO_N "(cached) $ECHO_C" >&6
12176 ac_check_lib_save_LIBS=$LIBS
12178 cat >conftest.$ac_ext <<_ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12185 /* Override any GCC internal prototype to avoid an error.
12186 Use char because int might match the return type of a GCC
12187 builtin and then its argument prototype would still apply. */
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12209 grep -v '^ *+' conftest.er1 >conftest.err
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_try") 2>&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 ac_cv_lib_m_sin=yes
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12242 rm -f core conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244 LIBS=$ac_check_lib_save_LIBS
12246 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
12247 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
12248 if test $ac_cv_lib_m_sin = yes; then
12249 cat >>confdefs.h <<_ACEOF
12250 #define HAVE_LIBM 1
12257 if test "$llvm_cv_os_type" = "MingW" ; then
12259 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
12260 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
12261 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
12262 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 ac_check_lib_save_LIBS=$LIBS
12265 LIBS="-limagehlp $LIBS"
12266 cat >conftest.$ac_ext <<_ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12282 rm -f conftest.$ac_objext conftest$ac_exeext
12283 if { (ac_try="$ac_link"
12284 case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_link") 2>conftest.er1
12291 grep -v '^ *+' conftest.er1 >conftest.err
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } &&
12296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12297 { (case "(($ac_try" in
12298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12299 *) ac_try_echo=$ac_try;;
12301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12302 (eval "$ac_try") 2>&5
12304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12305 (exit $ac_status); }; } &&
12306 { ac_try='test -s conftest$ac_exeext'
12307 { (case "(($ac_try" in
12308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12309 *) ac_try_echo=$ac_try;;
12311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12312 (eval "$ac_try") 2>&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); }; }; then
12316 ac_cv_lib_imagehlp_main=yes
12318 echo "$as_me: failed program was:" >&5
12319 sed 's/^/| /' conftest.$ac_ext >&5
12321 ac_cv_lib_imagehlp_main=no
12324 rm -f core conftest.err conftest.$ac_objext \
12325 conftest$ac_exeext conftest.$ac_ext
12326 LIBS=$ac_check_lib_save_LIBS
12328 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
12329 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
12330 if test $ac_cv_lib_imagehlp_main = yes; then
12331 cat >>confdefs.h <<_ACEOF
12332 #define HAVE_LIBIMAGEHLP 1
12335 LIBS="-limagehlp $LIBS"
12340 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
12341 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
12342 if test "${ac_cv_lib_psapi_main+set}" = set; then
12343 echo $ECHO_N "(cached) $ECHO_C" >&6
12345 ac_check_lib_save_LIBS=$LIBS
12346 LIBS="-lpsapi $LIBS"
12347 cat >conftest.$ac_ext <<_ACEOF
12350 cat confdefs.h >>conftest.$ac_ext
12351 cat >>conftest.$ac_ext <<_ACEOF
12352 /* end confdefs.h. */
12363 rm -f conftest.$ac_objext conftest$ac_exeext
12364 if { (ac_try="$ac_link"
12365 case "(($ac_try" in
12366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12367 *) ac_try_echo=$ac_try;;
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_link") 2>conftest.er1
12372 grep -v '^ *+' conftest.er1 >conftest.err
12374 cat conftest.err >&5
12375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12376 (exit $ac_status); } &&
12377 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12378 { (case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_try") 2>&5
12385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12386 (exit $ac_status); }; } &&
12387 { ac_try='test -s conftest$ac_exeext'
12388 { (case "(($ac_try" in
12389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12390 *) ac_try_echo=$ac_try;;
12392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12393 (eval "$ac_try") 2>&5
12395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12396 (exit $ac_status); }; }; then
12397 ac_cv_lib_psapi_main=yes
12399 echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.$ac_ext >&5
12402 ac_cv_lib_psapi_main=no
12405 rm -f core conftest.err conftest.$ac_objext \
12406 conftest$ac_exeext conftest.$ac_ext
12407 LIBS=$ac_check_lib_save_LIBS
12409 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
12410 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
12411 if test $ac_cv_lib_psapi_main = yes; then
12412 cat >>confdefs.h <<_ACEOF
12413 #define HAVE_LIBPSAPI 1
12416 LIBS="-lpsapi $LIBS"
12422 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
12423 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
12424 if test "${ac_cv_search_dlopen+set}" = set; then
12425 echo $ECHO_N "(cached) $ECHO_C" >&6
12427 ac_func_search_save_LIBS=$LIBS
12428 cat >conftest.$ac_ext <<_ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12435 /* Override any GCC internal prototype to avoid an error.
12436 Use char because int might match the return type of a GCC
12437 builtin and then its argument prototype would still apply. */
12450 for ac_lib in '' dl; do
12451 if test -z "$ac_lib"; then
12452 ac_res="none required"
12455 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12457 rm -f conftest.$ac_objext conftest$ac_exeext
12458 if { (ac_try="$ac_link"
12459 case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_link") 2>conftest.er1
12466 grep -v '^ *+' conftest.er1 >conftest.err
12468 cat conftest.err >&5
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); } &&
12471 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12472 { (case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_try") 2>&5
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; } &&
12481 { ac_try='test -s conftest$ac_exeext'
12482 { (case "(($ac_try" in
12483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12484 *) ac_try_echo=$ac_try;;
12486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12487 (eval "$ac_try") 2>&5
12489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12490 (exit $ac_status); }; }; then
12491 ac_cv_search_dlopen=$ac_res
12493 echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12499 rm -f core conftest.err conftest.$ac_objext \
12501 if test "${ac_cv_search_dlopen+set}" = set; then
12505 if test "${ac_cv_search_dlopen+set}" = set; then
12508 ac_cv_search_dlopen=no
12510 rm conftest.$ac_ext
12511 LIBS=$ac_func_search_save_LIBS
12513 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
12514 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
12515 ac_res=$ac_cv_search_dlopen
12516 if test "$ac_res" != no; then
12517 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12519 cat >>confdefs.h <<\_ACEOF
12520 #define HAVE_DLOPEN 1
12524 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
12525 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
12529 if test "$llvm_cv_enable_libffi" = "yes" ; then
12530 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
12531 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
12532 if test "${ac_cv_search_ffi_call+set}" = set; then
12533 echo $ECHO_N "(cached) $ECHO_C" >&6
12535 ac_func_search_save_LIBS=$LIBS
12536 cat >conftest.$ac_ext <<_ACEOF
12539 cat confdefs.h >>conftest.$ac_ext
12540 cat >>conftest.$ac_ext <<_ACEOF
12541 /* end confdefs.h. */
12543 /* Override any GCC internal prototype to avoid an error.
12544 Use char because int might match the return type of a GCC
12545 builtin and then its argument prototype would still apply. */
12553 return ffi_call ();
12558 for ac_lib in '' ffi; do
12559 if test -z "$ac_lib"; then
12560 ac_res="none required"
12563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12565 rm -f conftest.$ac_objext conftest$ac_exeext
12566 if { (ac_try="$ac_link"
12567 case "(($ac_try" in
12568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12569 *) ac_try_echo=$ac_try;;
12571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12572 (eval "$ac_link") 2>conftest.er1
12574 grep -v '^ *+' conftest.er1 >conftest.err
12576 cat conftest.err >&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); } &&
12579 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12580 { (case "(($ac_try" in
12581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12582 *) ac_try_echo=$ac_try;;
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_try") 2>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); }; } &&
12589 { ac_try='test -s conftest$ac_exeext'
12590 { (case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_try") 2>&5
12597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12598 (exit $ac_status); }; }; then
12599 ac_cv_search_ffi_call=$ac_res
12601 echo "$as_me: failed program was:" >&5
12602 sed 's/^/| /' conftest.$ac_ext >&5
12607 rm -f core conftest.err conftest.$ac_objext \
12609 if test "${ac_cv_search_ffi_call+set}" = set; then
12613 if test "${ac_cv_search_ffi_call+set}" = set; then
12616 ac_cv_search_ffi_call=no
12618 rm conftest.$ac_ext
12619 LIBS=$ac_func_search_save_LIBS
12621 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
12622 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
12623 ac_res=$ac_cv_search_ffi_call
12624 if test "$ac_res" != no; then
12625 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12627 cat >>confdefs.h <<\_ACEOF
12628 #define HAVE_FFI_CALL 1
12632 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
12633 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
12634 { (exit 1); exit 1; }; }
12639 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
12640 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
12641 if test "${ac_cv_search_mallinfo+set}" = set; then
12642 echo $ECHO_N "(cached) $ECHO_C" >&6
12644 ac_func_search_save_LIBS=$LIBS
12645 cat >conftest.$ac_ext <<_ACEOF
12648 cat confdefs.h >>conftest.$ac_ext
12649 cat >>conftest.$ac_ext <<_ACEOF
12650 /* end confdefs.h. */
12652 /* Override any GCC internal prototype to avoid an error.
12653 Use char because int might match the return type of a GCC
12654 builtin and then its argument prototype would still apply. */
12662 return mallinfo ();
12667 for ac_lib in '' malloc; do
12668 if test -z "$ac_lib"; then
12669 ac_res="none required"
12672 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12674 rm -f conftest.$ac_objext conftest$ac_exeext
12675 if { (ac_try="$ac_link"
12676 case "(($ac_try" in
12677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12678 *) ac_try_echo=$ac_try;;
12680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12681 (eval "$ac_link") 2>conftest.er1
12683 grep -v '^ *+' conftest.er1 >conftest.err
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12689 { (case "(($ac_try" in
12690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12691 *) ac_try_echo=$ac_try;;
12693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12694 (eval "$ac_try") 2>&5
12696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12697 (exit $ac_status); }; } &&
12698 { ac_try='test -s conftest$ac_exeext'
12699 { (case "(($ac_try" in
12700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12701 *) ac_try_echo=$ac_try;;
12703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12704 (eval "$ac_try") 2>&5
12706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12707 (exit $ac_status); }; }; then
12708 ac_cv_search_mallinfo=$ac_res
12710 echo "$as_me: failed program was:" >&5
12711 sed 's/^/| /' conftest.$ac_ext >&5
12716 rm -f core conftest.err conftest.$ac_objext \
12718 if test "${ac_cv_search_mallinfo+set}" = set; then
12722 if test "${ac_cv_search_mallinfo+set}" = set; then
12725 ac_cv_search_mallinfo=no
12727 rm conftest.$ac_ext
12728 LIBS=$ac_func_search_save_LIBS
12730 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
12731 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
12732 ac_res=$ac_cv_search_mallinfo
12733 if test "$ac_res" != no; then
12734 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12736 cat >>confdefs.h <<\_ACEOF
12737 #define HAVE_MALLINFO 1
12743 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
12745 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
12746 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
12747 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 ac_check_lib_save_LIBS=$LIBS
12751 LIBS="-lpthread $LIBS"
12752 cat >conftest.$ac_ext <<_ACEOF
12755 cat confdefs.h >>conftest.$ac_ext
12756 cat >>conftest.$ac_ext <<_ACEOF
12757 /* end confdefs.h. */
12759 /* Override any GCC internal prototype to avoid an error.
12760 Use char because int might match the return type of a GCC
12761 builtin and then its argument prototype would still apply. */
12765 char pthread_mutex_init ();
12769 return pthread_mutex_init ();
12774 rm -f conftest.$ac_objext conftest$ac_exeext
12775 if { (ac_try="$ac_link"
12776 case "(($ac_try" in
12777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12778 *) ac_try_echo=$ac_try;;
12780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12781 (eval "$ac_link") 2>conftest.er1
12783 grep -v '^ *+' conftest.er1 >conftest.err
12785 cat conftest.err >&5
12786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12787 (exit $ac_status); } &&
12788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12789 { (case "(($ac_try" in
12790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12791 *) ac_try_echo=$ac_try;;
12793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12794 (eval "$ac_try") 2>&5
12796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12797 (exit $ac_status); }; } &&
12798 { ac_try='test -s conftest$ac_exeext'
12799 { (case "(($ac_try" in
12800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12801 *) ac_try_echo=$ac_try;;
12803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12804 (eval "$ac_try") 2>&5
12806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12807 (exit $ac_status); }; }; then
12808 ac_cv_lib_pthread_pthread_mutex_init=yes
12810 echo "$as_me: failed program was:" >&5
12811 sed 's/^/| /' conftest.$ac_ext >&5
12813 ac_cv_lib_pthread_pthread_mutex_init=no
12816 rm -f core conftest.err conftest.$ac_objext \
12817 conftest$ac_exeext conftest.$ac_ext
12818 LIBS=$ac_check_lib_save_LIBS
12820 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
12821 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
12822 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
12823 cat >>confdefs.h <<_ACEOF
12824 #define HAVE_LIBPTHREAD 1
12827 LIBS="-lpthread $LIBS"
12831 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
12832 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
12833 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12834 echo $ECHO_N "(cached) $ECHO_C" >&6
12836 ac_func_search_save_LIBS=$LIBS
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12844 /* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
12850 char pthread_mutex_lock ();
12854 return pthread_mutex_lock ();
12859 for ac_lib in '' pthread; do
12860 if test -z "$ac_lib"; then
12861 ac_res="none required"
12864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12866 rm -f conftest.$ac_objext conftest$ac_exeext
12867 if { (ac_try="$ac_link"
12868 case "(($ac_try" in
12869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12870 *) ac_try_echo=$ac_try;;
12872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12873 (eval "$ac_link") 2>conftest.er1
12875 grep -v '^ *+' conftest.er1 >conftest.err
12877 cat conftest.err >&5
12878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12879 (exit $ac_status); } &&
12880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12881 { (case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_try") 2>&5
12888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12889 (exit $ac_status); }; } &&
12890 { ac_try='test -s conftest$ac_exeext'
12891 { (case "(($ac_try" in
12892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12893 *) ac_try_echo=$ac_try;;
12895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12896 (eval "$ac_try") 2>&5
12898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12899 (exit $ac_status); }; }; then
12900 ac_cv_search_pthread_mutex_lock=$ac_res
12902 echo "$as_me: failed program was:" >&5
12903 sed 's/^/| /' conftest.$ac_ext >&5
12908 rm -f core conftest.err conftest.$ac_objext \
12910 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12914 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
12917 ac_cv_search_pthread_mutex_lock=no
12919 rm conftest.$ac_ext
12920 LIBS=$ac_func_search_save_LIBS
12922 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
12923 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
12924 ac_res=$ac_cv_search_pthread_mutex_lock
12925 if test "$ac_res" != no; then
12926 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_PTHREAD_MUTEX_LOCK 1
12934 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
12935 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
12936 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12939 ac_func_search_save_LIBS=$LIBS
12940 cat >conftest.$ac_ext <<_ACEOF
12943 cat confdefs.h >>conftest.$ac_ext
12944 cat >>conftest.$ac_ext <<_ACEOF
12945 /* end confdefs.h. */
12947 /* Override any GCC internal prototype to avoid an error.
12948 Use char because int might match the return type of a GCC
12949 builtin and then its argument prototype would still apply. */
12953 char pthread_rwlock_init ();
12957 return pthread_rwlock_init ();
12962 for ac_lib in '' pthread; do
12963 if test -z "$ac_lib"; then
12964 ac_res="none required"
12967 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12969 rm -f conftest.$ac_objext conftest$ac_exeext
12970 if { (ac_try="$ac_link"
12971 case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12976 (eval "$ac_link") 2>conftest.er1
12978 grep -v '^ *+' conftest.er1 >conftest.err
12980 cat conftest.err >&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); } &&
12983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12984 { (case "(($ac_try" in
12985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12986 *) ac_try_echo=$ac_try;;
12988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12989 (eval "$ac_try") 2>&5
12991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12992 (exit $ac_status); }; } &&
12993 { ac_try='test -s conftest$ac_exeext'
12994 { (case "(($ac_try" in
12995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12996 *) ac_try_echo=$ac_try;;
12998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12999 (eval "$ac_try") 2>&5
13001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13002 (exit $ac_status); }; }; then
13003 ac_cv_search_pthread_rwlock_init=$ac_res
13005 echo "$as_me: failed program was:" >&5
13006 sed 's/^/| /' conftest.$ac_ext >&5
13011 rm -f core conftest.err conftest.$ac_objext \
13013 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13017 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13020 ac_cv_search_pthread_rwlock_init=no
13022 rm conftest.$ac_ext
13023 LIBS=$ac_func_search_save_LIBS
13025 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13026 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13027 ac_res=$ac_cv_search_pthread_rwlock_init
13028 if test "$ac_res" != no; then
13029 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13031 cat >>confdefs.h <<\_ACEOF
13032 #define HAVE_PTHREAD_RWLOCK_INIT 1
13037 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13038 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13039 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13040 echo $ECHO_N "(cached) $ECHO_C" >&6
13042 ac_func_search_save_LIBS=$LIBS
13043 cat >conftest.$ac_ext <<_ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13050 /* Override any GCC internal prototype to avoid an error.
13051 Use char because int might match the return type of a GCC
13052 builtin and then its argument prototype would still apply. */
13056 char pthread_getspecific ();
13060 return pthread_getspecific ();
13065 for ac_lib in '' pthread; do
13066 if test -z "$ac_lib"; then
13067 ac_res="none required"
13070 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13072 rm -f conftest.$ac_objext conftest$ac_exeext
13073 if { (ac_try="$ac_link"
13074 case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_link") 2>conftest.er1
13081 grep -v '^ *+' conftest.er1 >conftest.err
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089 *) ac_try_echo=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try='test -s conftest$ac_exeext'
13097 { (case "(($ac_try" in
13098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_try") 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 ac_cv_search_pthread_getspecific=$ac_res
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13114 rm -f core conftest.err conftest.$ac_objext \
13116 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13120 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13123 ac_cv_search_pthread_getspecific=no
13125 rm conftest.$ac_ext
13126 LIBS=$ac_func_search_save_LIBS
13128 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13129 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13130 ac_res=$ac_cv_search_pthread_getspecific
13131 if test "$ac_res" != no; then
13132 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13134 cat >>confdefs.h <<\_ACEOF
13135 #define HAVE_PTHREAD_GETSPECIFIC 1
13143 # Check whether --with-udis86 was given.
13144 if test "${with_udis86+set}" = set; then
13145 withval=$with_udis86;
13150 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13153 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13154 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13155 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13156 echo $ECHO_N "(cached) $ECHO_C" >&6
13158 ac_check_lib_save_LIBS=$LIBS
13159 LIBS="-ludis86 $LIBS"
13160 cat >conftest.$ac_ext <<_ACEOF
13163 cat confdefs.h >>conftest.$ac_ext
13164 cat >>conftest.$ac_ext <<_ACEOF
13165 /* end confdefs.h. */
13167 /* Override any GCC internal prototype to avoid an error.
13168 Use char because int might match the return type of a GCC
13169 builtin and then its argument prototype would still apply. */
13182 rm -f conftest.$ac_objext conftest$ac_exeext
13183 if { (ac_try="$ac_link"
13184 case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_link") 2>conftest.er1
13191 grep -v '^ *+' conftest.er1 >conftest.err
13193 cat conftest.err >&5
13194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13195 (exit $ac_status); } &&
13196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13197 { (case "(($ac_try" in
13198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_try") 2>&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); }; } &&
13206 { ac_try='test -s conftest$ac_exeext'
13207 { (case "(($ac_try" in
13208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13209 *) ac_try_echo=$ac_try;;
13211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13212 (eval "$ac_try") 2>&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 (exit $ac_status); }; }; then
13216 ac_cv_lib_udis86_ud_init=yes
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13221 ac_cv_lib_udis86_ud_init=no
13224 rm -f core conftest.err conftest.$ac_objext \
13225 conftest$ac_exeext conftest.$ac_ext
13226 LIBS=$ac_check_lib_save_LIBS
13228 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
13229 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
13230 if test $ac_cv_lib_udis86_ud_init = yes; then
13231 cat >>confdefs.h <<_ACEOF
13232 #define HAVE_LIBUDIS86 1
13235 LIBS="-ludis86 $LIBS"
13239 echo "Error! You need to have libudis86 around."
13251 cat >>confdefs.h <<_ACEOF
13252 #define USE_UDIS86 $USE_UDIS86
13257 # Check whether --with-oprofile was given.
13258 if test "${with_oprofile+set}" = set; then
13259 withval=$with_oprofile;
13263 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
13264 no) llvm_cv_oppath=
13267 *) llvm_cv_oppath="${withval}/lib/oprofile"
13268 CPPFLAGS="-I${withval}/include";;
13270 case $llvm_cv_os_type in
13272 if test -n "$llvm_cv_oppath" ; then
13273 LIBS="$LIBS -lopagent -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
13274 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
13275 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
13276 if test "${ac_cv_search_bfd_init+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 ac_func_search_save_LIBS=$LIBS
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13287 /* Override any GCC internal prototype to avoid an error.
13288 Use char because int might match the return type of a GCC
13289 builtin and then its argument prototype would still apply. */
13297 return bfd_init ();
13302 for ac_lib in '' bfd; do
13303 if test -z "$ac_lib"; then
13304 ac_res="none required"
13307 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13309 rm -f conftest.$ac_objext conftest$ac_exeext
13310 if { (ac_try="$ac_link"
13311 case "(($ac_try" in
13312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13313 *) ac_try_echo=$ac_try;;
13315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13316 (eval "$ac_link") 2>conftest.er1
13318 grep -v '^ *+' conftest.er1 >conftest.err
13320 cat conftest.err >&5
13321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322 (exit $ac_status); } &&
13323 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13324 { (case "(($ac_try" in
13325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_try") 2>&5
13331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13332 (exit $ac_status); }; } &&
13333 { ac_try='test -s conftest$ac_exeext'
13334 { (case "(($ac_try" in
13335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13336 *) ac_try_echo=$ac_try;;
13338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13339 (eval "$ac_try") 2>&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); }; }; then
13343 ac_cv_search_bfd_init=$ac_res
13345 echo "$as_me: failed program was:" >&5
13346 sed 's/^/| /' conftest.$ac_ext >&5
13351 rm -f core conftest.err conftest.$ac_objext \
13353 if test "${ac_cv_search_bfd_init+set}" = set; then
13357 if test "${ac_cv_search_bfd_init+set}" = set; then
13360 ac_cv_search_bfd_init=no
13362 rm conftest.$ac_ext
13363 LIBS=$ac_func_search_save_LIBS
13365 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
13366 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
13367 ac_res=$ac_cv_search_bfd_init
13368 if test "$ac_res" != no; then
13369 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13373 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
13374 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
13375 if test "${ac_cv_search_op_open_agent+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13378 ac_func_search_save_LIBS=$LIBS
13379 cat >conftest.$ac_ext <<_ACEOF
13382 cat confdefs.h >>conftest.$ac_ext
13383 cat >>conftest.$ac_ext <<_ACEOF
13384 /* end confdefs.h. */
13386 /* Override any GCC internal prototype to avoid an error.
13387 Use char because int might match the return type of a GCC
13388 builtin and then its argument prototype would still apply. */
13392 char op_open_agent ();
13396 return op_open_agent ();
13401 for ac_lib in '' opagent; do
13402 if test -z "$ac_lib"; then
13403 ac_res="none required"
13406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13408 rm -f conftest.$ac_objext conftest$ac_exeext
13409 if { (ac_try="$ac_link"
13410 case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13415 (eval "$ac_link") 2>conftest.er1
13417 grep -v '^ *+' conftest.er1 >conftest.err
13419 cat conftest.err >&5
13420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13421 (exit $ac_status); } &&
13422 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13423 { (case "(($ac_try" in
13424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13425 *) ac_try_echo=$ac_try;;
13427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13428 (eval "$ac_try") 2>&5
13430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13431 (exit $ac_status); }; } &&
13432 { ac_try='test -s conftest$ac_exeext'
13433 { (case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_try") 2>&5
13440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13441 (exit $ac_status); }; }; then
13442 ac_cv_search_op_open_agent=$ac_res
13444 echo "$as_me: failed program was:" >&5
13445 sed 's/^/| /' conftest.$ac_ext >&5
13450 rm -f core conftest.err conftest.$ac_objext \
13452 if test "${ac_cv_search_op_open_agent+set}" = set; then
13456 if test "${ac_cv_search_op_open_agent+set}" = set; then
13459 ac_cv_search_op_open_agent=no
13461 rm conftest.$ac_ext
13462 LIBS=$ac_func_search_save_LIBS
13464 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
13465 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
13466 ac_res=$ac_cv_search_op_open_agent
13467 if test "$ac_res" != no; then
13468 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13472 echo "Error! You need to have libopagent around."
13477 if test "${ac_cv_header_opagent_h+set}" = set; then
13478 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13479 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13480 if test "${ac_cv_header_opagent_h+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13483 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13484 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13486 # Is the header compilable?
13487 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
13488 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
13489 cat >conftest.$ac_ext <<_ACEOF
13492 cat confdefs.h >>conftest.$ac_ext
13493 cat >>conftest.$ac_ext <<_ACEOF
13494 /* end confdefs.h. */
13495 $ac_includes_default
13496 #include <opagent.h>
13498 rm -f conftest.$ac_objext
13499 if { (ac_try="$ac_compile"
13500 case "(($ac_try" in
13501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_compile") 2>conftest.er1
13507 grep -v '^ *+' conftest.er1 >conftest.err
13509 cat conftest.err >&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); } &&
13512 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13513 { (case "(($ac_try" in
13514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_try") 2>&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; } &&
13522 { ac_try='test -s conftest.$ac_objext'
13523 { (case "(($ac_try" in
13524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13525 *) ac_try_echo=$ac_try;;
13527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13528 (eval "$ac_try") 2>&5
13530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13531 (exit $ac_status); }; }; then
13532 ac_header_compiler=yes
13534 echo "$as_me: failed program was:" >&5
13535 sed 's/^/| /' conftest.$ac_ext >&5
13537 ac_header_compiler=no
13540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13541 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13542 echo "${ECHO_T}$ac_header_compiler" >&6; }
13544 # Is the header present?
13545 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
13546 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
13547 cat >conftest.$ac_ext <<_ACEOF
13550 cat confdefs.h >>conftest.$ac_ext
13551 cat >>conftest.$ac_ext <<_ACEOF
13552 /* end confdefs.h. */
13553 #include <opagent.h>
13555 if { (ac_try="$ac_cpp conftest.$ac_ext"
13556 case "(($ac_try" in
13557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13558 *) ac_try_echo=$ac_try;;
13560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13563 grep -v '^ *+' conftest.er1 >conftest.err
13565 cat conftest.err >&5
13566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13567 (exit $ac_status); } >/dev/null; then
13568 if test -s conftest.err; then
13569 ac_cpp_err=$ac_c_preproc_warn_flag
13570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13577 if test -z "$ac_cpp_err"; then
13578 ac_header_preproc=yes
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_header_preproc=no
13586 rm -f conftest.err conftest.$ac_ext
13587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13588 echo "${ECHO_T}$ac_header_preproc" >&6; }
13590 # So? What about this header?
13591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13593 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
13594 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13595 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
13596 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
13597 ac_header_preproc=yes
13600 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
13601 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
13603 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
13604 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
13605 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
13606 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
13607 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
13608 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
13609 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
13610 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
13611 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
13613 ## ------------------------------------ ##
13614 ## Report this to http://llvm.org/bugs/ ##
13615 ## ------------------------------------ ##
13617 ) | sed "s/^/$as_me: WARNING: /" >&2
13620 { echo "$as_me:$LINENO: checking for opagent.h" >&5
13621 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
13622 if test "${ac_cv_header_opagent_h+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13625 ac_cv_header_opagent_h=$ac_header_preproc
13627 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
13628 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
13631 if test $ac_cv_header_opagent_h = yes; then
13635 echo "Error! You need to have opagent.h around."
13643 { { echo "$as_me:$LINENO: error: OProfile support is available on Linux only." >&5
13644 echo "$as_me: error: OProfile support is available on Linux only." >&2;}
13645 { (exit 1); exit 1; }; } ;;
13656 cat >>confdefs.h <<_ACEOF
13657 #define LLVM_USE_OPROFILE $USE_OPROFILE
13662 # Check whether --with-intel-jitevents was given.
13663 if test "${with_intel_jitevents+set}" = set; then
13664 withval=$with_intel_jitevents;
13665 case $llvm_cv_os_type in
13666 Linux|Win32|Cygwin|MingW) ;;
13668 { { echo "$as_me:$LINENO: error:
13669 Intel JIT API support is available on Linux and Windows only.\"" >&5
13670 echo "$as_me: error:
13671 Intel JIT API support is available on Linux and Windows only.\"" >&2;}
13672 { (exit 1); exit 1; }; } ;;
13675 USE_INTEL_JITEVENTS=1
13677 case "$llvm_cv_target_arch" in
13678 x86) llvm_intel_jitevents_archdir="lib32";;
13679 x86_64) llvm_intel_jitevents_archdir="lib64";;
13680 *) echo "Target architecture $llvm_cv_target_arch does not support Intel JIT Events API"
13683 INTEL_JITEVENTS_INCDIR="/opt/intel/vtune_amplifier_xe_2011/include"
13684 INTEL_JITEVENTS_LIBDIR="/opt/intel/vtune_amplifier_xe_2011/$llvm_intel_jitevents_archdir"
13686 /* | [A-Za-z]:[\\/]*) INTEL_JITEVENTS_INCDIR=$withval/include
13687 INTEL_JITEVENTS_LIBDIR=$withval/$llvm_intel_jitevents_archdir ;;
13695 LIBS="$LIBS -L${INTEL_JITEVENTS_LIBDIR}"
13696 CPPFLAGS="$CPPFLAGS -I$INTEL_JITEVENTS_INCDIR"
13698 { echo "$as_me:$LINENO: checking for library containing iJIT_IsProfilingActive" >&5
13699 echo $ECHO_N "checking for library containing iJIT_IsProfilingActive... $ECHO_C" >&6; }
13700 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13701 echo $ECHO_N "(cached) $ECHO_C" >&6
13703 ac_func_search_save_LIBS=$LIBS
13704 cat >conftest.$ac_ext <<_ACEOF
13707 cat confdefs.h >>conftest.$ac_ext
13708 cat >>conftest.$ac_ext <<_ACEOF
13709 /* end confdefs.h. */
13711 /* Override any GCC internal prototype to avoid an error.
13712 Use char because int might match the return type of a GCC
13713 builtin and then its argument prototype would still apply. */
13717 char iJIT_IsProfilingActive ();
13721 return iJIT_IsProfilingActive ();
13726 for ac_lib in '' jitprofiling; do
13727 if test -z "$ac_lib"; then
13728 ac_res="none required"
13731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13733 rm -f conftest.$ac_objext conftest$ac_exeext
13734 if { (ac_try="$ac_link"
13735 case "(($ac_try" in
13736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13737 *) ac_try_echo=$ac_try;;
13739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13740 (eval "$ac_link") 2>conftest.er1
13742 grep -v '^ *+' conftest.er1 >conftest.err
13744 cat conftest.err >&5
13745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13746 (exit $ac_status); } &&
13747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13748 { (case "(($ac_try" in
13749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13750 *) ac_try_echo=$ac_try;;
13752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13753 (eval "$ac_try") 2>&5
13755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13756 (exit $ac_status); }; } &&
13757 { ac_try='test -s conftest$ac_exeext'
13758 { (case "(($ac_try" in
13759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13760 *) ac_try_echo=$ac_try;;
13762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13763 (eval "$ac_try") 2>&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); }; }; then
13767 ac_cv_search_iJIT_IsProfilingActive=$ac_res
13769 echo "$as_me: failed program was:" >&5
13770 sed 's/^/| /' conftest.$ac_ext >&5
13775 rm -f core conftest.err conftest.$ac_objext \
13777 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13781 if test "${ac_cv_search_iJIT_IsProfilingActive+set}" = set; then
13784 ac_cv_search_iJIT_IsProfilingActive=no
13786 rm conftest.$ac_ext
13787 LIBS=$ac_func_search_save_LIBS
13789 { echo "$as_me:$LINENO: result: $ac_cv_search_iJIT_IsProfilingActive" >&5
13790 echo "${ECHO_T}$ac_cv_search_iJIT_IsProfilingActive" >&6; }
13791 ac_res=$ac_cv_search_iJIT_IsProfilingActive
13792 if test "$ac_res" != no; then
13793 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13797 echo "Error! Cannot find libjitprofiling.a. Please check path specified in flag --with-intel-jitevents"
13802 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13803 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13804 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13805 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13806 echo $ECHO_N "(cached) $ECHO_C" >&6
13808 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13809 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13811 # Is the header compilable?
13812 { echo "$as_me:$LINENO: checking jitprofiling.h usability" >&5
13813 echo $ECHO_N "checking jitprofiling.h usability... $ECHO_C" >&6; }
13814 cat >conftest.$ac_ext <<_ACEOF
13817 cat confdefs.h >>conftest.$ac_ext
13818 cat >>conftest.$ac_ext <<_ACEOF
13819 /* end confdefs.h. */
13820 $ac_includes_default
13821 #include <jitprofiling.h>
13823 rm -f conftest.$ac_objext
13824 if { (ac_try="$ac_compile"
13825 case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_compile") 2>conftest.er1
13832 grep -v '^ *+' conftest.er1 >conftest.err
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } &&
13837 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13838 { (case "(($ac_try" in
13839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13840 *) ac_try_echo=$ac_try;;
13842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13843 (eval "$ac_try") 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; } &&
13847 { ac_try='test -s conftest.$ac_objext'
13848 { (case "(($ac_try" in
13849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13850 *) ac_try_echo=$ac_try;;
13852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13853 (eval "$ac_try") 2>&5
13855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13856 (exit $ac_status); }; }; then
13857 ac_header_compiler=yes
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.$ac_ext >&5
13862 ac_header_compiler=no
13865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13866 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13867 echo "${ECHO_T}$ac_header_compiler" >&6; }
13869 # Is the header present?
13870 { echo "$as_me:$LINENO: checking jitprofiling.h presence" >&5
13871 echo $ECHO_N "checking jitprofiling.h presence... $ECHO_C" >&6; }
13872 cat >conftest.$ac_ext <<_ACEOF
13875 cat confdefs.h >>conftest.$ac_ext
13876 cat >>conftest.$ac_ext <<_ACEOF
13877 /* end confdefs.h. */
13878 #include <jitprofiling.h>
13880 if { (ac_try="$ac_cpp conftest.$ac_ext"
13881 case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13888 grep -v '^ *+' conftest.er1 >conftest.err
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } >/dev/null; then
13893 if test -s conftest.err; then
13894 ac_cpp_err=$ac_c_preproc_warn_flag
13895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13902 if test -z "$ac_cpp_err"; then
13903 ac_header_preproc=yes
13905 echo "$as_me: failed program was:" >&5
13906 sed 's/^/| /' conftest.$ac_ext >&5
13908 ac_header_preproc=no
13911 rm -f conftest.err conftest.$ac_ext
13912 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13913 echo "${ECHO_T}$ac_header_preproc" >&6; }
13915 # So? What about this header?
13916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13918 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&5
13919 echo "$as_me: WARNING: jitprofiling.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13920 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the compiler's result" >&5
13921 echo "$as_me: WARNING: jitprofiling.h: proceeding with the compiler's result" >&2;}
13922 ac_header_preproc=yes
13925 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: present but cannot be compiled" >&5
13926 echo "$as_me: WARNING: jitprofiling.h: present but cannot be compiled" >&2;}
13927 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&5
13928 echo "$as_me: WARNING: jitprofiling.h: check for missing prerequisite headers?" >&2;}
13929 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: see the Autoconf documentation" >&5
13930 echo "$as_me: WARNING: jitprofiling.h: see the Autoconf documentation" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&5
13932 echo "$as_me: WARNING: jitprofiling.h: section \"Present But Cannot Be Compiled\"" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&5
13934 echo "$as_me: WARNING: jitprofiling.h: proceeding with the preprocessor's result" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&5
13936 echo "$as_me: WARNING: jitprofiling.h: in the future, the compiler will take precedence" >&2;}
13938 ## ------------------------------------ ##
13939 ## Report this to http://llvm.org/bugs/ ##
13940 ## ------------------------------------ ##
13942 ) | sed "s/^/$as_me: WARNING: /" >&2
13945 { echo "$as_me:$LINENO: checking for jitprofiling.h" >&5
13946 echo $ECHO_N "checking for jitprofiling.h... $ECHO_C" >&6; }
13947 if test "${ac_cv_header_jitprofiling_h+set}" = set; then
13948 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 ac_cv_header_jitprofiling_h=$ac_header_preproc
13952 { echo "$as_me:$LINENO: result: $ac_cv_header_jitprofiling_h" >&5
13953 echo "${ECHO_T}$ac_cv_header_jitprofiling_h" >&6; }
13956 if test $ac_cv_header_jitprofiling_h = yes; then
13960 echo "Error! Cannot find jitprofiling.h. Please check path specified in flag --with-intel-jitevents"
13970 USE_INTEL_JITEVENTS=0
13976 cat >>confdefs.h <<_ACEOF
13977 #define LLVM_USE_INTEL_JITEVENTS $USE_INTEL_JITEVENTS
13987 ac_header_dirent=no
13988 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
13989 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
13990 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
13991 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
13992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13995 cat >conftest.$ac_ext <<_ACEOF
13998 cat confdefs.h >>conftest.$ac_ext
13999 cat >>conftest.$ac_ext <<_ACEOF
14000 /* end confdefs.h. */
14001 #include <sys/types.h>
14013 rm -f conftest.$ac_objext
14014 if { (ac_try="$ac_compile"
14015 case "(($ac_try" in
14016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14017 *) ac_try_echo=$ac_try;;
14019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14020 (eval "$ac_compile") 2>conftest.er1
14022 grep -v '^ *+' conftest.er1 >conftest.err
14024 cat conftest.err >&5
14025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14026 (exit $ac_status); } &&
14027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14028 { (case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_try") 2>&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; } &&
14037 { ac_try='test -s conftest.$ac_objext'
14038 { (case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_try") 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; }; then
14047 eval "$as_ac_Header=yes"
14049 echo "$as_me: failed program was:" >&5
14050 sed 's/^/| /' conftest.$ac_ext >&5
14052 eval "$as_ac_Header=no"
14055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14057 ac_res=`eval echo '${'$as_ac_Header'}'`
14058 { echo "$as_me:$LINENO: result: $ac_res" >&5
14059 echo "${ECHO_T}$ac_res" >&6; }
14060 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14061 cat >>confdefs.h <<_ACEOF
14062 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14065 ac_header_dirent=$ac_hdr; break
14069 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14070 if test $ac_header_dirent = dirent.h; then
14071 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14072 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14073 if test "${ac_cv_search_opendir+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 ac_func_search_save_LIBS=$LIBS
14077 cat >conftest.$ac_ext <<_ACEOF
14080 cat confdefs.h >>conftest.$ac_ext
14081 cat >>conftest.$ac_ext <<_ACEOF
14082 /* end confdefs.h. */
14084 /* Override any GCC internal prototype to avoid an error.
14085 Use char because int might match the return type of a GCC
14086 builtin and then its argument prototype would still apply. */
14099 for ac_lib in '' dir; do
14100 if test -z "$ac_lib"; then
14101 ac_res="none required"
14104 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14106 rm -f conftest.$ac_objext conftest$ac_exeext
14107 if { (ac_try="$ac_link"
14108 case "(($ac_try" in
14109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14110 *) ac_try_echo=$ac_try;;
14112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14113 (eval "$ac_link") 2>conftest.er1
14115 grep -v '^ *+' conftest.er1 >conftest.err
14117 cat conftest.err >&5
14118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14119 (exit $ac_status); } &&
14120 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14121 { (case "(($ac_try" in
14122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14123 *) ac_try_echo=$ac_try;;
14125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14126 (eval "$ac_try") 2>&5
14128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14129 (exit $ac_status); }; } &&
14130 { ac_try='test -s conftest$ac_exeext'
14131 { (case "(($ac_try" in
14132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14133 *) ac_try_echo=$ac_try;;
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_try") 2>&5
14138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14139 (exit $ac_status); }; }; then
14140 ac_cv_search_opendir=$ac_res
14142 echo "$as_me: failed program was:" >&5
14143 sed 's/^/| /' conftest.$ac_ext >&5
14148 rm -f core conftest.err conftest.$ac_objext \
14150 if test "${ac_cv_search_opendir+set}" = set; then
14154 if test "${ac_cv_search_opendir+set}" = set; then
14157 ac_cv_search_opendir=no
14159 rm conftest.$ac_ext
14160 LIBS=$ac_func_search_save_LIBS
14162 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14163 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14164 ac_res=$ac_cv_search_opendir
14165 if test "$ac_res" != no; then
14166 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14171 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14172 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14173 if test "${ac_cv_search_opendir+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 ac_func_search_save_LIBS=$LIBS
14177 cat >conftest.$ac_ext <<_ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14184 /* Override any GCC internal prototype to avoid an error.
14185 Use char because int might match the return type of a GCC
14186 builtin and then its argument prototype would still apply. */
14199 for ac_lib in '' x; do
14200 if test -z "$ac_lib"; then
14201 ac_res="none required"
14204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14206 rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (ac_try="$ac_link"
14208 case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_link") 2>conftest.er1
14215 grep -v '^ *+' conftest.er1 >conftest.err
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_search_opendir=$ac_res
14242 echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14248 rm -f core conftest.err conftest.$ac_objext \
14250 if test "${ac_cv_search_opendir+set}" = set; then
14254 if test "${ac_cv_search_opendir+set}" = set; then
14257 ac_cv_search_opendir=no
14259 rm conftest.$ac_ext
14260 LIBS=$ac_func_search_save_LIBS
14262 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14263 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14264 ac_res=$ac_cv_search_opendir
14265 if test "$ac_res" != no; then
14266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14272 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14273 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14274 if test "${ac_cv_header_mmap_anon+set}" = set; then
14275 echo $ECHO_N "(cached) $ECHO_C" >&6
14278 ac_cpp='$CPP $CPPFLAGS'
14279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14283 cat >conftest.$ac_ext <<_ACEOF
14286 cat confdefs.h >>conftest.$ac_ext
14287 cat >>conftest.$ac_ext <<_ACEOF
14288 /* end confdefs.h. */
14289 #include <sys/mman.h>
14290 #include <unistd.h>
14295 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14300 rm -f conftest.$ac_objext
14301 if { (ac_try="$ac_compile"
14302 case "(($ac_try" in
14303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14304 *) ac_try_echo=$ac_try;;
14306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14307 (eval "$ac_compile") 2>conftest.er1
14309 grep -v '^ *+' conftest.er1 >conftest.err
14311 cat conftest.err >&5
14312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14313 (exit $ac_status); } &&
14314 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14315 { (case "(($ac_try" in
14316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14317 *) ac_try_echo=$ac_try;;
14319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14320 (eval "$ac_try") 2>&5
14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14323 (exit $ac_status); }; } &&
14324 { ac_try='test -s conftest.$ac_objext'
14325 { (case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14330 (eval "$ac_try") 2>&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); }; }; then
14334 ac_cv_header_mmap_anon=yes
14336 echo "$as_me: failed program was:" >&5
14337 sed 's/^/| /' conftest.$ac_ext >&5
14339 ac_cv_header_mmap_anon=no
14342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14344 ac_cpp='$CPP $CPPFLAGS'
14345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14351 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14352 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14353 if test "$ac_cv_header_mmap_anon" = yes; then
14355 cat >>confdefs.h <<\_ACEOF
14356 #define HAVE_MMAP_ANONYMOUS 1
14361 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14362 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14363 if test "${ac_cv_header_stat_broken+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 cat >conftest.$ac_ext <<_ACEOF
14369 cat confdefs.h >>conftest.$ac_ext
14370 cat >>conftest.$ac_ext <<_ACEOF
14371 /* end confdefs.h. */
14372 #include <sys/types.h>
14373 #include <sys/stat.h>
14375 #if defined S_ISBLK && defined S_IFDIR
14376 # if S_ISBLK (S_IFDIR)
14381 #if defined S_ISBLK && defined S_IFCHR
14382 # if S_ISBLK (S_IFCHR)
14387 #if defined S_ISLNK && defined S_IFREG
14388 # if S_ISLNK (S_IFREG)
14393 #if defined S_ISSOCK && defined S_IFREG
14394 # if S_ISSOCK (S_IFREG)
14400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14401 $EGREP "You lose" >/dev/null 2>&1; then
14402 ac_cv_header_stat_broken=yes
14404 ac_cv_header_stat_broken=no
14409 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14410 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14411 if test $ac_cv_header_stat_broken = yes; then
14413 cat >>confdefs.h <<\_ACEOF
14414 #define STAT_MACROS_BROKEN 1
14419 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
14420 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
14421 if test "${ac_cv_header_sys_wait_h+set}" = set; then
14422 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 cat >conftest.$ac_ext <<_ACEOF
14427 cat confdefs.h >>conftest.$ac_ext
14428 cat >>conftest.$ac_ext <<_ACEOF
14429 /* end confdefs.h. */
14430 #include <sys/types.h>
14431 #include <sys/wait.h>
14432 #ifndef WEXITSTATUS
14433 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
14436 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
14444 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
14449 rm -f conftest.$ac_objext
14450 if { (ac_try="$ac_compile"
14451 case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_compile") 2>conftest.er1
14458 grep -v '^ *+' conftest.er1 >conftest.err
14460 cat conftest.err >&5
14461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14462 (exit $ac_status); } &&
14463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14464 { (case "(($ac_try" in
14465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14466 *) ac_try_echo=$ac_try;;
14468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14469 (eval "$ac_try") 2>&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; } &&
14473 { ac_try='test -s conftest.$ac_objext'
14474 { (case "(($ac_try" in
14475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14476 *) ac_try_echo=$ac_try;;
14478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14479 (eval "$ac_try") 2>&5
14481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14482 (exit $ac_status); }; }; then
14483 ac_cv_header_sys_wait_h=yes
14485 echo "$as_me: failed program was:" >&5
14486 sed 's/^/| /' conftest.$ac_ext >&5
14488 ac_cv_header_sys_wait_h=no
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14493 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
14494 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
14495 if test $ac_cv_header_sys_wait_h = yes; then
14497 cat >>confdefs.h <<\_ACEOF
14498 #define HAVE_SYS_WAIT_H 1
14503 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
14504 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
14505 if test "${ac_cv_header_time+set}" = set; then
14506 echo $ECHO_N "(cached) $ECHO_C" >&6
14508 cat >conftest.$ac_ext <<_ACEOF
14511 cat confdefs.h >>conftest.$ac_ext
14512 cat >>conftest.$ac_ext <<_ACEOF
14513 /* end confdefs.h. */
14514 #include <sys/types.h>
14515 #include <sys/time.h>
14521 if ((struct tm *) 0)
14527 rm -f conftest.$ac_objext
14528 if { (ac_try="$ac_compile"
14529 case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_compile") 2>conftest.er1
14536 grep -v '^ *+' conftest.er1 >conftest.err
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14542 { (case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_try") 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try='test -s conftest.$ac_objext'
14552 { (case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_try") 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14561 ac_cv_header_time=yes
14563 echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14566 ac_cv_header_time=no
14569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14571 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
14572 echo "${ECHO_T}$ac_cv_header_time" >&6; }
14573 if test $ac_cv_header_time = yes; then
14575 cat >>confdefs.h <<\_ACEOF
14576 #define TIME_WITH_SYS_TIME 1
14588 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
14590 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14594 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 ac_res=`eval echo '${'$as_ac_Header'}'`
14598 { echo "$as_me:$LINENO: result: $ac_res" >&5
14599 echo "${ECHO_T}$ac_res" >&6; }
14601 # Is the header compilable?
14602 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14603 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14604 cat >conftest.$ac_ext <<_ACEOF
14607 cat confdefs.h >>conftest.$ac_ext
14608 cat >>conftest.$ac_ext <<_ACEOF
14609 /* end confdefs.h. */
14610 $ac_includes_default
14611 #include <$ac_header>
14613 rm -f conftest.$ac_objext
14614 if { (ac_try="$ac_compile"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_compile") 2>conftest.er1
14622 grep -v '^ *+' conftest.er1 >conftest.err
14624 cat conftest.err >&5
14625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14626 (exit $ac_status); } &&
14627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14628 { (case "(($ac_try" in
14629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14630 *) ac_try_echo=$ac_try;;
14632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14633 (eval "$ac_try") 2>&5
14635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14636 (exit $ac_status); }; } &&
14637 { ac_try='test -s conftest.$ac_objext'
14638 { (case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_try") 2>&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); }; }; then
14647 ac_header_compiler=yes
14649 echo "$as_me: failed program was:" >&5
14650 sed 's/^/| /' conftest.$ac_ext >&5
14652 ac_header_compiler=no
14655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14656 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14657 echo "${ECHO_T}$ac_header_compiler" >&6; }
14659 # Is the header present?
14660 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14661 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14662 cat >conftest.$ac_ext <<_ACEOF
14665 cat confdefs.h >>conftest.$ac_ext
14666 cat >>conftest.$ac_ext <<_ACEOF
14667 /* end confdefs.h. */
14668 #include <$ac_header>
14670 if { (ac_try="$ac_cpp conftest.$ac_ext"
14671 case "(($ac_try" in
14672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14673 *) ac_try_echo=$ac_try;;
14675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14676 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14678 grep -v '^ *+' conftest.er1 >conftest.err
14680 cat conftest.err >&5
14681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14682 (exit $ac_status); } >/dev/null; then
14683 if test -s conftest.err; then
14684 ac_cpp_err=$ac_c_preproc_warn_flag
14685 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14692 if test -z "$ac_cpp_err"; then
14693 ac_header_preproc=yes
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14698 ac_header_preproc=no
14701 rm -f conftest.err conftest.$ac_ext
14702 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14703 echo "${ECHO_T}$ac_header_preproc" >&6; }
14705 # So? What about this header?
14706 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14708 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14709 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14710 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14711 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14712 ac_header_preproc=yes
14715 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14716 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14717 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14718 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14719 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14720 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14721 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14722 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14724 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14726 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14728 ## ------------------------------------ ##
14729 ## Report this to http://llvm.org/bugs/ ##
14730 ## ------------------------------------ ##
14732 ) | sed "s/^/$as_me: WARNING: /" >&2
14735 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14736 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 eval "$as_ac_Header=\$ac_header_preproc"
14742 ac_res=`eval echo '${'$as_ac_Header'}'`
14743 { echo "$as_me:$LINENO: result: $ac_res" >&5
14744 echo "${ECHO_T}$ac_res" >&6; }
14747 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14748 cat >>confdefs.h <<_ACEOF
14749 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14762 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
14764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14769 echo $ECHO_N "(cached) $ECHO_C" >&6
14771 ac_res=`eval echo '${'$as_ac_Header'}'`
14772 { echo "$as_me:$LINENO: result: $ac_res" >&5
14773 echo "${ECHO_T}$ac_res" >&6; }
14775 # Is the header compilable?
14776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14778 cat >conftest.$ac_ext <<_ACEOF
14781 cat confdefs.h >>conftest.$ac_ext
14782 cat >>conftest.$ac_ext <<_ACEOF
14783 /* end confdefs.h. */
14784 $ac_includes_default
14785 #include <$ac_header>
14787 rm -f conftest.$ac_objext
14788 if { (ac_try="$ac_compile"
14789 case "(($ac_try" in
14790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14791 *) ac_try_echo=$ac_try;;
14793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14794 (eval "$ac_compile") 2>conftest.er1
14796 grep -v '^ *+' conftest.er1 >conftest.err
14798 cat conftest.err >&5
14799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14800 (exit $ac_status); } &&
14801 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14802 { (case "(($ac_try" in
14803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14804 *) ac_try_echo=$ac_try;;
14806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14807 (eval "$ac_try") 2>&5
14809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14810 (exit $ac_status); }; } &&
14811 { ac_try='test -s conftest.$ac_objext'
14812 { (case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_try") 2>&5
14819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14820 (exit $ac_status); }; }; then
14821 ac_header_compiler=yes
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14826 ac_header_compiler=no
14829 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14830 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14831 echo "${ECHO_T}$ac_header_compiler" >&6; }
14833 # Is the header present?
14834 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14835 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14836 cat >conftest.$ac_ext <<_ACEOF
14839 cat confdefs.h >>conftest.$ac_ext
14840 cat >>conftest.$ac_ext <<_ACEOF
14841 /* end confdefs.h. */
14842 #include <$ac_header>
14844 if { (ac_try="$ac_cpp conftest.$ac_ext"
14845 case "(($ac_try" in
14846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14847 *) ac_try_echo=$ac_try;;
14849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14850 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14852 grep -v '^ *+' conftest.er1 >conftest.err
14854 cat conftest.err >&5
14855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14856 (exit $ac_status); } >/dev/null; then
14857 if test -s conftest.err; then
14858 ac_cpp_err=$ac_c_preproc_warn_flag
14859 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14866 if test -z "$ac_cpp_err"; then
14867 ac_header_preproc=yes
14869 echo "$as_me: failed program was:" >&5
14870 sed 's/^/| /' conftest.$ac_ext >&5
14872 ac_header_preproc=no
14875 rm -f conftest.err conftest.$ac_ext
14876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14877 echo "${ECHO_T}$ac_header_preproc" >&6; }
14879 # So? What about this header?
14880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14886 ac_header_preproc=yes
14889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14902 ## ------------------------------------ ##
14903 ## Report this to http://llvm.org/bugs/ ##
14904 ## ------------------------------------ ##
14906 ) | sed "s/^/$as_me: WARNING: /" >&2
14909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14912 echo $ECHO_N "(cached) $ECHO_C" >&6
14914 eval "$as_ac_Header=\$ac_header_preproc"
14916 ac_res=`eval echo '${'$as_ac_Header'}'`
14917 { echo "$as_me:$LINENO: result: $ac_res" >&5
14918 echo "${ECHO_T}$ac_res" >&6; }
14921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14922 cat >>confdefs.h <<_ACEOF
14923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14932 for ac_header in utime.h windows.h
14934 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 ac_res=`eval echo '${'$as_ac_Header'}'`
14942 { echo "$as_me:$LINENO: result: $ac_res" >&5
14943 echo "${ECHO_T}$ac_res" >&6; }
14945 # Is the header compilable?
14946 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14947 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14948 cat >conftest.$ac_ext <<_ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14954 $ac_includes_default
14955 #include <$ac_header>
14957 rm -f conftest.$ac_objext
14958 if { (ac_try="$ac_compile"
14959 case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_compile") 2>conftest.er1
14966 grep -v '^ *+' conftest.er1 >conftest.err
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14972 { (case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_try") 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_try") 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14991 ac_header_compiler=yes
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_header_compiler=no
14999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15001 echo "${ECHO_T}$ac_header_compiler" >&6; }
15003 # Is the header present?
15004 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15005 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15006 cat >conftest.$ac_ext <<_ACEOF
15009 cat confdefs.h >>conftest.$ac_ext
15010 cat >>conftest.$ac_ext <<_ACEOF
15011 /* end confdefs.h. */
15012 #include <$ac_header>
15014 if { (ac_try="$ac_cpp conftest.$ac_ext"
15015 case "(($ac_try" in
15016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15017 *) ac_try_echo=$ac_try;;
15019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15022 grep -v '^ *+' conftest.er1 >conftest.err
15024 cat conftest.err >&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); } >/dev/null; then
15027 if test -s conftest.err; then
15028 ac_cpp_err=$ac_c_preproc_warn_flag
15029 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15036 if test -z "$ac_cpp_err"; then
15037 ac_header_preproc=yes
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_header_preproc=no
15045 rm -f conftest.err conftest.$ac_ext
15046 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15047 echo "${ECHO_T}$ac_header_preproc" >&6; }
15049 # So? What about this header?
15050 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15052 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15053 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15055 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15056 ac_header_preproc=yes
15059 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15060 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15061 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15062 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15063 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15064 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15065 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15066 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15068 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15069 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15070 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15072 ## ------------------------------------ ##
15073 ## Report this to http://llvm.org/bugs/ ##
15074 ## ------------------------------------ ##
15076 ) | sed "s/^/$as_me: WARNING: /" >&2
15079 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15080 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15082 echo $ECHO_N "(cached) $ECHO_C" >&6
15084 eval "$as_ac_Header=\$ac_header_preproc"
15086 ac_res=`eval echo '${'$as_ac_Header'}'`
15087 { echo "$as_me:$LINENO: result: $ac_res" >&5
15088 echo "${ECHO_T}$ac_res" >&6; }
15091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15092 cat >>confdefs.h <<_ACEOF
15093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15105 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h sys/uio.h
15107 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15109 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15110 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15114 ac_res=`eval echo '${'$as_ac_Header'}'`
15115 { echo "$as_me:$LINENO: result: $ac_res" >&5
15116 echo "${ECHO_T}$ac_res" >&6; }
15118 # Is the header compilable?
15119 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15120 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15121 cat >conftest.$ac_ext <<_ACEOF
15124 cat confdefs.h >>conftest.$ac_ext
15125 cat >>conftest.$ac_ext <<_ACEOF
15126 /* end confdefs.h. */
15127 $ac_includes_default
15128 #include <$ac_header>
15130 rm -f conftest.$ac_objext
15131 if { (ac_try="$ac_compile"
15132 case "(($ac_try" in
15133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15134 *) ac_try_echo=$ac_try;;
15136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15137 (eval "$ac_compile") 2>conftest.er1
15139 grep -v '^ *+' conftest.er1 >conftest.err
15141 cat conftest.err >&5
15142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15143 (exit $ac_status); } &&
15144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15145 { (case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_try") 2>&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); }; } &&
15154 { ac_try='test -s conftest.$ac_objext'
15155 { (case "(($ac_try" in
15156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15157 *) ac_try_echo=$ac_try;;
15159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15160 (eval "$ac_try") 2>&5
15162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15163 (exit $ac_status); }; }; then
15164 ac_header_compiler=yes
15166 echo "$as_me: failed program was:" >&5
15167 sed 's/^/| /' conftest.$ac_ext >&5
15169 ac_header_compiler=no
15172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15173 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15174 echo "${ECHO_T}$ac_header_compiler" >&6; }
15176 # Is the header present?
15177 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15178 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15179 cat >conftest.$ac_ext <<_ACEOF
15182 cat confdefs.h >>conftest.$ac_ext
15183 cat >>conftest.$ac_ext <<_ACEOF
15184 /* end confdefs.h. */
15185 #include <$ac_header>
15187 if { (ac_try="$ac_cpp conftest.$ac_ext"
15188 case "(($ac_try" in
15189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15190 *) ac_try_echo=$ac_try;;
15192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15193 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15195 grep -v '^ *+' conftest.er1 >conftest.err
15197 cat conftest.err >&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); } >/dev/null; then
15200 if test -s conftest.err; then
15201 ac_cpp_err=$ac_c_preproc_warn_flag
15202 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15209 if test -z "$ac_cpp_err"; then
15210 ac_header_preproc=yes
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_header_preproc=no
15218 rm -f conftest.err conftest.$ac_ext
15219 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15220 echo "${ECHO_T}$ac_header_preproc" >&6; }
15222 # So? What about this header?
15223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15225 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15226 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15227 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15229 ac_header_preproc=yes
15232 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15233 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15234 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15235 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15236 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15237 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15238 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15239 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15240 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15242 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15243 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15245 ## ------------------------------------ ##
15246 ## Report this to http://llvm.org/bugs/ ##
15247 ## ------------------------------------ ##
15249 ) | sed "s/^/$as_me: WARNING: /" >&2
15252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15255 echo $ECHO_N "(cached) $ECHO_C" >&6
15257 eval "$as_ac_Header=\$ac_header_preproc"
15259 ac_res=`eval echo '${'$as_ac_Header'}'`
15260 { echo "$as_me:$LINENO: result: $ac_res" >&5
15261 echo "${ECHO_T}$ac_res" >&6; }
15264 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15265 cat >>confdefs.h <<_ACEOF
15266 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15277 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15284 echo $ECHO_N "(cached) $ECHO_C" >&6
15286 ac_res=`eval echo '${'$as_ac_Header'}'`
15287 { echo "$as_me:$LINENO: result: $ac_res" >&5
15288 echo "${ECHO_T}$ac_res" >&6; }
15290 # Is the header compilable?
15291 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15292 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15293 cat >conftest.$ac_ext <<_ACEOF
15296 cat confdefs.h >>conftest.$ac_ext
15297 cat >>conftest.$ac_ext <<_ACEOF
15298 /* end confdefs.h. */
15299 $ac_includes_default
15300 #include <$ac_header>
15302 rm -f conftest.$ac_objext
15303 if { (ac_try="$ac_compile"
15304 case "(($ac_try" in
15305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306 *) ac_try_echo=$ac_try;;
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309 (eval "$ac_compile") 2>conftest.er1
15311 grep -v '^ *+' conftest.er1 >conftest.err
15313 cat conftest.err >&5
15314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315 (exit $ac_status); } &&
15316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15317 { (case "(($ac_try" in
15318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319 *) ac_try_echo=$ac_try;;
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322 (eval "$ac_try") 2>&5
15324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325 (exit $ac_status); }; } &&
15326 { ac_try='test -s conftest.$ac_objext'
15327 { (case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_try") 2>&5
15334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335 (exit $ac_status); }; }; then
15336 ac_header_compiler=yes
15338 echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15341 ac_header_compiler=no
15344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15346 echo "${ECHO_T}$ac_header_compiler" >&6; }
15348 # Is the header present?
15349 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15350 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15351 cat >conftest.$ac_ext <<_ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 #include <$ac_header>
15359 if { (ac_try="$ac_cpp conftest.$ac_ext"
15360 case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15367 grep -v '^ *+' conftest.er1 >conftest.err
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } >/dev/null; then
15372 if test -s conftest.err; then
15373 ac_cpp_err=$ac_c_preproc_warn_flag
15374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15381 if test -z "$ac_cpp_err"; then
15382 ac_header_preproc=yes
15384 echo "$as_me: failed program was:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 ac_header_preproc=no
15390 rm -f conftest.err conftest.$ac_ext
15391 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15392 echo "${ECHO_T}$ac_header_preproc" >&6; }
15394 # So? What about this header?
15395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15397 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15398 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15399 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15401 ac_header_preproc=yes
15404 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15405 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15406 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15407 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15409 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15411 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15415 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15417 ## ------------------------------------ ##
15418 ## Report this to http://llvm.org/bugs/ ##
15419 ## ------------------------------------ ##
15421 ) | sed "s/^/$as_me: WARNING: /" >&2
15424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15427 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 eval "$as_ac_Header=\$ac_header_preproc"
15431 ac_res=`eval echo '${'$as_ac_Header'}'`
15432 { echo "$as_me:$LINENO: result: $ac_res" >&5
15433 echo "${ECHO_T}$ac_res" >&6; }
15436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15437 cat >>confdefs.h <<_ACEOF
15438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15446 for ac_header in valgrind/valgrind.h
15448 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15450 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15451 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15452 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15453 echo $ECHO_N "(cached) $ECHO_C" >&6
15455 ac_res=`eval echo '${'$as_ac_Header'}'`
15456 { echo "$as_me:$LINENO: result: $ac_res" >&5
15457 echo "${ECHO_T}$ac_res" >&6; }
15459 # Is the header compilable?
15460 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15461 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15462 cat >conftest.$ac_ext <<_ACEOF
15465 cat confdefs.h >>conftest.$ac_ext
15466 cat >>conftest.$ac_ext <<_ACEOF
15467 /* end confdefs.h. */
15468 $ac_includes_default
15469 #include <$ac_header>
15471 rm -f conftest.$ac_objext
15472 if { (ac_try="$ac_compile"
15473 case "(($ac_try" in
15474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15475 *) ac_try_echo=$ac_try;;
15477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15478 (eval "$ac_compile") 2>conftest.er1
15480 grep -v '^ *+' conftest.er1 >conftest.err
15482 cat conftest.err >&5
15483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15484 (exit $ac_status); } &&
15485 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15486 { (case "(($ac_try" in
15487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15488 *) ac_try_echo=$ac_try;;
15490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15491 (eval "$ac_try") 2>&5
15493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15494 (exit $ac_status); }; } &&
15495 { ac_try='test -s conftest.$ac_objext'
15496 { (case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_try") 2>&5
15503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15504 (exit $ac_status); }; }; then
15505 ac_header_compiler=yes
15507 echo "$as_me: failed program was:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15510 ac_header_compiler=no
15513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15515 echo "${ECHO_T}$ac_header_compiler" >&6; }
15517 # Is the header present?
15518 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15520 cat >conftest.$ac_ext <<_ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h. */
15526 #include <$ac_header>
15528 if { (ac_try="$ac_cpp conftest.$ac_ext"
15529 case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15536 grep -v '^ *+' conftest.er1 >conftest.err
15538 cat conftest.err >&5
15539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15540 (exit $ac_status); } >/dev/null; then
15541 if test -s conftest.err; then
15542 ac_cpp_err=$ac_c_preproc_warn_flag
15543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15550 if test -z "$ac_cpp_err"; then
15551 ac_header_preproc=yes
15553 echo "$as_me: failed program was:" >&5
15554 sed 's/^/| /' conftest.$ac_ext >&5
15556 ac_header_preproc=no
15559 rm -f conftest.err conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15561 echo "${ECHO_T}$ac_header_preproc" >&6; }
15563 # So? What about this header?
15564 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15566 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15567 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15568 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15569 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15570 ac_header_preproc=yes
15573 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15574 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15576 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15578 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15580 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15582 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15583 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15584 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15586 ## ------------------------------------ ##
15587 ## Report this to http://llvm.org/bugs/ ##
15588 ## ------------------------------------ ##
15590 ) | sed "s/^/$as_me: WARNING: /" >&2
15593 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15594 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15595 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15598 eval "$as_ac_Header=\$ac_header_preproc"
15600 ac_res=`eval echo '${'$as_ac_Header'}'`
15601 { echo "$as_me:$LINENO: result: $ac_res" >&5
15602 echo "${ECHO_T}$ac_res" >&6; }
15605 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15606 cat >>confdefs.h <<_ACEOF
15607 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15615 for ac_header in fenv.h
15617 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15618 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 ac_res=`eval echo '${'$as_ac_Header'}'`
15625 { echo "$as_me:$LINENO: result: $ac_res" >&5
15626 echo "${ECHO_T}$ac_res" >&6; }
15628 # Is the header compilable?
15629 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15630 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15631 cat >conftest.$ac_ext <<_ACEOF
15634 cat confdefs.h >>conftest.$ac_ext
15635 cat >>conftest.$ac_ext <<_ACEOF
15636 /* end confdefs.h. */
15637 $ac_includes_default
15638 #include <$ac_header>
15640 rm -f conftest.$ac_objext
15641 if { (ac_try="$ac_compile"
15642 case "(($ac_try" in
15643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15644 *) ac_try_echo=$ac_try;;
15646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15647 (eval "$ac_compile") 2>conftest.er1
15649 grep -v '^ *+' conftest.er1 >conftest.err
15651 cat conftest.err >&5
15652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15653 (exit $ac_status); } &&
15654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15655 { (case "(($ac_try" in
15656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15657 *) ac_try_echo=$ac_try;;
15659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15660 (eval "$ac_try") 2>&5
15662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15663 (exit $ac_status); }; } &&
15664 { ac_try='test -s conftest.$ac_objext'
15665 { (case "(($ac_try" in
15666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667 *) ac_try_echo=$ac_try;;
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670 (eval "$ac_try") 2>&5
15672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); }; }; then
15674 ac_header_compiler=yes
15676 echo "$as_me: failed program was:" >&5
15677 sed 's/^/| /' conftest.$ac_ext >&5
15679 ac_header_compiler=no
15682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15684 echo "${ECHO_T}$ac_header_compiler" >&6; }
15686 # Is the header present?
15687 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15688 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15689 cat >conftest.$ac_ext <<_ACEOF
15692 cat confdefs.h >>conftest.$ac_ext
15693 cat >>conftest.$ac_ext <<_ACEOF
15694 /* end confdefs.h. */
15695 #include <$ac_header>
15697 if { (ac_try="$ac_cpp conftest.$ac_ext"
15698 case "(($ac_try" in
15699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15705 grep -v '^ *+' conftest.er1 >conftest.err
15707 cat conftest.err >&5
15708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15709 (exit $ac_status); } >/dev/null; then
15710 if test -s conftest.err; then
15711 ac_cpp_err=$ac_c_preproc_warn_flag
15712 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15719 if test -z "$ac_cpp_err"; then
15720 ac_header_preproc=yes
15722 echo "$as_me: failed program was:" >&5
15723 sed 's/^/| /' conftest.$ac_ext >&5
15725 ac_header_preproc=no
15728 rm -f conftest.err conftest.$ac_ext
15729 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15730 echo "${ECHO_T}$ac_header_preproc" >&6; }
15732 # So? What about this header?
15733 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15735 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15736 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15737 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15738 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15739 ac_header_preproc=yes
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15743 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15745 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15746 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15747 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15748 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15749 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15751 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15752 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15753 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15755 ## ------------------------------------ ##
15756 ## Report this to http://llvm.org/bugs/ ##
15757 ## ------------------------------------ ##
15759 ) | sed "s/^/$as_me: WARNING: /" >&2
15762 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15763 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15764 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15765 echo $ECHO_N "(cached) $ECHO_C" >&6
15767 eval "$as_ac_Header=\$ac_header_preproc"
15769 ac_res=`eval echo '${'$as_ac_Header'}'`
15770 { echo "$as_me:$LINENO: result: $ac_res" >&5
15771 echo "${ECHO_T}$ac_res" >&6; }
15774 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15775 cat >>confdefs.h <<_ACEOF
15776 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15783 if test "$LLVM_ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
15785 for ac_header in pthread.h
15787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15792 echo $ECHO_N "(cached) $ECHO_C" >&6
15794 ac_res=`eval echo '${'$as_ac_Header'}'`
15795 { echo "$as_me:$LINENO: result: $ac_res" >&5
15796 echo "${ECHO_T}$ac_res" >&6; }
15798 # Is the header compilable?
15799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15801 cat >conftest.$ac_ext <<_ACEOF
15804 cat confdefs.h >>conftest.$ac_ext
15805 cat >>conftest.$ac_ext <<_ACEOF
15806 /* end confdefs.h. */
15807 $ac_includes_default
15808 #include <$ac_header>
15810 rm -f conftest.$ac_objext
15811 if { (ac_try="$ac_compile"
15812 case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_compile") 2>conftest.er1
15819 grep -v '^ *+' conftest.er1 >conftest.err
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15823 (exit $ac_status); } &&
15824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15825 { (case "(($ac_try" in
15826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15827 *) ac_try_echo=$ac_try;;
15829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15830 (eval "$ac_try") 2>&5
15832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15833 (exit $ac_status); }; } &&
15834 { ac_try='test -s conftest.$ac_objext'
15835 { (case "(($ac_try" in
15836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837 *) ac_try_echo=$ac_try;;
15839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15840 (eval "$ac_try") 2>&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); }; }; then
15844 ac_header_compiler=yes
15846 echo "$as_me: failed program was:" >&5
15847 sed 's/^/| /' conftest.$ac_ext >&5
15849 ac_header_compiler=no
15852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15853 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15854 echo "${ECHO_T}$ac_header_compiler" >&6; }
15856 # Is the header present?
15857 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15858 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15859 cat >conftest.$ac_ext <<_ACEOF
15862 cat confdefs.h >>conftest.$ac_ext
15863 cat >>conftest.$ac_ext <<_ACEOF
15864 /* end confdefs.h. */
15865 #include <$ac_header>
15867 if { (ac_try="$ac_cpp conftest.$ac_ext"
15868 case "(($ac_try" in
15869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15875 grep -v '^ *+' conftest.er1 >conftest.err
15877 cat conftest.err >&5
15878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15879 (exit $ac_status); } >/dev/null; then
15880 if test -s conftest.err; then
15881 ac_cpp_err=$ac_c_preproc_warn_flag
15882 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15889 if test -z "$ac_cpp_err"; then
15890 ac_header_preproc=yes
15892 echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15895 ac_header_preproc=no
15898 rm -f conftest.err conftest.$ac_ext
15899 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15900 echo "${ECHO_T}$ac_header_preproc" >&6; }
15902 # So? What about this header?
15903 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15905 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15906 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15907 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15908 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15909 ac_header_preproc=yes
15912 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15913 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15914 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15915 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15916 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15917 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15918 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15919 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15920 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15921 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15922 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15923 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15925 ## ------------------------------------ ##
15926 ## Report this to http://llvm.org/bugs/ ##
15927 ## ------------------------------------ ##
15929 ) | sed "s/^/$as_me: WARNING: /" >&2
15932 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15933 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15934 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15935 echo $ECHO_N "(cached) $ECHO_C" >&6
15937 eval "$as_ac_Header=\$ac_header_preproc"
15939 ac_res=`eval echo '${'$as_ac_Header'}'`
15940 { echo "$as_me:$LINENO: result: $ac_res" >&5
15941 echo "${ECHO_T}$ac_res" >&6; }
15944 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15945 cat >>confdefs.h <<_ACEOF
15946 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15962 if test "$llvm_cv_enable_libffi" = "yes" ; then
15965 for ac_header in ffi.h ffi/ffi.h
15967 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15968 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15969 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15971 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15972 echo $ECHO_N "(cached) $ECHO_C" >&6
15974 ac_res=`eval echo '${'$as_ac_Header'}'`
15975 { echo "$as_me:$LINENO: result: $ac_res" >&5
15976 echo "${ECHO_T}$ac_res" >&6; }
15978 # Is the header compilable?
15979 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15980 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15981 cat >conftest.$ac_ext <<_ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15987 $ac_includes_default
15988 #include <$ac_header>
15990 rm -f conftest.$ac_objext
15991 if { (ac_try="$ac_compile"
15992 case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15997 (eval "$ac_compile") 2>conftest.er1
15999 grep -v '^ *+' conftest.er1 >conftest.err
16001 cat conftest.err >&5
16002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16003 (exit $ac_status); } &&
16004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16005 { (case "(($ac_try" in
16006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16007 *) ac_try_echo=$ac_try;;
16009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16010 (eval "$ac_try") 2>&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); }; } &&
16014 { ac_try='test -s conftest.$ac_objext'
16015 { (case "(($ac_try" in
16016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16017 *) ac_try_echo=$ac_try;;
16019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020 (eval "$ac_try") 2>&5
16022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16023 (exit $ac_status); }; }; then
16024 ac_header_compiler=yes
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_header_compiler=no
16032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16033 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16034 echo "${ECHO_T}$ac_header_compiler" >&6; }
16036 # Is the header present?
16037 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16038 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16039 cat >conftest.$ac_ext <<_ACEOF
16042 cat confdefs.h >>conftest.$ac_ext
16043 cat >>conftest.$ac_ext <<_ACEOF
16044 /* end confdefs.h. */
16045 #include <$ac_header>
16047 if { (ac_try="$ac_cpp conftest.$ac_ext"
16048 case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16053 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16055 grep -v '^ *+' conftest.er1 >conftest.err
16057 cat conftest.err >&5
16058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16059 (exit $ac_status); } >/dev/null; then
16060 if test -s conftest.err; then
16061 ac_cpp_err=$ac_c_preproc_warn_flag
16062 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16069 if test -z "$ac_cpp_err"; then
16070 ac_header_preproc=yes
16072 echo "$as_me: failed program was:" >&5
16073 sed 's/^/| /' conftest.$ac_ext >&5
16075 ac_header_preproc=no
16078 rm -f conftest.err conftest.$ac_ext
16079 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16080 echo "${ECHO_T}$ac_header_preproc" >&6; }
16082 # So? What about this header?
16083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16085 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16086 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16089 ac_header_preproc=yes
16092 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16093 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16094 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16095 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16096 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16097 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16098 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16099 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16100 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16102 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16103 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16105 ## ------------------------------------ ##
16106 ## Report this to http://llvm.org/bugs/ ##
16107 ## ------------------------------------ ##
16109 ) | sed "s/^/$as_me: WARNING: /" >&2
16112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16115 echo $ECHO_N "(cached) $ECHO_C" >&6
16117 eval "$as_ac_Header=\$ac_header_preproc"
16119 ac_res=`eval echo '${'$as_ac_Header'}'`
16120 { echo "$as_me:$LINENO: result: $ac_res" >&5
16121 echo "${ECHO_T}$ac_res" >&6; }
16124 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16125 cat >>confdefs.h <<_ACEOF
16126 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16136 for ac_header in CrashReporterClient.h
16138 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16140 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16141 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16143 echo $ECHO_N "(cached) $ECHO_C" >&6
16145 ac_res=`eval echo '${'$as_ac_Header'}'`
16146 { echo "$as_me:$LINENO: result: $ac_res" >&5
16147 echo "${ECHO_T}$ac_res" >&6; }
16149 # Is the header compilable?
16150 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16151 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16152 cat >conftest.$ac_ext <<_ACEOF
16155 cat confdefs.h >>conftest.$ac_ext
16156 cat >>conftest.$ac_ext <<_ACEOF
16157 /* end confdefs.h. */
16158 $ac_includes_default
16159 #include <$ac_header>
16161 rm -f conftest.$ac_objext
16162 if { (ac_try="$ac_compile"
16163 case "(($ac_try" in
16164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16165 *) ac_try_echo=$ac_try;;
16167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16168 (eval "$ac_compile") 2>conftest.er1
16170 grep -v '^ *+' conftest.er1 >conftest.err
16172 cat conftest.err >&5
16173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16174 (exit $ac_status); } &&
16175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16176 { (case "(($ac_try" in
16177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16178 *) ac_try_echo=$ac_try;;
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_try") 2>&5
16183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16184 (exit $ac_status); }; } &&
16185 { ac_try='test -s conftest.$ac_objext'
16186 { (case "(($ac_try" in
16187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16188 *) ac_try_echo=$ac_try;;
16190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16191 (eval "$ac_try") 2>&5
16193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16194 (exit $ac_status); }; }; then
16195 ac_header_compiler=yes
16197 echo "$as_me: failed program was:" >&5
16198 sed 's/^/| /' conftest.$ac_ext >&5
16200 ac_header_compiler=no
16203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16205 echo "${ECHO_T}$ac_header_compiler" >&6; }
16207 # Is the header present?
16208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16210 cat >conftest.$ac_ext <<_ACEOF
16213 cat confdefs.h >>conftest.$ac_ext
16214 cat >>conftest.$ac_ext <<_ACEOF
16215 /* end confdefs.h. */
16216 #include <$ac_header>
16218 if { (ac_try="$ac_cpp conftest.$ac_ext"
16219 case "(($ac_try" in
16220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16221 *) ac_try_echo=$ac_try;;
16223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16226 grep -v '^ *+' conftest.er1 >conftest.err
16228 cat conftest.err >&5
16229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16230 (exit $ac_status); } >/dev/null; then
16231 if test -s conftest.err; then
16232 ac_cpp_err=$ac_c_preproc_warn_flag
16233 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16240 if test -z "$ac_cpp_err"; then
16241 ac_header_preproc=yes
16243 echo "$as_me: failed program was:" >&5
16244 sed 's/^/| /' conftest.$ac_ext >&5
16246 ac_header_preproc=no
16249 rm -f conftest.err conftest.$ac_ext
16250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16251 echo "${ECHO_T}$ac_header_preproc" >&6; }
16253 # So? What about this header?
16254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16256 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16257 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16258 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16260 ac_header_preproc=yes
16263 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16264 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16265 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16266 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16267 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16268 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16269 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16270 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16274 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16276 ## ------------------------------------ ##
16277 ## Report this to http://llvm.org/bugs/ ##
16278 ## ------------------------------------ ##
16280 ) | sed "s/^/$as_me: WARNING: /" >&2
16283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16285 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16286 echo $ECHO_N "(cached) $ECHO_C" >&6
16288 eval "$as_ac_Header=\$ac_header_preproc"
16290 ac_res=`eval echo '${'$as_ac_Header'}'`
16291 { echo "$as_me:$LINENO: result: $ac_res" >&5
16292 echo "${ECHO_T}$ac_res" >&6; }
16295 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16296 cat >>confdefs.h <<_ACEOF
16297 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16305 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
16306 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
16307 cat >conftest.$ac_ext <<_ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */
16313 extern const char *__crashreporter_info__;
16315 __crashreporter_info__ = "test";
16320 rm -f conftest.$ac_objext conftest$ac_exeext
16321 if { (ac_try="$ac_link"
16322 case "(($ac_try" in
16323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16324 *) ac_try_echo=$ac_try;;
16326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16327 (eval "$ac_link") 2>conftest.er1
16329 grep -v '^ *+' conftest.er1 >conftest.err
16331 cat conftest.err >&5
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); } &&
16334 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16335 { (case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_try") 2>&5
16342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16343 (exit $ac_status); }; } &&
16344 { ac_try='test -s conftest$ac_exeext'
16345 { (case "(($ac_try" in
16346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16347 *) ac_try_echo=$ac_try;;
16349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16350 (eval "$ac_try") 2>&5
16352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16353 (exit $ac_status); }; }; then
16354 { echo "$as_me:$LINENO: result: yes" >&5
16355 echo "${ECHO_T}yes" >&6; }
16357 cat >>confdefs.h <<\_ACEOF
16358 #define HAVE_CRASHREPORTER_INFO 1
16362 echo "$as_me: failed program was:" >&5
16363 sed 's/^/| /' conftest.$ac_ext >&5
16365 { echo "$as_me:$LINENO: result: no" >&5
16366 echo "${ECHO_T}no" >&6; }
16368 cat >>confdefs.h <<\_ACEOF
16369 #define HAVE_CRASHREPORTER_INFO 0
16374 rm -f core conftest.err conftest.$ac_objext \
16375 conftest$ac_exeext conftest.$ac_ext
16380 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16381 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16382 if test "${ac_cv_huge_val_sanity+set}" = set; then
16383 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 ac_cpp='$CXXCPP $CPPFLAGS'
16388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16392 ac_save_CXXFLAGS=$CXXFLAGS
16394 if test "$cross_compiling" = yes; then
16395 ac_cv_huge_val_sanity=yes
16397 cat >conftest.$ac_ext <<_ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16407 double x = HUGE_VAL; return x != x;
16412 rm -f conftest$ac_exeext
16413 if { (ac_try="$ac_link"
16414 case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_link") 2>&5
16421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16422 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16423 { (case "(($ac_try" in
16424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16425 *) ac_try_echo=$ac_try;;
16427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16428 (eval "$ac_try") 2>&5
16430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16431 (exit $ac_status); }; }; then
16432 ac_cv_huge_val_sanity=yes
16434 echo "$as_me: program exited with status $ac_status" >&5
16435 echo "$as_me: failed program was:" >&5
16436 sed 's/^/| /' conftest.$ac_ext >&5
16438 ( exit $ac_status )
16439 ac_cv_huge_val_sanity=no
16441 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16445 CXXFLAGS=$ac_save_CXXFLAGS
16447 ac_cpp='$CPP $CPPFLAGS'
16448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16454 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16455 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16456 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16459 { echo "$as_me:$LINENO: checking for pid_t" >&5
16460 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16461 if test "${ac_cv_type_pid_t+set}" = set; then
16462 echo $ECHO_N "(cached) $ECHO_C" >&6
16464 cat >conftest.$ac_ext <<_ACEOF
16467 cat confdefs.h >>conftest.$ac_ext
16468 cat >>conftest.$ac_ext <<_ACEOF
16469 /* end confdefs.h. */
16470 $ac_includes_default
16471 typedef pid_t ac__type_new_;
16475 if ((ac__type_new_ *) 0)
16477 if (sizeof (ac__type_new_))
16483 rm -f conftest.$ac_objext
16484 if { (ac_try="$ac_compile"
16485 case "(($ac_try" in
16486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16487 *) ac_try_echo=$ac_try;;
16489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16490 (eval "$ac_compile") 2>conftest.er1
16492 grep -v '^ *+' conftest.er1 >conftest.err
16494 cat conftest.err >&5
16495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16496 (exit $ac_status); } &&
16497 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16498 { (case "(($ac_try" in
16499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16500 *) ac_try_echo=$ac_try;;
16502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16503 (eval "$ac_try") 2>&5
16505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16506 (exit $ac_status); }; } &&
16507 { ac_try='test -s conftest.$ac_objext'
16508 { (case "(($ac_try" in
16509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16510 *) ac_try_echo=$ac_try;;
16512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16513 (eval "$ac_try") 2>&5
16515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16516 (exit $ac_status); }; }; then
16517 ac_cv_type_pid_t=yes
16519 echo "$as_me: failed program was:" >&5
16520 sed 's/^/| /' conftest.$ac_ext >&5
16522 ac_cv_type_pid_t=no
16525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16527 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16528 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16529 if test $ac_cv_type_pid_t = yes; then
16533 cat >>confdefs.h <<_ACEOF
16539 { echo "$as_me:$LINENO: checking for size_t" >&5
16540 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16541 if test "${ac_cv_type_size_t+set}" = set; then
16542 echo $ECHO_N "(cached) $ECHO_C" >&6
16544 cat >conftest.$ac_ext <<_ACEOF
16547 cat confdefs.h >>conftest.$ac_ext
16548 cat >>conftest.$ac_ext <<_ACEOF
16549 /* end confdefs.h. */
16550 $ac_includes_default
16551 typedef size_t ac__type_new_;
16555 if ((ac__type_new_ *) 0)
16557 if (sizeof (ac__type_new_))
16563 rm -f conftest.$ac_objext
16564 if { (ac_try="$ac_compile"
16565 case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_compile") 2>conftest.er1
16572 grep -v '^ *+' conftest.er1 >conftest.err
16574 cat conftest.err >&5
16575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16576 (exit $ac_status); } &&
16577 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16578 { (case "(($ac_try" in
16579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580 *) ac_try_echo=$ac_try;;
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583 (eval "$ac_try") 2>&5
16585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16586 (exit $ac_status); }; } &&
16587 { ac_try='test -s conftest.$ac_objext'
16588 { (case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_try") 2>&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); }; }; then
16597 ac_cv_type_size_t=yes
16599 echo "$as_me: failed program was:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 ac_cv_type_size_t=no
16605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16607 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16608 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16609 if test $ac_cv_type_size_t = yes; then
16613 cat >>confdefs.h <<_ACEOF
16614 #define size_t unsigned int
16620 cat >>confdefs.h <<_ACEOF
16621 #define RETSIGTYPE void
16624 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16625 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16626 if test "${ac_cv_struct_tm+set}" = set; then
16627 echo $ECHO_N "(cached) $ECHO_C" >&6
16629 cat >conftest.$ac_ext <<_ACEOF
16632 cat confdefs.h >>conftest.$ac_ext
16633 cat >>conftest.$ac_ext <<_ACEOF
16634 /* end confdefs.h. */
16635 #include <sys/types.h>
16641 struct tm *tp; tp->tm_sec;
16646 rm -f conftest.$ac_objext
16647 if { (ac_try="$ac_compile"
16648 case "(($ac_try" in
16649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16650 *) ac_try_echo=$ac_try;;
16652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16653 (eval "$ac_compile") 2>conftest.er1
16655 grep -v '^ *+' conftest.er1 >conftest.err
16657 cat conftest.err >&5
16658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16659 (exit $ac_status); } &&
16660 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16661 { (case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16666 (eval "$ac_try") 2>&5
16668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16669 (exit $ac_status); }; } &&
16670 { ac_try='test -s conftest.$ac_objext'
16671 { (case "(($ac_try" in
16672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673 *) ac_try_echo=$ac_try;;
16675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676 (eval "$ac_try") 2>&5
16678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); }; }; then
16680 ac_cv_struct_tm=time.h
16682 echo "$as_me: failed program was:" >&5
16683 sed 's/^/| /' conftest.$ac_ext >&5
16685 ac_cv_struct_tm=sys/time.h
16688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16690 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16691 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16692 if test $ac_cv_struct_tm = sys/time.h; then
16694 cat >>confdefs.h <<\_ACEOF
16695 #define TM_IN_SYS_TIME 1
16700 { echo "$as_me:$LINENO: checking for int64_t" >&5
16701 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16702 if test "${ac_cv_type_int64_t+set}" = set; then
16703 echo $ECHO_N "(cached) $ECHO_C" >&6
16705 cat >conftest.$ac_ext <<_ACEOF
16708 cat confdefs.h >>conftest.$ac_ext
16709 cat >>conftest.$ac_ext <<_ACEOF
16710 /* end confdefs.h. */
16711 $ac_includes_default
16712 typedef int64_t ac__type_new_;
16716 if ((ac__type_new_ *) 0)
16718 if (sizeof (ac__type_new_))
16724 rm -f conftest.$ac_objext
16725 if { (ac_try="$ac_compile"
16726 case "(($ac_try" in
16727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16728 *) ac_try_echo=$ac_try;;
16730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16731 (eval "$ac_compile") 2>conftest.er1
16733 grep -v '^ *+' conftest.er1 >conftest.err
16735 cat conftest.err >&5
16736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16737 (exit $ac_status); } &&
16738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16739 { (case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_try") 2>&5
16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16747 (exit $ac_status); }; } &&
16748 { ac_try='test -s conftest.$ac_objext'
16749 { (case "(($ac_try" in
16750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16751 *) ac_try_echo=$ac_try;;
16753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16754 (eval "$ac_try") 2>&5
16756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16757 (exit $ac_status); }; }; then
16758 ac_cv_type_int64_t=yes
16760 echo "$as_me: failed program was:" >&5
16761 sed 's/^/| /' conftest.$ac_ext >&5
16763 ac_cv_type_int64_t=no
16766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16768 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16769 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16770 if test $ac_cv_type_int64_t = yes; then
16772 cat >>confdefs.h <<_ACEOF
16773 #define HAVE_INT64_T 1
16778 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16779 echo "$as_me: error: Type int64_t required but not found" >&2;}
16780 { (exit 1); exit 1; }; }
16783 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16784 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16785 if test "${ac_cv_type_uint64_t+set}" = set; then
16786 echo $ECHO_N "(cached) $ECHO_C" >&6
16788 cat >conftest.$ac_ext <<_ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794 $ac_includes_default
16795 typedef uint64_t ac__type_new_;
16799 if ((ac__type_new_ *) 0)
16801 if (sizeof (ac__type_new_))
16807 rm -f conftest.$ac_objext
16808 if { (ac_try="$ac_compile"
16809 case "(($ac_try" in
16810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16811 *) ac_try_echo=$ac_try;;
16813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16814 (eval "$ac_compile") 2>conftest.er1
16816 grep -v '^ *+' conftest.er1 >conftest.err
16818 cat conftest.err >&5
16819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16820 (exit $ac_status); } &&
16821 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16822 { (case "(($ac_try" in
16823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16824 *) ac_try_echo=$ac_try;;
16826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16827 (eval "$ac_try") 2>&5
16829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16830 (exit $ac_status); }; } &&
16831 { ac_try='test -s conftest.$ac_objext'
16832 { (case "(($ac_try" in
16833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16834 *) ac_try_echo=$ac_try;;
16836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16837 (eval "$ac_try") 2>&5
16839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16840 (exit $ac_status); }; }; then
16841 ac_cv_type_uint64_t=yes
16843 echo "$as_me: failed program was:" >&5
16844 sed 's/^/| /' conftest.$ac_ext >&5
16846 ac_cv_type_uint64_t=no
16849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16851 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16852 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16853 if test $ac_cv_type_uint64_t = yes; then
16855 cat >>confdefs.h <<_ACEOF
16856 #define HAVE_UINT64_T 1
16861 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16862 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16863 if test "${ac_cv_type_u_int64_t+set}" = set; then
16864 echo $ECHO_N "(cached) $ECHO_C" >&6
16866 cat >conftest.$ac_ext <<_ACEOF
16869 cat confdefs.h >>conftest.$ac_ext
16870 cat >>conftest.$ac_ext <<_ACEOF
16871 /* end confdefs.h. */
16872 $ac_includes_default
16873 typedef u_int64_t ac__type_new_;
16877 if ((ac__type_new_ *) 0)
16879 if (sizeof (ac__type_new_))
16885 rm -f conftest.$ac_objext
16886 if { (ac_try="$ac_compile"
16887 case "(($ac_try" in
16888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16889 *) ac_try_echo=$ac_try;;
16891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16892 (eval "$ac_compile") 2>conftest.er1
16894 grep -v '^ *+' conftest.er1 >conftest.err
16896 cat conftest.err >&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); } &&
16899 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16900 { (case "(($ac_try" in
16901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16902 *) ac_try_echo=$ac_try;;
16904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16905 (eval "$ac_try") 2>&5
16907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16908 (exit $ac_status); }; } &&
16909 { ac_try='test -s conftest.$ac_objext'
16910 { (case "(($ac_try" in
16911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16912 *) ac_try_echo=$ac_try;;
16914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16915 (eval "$ac_try") 2>&5
16917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16918 (exit $ac_status); }; }; then
16919 ac_cv_type_u_int64_t=yes
16921 echo "$as_me: failed program was:" >&5
16922 sed 's/^/| /' conftest.$ac_ext >&5
16924 ac_cv_type_u_int64_t=no
16927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16929 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
16930 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
16931 if test $ac_cv_type_u_int64_t = yes; then
16933 cat >>confdefs.h <<_ACEOF
16934 #define HAVE_U_INT64_T 1
16939 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
16940 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
16941 { (exit 1); exit 1; }; }
16955 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
16957 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16960 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16961 echo $ECHO_N "(cached) $ECHO_C" >&6
16963 cat >conftest.$ac_ext <<_ACEOF
16966 cat confdefs.h >>conftest.$ac_ext
16967 cat >>conftest.$ac_ext <<_ACEOF
16968 /* end confdefs.h. */
16969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16971 #define $ac_func innocuous_$ac_func
16973 /* System header to define __stub macros and hopefully few prototypes,
16974 which can conflict with char $ac_func (); below.
16975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16976 <limits.h> exists even on freestanding compilers. */
16979 # include <limits.h>
16981 # include <assert.h>
16986 /* Override any GCC internal prototype to avoid an error.
16987 Use char because int might match the return type of a GCC
16988 builtin and then its argument prototype would still apply. */
16993 /* The GNU C library defines this for functions which it implements
16994 to always fail with ENOSYS. Some functions are actually named
16995 something starting with __ and the normal name is an alias. */
16996 #if defined __stub_$ac_func || defined __stub___$ac_func
17003 return $ac_func ();
17008 rm -f conftest.$ac_objext conftest$ac_exeext
17009 if { (ac_try="$ac_link"
17010 case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_link") 2>conftest.er1
17017 grep -v '^ *+' conftest.er1 >conftest.err
17019 cat conftest.err >&5
17020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17021 (exit $ac_status); } &&
17022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17023 { (case "(($ac_try" in
17024 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17025 *) ac_try_echo=$ac_try;;
17027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17028 (eval "$ac_try") 2>&5
17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17031 (exit $ac_status); }; } &&
17032 { ac_try='test -s conftest$ac_exeext'
17033 { (case "(($ac_try" in
17034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17035 *) ac_try_echo=$ac_try;;
17037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17038 (eval "$ac_try") 2>&5
17040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17041 (exit $ac_status); }; }; then
17042 eval "$as_ac_var=yes"
17044 echo "$as_me: failed program was:" >&5
17045 sed 's/^/| /' conftest.$ac_ext >&5
17047 eval "$as_ac_var=no"
17050 rm -f core conftest.err conftest.$ac_objext \
17051 conftest$ac_exeext conftest.$ac_ext
17053 ac_res=`eval echo '${'$as_ac_var'}'`
17054 { echo "$as_me:$LINENO: result: $ac_res" >&5
17055 echo "${ECHO_T}$ac_res" >&6; }
17056 if test `eval echo '${'$as_ac_var'}'` = yes; then
17057 cat >>confdefs.h <<_ACEOF
17058 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17068 for ac_func in powf fmodf strtof round
17070 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17071 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17072 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17073 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17074 echo $ECHO_N "(cached) $ECHO_C" >&6
17076 cat >conftest.$ac_ext <<_ACEOF
17079 cat confdefs.h >>conftest.$ac_ext
17080 cat >>conftest.$ac_ext <<_ACEOF
17081 /* end confdefs.h. */
17082 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17084 #define $ac_func innocuous_$ac_func
17086 /* System header to define __stub macros and hopefully few prototypes,
17087 which can conflict with char $ac_func (); below.
17088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17089 <limits.h> exists even on freestanding compilers. */
17092 # include <limits.h>
17094 # include <assert.h>
17099 /* Override any GCC internal prototype to avoid an error.
17100 Use char because int might match the return type of a GCC
17101 builtin and then its argument prototype would still apply. */
17106 /* The GNU C library defines this for functions which it implements
17107 to always fail with ENOSYS. Some functions are actually named
17108 something starting with __ and the normal name is an alias. */
17109 #if defined __stub_$ac_func || defined __stub___$ac_func
17116 return $ac_func ();
17121 rm -f conftest.$ac_objext conftest$ac_exeext
17122 if { (ac_try="$ac_link"
17123 case "(($ac_try" in
17124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17125 *) ac_try_echo=$ac_try;;
17127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17128 (eval "$ac_link") 2>conftest.er1
17130 grep -v '^ *+' conftest.er1 >conftest.err
17132 cat conftest.err >&5
17133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17134 (exit $ac_status); } &&
17135 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17136 { (case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17141 (eval "$ac_try") 2>&5
17143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17144 (exit $ac_status); }; } &&
17145 { ac_try='test -s conftest$ac_exeext'
17146 { (case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17151 (eval "$ac_try") 2>&5
17153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17154 (exit $ac_status); }; }; then
17155 eval "$as_ac_var=yes"
17157 echo "$as_me: failed program was:" >&5
17158 sed 's/^/| /' conftest.$ac_ext >&5
17160 eval "$as_ac_var=no"
17163 rm -f core conftest.err conftest.$ac_objext \
17164 conftest$ac_exeext conftest.$ac_ext
17166 ac_res=`eval echo '${'$as_ac_var'}'`
17167 { echo "$as_me:$LINENO: result: $ac_res" >&5
17168 echo "${ECHO_T}$ac_res" >&6; }
17169 if test `eval echo '${'$as_ac_var'}'` = yes; then
17170 cat >>confdefs.h <<_ACEOF
17171 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17182 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17184 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17185 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17186 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17187 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17188 echo $ECHO_N "(cached) $ECHO_C" >&6
17190 cat >conftest.$ac_ext <<_ACEOF
17193 cat confdefs.h >>conftest.$ac_ext
17194 cat >>conftest.$ac_ext <<_ACEOF
17195 /* end confdefs.h. */
17196 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17198 #define $ac_func innocuous_$ac_func
17200 /* System header to define __stub macros and hopefully few prototypes,
17201 which can conflict with char $ac_func (); below.
17202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17203 <limits.h> exists even on freestanding compilers. */
17206 # include <limits.h>
17208 # include <assert.h>
17213 /* Override any GCC internal prototype to avoid an error.
17214 Use char because int might match the return type of a GCC
17215 builtin and then its argument prototype would still apply. */
17220 /* The GNU C library defines this for functions which it implements
17221 to always fail with ENOSYS. Some functions are actually named
17222 something starting with __ and the normal name is an alias. */
17223 #if defined __stub_$ac_func || defined __stub___$ac_func
17230 return $ac_func ();
17235 rm -f conftest.$ac_objext conftest$ac_exeext
17236 if { (ac_try="$ac_link"
17237 case "(($ac_try" in
17238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17239 *) ac_try_echo=$ac_try;;
17241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17242 (eval "$ac_link") 2>conftest.er1
17244 grep -v '^ *+' conftest.er1 >conftest.err
17246 cat conftest.err >&5
17247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17248 (exit $ac_status); } &&
17249 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17250 { (case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_try") 2>&5
17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17258 (exit $ac_status); }; } &&
17259 { ac_try='test -s conftest$ac_exeext'
17260 { (case "(($ac_try" in
17261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17262 *) ac_try_echo=$ac_try;;
17264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17265 (eval "$ac_try") 2>&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); }; }; then
17269 eval "$as_ac_var=yes"
17271 echo "$as_me: failed program was:" >&5
17272 sed 's/^/| /' conftest.$ac_ext >&5
17274 eval "$as_ac_var=no"
17277 rm -f core conftest.err conftest.$ac_objext \
17278 conftest$ac_exeext conftest.$ac_ext
17280 ac_res=`eval echo '${'$as_ac_var'}'`
17281 { echo "$as_me:$LINENO: result: $ac_res" >&5
17282 echo "${ECHO_T}$ac_res" >&6; }
17283 if test `eval echo '${'$as_ac_var'}'` = yes; then
17284 cat >>confdefs.h <<_ACEOF
17285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17294 for ac_func in isatty mkdtemp mkstemp
17296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 cat >conftest.$ac_ext <<_ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h. */
17308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17310 #define $ac_func innocuous_$ac_func
17312 /* System header to define __stub macros and hopefully few prototypes,
17313 which can conflict with char $ac_func (); below.
17314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17315 <limits.h> exists even on freestanding compilers. */
17318 # include <limits.h>
17320 # include <assert.h>
17325 /* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17332 /* The GNU C library defines this for functions which it implements
17333 to always fail with ENOSYS. Some functions are actually named
17334 something starting with __ and the normal name is an alias. */
17335 #if defined __stub_$ac_func || defined __stub___$ac_func
17342 return $ac_func ();
17347 rm -f conftest.$ac_objext conftest$ac_exeext
17348 if { (ac_try="$ac_link"
17349 case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_link") 2>conftest.er1
17356 grep -v '^ *+' conftest.er1 >conftest.err
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17362 { (case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_try") 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest$ac_exeext'
17372 { (case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_try") 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 eval "$as_ac_var=yes"
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 eval "$as_ac_var=no"
17389 rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17392 ac_res=`eval echo '${'$as_ac_var'}'`
17393 { echo "$as_me:$LINENO: result: $ac_res" >&5
17394 echo "${ECHO_T}$ac_res" >&6; }
17395 if test `eval echo '${'$as_ac_var'}'` = yes; then
17396 cat >>confdefs.h <<_ACEOF
17397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17410 for ac_func in mktemp posix_spawn pread realpath sbrk setrlimit strdup
17412 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17413 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17414 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17415 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17416 echo $ECHO_N "(cached) $ECHO_C" >&6
17418 cat >conftest.$ac_ext <<_ACEOF
17421 cat confdefs.h >>conftest.$ac_ext
17422 cat >>conftest.$ac_ext <<_ACEOF
17423 /* end confdefs.h. */
17424 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17425 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17426 #define $ac_func innocuous_$ac_func
17428 /* System header to define __stub macros and hopefully few prototypes,
17429 which can conflict with char $ac_func (); below.
17430 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17431 <limits.h> exists even on freestanding compilers. */
17434 # include <limits.h>
17436 # include <assert.h>
17441 /* Override any GCC internal prototype to avoid an error.
17442 Use char because int might match the return type of a GCC
17443 builtin and then its argument prototype would still apply. */
17448 /* The GNU C library defines this for functions which it implements
17449 to always fail with ENOSYS. Some functions are actually named
17450 something starting with __ and the normal name is an alias. */
17451 #if defined __stub_$ac_func || defined __stub___$ac_func
17458 return $ac_func ();
17463 rm -f conftest.$ac_objext conftest$ac_exeext
17464 if { (ac_try="$ac_link"
17465 case "(($ac_try" in
17466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17467 *) ac_try_echo=$ac_try;;
17469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17470 (eval "$ac_link") 2>conftest.er1
17472 grep -v '^ *+' conftest.er1 >conftest.err
17474 cat conftest.err >&5
17475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17476 (exit $ac_status); } &&
17477 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17478 { (case "(($ac_try" in
17479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17480 *) ac_try_echo=$ac_try;;
17482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17483 (eval "$ac_try") 2>&5
17485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17486 (exit $ac_status); }; } &&
17487 { ac_try='test -s conftest$ac_exeext'
17488 { (case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17493 (eval "$ac_try") 2>&5
17495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17496 (exit $ac_status); }; }; then
17497 eval "$as_ac_var=yes"
17499 echo "$as_me: failed program was:" >&5
17500 sed 's/^/| /' conftest.$ac_ext >&5
17502 eval "$as_ac_var=no"
17505 rm -f core conftest.err conftest.$ac_objext \
17506 conftest$ac_exeext conftest.$ac_ext
17508 ac_res=`eval echo '${'$as_ac_var'}'`
17509 { echo "$as_me:$LINENO: result: $ac_res" >&5
17510 echo "${ECHO_T}$ac_res" >&6; }
17511 if test `eval echo '${'$as_ac_var'}'` = yes; then
17512 cat >>confdefs.h <<_ACEOF
17513 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17522 for ac_func in strerror strerror_r setenv
17524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17530 cat >conftest.$ac_ext <<_ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17538 #define $ac_func innocuous_$ac_func
17540 /* System header to define __stub macros and hopefully few prototypes,
17541 which can conflict with char $ac_func (); below.
17542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17543 <limits.h> exists even on freestanding compilers. */
17546 # include <limits.h>
17548 # include <assert.h>
17553 /* Override any GCC internal prototype to avoid an error.
17554 Use char because int might match the return type of a GCC
17555 builtin and then its argument prototype would still apply. */
17560 /* The GNU C library defines this for functions which it implements
17561 to always fail with ENOSYS. Some functions are actually named
17562 something starting with __ and the normal name is an alias. */
17563 #if defined __stub_$ac_func || defined __stub___$ac_func
17570 return $ac_func ();
17575 rm -f conftest.$ac_objext conftest$ac_exeext
17576 if { (ac_try="$ac_link"
17577 case "(($ac_try" in
17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579 *) ac_try_echo=$ac_try;;
17581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582 (eval "$ac_link") 2>conftest.er1
17584 grep -v '^ *+' conftest.er1 >conftest.err
17586 cat conftest.err >&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } &&
17589 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17590 { (case "(($ac_try" in
17591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17592 *) ac_try_echo=$ac_try;;
17594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17595 (eval "$ac_try") 2>&5
17597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17598 (exit $ac_status); }; } &&
17599 { ac_try='test -s conftest$ac_exeext'
17600 { (case "(($ac_try" in
17601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17602 *) ac_try_echo=$ac_try;;
17604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17605 (eval "$ac_try") 2>&5
17607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17608 (exit $ac_status); }; }; then
17609 eval "$as_ac_var=yes"
17611 echo "$as_me: failed program was:" >&5
17612 sed 's/^/| /' conftest.$ac_ext >&5
17614 eval "$as_ac_var=no"
17617 rm -f core conftest.err conftest.$ac_objext \
17618 conftest$ac_exeext conftest.$ac_ext
17620 ac_res=`eval echo '${'$as_ac_var'}'`
17621 { echo "$as_me:$LINENO: result: $ac_res" >&5
17622 echo "${ECHO_T}$ac_res" >&6; }
17623 if test `eval echo '${'$as_ac_var'}'` = yes; then
17624 cat >>confdefs.h <<_ACEOF
17625 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17635 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17641 echo $ECHO_N "(cached) $ECHO_C" >&6
17643 cat >conftest.$ac_ext <<_ACEOF
17646 cat confdefs.h >>conftest.$ac_ext
17647 cat >>conftest.$ac_ext <<_ACEOF
17648 /* end confdefs.h. */
17649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17651 #define $ac_func innocuous_$ac_func
17653 /* System header to define __stub macros and hopefully few prototypes,
17654 which can conflict with char $ac_func (); below.
17655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17656 <limits.h> exists even on freestanding compilers. */
17659 # include <limits.h>
17661 # include <assert.h>
17666 /* Override any GCC internal prototype to avoid an error.
17667 Use char because int might match the return type of a GCC
17668 builtin and then its argument prototype would still apply. */
17673 /* The GNU C library defines this for functions which it implements
17674 to always fail with ENOSYS. Some functions are actually named
17675 something starting with __ and the normal name is an alias. */
17676 #if defined __stub_$ac_func || defined __stub___$ac_func
17683 return $ac_func ();
17688 rm -f conftest.$ac_objext conftest$ac_exeext
17689 if { (ac_try="$ac_link"
17690 case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_link") 2>conftest.er1
17697 grep -v '^ *+' conftest.er1 >conftest.err
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17701 (exit $ac_status); } &&
17702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17703 { (case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_try") 2>&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); }; } &&
17712 { ac_try='test -s conftest$ac_exeext'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_try") 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; }; then
17722 eval "$as_ac_var=yes"
17724 echo "$as_me: failed program was:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 eval "$as_ac_var=no"
17730 rm -f core conftest.err conftest.$ac_objext \
17731 conftest$ac_exeext conftest.$ac_ext
17733 ac_res=`eval echo '${'$as_ac_var'}'`
17734 { echo "$as_me:$LINENO: result: $ac_res" >&5
17735 echo "${ECHO_T}$ac_res" >&6; }
17736 if test `eval echo '${'$as_ac_var'}'` = yes; then
17737 cat >>confdefs.h <<_ACEOF
17738 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17749 for ac_func in setjmp longjmp sigsetjmp siglongjmp writev
17751 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17752 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17753 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17754 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17755 echo $ECHO_N "(cached) $ECHO_C" >&6
17757 cat >conftest.$ac_ext <<_ACEOF
17760 cat confdefs.h >>conftest.$ac_ext
17761 cat >>conftest.$ac_ext <<_ACEOF
17762 /* end confdefs.h. */
17763 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17764 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17765 #define $ac_func innocuous_$ac_func
17767 /* System header to define __stub macros and hopefully few prototypes,
17768 which can conflict with char $ac_func (); below.
17769 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17770 <limits.h> exists even on freestanding compilers. */
17773 # include <limits.h>
17775 # include <assert.h>
17780 /* Override any GCC internal prototype to avoid an error.
17781 Use char because int might match the return type of a GCC
17782 builtin and then its argument prototype would still apply. */
17787 /* The GNU C library defines this for functions which it implements
17788 to always fail with ENOSYS. Some functions are actually named
17789 something starting with __ and the normal name is an alias. */
17790 #if defined __stub_$ac_func || defined __stub___$ac_func
17797 return $ac_func ();
17802 rm -f conftest.$ac_objext conftest$ac_exeext
17803 if { (ac_try="$ac_link"
17804 case "(($ac_try" in
17805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17806 *) ac_try_echo=$ac_try;;
17808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17809 (eval "$ac_link") 2>conftest.er1
17811 grep -v '^ *+' conftest.er1 >conftest.err
17813 cat conftest.err >&5
17814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17815 (exit $ac_status); } &&
17816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17817 { (case "(($ac_try" in
17818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17819 *) ac_try_echo=$ac_try;;
17821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17822 (eval "$ac_try") 2>&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); }; } &&
17826 { ac_try='test -s conftest$ac_exeext'
17827 { (case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_try") 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; }; then
17836 eval "$as_ac_var=yes"
17838 echo "$as_me: failed program was:" >&5
17839 sed 's/^/| /' conftest.$ac_ext >&5
17841 eval "$as_ac_var=no"
17844 rm -f core conftest.err conftest.$ac_objext \
17845 conftest$ac_exeext conftest.$ac_ext
17847 ac_res=`eval echo '${'$as_ac_var'}'`
17848 { echo "$as_me:$LINENO: result: $ac_res" >&5
17849 echo "${ECHO_T}$ac_res" >&6; }
17850 if test `eval echo '${'$as_ac_var'}'` = yes; then
17851 cat >>confdefs.h <<_ACEOF
17852 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17858 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17859 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17860 if test "${llvm_cv_c_printf_a+set}" = set; then
17861 echo $ECHO_N "(cached) $ECHO_C" >&6
17864 ac_cpp='$CPP $CPPFLAGS'
17865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17869 if test "$cross_compiling" = yes; then
17870 llvmac_cv_c_printf_a=no
17872 cat >conftest.$ac_ext <<_ACEOF
17876 cat confdefs.h >>conftest.$ac_ext
17877 cat >>conftest.$ac_ext <<_ACEOF
17878 /* end confdefs.h. */
17881 #include <stdlib.h>
17887 volatile double A, B;
17891 sprintf(Buffer, "%a", A);
17895 if (A != 0x1.999999999999ap-4)
17902 rm -f conftest$ac_exeext
17903 if { (ac_try="$ac_link"
17904 case "(($ac_try" in
17905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906 *) ac_try_echo=$ac_try;;
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909 (eval "$ac_link") 2>&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17913 { (case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_try") 2>&5
17920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17921 (exit $ac_status); }; }; then
17922 llvm_cv_c_printf_a=yes
17924 echo "$as_me: program exited with status $ac_status" >&5
17925 echo "$as_me: failed program was:" >&5
17926 sed 's/^/| /' conftest.$ac_ext >&5
17928 ( exit $ac_status )
17929 llvmac_cv_c_printf_a=no
17931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17936 ac_cpp='$CPP $CPPFLAGS'
17937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17942 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
17943 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
17944 if test "$llvm_cv_c_printf_a" = "yes"; then
17946 cat >>confdefs.h <<\_ACEOF
17947 #define HAVE_PRINTF_A 1
17953 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
17954 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
17955 if test "${ac_cv_func_rand48+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17959 ac_cpp='$CXXCPP $CPPFLAGS'
17960 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17961 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17962 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17964 cat >conftest.$ac_ext <<_ACEOF
17967 cat confdefs.h >>conftest.$ac_ext
17968 cat >>conftest.$ac_ext <<_ACEOF
17969 /* end confdefs.h. */
17970 #include <stdlib.h>
17974 srand48(0);lrand48();drand48();
17979 rm -f conftest.$ac_objext
17980 if { (ac_try="$ac_compile"
17981 case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_compile") 2>conftest.er1
17988 grep -v '^ *+' conftest.er1 >conftest.err
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); } &&
17993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
17994 { (case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_try") 2>&5
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; } &&
18003 { ac_try='test -s conftest.$ac_objext'
18004 { (case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_try") 2>&5
18011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18012 (exit $ac_status); }; }; then
18013 ac_cv_func_rand48=yes
18015 echo "$as_me: failed program was:" >&5
18016 sed 's/^/| /' conftest.$ac_ext >&5
18018 ac_cv_func_rand48=no
18021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023 ac_cpp='$CPP $CPPFLAGS'
18024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18029 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18030 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18032 if test "$ac_cv_func_rand48" = "yes" ; then
18034 cat >>confdefs.h <<\_ACEOF
18035 #define HAVE_RAND48 1
18041 { echo "$as_me:$LINENO: checking whether strerror_s is declared" >&5
18042 echo $ECHO_N "checking whether strerror_s is declared... $ECHO_C" >&6; }
18043 if test "${ac_cv_have_decl_strerror_s+set}" = set; then
18044 echo $ECHO_N "(cached) $ECHO_C" >&6
18046 cat >conftest.$ac_ext <<_ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 $ac_includes_default
18057 char *p = (char *) strerror_s;
18065 rm -f conftest.$ac_objext
18066 if { (ac_try="$ac_compile"
18067 case "(($ac_try" in
18068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18069 *) ac_try_echo=$ac_try;;
18071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18072 (eval "$ac_compile") 2>conftest.er1
18074 grep -v '^ *+' conftest.er1 >conftest.err
18076 cat conftest.err >&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); } &&
18079 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18080 { (case "(($ac_try" in
18081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18082 *) ac_try_echo=$ac_try;;
18084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18085 (eval "$ac_try") 2>&5
18087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18088 (exit $ac_status); }; } &&
18089 { ac_try='test -s conftest.$ac_objext'
18090 { (case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_try") 2>&5
18097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18098 (exit $ac_status); }; }; then
18099 ac_cv_have_decl_strerror_s=yes
18101 echo "$as_me: failed program was:" >&5
18102 sed 's/^/| /' conftest.$ac_ext >&5
18104 ac_cv_have_decl_strerror_s=no
18107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18109 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_strerror_s" >&5
18110 echo "${ECHO_T}$ac_cv_have_decl_strerror_s" >&6; }
18111 if test $ac_cv_have_decl_strerror_s = yes; then
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_DECL_STRERROR_S 1
18119 cat >>confdefs.h <<_ACEOF
18120 #define HAVE_DECL_STRERROR_S 0
18128 if test "$llvm_cv_os_type" = "MingW" ; then
18129 { echo "$as_me:$LINENO: checking for _alloca in -lgcc" >&5
18130 echo $ECHO_N "checking for _alloca in -lgcc... $ECHO_C" >&6; }
18131 if test "${ac_cv_lib_gcc__alloca+set}" = set; then
18132 echo $ECHO_N "(cached) $ECHO_C" >&6
18134 ac_check_lib_save_LIBS=$LIBS
18136 cat >conftest.$ac_ext <<_ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18143 /* Override any GCC internal prototype to avoid an error.
18144 Use char because int might match the return type of a GCC
18145 builtin and then its argument prototype would still apply. */
18158 rm -f conftest.$ac_objext conftest$ac_exeext
18159 if { (ac_try="$ac_link"
18160 case "(($ac_try" in
18161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18162 *) ac_try_echo=$ac_try;;
18164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18165 (eval "$ac_link") 2>conftest.er1
18167 grep -v '^ *+' conftest.er1 >conftest.err
18169 cat conftest.err >&5
18170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18171 (exit $ac_status); } &&
18172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18173 { (case "(($ac_try" in
18174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18175 *) ac_try_echo=$ac_try;;
18177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18178 (eval "$ac_try") 2>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); }; } &&
18182 { ac_try='test -s conftest$ac_exeext'
18183 { (case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_try") 2>&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; }; then
18192 ac_cv_lib_gcc__alloca=yes
18194 echo "$as_me: failed program was:" >&5
18195 sed 's/^/| /' conftest.$ac_ext >&5
18197 ac_cv_lib_gcc__alloca=no
18200 rm -f core conftest.err conftest.$ac_objext \
18201 conftest$ac_exeext conftest.$ac_ext
18202 LIBS=$ac_check_lib_save_LIBS
18204 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc__alloca" >&5
18205 echo "${ECHO_T}$ac_cv_lib_gcc__alloca" >&6; }
18206 if test $ac_cv_lib_gcc__alloca = yes; then
18208 cat >>confdefs.h <<\_ACEOF
18209 #define HAVE__ALLOCA 1
18214 { echo "$as_me:$LINENO: checking for __alloca in -lgcc" >&5
18215 echo $ECHO_N "checking for __alloca in -lgcc... $ECHO_C" >&6; }
18216 if test "${ac_cv_lib_gcc___alloca+set}" = set; then
18217 echo $ECHO_N "(cached) $ECHO_C" >&6
18219 ac_check_lib_save_LIBS=$LIBS
18221 cat >conftest.$ac_ext <<_ACEOF
18224 cat confdefs.h >>conftest.$ac_ext
18225 cat >>conftest.$ac_ext <<_ACEOF
18226 /* end confdefs.h. */
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18238 return __alloca ();
18243 rm -f conftest.$ac_objext conftest$ac_exeext
18244 if { (ac_try="$ac_link"
18245 case "(($ac_try" in
18246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18247 *) ac_try_echo=$ac_try;;
18249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18250 (eval "$ac_link") 2>conftest.er1
18252 grep -v '^ *+' conftest.er1 >conftest.err
18254 cat conftest.err >&5
18255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18256 (exit $ac_status); } &&
18257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18258 { (case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_try") 2>&5
18265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18266 (exit $ac_status); }; } &&
18267 { ac_try='test -s conftest$ac_exeext'
18268 { (case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_try") 2>&5
18275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18276 (exit $ac_status); }; }; then
18277 ac_cv_lib_gcc___alloca=yes
18279 echo "$as_me: failed program was:" >&5
18280 sed 's/^/| /' conftest.$ac_ext >&5
18282 ac_cv_lib_gcc___alloca=no
18285 rm -f core conftest.err conftest.$ac_objext \
18286 conftest$ac_exeext conftest.$ac_ext
18287 LIBS=$ac_check_lib_save_LIBS
18289 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___alloca" >&5
18290 echo "${ECHO_T}$ac_cv_lib_gcc___alloca" >&6; }
18291 if test $ac_cv_lib_gcc___alloca = yes; then
18293 cat >>confdefs.h <<\_ACEOF
18294 #define HAVE___ALLOCA 1
18299 { echo "$as_me:$LINENO: checking for __chkstk in -lgcc" >&5
18300 echo $ECHO_N "checking for __chkstk in -lgcc... $ECHO_C" >&6; }
18301 if test "${ac_cv_lib_gcc___chkstk+set}" = set; then
18302 echo $ECHO_N "(cached) $ECHO_C" >&6
18304 ac_check_lib_save_LIBS=$LIBS
18306 cat >conftest.$ac_ext <<_ACEOF
18309 cat confdefs.h >>conftest.$ac_ext
18310 cat >>conftest.$ac_ext <<_ACEOF
18311 /* end confdefs.h. */
18313 /* Override any GCC internal prototype to avoid an error.
18314 Use char because int might match the return type of a GCC
18315 builtin and then its argument prototype would still apply. */
18323 return __chkstk ();
18328 rm -f conftest.$ac_objext conftest$ac_exeext
18329 if { (ac_try="$ac_link"
18330 case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_link") 2>conftest.er1
18337 grep -v '^ *+' conftest.er1 >conftest.err
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18343 { (case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_try") 2>&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest$ac_exeext'
18353 { (case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_try") 2>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 ac_cv_lib_gcc___chkstk=yes
18364 echo "$as_me: failed program was:" >&5
18365 sed 's/^/| /' conftest.$ac_ext >&5
18367 ac_cv_lib_gcc___chkstk=no
18370 rm -f core conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18374 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___chkstk" >&5
18375 echo "${ECHO_T}$ac_cv_lib_gcc___chkstk" >&6; }
18376 if test $ac_cv_lib_gcc___chkstk = yes; then
18378 cat >>confdefs.h <<\_ACEOF
18379 #define HAVE___CHKSTK 1
18384 { echo "$as_me:$LINENO: checking for ___chkstk in -lgcc" >&5
18385 echo $ECHO_N "checking for ___chkstk in -lgcc... $ECHO_C" >&6; }
18386 if test "${ac_cv_lib_gcc____chkstk+set}" = set; then
18387 echo $ECHO_N "(cached) $ECHO_C" >&6
18389 ac_check_lib_save_LIBS=$LIBS
18391 cat >conftest.$ac_ext <<_ACEOF
18394 cat confdefs.h >>conftest.$ac_ext
18395 cat >>conftest.$ac_ext <<_ACEOF
18396 /* end confdefs.h. */
18398 /* Override any GCC internal prototype to avoid an error.
18399 Use char because int might match the return type of a GCC
18400 builtin and then its argument prototype would still apply. */
18408 return ___chkstk ();
18413 rm -f conftest.$ac_objext conftest$ac_exeext
18414 if { (ac_try="$ac_link"
18415 case "(($ac_try" in
18416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18417 *) ac_try_echo=$ac_try;;
18419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18420 (eval "$ac_link") 2>conftest.er1
18422 grep -v '^ *+' conftest.er1 >conftest.err
18424 cat conftest.err >&5
18425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18426 (exit $ac_status); } &&
18427 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18428 { (case "(($ac_try" in
18429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18430 *) ac_try_echo=$ac_try;;
18432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18433 (eval "$ac_try") 2>&5
18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18436 (exit $ac_status); }; } &&
18437 { ac_try='test -s conftest$ac_exeext'
18438 { (case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_try") 2>&5
18445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); }; }; then
18447 ac_cv_lib_gcc____chkstk=yes
18449 echo "$as_me: failed program was:" >&5
18450 sed 's/^/| /' conftest.$ac_ext >&5
18452 ac_cv_lib_gcc____chkstk=no
18455 rm -f core conftest.err conftest.$ac_objext \
18456 conftest$ac_exeext conftest.$ac_ext
18457 LIBS=$ac_check_lib_save_LIBS
18459 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc____chkstk" >&5
18460 echo "${ECHO_T}$ac_cv_lib_gcc____chkstk" >&6; }
18461 if test $ac_cv_lib_gcc____chkstk = yes; then
18463 cat >>confdefs.h <<\_ACEOF
18464 #define HAVE____CHKSTK 1
18470 { echo "$as_me:$LINENO: checking for __ashldi3 in -lgcc" >&5
18471 echo $ECHO_N "checking for __ashldi3 in -lgcc... $ECHO_C" >&6; }
18472 if test "${ac_cv_lib_gcc___ashldi3+set}" = set; then
18473 echo $ECHO_N "(cached) $ECHO_C" >&6
18475 ac_check_lib_save_LIBS=$LIBS
18477 cat >conftest.$ac_ext <<_ACEOF
18480 cat confdefs.h >>conftest.$ac_ext
18481 cat >>conftest.$ac_ext <<_ACEOF
18482 /* end confdefs.h. */
18484 /* Override any GCC internal prototype to avoid an error.
18485 Use char because int might match the return type of a GCC
18486 builtin and then its argument prototype would still apply. */
18494 return __ashldi3 ();
18499 rm -f conftest.$ac_objext conftest$ac_exeext
18500 if { (ac_try="$ac_link"
18501 case "(($ac_try" in
18502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18503 *) ac_try_echo=$ac_try;;
18505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18506 (eval "$ac_link") 2>conftest.er1
18508 grep -v '^ *+' conftest.er1 >conftest.err
18510 cat conftest.err >&5
18511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18512 (exit $ac_status); } &&
18513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18514 { (case "(($ac_try" in
18515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18516 *) ac_try_echo=$ac_try;;
18518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18519 (eval "$ac_try") 2>&5
18521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18522 (exit $ac_status); }; } &&
18523 { ac_try='test -s conftest$ac_exeext'
18524 { (case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_try") 2>&5
18531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18532 (exit $ac_status); }; }; then
18533 ac_cv_lib_gcc___ashldi3=yes
18535 echo "$as_me: failed program was:" >&5
18536 sed 's/^/| /' conftest.$ac_ext >&5
18538 ac_cv_lib_gcc___ashldi3=no
18541 rm -f core conftest.err conftest.$ac_objext \
18542 conftest$ac_exeext conftest.$ac_ext
18543 LIBS=$ac_check_lib_save_LIBS
18545 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashldi3" >&5
18546 echo "${ECHO_T}$ac_cv_lib_gcc___ashldi3" >&6; }
18547 if test $ac_cv_lib_gcc___ashldi3 = yes; then
18549 cat >>confdefs.h <<\_ACEOF
18550 #define HAVE___ASHLDI3 1
18555 { echo "$as_me:$LINENO: checking for __ashrdi3 in -lgcc" >&5
18556 echo $ECHO_N "checking for __ashrdi3 in -lgcc... $ECHO_C" >&6; }
18557 if test "${ac_cv_lib_gcc___ashrdi3+set}" = set; then
18558 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 ac_check_lib_save_LIBS=$LIBS
18562 cat >conftest.$ac_ext <<_ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */
18569 /* Override any GCC internal prototype to avoid an error.
18570 Use char because int might match the return type of a GCC
18571 builtin and then its argument prototype would still apply. */
18579 return __ashrdi3 ();
18584 rm -f conftest.$ac_objext conftest$ac_exeext
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18591 (eval "$ac_link") 2>conftest.er1
18593 grep -v '^ *+' conftest.er1 >conftest.err
18595 cat conftest.err >&5
18596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18597 (exit $ac_status); } &&
18598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18599 { (case "(($ac_try" in
18600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18601 *) ac_try_echo=$ac_try;;
18603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18604 (eval "$ac_try") 2>&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); }; } &&
18608 { ac_try='test -s conftest$ac_exeext'
18609 { (case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_try") 2>&5
18616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18617 (exit $ac_status); }; }; then
18618 ac_cv_lib_gcc___ashrdi3=yes
18620 echo "$as_me: failed program was:" >&5
18621 sed 's/^/| /' conftest.$ac_ext >&5
18623 ac_cv_lib_gcc___ashrdi3=no
18626 rm -f core conftest.err conftest.$ac_objext \
18627 conftest$ac_exeext conftest.$ac_ext
18628 LIBS=$ac_check_lib_save_LIBS
18630 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___ashrdi3" >&5
18631 echo "${ECHO_T}$ac_cv_lib_gcc___ashrdi3" >&6; }
18632 if test $ac_cv_lib_gcc___ashrdi3 = yes; then
18634 cat >>confdefs.h <<\_ACEOF
18635 #define HAVE___ASHRDI3 1
18640 { echo "$as_me:$LINENO: checking for __divdi3 in -lgcc" >&5
18641 echo $ECHO_N "checking for __divdi3 in -lgcc... $ECHO_C" >&6; }
18642 if test "${ac_cv_lib_gcc___divdi3+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18645 ac_check_lib_save_LIBS=$LIBS
18647 cat >conftest.$ac_ext <<_ACEOF
18650 cat confdefs.h >>conftest.$ac_ext
18651 cat >>conftest.$ac_ext <<_ACEOF
18652 /* end confdefs.h. */
18654 /* Override any GCC internal prototype to avoid an error.
18655 Use char because int might match the return type of a GCC
18656 builtin and then its argument prototype would still apply. */
18664 return __divdi3 ();
18669 rm -f conftest.$ac_objext conftest$ac_exeext
18670 if { (ac_try="$ac_link"
18671 case "(($ac_try" in
18672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18673 *) ac_try_echo=$ac_try;;
18675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18676 (eval "$ac_link") 2>conftest.er1
18678 grep -v '^ *+' conftest.er1 >conftest.err
18680 cat conftest.err >&5
18681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } &&
18683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18684 { (case "(($ac_try" in
18685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_try") 2>&5
18691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18692 (exit $ac_status); }; } &&
18693 { ac_try='test -s conftest$ac_exeext'
18694 { (case "(($ac_try" in
18695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696 *) ac_try_echo=$ac_try;;
18698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18699 (eval "$ac_try") 2>&5
18701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18702 (exit $ac_status); }; }; then
18703 ac_cv_lib_gcc___divdi3=yes
18705 echo "$as_me: failed program was:" >&5
18706 sed 's/^/| /' conftest.$ac_ext >&5
18708 ac_cv_lib_gcc___divdi3=no
18711 rm -f core conftest.err conftest.$ac_objext \
18712 conftest$ac_exeext conftest.$ac_ext
18713 LIBS=$ac_check_lib_save_LIBS
18715 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___divdi3" >&5
18716 echo "${ECHO_T}$ac_cv_lib_gcc___divdi3" >&6; }
18717 if test $ac_cv_lib_gcc___divdi3 = yes; then
18719 cat >>confdefs.h <<\_ACEOF
18720 #define HAVE___DIVDI3 1
18725 { echo "$as_me:$LINENO: checking for __fixdfdi in -lgcc" >&5
18726 echo $ECHO_N "checking for __fixdfdi in -lgcc... $ECHO_C" >&6; }
18727 if test "${ac_cv_lib_gcc___fixdfdi+set}" = set; then
18728 echo $ECHO_N "(cached) $ECHO_C" >&6
18730 ac_check_lib_save_LIBS=$LIBS
18732 cat >conftest.$ac_ext <<_ACEOF
18735 cat confdefs.h >>conftest.$ac_ext
18736 cat >>conftest.$ac_ext <<_ACEOF
18737 /* end confdefs.h. */
18739 /* Override any GCC internal prototype to avoid an error.
18740 Use char because int might match the return type of a GCC
18741 builtin and then its argument prototype would still apply. */
18749 return __fixdfdi ();
18754 rm -f conftest.$ac_objext conftest$ac_exeext
18755 if { (ac_try="$ac_link"
18756 case "(($ac_try" in
18757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18758 *) ac_try_echo=$ac_try;;
18760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18761 (eval "$ac_link") 2>conftest.er1
18763 grep -v '^ *+' conftest.er1 >conftest.err
18765 cat conftest.err >&5
18766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18767 (exit $ac_status); } &&
18768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18769 { (case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_try") 2>&5
18776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18777 (exit $ac_status); }; } &&
18778 { ac_try='test -s conftest$ac_exeext'
18779 { (case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_try") 2>&5
18786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18787 (exit $ac_status); }; }; then
18788 ac_cv_lib_gcc___fixdfdi=yes
18790 echo "$as_me: failed program was:" >&5
18791 sed 's/^/| /' conftest.$ac_ext >&5
18793 ac_cv_lib_gcc___fixdfdi=no
18796 rm -f core conftest.err conftest.$ac_objext \
18797 conftest$ac_exeext conftest.$ac_ext
18798 LIBS=$ac_check_lib_save_LIBS
18800 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixdfdi" >&5
18801 echo "${ECHO_T}$ac_cv_lib_gcc___fixdfdi" >&6; }
18802 if test $ac_cv_lib_gcc___fixdfdi = yes; then
18804 cat >>confdefs.h <<\_ACEOF
18805 #define HAVE___FIXDFDI 1
18810 { echo "$as_me:$LINENO: checking for __fixsfdi in -lgcc" >&5
18811 echo $ECHO_N "checking for __fixsfdi in -lgcc... $ECHO_C" >&6; }
18812 if test "${ac_cv_lib_gcc___fixsfdi+set}" = set; then
18813 echo $ECHO_N "(cached) $ECHO_C" >&6
18815 ac_check_lib_save_LIBS=$LIBS
18817 cat >conftest.$ac_ext <<_ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18824 /* Override any GCC internal prototype to avoid an error.
18825 Use char because int might match the return type of a GCC
18826 builtin and then its argument prototype would still apply. */
18834 return __fixsfdi ();
18839 rm -f conftest.$ac_objext conftest$ac_exeext
18840 if { (ac_try="$ac_link"
18841 case "(($ac_try" in
18842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18843 *) ac_try_echo=$ac_try;;
18845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18846 (eval "$ac_link") 2>conftest.er1
18848 grep -v '^ *+' conftest.er1 >conftest.err
18850 cat conftest.err >&5
18851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18852 (exit $ac_status); } &&
18853 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18854 { (case "(($ac_try" in
18855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18856 *) ac_try_echo=$ac_try;;
18858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18859 (eval "$ac_try") 2>&5
18861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18862 (exit $ac_status); }; } &&
18863 { ac_try='test -s conftest$ac_exeext'
18864 { (case "(($ac_try" in
18865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18866 *) ac_try_echo=$ac_try;;
18868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18869 (eval "$ac_try") 2>&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); }; }; then
18873 ac_cv_lib_gcc___fixsfdi=yes
18875 echo "$as_me: failed program was:" >&5
18876 sed 's/^/| /' conftest.$ac_ext >&5
18878 ac_cv_lib_gcc___fixsfdi=no
18881 rm -f core conftest.err conftest.$ac_objext \
18882 conftest$ac_exeext conftest.$ac_ext
18883 LIBS=$ac_check_lib_save_LIBS
18885 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___fixsfdi" >&5
18886 echo "${ECHO_T}$ac_cv_lib_gcc___fixsfdi" >&6; }
18887 if test $ac_cv_lib_gcc___fixsfdi = yes; then
18889 cat >>confdefs.h <<\_ACEOF
18890 #define HAVE___FIXSFDI 1
18895 { echo "$as_me:$LINENO: checking for __floatdidf in -lgcc" >&5
18896 echo $ECHO_N "checking for __floatdidf in -lgcc... $ECHO_C" >&6; }
18897 if test "${ac_cv_lib_gcc___floatdidf+set}" = set; then
18898 echo $ECHO_N "(cached) $ECHO_C" >&6
18900 ac_check_lib_save_LIBS=$LIBS
18902 cat >conftest.$ac_ext <<_ACEOF
18905 cat confdefs.h >>conftest.$ac_ext
18906 cat >>conftest.$ac_ext <<_ACEOF
18907 /* end confdefs.h. */
18909 /* Override any GCC internal prototype to avoid an error.
18910 Use char because int might match the return type of a GCC
18911 builtin and then its argument prototype would still apply. */
18915 char __floatdidf ();
18919 return __floatdidf ();
18924 rm -f conftest.$ac_objext conftest$ac_exeext
18925 if { (ac_try="$ac_link"
18926 case "(($ac_try" in
18927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18928 *) ac_try_echo=$ac_try;;
18930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18931 (eval "$ac_link") 2>conftest.er1
18933 grep -v '^ *+' conftest.er1 >conftest.err
18935 cat conftest.err >&5
18936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18937 (exit $ac_status); } &&
18938 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18939 { (case "(($ac_try" in
18940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18941 *) ac_try_echo=$ac_try;;
18943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18944 (eval "$ac_try") 2>&5
18946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18947 (exit $ac_status); }; } &&
18948 { ac_try='test -s conftest$ac_exeext'
18949 { (case "(($ac_try" in
18950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18951 *) ac_try_echo=$ac_try;;
18953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18954 (eval "$ac_try") 2>&5
18956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18957 (exit $ac_status); }; }; then
18958 ac_cv_lib_gcc___floatdidf=yes
18960 echo "$as_me: failed program was:" >&5
18961 sed 's/^/| /' conftest.$ac_ext >&5
18963 ac_cv_lib_gcc___floatdidf=no
18966 rm -f core conftest.err conftest.$ac_objext \
18967 conftest$ac_exeext conftest.$ac_ext
18968 LIBS=$ac_check_lib_save_LIBS
18970 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___floatdidf" >&5
18971 echo "${ECHO_T}$ac_cv_lib_gcc___floatdidf" >&6; }
18972 if test $ac_cv_lib_gcc___floatdidf = yes; then
18974 cat >>confdefs.h <<\_ACEOF
18975 #define HAVE___FLOATDIDF 1
18980 { echo "$as_me:$LINENO: checking for __lshrdi3 in -lgcc" >&5
18981 echo $ECHO_N "checking for __lshrdi3 in -lgcc... $ECHO_C" >&6; }
18982 if test "${ac_cv_lib_gcc___lshrdi3+set}" = set; then
18983 echo $ECHO_N "(cached) $ECHO_C" >&6
18985 ac_check_lib_save_LIBS=$LIBS
18987 cat >conftest.$ac_ext <<_ACEOF
18990 cat confdefs.h >>conftest.$ac_ext
18991 cat >>conftest.$ac_ext <<_ACEOF
18992 /* end confdefs.h. */
18994 /* Override any GCC internal prototype to avoid an error.
18995 Use char because int might match the return type of a GCC
18996 builtin and then its argument prototype would still apply. */
19004 return __lshrdi3 ();
19009 rm -f conftest.$ac_objext conftest$ac_exeext
19010 if { (ac_try="$ac_link"
19011 case "(($ac_try" in
19012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19013 *) ac_try_echo=$ac_try;;
19015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19016 (eval "$ac_link") 2>conftest.er1
19018 grep -v '^ *+' conftest.er1 >conftest.err
19020 cat conftest.err >&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); } &&
19023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19024 { (case "(($ac_try" in
19025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19026 *) ac_try_echo=$ac_try;;
19028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19029 (eval "$ac_try") 2>&5
19031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19032 (exit $ac_status); }; } &&
19033 { ac_try='test -s conftest$ac_exeext'
19034 { (case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_try") 2>&5
19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19042 (exit $ac_status); }; }; then
19043 ac_cv_lib_gcc___lshrdi3=yes
19045 echo "$as_me: failed program was:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19048 ac_cv_lib_gcc___lshrdi3=no
19051 rm -f core conftest.err conftest.$ac_objext \
19052 conftest$ac_exeext conftest.$ac_ext
19053 LIBS=$ac_check_lib_save_LIBS
19055 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___lshrdi3" >&5
19056 echo "${ECHO_T}$ac_cv_lib_gcc___lshrdi3" >&6; }
19057 if test $ac_cv_lib_gcc___lshrdi3 = yes; then
19059 cat >>confdefs.h <<\_ACEOF
19060 #define HAVE___LSHRDI3 1
19065 { echo "$as_me:$LINENO: checking for __moddi3 in -lgcc" >&5
19066 echo $ECHO_N "checking for __moddi3 in -lgcc... $ECHO_C" >&6; }
19067 if test "${ac_cv_lib_gcc___moddi3+set}" = set; then
19068 echo $ECHO_N "(cached) $ECHO_C" >&6
19070 ac_check_lib_save_LIBS=$LIBS
19072 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19079 /* Override any GCC internal prototype to avoid an error.
19080 Use char because int might match the return type of a GCC
19081 builtin and then its argument prototype would still apply. */
19089 return __moddi3 ();
19094 rm -f conftest.$ac_objext conftest$ac_exeext
19095 if { (ac_try="$ac_link"
19096 case "(($ac_try" in
19097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19098 *) ac_try_echo=$ac_try;;
19100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19101 (eval "$ac_link") 2>conftest.er1
19103 grep -v '^ *+' conftest.er1 >conftest.err
19105 cat conftest.err >&5
19106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19107 (exit $ac_status); } &&
19108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19109 { (case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_try") 2>&5
19116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19117 (exit $ac_status); }; } &&
19118 { ac_try='test -s conftest$ac_exeext'
19119 { (case "(($ac_try" in
19120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19121 *) ac_try_echo=$ac_try;;
19123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19124 (eval "$ac_try") 2>&5
19126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19127 (exit $ac_status); }; }; then
19128 ac_cv_lib_gcc___moddi3=yes
19130 echo "$as_me: failed program was:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 ac_cv_lib_gcc___moddi3=no
19136 rm -f core conftest.err conftest.$ac_objext \
19137 conftest$ac_exeext conftest.$ac_ext
19138 LIBS=$ac_check_lib_save_LIBS
19140 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___moddi3" >&5
19141 echo "${ECHO_T}$ac_cv_lib_gcc___moddi3" >&6; }
19142 if test $ac_cv_lib_gcc___moddi3 = yes; then
19144 cat >>confdefs.h <<\_ACEOF
19145 #define HAVE___MODDI3 1
19150 { echo "$as_me:$LINENO: checking for __udivdi3 in -lgcc" >&5
19151 echo $ECHO_N "checking for __udivdi3 in -lgcc... $ECHO_C" >&6; }
19152 if test "${ac_cv_lib_gcc___udivdi3+set}" = set; then
19153 echo $ECHO_N "(cached) $ECHO_C" >&6
19155 ac_check_lib_save_LIBS=$LIBS
19157 cat >conftest.$ac_ext <<_ACEOF
19160 cat confdefs.h >>conftest.$ac_ext
19161 cat >>conftest.$ac_ext <<_ACEOF
19162 /* end confdefs.h. */
19164 /* Override any GCC internal prototype to avoid an error.
19165 Use char because int might match the return type of a GCC
19166 builtin and then its argument prototype would still apply. */
19174 return __udivdi3 ();
19179 rm -f conftest.$ac_objext conftest$ac_exeext
19180 if { (ac_try="$ac_link"
19181 case "(($ac_try" in
19182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19183 *) ac_try_echo=$ac_try;;
19185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19186 (eval "$ac_link") 2>conftest.er1
19188 grep -v '^ *+' conftest.er1 >conftest.err
19190 cat conftest.err >&5
19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19192 (exit $ac_status); } &&
19193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19194 { (case "(($ac_try" in
19195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19196 *) ac_try_echo=$ac_try;;
19198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19199 (eval "$ac_try") 2>&5
19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19202 (exit $ac_status); }; } &&
19203 { ac_try='test -s conftest$ac_exeext'
19204 { (case "(($ac_try" in
19205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19206 *) ac_try_echo=$ac_try;;
19208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19209 (eval "$ac_try") 2>&5
19211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19212 (exit $ac_status); }; }; then
19213 ac_cv_lib_gcc___udivdi3=yes
19215 echo "$as_me: failed program was:" >&5
19216 sed 's/^/| /' conftest.$ac_ext >&5
19218 ac_cv_lib_gcc___udivdi3=no
19221 rm -f core conftest.err conftest.$ac_objext \
19222 conftest$ac_exeext conftest.$ac_ext
19223 LIBS=$ac_check_lib_save_LIBS
19225 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___udivdi3" >&5
19226 echo "${ECHO_T}$ac_cv_lib_gcc___udivdi3" >&6; }
19227 if test $ac_cv_lib_gcc___udivdi3 = yes; then
19229 cat >>confdefs.h <<\_ACEOF
19230 #define HAVE___UDIVDI3 1
19235 { echo "$as_me:$LINENO: checking for __umoddi3 in -lgcc" >&5
19236 echo $ECHO_N "checking for __umoddi3 in -lgcc... $ECHO_C" >&6; }
19237 if test "${ac_cv_lib_gcc___umoddi3+set}" = set; then
19238 echo $ECHO_N "(cached) $ECHO_C" >&6
19240 ac_check_lib_save_LIBS=$LIBS
19242 cat >conftest.$ac_ext <<_ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19249 /* Override any GCC internal prototype to avoid an error.
19250 Use char because int might match the return type of a GCC
19251 builtin and then its argument prototype would still apply. */
19259 return __umoddi3 ();
19264 rm -f conftest.$ac_objext conftest$ac_exeext
19265 if { (ac_try="$ac_link"
19266 case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_link") 2>conftest.er1
19273 grep -v '^ *+' conftest.er1 >conftest.err
19275 cat conftest.err >&5
19276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19277 (exit $ac_status); } &&
19278 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19279 { (case "(($ac_try" in
19280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19281 *) ac_try_echo=$ac_try;;
19283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19284 (eval "$ac_try") 2>&5
19286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19287 (exit $ac_status); }; } &&
19288 { ac_try='test -s conftest$ac_exeext'
19289 { (case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_try") 2>&5
19296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); }; }; then
19298 ac_cv_lib_gcc___umoddi3=yes
19300 echo "$as_me: failed program was:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_cv_lib_gcc___umoddi3=no
19306 rm -f core conftest.err conftest.$ac_objext \
19307 conftest$ac_exeext conftest.$ac_ext
19308 LIBS=$ac_check_lib_save_LIBS
19310 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___umoddi3" >&5
19311 echo "${ECHO_T}$ac_cv_lib_gcc___umoddi3" >&6; }
19312 if test $ac_cv_lib_gcc___umoddi3 = yes; then
19314 cat >>confdefs.h <<\_ACEOF
19315 #define HAVE___UMODDI3 1
19321 { echo "$as_me:$LINENO: checking for __main in -lgcc" >&5
19322 echo $ECHO_N "checking for __main in -lgcc... $ECHO_C" >&6; }
19323 if test "${ac_cv_lib_gcc___main+set}" = set; then
19324 echo $ECHO_N "(cached) $ECHO_C" >&6
19326 ac_check_lib_save_LIBS=$LIBS
19328 cat >conftest.$ac_ext <<_ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h. */
19335 /* Override any GCC internal prototype to avoid an error.
19336 Use char because int might match the return type of a GCC
19337 builtin and then its argument prototype would still apply. */
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (ac_try="$ac_link"
19352 case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_link") 2>conftest.er1
19359 grep -v '^ *+' conftest.er1 >conftest.err
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } &&
19364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19365 { (case "(($ac_try" in
19366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19367 *) ac_try_echo=$ac_try;;
19369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19370 (eval "$ac_try") 2>&5
19372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); }; } &&
19374 { ac_try='test -s conftest$ac_exeext'
19375 { (case "(($ac_try" in
19376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19377 *) ac_try_echo=$ac_try;;
19379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19380 (eval "$ac_try") 2>&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); }; }; then
19384 ac_cv_lib_gcc___main=yes
19386 echo "$as_me: failed program was:" >&5
19387 sed 's/^/| /' conftest.$ac_ext >&5
19389 ac_cv_lib_gcc___main=no
19392 rm -f core conftest.err conftest.$ac_objext \
19393 conftest$ac_exeext conftest.$ac_ext
19394 LIBS=$ac_check_lib_save_LIBS
19396 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___main" >&5
19397 echo "${ECHO_T}$ac_cv_lib_gcc___main" >&6; }
19398 if test $ac_cv_lib_gcc___main = yes; then
19400 cat >>confdefs.h <<\_ACEOF
19401 #define HAVE___MAIN 1
19406 { echo "$as_me:$LINENO: checking for __cmpdi2 in -lgcc" >&5
19407 echo $ECHO_N "checking for __cmpdi2 in -lgcc... $ECHO_C" >&6; }
19408 if test "${ac_cv_lib_gcc___cmpdi2+set}" = set; then
19409 echo $ECHO_N "(cached) $ECHO_C" >&6
19411 ac_check_lib_save_LIBS=$LIBS
19413 cat >conftest.$ac_ext <<_ACEOF
19416 cat confdefs.h >>conftest.$ac_ext
19417 cat >>conftest.$ac_ext <<_ACEOF
19418 /* end confdefs.h. */
19420 /* Override any GCC internal prototype to avoid an error.
19421 Use char because int might match the return type of a GCC
19422 builtin and then its argument prototype would still apply. */
19430 return __cmpdi2 ();
19435 rm -f conftest.$ac_objext conftest$ac_exeext
19436 if { (ac_try="$ac_link"
19437 case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_link") 2>conftest.er1
19444 grep -v '^ *+' conftest.er1 >conftest.err
19446 cat conftest.err >&5
19447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19448 (exit $ac_status); } &&
19449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19450 { (case "(($ac_try" in
19451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19452 *) ac_try_echo=$ac_try;;
19454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19455 (eval "$ac_try") 2>&5
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; } &&
19459 { ac_try='test -s conftest$ac_exeext'
19460 { (case "(($ac_try" in
19461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19462 *) ac_try_echo=$ac_try;;
19464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19465 (eval "$ac_try") 2>&5
19467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19468 (exit $ac_status); }; }; then
19469 ac_cv_lib_gcc___cmpdi2=yes
19471 echo "$as_me: failed program was:" >&5
19472 sed 's/^/| /' conftest.$ac_ext >&5
19474 ac_cv_lib_gcc___cmpdi2=no
19477 rm -f core conftest.err conftest.$ac_objext \
19478 conftest$ac_exeext conftest.$ac_ext
19479 LIBS=$ac_check_lib_save_LIBS
19481 { echo "$as_me:$LINENO: result: $ac_cv_lib_gcc___cmpdi2" >&5
19482 echo "${ECHO_T}$ac_cv_lib_gcc___cmpdi2" >&6; }
19483 if test $ac_cv_lib_gcc___cmpdi2 = yes; then
19485 cat >>confdefs.h <<\_ACEOF
19486 #define HAVE___CMPDI2 1
19493 if test "$llvm_cv_os_type" = "MingW" ; then
19494 { echo "$as_me:$LINENO: checking whether EnumerateLoadedModules() accepts new decl" >&5
19495 echo $ECHO_N "checking whether EnumerateLoadedModules() accepts new decl... $ECHO_C" >&6; }
19496 cat >conftest.$ac_ext <<_ACEOF
19497 #include <windows.h>
19498 #include <imagehlp.h>
19499 extern void foo(PENUMLOADED_MODULES_CALLBACK);
19500 extern void foo(BOOL(CALLBACK*)(PCSTR,ULONG_PTR,ULONG,PVOID));
19502 rm -f conftest.$ac_objext
19503 if { (ac_try="$ac_compile"
19504 case "(($ac_try" in
19505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19506 *) ac_try_echo=$ac_try;;
19508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19509 (eval "$ac_compile") 2>conftest.er1
19511 grep -v '^ *+' conftest.er1 >conftest.err
19513 cat conftest.err >&5
19514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19515 (exit $ac_status); } &&
19516 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19517 { (case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_try") 2>&5
19524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19525 (exit $ac_status); }; } &&
19526 { ac_try='test -s conftest.$ac_objext'
19527 { (case "(($ac_try" in
19528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19529 *) ac_try_echo=$ac_try;;
19531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19532 (eval "$ac_try") 2>&5
19534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19535 (exit $ac_status); }; }; then
19537 { echo "$as_me:$LINENO: result: yes" >&5
19538 echo "${ECHO_T}yes" >&6; }
19539 llvm_cv_win32_elmcb_pcstr="PCSTR"
19542 echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19546 { echo "$as_me:$LINENO: result: no" >&5
19547 echo "${ECHO_T}no" >&6; }
19548 llvm_cv_win32_elmcb_pcstr="PSTR"
19552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19554 cat >>confdefs.h <<_ACEOF
19555 #define WIN32_ELMCB_PCSTR $llvm_cv_win32_elmcb_pcstr
19561 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19562 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19563 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19564 echo $ECHO_N "(cached) $ECHO_C" >&6
19567 ac_cpp='$CXXCPP $CPPFLAGS'
19568 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19569 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19570 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19572 cat >conftest.$ac_ext <<_ACEOF
19575 cat confdefs.h >>conftest.$ac_ext
19576 cat >>conftest.$ac_ext <<_ACEOF
19577 /* end confdefs.h. */
19587 rm -f conftest.$ac_objext
19588 if { (ac_try="$ac_compile"
19589 case "(($ac_try" in
19590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_compile") 2>conftest.er1
19596 grep -v '^ *+' conftest.er1 >conftest.err
19598 cat conftest.err >&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } &&
19601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19602 { (case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_try") 2>&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; } &&
19611 { ac_try='test -s conftest.$ac_objext'
19612 { (case "(($ac_try" in
19613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19614 *) ac_try_echo=$ac_try;;
19616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19617 (eval "$ac_try") 2>&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); }; }; then
19621 ac_cv_func_isnan_in_math_h=yes
19623 echo "$as_me: failed program was:" >&5
19624 sed 's/^/| /' conftest.$ac_ext >&5
19626 ac_cv_func_isnan_in_math_h=no
19629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19631 ac_cpp='$CPP $CPPFLAGS'
19632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19637 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19638 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19641 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19643 cat >>confdefs.h <<\_ACEOF
19644 #define HAVE_ISNAN_IN_MATH_H 1
19649 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19650 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19651 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19655 ac_cpp='$CXXCPP $CPPFLAGS'
19656 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19657 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19658 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19660 cat >conftest.$ac_ext <<_ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19675 rm -f conftest.$ac_objext
19676 if { (ac_try="$ac_compile"
19677 case "(($ac_try" in
19678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19679 *) ac_try_echo=$ac_try;;
19681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19682 (eval "$ac_compile") 2>conftest.er1
19684 grep -v '^ *+' conftest.er1 >conftest.err
19686 cat conftest.err >&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); } &&
19689 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19690 { (case "(($ac_try" in
19691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_try") 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; } &&
19699 { ac_try='test -s conftest.$ac_objext'
19700 { (case "(($ac_try" in
19701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19702 *) ac_try_echo=$ac_try;;
19704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19705 (eval "$ac_try") 2>&5
19707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19708 (exit $ac_status); }; }; then
19709 ac_cv_func_isnan_in_cmath=yes
19711 echo "$as_me: failed program was:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19714 ac_cv_func_isnan_in_cmath=no
19717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19719 ac_cpp='$CPP $CPPFLAGS'
19720 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19721 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19722 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19725 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19726 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19728 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19730 cat >>confdefs.h <<\_ACEOF
19731 #define HAVE_ISNAN_IN_CMATH 1
19736 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19737 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19738 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19739 echo $ECHO_N "(cached) $ECHO_C" >&6
19742 ac_cpp='$CXXCPP $CPPFLAGS'
19743 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19744 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19745 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19747 cat >conftest.$ac_ext <<_ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19757 float f; std::isnan(f);
19762 rm -f conftest.$ac_objext
19763 if { (ac_try="$ac_compile"
19764 case "(($ac_try" in
19765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19766 *) ac_try_echo=$ac_try;;
19768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19769 (eval "$ac_compile") 2>conftest.er1
19771 grep -v '^ *+' conftest.er1 >conftest.err
19773 cat conftest.err >&5
19774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19775 (exit $ac_status); } &&
19776 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19777 { (case "(($ac_try" in
19778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19779 *) ac_try_echo=$ac_try;;
19781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19782 (eval "$ac_try") 2>&5
19784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19785 (exit $ac_status); }; } &&
19786 { ac_try='test -s conftest.$ac_objext'
19787 { (case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19792 (eval "$ac_try") 2>&5
19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); }; }; then
19796 ac_cv_func_std_isnan_in_cmath=yes
19798 echo "$as_me: failed program was:" >&5
19799 sed 's/^/| /' conftest.$ac_ext >&5
19801 ac_cv_func_std_isnan_in_cmath=no
19804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19806 ac_cpp='$CPP $CPPFLAGS'
19807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19812 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19813 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19815 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19817 cat >>confdefs.h <<\_ACEOF
19818 #define HAVE_STD_ISNAN_IN_CMATH 1
19824 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19825 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19826 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19827 echo $ECHO_N "(cached) $ECHO_C" >&6
19830 ac_cpp='$CXXCPP $CPPFLAGS'
19831 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19832 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19833 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19850 rm -f conftest.$ac_objext
19851 if { (ac_try="$ac_compile"
19852 case "(($ac_try" in
19853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19854 *) ac_try_echo=$ac_try;;
19856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19857 (eval "$ac_compile") 2>conftest.er1
19859 grep -v '^ *+' conftest.er1 >conftest.err
19861 cat conftest.err >&5
19862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19863 (exit $ac_status); } &&
19864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19865 { (case "(($ac_try" in
19866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19867 *) ac_try_echo=$ac_try;;
19869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19870 (eval "$ac_try") 2>&5
19872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19873 (exit $ac_status); }; } &&
19874 { ac_try='test -s conftest.$ac_objext'
19875 { (case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_try") 2>&5
19882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19883 (exit $ac_status); }; }; then
19884 ac_cv_func_isinf_in_math_h=yes
19886 echo "$as_me: failed program was:" >&5
19887 sed 's/^/| /' conftest.$ac_ext >&5
19889 ac_cv_func_isinf_in_math_h=no
19892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19894 ac_cpp='$CPP $CPPFLAGS'
19895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19900 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19901 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19903 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19905 cat >>confdefs.h <<\_ACEOF
19906 #define HAVE_ISINF_IN_MATH_H 1
19911 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19912 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19913 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19914 echo $ECHO_N "(cached) $ECHO_C" >&6
19917 ac_cpp='$CXXCPP $CPPFLAGS'
19918 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19919 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19920 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19922 cat >conftest.$ac_ext <<_ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19937 rm -f conftest.$ac_objext
19938 if { (ac_try="$ac_compile"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_compile") 2>conftest.er1
19946 grep -v '^ *+' conftest.er1 >conftest.err
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } &&
19951 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19952 { (case "(($ac_try" in
19953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19954 *) ac_try_echo=$ac_try;;
19956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19957 (eval "$ac_try") 2>&5
19959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19960 (exit $ac_status); }; } &&
19961 { ac_try='test -s conftest.$ac_objext'
19962 { (case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_try") 2>&5
19969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19970 (exit $ac_status); }; }; then
19971 ac_cv_func_isinf_in_cmath=yes
19973 echo "$as_me: failed program was:" >&5
19974 sed 's/^/| /' conftest.$ac_ext >&5
19976 ac_cv_func_isinf_in_cmath=no
19979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19981 ac_cpp='$CPP $CPPFLAGS'
19982 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19983 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19984 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19987 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19988 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19990 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19992 cat >>confdefs.h <<\_ACEOF
19993 #define HAVE_ISINF_IN_CMATH 1
19998 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19999 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
20000 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
20001 echo $ECHO_N "(cached) $ECHO_C" >&6
20004 ac_cpp='$CXXCPP $CPPFLAGS'
20005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20009 cat >conftest.$ac_ext <<_ACEOF
20012 cat confdefs.h >>conftest.$ac_ext
20013 cat >>conftest.$ac_ext <<_ACEOF
20014 /* end confdefs.h. */
20019 float f; std::isinf(f)}
20024 rm -f conftest.$ac_objext
20025 if { (ac_try="$ac_compile"
20026 case "(($ac_try" in
20027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20028 *) ac_try_echo=$ac_try;;
20030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20031 (eval "$ac_compile") 2>conftest.er1
20033 grep -v '^ *+' conftest.er1 >conftest.err
20035 cat conftest.err >&5
20036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20037 (exit $ac_status); } &&
20038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20039 { (case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_try") 2>&5
20046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20047 (exit $ac_status); }; } &&
20048 { ac_try='test -s conftest.$ac_objext'
20049 { (case "(($ac_try" in
20050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20051 *) ac_try_echo=$ac_try;;
20053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20054 (eval "$ac_try") 2>&5
20056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20057 (exit $ac_status); }; }; then
20058 ac_cv_func_std_isinf_in_cmath=yes
20060 echo "$as_me: failed program was:" >&5
20061 sed 's/^/| /' conftest.$ac_ext >&5
20063 ac_cv_func_std_isinf_in_cmath=no
20066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20068 ac_cpp='$CPP $CPPFLAGS'
20069 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20070 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20071 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20074 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
20075 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
20077 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
20079 cat >>confdefs.h <<\_ACEOF
20080 #define HAVE_STD_ISINF_IN_CMATH 1
20085 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
20086 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
20087 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 ac_cpp='$CXXCPP $CPPFLAGS'
20092 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20093 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20094 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20096 cat >conftest.$ac_ext <<_ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102 #include <ieeefp.h>
20106 float f; finite(f);
20111 rm -f conftest.$ac_objext
20112 if { (ac_try="$ac_compile"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_compile") 2>conftest.er1
20120 grep -v '^ *+' conftest.er1 >conftest.err
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } &&
20125 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20126 { (case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_try") 2>&5
20133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20134 (exit $ac_status); }; } &&
20135 { ac_try='test -s conftest.$ac_objext'
20136 { (case "(($ac_try" in
20137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20138 *) ac_try_echo=$ac_try;;
20140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20141 (eval "$ac_try") 2>&5
20143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20144 (exit $ac_status); }; }; then
20145 ac_cv_func_finite_in_ieeefp_h=yes
20147 echo "$as_me: failed program was:" >&5
20148 sed 's/^/| /' conftest.$ac_ext >&5
20150 ac_cv_func_finite_in_ieeefp_h=no
20153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20155 ac_cpp='$CPP $CPPFLAGS'
20156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20161 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
20162 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
20164 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
20166 cat >>confdefs.h <<\_ACEOF
20167 #define HAVE_FINITE_IN_IEEEFP_H 1
20174 if test "$llvm_cv_platform_type" = "Unix" ; then
20177 for ac_header in stdlib.h unistd.h
20179 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20181 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20182 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20183 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20184 echo $ECHO_N "(cached) $ECHO_C" >&6
20186 ac_res=`eval echo '${'$as_ac_Header'}'`
20187 { echo "$as_me:$LINENO: result: $ac_res" >&5
20188 echo "${ECHO_T}$ac_res" >&6; }
20190 # Is the header compilable?
20191 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20192 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20193 cat >conftest.$ac_ext <<_ACEOF
20196 cat confdefs.h >>conftest.$ac_ext
20197 cat >>conftest.$ac_ext <<_ACEOF
20198 /* end confdefs.h. */
20199 $ac_includes_default
20200 #include <$ac_header>
20202 rm -f conftest.$ac_objext
20203 if { (ac_try="$ac_compile"
20204 case "(($ac_try" in
20205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20206 *) ac_try_echo=$ac_try;;
20208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20209 (eval "$ac_compile") 2>conftest.er1
20211 grep -v '^ *+' conftest.er1 >conftest.err
20213 cat conftest.err >&5
20214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20215 (exit $ac_status); } &&
20216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20217 { (case "(($ac_try" in
20218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20219 *) ac_try_echo=$ac_try;;
20221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20222 (eval "$ac_try") 2>&5
20224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20225 (exit $ac_status); }; } &&
20226 { ac_try='test -s conftest.$ac_objext'
20227 { (case "(($ac_try" in
20228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20229 *) ac_try_echo=$ac_try;;
20231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20232 (eval "$ac_try") 2>&5
20234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20235 (exit $ac_status); }; }; then
20236 ac_header_compiler=yes
20238 echo "$as_me: failed program was:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 ac_header_compiler=no
20244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20245 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20246 echo "${ECHO_T}$ac_header_compiler" >&6; }
20248 # Is the header present?
20249 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20250 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20251 cat >conftest.$ac_ext <<_ACEOF
20254 cat confdefs.h >>conftest.$ac_ext
20255 cat >>conftest.$ac_ext <<_ACEOF
20256 /* end confdefs.h. */
20257 #include <$ac_header>
20259 if { (ac_try="$ac_cpp conftest.$ac_ext"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20267 grep -v '^ *+' conftest.er1 >conftest.err
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } >/dev/null; then
20272 if test -s conftest.err; then
20273 ac_cpp_err=$ac_c_preproc_warn_flag
20274 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20281 if test -z "$ac_cpp_err"; then
20282 ac_header_preproc=yes
20284 echo "$as_me: failed program was:" >&5
20285 sed 's/^/| /' conftest.$ac_ext >&5
20287 ac_header_preproc=no
20290 rm -f conftest.err conftest.$ac_ext
20291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20292 echo "${ECHO_T}$ac_header_preproc" >&6; }
20294 # So? What about this header?
20295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20297 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20298 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20299 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20300 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20301 ac_header_preproc=yes
20304 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20305 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20306 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20307 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20308 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20309 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20310 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20311 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20312 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20313 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20314 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20315 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20317 ## ------------------------------------ ##
20318 ## Report this to http://llvm.org/bugs/ ##
20319 ## ------------------------------------ ##
20321 ) | sed "s/^/$as_me: WARNING: /" >&2
20324 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20325 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20326 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20327 echo $ECHO_N "(cached) $ECHO_C" >&6
20329 eval "$as_ac_Header=\$ac_header_preproc"
20331 ac_res=`eval echo '${'$as_ac_Header'}'`
20332 { echo "$as_me:$LINENO: result: $ac_res" >&5
20333 echo "${ECHO_T}$ac_res" >&6; }
20336 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20337 cat >>confdefs.h <<_ACEOF
20338 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20346 for ac_func in getpagesize
20348 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20349 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20350 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20351 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20352 echo $ECHO_N "(cached) $ECHO_C" >&6
20354 cat >conftest.$ac_ext <<_ACEOF
20357 cat confdefs.h >>conftest.$ac_ext
20358 cat >>conftest.$ac_ext <<_ACEOF
20359 /* end confdefs.h. */
20360 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20362 #define $ac_func innocuous_$ac_func
20364 /* System header to define __stub macros and hopefully few prototypes,
20365 which can conflict with char $ac_func (); below.
20366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20367 <limits.h> exists even on freestanding compilers. */
20370 # include <limits.h>
20372 # include <assert.h>
20377 /* Override any GCC internal prototype to avoid an error.
20378 Use char because int might match the return type of a GCC
20379 builtin and then its argument prototype would still apply. */
20384 /* The GNU C library defines this for functions which it implements
20385 to always fail with ENOSYS. Some functions are actually named
20386 something starting with __ and the normal name is an alias. */
20387 #if defined __stub_$ac_func || defined __stub___$ac_func
20394 return $ac_func ();
20399 rm -f conftest.$ac_objext conftest$ac_exeext
20400 if { (ac_try="$ac_link"
20401 case "(($ac_try" in
20402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20403 *) ac_try_echo=$ac_try;;
20405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20406 (eval "$ac_link") 2>conftest.er1
20408 grep -v '^ *+' conftest.er1 >conftest.err
20410 cat conftest.err >&5
20411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20412 (exit $ac_status); } &&
20413 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20414 { (case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_try") 2>&5
20421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20422 (exit $ac_status); }; } &&
20423 { ac_try='test -s conftest$ac_exeext'
20424 { (case "(($ac_try" in
20425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20426 *) ac_try_echo=$ac_try;;
20428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20429 (eval "$ac_try") 2>&5
20431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20432 (exit $ac_status); }; }; then
20433 eval "$as_ac_var=yes"
20435 echo "$as_me: failed program was:" >&5
20436 sed 's/^/| /' conftest.$ac_ext >&5
20438 eval "$as_ac_var=no"
20441 rm -f core conftest.err conftest.$ac_objext \
20442 conftest$ac_exeext conftest.$ac_ext
20444 ac_res=`eval echo '${'$as_ac_var'}'`
20445 { echo "$as_me:$LINENO: result: $ac_res" >&5
20446 echo "${ECHO_T}$ac_res" >&6; }
20447 if test `eval echo '${'$as_ac_var'}'` = yes; then
20448 cat >>confdefs.h <<_ACEOF
20449 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20455 { echo "$as_me:$LINENO: checking for working mmap" >&5
20456 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20457 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20458 echo $ECHO_N "(cached) $ECHO_C" >&6
20460 if test "$cross_compiling" = yes; then
20461 ac_cv_func_mmap_fixed_mapped=no
20463 cat >conftest.$ac_ext <<_ACEOF
20466 cat confdefs.h >>conftest.$ac_ext
20467 cat >>conftest.$ac_ext <<_ACEOF
20468 /* end confdefs.h. */
20469 $ac_includes_default
20470 /* malloc might have been renamed as rpl_malloc. */
20473 /* Thanks to Mike Haertel and Jim Avera for this test.
20474 Here is a matrix of mmap possibilities:
20475 mmap private not fixed
20476 mmap private fixed at somewhere currently unmapped
20477 mmap private fixed at somewhere already mapped
20478 mmap shared not fixed
20479 mmap shared fixed at somewhere currently unmapped
20480 mmap shared fixed at somewhere already mapped
20481 For private mappings, we should verify that changes cannot be read()
20482 back from the file, nor mmap's back from the file at a different
20483 address. (There have been systems where private was not correctly
20484 implemented like the infamous i386 svr4.0, and systems where the
20485 VM page cache was not coherent with the file system buffer cache
20486 like early versions of FreeBSD and possibly contemporary NetBSD.)
20487 For shared mappings, we should conversely verify that changes get
20488 propagated back to all the places they're supposed to be.
20490 Grep wants private fixed already mapped.
20491 The main things grep needs to know about mmap are:
20492 * does it exist and is it safe to write into the mmap'd area
20493 * how to use it (BSD variants) */
20496 #include <sys/mman.h>
20498 #if !STDC_HEADERS && !HAVE_STDLIB_H
20502 /* This mess was copied from the GNU getpagesize.h. */
20503 #if !HAVE_GETPAGESIZE
20504 /* Assume that all systems that can run configure have sys/param.h. */
20505 # if !HAVE_SYS_PARAM_H
20506 # define HAVE_SYS_PARAM_H 1
20509 # ifdef _SC_PAGESIZE
20510 # define getpagesize() sysconf(_SC_PAGESIZE)
20511 # else /* no _SC_PAGESIZE */
20512 # if HAVE_SYS_PARAM_H
20513 # include <sys/param.h>
20514 # ifdef EXEC_PAGESIZE
20515 # define getpagesize() EXEC_PAGESIZE
20516 # else /* no EXEC_PAGESIZE */
20518 # define getpagesize() NBPG * CLSIZE
20521 # endif /* no CLSIZE */
20522 # else /* no NBPG */
20524 # define getpagesize() NBPC
20525 # else /* no NBPC */
20527 # define getpagesize() PAGESIZE
20528 # endif /* PAGESIZE */
20529 # endif /* no NBPC */
20530 # endif /* no NBPG */
20531 # endif /* no EXEC_PAGESIZE */
20532 # else /* no HAVE_SYS_PARAM_H */
20533 # define getpagesize() 8192 /* punt totally */
20534 # endif /* no HAVE_SYS_PARAM_H */
20535 # endif /* no _SC_PAGESIZE */
20537 #endif /* no HAVE_GETPAGESIZE */
20542 char *data, *data2, *data3;
20546 pagesize = getpagesize ();
20548 /* First, make a file with some known garbage in it. */
20549 data = (char *) malloc (pagesize);
20552 for (i = 0; i < pagesize; ++i)
20553 *(data + i) = rand ();
20555 fd = creat ("conftest.mmap", 0600);
20558 if (write (fd, data, pagesize) != pagesize)
20562 /* Next, try to mmap the file at a fixed address which already has
20563 something else allocated at it. If we can, also make sure that
20564 we see the same garbage. */
20565 fd = open ("conftest.mmap", O_RDWR);
20568 data2 = (char *) malloc (2 * pagesize);
20571 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20572 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20573 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20575 for (i = 0; i < pagesize; ++i)
20576 if (*(data + i) != *(data2 + i))
20579 /* Finally, make sure that changes to the mapped area do not
20580 percolate back to the file as seen by read(). (This is a bug on
20581 some variants of i386 svr4.0.) */
20582 for (i = 0; i < pagesize; ++i)
20583 *(data2 + i) = *(data2 + i) + 1;
20584 data3 = (char *) malloc (pagesize);
20587 if (read (fd, data3, pagesize) != pagesize)
20589 for (i = 0; i < pagesize; ++i)
20590 if (*(data + i) != *(data3 + i))
20596 rm -f conftest$ac_exeext
20597 if { (ac_try="$ac_link"
20598 case "(($ac_try" in
20599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20600 *) ac_try_echo=$ac_try;;
20602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20603 (eval "$ac_link") 2>&5
20605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20606 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20607 { (case "(($ac_try" in
20608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20609 *) ac_try_echo=$ac_try;;
20611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20612 (eval "$ac_try") 2>&5
20614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20615 (exit $ac_status); }; }; then
20616 ac_cv_func_mmap_fixed_mapped=yes
20618 echo "$as_me: program exited with status $ac_status" >&5
20619 echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20622 ( exit $ac_status )
20623 ac_cv_func_mmap_fixed_mapped=no
20625 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20630 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20631 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20632 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20634 cat >>confdefs.h <<\_ACEOF
20635 #define HAVE_MMAP 1
20639 rm -f conftest.mmap
20641 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20642 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20643 if test "${ac_cv_func_mmap_file+set}" = set; then
20644 echo $ECHO_N "(cached) $ECHO_C" >&6
20647 ac_cpp='$CPP $CPPFLAGS'
20648 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20649 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20650 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20652 if test "$cross_compiling" = yes; then
20653 ac_cv_func_mmap_file=no
20655 cat >conftest.$ac_ext <<_ACEOF
20659 cat confdefs.h >>conftest.$ac_ext
20660 cat >>conftest.$ac_ext <<_ACEOF
20661 /* end confdefs.h. */
20663 #include <sys/types.h>
20664 #include <sys/mman.h>
20672 fd = creat ("foo",0777);
20673 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20675 return (fd != (int) MAP_FAILED);
20680 rm -f conftest$ac_exeext
20681 if { (ac_try="$ac_link"
20682 case "(($ac_try" in
20683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20684 *) ac_try_echo=$ac_try;;
20686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20687 (eval "$ac_link") 2>&5
20689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20690 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20691 { (case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_try") 2>&5
20698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20699 (exit $ac_status); }; }; then
20700 ac_cv_func_mmap_file=yes
20702 echo "$as_me: program exited with status $ac_status" >&5
20703 echo "$as_me: failed program was:" >&5
20704 sed 's/^/| /' conftest.$ac_ext >&5
20706 ( exit $ac_status )
20707 ac_cv_func_mmap_file=no
20709 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20714 ac_cpp='$CPP $CPPFLAGS'
20715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20721 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20722 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20723 if test "$ac_cv_func_mmap_file" = yes; then
20725 cat >>confdefs.h <<\_ACEOF
20726 #define HAVE_MMAP_FILE
20733 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20734 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20735 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20736 echo $ECHO_N "(cached) $ECHO_C" >&6
20738 if test "$llvm_cv_os_type" = "Interix" ; then
20739 ac_cv_need_dev_zero_for_mmap=yes
20741 ac_cv_need_dev_zero_for_mmap=no
20745 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20746 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20747 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20749 cat >>confdefs.h <<\_ACEOF
20750 #define NEED_DEV_ZERO_FOR_MMAP 1
20755 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20757 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20758 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20760 if test "$ac_cv_func_mmap_file" = "no"
20762 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20763 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20767 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20768 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20770 ac_cpp='$CXXCPP $CPPFLAGS'
20771 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20772 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20773 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20775 cat >conftest.$ac_ext <<_ACEOF
20778 cat confdefs.h >>conftest.$ac_ext
20779 cat >>conftest.$ac_ext <<_ACEOF
20780 /* end confdefs.h. */
20782 volatile unsigned long val = 1;
20783 __sync_synchronize();
20784 __sync_val_compare_and_swap(&val, 1, 0);
20785 __sync_add_and_fetch(&val, 1);
20786 __sync_sub_and_fetch(&val, 1);
20791 rm -f conftest.$ac_objext conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>conftest.er1
20800 grep -v '^ *+' conftest.er1 >conftest.err
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } &&
20805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20806 { (case "(($ac_try" in
20807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20808 *) ac_try_echo=$ac_try;;
20810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20811 (eval "$ac_try") 2>&5
20813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20814 (exit $ac_status); }; } &&
20815 { ac_try='test -s conftest$ac_exeext'
20816 { (case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_try") 2>&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); }; }; then
20826 ac_cpp='$CPP $CPPFLAGS'
20827 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20828 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20829 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20831 { echo "$as_me:$LINENO: result: yes" >&5
20832 echo "${ECHO_T}yes" >&6; }
20834 cat >>confdefs.h <<\_ACEOF
20835 #define LLVM_HAS_ATOMICS 1
20839 echo "$as_me: failed program was:" >&5
20840 sed 's/^/| /' conftest.$ac_ext >&5
20842 { echo "$as_me:$LINENO: result: no" >&5
20843 echo "${ECHO_T}no" >&6; }
20845 cat >>confdefs.h <<\_ACEOF
20846 #define LLVM_HAS_ATOMICS 0
20849 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20850 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20853 rm -f core conftest.err conftest.$ac_objext \
20854 conftest$ac_exeext conftest.$ac_ext
20857 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20858 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20859 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20860 if test "${llvm_cv_linux_mixed+set}" = set; then
20861 echo $ECHO_N "(cached) $ECHO_C" >&6
20864 ac_cpp='$CPP $CPPFLAGS'
20865 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20866 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20867 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20869 cat >conftest.$ac_ext <<_ACEOF
20872 cat confdefs.h >>conftest.$ac_ext
20873 cat >>conftest.$ac_ext <<_ACEOF
20874 /* end confdefs.h. */
20876 error: Not x86-64 even if uname says so!
20887 rm -f conftest.$ac_objext
20888 if { (ac_try="$ac_compile"
20889 case "(($ac_try" in
20890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20891 *) ac_try_echo=$ac_try;;
20893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20894 (eval "$ac_compile") 2>conftest.er1
20896 grep -v '^ *+' conftest.er1 >conftest.err
20898 cat conftest.err >&5
20899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20900 (exit $ac_status); } &&
20901 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20902 { (case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20907 (eval "$ac_try") 2>&5
20909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20910 (exit $ac_status); }; } &&
20911 { ac_try='test -s conftest.$ac_objext'
20912 { (case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_try") 2>&5
20919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20920 (exit $ac_status); }; }; then
20921 llvm_cv_linux_mixed=no
20923 echo "$as_me: failed program was:" >&5
20924 sed 's/^/| /' conftest.$ac_ext >&5
20926 llvm_cv_linux_mixed=yes
20929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20931 ac_cpp='$CPP $CPPFLAGS'
20932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20938 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20939 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20941 if test "$llvm_cv_linux_mixed" = "yes"; then
20942 llvm_cv_target_arch="x86"
20948 for ac_func in __dso_handle
20950 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20951 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20952 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20953 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20954 echo $ECHO_N "(cached) $ECHO_C" >&6
20956 cat >conftest.$ac_ext <<_ACEOF
20959 cat confdefs.h >>conftest.$ac_ext
20960 cat >>conftest.$ac_ext <<_ACEOF
20961 /* end confdefs.h. */
20962 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20964 #define $ac_func innocuous_$ac_func
20966 /* System header to define __stub macros and hopefully few prototypes,
20967 which can conflict with char $ac_func (); below.
20968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20969 <limits.h> exists even on freestanding compilers. */
20972 # include <limits.h>
20974 # include <assert.h>
20979 /* Override any GCC internal prototype to avoid an error.
20980 Use char because int might match the return type of a GCC
20981 builtin and then its argument prototype would still apply. */
20986 /* The GNU C library defines this for functions which it implements
20987 to always fail with ENOSYS. Some functions are actually named
20988 something starting with __ and the normal name is an alias. */
20989 #if defined __stub_$ac_func || defined __stub___$ac_func
20996 return $ac_func ();
21001 rm -f conftest.$ac_objext conftest$ac_exeext
21002 if { (ac_try="$ac_link"
21003 case "(($ac_try" in
21004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21005 *) ac_try_echo=$ac_try;;
21007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21008 (eval "$ac_link") 2>conftest.er1
21010 grep -v '^ *+' conftest.er1 >conftest.err
21012 cat conftest.err >&5
21013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21014 (exit $ac_status); } &&
21015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21016 { (case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_try") 2>&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); }; } &&
21025 { ac_try='test -s conftest$ac_exeext'
21026 { (case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_try") 2>&5
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; }; then
21035 eval "$as_ac_var=yes"
21037 echo "$as_me: failed program was:" >&5
21038 sed 's/^/| /' conftest.$ac_ext >&5
21040 eval "$as_ac_var=no"
21043 rm -f core conftest.err conftest.$ac_objext \
21044 conftest$ac_exeext conftest.$ac_ext
21046 ac_res=`eval echo '${'$as_ac_var'}'`
21047 { echo "$as_me:$LINENO: result: $ac_res" >&5
21048 echo "${ECHO_T}$ac_res" >&6; }
21049 if test `eval echo '${'$as_ac_var'}'` = yes; then
21050 cat >>confdefs.h <<_ACEOF
21051 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21058 SHLIBEXT=$libltdl_cv_shlibext
21061 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
21064 if test "${prefix}" = "NONE" ; then
21065 prefix="/usr/local"
21067 eval LLVM_PREFIX="${prefix}";
21068 eval LLVM_BINDIR="${prefix}/bin";
21069 eval LLVM_LIBDIR="${prefix}/lib";
21070 eval LLVM_DATADIR="${prefix}/share/llvm";
21071 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
21072 eval LLVM_ETCDIR="${prefix}/etc/llvm";
21073 eval LLVM_INCLUDEDIR="${prefix}/include";
21074 eval LLVM_INFODIR="${prefix}/info";
21075 eval LLVM_MANDIR="${prefix}/man";
21076 LLVM_CONFIGTIME=`date`
21088 if test "${ENABLE_TIMESTAMPS}" = "0"; then
21089 LLVM_CONFIGTIME="(timestamp not enabled)"
21093 cat >>confdefs.h <<_ACEOF
21094 #define LLVM_PREFIX "$LLVM_PREFIX"
21098 cat >>confdefs.h <<_ACEOF
21099 #define LLVM_BINDIR "$LLVM_BINDIR"
21103 cat >>confdefs.h <<_ACEOF
21104 #define LLVM_LIBDIR "$LLVM_LIBDIR"
21108 cat >>confdefs.h <<_ACEOF
21109 #define LLVM_DATADIR "$LLVM_DATADIR"
21113 cat >>confdefs.h <<_ACEOF
21114 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
21118 cat >>confdefs.h <<_ACEOF
21119 #define LLVM_ETCDIR "$LLVM_ETCDIR"
21123 cat >>confdefs.h <<_ACEOF
21124 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
21128 cat >>confdefs.h <<_ACEOF
21129 #define LLVM_INFODIR "$LLVM_INFODIR"
21133 cat >>confdefs.h <<_ACEOF
21134 #define LLVM_MANDIR "$LLVM_MANDIR"
21138 cat >>confdefs.h <<_ACEOF
21139 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
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.1svn, 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.1svn
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 ENDIAN!$ENDIAN$ac_delim
22118 GREP!$GREP$ac_delim
22119 EGREP!$EGREP$ac_delim
22120 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
22121 BUILD_CC!$BUILD_CC$ac_delim
22122 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
22123 BUILD_CXX!$BUILD_CXX$ac_delim
22124 CVSBUILD!$CVSBUILD$ac_delim
22125 ENABLE_LIBCPP!$ENABLE_LIBCPP$ac_delim
22126 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
22127 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
22128 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
22129 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
22130 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
22131 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
22132 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
22134 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
22135 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
22136 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
22137 LLVM_ENABLE_THREADS!$LLVM_ENABLE_THREADS$ac_delim
22138 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
22139 ENABLE_PIC!$ENABLE_PIC$ac_delim
22140 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
22141 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$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_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
22184 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
22185 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
22186 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
22187 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
22188 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
22189 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
22190 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
22191 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
22192 EXTRA_LD_OPTIONS!$EXTRA_LD_OPTIONS$ac_delim
22193 CLANG_SRC_ROOT!$CLANG_SRC_ROOT$ac_delim
22194 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
22195 INTERNAL_PREFIX!$INTERNAL_PREFIX$ac_delim
22197 ifGNUmake!$ifGNUmake$ac_delim
22198 LN_S!$LN_S$ac_delim
22201 DATE!$DATE$ac_delim
22202 FIND!$FIND$ac_delim
22203 MKDIR!$MKDIR$ac_delim
22205 RANLIB!$RANLIB$ac_delim
22210 BINPWD!$BINPWD$ac_delim
22211 GRAPHVIZ!$GRAPHVIZ$ac_delim
22214 NEATO!$NEATO$ac_delim
22215 TWOPI!$TWOPI$ac_delim
22216 CIRCO!$CIRCO$ac_delim
22218 DOTTY!$DOTTY$ac_delim
22219 XDOT_PY!$XDOT_PY$ac_delim
22220 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
22221 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
22222 INSTALL_DATA!$INSTALL_DATA$ac_delim
22223 BZIP2!$BZIP2$ac_delim
22225 DOXYGEN!$DOXYGEN$ac_delim
22226 GROFF!$GROFF$ac_delim
22227 GZIPBIN!$GZIPBIN$ac_delim
22228 POD2HTML!$POD2HTML$ac_delim
22229 POD2MAN!$POD2MAN$ac_delim
22230 PDFROFF!$PDFROFF$ac_delim
22231 RUNTEST!$RUNTEST$ac_delim
22232 TCLSH!$TCLSH$ac_delim
22234 OCAMLC!$OCAMLC$ac_delim
22235 OCAMLOPT!$OCAMLOPT$ac_delim
22236 OCAMLDEP!$OCAMLDEP$ac_delim
22237 OCAMLDOC!$OCAMLDOC$ac_delim
22239 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
22240 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
22241 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
22242 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
22243 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
22244 LIBADD_DL!$LIBADD_DL$ac_delim
22245 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
22246 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
22247 COVERED_SWITCH_DEFAULT!$COVERED_SWITCH_DEFAULT$ac_delim
22248 USE_UDIS86!$USE_UDIS86$ac_delim
22249 USE_OPROFILE!$USE_OPROFILE$ac_delim
22250 USE_INTEL_JITEVENTS!$USE_INTEL_JITEVENTS$ac_delim
22251 INTEL_JITEVENTS_INCDIR!$INTEL_JITEVENTS_INCDIR$ac_delim
22252 INTEL_JITEVENTS_LIBDIR!$INTEL_JITEVENTS_LIBDIR$ac_delim
22253 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
22254 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
22255 MMAP_FILE!$MMAP_FILE$ac_delim
22256 SHLIBEXT!$SHLIBEXT$ac_delim
22257 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
22258 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
22259 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
22260 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
22261 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
22262 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
22263 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
22264 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
22265 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
22266 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
22267 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
22268 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
22269 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
22270 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
22271 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22272 RPATH!$RPATH$ac_delim
22273 RDYNAMIC!$RDYNAMIC$ac_delim
22274 LIBOBJS!$LIBOBJS$ac_delim
22275 LTLIBOBJS!$LTLIBOBJS$ac_delim
22278 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
22280 elif $ac_last_try; then
22281 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22282 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22283 { (exit 1); exit 1; }; }
22285 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22289 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22290 if test -n "$ac_eof"; then
22291 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
22292 ac_eof=`expr $ac_eof + 1`
22295 cat >>$CONFIG_STATUS <<_ACEOF
22296 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22297 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22300 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22301 s/^/s,@/; s/!/@,|#_!!_#|/
22304 s/'"$ac_delim"'$/,g/; t
22306 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22307 ' >>$CONFIG_STATUS <conf$$subs.sed
22308 rm -f conf$$subs.sed
22309 cat >>$CONFIG_STATUS <<_ACEOF
22316 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22317 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22318 # trailing colons and then remove the whole line if VPATH becomes empty
22319 # (actually we leave an empty line to preserve line numbers).
22320 if test "x$srcdir" = x.; then
22321 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22322 s/:*\$(srcdir):*/:/
22323 s/:*\${srcdir}:*/:/
22325 s/^\([^=]*=[ ]*\):*/\1/
22331 cat >>$CONFIG_STATUS <<\_ACEOF
22332 fi # test -n "$CONFIG_FILES"
22335 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
22338 :[FHLC]) ac_mode=$ac_tag; continue;;
22340 case $ac_mode$ac_tag in
22342 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22343 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22344 { (exit 1); exit 1; }; };;
22345 :[FH]-) ac_tag=-:-;;
22346 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22363 -) ac_f="$tmp/stdin";;
22364 *) # Look for the file first in the build tree, then in the source tree
22365 # (if the path is not absolute). The absolute path cannot be DOS-style,
22366 # because $ac_f cannot contain `:'.
22370 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22372 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22373 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22374 { (exit 1); exit 1; }; };;
22376 ac_file_inputs="$ac_file_inputs $ac_f"
22379 # Let's still pretend it is `configure' which instantiates (i.e., don't
22380 # use $as_me), people would be surprised to read:
22381 # /* config.h. Generated by config.status. */
22382 configure_input="Generated from "`IFS=:
22383 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22384 if test x"$ac_file" != x-; then
22385 configure_input="$ac_file. $configure_input"
22386 { echo "$as_me:$LINENO: creating $ac_file" >&5
22387 echo "$as_me: creating $ac_file" >&6;}
22391 *:-:* | *:-) cat >"$tmp/stdin";;
22396 ac_dir=`$as_dirname -- "$ac_file" ||
22397 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22398 X"$ac_file" : 'X\(//\)[^/]' \| \
22399 X"$ac_file" : 'X\(//\)$' \| \
22400 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22402 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22406 /^X\(\/\/\)[^/].*/{
22421 -*) as_dir=./$as_dir;;
22423 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22427 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22428 *) as_qdir=$as_dir;;
22430 as_dirs="'$as_qdir' $as_dirs"
22431 as_dir=`$as_dirname -- "$as_dir" ||
22432 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22433 X"$as_dir" : 'X\(//\)[^/]' \| \
22434 X"$as_dir" : 'X\(//\)$' \| \
22435 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22441 /^X\(\/\/\)[^/].*/{
22454 test -d "$as_dir" && break
22456 test -z "$as_dirs" || eval "mkdir $as_dirs"
22457 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22458 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22459 { (exit 1); exit 1; }; }; }
22463 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22465 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22466 # A ".." for each directory in $ac_dir_suffix.
22467 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22468 case $ac_top_builddir_sub in
22469 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22470 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22473 ac_abs_top_builddir=$ac_pwd
22474 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22475 # for backward compatibility:
22476 ac_top_builddir=$ac_top_build_prefix
22479 .) # We are building in place.
22481 ac_top_srcdir=$ac_top_builddir_sub
22482 ac_abs_top_srcdir=$ac_pwd ;;
22483 [\\/]* | ?:[\\/]* ) # Absolute name.
22484 ac_srcdir=$srcdir$ac_dir_suffix;
22485 ac_top_srcdir=$srcdir
22486 ac_abs_top_srcdir=$srcdir ;;
22487 *) # Relative name.
22488 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22489 ac_top_srcdir=$ac_top_build_prefix$srcdir
22490 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22492 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22502 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22503 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22507 cat >>$CONFIG_STATUS <<\_ACEOF
22508 # If the template does not know about datarootdir, expand it.
22509 # FIXME: This hack should be removed a few years after 2.60.
22510 ac_datarootdir_hack=; ac_datarootdir_seen=
22512 case `sed -n '/datarootdir/ {
22521 ' $ac_file_inputs` in
22522 *datarootdir*) ac_datarootdir_seen=yes;;
22523 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22524 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22525 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22527 cat >>$CONFIG_STATUS <<_ACEOF
22528 ac_datarootdir_hack='
22529 s&@datadir@&$datadir&g
22530 s&@docdir@&$docdir&g
22531 s&@infodir@&$infodir&g
22532 s&@localedir@&$localedir&g
22533 s&@mandir@&$mandir&g
22534 s&\\\${datarootdir}&$datarootdir&g' ;;
22538 # Neutralize VPATH when `$srcdir' = `.'.
22539 # Shell code in configure.ac might set extrasub.
22540 # FIXME: do we really want to maintain this feature?
22541 cat >>$CONFIG_STATUS <<_ACEOF
22545 cat >>$CONFIG_STATUS <<\_ACEOF
22547 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22548 s&@configure_input@&$configure_input&;t t
22549 s&@top_builddir@&$ac_top_builddir_sub&;t t
22550 s&@srcdir@&$ac_srcdir&;t t
22551 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22552 s&@top_srcdir@&$ac_top_srcdir&;t t
22553 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22554 s&@builddir@&$ac_builddir&;t t
22555 s&@abs_builddir@&$ac_abs_builddir&;t t
22556 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22557 s&@INSTALL@&$ac_INSTALL&;t t
22558 $ac_datarootdir_hack
22559 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22561 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22562 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22563 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22564 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22565 which seems to be undefined. Please make sure it is defined." >&5
22566 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22567 which seems to be undefined. Please make sure it is defined." >&2;}
22571 -) cat "$tmp/out"; rm -f "$tmp/out";;
22572 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22581 # Transform confdefs.h into a sed script `conftest.defines', that
22582 # substitutes the proper values into config.h.in to produce config.h.
22583 rm -f conftest.defines conftest.tail
22584 # First, append a space to every undef/define line, to ease matching.
22585 echo 's/$/ /' >conftest.defines
22586 # Then, protect against being on the right side of a sed subst, or in
22587 # an unquoted here document, in config.status. If some macros were
22588 # called several times there might be several #defines for the same
22589 # symbol, which is useless. But do not sort them, since the last
22590 # AC_DEFINE must be honored.
22591 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22592 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22593 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22594 # PARAMS is the parameter list in the macro definition--in most cases, it's
22595 # just an empty string.
22596 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22597 ac_dB='\\)[ (].*,\\1define\\2'
22605 s/^[ ]*#[ ]*define[ ][ ]*//
22610 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22611 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22612 ' >>conftest.defines
22614 # Remove the space that was appended to ease matching.
22615 # Then replace #undef with comments. This is necessary, for
22616 # example, in the case of _POSIX_SOURCE, which is predefined and required
22617 # on some systems where configure will not decide to define it.
22618 # (The regexp can be short, since the line contains either #define or #undef.)
22620 s,^[ #]*u.*,/* & */,' >>conftest.defines
22622 # Break up conftest.defines:
22623 ac_max_sed_lines=50
22625 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22626 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22627 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22629 ac_in='$ac_file_inputs'
22630 ac_out='"$tmp/out1"'
22631 ac_nxt='"$tmp/out2"'
22635 # Write a here document:
22636 cat >>$CONFIG_STATUS <<_ACEOF
22637 # First, check the format of the line:
22638 cat >"\$tmp/defines.sed" <<\\CEOF
22639 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22640 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22644 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22646 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22647 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22648 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22649 grep . conftest.tail >/dev/null || break
22650 rm -f conftest.defines
22651 mv conftest.tail conftest.defines
22653 rm -f conftest.defines conftest.tail
22655 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22656 cat >>$CONFIG_STATUS <<\_ACEOF
22657 if test x"$ac_file" != x-; then
22658 echo "/* $configure_input */" >"$tmp/config.h"
22659 cat "$ac_result" >>"$tmp/config.h"
22660 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22661 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22662 echo "$as_me: $ac_file is unchanged" >&6;}
22665 mv "$tmp/config.h" $ac_file
22668 echo "/* $configure_input */"
22674 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22675 echo "$as_me: executing $ac_file commands" >&6;}
22680 case $ac_file$ac_mode in
22681 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22682 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22683 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22684 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22685 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22686 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22687 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22688 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22689 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22690 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22691 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22692 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22693 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22694 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22695 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22696 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22697 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22698 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22699 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22700 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22701 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22702 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22703 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22704 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22705 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22706 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22712 { (exit 0); exit 0; }
22714 chmod +x $CONFIG_STATUS
22715 ac_clean_files=$ac_clean_files_save
22718 # configure is writing to config.log, and then calls config.status.
22719 # config.status does its own redirection, appending to config.log.
22720 # Unfortunately, on DOS this fails, as config.log is still kept open
22721 # by configure, so config.status won't be able to write to it; its
22722 # output is simply discarded. So we exec the FD to /dev/null,
22723 # effectively closing config.log, so it can be properly (re)opened and
22724 # appended to by config.status. When coming back to configure, we
22725 # need to make the FD available again.
22726 if test "$no_create" != yes; then
22728 ac_config_status_args=
22729 test "$silent" = yes &&
22730 ac_config_status_args="$ac_config_status_args --quiet"
22732 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22734 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22735 # would make configure fail if this is the last instruction.
22736 $ac_cs_success || { (exit 1); exit 1; }
22740 # CONFIG_SUBDIRS section.
22742 if test "$no_recursion" != yes; then
22744 # Remove --cache-file and --srcdir arguments so they do not pile up.
22745 ac_sub_configure_args=
22747 eval "set x $ac_configure_args"
22751 if test -n "$ac_prev"; then
22756 -cache-file | --cache-file | --cache-fil | --cache-fi \
22757 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22758 ac_prev=cache_file ;;
22759 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22760 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22763 --config-cache | -C)
22765 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22767 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22769 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22771 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22775 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22777 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22781 # Always prepend --prefix to ensure using the same prefix
22782 # in subdir configurations.
22783 ac_arg="--prefix=$prefix"
22785 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22787 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22790 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22792 # Do not complain, so a configure script can configure whichever
22793 # parts of a large source tree are present.
22794 test -d "$srcdir/$ac_dir" || continue
22796 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22797 echo "$as_me:$LINENO: $ac_msg" >&5
22801 -*) as_dir=./$as_dir;;
22803 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22807 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22808 *) as_qdir=$as_dir;;
22810 as_dirs="'$as_qdir' $as_dirs"
22811 as_dir=`$as_dirname -- "$as_dir" ||
22812 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22813 X"$as_dir" : 'X\(//\)[^/]' \| \
22814 X"$as_dir" : 'X\(//\)$' \| \
22815 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22817 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22821 /^X\(\/\/\)[^/].*/{
22834 test -d "$as_dir" && break
22836 test -z "$as_dirs" || eval "mkdir $as_dirs"
22837 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22838 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22839 { (exit 1); exit 1; }; }; }
22843 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22845 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22846 # A ".." for each directory in $ac_dir_suffix.
22847 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22848 case $ac_top_builddir_sub in
22849 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22850 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22853 ac_abs_top_builddir=$ac_pwd
22854 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22855 # for backward compatibility:
22856 ac_top_builddir=$ac_top_build_prefix
22859 .) # We are building in place.
22861 ac_top_srcdir=$ac_top_builddir_sub
22862 ac_abs_top_srcdir=$ac_pwd ;;
22863 [\\/]* | ?:[\\/]* ) # Absolute name.
22864 ac_srcdir=$srcdir$ac_dir_suffix;
22865 ac_top_srcdir=$srcdir
22866 ac_abs_top_srcdir=$srcdir ;;
22867 *) # Relative name.
22868 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22869 ac_top_srcdir=$ac_top_build_prefix$srcdir
22870 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22872 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22877 # Check for guested configure; otherwise get Cygnus style configure.
22878 if test -f "$ac_srcdir/configure.gnu"; then
22879 ac_sub_configure=$ac_srcdir/configure.gnu
22880 elif test -f "$ac_srcdir/configure"; then
22881 ac_sub_configure=$ac_srcdir/configure
22882 elif test -f "$ac_srcdir/configure.in"; then
22883 # This should be Cygnus configure.
22884 ac_sub_configure=$ac_aux_dir/configure
22886 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22887 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22891 # The recursion is here.
22892 if test -n "$ac_sub_configure"; then
22893 # Make the cache file name correct relative to the subdirectory.
22894 case $cache_file in
22895 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22896 *) # Relative name.
22897 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22900 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22901 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22902 # The eval makes quoting arguments work.
22903 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22904 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22905 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22906 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22907 { (exit 1); exit 1; }; }