2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for LLVM 3.5svn.
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-2014 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.5svn'
565 PACKAGE_STRING='LLVM 3.5svn'
566 PACKAGE_BUGREPORT='http://llvm.org/bugs/'
568 ac_unique_file="lib/IR/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
687 ENABLE_CLANG_STATIC_ANALYZER
688 ENABLE_CLANG_REWRITER
693 ENABLE_EXPENSIVE_CHECKS
711 LLVM_ENUM_ASM_PRINTERS
712 LLVM_ENUM_ASM_PARSERS
713 LLVM_ENUM_DISASSEMBLERS
760 HAVE_LINK_VERSION_SCRIPT
764 CONVENIENCE_LTDL_TRUE
765 CONVENIENCE_LTDL_FALSE
768 NO_MISSING_FIELD_INITIALIZERS
769 COVERED_SWITCH_DEFAULT
770 NO_MAYBE_UNINITIALIZED
798 ENABLE_VISIBILITY_INLINES_HIDDEN
805 ac_precious_vars='build_alias
817 ac_subdirs_all='projects/test-suite
820 projects/llvm-poolalloc
826 # Initialize some variables set by options.
828 ac_init_version=false
829 # The variables have the same names as the options, with
830 # dashes changed to underlines.
838 program_transform_name=s,x,x,
846 # Installation directory options.
847 # These are left unexpanded so users can "make install exec_prefix=/foo"
848 # and all the variables that are supposed to be based on exec_prefix
849 # by default will actually change.
850 # Use braces instead of parens because sh, perl, etc. also accept them.
851 # (The list follows the same order as the GNU Coding Standards.)
852 bindir='${exec_prefix}/bin'
853 sbindir='${exec_prefix}/sbin'
854 libexecdir='${exec_prefix}/libexec'
855 datarootdir='${prefix}/share'
856 datadir='${datarootdir}'
857 sysconfdir='${prefix}/etc'
858 sharedstatedir='${prefix}/com'
859 localstatedir='${prefix}/var'
860 includedir='${prefix}/include'
861 oldincludedir='/usr/include'
862 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
863 infodir='${datarootdir}/info'
868 libdir='${exec_prefix}/lib'
869 localedir='${datarootdir}/locale'
870 mandir='${datarootdir}/man'
876 # If the previous option needs an argument, assign it.
877 if test -n "$ac_prev"; then
878 eval $ac_prev=\$ac_option
884 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
888 # Accept the important Cygnus configure options, so we can diagnose typos.
890 case $ac_dashdash$ac_option in
894 -bindir | --bindir | --bindi | --bind | --bin | --bi)
896 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 -build | --build | --buil | --bui | --bu)
900 ac_prev=build_alias ;;
901 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
902 build_alias=$ac_optarg ;;
904 -cache-file | --cache-file | --cache-fil | --cache-fi \
905 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
906 ac_prev=cache_file ;;
907 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
908 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
909 cache_file=$ac_optarg ;;
912 cache_file=config.cache ;;
914 -datadir | --datadir | --datadi | --datad)
916 -datadir=* | --datadir=* | --datadi=* | --datad=*)
917 datadir=$ac_optarg ;;
919 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
920 | --dataroo | --dataro | --datar)
921 ac_prev=datarootdir ;;
922 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
923 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
924 datarootdir=$ac_optarg ;;
926 -disable-* | --disable-*)
927 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
928 # Reject names that are not valid shell variable names.
929 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
930 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
931 { (exit 1); exit 1; }; }
932 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
933 eval enable_$ac_feature=no ;;
935 -docdir | --docdir | --docdi | --doc | --do)
937 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
940 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
942 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
945 -enable-* | --enable-*)
946 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
947 # Reject names that are not valid shell variable names.
948 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
949 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
950 { (exit 1); exit 1; }; }
951 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
952 eval enable_$ac_feature=\$ac_optarg ;;
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
967 -help | --help | --hel | --he | -h)
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
983 htmldir=$ac_optarg ;;
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
997 -libdir | --libdir | --libdi | --libd)
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1088 -psdir | --psdir | --psdi | --psd | --ps)
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1101 sbindir=$ac_optarg ;;
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1112 sharedstatedir=$ac_optarg ;;
1114 -site | --site | --sit)
1116 -site=* | --site=* | --sit=*)
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1143 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1146 { echo "$as_me: error: invalid package name: $ac_package" >&2
1147 { (exit 1); exit 1; }; }
1148 ac_package=`echo $ac_package| sed 's/-/_/g'`
1149 eval with_$ac_package=\$ac_optarg ;;
1151 -without-* | --without-*)
1152 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1153 # Reject names that are not valid shell variable names.
1154 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1155 { echo "$as_me: error: invalid package name: $ac_package" >&2
1156 { (exit 1); exit 1; }; }
1157 ac_package=`echo $ac_package | sed 's/-/_/g'`
1158 eval with_$ac_package=no ;;
1161 # Obsolete; use --with-x.
1164 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1165 | --x-incl | --x-inc | --x-in | --x-i)
1166 ac_prev=x_includes ;;
1167 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1168 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1169 x_includes=$ac_optarg ;;
1171 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1172 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1173 ac_prev=x_libraries ;;
1174 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1175 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1176 x_libraries=$ac_optarg ;;
1178 -*) { echo "$as_me: error: unrecognized option: $ac_option
1179 Try \`$0 --help' for more information." >&2
1180 { (exit 1); exit 1; }; }
1184 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1185 # Reject names that are not valid shell variable names.
1186 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1187 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1188 { (exit 1); exit 1; }; }
1189 eval $ac_envvar=\$ac_optarg
1190 export $ac_envvar ;;
1193 # FIXME: should be removed in autoconf 3.0.
1194 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1195 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1196 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1197 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1203 if test -n "$ac_prev"; then
1204 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1205 { echo "$as_me: error: missing argument to $ac_option" >&2
1206 { (exit 1); exit 1; }; }
1209 # Be sure to have absolute directory names.
1210 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1211 datadir sysconfdir sharedstatedir localstatedir includedir \
1212 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1213 libdir localedir mandir
1215 eval ac_val=\$$ac_var
1217 [\\/$]* | ?:[\\/]* ) continue;;
1218 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1221 { (exit 1); exit 1; }; }
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1229 target=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1236 If a cross compiler is detected then cross compile mode will be used." >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245 test "$silent" = yes && exec 6>/dev/null
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 { echo "$as_me: error: Working directory cannot be determined" >&2
1252 { (exit 1); exit 1; }; }
1253 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1254 { echo "$as_me: error: pwd does not report name of working directory" >&2
1255 { (exit 1); exit 1; }; }
1258 # Find the source files, if location was not specified.
1259 if test -z "$srcdir"; then
1260 ac_srcdir_defaulted=yes
1261 # Try the directory containing this script, then the parent directory.
1262 ac_confdir=`$as_dirname -- "$0" ||
1263 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1264 X"$0" : 'X\(//\)[^/]' \| \
1265 X"$0" : 'X\(//\)$' \| \
1266 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 if test ! -r "$srcdir/$ac_unique_file"; then
1290 ac_srcdir_defaulted=no
1292 if test ! -r "$srcdir/$ac_unique_file"; then
1293 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1294 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1295 { (exit 1); exit 1; }; }
1297 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1299 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1300 { (exit 1); exit 1; }; }
1302 # When building in place, set srcdir=.
1303 if test "$ac_abs_confdir" = "$ac_pwd"; then
1306 # Remove unnecessary trailing slashes from srcdir.
1307 # Double slashes in file names in object file debugging info
1308 # mess up M-x gdb in Emacs.
1310 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 for ac_var in $ac_precious_vars; do
1313 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1314 eval ac_env_${ac_var}_value=\$${ac_var}
1315 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1316 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1320 # Report the --help message.
1322 if test "$ac_init_help" = "long"; then
1323 # Omit some internal or obsolete options to make the list less imposing.
1324 # This message is too long to be a string in the A/UX 3.1 sh.
1326 \`configure' configures LLVM 3.5svn to adapt to many kinds of systems.
1328 Usage: $0 [OPTION]... [VAR=VALUE]...
1330 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1331 VAR=VALUE. See below for descriptions of some of the useful variables.
1333 Defaults for the options are specified in brackets.
1336 -h, --help display this help and exit
1337 --help=short display options specific to this package
1338 --help=recursive display the short help of all the included packages
1339 -V, --version display version information and exit
1340 -q, --quiet, --silent do not print \`checking...' messages
1341 --cache-file=FILE cache test results in FILE [disabled]
1342 -C, --config-cache alias for \`--cache-file=config.cache'
1343 -n, --no-create do not create output files
1344 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1346 Installation directories:
1347 --prefix=PREFIX install architecture-independent files in PREFIX
1348 [$ac_default_prefix]
1349 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1352 By default, \`make install' will install all the files in
1353 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1354 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1355 for instance \`--prefix=\$HOME'.
1357 For better control, use the options below.
1359 Fine tuning of the installation directories:
1360 --bindir=DIR user executables [EPREFIX/bin]
1361 --sbindir=DIR system admin executables [EPREFIX/sbin]
1362 --libexecdir=DIR program executables [EPREFIX/libexec]
1363 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1364 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1365 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1366 --libdir=DIR object code libraries [EPREFIX/lib]
1367 --includedir=DIR C header files [PREFIX/include]
1368 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1369 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1370 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1371 --infodir=DIR info documentation [DATAROOTDIR/info]
1372 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1373 --mandir=DIR man documentation [DATAROOTDIR/man]
1374 --docdir=DIR documentation root [DATAROOTDIR/doc/llvm]
1375 --htmldir=DIR html documentation [DOCDIR]
1376 --dvidir=DIR dvi documentation [DOCDIR]
1377 --pdfdir=DIR pdf documentation [DOCDIR]
1378 --psdir=DIR ps documentation [DOCDIR]
1384 --build=BUILD configure for building on BUILD [guessed]
1385 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1386 --target=TARGET configure for building compilers for TARGET [HOST]
1390 if test -n "$ac_init_help"; then
1391 case $ac_init_help in
1392 short | recursive ) echo "Configuration of LLVM 3.5svn:";;
1397 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1398 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1399 --enable-polly Use polly if available (default is YES)
1400 --enable-libcpp Use libc++ if available (default is NO)
1401 --enable-cxx11 Use c++11 if available (default is NO)
1402 --enable-split-dwarf Use split-dwarf if available (default is NO)
1403 --enable-clang-arcmt Enable building of clang ARCMT (default is YES)
1404 --enable-clang-static-analyzer
1405 Enable building of clang Static Analyzer (default is
1407 --enable-clang-rewriter Enable building of clang rewriter (default is YES)
1408 --enable-optimized Compile with optimizations enabled (default is NO)
1409 --enable-profiling Compile with profiling enabled (default is NO)
1410 --enable-assertions Compile with assertion checks enabled (default is
1412 --enable-werror Compile with -Werror enabled (default is NO)
1413 --enable-expensive-checks
1414 Compile with expensive debug checks enabled (default
1416 --enable-debug-runtime Build runtime libs with debug symbols (default is
1418 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1419 optimization is on and YES if it's off)
1420 --enable-keep-symbols Do not strip installed executables)
1421 --enable-jit Enable Just In Time Compiling (default is YES)
1422 --enable-docs Build documents (default is YES)
1423 --enable-doxygen Build doxygen documentation (default is NO)
1424 --enable-threads Use threads if available (default is YES)
1425 --enable-pthreads Use pthreads if available (default is YES)
1426 --enable-zlib Use zlib for compression/decompression if available
1428 --enable-pic Build LLVM with Position Independent Code (default
1430 --enable-shared Build a shared library and link tools against it
1432 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1433 Win32 DLL (default is NO)
1434 --enable-timestamps Enable embedding timestamp information in build
1436 --enable-backtraces Enable embedding backtraces on crash (default is
1438 --enable-crash-overrides
1439 Enable crash handling overrides (default is YES)
1440 --enable-targets Build specific host targets: all or
1441 target1,target2,... Valid targets are: host, x86,
1442 x86_64, sparc, powerpc, arm, aarch64, mips, hexagon,
1443 xcore, msp430, nvptx, systemz, r600, and cpp
1445 --enable-experimental-targets
1446 Build experimental host targets: disable or
1447 target1,target2,... (default=disable)
1448 --enable-bindings Build specific language bindings:
1449 all,auto,none,{binding-name} (default=auto)
1450 --enable-terminfo Query the terminfo database if available (default is
1452 --enable-libffi Check for the presence of libffi (default is NO)
1453 --enable-ltdl-install install libltdl
1456 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1457 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1458 --with-optimize-option Select the compiler options to use for optimized
1460 --with-extra-options Specify additional options to compile LLVM with
1461 --with-extra-ld-options Specify additional options to link LLVM with
1462 --with-ocaml-libdir Specify install location for ocaml bindings (default
1464 --with-clang-srcdir Directory to the out-of-tree Clang source
1465 --with-clang-resource-dir
1466 Relative directory from the Clang binary for
1468 --with-c-include-dirs Colon separated list of directories clang will
1470 --with-gcc-toolchain Directory where gcc is installed.
1471 --with-default-sysroot Add --sysroot=<path> to all compiler invocations.
1472 --with-binutils-include Specify path to binutils/include/ containing
1473 plugin-api.h file for gold plugin.
1474 --with-bug-report-url Specify the URL where bug reports should be
1475 submitted (default=http://llvm.org/bugs/)
1476 --with-internal-prefix Installation directory for internal files
1477 --with-python path to python
1478 --with-udis86=<path> Use udis86 external x86 disassembler library
1479 --with-oprofile=<prefix>
1480 Tell OProfile >= 0.9.4 how to symbolize JIT output
1481 --with-intel-jitevents Notify Intel JIT profiling API of generated code
1484 Some influential environment variables:
1485 CC C compiler command
1486 CFLAGS C compiler flags
1487 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1488 nonstandard directory <lib dir>
1489 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1490 you have headers in a nonstandard directory <include dir>
1491 CXX C++ compiler command
1492 CXXFLAGS C++ compiler flags
1494 CXXCPP C++ preprocessor
1496 Use these variables to override the choices made by `configure' or to help
1497 it to find libraries and programs with nonstandard names/locations.
1499 Report bugs to <http://llvm.org/bugs/>.
1504 if test "$ac_init_help" = "recursive"; then
1505 # If there are subdirs, report their specific --help.
1506 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1507 test -d "$ac_dir" || continue
1511 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1514 # A ".." for each directory in $ac_dir_suffix.
1515 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1516 case $ac_top_builddir_sub in
1517 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1518 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1521 ac_abs_top_builddir=$ac_pwd
1522 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1523 # for backward compatibility:
1524 ac_top_builddir=$ac_top_build_prefix
1527 .) # We are building in place.
1529 ac_top_srcdir=$ac_top_builddir_sub
1530 ac_abs_top_srcdir=$ac_pwd ;;
1531 [\\/]* | ?:[\\/]* ) # Absolute name.
1532 ac_srcdir=$srcdir$ac_dir_suffix;
1533 ac_top_srcdir=$srcdir
1534 ac_abs_top_srcdir=$srcdir ;;
1536 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1537 ac_top_srcdir=$ac_top_build_prefix$srcdir
1538 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1540 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1542 cd "$ac_dir" || { ac_status=$?; continue; }
1543 # Check for guested configure.
1544 if test -f "$ac_srcdir/configure.gnu"; then
1546 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1547 elif test -f "$ac_srcdir/configure"; then
1549 $SHELL "$ac_srcdir/configure" --help=recursive
1551 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1553 cd "$ac_pwd" || { ac_status=$?; break; }
1557 test -n "$ac_init_help" && exit $ac_status
1558 if $ac_init_version; then
1560 LLVM configure 3.5svn
1561 generated by GNU Autoconf 2.60
1563 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1564 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1568 Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign.
1572 cat >config.log <<_ACEOF
1573 This file contains any messages produced by compilers while
1574 running configure, to aid debugging if configure makes a mistake.
1576 It was created by LLVM $as_me 3.5svn, which was
1577 generated by GNU Autoconf 2.60. Invocation command line was
1589 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1590 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1591 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1592 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1593 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1595 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1596 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1598 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1599 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1600 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1601 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1602 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1603 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1604 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1612 test -z "$as_dir" && as_dir=.
1613 echo "PATH: $as_dir"
1629 # Keep a trace of the command line.
1630 # Strip out --no-create and --no-recursion so they do not pile up.
1631 # Strip out --silent because we don't want to record it for future runs.
1632 # Also quote any args containing shell meta-characters.
1633 # Make two passes to allow for proper duplicate-argument suppression.
1637 ac_must_keep_next=false
1643 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1644 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1645 | -silent | --silent | --silen | --sile | --sil)
1648 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1651 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1653 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1654 if test $ac_must_keep_next = true; then
1655 ac_must_keep_next=false # Got value, back to normal.
1658 *=* | --config-cache | -C | -disable-* | --disable-* \
1659 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1660 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1661 | -with-* | --with-* | -without-* | --without-* | --x)
1662 case "$ac_configure_args0 " in
1663 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1666 -* ) ac_must_keep_next=true ;;
1669 ac_configure_args="$ac_configure_args '$ac_arg'"
1674 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1675 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1677 # When interrupted or exit'd, cleanup temporary files, and complete
1678 # config.log. We remove comments because anyway the quotes in there
1679 # would cause problems or look ugly.
1680 # WARNING: Use '\'' to represent an apostrophe within the trap.
1681 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1682 trap 'exit_status=$?
1683 # Save into config.log some information that might help in debugging.
1688 ## ---------------- ##
1689 ## Cache variables. ##
1690 ## ---------------- ##
1693 # The following way of writing the cache mishandles newlines in values,
1695 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1696 eval ac_val=\$$ac_var
1700 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1701 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1704 _ | IFS | as_nl) ;; #(
1705 *) $as_unset $ac_var ;;
1710 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1711 *${as_nl}ac_space=\ *)
1713 "s/'\''/'\''\\\\'\'''\''/g;
1714 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1717 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1725 ## ----------------- ##
1726 ## Output variables. ##
1727 ## ----------------- ##
1730 for ac_var in $ac_subst_vars
1732 eval ac_val=\$$ac_var
1734 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1736 echo "$ac_var='\''$ac_val'\''"
1740 if test -n "$ac_subst_files"; then
1742 ## ------------------- ##
1743 ## File substitutions. ##
1744 ## ------------------- ##
1747 for ac_var in $ac_subst_files
1749 eval ac_val=\$$ac_var
1751 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1753 echo "$ac_var='\''$ac_val'\''"
1758 if test -s confdefs.h; then
1768 test "$ac_signal" != 0 &&
1769 echo "$as_me: caught signal $ac_signal"
1770 echo "$as_me: exit $exit_status"
1772 rm -f core *.core core.conftest.* &&
1773 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1776 for ac_signal in 1 2 13 15; do
1777 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1781 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1782 rm -f -r conftest* confdefs.h
1784 # Predefined preprocessor variables.
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_NAME "$PACKAGE_NAME"
1791 cat >>confdefs.h <<_ACEOF
1792 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1796 cat >>confdefs.h <<_ACEOF
1797 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1801 cat >>confdefs.h <<_ACEOF
1802 #define PACKAGE_STRING "$PACKAGE_STRING"
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1811 # Let the site file select an alternate cache file if it wants to.
1812 # Prefer explicitly selected file to automatically selected ones.
1813 if test -n "$CONFIG_SITE"; then
1814 set x "$CONFIG_SITE"
1815 elif test "x$prefix" != xNONE; then
1816 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1818 set x "$ac_default_prefix/share/config.site" \
1819 "$ac_default_prefix/etc/config.site"
1824 if test -r "$ac_site_file"; then
1825 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1826 echo "$as_me: loading site script $ac_site_file" >&6;}
1827 sed 's/^/| /' "$ac_site_file" >&5
1832 if test -r "$cache_file"; then
1833 # Some versions of bash will fail to source /dev/null (special
1834 # files actually), so we avoid doing that.
1835 if test -f "$cache_file"; then
1836 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1837 echo "$as_me: loading cache $cache_file" >&6;}
1839 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1840 *) . "./$cache_file";;
1844 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1845 echo "$as_me: creating cache $cache_file" >&6;}
1849 # Check that the precious variables saved in the cache have kept the same
1851 ac_cache_corrupted=false
1852 for ac_var in $ac_precious_vars; do
1853 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1854 eval ac_new_set=\$ac_env_${ac_var}_set
1855 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1856 eval ac_new_val=\$ac_env_${ac_var}_value
1857 case $ac_old_set,$ac_new_set in
1859 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1860 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1861 ac_cache_corrupted=: ;;
1863 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1864 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1865 ac_cache_corrupted=: ;;
1868 if test "x$ac_old_val" != "x$ac_new_val"; then
1869 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1870 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1871 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1872 echo "$as_me: former value: $ac_old_val" >&2;}
1873 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1874 echo "$as_me: current value: $ac_new_val" >&2;}
1875 ac_cache_corrupted=:
1878 # Pass precious variables to config.status.
1879 if test "$ac_new_set" = set; then
1881 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1882 *) ac_arg=$ac_var=$ac_new_val ;;
1884 case " $ac_configure_args " in
1885 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1886 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1890 if $ac_cache_corrupted; then
1891 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1892 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1893 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1894 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1895 { (exit 1); exit 1; }; }
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1930 cat >>confdefs.h <<\_ACEOF
1931 #define LLVM_VERSION_MAJOR 3
1935 cat >>confdefs.h <<\_ACEOF
1936 #define LLVM_VERSION_MINOR 5
1940 LLVM_COPYRIGHT="Copyright (c) 2003-2014 University of Illinois at Urbana-Champaign."
1949 for ac_dir in autoconf "$srcdir"/autoconf; do
1950 if test -f "$ac_dir/install-sh"; then
1952 ac_install_sh="$ac_aux_dir/install-sh -c"
1954 elif test -f "$ac_dir/install.sh"; then
1956 ac_install_sh="$ac_aux_dir/install.sh -c"
1958 elif test -f "$ac_dir/shtool"; then
1960 ac_install_sh="$ac_aux_dir/shtool install -c"
1964 if test -z "$ac_aux_dir"; then
1965 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1966 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1967 { (exit 1); exit 1; }; }
1970 # These three variables are undocumented and unsupported,
1971 # and are intended to be withdrawn in a future Autoconf release.
1972 # They can cause serious problems if a builder's source tree is in a directory
1973 # whose full name contains unusual characters.
1974 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1975 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1976 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1980 if test ${srcdir} != "." ; then
1981 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1982 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1983 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1984 { (exit 1); exit 1; }; }
1992 ac_cpp='$CPP $CPPFLAGS'
1993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1996 if test -n "$ac_tool_prefix"; then
1997 for ac_prog in clang gcc
1999 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2000 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2003 if test "${ac_cv_prog_CC+set}" = set; then
2004 echo $ECHO_N "(cached) $ECHO_C" >&6
2006 if test -n "$CC"; then
2007 ac_cv_prog_CC="$CC" # Let the user override the test.
2009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2013 test -z "$as_dir" && as_dir=.
2014 for ac_exec_ext in '' $ac_executable_extensions; do
2015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2016 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2027 if test -n "$CC"; then
2028 { echo "$as_me:$LINENO: result: $CC" >&5
2029 echo "${ECHO_T}$CC" >&6; }
2031 { echo "$as_me:$LINENO: result: no" >&5
2032 echo "${ECHO_T}no" >&6; }
2036 test -n "$CC" && break
2039 if test -z "$CC"; then
2041 for ac_prog in clang gcc
2043 # Extract the first word of "$ac_prog", so it can be a program name with args.
2044 set dummy $ac_prog; ac_word=$2
2045 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2046 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2047 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2048 echo $ECHO_N "(cached) $ECHO_C" >&6
2050 if test -n "$ac_ct_CC"; then
2051 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057 test -z "$as_dir" && as_dir=.
2058 for ac_exec_ext in '' $ac_executable_extensions; do
2059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2060 ac_cv_prog_ac_ct_CC="$ac_prog"
2061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2070 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2071 if test -n "$ac_ct_CC"; then
2072 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2073 echo "${ECHO_T}$ac_ct_CC" >&6; }
2075 { echo "$as_me:$LINENO: result: no" >&5
2076 echo "${ECHO_T}no" >&6; }
2080 test -n "$ac_ct_CC" && break
2083 if test "x$ac_ct_CC" = x; then
2086 case $cross_compiling:$ac_tool_warned in
2088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2089 whose name does not start with the host triplet. If you think this
2090 configuration is useful to you, please write to autoconf@gnu.org." >&5
2091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2092 whose name does not start with the host triplet. If you think this
2093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2094 ac_tool_warned=yes ;;
2101 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2102 See \`config.log' for more details." >&5
2103 echo "$as_me: error: no acceptable C compiler found in \$PATH
2104 See \`config.log' for more details." >&2;}
2105 { (exit 1); exit 1; }; }
2107 # Provide some information about the compiler.
2108 echo "$as_me:$LINENO: checking for C compiler version" >&5
2109 ac_compiler=`set X $ac_compile; echo $2`
2110 { (ac_try="$ac_compiler --version >&5"
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2116 (eval "$ac_compiler --version >&5") 2>&5
2118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2119 (exit $ac_status); }
2120 { (ac_try="$ac_compiler -v >&5"
2122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2123 *) ac_try_echo=$ac_try;;
2125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2126 (eval "$ac_compiler -v >&5") 2>&5
2128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2129 (exit $ac_status); }
2130 { (ac_try="$ac_compiler -V >&5"
2132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2133 *) ac_try_echo=$ac_try;;
2135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2136 (eval "$ac_compiler -V >&5") 2>&5
2138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2139 (exit $ac_status); }
2141 cat >conftest.$ac_ext <<_ACEOF
2144 cat confdefs.h >>conftest.$ac_ext
2145 cat >>conftest.$ac_ext <<_ACEOF
2146 /* end confdefs.h. */
2156 ac_clean_files_save=$ac_clean_files
2157 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2158 # Try to create an executable without -o first, disregard a.out.
2159 # It will help us diagnose broken compilers, and finding out an intuition
2161 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2162 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2163 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2165 # List of possible output files, starting from the most likely.
2166 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2167 # only as a last resort. b.out is created by i960 compilers.
2168 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2170 # The IRIX 6 linker writes into existing files which may not be
2171 # executable, retaining their permissions. Remove them first so a
2172 # subsequent execution test works.
2174 for ac_file in $ac_files
2177 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2178 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2183 if { (ac_try="$ac_link_default"
2185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2186 *) ac_try_echo=$ac_try;;
2188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2189 (eval "$ac_link_default") 2>&5
2191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2192 (exit $ac_status); }; then
2193 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2194 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2195 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2196 # so that the user can short-circuit this test for compilers unknown to
2198 for ac_file in $ac_files
2200 test -f "$ac_file" || continue
2202 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2205 # We found the default executable, but exeext='' is most
2209 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2211 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2213 # We set ac_cv_exeext here because the later test for it is not
2214 # safe: cross compilers may not add the suffix if given an `-o'
2215 # argument, so we may need to know it at that point already.
2216 # Even if this section looks crufty: it has the advantage of
2223 test "$ac_cv_exeext" = no && ac_cv_exeext=
2226 echo "$as_me: failed program was:" >&5
2227 sed 's/^/| /' conftest.$ac_ext >&5
2229 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2230 See \`config.log' for more details." >&5
2231 echo "$as_me: error: C compiler cannot create executables
2232 See \`config.log' for more details." >&2;}
2233 { (exit 77); exit 77; }; }
2236 ac_exeext=$ac_cv_exeext
2237 { echo "$as_me:$LINENO: result: $ac_file" >&5
2238 echo "${ECHO_T}$ac_file" >&6; }
2240 # Check that the compiler produces executables we can run. If not, either
2241 # the compiler is broken, or we cross compile.
2242 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2243 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2244 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2245 # If not cross compiling, check that we can run a simple program.
2246 if test "$cross_compiling" != yes; then
2247 if { ac_try='./$ac_file'
2248 { (case "(($ac_try" in
2249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2250 *) ac_try_echo=$ac_try;;
2252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2253 (eval "$ac_try") 2>&5
2255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2256 (exit $ac_status); }; }; then
2259 if test "$cross_compiling" = maybe; then
2262 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2263 If you meant to cross compile, use \`--host'.
2264 See \`config.log' for more details." >&5
2265 echo "$as_me: error: cannot run C compiled programs.
2266 If you meant to cross compile, use \`--host'.
2267 See \`config.log' for more details." >&2;}
2268 { (exit 1); exit 1; }; }
2272 { echo "$as_me:$LINENO: result: yes" >&5
2273 echo "${ECHO_T}yes" >&6; }
2275 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2276 ac_clean_files=$ac_clean_files_save
2277 # Check that the compiler produces executables we can run. If not, either
2278 # the compiler is broken, or we cross compile.
2279 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2280 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2281 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2282 echo "${ECHO_T}$cross_compiling" >&6; }
2284 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2285 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2286 if { (ac_try="$ac_link"
2288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2289 *) ac_try_echo=$ac_try;;
2291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2292 (eval "$ac_link") 2>&5
2294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2295 (exit $ac_status); }; then
2296 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2297 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2298 # work properly (i.e., refer to `conftest.exe'), while it won't with
2300 for ac_file in conftest.exe conftest conftest.*; do
2301 test -f "$ac_file" || continue
2303 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2304 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2310 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2311 See \`config.log' for more details." >&5
2312 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2313 See \`config.log' for more details." >&2;}
2314 { (exit 1); exit 1; }; }
2317 rm -f conftest$ac_cv_exeext
2318 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2319 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2321 rm -f conftest.$ac_ext
2322 EXEEXT=$ac_cv_exeext
2324 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2325 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2326 if test "${ac_cv_objext+set}" = set; then
2327 echo $ECHO_N "(cached) $ECHO_C" >&6
2329 cat >conftest.$ac_ext <<_ACEOF
2332 cat confdefs.h >>conftest.$ac_ext
2333 cat >>conftest.$ac_ext <<_ACEOF
2334 /* end confdefs.h. */
2344 rm -f conftest.o conftest.obj
2345 if { (ac_try="$ac_compile"
2347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2348 *) ac_try_echo=$ac_try;;
2350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2351 (eval "$ac_compile") 2>&5
2353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2354 (exit $ac_status); }; then
2355 for ac_file in conftest.o conftest.obj conftest.*; do
2356 test -f "$ac_file" || continue;
2358 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2359 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2364 echo "$as_me: failed program was:" >&5
2365 sed 's/^/| /' conftest.$ac_ext >&5
2367 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2368 See \`config.log' for more details." >&5
2369 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2370 See \`config.log' for more details." >&2;}
2371 { (exit 1); exit 1; }; }
2374 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2376 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2377 echo "${ECHO_T}$ac_cv_objext" >&6; }
2378 OBJEXT=$ac_cv_objext
2380 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2381 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2382 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2383 echo $ECHO_N "(cached) $ECHO_C" >&6
2385 cat >conftest.$ac_ext <<_ACEOF
2388 cat confdefs.h >>conftest.$ac_ext
2389 cat >>conftest.$ac_ext <<_ACEOF
2390 /* end confdefs.h. */
2403 rm -f conftest.$ac_objext
2404 if { (ac_try="$ac_compile"
2406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2407 *) ac_try_echo=$ac_try;;
2409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2410 (eval "$ac_compile") 2>conftest.er1
2412 grep -v '^ *+' conftest.er1 >conftest.err
2414 cat conftest.err >&5
2415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2416 (exit $ac_status); } &&
2417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2418 { (case "(($ac_try" in
2419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2420 *) ac_try_echo=$ac_try;;
2422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2423 (eval "$ac_try") 2>&5
2425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2426 (exit $ac_status); }; } &&
2427 { ac_try='test -s conftest.$ac_objext'
2428 { (case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 (eval "$ac_try") 2>&5
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; }; then
2439 echo "$as_me: failed program was:" >&5
2440 sed 's/^/| /' conftest.$ac_ext >&5
2445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2446 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2449 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2450 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2451 GCC=`test $ac_compiler_gnu = yes && echo yes`
2452 ac_test_CFLAGS=${CFLAGS+set}
2453 ac_save_CFLAGS=$CFLAGS
2454 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2455 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2456 if test "${ac_cv_prog_cc_g+set}" = set; then
2457 echo $ECHO_N "(cached) $ECHO_C" >&6
2459 ac_save_c_werror_flag=$ac_c_werror_flag
2460 ac_c_werror_flag=yes
2463 cat >conftest.$ac_ext <<_ACEOF
2466 cat confdefs.h >>conftest.$ac_ext
2467 cat >>conftest.$ac_ext <<_ACEOF
2468 /* end confdefs.h. */
2478 rm -f conftest.$ac_objext
2479 if { (ac_try="$ac_compile"
2481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2482 *) ac_try_echo=$ac_try;;
2484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2485 (eval "$ac_compile") 2>conftest.er1
2487 grep -v '^ *+' conftest.er1 >conftest.err
2489 cat conftest.err >&5
2490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2491 (exit $ac_status); } &&
2492 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2493 { (case "(($ac_try" in
2494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2495 *) ac_try_echo=$ac_try;;
2497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2498 (eval "$ac_try") 2>&5
2500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2501 (exit $ac_status); }; } &&
2502 { ac_try='test -s conftest.$ac_objext'
2503 { (case "(($ac_try" in
2504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2505 *) ac_try_echo=$ac_try;;
2507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2508 (eval "$ac_try") 2>&5
2510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2511 (exit $ac_status); }; }; then
2514 echo "$as_me: failed program was:" >&5
2515 sed 's/^/| /' conftest.$ac_ext >&5
2518 cat >conftest.$ac_ext <<_ACEOF
2521 cat confdefs.h >>conftest.$ac_ext
2522 cat >>conftest.$ac_ext <<_ACEOF
2523 /* end confdefs.h. */
2533 rm -f conftest.$ac_objext
2534 if { (ac_try="$ac_compile"
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_compile") 2>conftest.er1
2542 grep -v '^ *+' conftest.er1 >conftest.err
2544 cat conftest.err >&5
2545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2546 (exit $ac_status); } &&
2547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2548 { (case "(($ac_try" in
2549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2550 *) ac_try_echo=$ac_try;;
2552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2553 (eval "$ac_try") 2>&5
2555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2556 (exit $ac_status); }; } &&
2557 { ac_try='test -s conftest.$ac_objext'
2558 { (case "(($ac_try" in
2559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2560 *) ac_try_echo=$ac_try;;
2562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2563 (eval "$ac_try") 2>&5
2565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566 (exit $ac_status); }; }; then
2569 echo "$as_me: failed program was:" >&5
2570 sed 's/^/| /' conftest.$ac_ext >&5
2572 ac_c_werror_flag=$ac_save_c_werror_flag
2574 cat >conftest.$ac_ext <<_ACEOF
2577 cat confdefs.h >>conftest.$ac_ext
2578 cat >>conftest.$ac_ext <<_ACEOF
2579 /* end confdefs.h. */
2589 rm -f conftest.$ac_objext
2590 if { (ac_try="$ac_compile"
2592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2593 *) ac_try_echo=$ac_try;;
2595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2596 (eval "$ac_compile") 2>conftest.er1
2598 grep -v '^ *+' conftest.er1 >conftest.err
2600 cat conftest.err >&5
2601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2602 (exit $ac_status); } &&
2603 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2604 { (case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_try") 2>&5
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; } &&
2613 { ac_try='test -s conftest.$ac_objext'
2614 { (case "(($ac_try" in
2615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2616 *) ac_try_echo=$ac_try;;
2618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2619 (eval "$ac_try") 2>&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); }; }; then
2625 echo "$as_me: failed program was:" >&5
2626 sed 's/^/| /' conftest.$ac_ext >&5
2631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2638 ac_c_werror_flag=$ac_save_c_werror_flag
2640 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2641 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2642 if test "$ac_test_CFLAGS" = set; then
2643 CFLAGS=$ac_save_CFLAGS
2644 elif test $ac_cv_prog_cc_g = yes; then
2645 if test "$GCC" = yes; then
2651 if test "$GCC" = yes; then
2657 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2658 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2659 if test "${ac_cv_prog_cc_c89+set}" = set; then
2660 echo $ECHO_N "(cached) $ECHO_C" >&6
2662 ac_cv_prog_cc_c89=no
2664 cat >conftest.$ac_ext <<_ACEOF
2667 cat confdefs.h >>conftest.$ac_ext
2668 cat >>conftest.$ac_ext <<_ACEOF
2669 /* end confdefs.h. */
2672 #include <sys/types.h>
2673 #include <sys/stat.h>
2674 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2675 struct buf { int x; };
2676 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2677 static char *e (p, i)
2683 static char *f (char * (*g) (char **, int), char **p, ...)
2688 s = g (p, va_arg (v,int));
2693 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2694 function prototypes and stuff, but not '\xHH' hex character constants.
2695 These don't provoke an error unfortunately, instead are silently treated
2696 as 'x'. The following induces an error, until -std is added to get
2697 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2698 array size at least. It's necessary to write '\x00'==0 to get something
2699 that's true only with -std. */
2700 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2702 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2703 inside strings and character constants. */
2705 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2707 int test (int i, double x);
2708 struct s1 {int (*f) (int a);};
2709 struct s2 {int (*f) (double a);};
2710 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2716 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2721 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2722 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2724 CC="$ac_save_CC $ac_arg"
2725 rm -f conftest.$ac_objext
2726 if { (ac_try="$ac_compile"
2728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2729 *) ac_try_echo=$ac_try;;
2731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2732 (eval "$ac_compile") 2>conftest.er1
2734 grep -v '^ *+' conftest.er1 >conftest.err
2736 cat conftest.err >&5
2737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2738 (exit $ac_status); } &&
2739 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2740 { (case "(($ac_try" in
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_try") 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; } &&
2749 { ac_try='test -s conftest.$ac_objext'
2750 { (case "(($ac_try" in
2751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2752 *) ac_try_echo=$ac_try;;
2754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2755 (eval "$ac_try") 2>&5
2757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2758 (exit $ac_status); }; }; then
2759 ac_cv_prog_cc_c89=$ac_arg
2761 echo "$as_me: failed program was:" >&5
2762 sed 's/^/| /' conftest.$ac_ext >&5
2767 rm -f core conftest.err conftest.$ac_objext
2768 test "x$ac_cv_prog_cc_c89" != "xno" && break
2770 rm -f conftest.$ac_ext
2775 case "x$ac_cv_prog_cc_c89" in
2777 { echo "$as_me:$LINENO: result: none needed" >&5
2778 echo "${ECHO_T}none needed" >&6; } ;;
2780 { echo "$as_me:$LINENO: result: unsupported" >&5
2781 echo "${ECHO_T}unsupported" >&6; } ;;
2783 CC="$CC $ac_cv_prog_cc_c89"
2784 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
2785 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
2790 ac_cpp='$CPP $CPPFLAGS'
2791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2796 ac_cpp='$CXXCPP $CPPFLAGS'
2797 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2798 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2799 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2800 if test -z "$CXX"; then
2801 if test -n "$CCC"; then
2804 if test -n "$ac_tool_prefix"; then
2805 for ac_prog in clang++ g++
2807 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2808 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2809 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2810 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2811 if test "${ac_cv_prog_CXX+set}" = set; then
2812 echo $ECHO_N "(cached) $ECHO_C" >&6
2814 if test -n "$CXX"; then
2815 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2821 test -z "$as_dir" && as_dir=.
2822 for ac_exec_ext in '' $ac_executable_extensions; do
2823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2824 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2835 if test -n "$CXX"; then
2836 { echo "$as_me:$LINENO: result: $CXX" >&5
2837 echo "${ECHO_T}$CXX" >&6; }
2839 { echo "$as_me:$LINENO: result: no" >&5
2840 echo "${ECHO_T}no" >&6; }
2844 test -n "$CXX" && break
2847 if test -z "$CXX"; then
2849 for ac_prog in clang++ g++
2851 # Extract the first word of "$ac_prog", so it can be a program name with args.
2852 set dummy $ac_prog; ac_word=$2
2853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2855 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2856 echo $ECHO_N "(cached) $ECHO_C" >&6
2858 if test -n "$ac_ct_CXX"; then
2859 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir=.
2866 for ac_exec_ext in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 ac_cv_prog_ac_ct_CXX="$ac_prog"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2879 if test -n "$ac_ct_CXX"; then
2880 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2881 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2883 { echo "$as_me:$LINENO: result: no" >&5
2884 echo "${ECHO_T}no" >&6; }
2888 test -n "$ac_ct_CXX" && break
2891 if test "x$ac_ct_CXX" = x; then
2894 case $cross_compiling:$ac_tool_warned in
2896 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2897 whose name does not start with the host triplet. If you think this
2898 configuration is useful to you, please write to autoconf@gnu.org." >&5
2899 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2900 whose name does not start with the host triplet. If you think this
2901 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2902 ac_tool_warned=yes ;;
2910 # Provide some information about the compiler.
2911 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2912 ac_compiler=`set X $ac_compile; echo $2`
2913 { (ac_try="$ac_compiler --version >&5"
2915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2916 *) ac_try_echo=$ac_try;;
2918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2919 (eval "$ac_compiler --version >&5") 2>&5
2921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2922 (exit $ac_status); }
2923 { (ac_try="$ac_compiler -v >&5"
2925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2926 *) ac_try_echo=$ac_try;;
2928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2929 (eval "$ac_compiler -v >&5") 2>&5
2931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }
2933 { (ac_try="$ac_compiler -V >&5"
2935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2936 *) ac_try_echo=$ac_try;;
2938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2939 (eval "$ac_compiler -V >&5") 2>&5
2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2942 (exit $ac_status); }
2944 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2945 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2946 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2947 echo $ECHO_N "(cached) $ECHO_C" >&6
2949 cat >conftest.$ac_ext <<_ACEOF
2952 cat confdefs.h >>conftest.$ac_ext
2953 cat >>conftest.$ac_ext <<_ACEOF
2954 /* end confdefs.h. */
2967 rm -f conftest.$ac_objext
2968 if { (ac_try="$ac_compile"
2970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2971 *) ac_try_echo=$ac_try;;
2973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2974 (eval "$ac_compile") 2>conftest.er1
2976 grep -v '^ *+' conftest.er1 >conftest.err
2978 cat conftest.err >&5
2979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2980 (exit $ac_status); } &&
2981 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2982 { (case "(($ac_try" in
2983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2984 *) ac_try_echo=$ac_try;;
2986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2987 (eval "$ac_try") 2>&5
2989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2990 (exit $ac_status); }; } &&
2991 { ac_try='test -s conftest.$ac_objext'
2992 { (case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2997 (eval "$ac_try") 2>&5
2999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3000 (exit $ac_status); }; }; then
3003 echo "$as_me: failed program was:" >&5
3004 sed 's/^/| /' conftest.$ac_ext >&5
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3013 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3014 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
3015 GXX=`test $ac_compiler_gnu = yes && echo yes`
3016 ac_test_CXXFLAGS=${CXXFLAGS+set}
3017 ac_save_CXXFLAGS=$CXXFLAGS
3018 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3019 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
3020 if test "${ac_cv_prog_cxx_g+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3024 ac_cxx_werror_flag=yes
3027 cat >conftest.$ac_ext <<_ACEOF
3030 cat confdefs.h >>conftest.$ac_ext
3031 cat >>conftest.$ac_ext <<_ACEOF
3032 /* end confdefs.h. */
3042 rm -f conftest.$ac_objext
3043 if { (ac_try="$ac_compile"
3045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3046 *) ac_try_echo=$ac_try;;
3048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3049 (eval "$ac_compile") 2>conftest.er1
3051 grep -v '^ *+' conftest.er1 >conftest.err
3053 cat conftest.err >&5
3054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3055 (exit $ac_status); } &&
3056 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3057 { (case "(($ac_try" in
3058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3059 *) ac_try_echo=$ac_try;;
3061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3062 (eval "$ac_try") 2>&5
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_try") 2>&5
3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3075 (exit $ac_status); }; }; then
3076 ac_cv_prog_cxx_g=yes
3078 echo "$as_me: failed program was:" >&5
3079 sed 's/^/| /' conftest.$ac_ext >&5
3082 cat >conftest.$ac_ext <<_ACEOF
3085 cat confdefs.h >>conftest.$ac_ext
3086 cat >>conftest.$ac_ext <<_ACEOF
3087 /* end confdefs.h. */
3097 rm -f conftest.$ac_objext
3098 if { (ac_try="$ac_compile"
3100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3101 *) ac_try_echo=$ac_try;;
3103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3104 (eval "$ac_compile") 2>conftest.er1
3106 grep -v '^ *+' conftest.er1 >conftest.err
3108 cat conftest.err >&5
3109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3110 (exit $ac_status); } &&
3111 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3112 { (case "(($ac_try" in
3113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3114 *) ac_try_echo=$ac_try;;
3116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3117 (eval "$ac_try") 2>&5
3119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120 (exit $ac_status); }; } &&
3121 { ac_try='test -s conftest.$ac_objext'
3122 { (case "(($ac_try" in
3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3124 *) ac_try_echo=$ac_try;;
3126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3127 (eval "$ac_try") 2>&5
3129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3130 (exit $ac_status); }; }; then
3133 echo "$as_me: failed program was:" >&5
3134 sed 's/^/| /' conftest.$ac_ext >&5
3136 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3138 cat >conftest.$ac_ext <<_ACEOF
3141 cat confdefs.h >>conftest.$ac_ext
3142 cat >>conftest.$ac_ext <<_ACEOF
3143 /* end confdefs.h. */
3153 rm -f conftest.$ac_objext
3154 if { (ac_try="$ac_compile"
3156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3157 *) ac_try_echo=$ac_try;;
3159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3160 (eval "$ac_compile") 2>conftest.er1
3162 grep -v '^ *+' conftest.er1 >conftest.err
3164 cat conftest.err >&5
3165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3166 (exit $ac_status); } &&
3167 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3168 { (case "(($ac_try" in
3169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3170 *) ac_try_echo=$ac_try;;
3172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3173 (eval "$ac_try") 2>&5
3175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3176 (exit $ac_status); }; } &&
3177 { ac_try='test -s conftest.$ac_objext'
3178 { (case "(($ac_try" in
3179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3180 *) ac_try_echo=$ac_try;;
3182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3183 (eval "$ac_try") 2>&5
3185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3186 (exit $ac_status); }; }; then
3187 ac_cv_prog_cxx_g=yes
3189 echo "$as_me: failed program was:" >&5
3190 sed 's/^/| /' conftest.$ac_ext >&5
3195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3202 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3204 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3205 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
3206 if test "$ac_test_CXXFLAGS" = set; then
3207 CXXFLAGS=$ac_save_CXXFLAGS
3208 elif test $ac_cv_prog_cxx_g = yes; then
3209 if test "$GXX" = yes; then
3215 if test "$GXX" = yes; then
3222 ac_cpp='$CPP $CPPFLAGS'
3223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3228 ac_cpp='$CPP $CPPFLAGS'
3229 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3230 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3231 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3232 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3233 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3234 # On Suns, sometimes $CPP names a directory.
3235 if test -n "$CPP" && test -d "$CPP"; then
3238 if test -z "$CPP"; then
3239 if test "${ac_cv_prog_CPP+set}" = set; then
3240 echo $ECHO_N "(cached) $ECHO_C" >&6
3242 # Double quotes because CPP needs to be expanded
3243 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3246 for ac_c_preproc_warn_flag in '' yes
3248 # Use a header file that comes with gcc, so configuring glibc
3249 # with a fresh cross-compiler works.
3250 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3251 # <limits.h> exists even on freestanding compilers.
3252 # On the NeXT, cc -E runs the code through the compiler's parser,
3253 # not just through cpp. "Syntax error" is here to catch this case.
3254 cat >conftest.$ac_ext <<_ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3261 # include <limits.h>
3263 # include <assert.h>
3267 if { (ac_try="$ac_cpp conftest.$ac_ext"
3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3270 *) ac_try_echo=$ac_try;;
3272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3275 grep -v '^ *+' conftest.er1 >conftest.err
3277 cat conftest.err >&5
3278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3279 (exit $ac_status); } >/dev/null; then
3280 if test -s conftest.err; then
3281 ac_cpp_err=$ac_c_preproc_warn_flag
3282 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3289 if test -z "$ac_cpp_err"; then
3292 echo "$as_me: failed program was:" >&5
3293 sed 's/^/| /' conftest.$ac_ext >&5
3295 # Broken: fails on valid input.
3299 rm -f conftest.err conftest.$ac_ext
3301 # OK, works on sane cases. Now check whether nonexistent headers
3302 # can be detected and how.
3303 cat >conftest.$ac_ext <<_ACEOF
3306 cat confdefs.h >>conftest.$ac_ext
3307 cat >>conftest.$ac_ext <<_ACEOF
3308 /* end confdefs.h. */
3309 #include <ac_nonexistent.h>
3311 if { (ac_try="$ac_cpp conftest.$ac_ext"
3313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3314 *) ac_try_echo=$ac_try;;
3316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3319 grep -v '^ *+' conftest.er1 >conftest.err
3321 cat conftest.err >&5
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); } >/dev/null; then
3324 if test -s conftest.err; then
3325 ac_cpp_err=$ac_c_preproc_warn_flag
3326 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3333 if test -z "$ac_cpp_err"; then
3334 # Broken: success on invalid input.
3337 echo "$as_me: failed program was:" >&5
3338 sed 's/^/| /' conftest.$ac_ext >&5
3340 # Passes both tests.
3345 rm -f conftest.err conftest.$ac_ext
3348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3349 rm -f conftest.err conftest.$ac_ext
3350 if $ac_preproc_ok; then
3362 { echo "$as_me:$LINENO: result: $CPP" >&5
3363 echo "${ECHO_T}$CPP" >&6; }
3365 for ac_c_preproc_warn_flag in '' yes
3367 # Use a header file that comes with gcc, so configuring glibc
3368 # with a fresh cross-compiler works.
3369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3370 # <limits.h> exists even on freestanding compilers.
3371 # On the NeXT, cc -E runs the code through the compiler's parser,
3372 # not just through cpp. "Syntax error" is here to catch this case.
3373 cat >conftest.$ac_ext <<_ACEOF
3376 cat confdefs.h >>conftest.$ac_ext
3377 cat >>conftest.$ac_ext <<_ACEOF
3378 /* end confdefs.h. */
3380 # include <limits.h>
3382 # include <assert.h>
3386 if { (ac_try="$ac_cpp conftest.$ac_ext"
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3392 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3394 grep -v '^ *+' conftest.er1 >conftest.err
3396 cat conftest.err >&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); } >/dev/null; then
3399 if test -s conftest.err; then
3400 ac_cpp_err=$ac_c_preproc_warn_flag
3401 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3408 if test -z "$ac_cpp_err"; then
3411 echo "$as_me: failed program was:" >&5
3412 sed 's/^/| /' conftest.$ac_ext >&5
3414 # Broken: fails on valid input.
3418 rm -f conftest.err conftest.$ac_ext
3420 # OK, works on sane cases. Now check whether nonexistent headers
3421 # can be detected and how.
3422 cat >conftest.$ac_ext <<_ACEOF
3425 cat confdefs.h >>conftest.$ac_ext
3426 cat >>conftest.$ac_ext <<_ACEOF
3427 /* end confdefs.h. */
3428 #include <ac_nonexistent.h>
3430 if { (ac_try="$ac_cpp conftest.$ac_ext"
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3438 grep -v '^ *+' conftest.er1 >conftest.err
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442 (exit $ac_status); } >/dev/null; then
3443 if test -s conftest.err; then
3444 ac_cpp_err=$ac_c_preproc_warn_flag
3445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3452 if test -z "$ac_cpp_err"; then
3453 # Broken: success on invalid input.
3456 echo "$as_me: failed program was:" >&5
3457 sed 's/^/| /' conftest.$ac_ext >&5
3459 # Passes both tests.
3464 rm -f conftest.err conftest.$ac_ext
3467 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3468 rm -f conftest.err conftest.$ac_ext
3469 if $ac_preproc_ok; then
3472 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3473 See \`config.log' for more details." >&5
3474 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3475 See \`config.log' for more details." >&2;}
3476 { (exit 1); exit 1; }; }
3480 ac_cpp='$CPP $CPPFLAGS'
3481 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3482 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3483 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3486 if test "$CXX" = "clang++" ; then
3487 { echo "$as_me:$LINENO: checking whether clang works" >&5
3488 echo $ECHO_N "checking whether clang works... $ECHO_C" >&6; }
3490 ac_cpp='$CXXCPP $CPPFLAGS'
3491 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3492 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3493 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3496 cat >conftest.$ac_ext <<_ACEOF
3499 cat confdefs.h >>conftest.$ac_ext
3500 cat >>conftest.$ac_ext <<_ACEOF
3501 /* end confdefs.h. */
3503 #if __has_include (<cxxabi.h>)
3506 #if __has_include (<unwind.h>)
3518 rm -f conftest.$ac_objext
3519 if { (ac_try="$ac_compile"
3521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3525 (eval "$ac_compile") 2>conftest.er1
3527 grep -v '^ *+' conftest.er1 >conftest.err
3529 cat conftest.err >&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); } &&
3532 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3533 { (case "(($ac_try" in
3534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3535 *) ac_try_echo=$ac_try;;
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_try") 2>&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }; } &&
3542 { ac_try='test -s conftest.$ac_objext'
3543 { (case "(($ac_try" in
3544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_try") 2>&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }; }; then
3553 { echo "$as_me:$LINENO: result: yes" >&5
3554 echo "${ECHO_T}yes" >&6; }
3557 echo "$as_me: failed program was:" >&5
3558 sed 's/^/| /' conftest.$ac_ext >&5
3561 { echo "$as_me:$LINENO: result: no" >&5
3562 echo "${ECHO_T}no" >&6; }
3563 { { echo "$as_me:$LINENO: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&5
3564 echo "$as_me: error: Selected compiler could not find or parse C++ standard library headers. Rerun with CC=c-compiler CXX=c++-compiler ./configure ..." >&2;}
3565 { (exit 1); exit 1; }; }
3569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3571 ac_cpp='$CPP $CPPFLAGS'
3572 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3573 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3574 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3580 if test -d ${srcdir}/projects/test-suite ; then
3581 subdirs="$subdirs projects/test-suite"
3585 if test -d ${srcdir}/projects/llvm-test ; then
3586 subdirs="$subdirs projects/llvm-test"
3590 if test -d ${srcdir}/projects/poolalloc ; then
3591 subdirs="$subdirs projects/poolalloc"
3595 if test -d ${srcdir}/projects/llvm-poolalloc ; then
3596 subdirs="$subdirs projects/llvm-poolalloc"
3600 for i in `ls ${srcdir}/projects`
3602 if test -d ${srcdir}/projects/${i} ; then
3604 sample) subdirs="$subdirs projects/sample"
3606 privbracket) subdirs="$subdirs projects/privbracket"
3608 safecode) subdirs="$subdirs projects/safecode"
3616 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
3617 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
3623 # Check whether --enable-polly was given.
3624 if test "${enable_polly+set}" = set; then
3625 enableval=$enable_polly;
3630 case "$enableval" in
3635 default) ENABLE_POLLY=1
3637 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
3638 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
3639 { (exit 1); exit 1; }; } ;;
3643 if (test -d ${srcdir}/tools/polly) && (test $ENABLE_POLLY -eq 1) ; then
3646 subdirs="$subdirs tools/polly"
3651 # Make sure we can run config.sub.
3652 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3653 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3654 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3655 { (exit 1); exit 1; }; }
3657 { echo "$as_me:$LINENO: checking build system type" >&5
3658 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
3659 if test "${ac_cv_build+set}" = set; then
3660 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 ac_build_alias=$build_alias
3663 test "x$ac_build_alias" = x &&
3664 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3665 test "x$ac_build_alias" = x &&
3666 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3667 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3668 { (exit 1); exit 1; }; }
3669 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3670 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3671 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3672 { (exit 1); exit 1; }; }
3675 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3676 echo "${ECHO_T}$ac_cv_build" >&6; }
3677 case $ac_cv_build in
3679 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3680 echo "$as_me: error: invalid value of canonical build" >&2;}
3681 { (exit 1); exit 1; }; };;
3684 ac_save_IFS=$IFS; IFS='-'
3690 # Remember, the first character of IFS is used to create $*,
3691 # except with old shells:
3694 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3697 { echo "$as_me:$LINENO: checking host system type" >&5
3698 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
3699 if test "${ac_cv_host+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 if test "x$host_alias" = x; then
3703 ac_cv_host=$ac_cv_build
3705 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3706 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3707 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3708 { (exit 1); exit 1; }; }
3712 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3713 echo "${ECHO_T}$ac_cv_host" >&6; }
3716 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3717 echo "$as_me: error: invalid value of canonical host" >&2;}
3718 { (exit 1); exit 1; }; };;
3721 ac_save_IFS=$IFS; IFS='-'
3727 # Remember, the first character of IFS is used to create $*,
3728 # except with old shells:
3731 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3734 { echo "$as_me:$LINENO: checking target system type" >&5
3735 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
3736 if test "${ac_cv_target+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 if test "x$target_alias" = x; then
3740 ac_cv_target=$ac_cv_host
3742 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3743 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
3744 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
3745 { (exit 1); exit 1; }; }
3749 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3750 echo "${ECHO_T}$ac_cv_target" >&6; }
3751 case $ac_cv_target in
3753 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
3754 echo "$as_me: error: invalid value of canonical target" >&2;}
3755 { (exit 1); exit 1; }; };;
3757 target=$ac_cv_target
3758 ac_save_IFS=$IFS; IFS='-'
3764 # Remember, the first character of IFS is used to create $*,
3765 # except with old shells:
3768 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3771 # The aliases save the names the user supplied, while $host etc.
3772 # will get canonicalized.
3773 test -n "$target_alias" &&
3774 test "$program_prefix$program_suffix$program_transform_name" = \
3776 program_prefix=${target_alias}-
3778 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
3779 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
3780 if test "${llvm_cv_os_type+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3785 llvm_cv_link_all_option="-Wl,--whole-archive"
3786 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3787 llvm_cv_os_type="AIX"
3788 llvm_cv_platform_type="Unix" ;;
3790 llvm_cv_link_all_option="-Wl,--whole-archive"
3791 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3792 llvm_cv_os_type="IRIX"
3793 llvm_cv_platform_type="Unix" ;;
3795 llvm_cv_link_all_option="-Wl,--whole-archive"
3796 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3797 llvm_cv_os_type="Cygwin"
3798 llvm_cv_platform_type="Unix" ;;
3800 llvm_cv_link_all_option="-Wl,-all_load"
3801 llvm_cv_no_link_all_option="-Wl,-noall_load"
3802 llvm_cv_os_type="Darwin"
3803 llvm_cv_platform_type="Unix" ;;
3805 llvm_cv_link_all_option="-Wl,-all_load"
3806 llvm_cv_no_link_all_option="-Wl,-noall_load"
3807 llvm_cv_os_type="Minix"
3808 llvm_cv_platform_type="Unix" ;;
3810 llvm_cv_link_all_option="-Wl,--whole-archive"
3811 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3812 llvm_cv_os_type="FreeBSD"
3813 llvm_cv_platform_type="Unix" ;;
3815 llvm_cv_link_all_option="-Wl,--whole-archive"
3816 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3817 llvm_cv_os_type="GNU/kFreeBSD"
3818 llvm_cv_platform_type="Unix" ;;
3820 llvm_cv_link_all_option="-Wl,--whole-archive"
3821 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3822 llvm_cv_os_type="OpenBSD"
3823 llvm_cv_platform_type="Unix" ;;
3825 llvm_cv_link_all_option="-Wl,--whole-archive"
3826 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3827 llvm_cv_os_type="NetBSD"
3828 llvm_cv_platform_type="Unix" ;;
3830 llvm_cv_link_all_option="-Wl,--whole-archive"
3831 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3832 llvm_cv_os_type="DragonFly"
3833 llvm_cv_platform_type="Unix" ;;
3835 llvm_cv_link_all_option="-Wl,--whole-archive"
3836 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3837 llvm_cv_os_type="HP-UX"
3838 llvm_cv_platform_type="Unix" ;;
3840 llvm_cv_link_all_option="-Wl,--whole-archive"
3841 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3842 llvm_cv_os_type="Interix"
3843 llvm_cv_platform_type="Unix" ;;
3845 llvm_cv_link_all_option="-Wl,--whole-archive"
3846 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3847 llvm_cv_os_type="Linux"
3848 llvm_cv_platform_type="Unix" ;;
3850 llvm_cv_link_all_option="-Wl,--whole-archive"
3851 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3852 llvm_cv_os_type="GNU"
3853 llvm_cv_platform_type="Unix" ;;
3855 llvm_cv_link_all_option="-Wl,-z,allextract"
3856 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
3857 llvm_cv_os_type="SunOS"
3858 llvm_cv_platform_type="Unix" ;;
3860 llvm_cv_link_all_option="-Wl,-z,allextract"
3861 llvm_cv_link_all_option="-Wl,-z,defaultextract"
3862 llvm_cv_os_type="AuroraUX"
3863 llvm_cv_platform_type="Unix" ;;
3865 llvm_cv_link_all_option="-Wl,--whole-archive"
3866 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3867 llvm_cv_os_type="Win32"
3868 llvm_cv_platform_type="Win32" ;;
3870 llvm_cv_link_all_option="-Wl,--whole-archive"
3871 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3872 llvm_cv_os_type="MingW"
3873 llvm_cv_platform_type="Win32" ;;
3875 llvm_cv_link_all_option="-Wl,--whole-archive"
3876 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3877 llvm_cv_os_type="Haiku"
3878 llvm_cv_platform_type="Unix" ;;
3880 llvm_cv_link_all_option="-Wl,--whole-archive"
3881 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3882 llvm_cv_os_type="Freestanding"
3883 llvm_cv_platform_type="Unix" ;;
3885 llvm_cv_link_all_option="-Wl,--whole-archive"
3886 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
3887 llvm_cv_os_type="Freestanding"
3888 llvm_cv_platform_type="Unix" ;;
3890 llvm_cv_link_all_option=""
3891 llvm_cv_no_link_all_option=""
3892 llvm_cv_os_type="Unknown"
3893 llvm_cv_platform_type="Unknown" ;;
3896 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
3897 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
3899 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
3900 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
3901 if test "${llvm_cv_target_os_type+set}" = set; then
3902 echo $ECHO_N "(cached) $ECHO_C" >&6
3906 llvm_cv_target_os_type="AIX" ;;
3908 llvm_cv_target_os_type="IRIX" ;;
3910 llvm_cv_target_os_type="Cygwin" ;;
3912 llvm_cv_target_os_type="Darwin" ;;
3914 llvm_cv_target_os_type="Minix" ;;
3916 llvm_cv_target_os_type="FreeBSD" ;;
3918 llvm_cv_target_os_type="GNU/kFreeBSD" ;;
3920 llvm_cv_target_os_type="OpenBSD" ;;
3922 llvm_cv_target_os_type="NetBSD" ;;
3924 llvm_cv_target_os_type="DragonFly" ;;
3926 llvm_cv_target_os_type="HP-UX" ;;
3928 llvm_cv_target_os_type="Interix" ;;
3930 llvm_cv_target_os_type="Linux" ;;
3932 llvm_cv_target_os_type="GNU" ;;
3934 llvm_cv_target_os_type="SunOS" ;;
3936 llvm_cv_target_os_type="AuroraUX" ;;
3938 llvm_cv_target_os_type="Win32" ;;
3940 llvm_cv_target_os_type="MingW" ;;
3942 llvm_cv_target_os_type="Haiku" ;;
3944 llvm_cv_target_os_type="RTEMS" ;;
3946 llvm_cv_target_os_type="NativeClient" ;;
3948 llvm_cv_target_os_type="Freestanding" ;;
3950 llvm_cv_target_os_type="Unknown" ;;
3953 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
3954 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
3956 if test "$llvm_cv_os_type" = "Unknown" ; then
3957 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
3958 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
3959 { (exit 1); exit 1; }; }
3964 HOST_OS=$llvm_cv_os_type
3966 TARGET_OS=$llvm_cv_target_os_type
3969 LINKALL=$llvm_cv_link_all_option
3971 NOLINKALL=$llvm_cv_no_link_all_option
3974 case $llvm_cv_platform_type in
3977 cat >>confdefs.h <<\_ACEOF
3978 #define LLVM_ON_UNIX 1
3988 cat >>confdefs.h <<\_ACEOF
3989 #define LLVM_ON_WIN32 1
3999 { echo "$as_me:$LINENO: checking target architecture" >&5
4000 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
4001 if test "${llvm_cv_target_arch+set}" = set; then
4002 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 i?86-*) llvm_cv_target_arch="x86" ;;
4006 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
4007 sparc*-*) llvm_cv_target_arch="Sparc" ;;
4008 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
4009 arm*-*) llvm_cv_target_arch="ARM" ;;
4010 aarch64*-*) llvm_cv_target_arch="AArch64" ;;
4011 mips-* | mips64-*) llvm_cv_target_arch="Mips" ;;
4012 mipsel-* | mips64el-*) llvm_cv_target_arch="Mips" ;;
4013 xcore-*) llvm_cv_target_arch="XCore" ;;
4014 msp430-*) llvm_cv_target_arch="MSP430" ;;
4015 hexagon-*) llvm_cv_target_arch="Hexagon" ;;
4016 nvptx-*) llvm_cv_target_arch="NVPTX" ;;
4017 s390x-*) llvm_cv_target_arch="SystemZ" ;;
4018 *) llvm_cv_target_arch="Unknown" ;;
4021 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
4022 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
4024 if test "$llvm_cv_target_arch" = "Unknown" ; then
4025 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
4026 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
4029 case "$llvm_cv_target_arch" in
4030 x86) LLVM_NATIVE_ARCH="X86" ;;
4031 x86_64) LLVM_NATIVE_ARCH="X86" ;;
4032 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
4035 ARCH=$llvm_cv_target_arch
4039 i?86-*) host_arch="x86" ;;
4040 amd64-* | x86_64-*) host_arch="x86_64" ;;
4041 sparc*-*) host_arch="Sparc" ;;
4042 powerpc*-*) host_arch="PowerPC" ;;
4043 arm*-*) host_arch="ARM" ;;
4044 aarch64*-*) host_arch="AArch64" ;;
4045 mips-* | mips64-*) host_arch="Mips" ;;
4046 mipsel-* | mips64el-*) host_arch="Mips" ;;
4047 xcore-*) host_arch="XCore" ;;
4048 msp430-*) host_arch="MSP430" ;;
4049 hexagon-*) host_arch="Hexagon" ;;
4050 s390x-*) host_arch="SystemZ" ;;
4051 *) host_arch="Unknown" ;;
4054 if test "$host_arch" = "Unknown" ; then
4055 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown host archicture" >&5
4056 echo "$as_me: WARNING: Configuring LLVM for an unknown host archicture" >&2;}
4059 HOST_ARCH=$host_arch
4062 if test "$cross_compiling" = yes; then
4063 LLVM_CROSS_COMPILING=1
4066 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5