2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for llvm 2.9svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
16 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
17 ## -------------------- ##
18 ## M4sh Initialization. ##
19 ## -------------------- ##
21 # Be more Bourne compatible
22 DUALCASE
=1; export DUALCASE
# for MKS sh
23 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
26 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
27 # is contrary to our usage. Disable this feature.
28 alias -g '${1+"$@"}'='"$@"'
31 case `(set -o) 2>/dev/null` in #(
43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 # Prefer a ksh shell builtin over an external printf program on Solaris,
48 # but without wasting forks for bash or zsh.
49 if test -z "$BASH_VERSION$ZSH_VERSION" \
50 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo_n='print
-rn --'
53 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
57 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
58 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
59 as_echo_n='/usr
/ucb
/echo -n'
61 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
66 expr "X$arg" : "X\\(.*\\)$as_nl";
67 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
69 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
72 as_echo_n='sh
-c $as_echo_n_body as_echo
'
75 as_echo='sh
-c $as_echo_body as_echo
'
78 # The user is always right.
79 if test "${PATH_SEPARATOR+set}" != set; then
81 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
82 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
89 # We need space, tab and new line, in precisely that order. Quoting is
90 # there to prevent editors from complaining about space-tab.
91 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
92 # splitting by setting IFS to empty value.)
95 # Find who we are. Look in the path if we contain no directory separator.
97 *[\\/]* ) as_myself=$0 ;;
98 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 test -z "$as_dir" && as_dir=.
103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
109 # We did not find ourselves, most probably we were run as `sh COMMAND'
110 # in which case we are not to be found in the path.
111 if test "x$as_myself" = x
; then
114 if test ! -f "$as_myself"; then
115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 # Unset variables that we do not need and which cause bugs (e.g. in
120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
121 # suppresses any "Segmentation fault" message there. '((' could
122 # trigger a bug in pdksh 5.2.14.
123 for as_var
in BASH_ENV ENV MAIL MAILPATH
124 do eval test x\
${$as_var+set} = xset \
125 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
138 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
140 if test "x$CONFIG_SHELL" = x
; then
141 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
144 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
145 # is contrary to our usage. Disable this feature.
146 alias -g '\${1+\"\$@\"}'='\"\$@\"'
149 case \`(set -o) 2>/dev/null\` in #(
157 as_required
="as_fn_return () { (exit \$1); }
158 as_fn_success () { as_fn_return 0; }
159 as_fn_failure () { as_fn_return 1; }
160 as_fn_ret_success () { return 0; }
161 as_fn_ret_failure () { return 1; }
164 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
165 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
166 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
167 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
168 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
171 exitcode=1; echo positional parameters were not saved.
173 test x\$exitcode = x0 || exit 1"
174 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
175 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
176 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
177 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
178 test \$(( 1 + 1 )) = 2 || exit 1"
179 if (eval "$as_required") 2>/dev
/null
; then :
184 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
187 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
189 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
192 test -z "$as_dir" && as_dir
=.
196 for as_base
in sh bash ksh sh5
; do
197 # Try only shells that exist, to save several forks.
198 as_shell
=$as_dir/$as_base
199 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
200 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
201 CONFIG_SHELL
=$as_shell as_have_required
=yes
202 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
210 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
211 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
212 CONFIG_SHELL
=$SHELL as_have_required
=yes
217 if test "x$CONFIG_SHELL" != x
; then :
218 # We cannot yet assume a decent shell, so we have to provide a
219 # neutralization value for shells without unset; and this also
220 # works around shells that cannot unset nonexistent variables.
223 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
225 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
228 if test x
$as_have_required = xno
; then :
229 $as_echo "$0: This script requires a shell more modern than all"
230 $as_echo "$0: the shells that I found on your system."
231 if test x
${ZSH_VERSION+set} = xset
; then
232 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
233 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
235 $as_echo "$0: Please tell bug-autoconf@gnu.org and
236 $0: llvmbugs@cs.uiuc.edu about your system, including any
237 $0: error possibly output before this message. Then install
238 $0: a modern shell, or manually run the script under such a
239 $0: shell if you do have one."
245 SHELL
=${CONFIG_SHELL-/bin/sh}
247 # Unset more variables known to interfere with behavior of common tools.
248 CLICOLOR_FORCE
= GREP_OPTIONS
=
249 unset CLICOLOR_FORCE GREP_OPTIONS
251 ## --------------------- ##
252 ## M4sh Shell Functions. ##
253 ## --------------------- ##
256 # Portably unset VAR.
259 { eval $1=; unset $1;}
263 # as_fn_set_status STATUS
264 # -----------------------
265 # Set $? to STATUS, without forking.
273 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
283 # Create "$as_dir" as a directory, including parents if necessary.
288 -*) as_dir
=.
/$as_dir;;
290 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
294 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
297 as_dirs
="'$as_qdir' $as_dirs"
298 as_dir
=`$as_dirname -- "$as_dir" ||
299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
300 X"$as_dir" : 'X\(//\)[^/]' \| \
301 X"$as_dir" : 'X\(//\)$' \| \
302 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
303 $as_echo X"$as_dir" |
304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
321 test -d "$as_dir" && break
323 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
324 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
328 # as_fn_append VAR VALUE
329 # ----------------------
330 # Append the text in VALUE to the end of the definition contained in VAR. Take
331 # advantage of any shell optimizations that allow amortized linear growth over
332 # repeated appends, instead of the typical quadratic growth present in naive
334 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
335 eval 'as_fn_append ()
348 # Perform arithmetic evaluation on the ARGs, and store the result in the
349 # global $as_val. Take advantage of shells that can avoid forks. The arguments
350 # must be portable across $(()) and expr.
351 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
359 as_val
=`expr "$@" || test $? -eq 1`
364 # as_fn_error ERROR [LINENO LOG_FD]
365 # ---------------------------------
366 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
367 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
368 # script with status $?, using 1 if that was 0.
371 as_status
=$?
; test $as_status -eq 0 && as_status
=1
373 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
374 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
376 $as_echo "$as_me: error: $1" >&2
377 as_fn_exit
$as_status
380 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
381 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
387 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
393 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
399 as_me
=`$as_basename -- "$0" ||
400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
401 X"$0" : 'X\(//\)$' \| \
402 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 sed '/^.*\/\([^/][^/]*\)\/*$/{
418 # Avoid depending upon Character Ranges.
419 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
420 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
421 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
422 as_cr_digits
='0123456789'
423 as_cr_alnum
=$as_cr_Letters$as_cr_digits
426 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
427 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
428 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
429 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
430 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
442 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 chmod +x
"$as_me.lineno" ||
447 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
449 # Don't try to exec as it changes $[0], causing all sort of problems
450 # (the dirname of $[0] is not the place where we might find the
451 # original and so on. Autoconf is especially sensitive to this).
453 # Exit status is that of the last command.
457 ECHO_C
= ECHO_N
= ECHO_T
=
458 case `echo -n x` in #(((((
460 case `echo 'xy\c'` in
461 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
463 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
470 rm -f conf$$ conf$$.exe conf$$.
file
471 if test -d conf$$.dir
; then
472 rm -f conf$$.dir
/conf$$.
file
475 mkdir conf$$.dir
2>/dev
/null
477 if (echo >conf$$.
file) 2>/dev
/null
; then
478 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
480 # ... but there are two gotchas:
481 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
482 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
483 # In both cases, we have to default to `cp -p'.
484 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
486 elif ln conf$$.
file conf$$
2>/dev
/null
; then
494 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
495 rmdir conf$$.dir
2>/dev
/null
497 if mkdir
-p .
2>/dev
/null
; then
498 as_mkdir_p
='mkdir -p "$as_dir"'
500 test -d .
/-p && rmdir .
/-p
504 if test -x / >/dev
/null
2>&1; then
507 if ls -dL / >/dev
/null
2>&1; then
514 if test -d "$1"; then
520 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
521 ???[sx]*):;;*)false;;esac;fi
525 as_executable_p
=$as_test_x
527 # Sed expression to map a string onto a valid CPP name.
528 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
530 # Sed expression to map a string onto a valid variable name.
531 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
538 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
539 # so uname gets run too.
540 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 ac_default_prefix
=/usr
/local
547 ac_config_libobj_dir
=.
554 # Identity of this package.
556 PACKAGE_TARNAME
='-llvm-'
557 PACKAGE_VERSION
='2.9svn'
558 PACKAGE_STRING
='llvm 2.9svn'
559 PACKAGE_BUGREPORT
='llvmbugs@cs.uiuc.edu'
562 ac_unique_file
="lib/VMCore/Module.cpp"
563 enable_option_checking
=no
564 # Factoring default headers for most tests.
565 ac_includes_default
="\
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
577 # ifdef HAVE_STDLIB_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
601 ac_subst_vars
='LTLIBOBJS
605 ENABLE_VISIBILITY_INLINES_HIDDEN
630 NO_MISSING_FIELD_INITIALIZERS
638 CONVENIENCE_LTDL_FALSE
639 CONVENIENCE_LTDL_TRUE
642 HAVE_LINK_VERSION_SCRIPT
698 LLVM_ENUM_DISASSEMBLERS
699 LLVM_ENUM_ASM_PARSERS
700 LLVM_ENUM_ASM_PRINTERS
713 ENABLE_EXPENSIVE_CHECKS
784 program_transform_name
797 enable_option_checking
802 enable_expensive_checks
822 with_clang_resource_dir
824 with_cxx_include_root
825 with_cxx_include_arch
826 with_cxx_include_32bit_dir
827 with_cxx_include_64bit_dir
828 with_binutils_include
836 ac_precious_vars
='build_alias
848 ac_subdirs_all
='projects/llvm-gcc
852 projects/llvm-poolalloc
855 projects/llvm-stacker
863 # Initialize some variables set by options.
865 ac_init_version
=false
866 ac_unrecognized_opts
=
868 # The variables have the same names as the options, with
869 # dashes changed to underlines.
877 program_transform_name
=s
,x
,x
,
885 # Installation directory options.
886 # These are left unexpanded so users can "make install exec_prefix=/foo"
887 # and all the variables that are supposed to be based on exec_prefix
888 # by default will actually change.
889 # Use braces instead of parens because sh, perl, etc. also accept them.
890 # (The list follows the same order as the GNU Coding Standards.)
891 bindir
='${exec_prefix}/bin'
892 sbindir
='${exec_prefix}/sbin'
893 libexecdir
='${exec_prefix}/libexec'
894 datarootdir
='${prefix}/share'
895 datadir
='${datarootdir}'
896 sysconfdir
='${prefix}/etc'
897 sharedstatedir
='${prefix}/com'
898 localstatedir
='${prefix}/var'
899 includedir
='${prefix}/include'
900 oldincludedir
='/usr/include'
901 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
902 infodir
='${datarootdir}/info'
907 libdir
='${exec_prefix}/lib'
908 localedir
='${datarootdir}/locale'
909 mandir
='${datarootdir}/man'
915 # If the previous option needs an argument, assign it.
916 if test -n "$ac_prev"; then
917 eval $ac_prev=\
$ac_option
923 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
927 # Accept the important Cygnus configure options, so we can diagnose typos.
929 case $ac_dashdash$ac_option in
933 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
935 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
938 -build |
--build |
--buil |
--bui |
--bu)
939 ac_prev
=build_alias
;;
940 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
941 build_alias
=$ac_optarg ;;
943 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
944 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
945 ac_prev
=cache_file
;;
946 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
947 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
948 cache_file
=$ac_optarg ;;
951 cache_file
=config.cache
;;
953 -datadir |
--datadir |
--datadi |
--datad)
955 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
956 datadir
=$ac_optarg ;;
958 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
959 |
--dataroo |
--dataro |
--datar)
960 ac_prev
=datarootdir
;;
961 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
962 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
963 datarootdir
=$ac_optarg ;;
965 -disable-* |
--disable-*)
966 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
969 as_fn_error
"invalid feature name: $ac_useropt"
970 ac_useropt_orig
=$ac_useropt
971 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
976 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep
=', ';;
979 eval enable_
$ac_useropt=no
;;
981 -docdir |
--docdir |
--docdi |
--doc |
--do)
983 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
986 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
988 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
991 -enable-* |
--enable-*)
992 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
995 as_fn_error
"invalid feature name: $ac_useropt"
996 ac_useropt_orig
=$ac_useropt
997 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
1000 "enable_
$ac_useropt"
1002 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep
=', ';;
1005 eval enable_
$ac_useropt=\
$ac_optarg ;;
1007 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1008 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1009 |
--exec |
--exe |
--ex)
1010 ac_prev
=exec_prefix
;;
1011 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1012 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1013 |
--exec=* |
--exe=* |
--ex=*)
1014 exec_prefix
=$ac_optarg ;;
1016 -gas |
--gas |
--ga |
--g)
1017 # Obsolete; use --with-gas.
1020 -help |
--help |
--hel |
--he |
-h)
1021 ac_init_help
=long
;;
1022 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1023 ac_init_help
=recursive
;;
1024 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1025 ac_init_help
=short
;;
1027 -host |
--host |
--hos |
--ho)
1028 ac_prev
=host_alias
;;
1029 -host=* |
--host=* |
--hos=* |
--ho=*)
1030 host_alias
=$ac_optarg ;;
1032 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1034 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1036 htmldir
=$ac_optarg ;;
1038 -includedir |
--includedir |
--includedi |
--included |
--include \
1039 |
--includ |
--inclu |
--incl |
--inc)
1040 ac_prev
=includedir
;;
1041 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1042 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1043 includedir
=$ac_optarg ;;
1045 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1047 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1048 infodir
=$ac_optarg ;;
1050 -libdir |
--libdir |
--libdi |
--libd)
1052 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1053 libdir
=$ac_optarg ;;
1055 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1056 |
--libexe |
--libex |
--libe)
1057 ac_prev
=libexecdir
;;
1058 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1059 |
--libexe=* |
--libex=* |
--libe=*)
1060 libexecdir
=$ac_optarg ;;
1062 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1063 ac_prev
=localedir
;;
1064 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1065 localedir
=$ac_optarg ;;
1067 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1068 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1069 ac_prev
=localstatedir
;;
1070 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1071 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1072 localstatedir
=$ac_optarg ;;
1074 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1076 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1077 mandir
=$ac_optarg ;;
1079 -nfp |
--nfp |
--nf)
1080 # Obsolete; use --without-fp.
1083 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1084 |
--no-cr |
--no-c |
-n)
1087 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1088 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1091 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1092 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1093 |
--oldin |
--oldi |
--old |
--ol |
--o)
1094 ac_prev
=oldincludedir
;;
1095 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1096 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1097 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1098 oldincludedir
=$ac_optarg ;;
1100 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1102 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1103 prefix
=$ac_optarg ;;
1105 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1106 |
--program-pre |
--program-pr |
--program-p)
1107 ac_prev
=program_prefix
;;
1108 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1109 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1110 program_prefix
=$ac_optarg ;;
1112 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1113 |
--program-suf |
--program-su |
--program-s)
1114 ac_prev
=program_suffix
;;
1115 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1116 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1117 program_suffix
=$ac_optarg ;;
1119 -program-transform-name |
--program-transform-name \
1120 |
--program-transform-nam |
--program-transform-na \
1121 |
--program-transform-n |
--program-transform- \
1122 |
--program-transform |
--program-transfor \
1123 |
--program-transfo |
--program-transf \
1124 |
--program-trans |
--program-tran \
1125 |
--progr-tra |
--program-tr |
--program-t)
1126 ac_prev
=program_transform_name
;;
1127 -program-transform-name=* |
--program-transform-name=* \
1128 |
--program-transform-nam=* |
--program-transform-na=* \
1129 |
--program-transform-n=* |
--program-transform-=* \
1130 |
--program-transform=* |
--program-transfor=* \
1131 |
--program-transfo=* |
--program-transf=* \
1132 |
--program-trans=* |
--program-tran=* \
1133 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1134 program_transform_name
=$ac_optarg ;;
1136 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1138 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1139 pdfdir
=$ac_optarg ;;
1141 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1143 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1146 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1147 |
-silent |
--silent |
--silen |
--sile |
--sil)
1150 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1152 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1154 sbindir
=$ac_optarg ;;
1156 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1157 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1158 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1160 ac_prev
=sharedstatedir
;;
1161 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1162 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1163 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1165 sharedstatedir
=$ac_optarg ;;
1167 -site |
--site |
--sit)
1169 -site=* |
--site=* |
--sit=*)
1172 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1174 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1175 srcdir
=$ac_optarg ;;
1177 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1178 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1179 ac_prev
=sysconfdir
;;
1180 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1181 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1182 sysconfdir
=$ac_optarg ;;
1184 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1185 ac_prev
=target_alias
;;
1186 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1187 target_alias
=$ac_optarg ;;
1189 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1192 -version |
--version |
--versio |
--versi |
--vers |
-V)
1193 ac_init_version
=: ;;
1196 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1199 as_fn_error
"invalid package name: $ac_useropt"
1200 ac_useropt_orig
=$ac_useropt
1201 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1206 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep
=', ';;
1209 eval with_
$ac_useropt=\
$ac_optarg ;;
1211 -without-* |
--without-*)
1212 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1215 as_fn_error
"invalid package name: $ac_useropt"
1216 ac_useropt_orig
=$ac_useropt
1217 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1222 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep
=', ';;
1225 eval with_
$ac_useropt=no
;;
1228 # Obsolete; use --with-x.
1231 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1232 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1233 ac_prev
=x_includes
;;
1234 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1235 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1236 x_includes
=$ac_optarg ;;
1238 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1239 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1240 ac_prev
=x_libraries
;;
1241 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1242 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1243 x_libraries
=$ac_optarg ;;
1245 -*) as_fn_error
"unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information."
1250 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1254 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1256 eval $ac_envvar=\
$ac_optarg
1257 export $ac_envvar ;;
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 if test -n "$ac_prev"; then
1271 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1272 as_fn_error
"missing argument to $ac_option"
1275 if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1278 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1283 # Check all directory arguments for consistency.
1284 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
1289 eval ac_val
=\$
$ac_var
1290 # Remove trailing slashes.
1293 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\
$ac_val;;
1296 # Be sure to have absolute directory names.
1298 [\\/$
]* | ?
:[\\/]* ) continue;;
1299 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1301 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1304 # There might be people who depend on the old broken behavior: `$host'
1305 # used to hold the argument of --host etc.
1306 # FIXME: To remove some day.
1309 target
=$target_alias
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x
; then
1313 if test "x$build_alias" = x
; then
1314 cross_compiling
=maybe
1315 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1316 If a cross compiler is detected then cross compile mode will be used." >&2
1317 elif test "x$build_alias" != "x$host_alias"; then
1323 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1325 test "$silent" = yes && exec 6>/dev
/null
1328 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1329 ac_ls_di
=`ls -di .` &&
1330 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1331 as_fn_error
"working directory cannot be determined"
1332 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1333 as_fn_error
"pwd does not report name of working directory"
1336 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted
=yes
1339 # Try the directory containing this script, then the parent directory.
1340 ac_confdir
=`$as_dirname -- "$as_myself" ||
1341 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1342 X"$as_myself" : 'X\(//\)[^/]' \| \
1343 X"$as_myself" : 'X\(//\)$' \| \
1344 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1345 $as_echo X"$as_myself" |
1346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1368 ac_srcdir_defaulted
=no
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1372 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1374 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1378 # When building in place, set srcdir=.
1379 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 # Remove unnecessary trailing slashes from srcdir.
1383 # Double slashes in file names in object file debugging info
1384 # mess up M-x gdb in Emacs.
1386 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1388 for ac_var
in $ac_precious_vars; do
1389 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1390 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1391 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1392 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1396 # Report the --help message.
1398 if test "$ac_init_help" = "long"; then
1399 # Omit some internal or obsolete options to make the list less imposing.
1400 # This message is too long to be a string in the A/UX 3.1 sh.
1402 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1404 Usage: $0 [OPTION]... [VAR=VALUE]...
1406 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1407 VAR=VALUE. See below for descriptions of some of the useful variables.
1409 Defaults for the options are specified in brackets.
1412 -h, --help display this help and exit
1413 --help=short display options specific to this package
1414 --help=recursive display the short help of all the included packages
1415 -V, --version display version information and exit
1416 -q, --quiet, --silent do not print \`checking...' messages
1417 --cache-file=FILE cache test results in FILE [disabled]
1418 -C, --config-cache alias for \`--cache-file=config.cache'
1419 -n, --no-create do not create output files
1420 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1422 Installation directories:
1423 --prefix=PREFIX install architecture-independent files in PREFIX
1424 [$ac_default_prefix]
1425 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1428 By default, \`make install' will install all the files in
1429 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1430 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1431 for instance \`--prefix=\$HOME'.
1433 For better control, use the options below.
1435 Fine tuning of the installation directories:
1436 --bindir=DIR user executables [EPREFIX/bin]
1437 --sbindir=DIR system admin executables [EPREFIX/sbin]
1438 --libexecdir=DIR program executables [EPREFIX/libexec]
1439 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1440 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1441 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1442 --libdir=DIR object code libraries [EPREFIX/lib]
1443 --includedir=DIR C header files [PREFIX/include]
1444 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1445 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1446 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1447 --infodir=DIR info documentation [DATAROOTDIR/info]
1448 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1449 --mandir=DIR man documentation [DATAROOTDIR/man]
1450 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1451 --htmldir=DIR html documentation [DOCDIR]
1452 --dvidir=DIR dvi documentation [DOCDIR]
1453 --pdfdir=DIR pdf documentation [DOCDIR]
1454 --psdir=DIR ps documentation [DOCDIR]
1460 --build=BUILD configure
for building on BUILD
[guessed
]
1461 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1462 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1466 if test -n "$ac_init_help"; then
1467 case $ac_init_help in
1468 short | recursive
) echo "Configuration of llvm 2.9svn:";;
1473 --disable-option-checking ignore unrecognized
--enable/--with options
1474 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1475 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1476 --enable-polly Use polly
if available
(default is YES
)
1477 --enable-optimized Compile with optimizations enabled
(default is NO
)
1478 --enable-profiling Compile with profiling enabled
(default is NO
)
1479 --enable-assertions Compile with assertion checks enabled
(default is
1481 --enable-expensive-checks
1482 Compile with expensive debug checks enabled
(default
1484 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1486 --enable-debug-symbols Build compiler with debug symbols
(default is NO
if
1487 optimization is on and YES
if it
's off)
1488 --enable-jit Enable Just In Time Compiling (default is YES)
1489 --enable-doxygen Build doxygen documentation (default is NO)
1490 --enable-threads Use threads if available (default is YES)
1491 --enable-pic Build LLVM with Position Independent Code (default
1493 --enable-shared Build a shared library and link tools against it
1495 --enable-timestamps Enable embedding timestamp information in build
1497 --enable-targets Build specific host targets: all or
1498 target1,target2,... Valid targets are: host, x86,
1499 x86_64, sparc, powerpc, alpha, arm, mips, zpu, spu,
1500 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1502 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1504 --enable-bindings Build specific language bindings:
1505 all,auto,none,{binding-name} (default=auto)
1506 --enable-libffi Check for the presence of libffi (default is NO)
1507 --enable-ltdl-install install libltdl
1510 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1511 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1512 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1514 --with-llvmgcc Specify location of llvm-gcc driver (default
1516 --with-llvmgxx Specify location of llvm-g++ driver (default
1518 --with-clang Specify location of clang compiler (default is
1520 --with-built-clang Use the compiled Clang as the LLVM compiler
1522 --with-optimize-option Select the compiler options to use for optimized
1524 --with-extra-options Specify additional options to compile LLVM with
1525 --with-ocaml-libdir Specify install location for ocaml bindings (default
1527 --with-clang-resource-dir
1528 Relative directory from the Clang binary for
1530 --with-c-include-dirs Colon separated list of directories clang will
1532 --with-cxx-include-root Directory with the libstdc++ headers.
1533 --with-cxx-include-arch Architecture of the libstdc++ headers.
1534 --with-cxx-include-32bit-dir
1535 32 bit multilib dir.
1536 --with-cxx-include-64bit-dir
1537 64 bit multilib directory.
1538 --with-binutils-include Specify path to binutils/include/ containing
1539 plugin-api.h file for gold plugin.
1540 --with-tclinclude directory where tcl headers are
1541 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1542 clang, or none; default=check)
1543 --with-udis86=<path> Use udis86 external x86 disassembler library
1544 --with-oprofile=<prefix>
1545 Tell OProfile >= 0.9.4 how to symbolize JIT output
1547 Some influential environment variables:
1548 CC C compiler command
1549 CFLAGS C compiler flags
1550 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1551 nonstandard directory <lib dir>
1552 LIBS libraries to pass to the linker, e.g. -l<library>
1553 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1554 you have headers in a nonstandard directory <include dir>
1556 CXX C++ compiler command
1557 CXXFLAGS C++ compiler flags
1559 Use these variables to override the choices made by `configure' or to
help
1560 it to
find libraries and programs with nonstandard names
/locations.
1562 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1567 if test "$ac_init_help" = "recursive"; then
1568 # If there are subdirs, report their specific --help.
1569 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1570 test -d "$ac_dir" ||
1571 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1576 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1578 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1579 # A ".." for each directory in $ac_dir_suffix.
1580 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1581 case $ac_top_builddir_sub in
1582 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1583 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1586 ac_abs_top_builddir
=$ac_pwd
1587 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1588 # for backward compatibility:
1589 ac_top_builddir
=$ac_top_build_prefix
1592 .
) # We are building in place.
1594 ac_top_srcdir
=$ac_top_builddir_sub
1595 ac_abs_top_srcdir
=$ac_pwd ;;
1596 [\\/]* | ?
:[\\/]* ) # Absolute name.
1597 ac_srcdir
=$srcdir$ac_dir_suffix;
1598 ac_top_srcdir
=$srcdir
1599 ac_abs_top_srcdir
=$srcdir ;;
1601 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1602 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1603 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1605 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1607 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1608 # Check for guested configure.
1609 if test -f "$ac_srcdir/configure.gnu"; then
1611 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1612 elif test -f "$ac_srcdir/configure"; then
1614 $SHELL "$ac_srcdir/configure" --help=recursive
1616 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1622 test -n "$ac_init_help" && exit $ac_status
1623 if $ac_init_version; then
1625 llvm configure
2.9svn
1626 generated by GNU Autoconf
2.65
1628 Copyright
(C
) 2009 Free Software Foundation
, Inc.
1629 This configure
script is free software
; the Free Software Foundation
1630 gives unlimited permission to copy
, distribute and modify it.
1632 Copyright
(c
) 2003-2010 University of Illinois
at Urbana-Champaign.
1637 ## ------------------------ ##
1638 ## Autoconf initialization. ##
1639 ## ------------------------ ##
1641 # ac_fn_c_try_compile LINENO
1642 # --------------------------
1643 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1644 ac_fn_c_try_compile
()
1646 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1647 rm -f conftest.
$ac_objext
1648 if { { ac_try
="$ac_compile"
1650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1651 *) ac_try_echo=$ac_try;;
1653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1654 $as_echo "$ac_try_echo"; } >&5
1655 (eval "$ac_compile") 2>conftest.err
1657 if test -s conftest.err; then
1658 grep -v '^ *+' conftest.err >conftest.er1
1659 cat conftest.er1 >&5
1660 mv -f conftest.er1 conftest.err
1662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1663 test $ac_status = 0; } && {
1664 test -z "$ac_c_werror_flag" ||
1665 test ! -s conftest.err
1666 } && test -s conftest.$ac_objext; then :
1669 $as_echo "$as_me: failed program was:" >&5
1670 sed 's/^/| /' conftest.$ac_ext >&5
1674 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1675 as_fn_set_status $ac_retval
1677 } # ac_fn_c_try_compile
1679 # ac_fn_c_try_run LINENO
1680 # ----------------------
1681 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1682 # that executables *can* be run.
1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1686 if { { ac_try="$ac_link"
1688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1689 *) ac_try_echo
=$ac_try;;
1691 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1692 $as_echo "$ac_try_echo"; } >&5
1693 (eval "$ac_link") 2>&5
1695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1696 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1697 { { case "(($ac_try" in
1698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702 $as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_try") 2>&5
1705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1706 test $ac_status = 0; }; }; then :
1709 $as_echo "$as_me: program exited with status $ac_status" >&5
1710 $as_echo "$as_me: failed program was:" >&5
1711 sed 's/^/| /' conftest.$ac_ext >&5
1713 ac_retval=$ac_status
1715 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1716 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1717 as_fn_set_status $ac_retval
1721 # ac_fn_c_try_cpp LINENO
1722 # ----------------------
1723 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1726 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1727 if { { ac_try="$ac_cpp conftest.$ac_ext"
1729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1730 *) ac_try_echo
=$ac_try;;
1732 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1733 $as_echo "$ac_try_echo"; } >&5
1734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1736 if test -s conftest.err
; then
1737 grep -v '^ *+' conftest.err
>conftest.er1
1738 cat conftest.er1
>&5
1739 mv -f conftest.er1 conftest.err
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; } >/dev
/null
&& {
1743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1744 test ! -s conftest.err
1748 $as_echo "$as_me: failed program was:" >&5
1749 sed 's/^/| /' conftest.
$ac_ext >&5
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1754 as_fn_set_status
$ac_retval
1758 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1759 # -------------------------------------------------------
1760 # Tests whether HEADER exists and can be compiled using the include files in
1761 # INCLUDES, setting the cache variable VAR accordingly.
1762 ac_fn_c_check_header_compile
()
1764 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1766 $as_echo_n "checking for $2... " >&6; }
1767 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1768 $as_echo_n "(cached) " >&6
1770 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1771 /* end confdefs.h. */
1775 if ac_fn_c_try_compile
"$LINENO"; then :
1780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1784 $as_echo "$ac_res" >&6; }
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1787 } # ac_fn_c_check_header_compile
1789 # ac_fn_cxx_try_compile LINENO
1790 # ----------------------------
1791 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1792 ac_fn_cxx_try_compile
()
1794 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1795 rm -f conftest.
$ac_objext
1796 if { { ac_try
="$ac_compile"
1798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_compile") 2>conftest.err
1805 if test -s conftest.err; then
1806 grep -v '^ *+' conftest.err >conftest.er1
1807 cat conftest.er1 >&5
1808 mv -f conftest.er1 conftest.err
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; } && {
1812 test -z "$ac_cxx_werror_flag" ||
1813 test ! -s conftest.err
1814 } && test -s conftest.$ac_objext; then :
1817 $as_echo "$as_me: failed program was:" >&5
1818 sed 's/^/| /' conftest.$ac_ext >&5
1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1823 as_fn_set_status $ac_retval
1825 } # ac_fn_cxx_try_compile
1827 # ac_fn_c_try_link LINENO
1828 # -----------------------
1829 # Try to link conftest.$ac_ext, and return whether this succeeded.
1832 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1833 rm -f conftest.$ac_objext conftest$ac_exeext
1834 if { { ac_try="$ac_link"
1836 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1837 *) ac_try_echo
=$ac_try;;
1839 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1840 $as_echo "$ac_try_echo"; } >&5
1841 (eval "$ac_link") 2>conftest.err
1843 if test -s conftest.err
; then
1844 grep -v '^ *+' conftest.err
>conftest.er1
1845 cat conftest.er1
>&5
1846 mv -f conftest.er1 conftest.err
1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1849 test $ac_status = 0; } && {
1850 test -z "$ac_c_werror_flag" ||
1851 test ! -s conftest.err
1852 } && test -s conftest
$ac_exeext && {
1853 test "$cross_compiling" = yes ||
1854 $as_test_x conftest
$ac_exeext
1858 $as_echo "$as_me: failed program was:" >&5
1859 sed 's/^/| /' conftest.
$ac_ext >&5
1863 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1864 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1865 # interfere with the next link command; also delete a directory that is
1866 # left behind by Apple's compiler. We do this before executing the actions.
1867 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1868 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1869 as_fn_set_status
$ac_retval
1871 } # ac_fn_c_try_link
1873 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1874 # -------------------------------------------------------
1875 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1876 # the include files in INCLUDES and setting the cache variable VAR
1878 ac_fn_c_check_header_mongrel
()
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1883 $as_echo_n "checking for $2... " >&6; }
1884 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1885 $as_echo_n "(cached) " >&6
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1889 $as_echo "$ac_res" >&6; }
1891 # Is the header compilable?
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1893 $as_echo_n "checking $2 usability... " >&6; }
1894 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1895 /* end confdefs.h. */
1899 if ac_fn_c_try_compile
"$LINENO"; then :
1900 ac_header_compiler
=yes
1902 ac_header_compiler
=no
1904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1906 $as_echo "$ac_header_compiler" >&6; }
1908 # Is the header present?
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1910 $as_echo_n "checking $2 presence... " >&6; }
1911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1915 if ac_fn_c_try_cpp
"$LINENO"; then :
1916 ac_header_preproc
=yes
1918 ac_header_preproc
=no
1920 rm -f conftest.err conftest.
$ac_ext
1921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1922 $as_echo "$ac_header_preproc" >&6; }
1924 # So? What about this header?
1925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1928 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1929 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1930 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1934 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1936 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1938 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1940 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1942 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1944 ## ----------------------------------- ##
1945 ## Report this to llvmbugs@cs.uiuc.edu ##
1946 ## ----------------------------------- ##
1948 ) |
sed "s/^/$as_me: WARNING: /" >&2
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1952 $as_echo_n "checking for $2... " >&6; }
1953 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 $as_echo_n "(cached) " >&6
1956 eval "$3=\$ac_header_compiler"
1959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1960 $as_echo "$ac_res" >&6; }
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1964 } # ac_fn_c_check_header_mongrel
1966 # ac_fn_c_check_func LINENO FUNC VAR
1967 # ----------------------------------
1968 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1969 ac_fn_c_check_func
()
1971 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1975 $as_echo_n "(cached) " >&6
1977 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1978 /* end confdefs.h. */
1979 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1980 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1981 #define $2 innocuous_$2
1983 /* System header to define __stub macros and hopefully few prototypes,
1984 which can conflict with char $2 (); below.
1985 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1986 <limits.h> exists even on freestanding compilers. */
1989 # include <limits.h>
1991 # include <assert.h>
1996 /* Override any GCC internal prototype to avoid an error.
1997 Use char because int might match the return type of a GCC
1998 builtin and then its argument prototype would still apply. */
2003 /* The GNU C library defines this for functions which it implements
2004 to always fail with ENOSYS. Some functions are actually named
2005 something starting with __ and the normal name is an alias. */
2006 #if defined __stub_$2 || defined __stub___$2
2018 if ac_fn_c_try_link
"$LINENO"; then :
2023 rm -f core conftest.err conftest.
$ac_objext \
2024 conftest
$ac_exeext conftest.
$ac_ext
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2028 $as_echo "$ac_res" >&6; }
2029 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2031 } # ac_fn_c_check_func
2033 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2034 # -------------------------------------------
2035 # Tests whether TYPE exists after having included INCLUDES, setting cache
2036 # variable VAR accordingly.
2037 ac_fn_c_check_type
()
2039 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if { as_var
=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2043 $as_echo_n "(cached) " >&6
2046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2047 /* end confdefs.h. */
2058 if ac_fn_c_try_compile
"$LINENO"; then :
2059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2060 /* end confdefs.h. */
2071 if ac_fn_c_try_compile
"$LINENO"; then :
2076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2082 $as_echo "$ac_res" >&6; }
2083 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2085 } # ac_fn_c_check_type
2087 # ac_fn_cxx_try_run LINENO
2088 # ------------------------
2089 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2090 # that executables *can* be run.
2091 ac_fn_cxx_try_run
()
2093 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2094 if { { ac_try
="$ac_link"
2096 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2099 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100 $as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_link") 2>&5
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2105 { { case "(($ac_try" in
2106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2107 *) ac_try_echo
=$ac_try;;
2109 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2110 $as_echo "$ac_try_echo"; } >&5
2111 (eval "$ac_try") 2>&5
2113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2114 test $ac_status = 0; }; }; then :
2117 $as_echo "$as_me: program exited with status $ac_status" >&5
2118 $as_echo "$as_me: failed program was:" >&5
2119 sed 's/^/| /' conftest.
$ac_ext >&5
2121 ac_retval
=$ac_status
2123 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2124 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
2125 as_fn_set_status
$ac_retval
2127 } # ac_fn_cxx_try_run
2128 cat >config.log
<<_ACEOF
2129 This file contains any messages produced by compilers while
2130 running configure, to aid debugging if configure makes a mistake.
2132 It was created by llvm $as_me 2.9svn, which was
2133 generated by GNU Autoconf 2.65. Invocation command line was
2145 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2146 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2147 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2148 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2149 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2151 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2152 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2154 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2155 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2156 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2157 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2158 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2159 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2160 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2164 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2168 test -z "$as_dir" && as_dir
=.
2169 $as_echo "PATH: $as_dir"
2185 # Keep a trace of the command line.
2186 # Strip out --no-create and --no-recursion so they do not pile up.
2187 # Strip out --silent because we don't want to record it for future runs.
2188 # Also quote any args containing shell meta-characters.
2189 # Make two passes to allow for proper duplicate-argument suppression.
2193 ac_must_keep_next
=false
2199 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2200 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2201 |
-silent |
--silent |
--silen |
--sile |
--sil)
2204 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2207 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2209 as_fn_append ac_configure_args1
" '$ac_arg'"
2210 if test $ac_must_keep_next = true
; then
2211 ac_must_keep_next
=false
# Got value, back to normal.
2214 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2215 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2216 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2217 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2218 case "$ac_configure_args0 " in
2219 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2222 -* ) ac_must_keep_next
=true
;;
2225 as_fn_append ac_configure_args
" '$ac_arg'"
2230 { ac_configure_args0
=; unset ac_configure_args0
;}
2231 { ac_configure_args1
=; unset ac_configure_args1
;}
2233 # When interrupted or exit'd, cleanup temporary files, and complete
2234 # config.log. We remove comments because anyway the quotes in there
2235 # would cause problems or look ugly.
2236 # WARNING: Use '\'' to represent an apostrophe within the trap.
2237 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2238 trap 'exit_status=$?
2239 # Save into config.log some information that might help in debugging.
2244 ## ---------------- ##
2245 ## Cache variables. ##
2246 ## ---------------- ##
2249 # The following way of writing the cache mishandles newlines in values,
2251 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2252 eval ac_val=\$$ac_var
2256 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2257 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2260 _ | IFS | as_nl) ;; #(
2261 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2262 *) { eval $ac_var=; unset $ac_var;} ;;
2267 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2268 *${as_nl}ac_space=\ *)
2270 "s/'\''/'\''\\\\'\'''\''/g;
2271 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2274 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2282 ## ----------------- ##
2283 ## Output variables. ##
2284 ## ----------------- ##
2287 for ac_var in $ac_subst_vars
2289 eval ac_val=\$$ac_var
2291 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2293 $as_echo "$ac_var='\''$ac_val'\''"
2297 if test -n "$ac_subst_files"; then
2299 ## ------------------- ##
2300 ## File substitutions. ##
2301 ## ------------------- ##
2304 for ac_var
in $ac_subst_files
2306 eval ac_val
=\$
$ac_var
2308 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2310 $as_echo "$ac_var='\''$ac_val'\''"
2315 if test -s confdefs.h; then
2325 test "$ac_signal" != 0 &&
2326 $as_echo "$as_me: caught signal $ac_signal"
2327 $as_echo "$as_me: exit $exit_status"
2329 rm -f core *.core core.conftest.* &&
2330 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2333 for ac_signal
in 1 2 13 15; do
2334 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2338 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2339 rm -f -r conftest
* confdefs.h
2341 $as_echo "/* confdefs.h */" > confdefs.h
2343 # Predefined preprocessor variables.
2345 cat >>confdefs.h
<<_ACEOF
2346 #define PACKAGE_NAME "$PACKAGE_NAME"
2349 cat >>confdefs.h
<<_ACEOF
2350 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2353 cat >>confdefs.h
<<_ACEOF
2354 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2357 cat >>confdefs.h
<<_ACEOF
2358 #define PACKAGE_STRING "$PACKAGE_STRING"
2361 cat >>confdefs.h
<<_ACEOF
2362 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2365 cat >>confdefs.h
<<_ACEOF
2366 #define PACKAGE_URL "$PACKAGE_URL"
2370 # Let the site file select an alternate cache file if it wants to.
2371 # Prefer an explicitly selected file to automatically selected ones.
2374 if test -n "$CONFIG_SITE"; then
2375 ac_site_file1
=$CONFIG_SITE
2376 elif test "x$prefix" != xNONE
; then
2377 ac_site_file1
=$prefix/share
/config.site
2378 ac_site_file2
=$prefix/etc
/config.site
2380 ac_site_file1
=$ac_default_prefix/share
/config.site
2381 ac_site_file2
=$ac_default_prefix/etc
/config.site
2383 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2385 test "x$ac_site_file" = xNONE
&& continue
2386 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2388 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2389 sed 's/^/| /' "$ac_site_file" >&5
2394 if test -r "$cache_file"; then
2395 # Some versions of bash will fail to source /dev/null (special files
2396 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2397 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2399 $as_echo "$as_me: loading cache $cache_file" >&6;}
2401 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2402 *) .
"./$cache_file";;
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2407 $as_echo "$as_me: creating cache $cache_file" >&6;}
2411 as_fn_append ac_header_list
" stdlib.h"
2412 as_fn_append ac_header_list
" unistd.h"
2413 as_fn_append ac_header_list
" sys/param.h"
2414 # Check that the precious variables saved in the cache have kept the same
2416 ac_cache_corrupted
=false
2417 for ac_var
in $ac_precious_vars; do
2418 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2419 eval ac_new_set
=\
$ac_env_${ac_var}_set
2420 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2421 eval ac_new_val
=\
$ac_env_${ac_var}_value
2422 case $ac_old_set,$ac_new_set in
2424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2425 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2426 ac_cache_corrupted
=: ;;
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2429 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2430 ac_cache_corrupted
=: ;;
2433 if test "x$ac_old_val" != "x$ac_new_val"; then
2434 # differences in whitespace do not lead to failure.
2435 ac_old_val_w
=`echo x $ac_old_val`
2436 ac_new_val_w
=`echo x $ac_new_val`
2437 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2439 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2440 ac_cache_corrupted
=:
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2443 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2444 eval $ac_var=\
$ac_old_val
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2447 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2449 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2452 # Pass precious variables to config.status.
2453 if test "$ac_new_set" = set; then
2455 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2456 *) ac_arg
=$ac_var=$ac_new_val ;;
2458 case " $ac_configure_args " in
2459 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2460 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2464 if $ac_cache_corrupted; then
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2467 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2468 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2469 as_fn_error
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2471 ## -------------------- ##
2472 ## Main body of script. ##
2473 ## -------------------- ##
2476 ac_cpp
='$CPP $CPPFLAGS'
2477 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2478 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2479 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2483 LLVM_COPYRIGHT
="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
2492 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
2493 for ac_t
in install-sh
install.sh shtool
; do
2494 if test -f "$ac_dir/$ac_t"; then
2496 ac_install_sh
="$ac_aux_dir/$ac_t -c"
2501 if test -z "$ac_aux_dir"; then
2502 as_fn_error
"cannot find install-sh, install.sh, or shtool in autoconf \"$srcdir\"/autoconf" "$LINENO" 5
2505 # These three variables are undocumented and unsupported,
2506 # and are intended to be withdrawn in a future Autoconf release.
2507 # They can cause serious problems if a builder's source tree is in a directory
2508 # whose full name contains unusual characters.
2509 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2510 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2511 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2515 if test ${srcdir} != "." ; then
2516 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
2517 as_fn_error
"Already configured in ${srcdir}" "$LINENO" 5
2523 if test -d ${srcdir}/projects
/llvm-gcc
; then
2526 subdirs
="$subdirs projects/llvm-gcc"
2530 if test -d ${srcdir}/projects
/test-suite
; then
2531 subdirs
="$subdirs projects/test-suite"
2535 if test -d ${srcdir}/projects
/llvm-test
; then
2536 subdirs
="$subdirs projects/llvm-test"
2540 if test -d ${srcdir}/projects
/poolalloc
; then
2541 subdirs
="$subdirs projects/poolalloc"
2545 if test -d ${srcdir}/projects
/llvm-poolalloc
; then
2546 subdirs
="$subdirs projects/llvm-poolalloc"
2550 for i
in `ls ${srcdir}/projects`
2552 if test -d ${srcdir}/projects
/${i} ; then
2554 sample
) subdirs
="$subdirs projects/sample"
2556 privbracket
) subdirs
="$subdirs projects/privbracket"
2558 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
2560 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
2562 llvm-java
) subdirs
="$subdirs projects/llvm-java"
2564 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
2566 safecode
) subdirs
="$subdirs projects/safecode"
2568 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2577 $as_echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2583 # Check whether --enable-polly was given.
2584 if test "${enable_polly+set}" = set; then :
2585 enableval
=$enable_polly;
2590 case "$enableval" in
2595 default
) ENABLE_POLLY
=1
2597 *) as_fn_error
"Invalid setting for --enable-polly. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
2601 if (test -d ${srcdir}/tools
/polly
) && (test $ENABLE_POLLY -eq 1) ; then
2604 subdirs
="$subdirs tools/polly"
2609 # Make sure we can run config.sub.
2610 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2611 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2614 $as_echo_n "checking build system type... " >&6; }
2615 if test "${ac_cv_build+set}" = set; then :
2616 $as_echo_n "(cached) " >&6
2618 ac_build_alias
=$build_alias
2619 test "x$ac_build_alias" = x
&&
2620 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2621 test "x$ac_build_alias" = x
&&
2622 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
2623 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2624 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2628 $as_echo "$ac_cv_build" >&6; }
2629 case $ac_cv_build in
2631 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
2634 ac_save_IFS
=$IFS; IFS
='-'
2640 # Remember, the first character of IFS is used to create $*,
2641 # except with old shells:
2644 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2648 $as_echo_n "checking host system type... " >&6; }
2649 if test "${ac_cv_host+set}" = set; then :
2650 $as_echo_n "(cached) " >&6
2652 if test "x$host_alias" = x
; then
2653 ac_cv_host
=$ac_cv_build
2655 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2656 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2661 $as_echo "$ac_cv_host" >&6; }
2664 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
2667 ac_save_IFS
=$IFS; IFS
='-'
2673 # Remember, the first character of IFS is used to create $*,
2674 # except with old shells:
2677 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2681 $as_echo_n "checking target system type... " >&6; }
2682 if test "${ac_cv_target+set}" = set; then :
2683 $as_echo_n "(cached) " >&6
2685 if test "x$target_alias" = x
; then
2686 ac_cv_target
=$ac_cv_host
2688 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2689 as_fn_error
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2694 $as_echo "$ac_cv_target" >&6; }
2695 case $ac_cv_target in
2697 *) as_fn_error
"invalid value of canonical target" "$LINENO" 5;;
2699 target
=$ac_cv_target
2700 ac_save_IFS
=$IFS; IFS
='-'
2706 # Remember, the first character of IFS is used to create $*,
2707 # except with old shells:
2710 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2713 # The aliases save the names the user supplied, while $host etc.
2714 # will get canonicalized.
2715 test -n "$target_alias" &&
2716 test "$program_prefix$program_suffix$program_transform_name" = \
2718 program_prefix
=${target_alias}-
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to host on" >&5
2721 $as_echo_n "checking type of operating system we're going to host on... " >&6; }
2722 if test "${llvm_cv_os_type+set}" = set; then :
2723 $as_echo_n "(cached) " >&6
2727 llvm_cv_link_all_option
="-Wl,--whole-archive"
2728 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2729 llvm_cv_os_type
="AIX"
2730 llvm_cv_platform_type
="Unix" ;;
2732 llvm_cv_link_all_option
="-Wl,--whole-archive"
2733 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2734 llvm_cv_os_type
="IRIX"
2735 llvm_cv_platform_type
="Unix" ;;
2737 llvm_cv_link_all_option
="-Wl,--whole-archive"
2738 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2739 llvm_cv_os_type
="Cygwin"
2740 llvm_cv_platform_type
="Unix" ;;
2742 llvm_cv_link_all_option
="-Wl,-all_load"
2743 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2744 llvm_cv_os_type
="Darwin"
2745 llvm_cv_platform_type
="Unix" ;;
2747 llvm_cv_link_all_option
="-Wl,-all_load"
2748 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2749 llvm_cv_os_type
="Minix"
2750 llvm_cv_platform_type
="Unix" ;;
2752 llvm_cv_link_all_option
="-Wl,--whole-archive"
2753 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2754 llvm_cv_os_type
="FreeBSD"
2755 llvm_cv_platform_type
="Unix" ;;
2757 llvm_cv_link_all_option
="-Wl,--whole-archive"
2758 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2759 llvm_cv_os_type
="OpenBSD"
2760 llvm_cv_platform_type
="Unix" ;;
2762 llvm_cv_link_all_option
="-Wl,--whole-archive"
2763 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2764 llvm_cv_os_type
="NetBSD"
2765 llvm_cv_platform_type
="Unix" ;;
2767 llvm_cv_link_all_option
="-Wl,--whole-archive"
2768 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2769 llvm_cv_os_type
="DragonFly"
2770 llvm_cv_platform_type
="Unix" ;;
2772 llvm_cv_link_all_option
="-Wl,--whole-archive"
2773 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2774 llvm_cv_os_type
="HP-UX"
2775 llvm_cv_platform_type
="Unix" ;;
2777 llvm_cv_link_all_option
="-Wl,--whole-archive"
2778 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2779 llvm_cv_os_type
="Interix"
2780 llvm_cv_platform_type
="Unix" ;;
2782 llvm_cv_link_all_option
="-Wl,--whole-archive"
2783 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2784 llvm_cv_os_type
="Linux"
2785 llvm_cv_platform_type
="Unix" ;;
2787 llvm_cv_link_all_option
="-Wl,-z,allextract"
2788 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2789 llvm_cv_os_type
="SunOS"
2790 llvm_cv_platform_type
="Unix" ;;
2792 llvm_cv_link_all_option
="-Wl,-z,allextract"
2793 llvm_cv_link_all_option
="-Wl,-z,defaultextract"
2794 llvm_cv_os_type
="AuroraUX"
2795 llvm_cv_platform_type
="Unix" ;;
2797 llvm_cv_link_all_option
="-Wl,--whole-archive"
2798 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2799 llvm_cv_os_type
="Win32"
2800 llvm_cv_platform_type
="Win32" ;;
2802 llvm_cv_link_all_option
="-Wl,--whole-archive"
2803 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2804 llvm_cv_os_type
="MingW"
2805 llvm_cv_platform_type
="Win32" ;;
2807 llvm_cv_link_all_option
="-Wl,--whole-archive"
2808 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2809 llvm_cv_os_type
="Haiku"
2810 llvm_cv_platform_type
="Unix" ;;
2812 llvm_cv_link_all_option
="-Wl,--whole-archive"
2813 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2814 llvm_cv_os_type
="Freestanding"
2815 llvm_cv_platform_type
="Unix" ;;
2817 llvm_cv_link_all_option
="-Wl,--whole-archive"
2818 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2819 llvm_cv_os_type
="Freestanding"
2820 llvm_cv_platform_type
="Unix" ;;
2822 llvm_cv_link_all_option
=""
2823 llvm_cv_no_link_all_option
=""
2824 llvm_cv_os_type
="Unknown"
2825 llvm_cv_platform_type
="Unknown" ;;
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_os_type" >&5
2829 $as_echo "$llvm_cv_os_type" >&6; }
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking type of operating system we're going to target" >&5
2832 $as_echo_n "checking type of operating system we're going to target... " >&6; }
2833 if test "${llvm_cv_target_os_type+set}" = set; then :
2834 $as_echo_n "(cached) " >&6
2838 llvm_cv_target_os_type
="AIX" ;;
2840 llvm_cv_target_os_type
="IRIX" ;;
2842 llvm_cv_target_os_type
="Cygwin" ;;
2844 llvm_cv_target_os_type
="Darwin" ;;
2846 llvm_cv_target_os_type
="Minix" ;;
2848 llvm_cv_target_os_type
="FreeBSD" ;;
2850 llvm_cv_target_os_type
="OpenBSD" ;;
2852 llvm_cv_target_os_type
="NetBSD" ;;
2854 llvm_cv_target_os_type
="DragonFly" ;;
2856 llvm_cv_target_os_type
="HP-UX" ;;
2858 llvm_cv_target_os_type
="Interix" ;;
2860 llvm_cv_target_os_type
="Linux" ;;
2862 llvm_cv_target_os_type
="SunOS" ;;
2864 llvm_cv_target_os_type
="AuroraUX" ;;
2866 llvm_cv_target_os_type
="Win32" ;;
2868 llvm_cv_target_os_type
="MingW" ;;
2870 llvm_cv_target_os_type
="Haiku" ;;
2872 llvm_cv_target_os_type
="Freestanding" ;;
2874 llvm_cv_target_os_type
="Unknown" ;;
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_os_type" >&5
2878 $as_echo "$llvm_cv_target_os_type" >&6; }
2880 if test "$llvm_cv_os_type" = "Unknown" ; then
2881 as_fn_error
"Operating system is unknown, configure can't continue" "$LINENO" 5
2886 HOST_OS
=$llvm_cv_os_type
2888 TARGET_OS
=$llvm_cv_target_os_type
2891 LINKALL
=$llvm_cv_link_all_option
2893 NOLINKALL
=$llvm_cv_no_link_all_option
2896 case $llvm_cv_platform_type in
2899 $as_echo "#define LLVM_ON_UNIX 1" >>confdefs.h
2908 $as_echo "#define LLVM_ON_WIN32 1" >>confdefs.h
2917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target architecture" >&5
2918 $as_echo_n "checking target architecture... " >&6; }
2919 if test "${llvm_cv_target_arch+set}" = set; then :
2920 $as_echo_n "(cached) " >&6
2923 i?
86-*) llvm_cv_target_arch
="x86" ;;
2924 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2925 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2926 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2927 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2928 arm
*-*) llvm_cv_target_arch
="ARM" ;;
2929 mips-
*) llvm_cv_target_arch
="Mips" ;;
2930 zpu-
*) llvm_cv_target_arch
="ZPU" ;;
2931 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2932 msp430-
*) llvm_cv_target_arch
="MSP430" ;;
2933 s390x-
*) llvm_cv_target_arch
="SystemZ" ;;
2934 bfin-
*) llvm_cv_target_arch
="Blackfin" ;;
2935 mblaze-
*) llvm_cv_target_arch
="MBlaze" ;;
2936 ptx-
*) llvm_cv_target_arch
="PTX" ;;
2937 *) llvm_cv_target_arch
="Unknown" ;;
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_target_arch" >&5
2941 $as_echo "$llvm_cv_target_arch" >&6; }
2943 if test "$llvm_cv_target_arch" = "Unknown" ; then
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Configuring LLVM for an unknown target archicture" >&5
2945 $as_echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2948 # Determine the LLVM native architecture for the target
2949 case "$llvm_cv_target_arch" in
2950 x86
) LLVM_NATIVE_ARCH
="X86" ;;
2951 x86_64
) LLVM_NATIVE_ARCH
="X86" ;;
2952 *) LLVM_NATIVE_ARCH
="$llvm_cv_target_arch" ;;
2955 ARCH
=$llvm_cv_target_arch
2959 ac_cpp
='$CPP $CPPFLAGS'
2960 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2961 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2962 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2963 if test -n "$ac_tool_prefix"; then
2964 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2965 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2967 $as_echo_n "checking for $ac_word... " >&6; }
2968 if test "${ac_cv_prog_CC+set}" = set; then :
2969 $as_echo_n "(cached) " >&6
2971 if test -n "$CC"; then
2972 ac_cv_prog_CC
="$CC" # Let the user override the test.
2974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2978 test -z "$as_dir" && as_dir
=.
2979 for ac_exec_ext
in '' $ac_executable_extensions; do
2980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2981 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2982 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2992 if test -n "$CC"; then
2993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2994 $as_echo "$CC" >&6; }
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2997 $as_echo "no" >&6; }
3002 if test -z "$ac_cv_prog_CC"; then
3004 # Extract the first word of "gcc", so it can be a program name with args.
3005 set dummy gcc
; ac_word
=$2
3006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3007 $as_echo_n "checking for $ac_word... " >&6; }
3008 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3009 $as_echo_n "(cached) " >&6
3011 if test -n "$ac_ct_CC"; then
3012 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3018 test -z "$as_dir" && as_dir
=.
3019 for ac_exec_ext
in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 ac_cv_prog_ac_ct_CC
="gcc"
3022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3031 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3032 if test -n "$ac_ct_CC"; then
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3034 $as_echo "$ac_ct_CC" >&6; }
3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3037 $as_echo "no" >&6; }
3040 if test "x$ac_ct_CC" = x
; then
3043 case $cross_compiling:$ac_tool_warned in
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3046 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3047 ac_tool_warned
=yes ;;
3055 if test -z "$CC"; then
3056 if test -n "$ac_tool_prefix"; then
3057 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3058 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3060 $as_echo_n "checking for $ac_word... " >&6; }
3061 if test "${ac_cv_prog_CC+set}" = set; then :
3062 $as_echo_n "(cached) " >&6
3064 if test -n "$CC"; then
3065 ac_cv_prog_CC
="$CC" # Let the user override the test.
3067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3071 test -z "$as_dir" && as_dir
=.
3072 for ac_exec_ext
in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3085 if test -n "$CC"; then
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3087 $as_echo "$CC" >&6; }
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3090 $as_echo "no" >&6; }
3096 if test -z "$CC"; then
3097 # Extract the first word of "cc", so it can be a program name with args.
3098 set dummy cc
; ac_word
=$2
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3100 $as_echo_n "checking for $ac_word... " >&6; }
3101 if test "${ac_cv_prog_CC+set}" = set; then :
3102 $as_echo_n "(cached) " >&6
3104 if test -n "$CC"; then
3105 ac_cv_prog_CC
="$CC" # Let the user override the test.
3108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3112 test -z "$as_dir" && as_dir
=.
3113 for ac_exec_ext
in '' $ac_executable_extensions; do
3114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3115 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3116 ac_prog_rejected
=yes
3120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3127 if test $ac_prog_rejected = yes; then
3128 # We found a bogon in the path, so make sure we never use it.
3129 set dummy
$ac_cv_prog_CC
3131 if test $# != 0; then
3132 # We chose a different compiler from the bogus one.
3133 # However, it has the same basename, so the bogon will be chosen
3134 # first if we set CC to just the basename; use the full file name.
3136 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3142 if test -n "$CC"; then
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3144 $as_echo "$CC" >&6; }
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3152 if test -z "$CC"; then
3153 if test -n "$ac_tool_prefix"; then
3154 for ac_prog
in cl.exe
3156 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3157 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3159 $as_echo_n "checking for $ac_word... " >&6; }
3160 if test "${ac_cv_prog_CC+set}" = set; then :
3161 $as_echo_n "(cached) " >&6
3163 if test -n "$CC"; then
3164 ac_cv_prog_CC
="$CC" # Let the user override the test.
3166 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3170 test -z "$as_dir" && as_dir
=.
3171 for ac_exec_ext
in '' $ac_executable_extensions; do
3172 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3173 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3184 if test -n "$CC"; then
3185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3186 $as_echo "$CC" >&6; }
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3189 $as_echo "no" >&6; }
3193 test -n "$CC" && break
3196 if test -z "$CC"; then
3198 for ac_prog
in cl.exe
3200 # Extract the first word of "$ac_prog", so it can be a program name with args.
3201 set dummy
$ac_prog; ac_word
=$2
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3203 $as_echo_n "checking for $ac_word... " >&6; }
3204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3205 $as_echo_n "(cached) " >&6
3207 if test -n "$ac_ct_CC"; then
3208 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3210 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3214 test -z "$as_dir" && as_dir
=.
3215 for ac_exec_ext
in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_ac_ct_CC
="$ac_prog"
3218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3227 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3230 $as_echo "$ac_ct_CC" >&6; }
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3233 $as_echo "no" >&6; }
3237 test -n "$ac_ct_CC" && break
3240 if test "x$ac_ct_CC" = x
; then
3243 case $cross_compiling:$ac_tool_warned in
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3246 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3247 ac_tool_warned
=yes ;;
3256 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3257 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3258 as_fn_error
"no acceptable C compiler found in \$PATH
3259 See \`config.log' for more details." "$LINENO" 5; }
3261 # Provide some information about the compiler.
3262 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3265 for ac_option
in --version -v -V -qversion; do
3266 { { ac_try
="$ac_compiler $ac_option >&5"
3268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3271 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3272 $as_echo "$ac_try_echo"; } >&5
3273 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3275 if test -s conftest.err; then
3277 ... rest of stderr output deleted ...
3278 10q' conftest.err >conftest.er1
3279 cat conftest.er1 >&5
3281 rm -f conftest.er1 conftest.err
3282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3283 test $ac_status = 0; }
3286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3287 /* end confdefs.h. */
3297 ac_clean_files_save=$ac_clean_files
3298 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3299 # Try to create an executable without -o first, disregard a.out.
3300 # It will help us diagnose broken compilers, and finding out an intuition
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3303 $as_echo_n "checking whether the C compiler works... " >&6; }
3304 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3306 # The possible output files:
3307 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3310 for ac_file in $ac_files
3313 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3314 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3319 if { { ac_try="$ac_link_default"
3321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3322 *) ac_try_echo
=$ac_try;;
3324 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_link_default") 2>&5
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3331 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3332 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3333 # so that the user can short-circuit this test for compilers unknown to
3335 for ac_file
in $ac_files ''
3337 test -f "$ac_file" ||
continue
3339 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3342 # We found the default executable, but exeext='' is most
3346 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3348 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3350 # We set ac_cv_exeext here because the later test for it is not
3351 # safe: cross compilers may not add the suffix if given an `-o'
3352 # argument, so we may need to know it at that point already.
3353 # Even if this section looks crufty: it has the advantage of
3360 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3365 if test -z "$ac_file"; then :
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 $as_echo "$as_me: failed program was:" >&5
3369 sed 's/^/| /' conftest.
$ac_ext >&5
3371 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3372 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3373 { as_fn_set_status
77
3374 as_fn_error
"C compiler cannot create executables
3375 See \`config.log' for more details." "$LINENO" 5; }; }
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3378 $as_echo "yes" >&6; }
3380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3381 $as_echo_n "checking for C compiler default output file name... " >&6; }
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3383 $as_echo "$ac_file" >&6; }
3384 ac_exeext
=$ac_cv_exeext
3386 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3387 ac_clean_files
=$ac_clean_files_save
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3389 $as_echo_n "checking for suffix of executables... " >&6; }
3390 if { { ac_try
="$ac_link"
3392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3393 *) ac_try_echo=$ac_try;;
3395 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3396 $as_echo "$ac_try_echo"; } >&5
3397 (eval "$ac_link") 2>&5
3399 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3400 test $ac_status = 0; }; then :
3401 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3402 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3403 # work properly (i.e., refer to `conftest.exe'), while it won't with
3405 for ac_file
in conftest.exe conftest conftest.
*; do
3406 test -f "$ac_file" ||
continue
3408 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3409 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3415 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3418 See \`config.log' for more details." "$LINENO" 5; }
3420 rm -f conftest conftest
$ac_cv_exeext
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3422 $as_echo "$ac_cv_exeext" >&6; }
3424 rm -f conftest.
$ac_ext
3425 EXEEXT
=$ac_cv_exeext
3427 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3433 FILE *f = fopen ("conftest.out", "w");
3434 return ferror (f) || fclose (f) != 0;
3440 ac_clean_files
="$ac_clean_files conftest.out"
3441 # Check that the compiler produces executables we can run. If not, either
3442 # the compiler is broken, or we cross compile.
3443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3444 $as_echo_n "checking whether we are cross compiling... " >&6; }
3445 if test "$cross_compiling" != yes; then
3446 { { ac_try
="$ac_link"
3448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_link") 2>&5
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }
3457 if { ac_try='./conftest$ac_cv_exeext'
3458 { { case "(($ac_try" in
3459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3460 *) ac_try_echo
=$ac_try;;
3462 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3463 $as_echo "$ac_try_echo"; } >&5
3464 (eval "$ac_try") 2>&5
3466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3467 test $ac_status = 0; }; }; then
3470 if test "$cross_compiling" = maybe
; then
3473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3475 as_fn_error
"cannot run C compiled programs.
3476 If you meant to cross compile, use \`--host'.
3477 See \`config.log' for more details." "$LINENO" 5; }
3481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3482 $as_echo "$cross_compiling" >&6; }
3484 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3485 ac_clean_files
=$ac_clean_files_save
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3487 $as_echo_n "checking for suffix of object files... " >&6; }
3488 if test "${ac_cv_objext+set}" = set; then :
3489 $as_echo_n "(cached) " >&6
3491 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3492 /* end confdefs.h. */
3502 rm -f conftest.o conftest.obj
3503 if { { ac_try
="$ac_compile"
3505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3506 *) ac_try_echo=$ac_try;;
3508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3509 $as_echo "$ac_try_echo"; } >&5
3510 (eval "$ac_compile") 2>&5
3512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3513 test $ac_status = 0; }; then :
3514 for ac_file in conftest.o conftest.obj conftest.*; do
3515 test -f "$ac_file" || continue;
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3518 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3523 $as_echo "$as_me: failed program was:" >&5
3524 sed 's/^/| /' conftest.$ac_ext >&5
3526 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3527 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3528 as_fn_error "cannot compute suffix of object files
: cannot compile
3529 See \
`config.log' for more details." "$LINENO" 5; }
3531 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3534 $as_echo "$ac_cv_objext" >&6; }
3535 OBJEXT=$ac_cv_objext
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3538 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3539 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3540 $as_echo_n "(cached) " >&6
3542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3543 /* end confdefs.h. */
3556 if ac_fn_c_try_compile "$LINENO"; then :
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3566 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3567 if test $ac_compiler_gnu = yes; then
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3575 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3576 if test "${ac_cv_prog_cc_g+set}" = set; then :
3577 $as_echo_n "(cached) " >&6
3579 ac_save_c_werror_flag=$ac_c_werror_flag
3580 ac_c_werror_flag=yes
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3594 if ac_fn_c_try_compile "$LINENO"; then :
3598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3599 /* end confdefs.h. */
3609 if ac_fn_c_try_compile "$LINENO"; then :
3612 ac_c_werror_flag=$ac_save_c_werror_flag
3614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3615 /* end confdefs.h. */
3625 if ac_fn_c_try_compile "$LINENO"; then :
3628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 ac_c_werror_flag=$ac_save_c_werror_flag
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3636 $as_echo "$ac_cv_prog_cc_g" >&6; }
3637 if test "$ac_test_CFLAGS" = set; then
3638 CFLAGS=$ac_save_CFLAGS
3639 elif test $ac_cv_prog_cc_g = yes; then
3640 if test "$GCC" = yes; then
3646 if test "$GCC" = yes; then
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3653 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3654 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3657 ac_cv_prog_cc_c89=no
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3663 #include <sys/types.h>
3664 #include <sys/stat.h>
3665 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3666 struct buf { int x; };
3667 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3668 static char *e (p, i)
3674 static char *f (char * (*g) (char **, int), char **p, ...)
3679 s = g (p, va_arg (v,int));
3684 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3685 function prototypes and stuff, but not '\xHH' hex character constants.
3686 These don't provoke an error unfortunately, instead are silently treated
3687 as 'x'. The following induces an error, until -std is added to get
3688 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3689 array size at least. It's necessary to write '\x00'==0 to get something
3690 that's true only with -std. */
3691 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3693 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3694 inside strings and character constants. */
3696 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3698 int test (int i, double x);
3699 struct s1 {int (*f) (int a);};
3700 struct s2 {int (*f) (double a);};
3701 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3707 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3712 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3713 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3715 CC="$ac_save_CC $ac_arg"
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_c89=$ac_arg
3719 rm -f core conftest.err conftest.$ac_objext
3720 test "x$ac_cv_prog_cc_c89" != "xno" && break
3722 rm -f conftest.$ac_ext
3727 case "x$ac_cv_prog_cc_c89" in
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3730 $as_echo "none needed" >&6; } ;;
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3733 $as_echo "unsupported" >&6; } ;;
3735 CC="$CC $ac_cv_prog_cc_c89"
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3737 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3739 if test "x$ac_cv_prog_cc_c89" != xno; then :
3744 ac_cpp='$CPP $CPPFLAGS'
3745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3751 ac_cpp='$CPP $CPPFLAGS'
3752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3756 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3757 # On Suns, sometimes $CPP names a directory.
3758 if test -n "$CPP" && test -d "$CPP"; then
3761 if test -z "$CPP"; then
3762 if test "${ac_cv_prog_CPP+set}" = set; then :
3763 $as_echo_n "(cached) " >&6
3765 # Double quotes because CPP needs to be expanded
3766 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3769 for ac_c_preproc_warn_flag in '' yes
3771 # Use a header file that comes with gcc, so configuring glibc
3772 # with a fresh cross-compiler works.
3773 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3774 # <limits.h> exists even on freestanding compilers.
3775 # On the NeXT, cc -E runs the code through the compiler's parser,
3776 # not just through cpp. "Syntax error" is here to catch this case.
3777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3778 /* end confdefs.h. */
3780 # include <limits.h>
3782 # include <assert.h>
3786 if ac_fn_c_try_cpp "$LINENO"; then :
3789 # Broken: fails on valid input.
3792 rm -f conftest.err conftest.$ac_ext
3794 # OK, works on sane cases. Now check whether nonexistent headers
3795 # can be detected and how.
3796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3797 /* end confdefs.h. */
3798 #include <ac_nonexistent.h>
3800 if ac_fn_c_try_cpp "$LINENO"; then :
3801 # Broken: success on invalid input.
3804 # Passes both tests.
3808 rm -f conftest.err conftest.$ac_ext
3811 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3812 rm -f conftest.err conftest.
$ac_ext
3813 if $ac_preproc_ok; then :
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3826 $as_echo "$CPP" >&6; }
3828 for ac_c_preproc_warn_flag
in '' yes
3830 # Use a header file that comes with gcc, so configuring glibc
3831 # with a fresh cross-compiler works.
3832 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3833 # <limits.h> exists even on freestanding compilers.
3834 # On the NeXT, cc -E runs the code through the compiler's parser,
3835 # not just through cpp. "Syntax error" is here to catch this case.
3836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3837 /* end confdefs.h. */
3839 # include <limits.h>
3841 # include <assert.h>
3845 if ac_fn_c_try_cpp
"$LINENO"; then :
3848 # Broken: fails on valid input.
3851 rm -f conftest.err conftest.
$ac_ext
3853 # OK, works on sane cases. Now check whether nonexistent headers
3854 # can be detected and how.
3855 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857 #include <ac_nonexistent.h>
3859 if ac_fn_c_try_cpp
"$LINENO"; then :
3860 # Broken: success on invalid input.
3863 # Passes both tests.
3867 rm -f conftest.err conftest.
$ac_ext
3870 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3871 rm -f conftest.err conftest.
$ac_ext
3872 if $ac_preproc_ok; then :
3875 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3876 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3877 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
3878 See \`config.log' for more details." "$LINENO" 5; }
3882 ac_cpp
='$CPP $CPPFLAGS'
3883 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3884 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3885 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3889 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3890 if test "${ac_cv_path_GREP+set}" = set; then :
3891 $as_echo_n "(cached) " >&6
3893 if test -z "$GREP"; then
3894 ac_path_GREP_found
=false
3895 # Loop through the user's path and test for each of PROGNAME-LIST
3896 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3897 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3900 test -z "$as_dir" && as_dir
=.
3901 for ac_prog
in grep ggrep
; do
3902 for ac_exec_ext
in '' $ac_executable_extensions; do
3903 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3904 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3905 # Check for GNU ac_path_GREP and select it if it is found.
3906 # Check for GNU $ac_path_GREP
3907 case `"$ac_path_GREP" --version 2>&1` in
3909 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3912 $as_echo_n 0123456789 >"conftest.in"
3915 cat "conftest.in" "conftest.in" >"conftest.tmp"
3916 mv "conftest.tmp" "conftest.in"
3917 cp "conftest.in" "conftest.nl"
3918 $as_echo 'GREP' >> "conftest.nl"
3919 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3920 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3921 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3922 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3923 # Best one so far, save it but keep looking for a better one
3924 ac_cv_path_GREP
="$ac_path_GREP"
3925 ac_path_GREP_max
=$ac_count
3927 # 10*(2^10) chars as input seems more than enough
3928 test $ac_count -gt 10 && break
3930 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3933 $ac_path_GREP_found && break 3
3938 if test -z "$ac_cv_path_GREP"; then
3939 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3942 ac_cv_path_GREP
=$GREP
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3947 $as_echo "$ac_cv_path_GREP" >&6; }
3948 GREP
="$ac_cv_path_GREP"
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3952 $as_echo_n "checking for egrep... " >&6; }
3953 if test "${ac_cv_path_EGREP+set}" = set; then :
3954 $as_echo_n "(cached) " >&6
3956 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3957 then ac_cv_path_EGREP
="$GREP -E"
3959 if test -z "$EGREP"; then
3960 ac_path_EGREP_found
=false
3961 # Loop through the user's path and test for each of PROGNAME-LIST
3962 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3963 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3966 test -z "$as_dir" && as_dir
=.
3967 for ac_prog
in egrep; do
3968 for ac_exec_ext
in '' $ac_executable_extensions; do
3969 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3970 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
3971 # Check for GNU ac_path_EGREP and select it if it is found.
3972 # Check for GNU $ac_path_EGREP
3973 case `"$ac_path_EGREP" --version 2>&1` in
3975 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3978 $as_echo_n 0123456789 >"conftest.in"
3981 cat "conftest.in" "conftest.in" >"conftest.tmp"
3982 mv "conftest.tmp" "conftest.in"
3983 cp "conftest.in" "conftest.nl"
3984 $as_echo 'EGREP' >> "conftest.nl"
3985 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3986 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3987 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
3988 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3989 # Best one so far, save it but keep looking for a better one
3990 ac_cv_path_EGREP
="$ac_path_EGREP"
3991 ac_path_EGREP_max
=$ac_count
3993 # 10*(2^10) chars as input seems more than enough
3994 test $ac_count -gt 10 && break
3996 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3999 $ac_path_EGREP_found && break 3
4004 if test -z "$ac_cv_path_EGREP"; then
4005 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4008 ac_cv_path_EGREP
=$EGREP
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4014 $as_echo "$ac_cv_path_EGREP" >&6; }
4015 EGREP
="$ac_cv_path_EGREP"
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4019 $as_echo_n "checking for ANSI C header files... " >&6; }
4020 if test "${ac_cv_header_stdc+set}" = set; then :
4021 $as_echo_n "(cached) " >&6
4023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4038 if ac_fn_c_try_compile
"$LINENO"; then :
4039 ac_cv_header_stdc
=yes
4041 ac_cv_header_stdc
=no
4043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4045 if test $ac_cv_header_stdc = yes; then
4046 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4052 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4053 $EGREP "memchr" >/dev
/null
2>&1; then :
4056 ac_cv_header_stdc
=no
4062 if test $ac_cv_header_stdc = yes; then
4063 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4064 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4070 $EGREP "free" >/dev
/null
2>&1; then :
4073 ac_cv_header_stdc
=no
4079 if test $ac_cv_header_stdc = yes; then
4080 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4081 if test "$cross_compiling" = yes; then :
4084 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4085 /* end confdefs.h. */
4088 #if ((' ' & 0x0FF) == 0x020)
4089 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4090 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4092 # define ISLOWER(c) \
4093 (('a' <= (c) && (c) <= 'i') \
4094 || ('j' <= (c) && (c) <= 'r') \
4095 || ('s' <= (c) && (c) <= 'z'))
4096 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4099 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4104 for (i = 0; i < 256; i++)
4105 if (XOR (islower (i), ISLOWER (i))
4106 || toupper (i) != TOUPPER (i))
4111 if ac_fn_c_try_run
"$LINENO"; then :
4114 ac_cv_header_stdc
=no
4116 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4117 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4123 $as_echo "$ac_cv_header_stdc" >&6; }
4124 if test $ac_cv_header_stdc = yes; then
4126 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4130 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4131 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
4132 inttypes.h stdint.h unistd.h
4134 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4135 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4137 eval as_val
=\$
$as_ac_Header
4138 if test "x$as_val" = x
""yes; then :
4139 cat >>confdefs.h
<<_ACEOF
4140 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
4149 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
4150 if test "${ac_cv_c_bigendian+set}" = set; then :
4151 $as_echo_n "(cached) " >&6
4153 ac_cv_c_bigendian
=unknown
4154 # See if we're dealing with a universal compiler.
4155 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4156 /* end confdefs.h. */
4157 #ifndef __APPLE_CC__
4158 not a universal capable compiler
4163 if ac_fn_c_try_compile
"$LINENO"; then :
4165 # Check for potential -arch flags. It is not universal unless
4166 # there are at least two -arch flags with different values.
4169 for ac_word
in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
4170 if test -n "$ac_prev"; then
4172 i?
86 | x86_64 | ppc | ppc64
)
4173 if test -z "$ac_arch" ||
test "$ac_arch" = "$ac_word"; then
4176 ac_cv_c_bigendian
=universal
4182 elif test "x$ac_word" = "x-arch"; then
4187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4188 if test $ac_cv_c_bigendian = unknown
; then
4189 # See if sys/param.h defines the BYTE_ORDER macro.
4190 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4191 /* end confdefs.h. */
4192 #include <sys/types.h>
4193 #include <sys/param.h>
4198 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
4199 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
4208 if ac_fn_c_try_compile
"$LINENO"; then :
4209 # It does; now see whether it defined to BIG_ENDIAN or not.
4210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4212 #include <sys/types.h>
4213 #include <sys/param.h>
4218 #if BYTE_ORDER != BIG_ENDIAN
4226 if ac_fn_c_try_compile
"$LINENO"; then :
4227 ac_cv_c_bigendian
=yes
4229 ac_cv_c_bigendian
=no
4231 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4235 if test $ac_cv_c_bigendian = unknown
; then
4236 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
4237 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4244 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
4252 if ac_fn_c_try_compile
"$LINENO"; then :
4253 # It does; now see whether it defined to _BIG_ENDIAN or not.
4254 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4255 /* end confdefs.h. */
4269 if ac_fn_c_try_compile
"$LINENO"; then :
4270 ac_cv_c_bigendian
=yes
4272 ac_cv_c_bigendian
=no
4274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4278 if test $ac_cv_c_bigendian = unknown
; then
4279 # Compile a test program.
4280 if test "$cross_compiling" = yes; then :
4281 # Try to guess by grepping values from an object file.
4282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4284 short int ascii_mm[] =
4285 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4286 short int ascii_ii[] =
4287 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4288 int use_ascii (int i) {
4289 return ascii_mm[i] + ascii_ii[i];
4291 short int ebcdic_ii[] =
4292 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4293 short int ebcdic_mm[] =
4294 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4295 int use_ebcdic (int i) {
4296 return ebcdic_mm[i] + ebcdic_ii[i];
4303 return use_ascii (foo) == use_ebcdic (foo);
4308 if ac_fn_c_try_compile
"$LINENO"; then :
4309 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
4310 ac_cv_c_bigendian
=yes
4312 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
4313 if test "$ac_cv_c_bigendian" = unknown
; then
4314 ac_cv_c_bigendian
=no
4316 # finding both strings is unlikely to happen, but who knows?
4317 ac_cv_c_bigendian
=unknown
4321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 $ac_includes_default
4330 /* Are we little or big endian? From Harbison&Steele. */
4334 char c[sizeof (long int)];
4337 return u.c[sizeof (long int) - 1] == 1;
4343 if ac_fn_c_try_run
"$LINENO"; then :
4344 ac_cv_c_bigendian
=no
4346 ac_cv_c_bigendian
=yes
4348 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
4349 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
4355 $as_echo "$ac_cv_c_bigendian" >&6; }
4356 case $ac_cv_c_bigendian in #(
4365 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
4369 as_fn_error
"unknown endianness
4370 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
4374 if test "$cross_compiling" = yes; then
4375 LLVM_CROSS_COMPILING
=1
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for executable suffix on build platform" >&5
4379 $as_echo_n "checking for executable suffix on build platform... " >&6; }
4380 if test "${ac_cv_build_exeext+set}" = set; then :
4381 $as_echo_n "(cached) " >&6
4383 if test "$CYGWIN" = yes ||
test "$MINGW32" = yes; then
4384 ac_cv_build_exeext
=.exe
4386 ac_build_prefix
=${build_alias}-
4388 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4389 set dummy
${ac_build_prefix}gcc
; ac_word
=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4393 $as_echo_n "(cached) " >&6
4395 if test -n "$BUILD_CC"; then
4396 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4402 test -z "$as_dir" && as_dir
=.
4403 for ac_exec_ext
in '' $ac_executable_extensions; do
4404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4405 ac_cv_prog_BUILD_CC
="${ac_build_prefix}gcc"
4406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 BUILD_CC
=$ac_cv_prog_BUILD_CC
4416 if test -n "$BUILD_CC"; then
4417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4418 $as_echo "$BUILD_CC" >&6; }
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4421 $as_echo "no" >&6; }
4425 if test -z "$BUILD_CC"; then
4426 # Extract the first word of "gcc", so it can be a program name with args.
4427 set dummy gcc
; ac_word
=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4431 $as_echo_n "(cached) " >&6
4433 if test -n "$BUILD_CC"; then
4434 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4436 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4440 test -z "$as_dir" && as_dir
=.
4441 for ac_exec_ext
in '' $ac_executable_extensions; do
4442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4443 ac_cv_prog_BUILD_CC
="gcc"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4453 BUILD_CC
=$ac_cv_prog_BUILD_CC
4454 if test -n "$BUILD_CC"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4456 $as_echo "$BUILD_CC" >&6; }
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4463 if test -z "$BUILD_CC"; then
4464 # Extract the first word of "cc", so it can be a program name with args.
4465 set dummy cc
; ac_word
=$2
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4467 $as_echo_n "checking for $ac_word... " >&6; }
4468 if test "${ac_cv_prog_BUILD_CC+set}" = set; then :
4469 $as_echo_n "(cached) " >&6
4471 if test -n "$BUILD_CC"; then
4472 ac_cv_prog_BUILD_CC
="$BUILD_CC" # Let the user override the test.
4475 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4479 test -z "$as_dir" && as_dir
=.
4480 for ac_exec_ext
in '' $ac_executable_extensions; do
4481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4482 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4483 ac_prog_rejected
=yes
4486 ac_cv_prog_BUILD_CC
="cc"
4487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4494 if test $ac_prog_rejected = yes; then
4495 # We found a bogon in the path, so make sure we never use it.
4496 set dummy
$ac_cv_prog_BUILD_CC
4498 if test $# != 0; then
4499 # We chose a different compiler from the bogus one.
4500 # However, it has the same basename, so the bogon will be chosen
4501 # first if we set BUILD_CC to just the basename; use the full file name.
4503 ac_cv_prog_BUILD_CC
="$as_dir/$ac_word${1+' '}$@"
4508 BUILD_CC
=$ac_cv_prog_BUILD_CC
4509 if test -n "$BUILD_CC"; then
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CC" >&5
4511 $as_echo "$BUILD_CC" >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4514 $as_echo "no" >&6; }
4520 test -z "$BUILD_CC" && as_fn_error
"no acceptable cc found in \$PATH" "$LINENO" 5
4521 ac_build_link
='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4523 echo 'int main () { return 0; }' > conftest.
$ac_ext
4525 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_build_link\""; } >&5
4526 (eval $ac_build_link) 2>&5
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }; then
4530 for file in conftest.
*; do
4532 *.c |
*.o |
*.obj |
*.dSYM
) ;;
4533 *) ac_cv_build_exeext
=`echo $file | sed -e s/conftest//` ;;
4537 as_fn_error
"installation or configuration problem: compiler cannot create executables." "$LINENO" 5
4540 test x
"${ac_cv_build_exeext}" = x
&& ac_cv_build_exeext
=blank
4545 test x
"${ac_cv_build_exeext}" != xblank
&& BUILD_EXEEXT
=${ac_cv_build_exeext}
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_build_exeext}" >&5
4547 $as_echo "${ac_cv_build_exeext}" >&6; }
4548 ac_build_exeext
=$BUILD_EXEEXT
4550 ac_build_prefix
=${build_alias}-
4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552 set dummy
${ac_build_prefix}g
++; ac_word
=$2
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4554 $as_echo_n "checking for $ac_word... " >&6; }
4555 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4556 $as_echo_n "(cached) " >&6
4558 if test -n "$BUILD_CXX"; then
4559 ac_cv_prog_BUILD_CXX
="$BUILD_CXX" # Let the user override the test.
4561 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir
=.
4566 for ac_exec_ext
in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_BUILD_CXX
="${ac_build_prefix}g++"
4569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 BUILD_CXX
=$ac_cv_prog_BUILD_CXX
4579 if test -n "$BUILD_CXX"; then
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4581 $as_echo "$BUILD_CXX" >&6; }
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4584 $as_echo "no" >&6; }
4588 if test -z "$BUILD_CXX"; then
4589 # Extract the first word of "g++", so it can be a program name with args.
4590 set dummy g
++; ac_word
=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4594 $as_echo_n "(cached) " >&6
4596 if test -n "$BUILD_CXX"; then
4597 ac_cv_prog_BUILD_CXX
="$BUILD_CXX" # Let the user override the test.
4599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir
=.
4604 for ac_exec_ext
in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_BUILD_CXX
="g++"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 BUILD_CXX
=$ac_cv_prog_BUILD_CXX
4617 if test -n "$BUILD_CXX"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4619 $as_echo "$BUILD_CXX" >&6; }
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4626 if test -z "$BUILD_CXX"; then
4627 # Extract the first word of "c++", so it can be a program name with args.
4628 set dummy c
++; ac_word
=$2
4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4630 $as_echo_n "checking for $ac_word... " >&6; }
4631 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then :
4632 $as_echo_n "(cached) " >&6
4634 if test -n "$BUILD_CXX"; then
4635 ac_cv_prog_BUILD_CXX
="$BUILD_CXX" # Let the user override the test.
4638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir
=.
4643 for ac_exec_ext
in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646 ac_prog_rejected
=yes
4649 ac_cv_prog_BUILD_CXX
="c++"
4650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy
$ac_cv_prog_BUILD_CXX
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set BUILD_CXX to just the basename; use the full file name.
4666 ac_cv_prog_BUILD_CXX
="$as_dir/$ac_word${1+' '}$@"
4671 BUILD_CXX
=$ac_cv_prog_BUILD_CXX
4672 if test -n "$BUILD_CXX"; then
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CXX" >&5
4674 $as_echo "$BUILD_CXX" >&6; }
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4677 $as_echo "no" >&6; }
4684 LLVM_CROSS_COMPILING
=0
4688 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4699 # Check whether --enable-optimized was given.
4700 if test "${enable_optimized+set}" = set; then :
4701 enableval
=$enable_optimized;
4706 if test ${enableval} = "no" ; then
4710 ENABLE_OPTIMIZED
=ENABLE_OPTIMIZED
=1
4714 # Check whether --enable-profiling was given.
4715 if test "${enable_profiling+set}" = set; then :
4716 enableval
=$enable_profiling;
4721 if test ${enableval} = "no" ; then
4725 ENABLE_PROFILING
=ENABLE_PROFILING
=1
4729 # Check whether --enable-assertions was given.
4730 if test "${enable_assertions+set}" = set; then :
4731 enableval
=$enable_assertions;
4736 if test ${enableval} = "yes" ; then
4740 DISABLE_ASSERTIONS
=DISABLE_ASSERTIONS
=1
4744 # Check whether --enable-expensive-checks was given.
4745 if test "${enable_expensive_checks+set}" = set; then :
4746 enableval
=$enable_expensive_checks;
4751 if test ${enableval} = "yes" ; then
4752 ENABLE_EXPENSIVE_CHECKS
=ENABLE_EXPENSIVE_CHECKS
=1
4754 EXPENSIVE_CHECKS
=yes
4757 ENABLE_EXPENSIVE_CHECKS
=
4763 # Check whether --enable-debug-runtime was given.
4764 if test "${enable_debug_runtime+set}" = set; then :
4765 enableval
=$enable_debug_runtime;
4770 if test ${enableval} = "no" ; then
4774 DEBUG_RUNTIME
=DEBUG_RUNTIME
=1
4778 # Check whether --enable-debug-symbols was given.
4779 if test "${enable_debug_symbols+set}" = set; then :
4780 enableval
=$enable_debug_symbols;
4785 if test ${enableval} = "no" ; then
4789 DEBUG_SYMBOLS
=DEBUG_SYMBOLS
=1
4793 # Check whether --enable-jit was given.
4794 if test "${enable_jit+set}" = set; then :
4795 enableval
=$enable_jit;
4800 if test ${enableval} = "no"
4805 case "$llvm_cv_target_arch" in
4806 x86
) TARGET_HAS_JIT
=1
4808 Sparc
) TARGET_HAS_JIT
=0
4810 PowerPC
) TARGET_HAS_JIT
=1
4812 x86_64
) TARGET_HAS_JIT
=1
4814 Alpha
) TARGET_HAS_JIT
=1
4816 ARM
) TARGET_HAS_JIT
=1
4818 Mips
) TARGET_HAS_JIT
=0
4820 ZPU
) TARGET_HAS_JIT
=0
4822 XCore
) TARGET_HAS_JIT
=0
4824 MSP430
) TARGET_HAS_JIT
=0
4826 SystemZ
) TARGET_HAS_JIT
=0
4828 Blackfin
) TARGET_HAS_JIT
=0
4830 MBlaze
) TARGET_HAS_JIT
=0
4832 PTX
) TARGET_HAS_JIT
=0
4839 # Check whether --enable-doxygen was given.
4840 if test "${enable_doxygen+set}" = set; then :
4841 enableval
=$enable_doxygen;
4846 case "$enableval" in
4847 yes) ENABLE_DOXYGEN
=1
4849 no
) ENABLE_DOXYGEN
=0
4851 default
) ENABLE_DOXYGEN
=0
4853 *) as_fn_error
"Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4856 # Check whether --enable-threads was given.
4857 if test "${enable_threads+set}" = set; then :
4858 enableval
=$enable_threads;
4863 case "$enableval" in
4864 yes) ENABLE_THREADS
=1
4866 no
) ENABLE_THREADS
=0
4868 default
) ENABLE_THREADS
=1
4870 *) as_fn_error
"Invalid setting for --enable-threads. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4873 cat >>confdefs.h
<<_ACEOF
4874 #define ENABLE_THREADS $ENABLE_THREADS
4878 # Check whether --enable-pic was given.
4879 if test "${enable_pic+set}" = set; then :
4880 enableval
=$enable_pic;
4885 case "$enableval" in
4890 default
) ENABLE_PIC
=1
4892 *) as_fn_error
"Invalid setting for --enable-pic. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4895 cat >>confdefs.h
<<_ACEOF
4896 #define ENABLE_PIC $ENABLE_PIC
4900 # Check whether --enable-shared was given.
4901 if test "${enable_shared+set}" = set; then :
4902 enableval
=$enable_shared;
4907 case "$enableval" in
4908 yes) ENABLE_SHARED
=1
4912 default
) ENABLE_SHARED
=0
4914 *) as_fn_error
"Invalid setting for --enable-shared. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4917 # Check whether --enable-timestamps was given.
4918 if test "${enable_timestamps+set}" = set; then :
4919 enableval
=$enable_timestamps;
4924 case "$enableval" in
4925 yes) ENABLE_TIMESTAMPS
=1
4927 no
) ENABLE_TIMESTAMPS
=0
4929 default
) ENABLE_TIMESTAMPS
=1
4931 *) as_fn_error
"Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
4934 cat >>confdefs.h
<<_ACEOF
4935 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4940 # Check whether --enable-targets was given.
4941 if test "${enable_targets+set}" = set; then :
4942 enableval
=$enable_targets;
4947 if test "$enableval" = host-only
; then
4950 case "$enableval" in
4951 all
) TARGETS_TO_BUILD
="X86 Sparc PowerPC Alpha ARM Mips ZPU CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4952 *)for a_target
in `echo $enableval|sed -e 's/,/ /g' ` ; do
4954 x86
) TARGETS_TO_BUILD
="X86 $TARGETS_TO_BUILD" ;;
4955 x86_64
) TARGETS_TO_BUILD
="X86 $TARGETS_TO_BUILD" ;;
4956 sparc
) TARGETS_TO_BUILD
="Sparc $TARGETS_TO_BUILD" ;;
4957 powerpc
) TARGETS_TO_BUILD
="PowerPC $TARGETS_TO_BUILD" ;;
4958 alpha
) TARGETS_TO_BUILD
="Alpha $TARGETS_TO_BUILD" ;;
4959 arm
) TARGETS_TO_BUILD
="ARM $TARGETS_TO_BUILD" ;;
4960 mips
) TARGETS_TO_BUILD
="Mips $TARGETS_TO_BUILD" ;;
4961 zpu
) TARGETS_TO_BUILD
="ZPU $TARGETS_TO_BUILD" ;;
4962 spu
) TARGETS_TO_BUILD
="CellSPU $TARGETS_TO_BUILD" ;;
4963 xcore
) TARGETS_TO_BUILD
="XCore $TARGETS_TO_BUILD" ;;
4964 msp430
) TARGETS_TO_BUILD
="MSP430 $TARGETS_TO_BUILD" ;;
4965 systemz
) TARGETS_TO_BUILD
="SystemZ $TARGETS_TO_BUILD" ;;
4966 blackfin
) TARGETS_TO_BUILD
="Blackfin $TARGETS_TO_BUILD" ;;
4967 cbe
) TARGETS_TO_BUILD
="CBackend $TARGETS_TO_BUILD" ;;
4968 cpp
) TARGETS_TO_BUILD
="CppBackend $TARGETS_TO_BUILD" ;;
4969 mblaze
) TARGETS_TO_BUILD
="MBlaze $TARGETS_TO_BUILD" ;;
4970 ptx) TARGETS_TO_BUILD
="PTX $TARGETS_TO_BUILD" ;;
4971 host) case "$llvm_cv_target_arch" in
4972 x86
) TARGETS_TO_BUILD
="X86 $TARGETS_TO_BUILD" ;;
4973 x86_64
) TARGETS_TO_BUILD
="X86 $TARGETS_TO_BUILD" ;;
4974 Sparc
) TARGETS_TO_BUILD
="Sparc $TARGETS_TO_BUILD" ;;
4975 PowerPC
) TARGETS_TO_BUILD
="PowerPC $TARGETS_TO_BUILD" ;;
4976 Alpha
) TARGETS_TO_BUILD
="Alpha $TARGETS_TO_BUILD" ;;
4977 ARM
) TARGETS_TO_BUILD
="ARM $TARGETS_TO_BUILD" ;;
4978 Mips
) TARGETS_TO_BUILD
="Mips $TARGETS_TO_BUILD" ;;
4979 ZPU
) TARGETS_TO_BUILD
="ZPU $TARGETS_TO_BUILD" ;;
4980 MBlaze
) TARGETS_TO_BUILD
="MBlaze $TARGETS_TO_BUILD" ;;
4981 CellSPU|SPU
) TARGETS_TO_BUILD
="CellSPU $TARGETS_TO_BUILD" ;;
4982 XCore
) TARGETS_TO_BUILD
="XCore $TARGETS_TO_BUILD" ;;
4983 MSP430
) TARGETS_TO_BUILD
="MSP430 $TARGETS_TO_BUILD" ;;
4984 s390x
) TARGETS_TO_BUILD
="SystemZ $TARGETS_TO_BUILD" ;;
4985 Blackfin
) TARGETS_TO_BUILD
="Blackfin $TARGETS_TO_BUILD" ;;
4986 PTX
) TARGETS_TO_BUILD
="PTX $TARGETS_TO_BUILD" ;;
4987 *) as_fn_error
"Can not set target to build" "$LINENO" 5 ;;
4989 *) as_fn_error
"Unrecognized target $a_target" "$LINENO" 5 ;;
4994 TARGETS_TO_BUILD
=$TARGETS_TO_BUILD
4997 # Determine whether we are building LLVM support for the native architecture.
4998 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4999 for a_target
in $TARGETS_TO_BUILD; do
5000 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5002 cat >>confdefs.h
<<_ACEOF
5003 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5006 LLVM_NATIVE_TARGET
="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5007 LLVM_NATIVE_TARGETINFO
="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5008 LLVM_NATIVE_ASMPRINTER
="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5010 cat >>confdefs.h
<<_ACEOF
5011 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5015 cat >>confdefs.h
<<_ACEOF
5016 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5020 cat >>confdefs.h
<<_ACEOF
5021 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5027 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5028 # target feature def files.
5029 LLVM_ENUM_TARGETS
=""
5030 LLVM_ENUM_ASM_PRINTERS
=""
5031 LLVM_ENUM_ASM_PARSERS
=""
5032 LLVM_ENUM_DISASSEMBLERS
=""
5033 for target_to_build
in $TARGETS_TO_BUILD; do
5034 LLVM_ENUM_TARGETS
="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5035 if test -f ${srcdir}/lib
/Target
/${target_to_build}/AsmPrinter
/Makefile
; then
5036 LLVM_ENUM_ASM_PRINTERS
="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5038 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5039 if test -f ${srcdir}/lib
/Target
/${target_to_build}/InstPrinter
/Makefile
; then
5040 LLVM_ENUM_ASM_PRINTERS
="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5042 if test -f ${srcdir}/lib
/Target
/${target_to_build}/AsmParser
/Makefile
; then
5043 LLVM_ENUM_ASM_PARSERS
="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5045 if test -f ${srcdir}/lib
/Target
/${target_to_build}/Disassembler
/Makefile
; then
5046 LLVM_ENUM_DISASSEMBLERS
="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5054 # Check whether --enable-cbe-printf-a was given.
5055 if test "${enable_cbe_printf_a+set}" = set; then :
5056 enableval
=$enable_cbe_printf_a;
5061 case "$enableval" in
5062 yes) ENABLE_CBE_PRINTF_A
=1
5064 no
) ENABLE_CBE_PRINTF_A
=0
5066 default
) ENABLE_CBE_PRINTF_A
=1
5068 *) as_fn_error
"Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5071 cat >>confdefs.h
<<_ACEOF
5072 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5077 # Check whether --with-llvmgccdir was given.
5078 if test "${with_llvmgccdir+set}" = set; then :
5079 withval
=$with_llvmgccdir;
5085 default
) WITH_LLVMGCCDIR
=default
;;
5086 /* |
[A-Za-z
]:[\\/]*) WITH_LLVMGCCDIR
=$withval ;;
5087 *) as_fn_error
"Invalid path for --with-llvmgccdir. Provide full path" "$LINENO" 5 ;;
5091 # Check whether --with-llvmgcc was given.
5092 if test "${with_llvmgcc+set}" = set; then :
5093 withval
=$with_llvmgcc; LLVMGCC
=$with_llvmgcc
5099 # Check whether --with-llvmgxx was given.
5100 if test "${with_llvmgxx+set}" = set; then :
5101 withval
=$with_llvmgxx; LLVMGXX
=$with_llvmgxx
5106 if test -n "$LLVMGCC"; then
5107 LLVMGCCCOMMAND
="$LLVMGCC"
5110 if test -n "$LLVMGXX"; then
5111 LLVMGXXCOMMAND
="$LLVMGXX"
5114 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5115 as_fn_error
"Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" "$LINENO" 5;
5118 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5119 as_fn_error
"Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" "$LINENO" 5;
5123 # Check whether --with-clang was given.
5124 if test "${with_clang+set}" = set; then :
5125 withval
=$with_clang;
5132 # Check whether --with-built-clang was given.
5133 if test "${with_built_clang+set}" = set; then :
5134 withval
=$with_built_clang;
5136 with_built_clang
=check
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking clang compiler" >&5
5141 $as_echo_n "checking clang compiler... " >&6; }
5144 if test "$with_clang" != "default"; then
5145 WITH_CLANGPATH
="$with_clang"
5146 if ! test -x "$WITH_CLANGPATH"; then
5147 as_fn_error
"invalid --with-clang, path does not specify an executable" "$LINENO" 5
5149 elif test "$with_built_clang" = "yes"; then
5151 elif test "$with_built_clang" = "no"; then
5154 if test "$with_built_clang" != "check"; then
5155 as_fn_error
"invalid value for --with-built-clang." "$LINENO" 5
5158 if test -f ${srcdir}/tools
/clang
/README.txt
; then
5163 if ! test -z "$WITH_CLANGPATH"; then
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_CLANGPATH" >&5
5165 $as_echo "$WITH_CLANGPATH" >&6; }
5166 WITH_CLANGXXPATH
=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5167 elif test "$WITH_BUILT_CLANG" = "1"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: built" >&5
5169 $as_echo "built" >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5172 $as_echo "none" >&6; }
5174 CLANGPATH
=$WITH_CLANGPATH
5176 CLANGXXPATH
=$WITH_CLANGXXPATH
5178 ENABLE_BUILT_CLANG
=$WITH_BUILT_CLANG
5182 # Check whether --with-optimize-option was given.
5183 if test "${with_optimize_option+set}" = set; then :
5184 withval
=$with_optimize_option;
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking optimization flags" >&5
5190 $as_echo_n "checking optimization flags... " >&6; }
5193 case "$llvm_cv_os_type" in
5194 FreeBSD
) optimize_option
=-O2 ;;
5195 MingW
) optimize_option
=-O2 ;;
5196 *) optimize_option
=-O3 ;;
5198 *) optimize_option
="$withval" ;;
5200 OPTIMIZE_OPTION
=$optimize_option
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $optimize_option" >&5
5203 $as_echo "$optimize_option" >&6; }
5206 # Check whether --with-extra-options was given.
5207 if test "${with_extra_options+set}" = set; then :
5208 withval
=$with_extra_options;
5214 default
) EXTRA_OPTIONS
= ;;
5215 *) EXTRA_OPTIONS
=$withval ;;
5217 EXTRA_OPTIONS
=$EXTRA_OPTIONS
5220 # Check whether --enable-bindings was given.
5221 if test "${enable_bindings+set}" = set; then :
5222 enableval
=$enable_bindings;
5227 BINDINGS_TO_BUILD
=""
5228 case "$enableval" in
5229 yes | default | auto
) BINDINGS_TO_BUILD
="auto" ;;
5230 all
) BINDINGS_TO_BUILD
="ocaml" ;;
5231 none | no
) BINDINGS_TO_BUILD
="" ;;
5232 *)for a_binding
in `echo $enableval|sed -e 's/,/ /g' ` ; do
5233 case "$a_binding" in
5234 ocaml
) BINDINGS_TO_BUILD
="ocaml $BINDINGS_TO_BUILD" ;;
5235 *) as_fn_error
"Unrecognized binding $a_binding" "$LINENO" 5 ;;
5242 # Check whether --with-ocaml-libdir was given.
5243 if test "${with_ocaml_libdir+set}" = set; then :
5244 withval
=$with_ocaml_libdir;
5250 auto
) with_ocaml_libdir
="$withval" ;;
5251 /* |
[A-Za-z
]:[\\/]*) with_ocaml_libdir
="$withval" ;;
5252 *) as_fn_error
"Invalid path for --with-ocaml-libdir. Provide full path" "$LINENO" 5 ;;
5256 # Check whether --with-clang-resource-dir was given.
5257 if test "${with_clang_resource_dir+set}" = set; then :
5258 withval
=$with_clang_resource_dir;
5264 cat >>confdefs.h
<<_ACEOF
5265 #define CLANG_RESOURCE_DIR "$withval"
5270 # Check whether --with-c-include-dirs was given.
5271 if test "${with_c_include_dirs+set}" = set; then :
5272 withval
=$with_c_include_dirs;
5278 cat >>confdefs.h
<<_ACEOF
5279 #define C_INCLUDE_DIRS "$withval"
5284 # Check whether --with-cxx-include-root was given.
5285 if test "${with_cxx_include_root+set}" = set; then :
5286 withval
=$with_cxx_include_root;
5292 cat >>confdefs.h
<<_ACEOF
5293 #define CXX_INCLUDE_ROOT "$withval"
5298 # Check whether --with-cxx-include-arch was given.
5299 if test "${with_cxx_include_arch+set}" = set; then :
5300 withval
=$with_cxx_include_arch;
5306 cat >>confdefs.h
<<_ACEOF
5307 #define CXX_INCLUDE_ARCH "$withval"
5312 # Check whether --with-cxx-include-32bit-dir was given.
5313 if test "${with_cxx_include_32bit_dir+set}" = set; then :
5314 withval
=$with_cxx_include_32bit_dir;
5320 cat >>confdefs.h
<<_ACEOF
5321 #define CXX_INCLUDE_32BIT_DIR "$withval"
5326 # Check whether --with-cxx-include-64bit-dir was given.
5327 if test "${with_cxx_include_64bit_dir+set}" = set; then :
5328 withval
=$with_cxx_include_64bit_dir;
5334 cat >>confdefs.h
<<_ACEOF
5335 #define CXX_INCLUDE_64BIT_DIR "$withval"
5340 # Check whether --with-binutils-include was given.
5341 if test "${with_binutils_include+set}" = set; then :
5342 withval
=$with_binutils_include;
5348 default
) WITH_BINUTILS_INCDIR
=default
;;
5349 /* |
[A-Za-z
]:[\\/]*) WITH_BINUTILS_INCDIR
=$withval ;;
5350 *) as_fn_error
"Invalid path for --with-binutils-include. Provide full path" "$LINENO" 5 ;;
5352 if test "x$WITH_BINUTILS_INCDIR" != xdefault
; then
5353 BINUTILS_INCDIR
=$WITH_BINUTILS_INCDIR
5355 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5356 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5357 as_fn_error
"Invalid path to directory containing plugin-api.h." "$LINENO" 5;
5361 # Check whether --enable-libffi was given.
5362 if test "${enable_libffi+set}" = set; then :
5363 enableval
=$enable_libffi; case "$enableval" in
5364 yes) llvm_cv_enable_libffi
="yes" ;;
5365 no
) llvm_cv_enable_libffi
="no" ;;
5366 *) as_fn_error
"Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" "$LINENO" 5 ;;
5369 llvm_cv_enable_libffi
=no
5375 ac_cpp
='$CPP $CPPFLAGS'
5376 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5380 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5381 # On Suns, sometimes $CPP names a directory.
5382 if test -n "$CPP" && test -d "$CPP"; then
5385 if test -z "$CPP"; then
5386 if test "${ac_cv_prog_CPP+set}" = set; then :
5387 $as_echo_n "(cached) " >&6
5389 # Double quotes because CPP needs to be expanded
5390 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5393 for ac_c_preproc_warn_flag
in '' yes
5395 # Use a header file that comes with gcc, so configuring glibc
5396 # with a fresh cross-compiler works.
5397 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5398 # <limits.h> exists even on freestanding compilers.
5399 # On the NeXT, cc -E runs the code through the compiler's parser,
5400 # not just through cpp. "Syntax error" is here to catch this case.
5401 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5402 /* end confdefs.h. */
5404 # include <limits.h>
5406 # include <assert.h>
5410 if ac_fn_c_try_cpp
"$LINENO"; then :
5413 # Broken: fails on valid input.
5416 rm -f conftest.err conftest.
$ac_ext
5418 # OK, works on sane cases. Now check whether nonexistent headers
5419 # can be detected and how.
5420 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5421 /* end confdefs.h. */
5422 #include <ac_nonexistent.h>
5424 if ac_fn_c_try_cpp
"$LINENO"; then :
5425 # Broken: success on invalid input.
5428 # Passes both tests.
5432 rm -f conftest.err conftest.
$ac_ext
5435 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5436 rm -f conftest.err conftest.
$ac_ext
5437 if $ac_preproc_ok; then :
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5450 $as_echo "$CPP" >&6; }
5452 for ac_c_preproc_warn_flag
in '' yes
5454 # Use a header file that comes with gcc, so configuring glibc
5455 # with a fresh cross-compiler works.
5456 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5457 # <limits.h> exists even on freestanding compilers.
5458 # On the NeXT, cc -E runs the code through the compiler's parser,
5459 # not just through cpp. "Syntax error" is here to catch this case.
5460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5463 # include <limits.h>
5465 # include <assert.h>
5469 if ac_fn_c_try_cpp
"$LINENO"; then :
5472 # Broken: fails on valid input.
5475 rm -f conftest.err conftest.
$ac_ext
5477 # OK, works on sane cases. Now check whether nonexistent headers
5478 # can be detected and how.
5479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5480 /* end confdefs.h. */
5481 #include <ac_nonexistent.h>
5483 if ac_fn_c_try_cpp
"$LINENO"; then :
5484 # Broken: success on invalid input.
5487 # Passes both tests.
5491 rm -f conftest.err conftest.
$ac_ext
5494 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5495 rm -f conftest.err conftest.
$ac_ext
5496 if $ac_preproc_ok; then :
5499 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5500 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5501 as_fn_error
"C preprocessor \"$CPP\" fails sanity check
5502 See \`config.log' for more details." "$LINENO" 5; }
5506 ac_cpp
='$CPP $CPPFLAGS'
5507 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5508 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5509 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5512 ac_cpp
='$CPP $CPPFLAGS'
5513 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5514 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5515 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5516 if test -n "$ac_tool_prefix"; then
5519 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5520 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5522 $as_echo_n "checking for $ac_word... " >&6; }
5523 if test "${ac_cv_prog_CC+set}" = set; then :
5524 $as_echo_n "(cached) " >&6
5526 if test -n "$CC"; then
5527 ac_cv_prog_CC
="$CC" # Let the user override the test.
5529 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5533 test -z "$as_dir" && as_dir
=.
5534 for ac_exec_ext
in '' $ac_executable_extensions; do
5535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5536 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5547 if test -n "$CC"; then
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5549 $as_echo "$CC" >&6; }
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5552 $as_echo "no" >&6; }
5556 test -n "$CC" && break
5559 if test -z "$CC"; then
5563 # Extract the first word of "$ac_prog", so it can be a program name with args.
5564 set dummy
$ac_prog; ac_word
=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5568 $as_echo_n "(cached) " >&6
5570 if test -n "$ac_ct_CC"; then
5571 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5577 test -z "$as_dir" && as_dir
=.
5578 for ac_exec_ext
in '' $ac_executable_extensions; do
5579 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5580 ac_cv_prog_ac_ct_CC
="$ac_prog"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5591 if test -n "$ac_ct_CC"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5593 $as_echo "$ac_ct_CC" >&6; }
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5600 test -n "$ac_ct_CC" && break
5603 if test "x$ac_ct_CC" = x
; then
5606 case $cross_compiling:$ac_tool_warned in
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5609 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5610 ac_tool_warned
=yes ;;
5617 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5619 as_fn_error
"no acceptable C compiler found in \$PATH
5620 See \`config.log' for more details." "$LINENO" 5; }
5622 # Provide some information about the compiler.
5623 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5626 for ac_option
in --version -v -V -qversion; do
5627 { { ac_try
="$ac_compiler $ac_option >&5"
5629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5630 *) ac_try_echo=$ac_try;;
5632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5633 $as_echo "$ac_try_echo"; } >&5
5634 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5636 if test -s conftest.err; then
5638 ... rest of stderr output deleted ...
5639 10q' conftest.err >conftest.er1
5640 cat conftest.er1 >&5
5642 rm -f conftest.er1 conftest.err
5643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5644 test $ac_status = 0; }
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5648 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5649 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5650 $as_echo_n "(cached) " >&6
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5666 if ac_fn_c_try_compile "$LINENO"; then :
5671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5672 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5676 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5677 if test $ac_compiler_gnu = yes; then
5682 ac_test_CFLAGS=${CFLAGS+set}
5683 ac_save_CFLAGS=$CFLAGS
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5685 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5686 if test "${ac_cv_prog_cc_g+set}" = set; then :
5687 $as_echo_n "(cached) " >&6
5689 ac_save_c_werror_flag=$ac_c_werror_flag
5690 ac_c_werror_flag=yes
5693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5694 /* end confdefs.h. */
5704 if ac_fn_c_try_compile "$LINENO"; then :
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5719 if ac_fn_c_try_compile "$LINENO"; then :
5722 ac_c_werror_flag=$ac_save_c_werror_flag
5724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5725 /* end confdefs.h. */
5735 if ac_fn_c_try_compile "$LINENO"; then :
5738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 ac_c_werror_flag=$ac_save_c_werror_flag
5745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5746 $as_echo "$ac_cv_prog_cc_g" >&6; }
5747 if test "$ac_test_CFLAGS" = set; then
5748 CFLAGS=$ac_save_CFLAGS
5749 elif test $ac_cv_prog_cc_g = yes; then
5750 if test "$GCC" = yes; then
5756 if test "$GCC" = yes; then
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5763 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5764 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5765 $as_echo_n "(cached) " >&6
5767 ac_cv_prog_cc_c89=no
5769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5770 /* end confdefs.h. */
5773 #include <sys/types.h>
5774 #include <sys/stat.h>
5775 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5776 struct buf { int x; };
5777 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5778 static char *e (p, i)
5784 static char *f (char * (*g) (char **, int), char **p, ...)
5789 s = g (p, va_arg (v,int));
5794 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5795 function prototypes and stuff, but not '\xHH' hex character constants.
5796 These don't provoke an error unfortunately, instead are silently treated
5797 as 'x'. The following induces an error, until -std is added to get
5798 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5799 array size at least. It's necessary to write '\x00'==0 to get something
5800 that's true only with -std. */
5801 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5803 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5804 inside strings and character constants. */
5806 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5808 int test (int i, double x);
5809 struct s1 {int (*f) (int a);};
5810 struct s2 {int (*f) (double a);};
5811 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5817 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5822 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5823 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5825 CC="$ac_save_CC $ac_arg"
5826 if ac_fn_c_try_compile "$LINENO"; then :
5827 ac_cv_prog_cc_c89=$ac_arg
5829 rm -f core conftest.err conftest.$ac_objext
5830 test "x$ac_cv_prog_cc_c89" != "xno" && break
5832 rm -f conftest.$ac_ext
5837 case "x$ac_cv_prog_cc_c89" in
5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5840 $as_echo "none needed" >&6; } ;;
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5843 $as_echo "unsupported" >&6; } ;;
5845 CC="$CC $ac_cv_prog_cc_c89"
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5847 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5849 if test "x$ac_cv_prog_cc_c89" != xno; then :
5854 ac_cpp='$CPP $CPPFLAGS'
5855 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5856 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5857 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5860 ac_cpp='$CXXCPP $CPPFLAGS'
5861 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5862 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5863 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5864 if test -z "$CXX"; then
5865 if test -n "$CCC"; then
5868 if test -n "$ac_tool_prefix"; then
5871 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5872 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5874 $as_echo_n "checking for $ac_word... " >&6; }
5875 if test "${ac_cv_prog_CXX+set}" = set; then :
5876 $as_echo_n "(cached) " >&6
5878 if test -n "$CXX"; then
5879 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5885 test -z "$as_dir" && as_dir=.
5886 for ac_exec_ext in '' $ac_executable_extensions; do
5887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5888 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5899 if test -n "$CXX"; then
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5901 $as_echo "$CXX" >&6; }
5903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5904 $as_echo "no" >&6; }
5908 test -n "$CXX" && break
5911 if test -z "$CXX"; then
5915 # Extract the first word of "$ac_prog", so it can be a program name with args.
5916 set dummy $ac_prog; ac_word=$2
5917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5918 $as_echo_n "checking for $ac_word... " >&6; }
5919 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
5920 $as_echo_n "(cached) " >&6
5922 if test -n "$ac_ct_CXX"; then
5923 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929 test -z "$as_dir" && as_dir=.
5930 for ac_exec_ext in '' $ac_executable_extensions; do
5931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5932 ac_cv_prog_ac_ct_CXX="$ac_prog"
5933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5942 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5943 if test -n "$ac_ct_CXX"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5945 $as_echo "$ac_ct_CXX" >&6; }
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5948 $as_echo "no" >&6; }
5952 test -n "$ac_ct_CXX" && break
5955 if test "x$ac_ct_CXX" = x; then
5958 case $cross_compiling:$ac_tool_warned in
5960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5962 ac_tool_warned=yes ;;
5970 # Provide some information about the compiler.
5971 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5974 for ac_option in --version -v -V -qversion; do
5975 { { ac_try="$ac_compiler $ac_option >&5"
5977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5978 *) ac_try_echo
=$ac_try;;
5980 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5981 $as_echo "$ac_try_echo"; } >&5
5982 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5984 if test -s conftest.err
; then
5986 ... rest of stderr output deleted ...
5987 10q' conftest.err
>conftest.er1
5988 cat conftest.er1
>&5
5990 rm -f conftest.er1 conftest.err
5991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5992 test $ac_status = 0; }
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5996 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5997 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
5998 $as_echo_n "(cached) " >&6
6000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6001 /* end confdefs.h. */
6014 if ac_fn_cxx_try_compile
"$LINENO"; then :
6019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6020 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6024 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6025 if test $ac_compiler_gnu = yes; then
6030 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6031 ac_save_CXXFLAGS
=$CXXFLAGS
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6033 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6034 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6037 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6038 ac_cxx_werror_flag
=yes
6041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6042 /* end confdefs.h. */
6052 if ac_fn_cxx_try_compile
"$LINENO"; then :
6053 ac_cv_prog_cxx_g
=yes
6056 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6057 /* end confdefs.h. */
6067 if ac_fn_cxx_try_compile
"$LINENO"; then :
6070 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6072 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6073 /* end confdefs.h. */
6083 if ac_fn_cxx_try_compile
"$LINENO"; then :
6084 ac_cv_prog_cxx_g
=yes
6086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6091 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6094 $as_echo "$ac_cv_prog_cxx_g" >&6; }
6095 if test "$ac_test_CXXFLAGS" = set; then
6096 CXXFLAGS
=$ac_save_CXXFLAGS
6097 elif test $ac_cv_prog_cxx_g = yes; then
6098 if test "$GXX" = yes; then
6104 if test "$GXX" = yes; then
6111 ac_cpp
='$CPP $CPPFLAGS'
6112 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6113 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6114 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
6118 $as_echo_n "checking for BSD-compatible nm... " >&6; }
6119 if test "${lt_cv_path_NM+set}" = set; then :
6120 $as_echo_n "(cached) " >&6
6122 if test -n "$NM"; then
6123 # Let the user override the test.
6126 lt_nm_to_check
="${ac_tool_prefix}nm"
6127 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6128 lt_nm_to_check
="$lt_nm_to_check nm"
6130 for lt_tmp_nm
in $lt_nm_to_check; do
6131 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
6132 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
6134 test -z "$ac_dir" && ac_dir
=.
6135 tmp_nm
="$ac_dir/$lt_tmp_nm"
6136 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
6137 # Check to see if the nm accepts a BSD-compat flag.
6138 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6139 # nm: unknown option "B" ignored
6140 # Tru64's nm complains that /dev/null is an invalid object file
6141 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6142 */dev
/null
* |
*'Invalid file or object type'*)
6143 lt_cv_path_NM
="$tmp_nm -B"
6147 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6149 lt_cv_path_NM
="$tmp_nm -p"
6153 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6154 continue # so that we can try to find one that supports BSD flags
6163 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6167 $as_echo "$lt_cv_path_NM" >&6; }
6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
6173 $as_echo_n "checking for GNU make... " >&6; }
6174 if test "${llvm_cv_gnu_make_command+set}" = set; then :
6175 $as_echo_n "(cached) " >&6
6177 llvm_cv_gnu_make_command
=''
6178 for a
in "$MAKE" make gmake gnumake
; do
6179 if test -z "$a" ; then continue ; fi ;
6180 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6182 llvm_cv_gnu_make_command
=$a ;
6187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_gnu_make_command" >&5
6188 $as_echo "$llvm_cv_gnu_make_command" >&6; }
6189 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"Not found\"" >&5
6194 $as_echo "\"Not found\"" >&6; };
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6199 $as_echo_n "checking whether ln -s works... " >&6; }
6201 if test "$LN_S" = "ln -s"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6203 $as_echo "yes" >&6; }
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6206 $as_echo "no, using $LN_S" >&6; }
6209 # Extract the first word of "cmp", so it can be a program name with args.
6210 set dummy
cmp; ac_word
=$2
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6212 $as_echo_n "checking for $ac_word... " >&6; }
6213 if test "${ac_cv_path_CMP+set}" = set; then :
6214 $as_echo_n "(cached) " >&6
6218 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6225 test -z "$as_dir" && as_dir
=.
6226 for ac_exec_ext
in '' $ac_executable_extensions; do
6227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6228 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6241 if test -n "$CMP"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CMP" >&5
6243 $as_echo "$CMP" >&6; }
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6250 # Extract the first word of "cp", so it can be a program name with args.
6251 set dummy
cp; ac_word
=$2
6252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6253 $as_echo_n "checking for $ac_word... " >&6; }
6254 if test "${ac_cv_path_CP+set}" = set; then :
6255 $as_echo_n "(cached) " >&6
6259 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6262 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6266 test -z "$as_dir" && as_dir
=.
6267 for ac_exec_ext
in '' $ac_executable_extensions; do
6268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6269 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6282 if test -n "$CP"; then
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
6284 $as_echo "$CP" >&6; }
6286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6287 $as_echo "no" >&6; }
6291 # Extract the first word of "date", so it can be a program name with args.
6292 set dummy
date; ac_word
=$2
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6294 $as_echo_n "checking for $ac_word... " >&6; }
6295 if test "${ac_cv_path_DATE+set}" = set; then :
6296 $as_echo_n "(cached) " >&6
6300 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6303 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6307 test -z "$as_dir" && as_dir
=.
6308 for ac_exec_ext
in '' $ac_executable_extensions; do
6309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6310 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6322 DATE
=$ac_cv_path_DATE
6323 if test -n "$DATE"; then
6324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
6325 $as_echo "$DATE" >&6; }
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6328 $as_echo "no" >&6; }
6332 # Extract the first word of "find", so it can be a program name with args.
6333 set dummy
find; ac_word
=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if test "${ac_cv_path_FIND+set}" = set; then :
6337 $as_echo_n "(cached) " >&6
6341 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6348 test -z "$as_dir" && as_dir
=.
6349 for ac_exec_ext
in '' $ac_executable_extensions; do
6350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6351 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6359 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6363 FIND
=$ac_cv_path_FIND
6364 if test -n "$FIND"; then
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
6366 $as_echo "$FIND" >&6; }
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6369 $as_echo "no" >&6; }
6373 # Extract the first word of "grep", so it can be a program name with args.
6374 set dummy
grep; ac_word
=$2
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6376 $as_echo_n "checking for $ac_word... " >&6; }
6377 if test "${ac_cv_path_GREP+set}" = set; then :
6378 $as_echo_n "(cached) " >&6
6382 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6385 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6389 test -z "$as_dir" && as_dir
=.
6390 for ac_exec_ext
in '' $ac_executable_extensions; do
6391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6400 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6404 GREP
=$ac_cv_path_GREP
6405 if test -n "$GREP"; then
6406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
6407 $as_echo "$GREP" >&6; }
6409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6410 $as_echo "no" >&6; }
6414 # Extract the first word of "mkdir", so it can be a program name with args.
6415 set dummy mkdir
; ac_word
=$2
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6417 $as_echo_n "checking for $ac_word... " >&6; }
6418 if test "${ac_cv_path_MKDIR+set}" = set; then :
6419 $as_echo_n "(cached) " >&6
6423 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6430 test -z "$as_dir" && as_dir
=.
6431 for ac_exec_ext
in '' $ac_executable_extensions; do
6432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6433 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6441 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6445 MKDIR
=$ac_cv_path_MKDIR
6446 if test -n "$MKDIR"; then
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
6448 $as_echo "$MKDIR" >&6; }
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6451 $as_echo "no" >&6; }
6455 # Extract the first word of "mv", so it can be a program name with args.
6456 set dummy
mv; ac_word
=$2
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6458 $as_echo_n "checking for $ac_word... " >&6; }
6459 if test "${ac_cv_path_MV+set}" = set; then :
6460 $as_echo_n "(cached) " >&6
6464 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6467 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir
=.
6472 for ac_exec_ext
in '' $ac_executable_extensions; do
6473 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6474 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
6487 if test -n "$MV"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
6489 $as_echo "$MV" >&6; }
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6496 if test -n "$ac_tool_prefix"; then
6497 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6498 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
6499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6500 $as_echo_n "checking for $ac_word... " >&6; }
6501 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6502 $as_echo_n "(cached) " >&6
6504 if test -n "$RANLIB"; then
6505 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
6507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6511 test -z "$as_dir" && as_dir
=.
6512 for ac_exec_ext
in '' $ac_executable_extensions; do
6513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6514 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
6515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6524 RANLIB
=$ac_cv_prog_RANLIB
6525 if test -n "$RANLIB"; then
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6527 $as_echo "$RANLIB" >&6; }
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6535 if test -z "$ac_cv_prog_RANLIB"; then
6536 ac_ct_RANLIB
=$RANLIB
6537 # Extract the first word of "ranlib", so it can be a program name with args.
6538 set dummy ranlib
; ac_word
=$2
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6540 $as_echo_n "checking for $ac_word... " >&6; }
6541 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6542 $as_echo_n "(cached) " >&6
6544 if test -n "$ac_ct_RANLIB"; then
6545 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
6547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6551 test -z "$as_dir" && as_dir
=.
6552 for ac_exec_ext
in '' $ac_executable_extensions; do
6553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6554 ac_cv_prog_ac_ct_RANLIB
="ranlib"
6555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
6565 if test -n "$ac_ct_RANLIB"; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6567 $as_echo "$ac_ct_RANLIB" >&6; }
6569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6570 $as_echo "no" >&6; }
6573 if test "x$ac_ct_RANLIB" = x
; then
6576 case $cross_compiling:$ac_tool_warned in
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6580 ac_tool_warned
=yes ;;
6582 RANLIB
=$ac_ct_RANLIB
6585 RANLIB
="$ac_cv_prog_RANLIB"
6588 if test -n "$ac_tool_prefix"; then
6589 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6590 set dummy
${ac_tool_prefix}ar; ac_word
=$2
6591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6592 $as_echo_n "checking for $ac_word... " >&6; }
6593 if test "${ac_cv_prog_AR+set}" = set; then :
6594 $as_echo_n "(cached) " >&6
6596 if test -n "$AR"; then
6597 ac_cv_prog_AR
="$AR" # Let the user override the test.
6599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6603 test -z "$as_dir" && as_dir
=.
6604 for ac_exec_ext
in '' $ac_executable_extensions; do
6605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6606 ac_cv_prog_AR
="${ac_tool_prefix}ar"
6607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6617 if test -n "$AR"; then
6618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6619 $as_echo "$AR" >&6; }
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6622 $as_echo "no" >&6; }
6627 if test -z "$ac_cv_prog_AR"; then
6629 # Extract the first word of "ar", so it can be a program name with args.
6630 set dummy
ar; ac_word
=$2
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6632 $as_echo_n "checking for $ac_word... " >&6; }
6633 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6634 $as_echo_n "(cached) " >&6
6636 if test -n "$ac_ct_AR"; then
6637 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
6639 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6643 test -z "$as_dir" && as_dir
=.
6644 for ac_exec_ext
in '' $ac_executable_extensions; do
6645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6646 ac_cv_prog_ac_ct_AR
="ar"
6647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6656 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
6657 if test -n "$ac_ct_AR"; then
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6659 $as_echo "$ac_ct_AR" >&6; }
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6662 $as_echo "no" >&6; }
6665 if test "x$ac_ct_AR" = x
; then
6668 case $cross_compiling:$ac_tool_warned in
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6672 ac_tool_warned
=yes ;;
6680 # Extract the first word of "rm", so it can be a program name with args.
6681 set dummy
rm; ac_word
=$2
6682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6683 $as_echo_n "checking for $ac_word... " >&6; }
6684 if test "${ac_cv_path_RM+set}" = set; then :
6685 $as_echo_n "(cached) " >&6
6689 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
6692 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6696 test -z "$as_dir" && as_dir
=.
6697 for ac_exec_ext
in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
6712 if test -n "$RM"; then
6713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
6714 $as_echo "$RM" >&6; }
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717 $as_echo "no" >&6; }
6721 # Extract the first word of "sed", so it can be a program name with args.
6722 set dummy
sed; ac_word
=$2
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6724 $as_echo_n "checking for $ac_word... " >&6; }
6725 if test "${ac_cv_path_SED+set}" = set; then :
6726 $as_echo_n "(cached) " >&6
6730 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
6733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6737 test -z "$as_dir" && as_dir
=.
6738 for ac_exec_ext
in '' $ac_executable_extensions; do
6739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6740 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
6741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
6753 if test -n "$SED"; then
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
6755 $as_echo "$SED" >&6; }
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6758 $as_echo "no" >&6; }
6762 # Extract the first word of "tar", so it can be a program name with args.
6763 set dummy
tar; ac_word
=$2
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6765 $as_echo_n "checking for $ac_word... " >&6; }
6766 if test "${ac_cv_path_TAR+set}" = set; then :
6767 $as_echo_n "(cached) " >&6
6771 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
6774 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6778 test -z "$as_dir" && as_dir
=.
6779 for ac_exec_ext
in '' $ac_executable_extensions; do
6780 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6781 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
6782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6789 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
6794 if test -n "$TAR"; then
6795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
6796 $as_echo "$TAR" >&6; }
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6799 $as_echo "no" >&6; }
6803 # Extract the first word of "pwd", so it can be a program name with args.
6804 set dummy
pwd; ac_word
=$2
6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6806 $as_echo_n "checking for $ac_word... " >&6; }
6807 if test "${ac_cv_path_BINPWD+set}" = set; then :
6808 $as_echo_n "(cached) " >&6
6812 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
6815 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6819 test -z "$as_dir" && as_dir
=.
6820 for ac_exec_ext
in '' $ac_executable_extensions; do
6821 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6822 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
6823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6830 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
6834 BINPWD
=$ac_cv_path_BINPWD
6835 if test -n "$BINPWD"; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BINPWD" >&5
6837 $as_echo "$BINPWD" >&6; }
6839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6840 $as_echo "no" >&6; }
6845 # Extract the first word of "Graphviz", so it can be a program name with args.
6846 set dummy Graphviz
; ac_word
=$2
6847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6848 $as_echo_n "checking for $ac_word... " >&6; }
6849 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then :
6850 $as_echo_n "(cached) " >&6
6854 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
6857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6861 test -z "$as_dir" && as_dir
=.
6862 for ac_exec_ext
in '' $ac_executable_extensions; do
6863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6864 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
6865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6872 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
6876 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
6877 if test -n "$GRAPHVIZ"; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GRAPHVIZ" >&5
6879 $as_echo "$GRAPHVIZ" >&6; }
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6882 $as_echo "no" >&6; }
6886 if test "$GRAPHVIZ" != "echo Graphviz" ; then
6888 $as_echo "#define HAVE_GRAPHVIZ 1" >>confdefs.h
6890 if test "$llvm_cv_os_type" = "MingW" ; then
6891 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6894 cat >>confdefs.h
<<_ACEOF
6895 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
6899 # Extract the first word of "dot", so it can be a program name with args.
6900 set dummy dot
; ac_word
=$2
6901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6902 $as_echo_n "checking for $ac_word... " >&6; }
6903 if test "${ac_cv_path_DOT+set}" = set; then :
6904 $as_echo_n "(cached) " >&6
6908 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
6911 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6915 test -z "$as_dir" && as_dir
=.
6916 for ac_exec_ext
in '' $ac_executable_extensions; do
6917 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
6919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
6931 if test -n "$DOT"; then
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOT" >&5
6933 $as_echo "$DOT" >&6; }
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6936 $as_echo "no" >&6; }
6940 if test "$DOT" != "echo dot" ; then
6942 $as_echo "#define HAVE_DOT 1" >>confdefs.h
6944 if test "$llvm_cv_os_type" = "MingW" ; then
6945 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
6948 cat >>confdefs.h
<<_ACEOF
6949 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
6953 # Extract the first word of "fdp", so it can be a program name with args.
6954 set dummy fdp
; ac_word
=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if test "${ac_cv_path_FDP+set}" = set; then :
6958 $as_echo_n "(cached) " >&6
6962 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
6965 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6969 test -z "$as_dir" && as_dir
=.
6970 for ac_exec_ext
in '' $ac_executable_extensions; do
6971 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6972 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6980 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
6985 if test -n "$FDP"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FDP" >&5
6987 $as_echo "$FDP" >&6; }
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6994 if test "$FDP" != "echo fdp" ; then
6996 $as_echo "#define HAVE_FDP 1" >>confdefs.h
6998 if test "$llvm_cv_os_type" = "MingW" ; then
6999 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7002 cat >>confdefs.h
<<_ACEOF
7003 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7007 # Extract the first word of "neato", so it can be a program name with args.
7008 set dummy neato
; ac_word
=$2
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7010 $as_echo_n "checking for $ac_word... " >&6; }
7011 if test "${ac_cv_path_NEATO+set}" = set; then :
7012 $as_echo_n "(cached) " >&6
7016 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7023 test -z "$as_dir" && as_dir
=.
7024 for ac_exec_ext
in '' $ac_executable_extensions; do
7025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7026 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7038 NEATO
=$ac_cv_path_NEATO
7039 if test -n "$NEATO"; then
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NEATO" >&5
7041 $as_echo "$NEATO" >&6; }
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7044 $as_echo "no" >&6; }
7048 if test "$NEATO" != "echo neato" ; then
7050 $as_echo "#define HAVE_NEATO 1" >>confdefs.h
7052 if test "$llvm_cv_os_type" = "MingW" ; then
7053 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7056 cat >>confdefs.h
<<_ACEOF
7057 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7061 # Extract the first word of "twopi", so it can be a program name with args.
7062 set dummy twopi
; ac_word
=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if test "${ac_cv_path_TWOPI+set}" = set; then :
7066 $as_echo_n "(cached) " >&6
7070 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir
=.
7078 for ac_exec_ext
in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7088 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7092 TWOPI
=$ac_cv_path_TWOPI
7093 if test -n "$TWOPI"; then
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TWOPI" >&5
7095 $as_echo "$TWOPI" >&6; }
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7098 $as_echo "no" >&6; }
7102 if test "$TWOPI" != "echo twopi" ; then
7104 $as_echo "#define HAVE_TWOPI 1" >>confdefs.h
7106 if test "$llvm_cv_os_type" = "MingW" ; then
7107 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7110 cat >>confdefs.h
<<_ACEOF
7111 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7115 # Extract the first word of "circo", so it can be a program name with args.
7116 set dummy circo
; ac_word
=$2
7117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7118 $as_echo_n "checking for $ac_word... " >&6; }
7119 if test "${ac_cv_path_CIRCO+set}" = set; then :
7120 $as_echo_n "(cached) " >&6
7124 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7127 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7131 test -z "$as_dir" && as_dir
=.
7132 for ac_exec_ext
in '' $ac_executable_extensions; do
7133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7134 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7142 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7146 CIRCO
=$ac_cv_path_CIRCO
7147 if test -n "$CIRCO"; then
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CIRCO" >&5
7149 $as_echo "$CIRCO" >&6; }
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7152 $as_echo "no" >&6; }
7156 if test "$CIRCO" != "echo circo" ; then
7158 $as_echo "#define HAVE_CIRCO 1" >>confdefs.h
7160 if test "$llvm_cv_os_type" = "MingW" ; then
7161 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7164 cat >>confdefs.h
<<_ACEOF
7165 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7169 for ac_prog
in gv gsview32
7171 # Extract the first word of "$ac_prog", so it can be a program name with args.
7172 set dummy
$ac_prog; ac_word
=$2
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7174 $as_echo_n "checking for $ac_word... " >&6; }
7175 if test "${ac_cv_path_GV+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7180 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7183 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7187 test -z "$as_dir" && as_dir
=.
7188 for ac_exec_ext
in '' $ac_executable_extensions; do
7189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7190 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7202 if test -n "$GV"; then
7203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GV" >&5
7204 $as_echo "$GV" >&6; }
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }
7211 test -n "$GV" && break
7213 test -n "$GV" || GV
="echo gv"
7215 if test "$GV" != "echo gv" ; then
7217 $as_echo "#define HAVE_GV 1" >>confdefs.h
7219 if test "$llvm_cv_os_type" = "MingW" ; then
7220 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7223 cat >>confdefs.h
<<_ACEOF
7224 #define LLVM_PATH_GV "$GV${EXEEXT}"
7228 # Extract the first word of "dotty", so it can be a program name with args.
7229 set dummy dotty
; ac_word
=$2
7230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7231 $as_echo_n "checking for $ac_word... " >&6; }
7232 if test "${ac_cv_path_DOTTY+set}" = set; then :
7233 $as_echo_n "(cached) " >&6
7237 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7244 test -z "$as_dir" && as_dir
=.
7245 for ac_exec_ext
in '' $ac_executable_extensions; do
7246 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7247 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7259 DOTTY
=$ac_cv_path_DOTTY
7260 if test -n "$DOTTY"; then
7261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOTTY" >&5
7262 $as_echo "$DOTTY" >&6; }
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7265 $as_echo "no" >&6; }
7269 if test "$DOTTY" != "echo dotty" ; then
7271 $as_echo "#define HAVE_DOTTY 1" >>confdefs.h
7273 if test "$llvm_cv_os_type" = "MingW" ; then
7274 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7277 cat >>confdefs.h
<<_ACEOF
7278 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7282 # Extract the first word of "xdot.py", so it can be a program name with args.
7283 set dummy xdot.py
; ac_word
=$2
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7285 $as_echo_n "checking for $ac_word... " >&6; }
7286 if test "${ac_cv_path_XDOT_PY+set}" = set; then :
7287 $as_echo_n "(cached) " >&6
7291 ac_cv_path_XDOT_PY
="$XDOT_PY" # Let the user override the test with a path.
7294 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7298 test -z "$as_dir" && as_dir
=.
7299 for ac_exec_ext
in '' $ac_executable_extensions; do
7300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7301 ac_cv_path_XDOT_PY
="$as_dir/$ac_word$ac_exec_ext"
7302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7309 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY
="echo xdot.py"
7313 XDOT_PY
=$ac_cv_path_XDOT_PY
7314 if test -n "$XDOT_PY"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XDOT_PY" >&5
7316 $as_echo "$XDOT_PY" >&6; }
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7323 if test "$XDOT_PY" != "echo xdot.py" ; then
7325 $as_echo "#define HAVE_XDOT_PY 1" >>confdefs.h
7327 if test "$llvm_cv_os_type" = "MingW" ; then
7328 XDOT_PY
=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7331 cat >>confdefs.h
<<_ACEOF
7332 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7338 # Extract the first word of "perl", so it can be a program name with args.
7339 set dummy perl
; ac_word
=$2
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7341 $as_echo_n "checking for $ac_word... " >&6; }
7342 if test "${ac_cv_path_PERL+set}" = set; then :
7343 $as_echo_n "(cached) " >&6
7347 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7350 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7354 test -z "$as_dir" && as_dir
=.
7355 for ac_exec_ext
in '' $ac_executable_extensions; do
7356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7357 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7365 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7369 PERL
=$ac_cv_path_PERL
7370 if test -n "$PERL"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7372 $as_echo "$PERL" >&6; }
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7379 if test "$PERL" != "none"; then
7380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl 5.006 or newer" >&5
7381 $as_echo_n "checking for Perl 5.006 or newer... " >&6; }
7382 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7384 $as_echo "yes" >&6; }
7387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
7388 $as_echo "not found" >&6; }
7393 if test x
"$PERL" = xnone
; then
7396 as_fn_error
"perl is required but was not found, please install it" "$LINENO" 5
7402 # Find a good install program. We prefer a C program (faster),
7403 # so one script is as good as another. But avoid the broken or
7404 # incompatible versions:
7405 # SysV /etc/install, /usr/sbin/install
7406 # SunOS /usr/etc/install
7407 # IRIX /sbin/install
7409 # AmigaOS /C/install, which installs bootblocks on floppy discs
7410 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7411 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7412 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7413 # OS/2's system install, which has a completely different semantic
7414 # ./install, which can be erroneously created by make from ./install.sh.
7415 # Reject install programs that cannot install multiple files.
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
7417 $as_echo_n "checking for a BSD-compatible install... " >&6; }
7418 if test -z "$INSTALL"; then
7419 if test "${ac_cv_path_install+set}" = set; then :
7420 $as_echo_n "(cached) " >&6
7422 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7426 test -z "$as_dir" && as_dir
=.
7427 # Account for people who put trailing slashes in PATH elements.
7428 case $as_dir/ in #((
7429 .
/ | .
// |
/[cC
]/* | \
7430 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7431 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
7434 # OSF1 and SCO ODT 3.0 have their own names for install.
7435 # Don't use installbsd from OSF since it installs stuff as root
7437 for ac_prog
in ginstall scoinst
install; do
7438 for ac_exec_ext
in '' $ac_executable_extensions; do
7439 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
7440 if test $ac_prog = install &&
7441 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7442 # AIX install. It has an incompatible calling convention.
7444 elif test $ac_prog = install &&
7445 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7446 # program-specific install script used by HP pwplus--don't use.
7449 rm -rf conftest.one conftest.two conftest.dir
7450 echo one
> conftest.one
7451 echo two
> conftest.two
7453 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
7454 test -s conftest.one
&& test -s conftest.two
&&
7455 test -s conftest.dir
/conftest.one
&&
7456 test -s conftest.dir
/conftest.two
7458 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7471 rm -rf conftest.one conftest.two conftest.dir
7474 if test "${ac_cv_path_install+set}" = set; then
7475 INSTALL
=$ac_cv_path_install
7477 # As a last resort, use the slow shell script. Don't cache a
7478 # value for INSTALL within a source directory, because that will
7479 # break other packages using the cache if that directory is
7480 # removed, or if the value is a relative name.
7481 INSTALL
=$ac_install_sh
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
7485 $as_echo "$INSTALL" >&6; }
7487 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7488 # It thinks the first close brace ends the variable substitution.
7489 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7491 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7493 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7496 [\\/$
]* | ?
:[\\/]* ) ;;
7497 *) INSTALL
="\\\$(TOPSRCDIR)/$INSTALL" ;;
7500 # Extract the first word of "bzip2", so it can be a program name with args.
7501 set dummy
bzip2; ac_word
=$2
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7503 $as_echo_n "checking for $ac_word... " >&6; }
7504 if test "${ac_cv_path_BZIP2+set}" = set; then :
7505 $as_echo_n "(cached) " >&6
7509 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7516 test -z "$as_dir" && as_dir
=.
7517 for ac_exec_ext
in '' $ac_executable_extensions; do
7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7519 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7530 BZIP2
=$ac_cv_path_BZIP2
7531 if test -n "$BZIP2"; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
7533 $as_echo "$BZIP2" >&6; }
7535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }
7540 # Extract the first word of "cat", so it can be a program name with args.
7541 set dummy
cat; ac_word
=$2
7542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7543 $as_echo_n "checking for $ac_word... " >&6; }
7544 if test "${ac_cv_path_CAT+set}" = set; then :
7545 $as_echo_n "(cached) " >&6
7549 ac_cv_path_CAT
="$CAT" # Let the user override the test with a path.
7552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7556 test -z "$as_dir" && as_dir
=.
7557 for ac_exec_ext
in '' $ac_executable_extensions; do
7558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7559 ac_cv_path_CAT
="$as_dir/$ac_word$ac_exec_ext"
7560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7571 if test -n "$CAT"; then
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
7573 $as_echo "$CAT" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }
7580 # Extract the first word of "doxygen", so it can be a program name with args.
7581 set dummy doxygen
; ac_word
=$2
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7583 $as_echo_n "checking for $ac_word... " >&6; }
7584 if test "${ac_cv_path_DOXYGEN+set}" = set; then :
7585 $as_echo_n "(cached) " >&6
7589 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
7592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7596 test -z "$as_dir" && as_dir
=.
7597 for ac_exec_ext
in '' $ac_executable_extensions; do
7598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7599 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
7600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7610 DOXYGEN
=$ac_cv_path_DOXYGEN
7611 if test -n "$DOXYGEN"; then
7612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DOXYGEN" >&5
7613 $as_echo "$DOXYGEN" >&6; }
7615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7616 $as_echo "no" >&6; }
7620 # Extract the first word of "groff", so it can be a program name with args.
7621 set dummy
groff; ac_word
=$2
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7623 $as_echo_n "checking for $ac_word... " >&6; }
7624 if test "${ac_cv_path_GROFF+set}" = set; then :
7625 $as_echo_n "(cached) " >&6
7629 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
7632 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7636 test -z "$as_dir" && as_dir
=.
7637 for ac_exec_ext
in '' $ac_executable_extensions; do
7638 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7639 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
7640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7650 GROFF
=$ac_cv_path_GROFF
7651 if test -n "$GROFF"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GROFF" >&5
7653 $as_echo "$GROFF" >&6; }
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7660 # Extract the first word of "gzip", so it can be a program name with args.
7661 set dummy
gzip; ac_word
=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if test "${ac_cv_path_GZIP+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
7669 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
7672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7676 test -z "$as_dir" && as_dir
=.
7677 for ac_exec_ext
in '' $ac_executable_extensions; do
7678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7679 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
7680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 GZIP
=$ac_cv_path_GZIP
7691 if test -n "$GZIP"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP" >&5
7693 $as_echo "$GZIP" >&6; }
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7700 # Extract the first word of "pod2html", so it can be a program name with args.
7701 set dummy pod2html
; ac_word
=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if test "${ac_cv_path_POD2HTML+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
7709 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
7712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7716 test -z "$as_dir" && as_dir
=.
7717 for ac_exec_ext
in '' $ac_executable_extensions; do
7718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7719 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
7720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 POD2HTML
=$ac_cv_path_POD2HTML
7731 if test -n "$POD2HTML"; then
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2HTML" >&5
7733 $as_echo "$POD2HTML" >&6; }
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7736 $as_echo "no" >&6; }
7740 # Extract the first word of "pod2man", so it can be a program name with args.
7741 set dummy pod2man
; ac_word
=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if test "${ac_cv_path_POD2MAN+set}" = set; then :
7745 $as_echo_n "(cached) " >&6
7749 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
7752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7756 test -z "$as_dir" && as_dir
=.
7757 for ac_exec_ext
in '' $ac_executable_extensions; do
7758 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7759 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
7760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 POD2MAN
=$ac_cv_path_POD2MAN
7771 if test -n "$POD2MAN"; then
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
7773 $as_echo "$POD2MAN" >&6; }
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7776 $as_echo "no" >&6; }
7780 # Extract the first word of "pdfroff", so it can be a program name with args.
7781 set dummy pdfroff
; ac_word
=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if test "${ac_cv_path_PDFROFF+set}" = set; then :
7785 $as_echo_n "(cached) " >&6
7789 ac_cv_path_PDFROFF
="$PDFROFF" # Let the user override the test with a path.
7792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7796 test -z "$as_dir" && as_dir
=.
7797 for ac_exec_ext
in '' $ac_executable_extensions; do
7798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7799 ac_cv_path_PDFROFF
="$as_dir/$ac_word$ac_exec_ext"
7800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7810 PDFROFF
=$ac_cv_path_PDFROFF
7811 if test -n "$PDFROFF"; then
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFROFF" >&5
7813 $as_echo "$PDFROFF" >&6; }
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7816 $as_echo "no" >&6; }
7820 # Extract the first word of "runtest", so it can be a program name with args.
7821 set dummy runtest
; ac_word
=$2
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7823 $as_echo_n "checking for $ac_word... " >&6; }
7824 if test "${ac_cv_path_RUNTEST+set}" = set; then :
7825 $as_echo_n "(cached) " >&6
7829 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
7832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7836 test -z "$as_dir" && as_dir
=.
7837 for ac_exec_ext
in '' $ac_executable_extensions; do
7838 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7839 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7850 RUNTEST
=$ac_cv_path_RUNTEST
7851 if test -n "$RUNTEST"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
7853 $as_echo "$RUNTEST" >&6; }
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7856 $as_echo "no" >&6; }
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the tclsh program in tclinclude directory" >&5
7863 $as_echo_n "checking for the tclsh program in tclinclude directory... " >&6; }
7865 # Check whether --with-tclinclude was given.
7866 if test "${with_tclinclude+set}" = set; then :
7867 withval
=$with_tclinclude; with_tclinclude
=${withval}
7872 if test "${ac_cv_path_tclsh+set}" = set; then :
7873 $as_echo_n "(cached) " >&6
7876 if test x
"${with_tclinclude}" != x
; then
7877 if test -f ${with_tclinclude}/tclsh
; then
7878 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
7879 elif test -f ${with_tclinclude}/src
/tclsh
; then
7880 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
7882 as_fn_error
"${with_tclinclude} directory doesn't contain tclsh" "$LINENO" 5
7888 if test x
"${ac_cv_path_tclsh}" = x
; then
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7890 $as_echo "none" >&6; }
7891 for ac_prog
in tclsh8.4 tclsh8.4
.8 tclsh8.4
.7 tclsh8.4
.6 tclsh8.4
.5 tclsh8.4
.4 tclsh8.4
.3 tclsh8.4
.2 tclsh8.4
.1 tclsh8.4
.0 tclsh8.3 tclsh8.3
.5 tclsh8.3
.4 tclsh8.3
.3 tclsh8.3
.2 tclsh8.3
.1 tclsh8.3
.0 tclsh
7893 # Extract the first word of "$ac_prog", so it can be a program name with args.
7894 set dummy
$ac_prog; ac_word
=$2
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7896 $as_echo_n "checking for $ac_word... " >&6; }
7897 if test "${ac_cv_path_TCLSH+set}" = set; then :
7898 $as_echo_n "(cached) " >&6
7902 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
7905 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7909 test -z "$as_dir" && as_dir
=.
7910 for ac_exec_ext
in '' $ac_executable_extensions; do
7911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7912 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7923 TCLSH
=$ac_cv_path_TCLSH
7924 if test -n "$TCLSH"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TCLSH" >&5
7926 $as_echo "$TCLSH" >&6; }
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7929 $as_echo "no" >&6; }
7933 test -n "$TCLSH" && break
7936 if test x
"${TCLSH}" = x
; then
7937 ac_cv_path_tclsh
='';
7939 ac_cv_path_tclsh
="${TCLSH}";
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_cv_path_tclsh}" >&5
7943 $as_echo "${ac_cv_path_tclsh}" >&6; }
7944 TCLSH
="${ac_cv_path_tclsh}"
7948 # Extract the first word of "zip", so it can be a program name with args.
7949 set dummy
zip; ac_word
=$2
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7951 $as_echo_n "checking for $ac_word... " >&6; }
7952 if test "${ac_cv_path_ZIP+set}" = set; then :
7953 $as_echo_n "(cached) " >&6
7957 ac_cv_path_ZIP
="$ZIP" # Let the user override the test with a path.
7960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7964 test -z "$as_dir" && as_dir
=.
7965 for ac_exec_ext
in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_path_ZIP
="$as_dir/$ac_word$ac_exec_ext"
7968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7979 if test -n "$ZIP"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7981 $as_echo "$ZIP" >&6; }
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7988 for ac_prog
in ocamlc
7990 # Extract the first word of "$ac_prog", so it can be a program name with args.
7991 set dummy
$ac_prog; ac_word
=$2
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7993 $as_echo_n "checking for $ac_word... " >&6; }
7994 if test "${ac_cv_path_OCAMLC+set}" = set; then :
7995 $as_echo_n "(cached) " >&6
7999 ac_cv_path_OCAMLC
="$OCAMLC" # Let the user override the test with a path.
8002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8006 test -z "$as_dir" && as_dir
=.
8007 for ac_exec_ext
in '' $ac_executable_extensions; do
8008 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8009 ac_cv_path_OCAMLC
="$as_dir/$ac_word$ac_exec_ext"
8010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 OCAMLC
=$ac_cv_path_OCAMLC
8021 if test -n "$OCAMLC"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLC" >&5
8023 $as_echo "$OCAMLC" >&6; }
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8030 test -n "$OCAMLC" && break
8033 for ac_prog
in ocamlopt
8035 # Extract the first word of "$ac_prog", so it can be a program name with args.
8036 set dummy
$ac_prog; ac_word
=$2
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8038 $as_echo_n "checking for $ac_word... " >&6; }
8039 if test "${ac_cv_path_OCAMLOPT+set}" = set; then :
8040 $as_echo_n "(cached) " >&6
8044 ac_cv_path_OCAMLOPT
="$OCAMLOPT" # Let the user override the test with a path.
8047 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8051 test -z "$as_dir" && as_dir
=.
8052 for ac_exec_ext
in '' $ac_executable_extensions; do
8053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054 ac_cv_path_OCAMLOPT
="$as_dir/$ac_word$ac_exec_ext"
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 OCAMLOPT
=$ac_cv_path_OCAMLOPT
8066 if test -n "$OCAMLOPT"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLOPT" >&5
8068 $as_echo "$OCAMLOPT" >&6; }
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8071 $as_echo "no" >&6; }
8075 test -n "$OCAMLOPT" && break
8078 for ac_prog
in ocamldep
8080 # Extract the first word of "$ac_prog", so it can be a program name with args.
8081 set dummy
$ac_prog; ac_word
=$2
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8083 $as_echo_n "checking for $ac_word... " >&6; }
8084 if test "${ac_cv_path_OCAMLDEP+set}" = set; then :
8085 $as_echo_n "(cached) " >&6
8089 ac_cv_path_OCAMLDEP
="$OCAMLDEP" # Let the user override the test with a path.
8092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8096 test -z "$as_dir" && as_dir
=.
8097 for ac_exec_ext
in '' $ac_executable_extensions; do
8098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8099 ac_cv_path_OCAMLDEP
="$as_dir/$ac_word$ac_exec_ext"
8100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8110 OCAMLDEP
=$ac_cv_path_OCAMLDEP
8111 if test -n "$OCAMLDEP"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDEP" >&5
8113 $as_echo "$OCAMLDEP" >&6; }
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8120 test -n "$OCAMLDEP" && break
8123 for ac_prog
in ocamldoc
8125 # Extract the first word of "$ac_prog", so it can be a program name with args.
8126 set dummy
$ac_prog; ac_word
=$2
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8128 $as_echo_n "checking for $ac_word... " >&6; }
8129 if test "${ac_cv_path_OCAMLDOC+set}" = set; then :
8130 $as_echo_n "(cached) " >&6
8134 ac_cv_path_OCAMLDOC
="$OCAMLDOC" # Let the user override the test with a path.
8137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8141 test -z "$as_dir" && as_dir
=.
8142 for ac_exec_ext
in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_path_OCAMLDOC
="$as_dir/$ac_word$ac_exec_ext"
8145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 OCAMLDOC
=$ac_cv_path_OCAMLDOC
8156 if test -n "$OCAMLDOC"; then
8157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCAMLDOC" >&5
8158 $as_echo "$OCAMLDOC" >&6; }
8160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8161 $as_echo "no" >&6; }
8165 test -n "$OCAMLDOC" && break
8168 for ac_prog
in gas as
8170 # Extract the first word of "$ac_prog", so it can be a program name with args.
8171 set dummy
$ac_prog; ac_word
=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if test "${ac_cv_path_GAS+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8179 ac_cv_path_GAS
="$GAS" # Let the user override the test with a path.
8182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8186 test -z "$as_dir" && as_dir
=.
8187 for ac_exec_ext
in '' $ac_executable_extensions; do
8188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8189 ac_cv_path_GAS
="$as_dir/$ac_word$ac_exec_ext"
8190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8201 if test -n "$GAS"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GAS" >&5
8203 $as_echo "$GAS" >&6; }
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8210 test -n "$GAS" && break
8214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker version" >&5
8215 $as_echo_n "checking for linker version... " >&6; }
8216 if test "${llvm_cv_link_version+set}" = set; then :
8217 $as_echo_n "(cached) " >&6
8220 version_string
="$(ld -v 2>&1 | head -1)"
8223 if (echo "$version_string" |
grep -q "ld64"); then
8224 llvm_cv_link_version
=$
(echo "$version_string" |
sed -e "s#.*ld64-\([^ ]*\)#\1#")
8226 llvm_cv_link_version
=$
(echo "$version_string" |
sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_version" >&5
8231 $as_echo "$llvm_cv_link_version" >&6; }
8233 cat >>confdefs.h
<<_ACEOF
8234 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-R<path> option" >&5
8240 $as_echo_n "checking for compiler -Wl,-R<path> option... " >&6; }
8241 if test "${llvm_cv_link_use_r+set}" = set; then :
8242 $as_echo_n "(cached) " >&6
8245 ac_cpp
='$CPP $CPPFLAGS'
8246 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8247 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8248 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8251 CFLAGS
="$CFLAGS -Wl,-R."
8252 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8253 /* end confdefs.h. */
8263 if ac_fn_c_try_link
"$LINENO"; then :
8264 llvm_cv_link_use_r
=yes
8266 llvm_cv_link_use_r
=no
8268 rm -f core conftest.err conftest.
$ac_objext \
8269 conftest
$ac_exeext conftest.
$ac_ext
8272 ac_cpp
='$CPP $CPPFLAGS'
8273 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8274 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8275 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_r" >&5
8280 $as_echo "$llvm_cv_link_use_r" >&6; }
8281 if test "$llvm_cv_link_use_r" = yes ; then
8283 $as_echo "#define HAVE_LINK_R 1" >>confdefs.h
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,-export-dynamic option" >&5
8289 $as_echo_n "checking for compiler -Wl,-export-dynamic option... " >&6; }
8290 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then :
8291 $as_echo_n "(cached) " >&6
8294 ac_cpp
='$CPP $CPPFLAGS'
8295 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8296 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8297 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8300 CFLAGS
="$CFLAGS -Wl,-export-dynamic"
8301 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8302 /* end confdefs.h. */
8312 if ac_fn_c_try_link
"$LINENO"; then :
8313 llvm_cv_link_use_export_dynamic
=yes
8315 llvm_cv_link_use_export_dynamic
=no
8317 rm -f core conftest.err conftest.
$ac_objext \
8318 conftest
$ac_exeext conftest.
$ac_ext
8321 ac_cpp
='$CPP $CPPFLAGS'
8322 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8323 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8324 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_export_dynamic" >&5
8329 $as_echo "$llvm_cv_link_use_export_dynamic" >&6; }
8330 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8332 $as_echo "#define HAVE_LINK_EXPORT_DYNAMIC 1" >>confdefs.h
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -Wl,--version-script option" >&5
8338 $as_echo_n "checking for compiler -Wl,--version-script option... " >&6; }
8339 if test "${llvm_cv_link_use_version_script+set}" = set; then :
8340 $as_echo_n "(cached) " >&6
8343 ac_cpp
='$CPP $CPPFLAGS'
8344 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8345 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8346 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8350 # The following code is from the autoconf manual,
8351 # "11.13: Limitations of Usual Tools".
8352 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8353 # Use mktemp if possible; otherwise fall back on mkdir,
8354 # with $RANDOM to make collisions less likely.
8358 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8360 test -n "$tmp" && test -d "$tmp"
8362 tmp
=$TMPDIR/foo$$
-$RANDOM
8363 (umask 077 && mkdir
"$tmp")
8366 echo "{" > "$tmp/export.map"
8367 echo " global: main;" >> "$tmp/export.map"
8368 echo " local: *;" >> "$tmp/export.map"
8369 echo "};" >> "$tmp/export.map"
8371 CFLAGS
="$CFLAGS -Wl,--version-script=$tmp/export.map"
8372 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8373 /* end confdefs.h. */
8383 if ac_fn_c_try_link
"$LINENO"; then :
8384 llvm_cv_link_use_version_script
=yes
8386 llvm_cv_link_use_version_script
=no
8388 rm -f core conftest.err conftest.
$ac_objext \
8389 conftest
$ac_exeext conftest.
$ac_ext
8390 rm "$tmp/export.map"
8394 ac_cpp
='$CPP $CPPFLAGS'
8395 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8396 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8397 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_link_use_version_script" >&5
8402 $as_echo "$llvm_cv_link_use_version_script" >&6; }
8403 if test "$llvm_cv_link_use_version_script" = yes ; then
8404 HAVE_LINK_VERSION_SCRIPT
=1
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
8412 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
8413 if test "${ac_cv_c_const+set}" = set; then :
8414 $as_echo_n "(cached) " >&6
8416 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8417 /* end confdefs.h. */
8422 /* FIXME: Include the comments suggested by Paul. */
8424 /* Ultrix mips cc rejects this. */
8425 typedef int charset[2];
8427 /* SunOS 4.1.1 cc rejects this. */
8428 char const *const *pcpcc;
8430 /* NEC SVR4.0.2 mips cc rejects this. */
8431 struct point {int x, y;};
8432 static struct point const zero = {0,0};
8433 /* AIX XL C 1.02.0.0 rejects this.
8434 It does not let you subtract one const X* pointer from another in
8435 an arm of an if-expression whose if-part is not a constant
8437 const char *g = "string";
8438 pcpcc = &g + (g ? g-g : 0);
8439 /* HPUX 7.0 cc rejects these. */
8441 ppc = (char**) pcpcc;
8442 pcpcc = (char const *const *) ppc;
8443 { /* SCO 3.2v4 cc rejects this. */
8445 char const *s = 0 ? (char *) 0 : (char const *) 0;
8450 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8452 const int *foo = &x[0];
8455 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8456 typedef const int *iptr;
8460 { /* AIX XL C 1.02.0.0 rejects this saying
8461 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8462 struct s { int j; const int *ap[3]; };
8463 struct s *b; b->j = 5;
8465 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8469 return !cs[0] && !zero.x;
8476 if ac_fn_c_try_compile
"$LINENO"; then :
8481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
8484 $as_echo "$ac_cv_c_const" >&6; }
8485 if test $ac_cv_c_const = no
; then
8487 $as_echo "#define const /**/" >>confdefs.h
8492 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
8493 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8495 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8496 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
8497 $as_echo_n "(cached) " >&6
8499 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8500 /* end confdefs.h. */
8501 #include <sys/types.h>
8513 if ac_fn_c_try_compile
"$LINENO"; then :
8514 eval "$as_ac_Header=yes"
8516 eval "$as_ac_Header=no"
8518 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8520 eval ac_res
=\$
$as_ac_Header
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8522 $as_echo "$ac_res" >&6; }
8523 eval as_val
=\$
$as_ac_Header
8524 if test "x$as_val" = x
""yes; then :
8525 cat >>confdefs.h
<<_ACEOF
8526 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8529 ac_header_dirent
=$ac_hdr; break
8533 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8534 if test $ac_header_dirent = dirent.h
; then
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8536 $as_echo_n "checking for library containing opendir... " >&6; }
8537 if test "${ac_cv_search_opendir+set}" = set; then :
8538 $as_echo_n "(cached) " >&6
8540 ac_func_search_save_LIBS
=$LIBS
8541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8542 /* end confdefs.h. */
8544 /* Override any GCC internal prototype to avoid an error.
8545 Use char because int might match the return type of a GCC
8546 builtin and then its argument prototype would still apply. */
8559 for ac_lib
in '' dir
; do
8560 if test -z "$ac_lib"; then
8561 ac_res
="none required"
8564 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8566 if ac_fn_c_try_link
"$LINENO"; then :
8567 ac_cv_search_opendir
=$ac_res
8569 rm -f core conftest.err conftest.
$ac_objext \
8571 if test "${ac_cv_search_opendir+set}" = set; then :
8575 if test "${ac_cv_search_opendir+set}" = set; then :
8578 ac_cv_search_opendir
=no
8581 LIBS
=$ac_func_search_save_LIBS
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8584 $as_echo "$ac_cv_search_opendir" >&6; }
8585 ac_res
=$ac_cv_search_opendir
8586 if test "$ac_res" != no
; then :
8587 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8593 $as_echo_n "checking for library containing opendir... " >&6; }
8594 if test "${ac_cv_search_opendir+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
8597 ac_func_search_save_LIBS
=$LIBS
8598 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8599 /* end confdefs.h. */
8601 /* Override any GCC internal prototype to avoid an error.
8602 Use char because int might match the return type of a GCC
8603 builtin and then its argument prototype would still apply. */
8616 for ac_lib
in '' x
; do
8617 if test -z "$ac_lib"; then
8618 ac_res
="none required"
8621 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8623 if ac_fn_c_try_link
"$LINENO"; then :
8624 ac_cv_search_opendir
=$ac_res
8626 rm -f core conftest.err conftest.
$ac_objext \
8628 if test "${ac_cv_search_opendir+set}" = set; then :
8632 if test "${ac_cv_search_opendir+set}" = set; then :
8635 ac_cv_search_opendir
=no
8638 LIBS
=$ac_func_search_save_LIBS
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8641 $as_echo "$ac_cv_search_opendir" >&6; }
8642 ac_res
=$ac_cv_search_opendir
8643 if test "$ac_res" != no
; then :
8644 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8650 for ac_header
in dlfcn.h
8652 ac_fn_c_check_header_mongrel
"$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
8653 if test "x$ac_cv_header_dlfcn_h" = x
""yes; then :
8654 cat >>confdefs.h
<<_ACEOF
8655 #define HAVE_DLFCN_H 1
8662 # Check whether --enable-ltdl-install was given.
8663 if test "${enable_ltdl_install+set}" = set; then :
8664 enableval
=$enable_ltdl_install;
8668 if test x
"${enable_ltdl_install-no}" != xno
; then
8670 INSTALL_LTDL_FALSE
='#'
8672 INSTALL_LTDL_TRUE
='#'
8676 if test x
"${enable_ltdl_convenience-no}" != xno
; then
8677 CONVENIENCE_LTDL_TRUE
=
8678 CONVENIENCE_LTDL_FALSE
='#'
8680 CONVENIENCE_LTDL_TRUE
='#'
8681 CONVENIENCE_LTDL_FALSE
=
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8686 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8688 libname_spec
='lib$name'
8696 shlibpath_overrides_runpath
=unknown
8698 dynamic_linker
="$host_os ld.so"
8699 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
8700 if test "$GCC" = yes; then
8701 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8702 if echo "$sys_lib_search_path_spec" |
grep ';' >/dev
/null
; then
8703 # if the path contains ";" then we assume it to be the separator
8704 # otherwise default to the standard path separator (i.e. ":") - it is
8705 # assumed that no part of a normal pathname contains ";" but that should
8706 # okay in the real world where ";" in dirpaths is itself problematic.
8707 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8709 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8712 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
8714 need_lib_prefix
=unknown
8715 hardcode_into_libs
=no
8717 # when you set need_version to no, make sure it does not cause -set_version
8718 # flags to be left without arguments
8719 need_version
=unknown
8724 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
8725 shlibpath_var
=LIBPATH
8727 # AIX 3 has no versioning support, so we append a major version to the name.
8728 soname_spec
='${libname}${release}${shared_ext}$major'
8735 hardcode_into_libs
=yes
8736 if test "$host_cpu" = ia64
; then
8737 # AIX 5 supports IA64
8738 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8739 shlibpath_var
=LD_LIBRARY_PATH
8741 # With GCC up to 2.95.x, collect2 would create an import file
8742 # for dependence libraries. The import file would start with
8743 # the line `#! .'. This would cause the generated library to
8744 # depend on `.', always an invalid library. This was fixed in
8745 # development snapshots of GCC prior to 3.0.
8747 aix4 | aix4.
[01] | aix4.
[01].
*)
8748 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8750 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
8757 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8758 # soname into executable. Probably we can add versioning support to
8759 # collect2, so additional links can be useful in future.
8760 if test "$aix_use_runtimelinking" = yes; then
8761 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8762 # instead of lib<name>.a to let people know that these are not
8763 # typical AIX shared libraries.
8764 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8766 # We preserve .a as extension for shared libraries through AIX4.2
8767 # and later when we are not doing run time linking.
8768 library_names_spec
='${libname}${release}.a $libname.a'
8769 soname_spec
='${libname}${release}${shared_ext}$major'
8771 shlibpath_var
=LIBPATH
8776 library_names_spec
='$libname.ixlibrary $libname.a'
8777 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8778 finish_eval
='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
8782 library_names_spec
='${libname}${shared_ext}'
8783 dynamic_linker
="$host_os ld.so"
8784 shlibpath_var
=LIBRARY_PATH
8790 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8791 soname_spec
='${libname}${release}${shared_ext}$major'
8792 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
8793 shlibpath_var
=LD_LIBRARY_PATH
8794 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8795 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
8796 # the default ld.so.conf also contains /usr/contrib/lib and
8797 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8798 # libtool to hard-code these into programs
8801 cygwin
* | mingw
* | pw32
*)
8802 version_type
=windows
8807 case $GCC,$host_os in
8808 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
8809 library_names_spec
='$libname.dll.a'
8810 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8811 postinstall_cmds
='base_file=`basename \${file}`~
8812 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8813 dldir=$destdir/`dirname \$dlpath`~
8814 test -d \$dldir || mkdir -p \$dldir~
8815 $install_prog $dir/$dlname \$dldir/$dlname~
8816 chmod a+x \$dldir/$dlname'
8817 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8818 dlpath=$dir/\$dldll~
8820 shlibpath_overrides_runpath
=yes
8824 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8825 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8826 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
8829 # MinGW DLLs use traditional 'lib' prefix
8830 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8831 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8832 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
8833 # It is most probably a Windows format PATH printed by
8834 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8835 # path with ; separators, and with drive letters. We can handle the
8836 # drive letters (cygwin fileutils understands them), so leave them,
8837 # especially as we might pass files found there to a mingw objdump,
8838 # which wouldn't understand a cygwinified path. Ahh.
8839 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8841 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8845 # pw32 DLLs use 'pw' prefix rather than 'lib'
8846 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8852 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8855 dynamic_linker
='Win32 ld.exe'
8856 # FIXME: first we should search . and the directory the executable is in
8860 darwin
* | rhapsody
*)
8861 dynamic_linker
="$host_os dyld"
8865 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8866 soname_spec
='${libname}${release}${major}$shared_ext'
8867 shlibpath_overrides_runpath
=yes
8868 shlibpath_var
=DYLD_LIBRARY_PATH
8869 shrext_cmds
='.dylib'
8870 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8871 if test "$GCC" = yes; then
8872 sys_lib_search_path_spec
=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8874 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
8876 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
8883 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8884 soname_spec
='${libname}${release}${shared_ext}$major'
8885 shlibpath_var
=LD_LIBRARY_PATH
8896 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8897 soname_spec
='${libname}${release}${shared_ext}$major'
8898 shlibpath_var
=LD_LIBRARY_PATH
8899 shlibpath_overrides_runpath
=no
8900 hardcode_into_libs
=yes
8901 dynamic_linker
='GNU ld.so'
8904 freebsd
* | dragonfly
*)
8905 # DragonFly does not have aout. When/if they implement a new
8906 # versioning mechanism, adjust this.
8907 if test -x /usr
/bin
/objformat
; then
8908 objformat
=`/usr/bin/objformat`
8911 freebsd
[123]*) objformat
=aout
;;
8915 version_type
=freebsd-
$objformat
8916 case $version_type in
8918 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8923 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8927 shlibpath_var
=LD_LIBRARY_PATH
8930 shlibpath_overrides_runpath
=yes
8932 freebsd3.
[01]* | freebsdelf3.
[01]*)
8933 shlibpath_overrides_runpath
=yes
8934 hardcode_into_libs
=yes
8936 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
8937 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
8938 shlibpath_overrides_runpath
=no
8939 hardcode_into_libs
=yes
8941 freebsd
*) # from 4.6 on
8942 shlibpath_overrides_runpath
=yes
8943 hardcode_into_libs
=yes
8952 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8953 soname_spec
='${libname}${release}${shared_ext}$major'
8954 shlibpath_var
=LD_LIBRARY_PATH
8955 hardcode_into_libs
=yes
8958 hpux9
* | hpux10
* | hpux11
*)
8959 # Give a soname corresponding to the major version so that dld.sl refuses to
8960 # link against other versions.
8967 hardcode_into_libs
=yes
8968 dynamic_linker
="$host_os dld.so"
8969 shlibpath_var
=LD_LIBRARY_PATH
8970 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8971 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8972 soname_spec
='${libname}${release}${shared_ext}$major'
8973 if test "X$HPUX_IA64_MODE" = X32
; then
8974 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8976 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
8978 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8982 hardcode_into_libs
=yes
8983 dynamic_linker
="$host_os dld.sl"
8984 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
8985 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
8986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8987 soname_spec
='${libname}${release}${shared_ext}$major'
8988 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8989 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
8993 dynamic_linker
="$host_os dld.sl"
8994 shlibpath_var
=SHLIB_PATH
8995 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
8996 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8997 soname_spec
='${libname}${release}${shared_ext}$major'
9000 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9001 postinstall_cmds
='chmod 555 $lib'
9008 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9009 soname_spec
='${libname}${release}${shared_ext}$major'
9010 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9011 shlibpath_var
=LD_LIBRARY_PATH
9012 shlibpath_overrides_runpath
=no
9013 hardcode_into_libs
=yes
9016 irix5
* | irix6
* | nonstopux
*)
9018 nonstopux
*) version_type
=nonstopux
;;
9020 if test "$lt_cv_prog_gnu_ld" = yes; then
9028 soname_spec
='${libname}${release}${shared_ext}$major'
9029 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9031 irix5
* | nonstopux
*)
9035 case $LD in # libtool.m4 will add one of these switches to LD
9036 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9037 libsuff
= shlibsuff
= libmagic
=32-bit;;
9038 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9039 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9040 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9041 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9042 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9046 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9047 shlibpath_overrides_runpath
=no
9048 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9049 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9050 hardcode_into_libs
=yes
9053 # No shared lib support for Linux oldld, aout, or coff.
9054 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
9058 # This must be Linux ELF.
9063 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9064 soname_spec
='${libname}${release}${shared_ext}$major'
9065 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9066 shlibpath_var
=LD_LIBRARY_PATH
9067 shlibpath_overrides_runpath
=no
9068 # This implies no fast_install, which is unacceptable.
9069 # Some rework will be needed to allow for fast_install
9070 # before this can be enabled.
9071 hardcode_into_libs
=yes
9073 # Append ld.so.conf contents to the search path
9074 if test -f /etc
/ld.so.conf
; then
9075 lt_ld_extra
=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9076 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
9079 # We used to test for /lib/ld.so.1 and disable shared libraries on
9080 # powerpc, because MkLinux only supported shared libraries with the
9081 # GNU dynamic linker. Since this was broken with cross compilers,
9082 # most powerpc-linux boxes support dynamic linking these days and
9083 # people can always --disable-shared, the test was removed, and we
9084 # assume the GNU/Linux dynamic linker is in use.
9085 dynamic_linker
='GNU/Linux ld.so'
9092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9093 soname_spec
='${libname}${release}${shared_ext}$major'
9094 shlibpath_var
=LD_LIBRARY_PATH
9095 shlibpath_overrides_runpath
=no
9096 hardcode_into_libs
=yes
9097 dynamic_linker
='GNU ld.so'
9104 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
9105 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9106 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9107 dynamic_linker
='NetBSD (a.out) ld.so'
9109 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9110 soname_spec
='${libname}${release}${shared_ext}$major'
9111 dynamic_linker
='NetBSD ld.elf_so'
9113 shlibpath_var
=LD_LIBRARY_PATH
9114 shlibpath_overrides_runpath
=yes
9115 hardcode_into_libs
=yes
9120 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9121 shlibpath_var
=LD_LIBRARY_PATH
9122 shlibpath_overrides_runpath
=yes
9129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9130 soname_spec
='${libname}${release}${shared_ext}$major'
9131 shlibpath_var
=LD_LIBRARY_PATH
9132 shlibpath_overrides_runpath
=yes
9137 sys_lib_dlsearch_path_spec
="/usr/lib"
9139 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9141 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
9142 *) need_version
=no
;;
9144 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9145 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9146 shlibpath_var
=LD_LIBRARY_PATH
9147 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9149 openbsd2.
[89] | openbsd2.
[89].
*)
9150 shlibpath_overrides_runpath
=no
9153 shlibpath_overrides_runpath
=yes
9157 shlibpath_overrides_runpath
=yes
9162 libname_spec
='$name'
9165 library_names_spec
='$libname${shared_ext} $libname.a'
9166 dynamic_linker
='OS/2 ld.exe'
9167 shlibpath_var
=LIBPATH
9170 osf3
* | osf4
* | osf5
*)
9174 soname_spec
='${libname}${release}${shared_ext}$major'
9175 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9176 shlibpath_var
=LD_LIBRARY_PATH
9177 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9178 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
9185 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9186 soname_spec
='${libname}${release}${shared_ext}$major'
9187 shlibpath_var
=LD_LIBRARY_PATH
9188 shlibpath_overrides_runpath
=yes
9189 hardcode_into_libs
=yes
9190 # ldd complains unless libraries are executable
9191 postinstall_cmds
='chmod +x $lib'
9196 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9197 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9198 shlibpath_var
=LD_LIBRARY_PATH
9199 shlibpath_overrides_runpath
=yes
9200 if test "$with_gnu_ld" = yes; then
9208 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9209 soname_spec
='${libname}${release}${shared_ext}$major'
9210 shlibpath_var
=LD_LIBRARY_PATH
9211 case $host_vendor in
9213 shlibpath_overrides_runpath
=no
9215 export_dynamic_flag_spec
='${wl}-Blargedynsym'
9216 runpath_var
=LD_RUN_PATH
9224 shlibpath_overrides_runpath
=no
9225 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
9231 if test -d /usr
/nec
;then
9233 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9234 soname_spec
='$libname${shared_ext}.$major'
9235 shlibpath_var
=LD_LIBRARY_PATH
9239 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
9240 version_type
=freebsd-elf
9243 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9244 soname_spec
='${libname}${release}${shared_ext}$major'
9245 shlibpath_var
=LD_LIBRARY_PATH
9246 hardcode_into_libs
=yes
9247 if test "$with_gnu_ld" = yes; then
9248 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9249 shlibpath_overrides_runpath
=no
9251 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
9252 shlibpath_overrides_runpath
=yes
9255 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
9259 sys_lib_dlsearch_path_spec
='/usr/lib'
9264 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9265 soname_spec
='${libname}${release}${shared_ext}$major'
9266 shlibpath_var
=LD_LIBRARY_PATH
9273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9274 $as_echo "$dynamic_linker" >&6; }
9275 test "$dynamic_linker" = no
&& can_build_shared
=no
9277 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
9278 if test "$GCC" = yes; then
9279 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for loadable modules" >&5
9284 $as_echo_n "checking which extension is used for loadable modules... " >&6; }
9285 if test "${libltdl_cv_shlibext+set}" = set; then :
9286 $as_echo_n "(cached) " >&6
9290 eval libltdl_cv_shlibext
=$shrext_cmds
9293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
9294 $as_echo "$libltdl_cv_shlibext" >&6; }
9295 if test -n "$libltdl_cv_shlibext"; then
9297 cat >>confdefs.h
<<_ACEOF
9298 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time library path" >&5
9305 $as_echo_n "checking which variable specifies run-time library path... " >&6; }
9306 if test "${libltdl_cv_shlibpath_var+set}" = set; then :
9307 $as_echo_n "(cached) " >&6
9309 libltdl_cv_shlibpath_var
="$shlibpath_var"
9311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibpath_var" >&5
9312 $as_echo "$libltdl_cv_shlibpath_var" >&6; }
9313 if test -n "$libltdl_cv_shlibpath_var"; then
9315 cat >>confdefs.h
<<_ACEOF
9316 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
9323 $as_echo_n "checking for the default library search path... " >&6; }
9324 if test "${libltdl_cv_sys_search_path+set}" = set; then :
9325 $as_echo_n "(cached) " >&6
9327 libltdl_cv_sys_search_path
="$sys_lib_dlsearch_path_spec"
9329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_search_path" >&5
9330 $as_echo "$libltdl_cv_sys_search_path" >&6; }
9331 if test -n "$libltdl_cv_sys_search_path"; then
9333 for dir
in $libltdl_cv_sys_search_path; do
9334 if test -z "$sys_search_path"; then
9335 sys_search_path
="$dir"
9337 sys_search_path
="$sys_search_path$PATH_SEPARATOR$dir"
9341 cat >>confdefs.h
<<_ACEOF
9342 #define LTDL_SYSSEARCHPATH "$sys_search_path"
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9348 $as_echo_n "checking for objdir... " >&6; }
9349 if test "${libltdl_cv_objdir+set}" = set; then :
9350 $as_echo_n "(cached) " >&6
9352 libltdl_cv_objdir
="$objdir"
9353 if test -n "$objdir"; then
9356 rm -f .libs
2>/dev
/null
9357 mkdir .libs
2>/dev
/null
9358 if test -d .libs
; then
9359 libltdl_cv_objdir
=.libs
9361 # MS-DOS does not allow filenames that begin with a dot.
9362 libltdl_cv_objdir
=_libs
9364 rmdir .libs
2>/dev
/null
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_objdir" >&5
9369 $as_echo "$libltdl_cv_objdir" >&6; }
9371 cat >>confdefs.h
<<_ACEOF
9372 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
9380 # Check for command to grab the raw symbol name followed by C symbol from nm.
9381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9382 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9383 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9384 $as_echo_n "(cached) " >&6
9387 # These are sane defaults that work on at least a few old systems.
9388 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9390 # Character class describing NM global symbol codes.
9391 symcode
='[BCDEGRST]'
9393 # Regexp to match symbols that can be accessed directly from C.
9394 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
9396 # Transform an extracted symbol line into a proper C declaration
9397 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
9399 # Transform an extracted symbol line into symbol name and symbol address
9400 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9402 # Define system-specific variables.
9407 cygwin
* | mingw
* | pw32
*)
9408 symcode
='[ABCDGISTW]'
9410 hpux
*) # Its linker distinguishes data from code symbols
9411 if test "$host_cpu" = ia64
; then
9412 symcode
='[ABCDEGRST]'
9414 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9415 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9418 if test "$host_cpu" = ia64
; then
9419 symcode
='[ABCDGIRSTW]'
9420 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9421 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
9425 symcode
='[BCDEGRST]'
9428 symcode
='[BCDEGQRST]'
9439 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
9447 # Handle CRLF in mingw tool chain
9451 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9455 # If we're using GNU nm, then use its standard symbol codes.
9456 case `$NM -V 2>&1` in
9457 *GNU
* |
*'with BFD'*)
9458 symcode
='[ABCDGIRSTW]' ;;
9461 # Try without a prefix undercore, then with it.
9462 for ac_symprfx
in "" "_"; do
9464 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9465 symxfrm
="\\1 $ac_symprfx\\2 \\2"
9467 # Write the raw and C identifiers.
9468 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9470 # Check to see that the pipe works correctly.
9474 cat > conftest.
$ac_ext <<EOF
9479 void nm_test_func(){}
9483 int main(){nm_test_var='a';nm_test_func();return(0);}
9486 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9487 (eval $ac_compile) 2>&5
9489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9490 test $ac_status = 0; }; then
9491 # Now try to grab the symbols.
9493 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9494 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
9496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9497 test $ac_status = 0; } && test -s "$nlist"; then
9498 # Try sorting and uniquifying the output.
9499 if sort "$nlist" |
uniq > "$nlist"T
; then
9500 mv -f "$nlist"T
"$nlist"
9505 # Make sure that we snagged all the symbols we need.
9506 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
9507 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
9508 cat <<EOF > conftest.$ac_ext
9514 # Now generate the symbol file.
9515 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
9517 cat <<EOF >> conftest.$ac_ext
9518 #if defined (__STDC__) && __STDC__
9519 # define lt_ptr_t void *
9521 # define lt_ptr_t char *
9525 /* The mapping between symbol names and symbols. */
9530 lt_preloaded_symbols[] =
9533 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
9534 cat <<\EOF
>> conftest.
$ac_ext
9542 # Now try linking the two files.
9543 mv conftest.
$ac_objext conftstm.
$ac_objext
9544 lt_save_LIBS
="$LIBS"
9545 lt_save_CFLAGS
="$CFLAGS"
9546 LIBS
="conftstm.$ac_objext"
9547 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9548 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9549 (eval $ac_link) 2>&5
9551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9552 test $ac_status = 0; } && test -s conftest
${ac_exeext}; then
9555 LIBS
="$lt_save_LIBS"
9556 CFLAGS
="$lt_save_CFLAGS"
9558 echo "cannot find nm_test_func in $nlist" >&5
9561 echo "cannot find nm_test_var in $nlist" >&5
9564 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9567 echo "$progname: failed program was:" >&5
9568 cat conftest.
$ac_ext >&5
9570 rm -f conftest
* conftst
*
9572 # Do not use the global_symbol_pipe unless it works.
9573 if test "$pipe_works" = yes; then
9576 lt_cv_sys_global_symbol_pipe
=
9582 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9583 lt_cv_sys_global_symbol_to_cdecl
=
9585 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9587 $as_echo "failed" >&6; }
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9590 $as_echo "ok" >&6; }
9594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
9595 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
9596 if test "${libltdl_cv_preloaded_symbols+set}" = set; then :
9597 $as_echo_n "(cached) " >&6
9599 if test -n "$lt_cv_sys_global_symbol_pipe"; then
9600 libltdl_cv_preloaded_symbols
=yes
9602 libltdl_cv_preloaded_symbols
=no
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
9607 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
9608 if test x
"$libltdl_cv_preloaded_symbols" = xyes
; then
9610 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
9617 ac_cpp
='$CPP $CPPFLAGS'
9618 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9619 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9620 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9623 ac_fn_c_check_func
"$LINENO" "shl_load" "ac_cv_func_shl_load"
9624 if test "x$ac_cv_func_shl_load" = x
""yes; then :
9626 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
9629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9630 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9631 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
9632 $as_echo_n "(cached) " >&6
9634 ac_check_lib_save_LIBS
=$LIBS
9636 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9637 /* end confdefs.h. */
9639 /* Override any GCC internal prototype to avoid an error.
9640 Use char because int might match the return type of a GCC
9641 builtin and then its argument prototype would still apply. */
9654 if ac_fn_c_try_link
"$LINENO"; then :
9655 ac_cv_lib_dld_shl_load
=yes
9657 ac_cv_lib_dld_shl_load
=no
9659 rm -f core conftest.err conftest.
$ac_objext \
9660 conftest
$ac_exeext conftest.
$ac_ext
9661 LIBS
=$ac_check_lib_save_LIBS
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9664 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9665 if test "x$ac_cv_lib_dld_shl_load" = x
""yes; then :
9667 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
9669 LIBADD_DL
="$LIBADD_DL -ldld"
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9672 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9673 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
9674 $as_echo_n "(cached) " >&6
9676 ac_check_lib_save_LIBS
=$LIBS
9678 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9679 /* end confdefs.h. */
9681 /* Override any GCC internal prototype to avoid an error.
9682 Use char because int might match the return type of a GCC
9683 builtin and then its argument prototype would still apply. */
9696 if ac_fn_c_try_link
"$LINENO"; then :
9697 ac_cv_lib_dl_dlopen
=yes
9699 ac_cv_lib_dl_dlopen
=no
9701 rm -f core conftest.err conftest.
$ac_objext \
9702 conftest
$ac_exeext conftest.
$ac_ext
9703 LIBS
=$ac_check_lib_save_LIBS
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9706 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9707 if test "x$ac_cv_lib_dl_dlopen" = x
""yes; then :
9709 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9711 LIBADD_DL
="-ldl" libltdl_cv_lib_dl_dlopen
="yes"
9713 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9714 /* end confdefs.h. */
9727 if ac_fn_c_try_link
"$LINENO"; then :
9729 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9730 libltdl_cv_func_dlopen
="yes"
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9733 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9734 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
9735 $as_echo_n "(cached) " >&6
9737 ac_check_lib_save_LIBS
=$LIBS
9739 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9740 /* end confdefs.h. */
9742 /* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
9757 if ac_fn_c_try_link
"$LINENO"; then :
9758 ac_cv_lib_svld_dlopen
=yes
9760 ac_cv_lib_svld_dlopen
=no
9762 rm -f core conftest.err conftest.
$ac_objext \
9763 conftest
$ac_exeext conftest.
$ac_ext
9764 LIBS
=$ac_check_lib_save_LIBS
9766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9767 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9768 if test "x$ac_cv_lib_svld_dlopen" = x
""yes; then :
9770 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
9772 LIBADD_DL
="-lsvld" libltdl_cv_func_dlopen
="yes"
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9775 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9776 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
9777 $as_echo_n "(cached) " >&6
9779 ac_check_lib_save_LIBS
=$LIBS
9781 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9782 /* end confdefs.h. */
9784 /* Override any GCC internal prototype to avoid an error.
9785 Use char because int might match the return type of a GCC
9786 builtin and then its argument prototype would still apply. */
9799 if ac_fn_c_try_link
"$LINENO"; then :
9800 ac_cv_lib_dld_dld_link
=yes
9802 ac_cv_lib_dld_dld_link
=no
9804 rm -f core conftest.err conftest.
$ac_objext \
9805 conftest
$ac_exeext conftest.
$ac_ext
9806 LIBS
=$ac_check_lib_save_LIBS
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9809 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9810 if test "x$ac_cv_lib_dld_dld_link" = x
""yes; then :
9812 $as_echo "#define HAVE_DLD 1" >>confdefs.h
9814 LIBADD_DL
="$LIBADD_DL -ldld"
9816 ac_fn_c_check_func
"$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
9817 if test "x$ac_cv_func__dyld_func_lookup" = x
""yes; then :
9819 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
9831 rm -f core conftest.err conftest.
$ac_objext \
9832 conftest
$ac_exeext conftest.
$ac_ext
9843 if test x
"$libltdl_cv_func_dlopen" = xyes ||
test x
"$libltdl_cv_lib_dl_dlopen" = xyes
9845 lt_save_LIBS
="$LIBS"
9846 LIBS
="$LIBS $LIBADD_DL"
9847 for ac_func
in dlerror
9849 ac_fn_c_check_func
"$LINENO" "dlerror" "ac_cv_func_dlerror"
9850 if test "x$ac_cv_func_dlerror" = x
""yes; then :
9851 cat >>confdefs.h
<<_ACEOF
9852 #define HAVE_DLERROR 1
9858 LIBS
="$lt_save_LIBS"
9861 ac_cpp
='$CPP $CPPFLAGS'
9862 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9863 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9864 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
9869 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
9870 if test "${ac_cv_sys_symbol_underscore+set}" = set; then :
9871 $as_echo_n "(cached) " >&6
9873 ac_cv_sys_symbol_underscore
=no
9874 cat > conftest.
$ac_ext <<EOF
9875 void nm_test_func(){}
9876 int main(){nm_test_func;return 0;}
9878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9879 (eval $ac_compile) 2>&5
9881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9882 test $ac_status = 0; }; then
9883 # Now try to grab the symbols.
9884 ac_nlist
=conftest.nm
9885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
9886 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5
9888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9889 test $ac_status = 0; } && test -s "$ac_nlist"; then
9890 # See whether the symbols have a leading underscore.
9891 if grep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
9892 ac_cv_sys_symbol_underscore
=yes
9894 if grep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
9897 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
9901 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
9904 echo "configure: failed program was:" >&5
9910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_symbol_underscore" >&5
9911 $as_echo "$ac_cv_sys_symbol_underscore" >&6; }
9914 if test x
"$ac_cv_sys_symbol_underscore" = xyes
; then
9915 if test x
"$libltdl_cv_func_dlopen" = xyes ||
9916 test x
"$libltdl_cv_lib_dl_dlopen" = xyes
; then
9917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
9918 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
9919 if test "${libltdl_cv_need_uscore+set}" = set; then :
9920 $as_echo_n "(cached) " >&6
9922 libltdl_cv_need_uscore
=unknown
9924 LIBS
="$LIBS $LIBADD_DL"
9925 if test "$cross_compiling" = yes; then :
9926 libltdl_cv_need_uscore
=cross
9928 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
9929 lt_status
=$lt_dlunknown
9930 cat > conftest.
$ac_ext <<EOF
9931 #line 9931 "configure"
9932 #include "confdefs.h"
9941 # define LT_DLGLOBAL RTLD_GLOBAL
9944 # define LT_DLGLOBAL DL_GLOBAL
9946 # define LT_DLGLOBAL 0
9950 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9951 find out it does not work in some platform. */
9952 #ifndef LT_DLLAZY_OR_NOW
9954 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9957 # define LT_DLLAZY_OR_NOW DL_LAZY
9960 # define LT_DLLAZY_OR_NOW RTLD_NOW
9963 # define LT_DLLAZY_OR_NOW DL_NOW
9965 # define LT_DLLAZY_OR_NOW 0
9973 extern "C" void exit (int);
9976 void fnord() { int i=42;}
9979 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9980 int status = $lt_dlunknown;
9984 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9985 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9986 /* dlclose (self); */
9994 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9995 (eval $ac_link) 2>&5
9997 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9998 test $ac_status = 0; } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
9999 (.
/conftest
; exit; ) >&5 2>/dev
/null
10001 case x
$lt_status in
10002 x
$lt_dlno_uscore) libltdl_cv_need_uscore
=no
;;
10003 x
$lt_dlneed_uscore) libltdl_cv_need_uscore
=yes ;;
10004 x
$lt_dlunknown|x
*) ;;
10007 # compilation failed
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
10017 $as_echo "$libltdl_cv_need_uscore" >&6; }
10021 if test x
"$libltdl_cv_need_uscore" = xyes
; then
10023 $as_echo "#define NEED_USCORE 1" >>confdefs.h
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
10029 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
10030 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then :
10031 $as_echo_n "(cached) " >&6
10033 # PORTME does your system automatically load deplibs for dlopen?
10034 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
10035 # For now, we just catch OSes we know something about -- in the
10036 # future, we'll try test this programmatically.
10037 libltdl_cv_sys_dlopen_deplibs
=unknown
10039 aix3
*|aix4.1.
*|aix4.2.
*)
10040 # Unknown whether this is true for these versions of AIX, but
10041 # we want this `case' here to explicitly catch those versions.
10042 libltdl_cv_sys_dlopen_deplibs
=unknown
10045 libltdl_cv_sys_dlopen_deplibs
=yes
10048 # Assuming the user has installed a libdl from somewhere, this is true
10049 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
10050 libltdl_cv_sys_dlopen_deplibs
=yes
10052 gnu
* | linux
* | kfreebsd
*-gnu | knetbsd
*-gnu)
10053 # GNU and its variants, using gnu ld.so (Glibc)
10054 libltdl_cv_sys_dlopen_deplibs
=yes
10057 libltdl_cv_sys_dlopen_deplibs
=yes
10060 libltdl_cv_sys_dlopen_deplibs
=yes
10062 irix
[12345]*|irix6.
[01]*)
10063 # Catch all versions of IRIX before 6.2, and indicate that we don't
10064 # know how it worked for any of those versions.
10065 libltdl_cv_sys_dlopen_deplibs
=unknown
10068 # The case above catches anything before 6.2, and it's known that
10069 # at 6.2 and later dlopen does load deplibs.
10070 libltdl_cv_sys_dlopen_deplibs
=yes
10073 libltdl_cv_sys_dlopen_deplibs
=yes
10076 libltdl_cv_sys_dlopen_deplibs
=yes
10079 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
10080 # it did *not* use an RPATH in a shared library to find objects the
10081 # library depends on, so we explictly say `no'.
10082 libltdl_cv_sys_dlopen_deplibs
=no
10084 osf5.0|osf5.0a|osf5.1
)
10085 # dlopen *does* load deplibs and with the right loader patch applied
10086 # it even uses RPATH in a shared library to search for shared objects
10087 # that the library depends on, but there's no easy way to know if that
10088 # patch is installed. Since this is the case, all we can really
10089 # say is unknown -- it depends on the patch being installed. If
10090 # it is, this changes to `yes'. Without it, it would be `no'.
10091 libltdl_cv_sys_dlopen_deplibs
=unknown
10094 # the two cases above should catch all versions of osf <= 5.1. Read
10095 # the comments above for what we know about them.
10096 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
10097 # is used to find them so we can finally say `yes'.
10098 libltdl_cv_sys_dlopen_deplibs
=yes
10101 libltdl_cv_sys_dlopen_deplibs
=yes
10103 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10104 libltdl_cv_sys_dlopen_deplibs
=yes
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_sys_dlopen_deplibs" >&5
10110 $as_echo "$libltdl_cv_sys_dlopen_deplibs" >&6; }
10111 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
10113 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
10117 for ac_header
in argz.h
10119 ac_fn_c_check_header_mongrel
"$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default"
10120 if test "x$ac_cv_header_argz_h" = x
""yes; then :
10121 cat >>confdefs.h
<<_ACEOF
10122 #define HAVE_ARGZ_H 1
10130 ac_fn_c_check_type
"$LINENO" "error_t" "ac_cv_type_error_t" "#if HAVE_ARGZ_H
10134 if test "x$ac_cv_type_error_t" = x
""yes; then :
10136 cat >>confdefs.h
<<_ACEOF
10137 #define HAVE_ERROR_T 1
10143 $as_echo "#define error_t int" >>confdefs.h
10148 for ac_func
in argz_append argz_create_sep argz_insert argz_next argz_stringify
10150 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10151 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10152 eval as_val
=\$
$as_ac_var
10153 if test "x$as_val" = x
""yes; then :
10154 cat >>confdefs.h
<<_ACEOF
10155 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10180 for ac_header
in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
10183 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10184 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10185 eval as_val
=\$
$as_ac_Header
10186 if test "x$as_val" = x
""yes; then :
10187 cat >>confdefs.h
<<_ACEOF
10188 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10195 for ac_header
in dl.h sys
/dl.h dld.h mach-o
/dyld.h
10197 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10198 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10199 eval as_val
=\$
$as_ac_Header
10200 if test "x$as_val" = x
""yes; then :
10201 cat >>confdefs.h
<<_ACEOF
10202 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10209 for ac_header
in string.h
strings.h
10211 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10212 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
10213 eval as_val
=\$
$as_ac_Header
10214 if test "x$as_val" = x
""yes; then :
10215 cat >>confdefs.h
<<_ACEOF
10216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10224 for ac_func
in strchr index
10226 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10227 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10228 eval as_val
=\$
$as_ac_var
10229 if test "x$as_val" = x
""yes; then :
10230 cat >>confdefs.h
<<_ACEOF
10231 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10237 for ac_func
in strrchr rindex
10239 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10240 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10241 eval as_val
=\$
$as_ac_var
10242 if test "x$as_val" = x
""yes; then :
10243 cat >>confdefs.h
<<_ACEOF
10244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10250 for ac_func
in memcpy bcopy
10252 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10253 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10254 eval as_val
=\$
$as_ac_var
10255 if test "x$as_val" = x
""yes; then :
10256 cat >>confdefs.h
<<_ACEOF
10257 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10263 for ac_func
in memmove strcmp
10265 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10266 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10267 eval as_val
=\$
$as_ac_var
10268 if test "x$as_val" = x
""yes; then :
10269 cat >>confdefs.h
<<_ACEOF
10270 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10276 for ac_func
in closedir opendir readdir
10278 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10279 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10280 eval as_val
=\$
$as_ac_var
10281 if test "x$as_val" = x
""yes; then :
10282 cat >>confdefs.h
<<_ACEOF
10283 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10291 if test "$WITH_LLVMGCCDIR" = "default" ; then
10292 LLVMGCC
="llvm-gcc${EXEEXT}"
10293 LLVMGXX
="llvm-g++${EXEEXT}"
10294 LLVMGCCCOMMAND
="$LLVMGCC"
10295 LLVMGXXCOMMAND
="$LLVMGXX"
10296 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
10298 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
10300 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
10301 set dummy
$LLVMGCC; ac_word
=$2
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10303 $as_echo_n "checking for $ac_word... " >&6; }
10304 if test "${ac_cv_path_LLVMGCC+set}" = set; then :
10305 $as_echo_n "(cached) " >&6
10309 ac_cv_path_LLVMGCC
="$LLVMGCC" # Let the user override the test with a path.
10312 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10313 for as_dir
in $PATH
10316 test -z "$as_dir" && as_dir
=.
10317 for ac_exec_ext
in '' $ac_executable_extensions; do
10318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10319 ac_cv_path_LLVMGCC
="$as_dir/$ac_word$ac_exec_ext"
10320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10330 LLVMGCC
=$ac_cv_path_LLVMGCC
10331 if test -n "$LLVMGCC"; then
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMGCC" >&5
10333 $as_echo "$LLVMGCC" >&6; }
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10336 $as_echo "no" >&6; }
10340 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
10341 set dummy
$LLVMGXX; ac_word
=$2
10342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10343 $as_echo_n "checking for $ac_word... " >&6; }
10344 if test "${ac_cv_path_LLVMGXX+set}" = set; then :
10345 $as_echo_n "(cached) " >&6
10349 ac_cv_path_LLVMGXX
="$LLVMGXX" # Let the user override the test with a path.
10352 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10353 for as_dir
in $PATH
10356 test -z "$as_dir" && as_dir
=.
10357 for ac_exec_ext
in '' $ac_executable_extensions; do
10358 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10359 ac_cv_path_LLVMGXX
="$as_dir/$ac_word$ac_exec_ext"
10360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10370 LLVMGXX
=$ac_cv_path_LLVMGXX
10371 if test -n "$LLVMGXX"; then
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LLVMGXX" >&5
10373 $as_echo "$LLVMGXX" >&6; }
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10376 $as_echo "no" >&6; }
10381 if test -z "$LLVMGCC"; then
10382 LLVMGCC
="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
10383 LLVMGCCCOMMAND
="$LLVMGCC"
10385 if test -z "$LLVMGXX"; then
10386 LLVMGXX
="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
10387 LLVMGXXCOMMAND
="$LLVMGXX"
10394 LLVMGCCCOMMAND
=$LLVMGCCCOMMAND
10396 LLVMGXXCOMMAND
=$LLVMGXXCOMMAND
10401 # Check whether --with-llvmcc was given.
10402 if test "${with_llvmcc+set}" = set; then :
10403 withval
=$with_llvmcc;
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LLVM capable compiler" >&5
10409 $as_echo_n "checking LLVM capable compiler... " >&6; }
10410 if test "$with_llvmcc" != "check"; then
10411 if (test "$with_llvmcc" != "llvm-gcc" &&
10412 test "$with_llvmcc" != "clang" &&
10413 test "$with_llvmcc" != "none"); then
10414 as_fn_error
"invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." "$LINENO" 5
10416 WITH_LLVMCC
="$with_llvmcc"
10417 elif test -n "$LLVMGCC"; then
10418 WITH_LLVMCC
=llvm-gcc
10419 elif test -n "$WITH_CLANGPATH" ||
test "$WITH_BUILT_CLANG" -ne "0"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WITH_LLVMCC" >&5
10425 $as_echo "$WITH_LLVMCC" >&6; }
10426 LLVMCC_OPTION
=$WITH_LLVMCC
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking tool compatibility" >&5
10430 $as_echo_n "checking tool compatibility... " >&6; }
10443 if test "$GCC" != "yes" && test "$ICC" != "yes"
10445 as_fn_error
"gcc|icc required but not found" "$LINENO" 5
10448 if test "$GXX" != "yes" && test "$IXX" != "yes"
10450 as_fn_error
"g++|icc required but not found" "$LINENO" 5
10453 if test "$GCC" = "yes"
10455 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10456 /* end confdefs.h. */
10457 #if !defined(__GNUC__) || __GNUC__ < 3
10458 #error Unsupported GCC version
10462 if ac_fn_c_try_compile
"$LINENO"; then :
10465 as_fn_error
"gcc 3.x required, but you have a lower version" "$LINENO" 5
10467 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10470 if test -z "$llvm_cv_gnu_make_command"
10472 as_fn_error
"GNU Make required but not found" "$LINENO" 5
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10476 $as_echo "ok" >&6; }
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking optional compiler flags" >&5
10479 $as_echo_n "checking optional compiler flags... " >&6; }
10480 NO_VARIADIC_MACROS
=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
10482 NO_MISSING_FIELD_INITIALIZERS
=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
10485 $as_echo "$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
10489 $as_echo_n "checking for sin in -lm... " >&6; }
10490 if test "${ac_cv_lib_m_sin+set}" = set; then :
10491 $as_echo_n "(cached) " >&6
10493 ac_check_lib_save_LIBS
=$LIBS
10495 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10496 /* end confdefs.h. */
10498 /* Override any GCC internal prototype to avoid an error.
10499 Use char because int might match the return type of a GCC
10500 builtin and then its argument prototype would still apply. */
10513 if ac_fn_c_try_link
"$LINENO"; then :
10514 ac_cv_lib_m_sin
=yes
10518 rm -f core conftest.err conftest.
$ac_objext \
10519 conftest
$ac_exeext conftest.
$ac_ext
10520 LIBS
=$ac_check_lib_save_LIBS
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
10523 $as_echo "$ac_cv_lib_m_sin" >&6; }
10524 if test "x$ac_cv_lib_m_sin" = x
""yes; then :
10525 cat >>confdefs.h
<<_ACEOF
10526 #define HAVE_LIBM 1
10533 if test "$llvm_cv_os_type" = "MingW" ; then
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -limagehlp" >&5
10535 $as_echo_n "checking for main in -limagehlp... " >&6; }
10536 if test "${ac_cv_lib_imagehlp_main+set}" = set; then :
10537 $as_echo_n "(cached) " >&6
10539 ac_check_lib_save_LIBS
=$LIBS
10540 LIBS
="-limagehlp $LIBS"
10541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10542 /* end confdefs.h. */
10553 if ac_fn_c_try_link
"$LINENO"; then :
10554 ac_cv_lib_imagehlp_main
=yes
10556 ac_cv_lib_imagehlp_main
=no
10558 rm -f core conftest.err conftest.
$ac_objext \
10559 conftest
$ac_exeext conftest.
$ac_ext
10560 LIBS
=$ac_check_lib_save_LIBS
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_imagehlp_main" >&5
10563 $as_echo "$ac_cv_lib_imagehlp_main" >&6; }
10564 if test "x$ac_cv_lib_imagehlp_main" = x
""yes; then :
10565 cat >>confdefs.h
<<_ACEOF
10566 #define HAVE_LIBIMAGEHLP 1
10569 LIBS
="-limagehlp $LIBS"
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lpsapi" >&5
10574 $as_echo_n "checking for main in -lpsapi... " >&6; }
10575 if test "${ac_cv_lib_psapi_main+set}" = set; then :
10576 $as_echo_n "(cached) " >&6
10578 ac_check_lib_save_LIBS
=$LIBS
10579 LIBS
="-lpsapi $LIBS"
10580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10581 /* end confdefs.h. */
10592 if ac_fn_c_try_link
"$LINENO"; then :
10593 ac_cv_lib_psapi_main
=yes
10595 ac_cv_lib_psapi_main
=no
10597 rm -f core conftest.err conftest.
$ac_objext \
10598 conftest
$ac_exeext conftest.
$ac_ext
10599 LIBS
=$ac_check_lib_save_LIBS
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_psapi_main" >&5
10602 $as_echo "$ac_cv_lib_psapi_main" >&6; }
10603 if test "x$ac_cv_lib_psapi_main" = x
""yes; then :
10604 cat >>confdefs.h
<<_ACEOF
10605 #define HAVE_LIBPSAPI 1
10608 LIBS
="-lpsapi $LIBS"
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
10615 $as_echo_n "checking for library containing dlopen... " >&6; }
10616 if test "${ac_cv_search_dlopen+set}" = set; then :
10617 $as_echo_n "(cached) " >&6
10619 ac_func_search_save_LIBS
=$LIBS
10620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10621 /* end confdefs.h. */
10623 /* Override any GCC internal prototype to avoid an error.
10624 Use char because int might match the return type of a GCC
10625 builtin and then its argument prototype would still apply. */
10638 for ac_lib
in '' dl
; do
10639 if test -z "$ac_lib"; then
10640 ac_res
="none required"
10643 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10645 if ac_fn_c_try_link
"$LINENO"; then :
10646 ac_cv_search_dlopen
=$ac_res
10648 rm -f core conftest.err conftest.
$ac_objext \
10650 if test "${ac_cv_search_dlopen+set}" = set; then :
10654 if test "${ac_cv_search_dlopen+set}" = set; then :
10657 ac_cv_search_dlopen
=no
10659 rm conftest.
$ac_ext
10660 LIBS
=$ac_func_search_save_LIBS
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
10663 $as_echo "$ac_cv_search_dlopen" >&6; }
10664 ac_res
=$ac_cv_search_dlopen
10665 if test "$ac_res" != no
; then :
10666 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10668 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: dlopen() not found - disabling plugin support" >&5
10672 $as_echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
10676 if test "$llvm_cv_enable_libffi" = "yes" ; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ffi_call" >&5
10678 $as_echo_n "checking for library containing ffi_call... " >&6; }
10679 if test "${ac_cv_search_ffi_call+set}" = set; then :
10680 $as_echo_n "(cached) " >&6
10682 ac_func_search_save_LIBS
=$LIBS
10683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10684 /* end confdefs.h. */
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10696 return ffi_call ();
10701 for ac_lib
in '' ffi
; do
10702 if test -z "$ac_lib"; then
10703 ac_res
="none required"
10706 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10708 if ac_fn_c_try_link
"$LINENO"; then :
10709 ac_cv_search_ffi_call
=$ac_res
10711 rm -f core conftest.err conftest.
$ac_objext \
10713 if test "${ac_cv_search_ffi_call+set}" = set; then :
10717 if test "${ac_cv_search_ffi_call+set}" = set; then :
10720 ac_cv_search_ffi_call
=no
10722 rm conftest.
$ac_ext
10723 LIBS
=$ac_func_search_save_LIBS
10725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ffi_call" >&5
10726 $as_echo "$ac_cv_search_ffi_call" >&6; }
10727 ac_res
=$ac_cv_search_ffi_call
10728 if test "$ac_res" != no
; then :
10729 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10731 $as_echo "#define HAVE_FFI_CALL 1" >>confdefs.h
10734 as_fn_error
"libffi not found - configure without --enable-libffi to compile without it" "$LINENO" 5
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing mallinfo" >&5
10740 $as_echo_n "checking for library containing mallinfo... " >&6; }
10741 if test "${ac_cv_search_mallinfo+set}" = set; then :
10742 $as_echo_n "(cached) " >&6
10744 ac_func_search_save_LIBS
=$LIBS
10745 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10746 /* end confdefs.h. */
10748 /* Override any GCC internal prototype to avoid an error.
10749 Use char because int might match the return type of a GCC
10750 builtin and then its argument prototype would still apply. */
10758 return mallinfo ();
10763 for ac_lib
in '' malloc
; do
10764 if test -z "$ac_lib"; then
10765 ac_res
="none required"
10768 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10770 if ac_fn_c_try_link
"$LINENO"; then :
10771 ac_cv_search_mallinfo
=$ac_res
10773 rm -f core conftest.err conftest.
$ac_objext \
10775 if test "${ac_cv_search_mallinfo+set}" = set; then :
10779 if test "${ac_cv_search_mallinfo+set}" = set; then :
10782 ac_cv_search_mallinfo
=no
10784 rm conftest.
$ac_ext
10785 LIBS
=$ac_func_search_save_LIBS
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_mallinfo" >&5
10788 $as_echo "$ac_cv_search_mallinfo" >&6; }
10789 ac_res
=$ac_cv_search_mallinfo
10790 if test "$ac_res" != no
; then :
10791 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10793 $as_echo "#define HAVE_MALLINFO 1" >>confdefs.h
10798 if test "$ENABLE_THREADS" -eq 1 ; then
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5
10800 $as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; }
10801 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then :
10802 $as_echo_n "(cached) " >&6
10804 ac_check_lib_save_LIBS
=$LIBS
10805 LIBS
="-lpthread $LIBS"
10806 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10809 /* Override any GCC internal prototype to avoid an error.
10810 Use char because int might match the return type of a GCC
10811 builtin and then its argument prototype would still apply. */
10815 char pthread_mutex_init ();
10819 return pthread_mutex_init ();
10824 if ac_fn_c_try_link
"$LINENO"; then :
10825 ac_cv_lib_pthread_pthread_mutex_init
=yes
10827 ac_cv_lib_pthread_pthread_mutex_init
=no
10829 rm -f core conftest.err conftest.
$ac_objext \
10830 conftest
$ac_exeext conftest.
$ac_ext
10831 LIBS
=$ac_check_lib_save_LIBS
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
10834 $as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
10835 if test "x$ac_cv_lib_pthread_pthread_mutex_init" = x
""yes; then :
10836 cat >>confdefs.h
<<_ACEOF
10837 #define HAVE_LIBPTHREAD 1
10840 LIBS
="-lpthread $LIBS"
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_mutex_lock" >&5
10845 $as_echo_n "checking for library containing pthread_mutex_lock... " >&6; }
10846 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10847 $as_echo_n "(cached) " >&6
10849 ac_func_search_save_LIBS
=$LIBS
10850 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10851 /* end confdefs.h. */
10853 /* Override any GCC internal prototype to avoid an error.
10854 Use char because int might match the return type of a GCC
10855 builtin and then its argument prototype would still apply. */
10859 char pthread_mutex_lock ();
10863 return pthread_mutex_lock ();
10868 for ac_lib
in '' pthread
; do
10869 if test -z "$ac_lib"; then
10870 ac_res
="none required"
10873 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10875 if ac_fn_c_try_link
"$LINENO"; then :
10876 ac_cv_search_pthread_mutex_lock
=$ac_res
10878 rm -f core conftest.err conftest.
$ac_objext \
10880 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10884 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then :
10887 ac_cv_search_pthread_mutex_lock
=no
10889 rm conftest.
$ac_ext
10890 LIBS
=$ac_func_search_save_LIBS
10892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_mutex_lock" >&5
10893 $as_echo "$ac_cv_search_pthread_mutex_lock" >&6; }
10894 ac_res
=$ac_cv_search_pthread_mutex_lock
10895 if test "$ac_res" != no
; then :
10896 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10898 $as_echo "#define HAVE_PTHREAD_MUTEX_LOCK 1" >>confdefs.h
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_rwlock_init" >&5
10903 $as_echo_n "checking for library containing pthread_rwlock_init... " >&6; }
10904 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10905 $as_echo_n "(cached) " >&6
10907 ac_func_search_save_LIBS
=$LIBS
10908 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10909 /* end confdefs.h. */
10911 /* Override any GCC internal prototype to avoid an error.
10912 Use char because int might match the return type of a GCC
10913 builtin and then its argument prototype would still apply. */
10917 char pthread_rwlock_init ();
10921 return pthread_rwlock_init ();
10926 for ac_lib
in '' pthread
; do
10927 if test -z "$ac_lib"; then
10928 ac_res
="none required"
10931 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10933 if ac_fn_c_try_link
"$LINENO"; then :
10934 ac_cv_search_pthread_rwlock_init
=$ac_res
10936 rm -f core conftest.err conftest.
$ac_objext \
10938 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10942 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then :
10945 ac_cv_search_pthread_rwlock_init
=no
10947 rm conftest.
$ac_ext
10948 LIBS
=$ac_func_search_save_LIBS
10950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_rwlock_init" >&5
10951 $as_echo "$ac_cv_search_pthread_rwlock_init" >&6; }
10952 ac_res
=$ac_cv_search_pthread_rwlock_init
10953 if test "$ac_res" != no
; then :
10954 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
10956 $as_echo "#define HAVE_PTHREAD_RWLOCK_INIT 1" >>confdefs.h
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_getspecific" >&5
10961 $as_echo_n "checking for library containing pthread_getspecific... " >&6; }
10962 if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10965 ac_func_search_save_LIBS
=$LIBS
10966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10967 /* end confdefs.h. */
10969 /* Override any GCC internal prototype to avoid an error.
10970 Use char because int might match the return type of a GCC
10971 builtin and then its argument prototype would still apply. */
10975 char pthread_getspecific ();
10979 return pthread_getspecific ();
10984 for ac_lib
in '' pthread
; do
10985 if test -z "$ac_lib"; then
10986 ac_res
="none required"
10989 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
10991 if ac_fn_c_try_link
"$LINENO"; then :
10992 ac_cv_search_pthread_getspecific
=$ac_res
10994 rm -f core conftest.err conftest.
$ac_objext \
10996 if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
11000 if test "${ac_cv_search_pthread_getspecific+set}" = set; then :
11003 ac_cv_search_pthread_getspecific
=no
11005 rm conftest.
$ac_ext
11006 LIBS
=$ac_func_search_save_LIBS
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_getspecific" >&5
11009 $as_echo "$ac_cv_search_pthread_getspecific" >&6; }
11010 ac_res
=$ac_cv_search_pthread_getspecific
11011 if test "$ac_res" != no
; then :
11012 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11014 $as_echo "#define HAVE_PTHREAD_GETSPECIFIC 1" >>confdefs.h
11021 # Check whether --with-udis86 was given.
11022 if test "${with_udis86+set}" = set; then :
11023 withval
=$with_udis86;
11028 *) LDFLAGS
="$LDFLAGS -L${withval}" ;;
11030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ud_init in -ludis86" >&5
11031 $as_echo_n "checking for ud_init in -ludis86... " >&6; }
11032 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then :
11033 $as_echo_n "(cached) " >&6
11035 ac_check_lib_save_LIBS
=$LIBS
11036 LIBS
="-ludis86 $LIBS"
11037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11038 /* end confdefs.h. */
11040 /* Override any GCC internal prototype to avoid an error.
11041 Use char because int might match the return type of a GCC
11042 builtin and then its argument prototype would still apply. */
11055 if ac_fn_c_try_link
"$LINENO"; then :
11056 ac_cv_lib_udis86_ud_init
=yes
11058 ac_cv_lib_udis86_ud_init
=no
11060 rm -f core conftest.err conftest.
$ac_objext \
11061 conftest
$ac_exeext conftest.
$ac_ext
11062 LIBS
=$ac_check_lib_save_LIBS
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udis86_ud_init" >&5
11065 $as_echo "$ac_cv_lib_udis86_ud_init" >&6; }
11066 if test "x$ac_cv_lib_udis86_ud_init" = x
""yes; then :
11067 cat >>confdefs.h
<<_ACEOF
11068 #define HAVE_LIBUDIS86 1
11071 LIBS
="-ludis86 $LIBS"
11075 echo "Error! You need to have libudis86 around."
11087 cat >>confdefs.h
<<_ACEOF
11088 #define USE_UDIS86 $USE_UDIS86
11093 # Check whether --with-oprofile was given.
11094 if test "${with_oprofile+set}" = set; then :
11095 withval
=$with_oprofile;
11099 /usr|
yes) llvm_cv_oppath
=/usr
/lib
/oprofile
;;
11100 no
) llvm_cv_oppath
=
11103 *) llvm_cv_oppath
="${withval}/lib/oprofile"
11104 CPPFLAGS
="-I${withval}/include";;
11106 if test -n "$llvm_cv_oppath" ; then
11107 LIBS
="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
11108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing bfd_init" >&5
11109 $as_echo_n "checking for library containing bfd_init... " >&6; }
11110 if test "${ac_cv_search_bfd_init+set}" = set; then :
11111 $as_echo_n "(cached) " >&6
11113 ac_func_search_save_LIBS
=$LIBS
11114 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11115 /* end confdefs.h. */
11117 /* Override any GCC internal prototype to avoid an error.
11118 Use char because int might match the return type of a GCC
11119 builtin and then its argument prototype would still apply. */
11127 return bfd_init ();
11132 for ac_lib
in '' bfd
; do
11133 if test -z "$ac_lib"; then
11134 ac_res
="none required"
11137 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11139 if ac_fn_c_try_link
"$LINENO"; then :
11140 ac_cv_search_bfd_init
=$ac_res
11142 rm -f core conftest.err conftest.
$ac_objext \
11144 if test "${ac_cv_search_bfd_init+set}" = set; then :
11148 if test "${ac_cv_search_bfd_init+set}" = set; then :
11151 ac_cv_search_bfd_init
=no
11153 rm conftest.
$ac_ext
11154 LIBS
=$ac_func_search_save_LIBS
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_bfd_init" >&5
11157 $as_echo "$ac_cv_search_bfd_init" >&6; }
11158 ac_res
=$ac_cv_search_bfd_init
11159 if test "$ac_res" != no
; then :
11160 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing op_open_agent" >&5
11165 $as_echo_n "checking for library containing op_open_agent... " >&6; }
11166 if test "${ac_cv_search_op_open_agent+set}" = set; then :
11167 $as_echo_n "(cached) " >&6
11169 ac_func_search_save_LIBS
=$LIBS
11170 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11171 /* end confdefs.h. */
11173 /* Override any GCC internal prototype to avoid an error.
11174 Use char because int might match the return type of a GCC
11175 builtin and then its argument prototype would still apply. */
11179 char op_open_agent ();
11183 return op_open_agent ();
11188 for ac_lib
in '' opagent
; do
11189 if test -z "$ac_lib"; then
11190 ac_res
="none required"
11193 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11195 if ac_fn_c_try_link
"$LINENO"; then :
11196 ac_cv_search_op_open_agent
=$ac_res
11198 rm -f core conftest.err conftest.
$ac_objext \
11200 if test "${ac_cv_search_op_open_agent+set}" = set; then :
11204 if test "${ac_cv_search_op_open_agent+set}" = set; then :
11207 ac_cv_search_op_open_agent
=no
11209 rm conftest.
$ac_ext
11210 LIBS
=$ac_func_search_save_LIBS
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_op_open_agent" >&5
11213 $as_echo "$ac_cv_search_op_open_agent" >&6; }
11214 ac_res
=$ac_cv_search_op_open_agent
11215 if test "$ac_res" != no
; then :
11216 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11220 echo "Error! You need to have libopagent around."
11225 ac_fn_c_check_header_mongrel
"$LINENO" "opagent.h" "ac_cv_header_opagent_h" "$ac_includes_default"
11226 if test "x$ac_cv_header_opagent_h" = x
""yes; then :
11230 echo "Error! You need to have opagent.h around."
11246 cat >>confdefs.h
<<_ACEOF
11247 #define USE_OPROFILE $USE_OPROFILE
11252 ac_header_dirent
=no
11253 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
11254 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
11256 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
11257 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then :
11258 $as_echo_n "(cached) " >&6
11260 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11261 /* end confdefs.h. */
11262 #include <sys/types.h>
11274 if ac_fn_c_try_compile
"$LINENO"; then :
11275 eval "$as_ac_Header=yes"
11277 eval "$as_ac_Header=no"
11279 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11281 eval ac_res
=\$
$as_ac_Header
11282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
11283 $as_echo "$ac_res" >&6; }
11284 eval as_val
=\$
$as_ac_Header
11285 if test "x$as_val" = x
""yes; then :
11286 cat >>confdefs.h
<<_ACEOF
11287 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
11290 ac_header_dirent
=$ac_hdr; break
11294 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
11295 if test $ac_header_dirent = dirent.h
; then
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11297 $as_echo_n "checking for library containing opendir... " >&6; }
11298 if test "${ac_cv_search_opendir+set}" = set; then :
11299 $as_echo_n "(cached) " >&6
11301 ac_func_search_save_LIBS
=$LIBS
11302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11303 /* end confdefs.h. */
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11320 for ac_lib
in '' dir
; do
11321 if test -z "$ac_lib"; then
11322 ac_res
="none required"
11325 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11327 if ac_fn_c_try_link
"$LINENO"; then :
11328 ac_cv_search_opendir
=$ac_res
11330 rm -f core conftest.err conftest.
$ac_objext \
11332 if test "${ac_cv_search_opendir+set}" = set; then :
11336 if test "${ac_cv_search_opendir+set}" = set; then :
11339 ac_cv_search_opendir
=no
11341 rm conftest.
$ac_ext
11342 LIBS
=$ac_func_search_save_LIBS
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11345 $as_echo "$ac_cv_search_opendir" >&6; }
11346 ac_res
=$ac_cv_search_opendir
11347 if test "$ac_res" != no
; then :
11348 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
11354 $as_echo_n "checking for library containing opendir... " >&6; }
11355 if test "${ac_cv_search_opendir+set}" = set; then :
11356 $as_echo_n "(cached) " >&6
11358 ac_func_search_save_LIBS
=$LIBS
11359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11362 /* Override any GCC internal prototype to avoid an error.
11363 Use char because int might match the return type of a GCC
11364 builtin and then its argument prototype would still apply. */
11377 for ac_lib
in '' x
; do
11378 if test -z "$ac_lib"; then
11379 ac_res
="none required"
11382 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
11384 if ac_fn_c_try_link
"$LINENO"; then :
11385 ac_cv_search_opendir
=$ac_res
11387 rm -f core conftest.err conftest.
$ac_objext \
11389 if test "${ac_cv_search_opendir+set}" = set; then :
11393 if test "${ac_cv_search_opendir+set}" = set; then :
11396 ac_cv_search_opendir
=no
11398 rm conftest.
$ac_ext
11399 LIBS
=$ac_func_search_save_LIBS
11401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
11402 $as_echo "$ac_cv_search_opendir" >&6; }
11403 ac_res
=$ac_cv_search_opendir
11404 if test "$ac_res" != no
; then :
11405 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
11411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
11412 $as_echo_n "checking for MAP_ANONYMOUS vs. MAP_ANON... " >&6; }
11413 if test "${ac_cv_header_mmap_anon+set}" = set; then :
11414 $as_echo_n "(cached) " >&6
11417 ac_cpp
='$CPP $CPPFLAGS'
11418 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11419 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11420 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11424 #include <sys/mman.h>
11425 #include <unistd.h>
11430 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
11435 if ac_fn_c_try_compile
"$LINENO"; then :
11436 ac_cv_header_mmap_anon
=yes
11438 ac_cv_header_mmap_anon
=no
11440 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11442 ac_cpp
='$CPP $CPPFLAGS'
11443 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11444 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11445 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_mmap_anon" >&5
11450 $as_echo "$ac_cv_header_mmap_anon" >&6; }
11451 if test "$ac_cv_header_mmap_anon" = yes; then
11453 $as_echo "#define HAVE_MMAP_ANONYMOUS 1" >>confdefs.h
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
11458 $as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
11459 if test "${ac_cv_header_stat_broken+set}" = set; then :
11460 $as_echo_n "(cached) " >&6
11462 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11463 /* end confdefs.h. */
11464 #include <sys/types.h>
11465 #include <sys/stat.h>
11467 #if defined S_ISBLK && defined S_IFDIR
11468 extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
11471 #if defined S_ISBLK && defined S_IFCHR
11472 extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
11475 #if defined S_ISLNK && defined S_IFREG
11476 extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
11479 #if defined S_ISSOCK && defined S_IFREG
11480 extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
11484 if ac_fn_c_try_compile
"$LINENO"; then :
11485 ac_cv_header_stat_broken
=no
11487 ac_cv_header_stat_broken
=yes
11489 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
11492 $as_echo "$ac_cv_header_stat_broken" >&6; }
11493 if test $ac_cv_header_stat_broken = yes; then
11495 $as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
11500 $as_echo_n "checking for ANSI C header files... " >&6; }
11501 if test "${ac_cv_header_stdc+set}" = set; then :
11502 $as_echo_n "(cached) " >&6
11504 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11505 /* end confdefs.h. */
11506 #include <stdlib.h>
11507 #include <stdarg.h>
11508 #include <string.h>
11519 if ac_fn_c_try_compile
"$LINENO"; then :
11520 ac_cv_header_stdc
=yes
11522 ac_cv_header_stdc
=no
11524 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11526 if test $ac_cv_header_stdc = yes; then
11527 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
11528 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11530 #include <string.h>
11533 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11534 $EGREP "memchr" >/dev
/null
2>&1; then :
11537 ac_cv_header_stdc
=no
11543 if test $ac_cv_header_stdc = yes; then
11544 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
11545 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11546 /* end confdefs.h. */
11547 #include <stdlib.h>
11550 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11551 $EGREP "free" >/dev
/null
2>&1; then :
11554 ac_cv_header_stdc
=no
11560 if test $ac_cv_header_stdc = yes; then
11561 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
11562 if test "$cross_compiling" = yes; then :
11565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11566 /* end confdefs.h. */
11568 #include <stdlib.h>
11569 #if ((' ' & 0x0FF) == 0x020)
11570 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
11571 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
11573 # define ISLOWER(c) \
11574 (('a' <= (c) && (c) <= 'i') \
11575 || ('j' <= (c) && (c) <= 'r') \
11576 || ('s' <= (c) && (c) <= 'z'))
11577 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
11580 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
11585 for (i = 0; i < 256; i++)
11586 if (XOR (islower (i), ISLOWER (i))
11587 || toupper (i) != TOUPPER (i))
11592 if ac_fn_c_try_run
"$LINENO"; then :
11595 ac_cv_header_stdc
=no
11597 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11598 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
11604 $as_echo "$ac_cv_header_stdc" >&6; }
11605 if test $ac_cv_header_stdc = yes; then
11607 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
11612 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
11613 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
11614 $as_echo_n "(cached) " >&6
11616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11617 /* end confdefs.h. */
11618 #include <sys/types.h>
11619 #include <sys/wait.h>
11620 #ifndef WEXITSTATUS
11621 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
11624 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
11632 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
11637 if ac_fn_c_try_compile
"$LINENO"; then :
11638 ac_cv_header_sys_wait_h
=yes
11640 ac_cv_header_sys_wait_h
=no
11642 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
11645 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
11646 if test $ac_cv_header_sys_wait_h = yes; then
11648 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
11653 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
11654 if test "${ac_cv_header_time+set}" = set; then :
11655 $as_echo_n "(cached) " >&6
11657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11658 /* end confdefs.h. */
11659 #include <sys/types.h>
11660 #include <sys/time.h>
11666 if ((struct tm *) 0)
11672 if ac_fn_c_try_compile
"$LINENO"; then :
11673 ac_cv_header_time
=yes
11675 ac_cv_header_time
=no
11677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
11680 $as_echo "$ac_cv_header_time" >&6; }
11681 if test $ac_cv_header_time = yes; then
11683 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
11688 for ac_header
in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
11690 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11691 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11692 eval as_val
=\$
$as_ac_Header
11693 if test "x$as_val" = x
""yes; then :
11694 cat >>confdefs.h
<<_ACEOF
11695 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11702 for ac_header
in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
11704 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11705 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11706 eval as_val
=\$
$as_ac_Header
11707 if test "x$as_val" = x
""yes; then :
11708 cat >>confdefs.h
<<_ACEOF
11709 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11716 for ac_header
in utime.h windows.h
11718 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11719 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11720 eval as_val
=\$
$as_ac_Header
11721 if test "x$as_val" = x
""yes; then :
11722 cat >>confdefs.h
<<_ACEOF
11723 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11730 for ac_header
in sys
/mman.h sys
/param.h sys
/resource.h sys
/time.h
11732 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11733 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11734 eval as_val
=\$
$as_ac_Header
11735 if test "x$as_val" = x
""yes; then :
11736 cat >>confdefs.h
<<_ACEOF
11737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11744 for ac_header
in sys
/types.h sys
/ioctl.h malloc
/malloc.h mach
/mach.h
11746 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11747 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11748 eval as_val
=\$
$as_ac_Header
11749 if test "x$as_val" = x
""yes; then :
11750 cat >>confdefs.h
<<_ACEOF
11751 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11758 for ac_header
in valgrind
/valgrind.h
11760 ac_fn_c_check_header_mongrel
"$LINENO" "valgrind/valgrind.h" "ac_cv_header_valgrind_valgrind_h" "$ac_includes_default"
11761 if test "x$ac_cv_header_valgrind_valgrind_h" = x
""yes; then :
11762 cat >>confdefs.h
<<_ACEOF
11763 #define HAVE_VALGRIND_VALGRIND_H 1
11770 for ac_header
in fenv.h
11772 ac_fn_c_check_header_mongrel
"$LINENO" "fenv.h" "ac_cv_header_fenv_h" "$ac_includes_default"
11773 if test "x$ac_cv_header_fenv_h" = x
""yes; then :
11774 cat >>confdefs.h
<<_ACEOF
11775 #define HAVE_FENV_H 1
11782 if test "$ENABLE_THREADS" -eq 1 ; then
11783 for ac_header
in pthread.h
11785 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11786 if test "x$ac_cv_header_pthread_h" = x
""yes; then :
11787 cat >>confdefs.h
<<_ACEOF
11788 #define HAVE_PTHREAD_H 1
11804 if test "$llvm_cv_enable_libffi" = "yes" ; then
11805 for ac_header
in ffi.h ffi
/ffi.h
11807 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11808 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
11809 eval as_val
=\$
$as_ac_Header
11810 if test "x$as_val" = x
""yes; then :
11811 cat >>confdefs.h
<<_ACEOF
11812 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11821 for ac_header
in CrashReporterClient.h
11823 ac_fn_c_check_header_mongrel
"$LINENO" "CrashReporterClient.h" "ac_cv_header_CrashReporterClient_h" "$ac_includes_default"
11824 if test "x$ac_cv_header_CrashReporterClient_h" = x
""yes; then :
11825 cat >>confdefs.h
<<_ACEOF
11826 #define HAVE_CRASHREPORTERCLIENT_H 1
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HUGE_VAL sanity" >&5
11838 $as_echo_n "checking for HUGE_VAL sanity... " >&6; }
11839 if test "${ac_cv_huge_val_sanity+set}" = set; then :
11840 $as_echo_n "(cached) " >&6
11844 ac_cpp
='$CXXCPP $CPPFLAGS'
11845 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11846 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11847 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11849 ac_save_CXXFLAGS
=$CXXFLAGS
11851 if test "$cross_compiling" = yes; then :
11852 ac_cv_huge_val_sanity
=yes
11854 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11855 /* end confdefs.h. */
11860 double x = HUGE_VAL; return x != x;
11865 if ac_fn_cxx_try_run
"$LINENO"; then :
11866 ac_cv_huge_val_sanity
=yes
11868 ac_cv_huge_val_sanity
=no
11870 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
11871 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
11874 CXXFLAGS
=$ac_save_CXXFLAGS
11876 ac_cpp
='$CPP $CPPFLAGS'
11877 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11878 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11879 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_huge_val_sanity" >&5
11884 $as_echo "$ac_cv_huge_val_sanity" >&6; }
11885 HUGE_VAL_SANITY
=$ac_cv_huge_val_sanity
11888 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
11889 if test "x$ac_cv_type_pid_t" = x
""yes; then :
11893 cat >>confdefs.h
<<_ACEOF
11899 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
11900 if test "x$ac_cv_type_size_t" = x
""yes; then :
11904 cat >>confdefs.h
<<_ACEOF
11905 #define size_t unsigned int
11911 cat >>confdefs.h
<<_ACEOF
11912 #define RETSIGTYPE void
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
11916 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
11917 if test "${ac_cv_struct_tm+set}" = set; then :
11918 $as_echo_n "(cached) " >&6
11920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11921 /* end confdefs.h. */
11922 #include <sys/types.h>
11929 int *p = &tm.tm_sec;
11935 if ac_fn_c_try_compile
"$LINENO"; then :
11936 ac_cv_struct_tm
=time.h
11938 ac_cv_struct_tm
=sys
/time.h
11940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
11943 $as_echo "$ac_cv_struct_tm" >&6; }
11944 if test $ac_cv_struct_tm = sys
/time.h
; then
11946 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
11950 ac_fn_c_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
11951 if test "x$ac_cv_type_int64_t" = x
""yes; then :
11953 cat >>confdefs.h
<<_ACEOF
11954 #define HAVE_INT64_T 1
11959 as_fn_error
"Type int64_t required but not found" "$LINENO" 5
11962 ac_fn_c_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
11963 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
11965 cat >>confdefs.h
<<_ACEOF
11966 #define HAVE_UINT64_T 1
11971 ac_fn_c_check_type
"$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "$ac_includes_default"
11972 if test "x$ac_cv_type_u_int64_t" = x
""yes; then :
11974 cat >>confdefs.h
<<_ACEOF
11975 #define HAVE_U_INT64_T 1
11980 as_fn_error
"Type uint64_t or u_int64_t required but not found" "$LINENO" 5
11987 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
11989 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11990 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11991 eval as_val
=\$
$as_ac_var
11992 if test "x$as_val" = x
""yes; then :
11993 cat >>confdefs.h
<<_ACEOF
11994 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12000 for ac_func
in powf fmodf strtof round
12002 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12003 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12004 eval as_val
=\$
$as_ac_var
12005 if test "x$as_val" = x
""yes; then :
12006 cat >>confdefs.h
<<_ACEOF
12007 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12013 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
12015 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12016 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12017 eval as_val
=\$
$as_ac_var
12018 if test "x$as_val" = x
""yes; then :
12019 cat >>confdefs.h
<<_ACEOF
12020 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12026 for ac_func
in isatty mkdtemp mkstemp
12028 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12029 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12030 eval as_val
=\$
$as_ac_var
12031 if test "x$as_val" = x
""yes; then :
12032 cat >>confdefs.h
<<_ACEOF
12033 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12039 for ac_func
in mktemp posix_spawn realpath sbrk setrlimit strdup
12041 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12042 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12043 eval as_val
=\$
$as_ac_var
12044 if test "x$as_val" = x
""yes; then :
12045 cat >>confdefs.h
<<_ACEOF
12046 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12052 for ac_func
in strerror strerror_r strerror_s setenv
12054 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12055 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12056 eval as_val
=\$
$as_ac_var
12057 if test "x$as_val" = x
""yes; then :
12058 cat >>confdefs.h
<<_ACEOF
12059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12065 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
12067 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12068 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12069 eval as_val
=\$
$as_ac_var
12070 if test "x$as_val" = x
""yes; then :
12071 cat >>confdefs.h
<<_ACEOF
12072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12078 for ac_func
in setjmp longjmp sigsetjmp siglongjmp
12080 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12081 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
12082 eval as_val
=\$
$as_ac_var
12083 if test "x$as_val" = x
""yes; then :
12084 cat >>confdefs.h
<<_ACEOF
12085 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf has the %a format character" >&5
12092 $as_echo_n "checking if printf has the %a format character... " >&6; }
12093 if test "${llvm_cv_c_printf_a+set}" = set; then :
12094 $as_echo_n "(cached) " >&6
12097 ac_cpp
='$CPP $CPPFLAGS'
12098 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12099 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12100 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12102 if test "$cross_compiling" = yes; then :
12103 llvmac_cv_c_printf_a
=no
12105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12110 #include <stdlib.h>
12116 volatile double A, B;
12120 sprintf(Buffer, "%a", A);
12124 if (A != 0x1.999999999999ap-4)
12131 if ac_fn_c_try_run
"$LINENO"; then :
12132 llvm_cv_c_printf_a
=yes
12134 llvmac_cv_c_printf_a
=no
12136 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12137 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12141 ac_cpp
='$CPP $CPPFLAGS'
12142 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12143 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12144 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_c_printf_a" >&5
12148 $as_echo "$llvm_cv_c_printf_a" >&6; }
12149 if test "$llvm_cv_c_printf_a" = "yes"; then
12151 $as_echo "#define HAVE_PRINTF_A 1" >>confdefs.h
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
12157 $as_echo_n "checking for srand48/lrand48/drand48 in <stdlib.h>... " >&6; }
12158 if test "${ac_cv_func_rand48+set}" = set; then :
12159 $as_echo_n "(cached) " >&6
12162 ac_cpp
='$CXXCPP $CPPFLAGS'
12163 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12164 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12165 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12168 /* end confdefs.h. */
12169 #include <stdlib.h>
12173 srand48(0);lrand48();drand48();
12178 if ac_fn_cxx_try_compile
"$LINENO"; then :
12179 ac_cv_func_rand48
=yes
12181 ac_cv_func_rand48
=no
12183 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12185 ac_cpp
='$CPP $CPPFLAGS'
12186 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12187 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12188 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_rand48" >&5
12192 $as_echo "$ac_cv_func_rand48" >&6; }
12194 if test "$ac_cv_func_rand48" = "yes" ; then
12196 $as_echo "#define HAVE_RAND48 1" >>confdefs.h
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in <math.h>" >&5
12203 $as_echo_n "checking for isnan in <math.h>... " >&6; }
12204 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then :
12205 $as_echo_n "(cached) " >&6
12208 ac_cpp
='$CXXCPP $CPPFLAGS'
12209 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12210 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12211 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12213 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12224 if ac_fn_cxx_try_compile
"$LINENO"; then :
12225 ac_cv_func_isnan_in_math_h
=yes
12227 ac_cv_func_isnan_in_math_h
=no
12229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12231 ac_cpp
='$CPP $CPPFLAGS'
12232 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12233 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12234 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isnan_in_math_h" >&5
12238 $as_echo "$ac_cv_func_isnan_in_math_h" >&6; }
12241 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
12243 $as_echo "#define HAVE_ISNAN_IN_MATH_H 1" >>confdefs.h
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in <cmath>" >&5
12248 $as_echo_n "checking for isnan in <cmath>... " >&6; }
12249 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then :
12250 $as_echo_n "(cached) " >&6
12253 ac_cpp
='$CXXCPP $CPPFLAGS'
12254 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12255 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12256 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12259 /* end confdefs.h. */
12269 if ac_fn_cxx_try_compile
"$LINENO"; then :
12270 ac_cv_func_isnan_in_cmath
=yes
12272 ac_cv_func_isnan_in_cmath
=no
12274 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12276 ac_cpp
='$CPP $CPPFLAGS'
12277 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12278 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12279 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isnan_in_cmath" >&5
12283 $as_echo "$ac_cv_func_isnan_in_cmath" >&6; }
12285 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
12287 $as_echo "#define HAVE_ISNAN_IN_CMATH 1" >>confdefs.h
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isnan in <cmath>" >&5
12292 $as_echo_n "checking for std::isnan in <cmath>... " >&6; }
12293 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then :
12294 $as_echo_n "(cached) " >&6
12297 ac_cpp
='$CXXCPP $CPPFLAGS'
12298 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12299 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12300 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12303 /* end confdefs.h. */
12308 float f; std::isnan(f);
12313 if ac_fn_cxx_try_compile
"$LINENO"; then :
12314 ac_cv_func_std_isnan_in_cmath
=yes
12316 ac_cv_func_std_isnan_in_cmath
=no
12318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12320 ac_cpp
='$CPP $CPPFLAGS'
12321 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_std_isnan_in_cmath" >&5
12327 $as_echo "$ac_cv_func_std_isnan_in_cmath" >&6; }
12329 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
12331 $as_echo "#define HAVE_STD_ISNAN_IN_CMATH 1" >>confdefs.h
12336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in <math.h>" >&5
12337 $as_echo_n "checking for isinf in <math.h>... " >&6; }
12338 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then :
12339 $as_echo_n "(cached) " >&6
12342 ac_cpp
='$CXXCPP $CPPFLAGS'
12343 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12344 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12345 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12347 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12348 /* end confdefs.h. */
12358 if ac_fn_cxx_try_compile
"$LINENO"; then :
12359 ac_cv_func_isinf_in_math_h
=yes
12361 ac_cv_func_isinf_in_math_h
=no
12363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12365 ac_cpp
='$CPP $CPPFLAGS'
12366 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12367 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12368 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf_in_math_h" >&5
12372 $as_echo "$ac_cv_func_isinf_in_math_h" >&6; }
12374 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
12376 $as_echo "#define HAVE_ISINF_IN_MATH_H 1" >>confdefs.h
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isinf in <cmath>" >&5
12381 $as_echo_n "checking for isinf in <cmath>... " >&6; }
12382 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then :
12383 $as_echo_n "(cached) " >&6
12386 ac_cpp
='$CXXCPP $CPPFLAGS'
12387 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12388 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12389 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12391 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12392 /* end confdefs.h. */
12402 if ac_fn_cxx_try_compile
"$LINENO"; then :
12403 ac_cv_func_isinf_in_cmath
=yes
12405 ac_cv_func_isinf_in_cmath
=no
12407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12409 ac_cpp
='$CPP $CPPFLAGS'
12410 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12411 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12412 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_isinf_in_cmath" >&5
12416 $as_echo "$ac_cv_func_isinf_in_cmath" >&6; }
12418 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
12420 $as_echo "#define HAVE_ISINF_IN_CMATH 1" >>confdefs.h
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for std::isinf in <cmath>" >&5
12425 $as_echo_n "checking for std::isinf in <cmath>... " >&6; }
12426 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then :
12427 $as_echo_n "(cached) " >&6
12430 ac_cpp
='$CXXCPP $CPPFLAGS'
12431 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12432 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12433 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12436 /* end confdefs.h. */
12441 float f; std::isinf(f)}
12446 if ac_fn_cxx_try_compile
"$LINENO"; then :
12447 ac_cv_func_std_isinf_in_cmath
=yes
12449 ac_cv_func_std_isinf_in_cmath
=no
12451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12453 ac_cpp
='$CPP $CPPFLAGS'
12454 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12455 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12456 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_std_isinf_in_cmath" >&5
12460 $as_echo "$ac_cv_func_std_isinf_in_cmath" >&6; }
12462 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
12464 $as_echo "#define HAVE_STD_ISINF_IN_CMATH 1" >>confdefs.h
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for finite in <ieeefp.h>" >&5
12469 $as_echo_n "checking for finite in <ieeefp.h>... " >&6; }
12470 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then :
12471 $as_echo_n "(cached) " >&6
12474 ac_cpp
='$CXXCPP $CPPFLAGS'
12475 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12476 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12477 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12480 /* end confdefs.h. */
12481 #include <ieeefp.h>
12485 float f; finite(f);
12490 if ac_fn_cxx_try_compile
"$LINENO"; then :
12491 ac_cv_func_finite_in_ieeefp_h
=yes
12493 ac_cv_func_finite_in_ieeefp_h
=no
12495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12497 ac_cpp
='$CPP $CPPFLAGS'
12498 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12499 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12500 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_finite_in_ieeefp_h" >&5
12504 $as_echo "$ac_cv_func_finite_in_ieeefp_h" >&6; }
12506 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
12508 $as_echo "#define HAVE_FINITE_IN_IEEEFP_H 1" >>confdefs.h
12514 if test "$llvm_cv_platform_type" = "Unix" ; then
12518 for ac_header
in $ac_header_list
12520 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12521 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12523 eval as_val
=\$
$as_ac_Header
12524 if test "x$as_val" = x
""yes; then :
12525 cat >>confdefs.h
<<_ACEOF
12526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12540 for ac_func
in getpagesize
12542 ac_fn_c_check_func
"$LINENO" "getpagesize" "ac_cv_func_getpagesize"
12543 if test "x$ac_cv_func_getpagesize" = x
""yes; then :
12544 cat >>confdefs.h
<<_ACEOF
12545 #define HAVE_GETPAGESIZE 1
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
12552 $as_echo_n "checking for working mmap... " >&6; }
12553 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
12554 $as_echo_n "(cached) " >&6
12556 if test "$cross_compiling" = yes; then :
12557 ac_cv_func_mmap_fixed_mapped
=no
12559 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12560 /* end confdefs.h. */
12561 $ac_includes_default
12562 /* malloc might have been renamed as rpl_malloc. */
12565 /* Thanks to Mike Haertel and Jim Avera for this test.
12566 Here is a matrix of mmap possibilities:
12567 mmap private not fixed
12568 mmap private fixed at somewhere currently unmapped
12569 mmap private fixed at somewhere already mapped
12570 mmap shared not fixed
12571 mmap shared fixed at somewhere currently unmapped
12572 mmap shared fixed at somewhere already mapped
12573 For private mappings, we should verify that changes cannot be read()
12574 back from the file, nor mmap's back from the file at a different
12575 address. (There have been systems where private was not correctly
12576 implemented like the infamous i386 svr4.0, and systems where the
12577 VM page cache was not coherent with the file system buffer cache
12578 like early versions of FreeBSD and possibly contemporary NetBSD.)
12579 For shared mappings, we should conversely verify that changes get
12580 propagated back to all the places they're supposed to be.
12582 Grep wants private fixed already mapped.
12583 The main things grep needs to know about mmap are:
12584 * does it exist and is it safe to write into the mmap'd area
12585 * how to use it (BSD variants) */
12588 #include <sys/mman.h>
12590 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
12594 /* This mess was copied from the GNU getpagesize.h. */
12595 #ifndef HAVE_GETPAGESIZE
12596 # ifdef _SC_PAGESIZE
12597 # define getpagesize() sysconf(_SC_PAGESIZE)
12598 # else /* no _SC_PAGESIZE */
12599 # ifdef HAVE_SYS_PARAM_H
12600 # include <sys/param.h>
12601 # ifdef EXEC_PAGESIZE
12602 # define getpagesize() EXEC_PAGESIZE
12603 # else /* no EXEC_PAGESIZE */
12605 # define getpagesize() NBPG * CLSIZE
12608 # endif /* no CLSIZE */
12609 # else /* no NBPG */
12611 # define getpagesize() NBPC
12612 # else /* no NBPC */
12614 # define getpagesize() PAGESIZE
12615 # endif /* PAGESIZE */
12616 # endif /* no NBPC */
12617 # endif /* no NBPG */
12618 # endif /* no EXEC_PAGESIZE */
12619 # else /* no HAVE_SYS_PARAM_H */
12620 # define getpagesize() 8192 /* punt totally */
12621 # endif /* no HAVE_SYS_PARAM_H */
12622 # endif /* no _SC_PAGESIZE */
12624 #endif /* no HAVE_GETPAGESIZE */
12629 char *data, *data2, *data3;
12630 const char *cdata2;
12634 pagesize = getpagesize ();
12636 /* First, make a file with some known garbage in it. */
12637 data = (char *) malloc (pagesize);
12640 for (i = 0; i < pagesize; ++i)
12641 *(data + i) = rand ();
12643 fd = creat ("conftest.mmap", 0600);
12646 if (write (fd, data, pagesize) != pagesize)
12650 /* Next, check that the tail of a page is zero-filled. File must have
12651 non-zero length, otherwise we risk SIGBUS for entire page. */
12652 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
12656 if (write (fd2, cdata2, 1) != 1)
12658 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
12659 if (data2 == MAP_FAILED)
12661 for (i = 0; i < pagesize; ++i)
12665 if (munmap (data2, pagesize))
12668 /* Next, try to mmap the file at a fixed address which already has
12669 something else allocated at it. If we can, also make sure that
12670 we see the same garbage. */
12671 fd = open ("conftest.mmap", O_RDWR);
12674 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
12675 MAP_PRIVATE | MAP_FIXED, fd, 0L))
12677 for (i = 0; i < pagesize; ++i)
12678 if (*(data + i) != *(data2 + i))
12681 /* Finally, make sure that changes to the mapped area do not
12682 percolate back to the file as seen by read(). (This is a bug on
12683 some variants of i386 svr4.0.) */
12684 for (i = 0; i < pagesize; ++i)
12685 *(data2 + i) = *(data2 + i) + 1;
12686 data3 = (char *) malloc (pagesize);
12689 if (read (fd, data3, pagesize) != pagesize)
12691 for (i = 0; i < pagesize; ++i)
12692 if (*(data + i) != *(data3 + i))
12698 if ac_fn_c_try_run
"$LINENO"; then :
12699 ac_cv_func_mmap_fixed_mapped
=yes
12701 ac_cv_func_mmap_fixed_mapped
=no
12703 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12704 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
12709 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
12710 if test $ac_cv_func_mmap_fixed_mapped = yes; then
12712 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
12715 rm -f conftest.mmap conftest.txt
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mmap of files" >&5
12718 $as_echo_n "checking for mmap of files... " >&6; }
12719 if test "${ac_cv_func_mmap_file+set}" = set; then :
12720 $as_echo_n "(cached) " >&6
12723 ac_cpp
='$CPP $CPPFLAGS'
12724 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12725 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12726 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12728 if test "$cross_compiling" = yes; then :
12729 ac_cv_func_mmap_file
=no
12731 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12732 /* end confdefs.h. */
12735 #include <sys/types.h>
12736 #include <sys/mman.h>
12744 fd = creat ("foo",0777);
12745 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
12747 return (fd != (int) MAP_FAILED);
12752 if ac_fn_c_try_run
"$LINENO"; then :
12753 ac_cv_func_mmap_file
=yes
12755 ac_cv_func_mmap_file
=no
12757 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
12758 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
12762 ac_cpp
='$CPP $CPPFLAGS'
12763 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12764 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12765 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_file" >&5
12770 $as_echo "$ac_cv_func_mmap_file" >&6; }
12771 if test "$ac_cv_func_mmap_file" = yes; then
12773 $as_echo "#define HAVE_MMAP_FILE /**/" >>confdefs.h
12779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if /dev/zero is needed for mmap" >&5
12780 $as_echo_n "checking if /dev/zero is needed for mmap... " >&6; }
12781 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then :
12782 $as_echo_n "(cached) " >&6
12784 if test "$llvm_cv_os_type" = "Interix" ; then
12785 ac_cv_need_dev_zero_for_mmap
=yes
12787 ac_cv_need_dev_zero_for_mmap
=no
12791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_need_dev_zero_for_mmap" >&5
12792 $as_echo "$ac_cv_need_dev_zero_for_mmap" >&6; }
12793 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
12795 $as_echo "#define NEED_DEV_ZERO_FOR_MMAP 1" >>confdefs.h
12799 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
12801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap() of a fixed address required but not supported" >&5
12802 $as_echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
12804 if test "$ac_cv_func_mmap_file" = "no"
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmap() of files required but not found" >&5
12807 $as_echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GCC atomic builtins" >&5
12812 $as_echo_n "checking for GCC atomic builtins... " >&6; }
12814 ac_cpp
='$CXXCPP $CPPFLAGS'
12815 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12816 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12817 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
12819 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12820 /* end confdefs.h. */
12822 volatile unsigned long val = 1;
12823 __sync_synchronize();
12824 __sync_val_compare_and_swap(&val, 1, 0);
12825 __sync_add_and_fetch(&val, 1);
12826 __sync_sub_and_fetch(&val, 1);
12831 if ac_fn_c_try_link
"$LINENO"; then :
12833 ac_cpp
='$CPP $CPPFLAGS'
12834 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12835 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12836 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12839 $as_echo "yes" >&6; }
12841 $as_echo "#define LLVM_MULTITHREADED 1" >>confdefs.h
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12845 $as_echo "no" >&6; }
12847 $as_echo "#define LLVM_MULTITHREADED 0" >>confdefs.h
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
12850 $as_echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
12852 rm -f core conftest.err conftest.
$ac_objext \
12853 conftest
$ac_exeext conftest.
$ac_ext
12856 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit userspace on 64-bit system" >&5
12858 $as_echo_n "checking for 32-bit userspace on 64-bit system... " >&6; }
12859 if test "${llvm_cv_linux_mixed+set}" = set; then :
12860 $as_echo_n "(cached) " >&6
12863 ac_cpp
='$CPP $CPPFLAGS'
12864 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12865 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12866 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12868 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12869 /* end confdefs.h. */
12871 error: Not x86-64 even if uname says so!
12882 if ac_fn_c_try_compile
"$LINENO"; then :
12883 llvm_cv_linux_mixed
=no
12885 llvm_cv_linux_mixed
=yes
12887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12889 ac_cpp
='$CPP $CPPFLAGS'
12890 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12891 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12892 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_linux_mixed" >&5
12897 $as_echo "$llvm_cv_linux_mixed" >&6; }
12899 if test "$llvm_cv_linux_mixed" = "yes"; then
12900 llvm_cv_target_arch
="x86"
12905 for ac_func
in __dso_handle
12907 ac_fn_c_check_func
"$LINENO" "__dso_handle" "ac_cv_func___dso_handle"
12908 if test "x$ac_cv_func___dso_handle" = x
""yes; then :
12909 cat >>confdefs.h
<<_ACEOF
12910 #define HAVE___DSO_HANDLE 1
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether llvm-gcc is sane" >&5
12918 $as_echo_n "checking whether llvm-gcc is sane... " >&6; }
12919 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then :
12920 $as_echo_n "(cached) " >&6
12922 llvm_cv_llvmgcc_sanity
="no"
12923 if test -x "$LLVMGCC" ; then
12924 cp /dev
/null conftest.c
12925 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
12926 grep 'target datalayout =' > /dev
/null
2>&1
12927 if test $?
-eq 0 ; then
12928 llvm_cv_llvmgcc_sanity
="yes"
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_llvmgcc_sanity" >&5
12934 $as_echo "$llvm_cv_llvmgcc_sanity" >&6; }
12936 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking llvm-gcc component support" >&5
12938 $as_echo_n "checking llvm-gcc component support... " >&6; }
12939 llvmcc1path
=`"$LLVMGCC" --print-prog-name=cc1`
12940 LLVMCC1
=$llvmcc1path
12942 llvmcc1pluspath
=`"$LLVMGCC" --print-prog-name=cc1plus`
12943 LLVMCC1PLUS
=$llvmcc1pluspath
12945 llvmgccdir
=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
12946 LLVMGCCDIR
=$llvmgccdir
12948 llvmgcclangs
=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
12949 LLVMGCC_LANGS
=$llvmgcclangs
12951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12952 $as_echo "ok" >&6; }
12955 SHLIBEXT
=$libltdl_cv_shlibext
12958 SHLIBPATH_VAR
=$libltdl_cv_shlibpath_var
12961 # Translate the various configuration directories and other basic
12962 # information into substitutions that will end up in Makefile.config.in
12963 # that these configured values can be used by the makefiles
12964 if test "${prefix}" = "NONE" ; then
12965 prefix
="/usr/local"
12967 eval LLVM_PREFIX
="${prefix}";
12968 eval LLVM_BINDIR
="${prefix}/bin";
12969 eval LLVM_LIBDIR
="${prefix}/lib";
12970 eval LLVM_DATADIR
="${prefix}/share/llvm";
12971 eval LLVM_DOCSDIR
="${prefix}/share/doc/llvm";
12972 eval LLVM_ETCDIR
="${prefix}/etc/llvm";
12973 eval LLVM_INCLUDEDIR
="${prefix}/include";
12974 eval LLVM_INFODIR
="${prefix}/info";
12975 eval LLVM_MANDIR
="${prefix}/man";
12976 LLVM_CONFIGTIME
=`date`
12988 # Place the various directores into the config.h file as #defines so that we
12989 # can know about the installation paths within LLVM.
12991 cat >>confdefs.h
<<_ACEOF
12992 #define LLVM_PREFIX "$LLVM_PREFIX"
12996 cat >>confdefs.h
<<_ACEOF
12997 #define LLVM_BINDIR "$LLVM_BINDIR"
13001 cat >>confdefs.h
<<_ACEOF
13002 #define LLVM_LIBDIR "$LLVM_LIBDIR"
13006 cat >>confdefs.h
<<_ACEOF
13007 #define LLVM_DATADIR "$LLVM_DATADIR"
13011 cat >>confdefs.h
<<_ACEOF
13012 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
13016 cat >>confdefs.h
<<_ACEOF
13017 #define LLVM_ETCDIR "$LLVM_ETCDIR"
13021 cat >>confdefs.h
<<_ACEOF
13022 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
13026 cat >>confdefs.h
<<_ACEOF
13027 #define LLVM_INFODIR "$LLVM_INFODIR"
13031 cat >>confdefs.h
<<_ACEOF
13032 #define LLVM_MANDIR "$LLVM_MANDIR"
13036 cat >>confdefs.h
<<_ACEOF
13037 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
13041 cat >>confdefs.h
<<_ACEOF
13042 #define LLVM_HOSTTRIPLE "$host"
13046 # Determine which bindings to build.
13047 if test "$BINDINGS_TO_BUILD" = auto
; then
13048 BINDINGS_TO_BUILD
=""
13049 if test "x$OCAMLC" != x
-a "x$OCAMLDEP" != x
; then
13050 BINDINGS_TO_BUILD
="ocaml $BINDINGS_TO_BUILD"
13053 BINDINGS_TO_BUILD
=$BINDINGS_TO_BUILD
13056 # This isn't really configurey, but it avoids having to repeat the list in
13061 # Do any work necessary to ensure that bindings have what they need.
13062 binding_prereqs_failed
=0
13063 for a_binding
in $BINDINGS_TO_BUILD ; do
13064 case "$a_binding" in
13066 if test "x$OCAMLC" = x
; then
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
13068 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
13069 binding_prereqs_failed
=1
13071 if test "x$OCAMLDEP" = x
; then
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
13073 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
13074 binding_prereqs_failed
=1
13076 if test "x$OCAMLOPT" = x
; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
13078 $as_echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
13080 if test "x$with_ocaml_libdir" != xauto
; then
13081 OCAML_LIBDIR
=$with_ocaml_libdir
13084 ocaml_stdlib
="`"$OCAMLC" -where`"
13085 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
13087 # ocaml stdlib is beneath our prefix; use stdlib
13088 OCAML_LIBDIR
=$ocaml_stdlib
13091 # ocaml stdlib is outside our prefix; use libdir/ocaml
13092 OCAML_LIBDIR
=$LLVM_LIBDIR/ocaml
13099 if test "$binding_prereqs_failed" = 1 ; then
13100 as_fn_error
"Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." "$LINENO" 5
13103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler -fvisibility-inlines-hidden option" >&5
13104 $as_echo_n "checking for compiler -fvisibility-inlines-hidden option... " >&6; }
13105 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then :
13106 $as_echo_n "(cached) " >&6
13109 ac_cpp
='$CXXCPP $CPPFLAGS'
13110 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13111 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13112 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
13114 oldcxxflags
="$CXXFLAGS"
13115 CXXFLAGS
="$CXXFLAGS -fvisibility-inlines-hidden"
13116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13117 /* end confdefs.h. */
13127 if ac_fn_cxx_try_compile
"$LINENO"; then :
13128 llvm_cv_cxx_visibility_inlines_hidden
=yes
13130 llvm_cv_cxx_visibility_inlines_hidden
=no
13132 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13133 CXXFLAGS
="$oldcxxflags"
13135 ac_cpp
='$CPP $CPPFLAGS'
13136 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13137 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13138 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
13142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
13143 $as_echo "$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
13144 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
13145 ENABLE_VISIBILITY_INLINES_HIDDEN
=1
13148 ENABLE_VISIBILITY_INLINES_HIDDEN
=0
13153 if test "$llvm_cv_link_use_r" = "yes" ; then
13160 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
13161 RDYNAMIC
="-Wl,-export-dynamic"
13168 ac_config_headers
="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
13173 ac_config_files
="$ac_config_files include/llvm/Config/Targets.def"
13175 ac_config_files
="$ac_config_files include/llvm/Config/AsmPrinters.def"
13177 ac_config_files
="$ac_config_files include/llvm/Config/AsmParsers.def"
13179 ac_config_files
="$ac_config_files include/llvm/Config/Disassemblers.def"
13181 ac_config_headers
="$ac_config_headers include/llvm/System/DataTypes.h"
13184 ac_config_files
="$ac_config_files Makefile.config"
13187 ac_config_files
="$ac_config_files llvm.spec"
13190 ac_config_files
="$ac_config_files tools/llvmc/src/Base.td"
13193 ac_config_files
="$ac_config_files tools/llvm-config/llvm-config.in"
13196 ac_config_commands
="$ac_config_commands setup"
13198 ac_config_commands
="$ac_config_commands Makefile"
13201 ac_config_commands
="$ac_config_commands Makefile.common"
13204 ac_config_commands
="$ac_config_commands examples/Makefile"
13207 ac_config_commands
="$ac_config_commands lib/Makefile"
13210 ac_config_commands
="$ac_config_commands runtime/Makefile"
13213 ac_config_commands
="$ac_config_commands test/Makefile"
13216 ac_config_commands
="$ac_config_commands test/Makefile.tests"
13219 ac_config_commands
="$ac_config_commands unittests/Makefile"
13222 ac_config_commands
="$ac_config_commands tools/Makefile"
13225 ac_config_commands
="$ac_config_commands utils/Makefile"
13228 ac_config_commands
="$ac_config_commands projects/Makefile"
13231 ac_config_commands
="$ac_config_commands bindings/Makefile"
13234 ac_config_commands
="$ac_config_commands bindings/ocaml/Makefile.ocaml"
13238 cat >confcache
<<\_ACEOF
13239 # This file is a shell script that caches the results of configure
13240 # tests run on this system so they can be shared between configure
13241 # scripts and configure runs, see configure's option --config-cache.
13242 # It is not useful on other systems. If it contains results you don't
13243 # want to keep, you may remove or edit it.
13245 # config.status only pays attention to the cache file if you give it
13246 # the --recheck option to rerun configure.
13248 # `ac_cv_env_foo' variables (set or unset) will be overridden when
13249 # loading this file, other *unset* `ac_cv_foo' will be assigned the
13250 # following values.
13254 # The following way of writing the cache mishandles newlines in values,
13255 # but we know of no workaround that is simple, portable, and efficient.
13256 # So, we kill variables containing newlines.
13257 # Ultrix sh set writes to stderr and can't be redirected directly,
13258 # and sets the high bit in the cache file unless we assign to the vars.
13260 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13261 eval ac_val
=\$
$ac_var
13265 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13266 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13269 _ | IFS | as_nl
) ;; #(
13270 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
13271 *) { eval $ac_var=; unset $ac_var;} ;;
13277 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13278 *${as_nl}ac_space
=\
*)
13279 # `set' does not quote correctly, so add quotes: double-quote
13280 # substitution turns \\\\ into \\, and sed turns \\ into \.
13283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13286 # `set' quotes correctly as required by POSIX, so do not add quotes.
13287 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13296 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13298 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13300 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
13301 if test -w "$cache_file"; then
13302 test "x$cache_file" != "x/dev/null" &&
13303 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13304 $as_echo "$as_me: updating cache $cache_file" >&6;}
13305 cat confcache
>$cache_file
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13308 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13313 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
13314 # Let make expand exec_prefix.
13315 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
13317 DEFS
=-DHAVE_CONFIG_H
13321 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
13322 # 1. Remove the extension, and $U if already installed.
13323 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
13324 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
13325 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13326 # will be set to the directory where LIBOBJS objects are built.
13327 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13328 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
13330 LIBOBJS
=$ac_libobjs
13332 LTLIBOBJS
=$ac_ltlibobjs
13336 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
13337 as_fn_error
"conditional \"INSTALL_LTDL\" was never defined.
13338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13340 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
13341 as_fn_error
"conditional \"CONVENIENCE_LTDL\" was never defined.
13342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
13345 : ${CONFIG_STATUS=./config.status}
13347 ac_clean_files_save
=$ac_clean_files
13348 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
13349 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13350 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13352 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13354 # Generated by $as_me.
13355 # Run this file to recreate the current configuration.
13356 # Compiler output produced by configure, useful for debugging
13357 # configure, is in config.log if it exists.
13360 ac_cs_recheck=false
13363 SHELL=\${CONFIG_SHELL-$SHELL}
13366 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
13367 ## -------------------- ##
13368 ## M4sh Initialization. ##
13369 ## -------------------- ##
13371 # Be more Bourne compatible
13372 DUALCASE
=1; export DUALCASE
# for MKS sh
13373 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
13376 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13377 # is contrary to our usage. Disable this feature.
13378 alias -g '${1+"$@"}'='"$@"'
13379 setopt NO_GLOB_SUBST
13381 case `(set -o) 2>/dev/null` in #(
13393 # Printing a long string crashes Solaris 7 /usr/bin/printf.
13394 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13395 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13396 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13397 # Prefer a ksh shell builtin over an external printf program on Solaris,
13398 # but without wasting forks for bash or zsh.
13399 if test -z "$BASH_VERSION$ZSH_VERSION" \
13400 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13401 as_echo='print
-r --'
13402 as_echo_n='print
-rn --'
13403 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13404 as_echo='printf %s
\n'
13405 as_echo_n='printf %s
'
13407 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
13408 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
13409 as_echo_n='/usr
/ucb
/echo -n'
13411 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13412 as_echo_n_body='eval
13416 expr "X$arg" : "X\\(.*\\)$as_nl";
13417 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
13419 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
13421 export as_echo_n_body
13422 as_echo_n='sh
-c $as_echo_n_body as_echo
'
13424 export as_echo_body
13425 as_echo='sh
-c $as_echo_body as_echo
'
13428 # The user is always right.
13429 if test "${PATH_SEPARATOR+set}" != set; then
13431 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13432 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13439 # We need space, tab and new line, in precisely that order. Quoting is
13440 # there to prevent editors from complaining about space-tab.
13441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
13442 # splitting by setting IFS to empty value.)
13445 # Find who we are. Look in the path if we contain no directory separator.
13447 *[\\/]* ) as_myself=$0 ;;
13448 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13452 test -z "$as_dir" && as_dir=.
13453 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13459 # We did not find ourselves, most probably we were run as `sh COMMAND'
13460 # in which case we are not to be found in the path.
13461 if test "x$as_myself" = x
; then
13464 if test ! -f "$as_myself"; then
13465 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13469 # Unset variables that we do not need and which cause bugs (e.g. in
13470 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
13471 # suppresses any "Segmentation fault" message there. '((' could
13472 # trigger a bug in pdksh 5.2.14.
13473 for as_var
in BASH_ENV ENV MAIL MAILPATH
13474 do eval test x\
${$as_var+set} = xset \
13475 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
13488 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
13491 # as_fn_error ERROR [LINENO LOG_FD]
13492 # ---------------------------------
13493 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13494 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13495 # script with status $?, using 1 if that was 0.
13498 as_status
=$?
; test $as_status -eq 0 && as_status
=1
13500 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
13501 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13503 $as_echo "$as_me: error: $1" >&2
13504 as_fn_exit
$as_status
13508 # as_fn_set_status STATUS
13509 # -----------------------
13510 # Set $? to STATUS, without forking.
13511 as_fn_set_status
()
13514 } # as_fn_set_status
13516 # as_fn_exit STATUS
13517 # -----------------
13518 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13522 as_fn_set_status
$1
13528 # Portably unset VAR.
13531 { eval $1=; unset $1;}
13533 as_unset
=as_fn_unset
13534 # as_fn_append VAR VALUE
13535 # ----------------------
13536 # Append the text in VALUE to the end of the definition contained in VAR. Take
13537 # advantage of any shell optimizations that allow amortized linear growth over
13538 # repeated appends, instead of the typical quadratic growth present in naive
13540 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
13541 eval 'as_fn_append ()
13552 # as_fn_arith ARG...
13553 # ------------------
13554 # Perform arithmetic evaluation on the ARGs, and store the result in the
13555 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13556 # must be portable across $(()) and expr.
13557 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
13558 eval 'as_fn_arith ()
13565 as_val
=`expr "$@" || test $? -eq 1`
13570 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
13571 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
13577 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13578 as_basename
=basename
13583 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
13589 as_me
=`$as_basename -- "$0" ||
13590 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13591 X"$0" : 'X\(//\)$' \| \
13592 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13594 sed '/^.*\/\([^/][^/]*\)\/*$/{
13608 # Avoid depending upon Character Ranges.
13609 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
13610 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13611 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
13612 as_cr_digits
='0123456789'
13613 as_cr_alnum
=$as_cr_Letters$as_cr_digits
13615 ECHO_C
= ECHO_N
= ECHO_T
=
13616 case `echo -n x` in #(((((
13618 case `echo 'xy\c'` in
13619 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
13621 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
13628 rm -f conf$$ conf$$.exe conf$$.
file
13629 if test -d conf$$.dir
; then
13630 rm -f conf$$.dir
/conf$$.
file
13633 mkdir conf$$.dir
2>/dev
/null
13635 if (echo >conf$$.
file) 2>/dev
/null
; then
13636 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
13638 # ... but there are two gotchas:
13639 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13640 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13641 # In both cases, we have to default to `cp -p'.
13642 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
13644 elif ln conf$$.
file conf$$
2>/dev
/null
; then
13652 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
13653 rmdir conf$$.dir
2>/dev
/null
13658 # Create "$as_dir" as a directory, including parents if necessary.
13663 -*) as_dir
=.
/$as_dir;;
13665 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
13669 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13670 *) as_qdir
=$as_dir;;
13672 as_dirs
="'$as_qdir' $as_dirs"
13673 as_dir
=`$as_dirname -- "$as_dir" ||
13674 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13675 X"$as_dir" : 'X\(//\)[^/]' \| \
13676 X"$as_dir" : 'X\(//\)$' \| \
13677 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13678 $as_echo X"$as_dir" |
13679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13683 /^X\(\/\/\)[^/].*/{
13696 test -d "$as_dir" && break
13698 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
13699 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
13703 if mkdir
-p .
2>/dev
/null
; then
13704 as_mkdir_p
='mkdir -p "$as_dir"'
13706 test -d .
/-p && rmdir .
/-p
13710 if test -x / >/dev
/null
2>&1; then
13711 as_test_x
='test -x'
13713 if ls -dL / >/dev
/null
2>&1; then
13720 if test -d "$1"; then
13726 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
13727 ???[sx]*):;;*)false;;esac;fi
13731 as_executable_p
=$as_test_x
13733 # Sed expression to map a string onto a valid CPP name.
13734 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13736 # Sed expression to map a string onto a valid variable name.
13737 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13741 ## ----------------------------------- ##
13742 ## Main body of $CONFIG_STATUS script. ##
13743 ## ----------------------------------- ##
13745 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
13747 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13748 # Save the log message, to keep $0 and so on meaningful, and to
13749 # report actual input values of CONFIG_FILES etc. instead of their
13750 # values after options handling.
13752 This file was extended by llvm $as_me 2.9svn, which was
13753 generated by GNU Autoconf 2.65. Invocation command line was
13755 CONFIG_FILES = $CONFIG_FILES
13756 CONFIG_HEADERS = $CONFIG_HEADERS
13757 CONFIG_LINKS = $CONFIG_LINKS
13758 CONFIG_COMMANDS = $CONFIG_COMMANDS
13761 on `(hostname || uname -n) 2>/dev/null | sed 1q`
13766 case $ac_config_files in *"
13767 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
13770 case $ac_config_headers in *"
13771 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
13775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13776 # Files that config.status was made for.
13777 config_files="$ac_config_files"
13778 config_headers="$ac_config_headers"
13779 config_commands="$ac_config_commands"
13783 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13785 \`$as_me' instantiates files and other configuration actions
13786 from templates according to the current configuration. Unless the files
13787 and actions are specified as TAGs, all are instantiated by default.
13789 Usage: $0 [OPTION]... [TAG]...
13791 -h, --help print this help, then exit
13792 -V, --version print version number and configuration settings, then exit
13793 --config print configuration, then exit
13794 -q, --quiet, --silent
13795 do not print progress messages
13796 -d, --debug don't remove temporary files
13797 --recheck update $as_me by reconfiguring in the same conditions
13798 --file=FILE[:TEMPLATE]
13799 instantiate the configuration file FILE
13800 --header=FILE[:TEMPLATE]
13801 instantiate the configuration header FILE
13803 Configuration files:
13806 Configuration headers:
13809 Configuration commands:
13812 Report bugs to <llvmbugs@cs.uiuc.edu>."
13815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13816 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13818 llvm config.status 2.9svn
13819 configured by $0, generated by GNU Autoconf 2.65,
13820 with options \\"\$ac_cs_config\\"
13822 Copyright (C) 2009 Free Software Foundation, Inc.
13823 This config.status script is free software; the Free Software Foundation
13824 gives unlimited permission to copy, distribute and modify it."
13829 test -n "\$AWK" || AWK=awk
13832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13833 # The default lists apply if the user does not specify any file.
13839 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
13840 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
13851 # Handling of the options.
13852 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
13854 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
13855 $as_echo "$ac_cs_version"; exit ;;
13856 --config |
--confi |
--conf |
--con |
--co |
--c )
13857 $as_echo "$ac_cs_config"; exit ;;
13858 --debug |
--debu |
--deb |
--de |
--d |
-d )
13860 --file |
--fil |
--fi |
--f )
13863 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13865 as_fn_append CONFIG_FILES
" '$ac_optarg'"
13866 ac_need_defaults
=false
;;
13867 --header |
--heade |
--head |
--hea )
13870 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13872 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
13873 ac_need_defaults
=false
;;
13875 # Conflict between --help and --header
13876 as_fn_error
"ambiguous option: \`$1'
13877 Try \`$0 --help' for more information.";;
13878 --help |
--hel |
-h )
13879 $as_echo "$ac_cs_usage"; exit ;;
13880 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
13881 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
13884 # This is an error.
13885 -*) as_fn_error
"unrecognized option: \`$1'
13886 Try \`$0 --help' for more information." ;;
13888 *) as_fn_append ac_config_targets
" $1"
13889 ac_need_defaults
=false
;;
13895 ac_configure_extra_args
=
13897 if $ac_cs_silent; then
13899 ac_configure_extra_args
="$ac_configure_extra_args --silent"
13903 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13904 if \$ac_cs_recheck; then
13905 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
13907 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
13908 CONFIG_SHELL='$SHELL'
13909 export CONFIG_SHELL
13914 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13918 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13919 ## Running $as_me. ##
13925 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13929 llvm_src="${srcdir}"
13933 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
13935 # Handling of arguments.
13936 for ac_config_target
in $ac_config_targets
13938 case $ac_config_target in
13939 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
13940 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
13941 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
13942 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
13943 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
13944 "include/llvm/Config/Disassemblers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
13945 "include/llvm/System/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
13946 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
13947 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
13948 "tools/llvmc/src/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
13949 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
13950 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
13951 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
13952 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
13953 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
13954 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
13955 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
13956 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
13957 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
13958 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
13959 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
13960 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
13961 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
13962 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
13963 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
13965 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13970 # If the user did not use the arguments to specify the items to instantiate,
13971 # then the envvar interface is used. Set only those that are not.
13972 # We use the long form for the default assignment because of an extremely
13973 # bizarre bug on SunOS 4.1.3.
13974 if $ac_need_defaults; then
13975 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
13976 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
13977 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
13980 # Have a temporary directory for convenience. Make it in the build tree
13981 # simply because there is no reason against having it here, and in addition,
13982 # creating and moving files from /tmp can sometimes cause problems.
13983 # Hook for its removal unless debugging.
13984 # Note that there is a small window in which the directory will not be cleaned:
13985 # after its creation but before its name has been assigned to `$tmp'.
13989 trap 'exit_status=$?
13990 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
13992 trap 'as_fn_exit 1' 1 2 13 15
13994 # Create a (secure) tmp directory for tmp files.
13997 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13998 test -n "$tmp" && test -d "$tmp"
14001 tmp
=.
/conf$$
-$RANDOM
14002 (umask 077 && mkdir
"$tmp")
14003 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
14005 # Set up the scripts for CONFIG_FILES section.
14006 # No need to generate them if there are no CONFIG_FILES.
14007 # This happens for instance with `./config.status config.h'.
14008 if test -n "$CONFIG_FILES"; then
14011 ac_cr
=`echo X | tr X '\015'`
14012 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14013 # But we know of no other shell where ac_cr would be empty at this
14014 # point, so we can use a bashism as a fallback.
14015 if test "x$ac_cr" = x
; then
14016 eval ac_cr
=\$
\'\\r
\'
14018 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14019 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14022 ac_cs_awk_cr
=$ac_cr
14025 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14030 echo "cat >conf$$subs.awk <<_ACEOF" &&
14031 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14033 } >conf$$subs.sh ||
14034 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14035 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14037 for ac_last_try in false false false false false :; do
14038 . ./conf$$subs.sh ||
14039 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14041 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
14042 if test $ac_delim_n = $ac_delim_num; then
14044 elif $ac_last_try; then
14045 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
14047 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14050 rm -f conf$$subs.sh
14052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14053 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
14057 s/^/S["/; s
/!.
*/"]=/
14067 s/\(.\{148\}\)..*/\1/
14069 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
14074 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14081 s/\(.\{148\}\)..*/\1/
14083 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
14087 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
14092 ' <conf$$subs.awk | sed '
14097 ' >>$CONFIG_STATUS || ac_write_fail=1
14098 rm -f conf$$subs.awk
14099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14101 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
14102 for (key in S) S_is_set[key] = 1
14108 nfields = split(line, field, "@
")
14110 len = length(field[1])
14111 for (i = 2; i < nfields; i++) {
14113 keylen = length(key)
14114 if (S_is_set[key]) {
14116 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
14117 len += length(value) + length(field[++i])
14128 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14129 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14130 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
14133 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
14134 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
14137 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14138 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
14139 # trailing colons and then remove the whole line if VPATH becomes empty
14140 # (actually we leave an empty line to preserve line numbers).
14141 if test "x
$srcdir" = x.; then
14142 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14143 s/:*\$(srcdir):*/:/
14144 s/:*\${srcdir}:*/:/
14146 s/^\([^=]*=[ ]*\):*/\1/
14152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14153 fi # test -n "$CONFIG_FILES"
14155 # Set up the scripts for CONFIG_HEADERS section.
14156 # No need to generate them if there are no CONFIG_HEADERS.
14157 # This happens for instance with `./config.status Makefile'.
14158 if test -n "$CONFIG_HEADERS"; then
14159 cat >"$tmp/defines.
awk" <<\_ACAWK ||
14163 # Transform confdefs.h into an awk script `defines.awk', embedded as
14164 # here-document in config.status, that substitutes the proper values into
14165 # config.h.in to produce config.h.
14167 # Create a delimiter string that does not exist in confdefs.h, to ease
14168 # handling of long lines.
14170 for ac_last_try in false false :; do
14171 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
14172 if test -z "$ac_t"; then
14174 elif $ac_last_try; then
14175 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
14177 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
14181 # For the awk script, D is an array of macro values keyed by name,
14182 # likewise P contains macro parameters if any. Preserve backslash
14183 # newline sequences.
14185 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14187 s/.\{148\}/&'"$ac_delim"'/g
14190 s/^[ ]*#[ ]*define[ ][ ]*/ /
14197 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
14199 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
14203 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
14204 D["\
1"]=" \
3\\\\\\n
"\\/p
14206 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
14211 s/.\{148\}/&'"$ac_delim"'/g
14216 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
14219 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
14221 ' <confdefs.h | sed '
14222 s/'"$ac_delim"'/"\\\
14223 "/g' >>$CONFIG_STATUS || ac_write_fail=1
14225 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14226 for (key in D) D_is_set[key] = 1
14229 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
14231 split(line, arg, " ")
14232 if (arg[1] == "#") {
14236 defundef
= substr
(arg
[1], 2)
14239 split(mac1
, mac2
, "(") #)
14241 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
14242 if (D_is_set
[macro
]) {
14243 # Preserve the white space surrounding the "#".
14244 print prefix
"define", macro P
[macro
] D
[macro
]
14247 # Replace #undef with comments. This is necessary, for example,
14248 # in the case of _POSIX_SOURCE, which is predefined and required
14249 # on some systems where configure will not decide to define it.
14250 if (defundef
== "undef") {
14251 print
"/*", prefix defundef
, macro
, "*/"
14259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14260 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
14261 fi # test -n "$CONFIG_HEADERS"
14264 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14269 :[FHLC
]) ac_mode
=$ac_tag; continue;;
14271 case $ac_mode$ac_tag in
14273 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
14274 :[FH
]-) ac_tag
=-:-;;
14275 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
14292 -) ac_f
="$tmp/stdin";;
14293 *) # Look for the file first in the build tree, then in the source tree
14294 # (if the path is not absolute). The absolute path cannot be DOS-style,
14295 # because $ac_f cannot contain `:'.
14299 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
14301 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
14303 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14304 as_fn_append ac_file_inputs
" '$ac_f'"
14307 # Let's still pretend it is `configure' which instantiates (i.e., don't
14308 # use $as_me), people would be surprised to read:
14309 # /* config.h. Generated by config.status. */
14310 configure_input
='Generated from '`
14311 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14313 if test x
"$ac_file" != x-
; then
14314 configure_input
="$ac_file. $configure_input"
14315 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
14316 $as_echo "$as_me: creating $ac_file" >&6;}
14318 # Neutralize special characters interpreted by sed in replacement strings.
14319 case $configure_input in #(
14320 *\
&* |
*\|
* |
*\\* )
14321 ac_sed_conf_input
=`$as_echo "$configure_input" |
14322 sed 's/[\\\\&|]/\\\\&/g'`;; #(
14323 *) ac_sed_conf_input
=$configure_input;;
14327 *:-:* |
*:-) cat >"$tmp/stdin" \
14328 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
14333 ac_dir
=`$as_dirname -- "$ac_file" ||
14334 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14335 X"$ac_file" : 'X\(//\)[^/]' \| \
14336 X"$ac_file" : 'X\(//\)$' \| \
14337 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14338 $as_echo X"$ac_file" |
14339 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14343 /^X\(\/\/\)[^/].*/{
14356 as_dir
="$ac_dir"; as_fn_mkdir_p
14360 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14362 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14363 # A ".." for each directory in $ac_dir_suffix.
14364 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14365 case $ac_top_builddir_sub in
14366 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14367 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14370 ac_abs_top_builddir
=$ac_pwd
14371 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14372 # for backward compatibility:
14373 ac_top_builddir
=$ac_top_build_prefix
14376 .
) # We are building in place.
14378 ac_top_srcdir
=$ac_top_builddir_sub
14379 ac_abs_top_srcdir
=$ac_pwd ;;
14380 [\\/]* | ?
:[\\/]* ) # Absolute name.
14381 ac_srcdir
=$srcdir$ac_dir_suffix;
14382 ac_top_srcdir
=$srcdir
14383 ac_abs_top_srcdir
=$srcdir ;;
14384 *) # Relative name.
14385 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14386 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14387 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14389 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14399 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
14400 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
14404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14405 # If the template does not know about datarootdir, expand it.
14406 # FIXME: This hack should be removed a few years after 2.60.
14407 ac_datarootdir_hack
=; ac_datarootdir_seen
=
14418 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14419 *datarootdir
*) ac_datarootdir_seen
=yes;;
14420 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14422 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14425 ac_datarootdir_hack='
14426 s&@datadir@&$datadir&g
14427 s&@docdir@&$docdir&g
14428 s&@infodir@&$infodir&g
14429 s&@localedir@&$localedir&g
14430 s&@mandir@&$mandir&g
14431 s&\\\${datarootdir}&$datarootdir&g' ;;
14435 # Neutralize VPATH when `$srcdir' = `.'.
14436 # Shell code in configure.ac might set extrasub.
14437 # FIXME: do we really want to maintain this feature?
14438 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14439 ac_sed_extra="$ac_vpsub
14442 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
14444 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
14445 s|@configure_input@|
$ac_sed_conf_input|
;t t
14446 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
14447 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
14448 s
&@srcdir@
&$ac_srcdir&;t t
14449 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
14450 s
&@top_srcdir@
&$ac_top_srcdir&;t t
14451 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
14452 s
&@builddir@
&$ac_builddir&;t t
14453 s
&@abs_builddir@
&$ac_abs_builddir&;t t
14454 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
14455 s
&@INSTALL@
&$ac_INSTALL&;t t
14456 $ac_datarootdir_hack
14458 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
14459 || as_fn_error "could not create
$ac_file" "$LINENO" 5
14461 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14462 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
14463 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
14465 which seems to be undefined. Please make sure it is defined." >&5
14466 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
14467 which seems to be undefined. Please make sure it is defined." >&2;}
14471 -) cat "$tmp/out" && rm -f "$tmp/out";;
14472 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14474 || as_fn_error "could not create $ac_file" "$LINENO" 5
14480 if test x"$ac_file" != x-; then
14482 $as_echo "/* $configure_input */" \
14483 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14484 } >"$tmp/config.h" \
14485 || as_fn_error "could not create $ac_file" "$LINENO" 5
14486 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14488 $as_echo "$as_me: $ac_file is unchanged" >&6;}
14491 mv "$tmp/config.h" "$ac_file" \
14492 || as_fn_error "could not create $ac_file" "$LINENO" 5
14495 $as_echo "/* $configure_input */" \
14496 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14497 || as_fn_error "could not create -" "$LINENO" 5
14501 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
14502 $as_echo "$as_me: executing $ac_file commands" >&6;}
14507 case $ac_file$ac_mode in
14508 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
14509 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
14510 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
14511 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
14512 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
14513 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
14514 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
14515 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
14516 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
14517 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
14518 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
14519 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
14520 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
14521 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
14522 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
14523 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
14524 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
14525 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
14526 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
14527 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
14528 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
14529 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
14530 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
14531 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
14532 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
14533 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
14541 ac_clean_files=$ac_clean_files_save
14543 test $ac_write_fail = 0 ||
14544 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
14547 # configure is writing to config.log, and then calls config.status.
14548 # config.status does its own redirection, appending to config.log.
14549 # Unfortunately, on DOS this fails, as config.log is still kept open
14550 # by configure, so config.status won't be able to
write to it
; its
14551 # output is simply discarded. So we exec the FD to /dev/null,
14552 # effectively closing config.log, so it can be properly (re)opened and
14553 # appended to by config.status. When coming back to configure, we
14554 # need to make the FD available again.
14555 if test "$no_create" != yes; then
14557 ac_config_status_args
=
14558 test "$silent" = yes &&
14559 ac_config_status_args
="$ac_config_status_args --quiet"
14561 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
14563 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14564 # would make configure fail if this is the last instruction.
14565 $ac_cs_success || as_fn_exit $?
14569 # CONFIG_SUBDIRS section.
14571 if test "$no_recursion" != yes; then
14573 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
14574 # so they do not pile up.
14575 ac_sub_configure_args
=
14577 eval "set x $ac_configure_args"
14581 if test -n "$ac_prev"; then
14586 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
14587 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
14588 ac_prev
=cache_file
;;
14589 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
14590 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
14593 --config-cache |
-C)
14595 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
14597 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
14599 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
14601 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
14603 --disable-option-checking)
14607 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14609 as_fn_append ac_sub_configure_args
" '$ac_arg'" ;;
14613 # Always prepend --prefix to ensure using the same prefix
14614 # in subdir configurations.
14615 ac_arg
="--prefix=$prefix"
14617 *\'*) ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
14619 ac_sub_configure_args
="'$ac_arg' $ac_sub_configure_args"
14622 if test "$silent" = yes; then
14623 ac_sub_configure_args
="--silent $ac_sub_configure_args"
14626 # Always prepend --disable-option-checking to silence warnings, since
14627 # different subdirs can have different --enable and --with options.
14628 ac_sub_configure_args
="--disable-option-checking $ac_sub_configure_args"
14631 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
14633 # Do not complain, so a configure script can configure whichever
14634 # parts of a large source tree are present.
14635 test -d "$srcdir/$ac_dir" ||
continue
14637 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
14638 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
14639 $as_echo "$ac_msg" >&6
14640 as_dir
="$ac_dir"; as_fn_mkdir_p
14644 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14646 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14647 # A ".." for each directory in $ac_dir_suffix.
14648 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14649 case $ac_top_builddir_sub in
14650 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
14651 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
14654 ac_abs_top_builddir
=$ac_pwd
14655 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
14656 # for backward compatibility:
14657 ac_top_builddir
=$ac_top_build_prefix
14660 .
) # We are building in place.
14662 ac_top_srcdir
=$ac_top_builddir_sub
14663 ac_abs_top_srcdir
=$ac_pwd ;;
14664 [\\/]* | ?
:[\\/]* ) # Absolute name.
14665 ac_srcdir
=$srcdir$ac_dir_suffix;
14666 ac_top_srcdir
=$srcdir
14667 ac_abs_top_srcdir
=$srcdir ;;
14668 *) # Relative name.
14669 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
14670 ac_top_srcdir
=$ac_top_build_prefix$srcdir
14671 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
14673 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
14678 # Check for guested configure; otherwise get Cygnus style configure.
14679 if test -f "$ac_srcdir/configure.gnu"; then
14680 ac_sub_configure
=$ac_srcdir/configure.gnu
14681 elif test -f "$ac_srcdir/configure"; then
14682 ac_sub_configure
=$ac_srcdir/configure
14683 elif test -f "$ac_srcdir/configure.in"; then
14684 # This should be Cygnus configure.
14685 ac_sub_configure
=$ac_aux_dir/configure
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
14688 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
14692 # The recursion is here.
14693 if test -n "$ac_sub_configure"; then
14694 # Make the cache file name correct relative to the subdirectory.
14695 case $cache_file in
14696 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
14697 *) # Relative name.
14698 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
14702 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
14703 # The eval makes quoting arguments work.
14704 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
14705 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
14706 as_fn_error
"$ac_sub_configure failed for $ac_dir" "$LINENO" 5
14712 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
14714 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}