2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.9svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
28 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
29 DUALCASE
=1; export DUALCASE
# for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
251 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
252 DUALCASE
=1; export DUALCASE
# for MKS sh
257 CONFIG_SHELL
=$as_shell
259 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
271 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
272 DUALCASE
=1; export DUALCASE
# for MKS sh
284 as_func_ret_success
() {
287 as_func_ret_failure
() {
292 if as_func_success
; then
296 echo as_func_success failed.
299 if as_func_failure
; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success
; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure
; then
313 echo as_func_ret_failure succeeded.
316 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) ||
{ (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x
; then
341 for as_var
in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no
; then
350 echo This
script requires a shell
more modern than all the
351 echo shells that I found on your system. Please
install a
352 echo modern shell
, or manually run the
script under such a
353 echo shell
if you
do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") ||
{
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system
,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
470 ECHO_C
= ECHO_N
= ECHO_T
=
474 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
481 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
488 rm -f conf$$ conf$$.exe conf$$.
file
489 if test -d conf$$.dir
; then
490 rm -f conf$$.dir
/conf$$.
file
496 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
504 elif ln conf$$.
file conf$$
2>/dev
/null
; then
509 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
510 rmdir conf$$.dir
2>/dev
/null
512 if mkdir
-p .
2>/dev
/null
; then
515 test -d .
/-p && rmdir .
/-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.
file <<_ASEOF
526 if test -x conf$$.
file >/dev
/null
2>&1; then
527 as_executable_p
="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev
/null
6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix
=/usr
/local
553 ac_config_libobj_dir
=.
559 SHELL
=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME
='-llvm-'
564 PACKAGE_VERSION
='2.9svn'
565 PACKAGE_STRING
='llvm 2.9svn'
566 PACKAGE_BUGREPORT
='llvmbugs@cs.uiuc.edu'
568 ac_unique_file
="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default
="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
683 ENABLE_EXPENSIVE_CHECKS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
753 HAVE_LINK_VERSION_SCRIPT
756 CONVENIENCE_LTDL_TRUE
757 CONVENIENCE_LTDL_FALSE
765 NO_MISSING_FIELD_INITIALIZERS
790 ENABLE_VISIBILITY_INLINES_HIDDEN
796 ac_precious_vars
='build_alias
807 ac_subdirs_all
='projects/llvm-gcc
811 projects/llvm-poolalloc
814 projects/llvm-stacker
819 projects/llvm-kernel'
821 # Initialize some variables set by options.
823 ac_init_version
=false
824 # The variables have the same names as the options, with
825 # dashes changed to underlines.
833 program_transform_name
=s
,x
,x
,
841 # Installation directory options.
842 # These are left unexpanded so users can "make install exec_prefix=/foo"
843 # and all the variables that are supposed to be based on exec_prefix
844 # by default will actually change.
845 # Use braces instead of parens because sh, perl, etc. also accept them.
846 # (The list follows the same order as the GNU Coding Standards.)
847 bindir
='${exec_prefix}/bin'
848 sbindir
='${exec_prefix}/sbin'
849 libexecdir
='${exec_prefix}/libexec'
850 datarootdir
='${prefix}/share'
851 datadir
='${datarootdir}'
852 sysconfdir
='${prefix}/etc'
853 sharedstatedir
='${prefix}/com'
854 localstatedir
='${prefix}/var'
855 includedir
='${prefix}/include'
856 oldincludedir
='/usr/include'
857 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
858 infodir
='${datarootdir}/info'
863 libdir
='${exec_prefix}/lib'
864 localedir
='${datarootdir}/locale'
865 mandir
='${datarootdir}/man'
871 # If the previous option needs an argument, assign it.
872 if test -n "$ac_prev"; then
873 eval $ac_prev=\
$ac_option
879 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 # Accept the important Cygnus configure options, so we can diagnose typos.
885 case $ac_dashdash$ac_option in
889 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
891 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
894 -build |
--build |
--buil |
--bui |
--bu)
895 ac_prev
=build_alias
;;
896 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
897 build_alias
=$ac_optarg ;;
899 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
900 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
901 ac_prev
=cache_file
;;
902 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
903 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
904 cache_file
=$ac_optarg ;;
907 cache_file
=config.cache
;;
909 -datadir |
--datadir |
--datadi |
--datad)
911 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
912 datadir
=$ac_optarg ;;
914 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
915 |
--dataroo |
--dataro |
--datar)
916 ac_prev
=datarootdir
;;
917 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
918 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
919 datarootdir
=$ac_optarg ;;
921 -disable-* |
--disable-*)
922 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
923 # Reject names that are not valid shell variable names.
924 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
925 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
926 { (exit 1); exit 1; }; }
927 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
928 eval enable_
$ac_feature=no
;;
930 -docdir |
--docdir |
--docdi |
--doc |
--do)
932 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
935 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
937 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
940 -enable-* |
--enable-*)
941 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
944 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
945 { (exit 1); exit 1; }; }
946 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
947 eval enable_
$ac_feature=\
$ac_optarg ;;
949 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
950 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
951 |
--exec |
--exe |
--ex)
952 ac_prev
=exec_prefix
;;
953 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
954 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
955 |
--exec=* |
--exe=* |
--ex=*)
956 exec_prefix
=$ac_optarg ;;
958 -gas |
--gas |
--ga |
--g)
959 # Obsolete; use --with-gas.
962 -help |
--help |
--hel |
--he |
-h)
964 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
965 ac_init_help
=recursive
;;
966 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
967 ac_init_help
=short
;;
969 -host |
--host |
--hos |
--ho)
970 ac_prev
=host_alias
;;
971 -host=* |
--host=* |
--hos=* |
--ho=*)
972 host_alias
=$ac_optarg ;;
974 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
976 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
978 htmldir
=$ac_optarg ;;
980 -includedir |
--includedir |
--includedi |
--included |
--include \
981 |
--includ |
--inclu |
--incl |
--inc)
982 ac_prev
=includedir
;;
983 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
984 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
985 includedir
=$ac_optarg ;;
987 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
989 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
990 infodir
=$ac_optarg ;;
992 -libdir |
--libdir |
--libdi |
--libd)
994 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
997 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
998 |
--libexe |
--libex |
--libe)
999 ac_prev
=libexecdir
;;
1000 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1001 |
--libexe=* |
--libex=* |
--libe=*)
1002 libexecdir
=$ac_optarg ;;
1004 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1005 ac_prev
=localedir
;;
1006 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1007 localedir
=$ac_optarg ;;
1009 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1010 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1011 ac_prev
=localstatedir
;;
1012 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1013 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1014 localstatedir
=$ac_optarg ;;
1016 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1018 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1019 mandir
=$ac_optarg ;;
1021 -nfp |
--nfp |
--nf)
1022 # Obsolete; use --without-fp.
1025 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1026 |
--no-cr |
--no-c |
-n)
1029 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1030 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1033 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1034 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1035 |
--oldin |
--oldi |
--old |
--ol |
--o)
1036 ac_prev
=oldincludedir
;;
1037 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1038 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1039 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1040 oldincludedir
=$ac_optarg ;;
1042 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1044 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1045 prefix
=$ac_optarg ;;
1047 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1048 |
--program-pre |
--program-pr |
--program-p)
1049 ac_prev
=program_prefix
;;
1050 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1051 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1052 program_prefix
=$ac_optarg ;;
1054 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1055 |
--program-suf |
--program-su |
--program-s)
1056 ac_prev
=program_suffix
;;
1057 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1058 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1059 program_suffix
=$ac_optarg ;;
1061 -program-transform-name |
--program-transform-name \
1062 |
--program-transform-nam |
--program-transform-na \
1063 |
--program-transform-n |
--program-transform- \
1064 |
--program-transform |
--program-transfor \
1065 |
--program-transfo |
--program-transf \
1066 |
--program-trans |
--program-tran \
1067 |
--progr-tra |
--program-tr |
--program-t)
1068 ac_prev
=program_transform_name
;;
1069 -program-transform-name=* |
--program-transform-name=* \
1070 |
--program-transform-nam=* |
--program-transform-na=* \
1071 |
--program-transform-n=* |
--program-transform-=* \
1072 |
--program-transform=* |
--program-transfor=* \
1073 |
--program-transfo=* |
--program-transf=* \
1074 |
--program-trans=* |
--program-tran=* \
1075 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1076 program_transform_name
=$ac_optarg ;;
1078 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1080 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1081 pdfdir
=$ac_optarg ;;
1083 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1085 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1088 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1089 |
-silent |
--silent |
--silen |
--sile |
--sil)
1092 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1094 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1096 sbindir
=$ac_optarg ;;
1098 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1099 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1100 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1102 ac_prev
=sharedstatedir
;;
1103 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1104 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1105 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1107 sharedstatedir
=$ac_optarg ;;
1109 -site |
--site |
--sit)
1111 -site=* |
--site=* |
--sit=*)
1114 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1116 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1117 srcdir
=$ac_optarg ;;
1119 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1120 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1121 ac_prev
=sysconfdir
;;
1122 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1123 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1124 sysconfdir
=$ac_optarg ;;
1126 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1127 ac_prev
=target_alias
;;
1128 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1129 target_alias
=$ac_optarg ;;
1131 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1134 -version |
--version |
--versio |
--versi |
--vers |
-V)
1135 ac_init_version
=: ;;
1138 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1141 { echo "$as_me: error: invalid package name: $ac_package" >&2
1142 { (exit 1); exit 1; }; }
1143 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1144 eval with_
$ac_package=\
$ac_optarg ;;
1146 -without-* |
--without-*)
1147 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1148 # Reject names that are not valid shell variable names.
1149 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1150 { echo "$as_me: error: invalid package name: $ac_package" >&2
1151 { (exit 1); exit 1; }; }
1152 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1153 eval with_
$ac_package=no
;;
1156 # Obsolete; use --with-x.
1159 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1160 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1161 ac_prev
=x_includes
;;
1162 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1163 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1164 x_includes
=$ac_optarg ;;
1166 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1167 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1168 ac_prev
=x_libraries
;;
1169 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1170 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1171 x_libraries
=$ac_optarg ;;
1173 -*) { echo "$as_me: error: unrecognized option: $ac_option
1174 Try \`$0 --help' for more information." >&2
1175 { (exit 1); exit 1; }; }
1179 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1182 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1183 { (exit 1); exit 1; }; }
1184 eval $ac_envvar=\
$ac_optarg
1185 export $ac_envvar ;;
1188 # FIXME: should be removed in autoconf 3.0.
1189 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1190 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1191 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1192 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1198 if test -n "$ac_prev"; then
1199 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1200 { echo "$as_me: error: missing argument to $ac_option" >&2
1201 { (exit 1); exit 1; }; }
1204 # Be sure to have absolute directory names.
1205 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1206 datadir sysconfdir sharedstatedir localstatedir includedir \
1207 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1208 libdir localedir mandir
1210 eval ac_val
=\$
$ac_var
1212 [\\/$
]* | ?
:[\\/]* ) continue;;
1213 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1215 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1216 { (exit 1); exit 1; }; }
1219 # There might be people who depend on the old broken behavior: `$host'
1220 # used to hold the argument of --host etc.
1221 # FIXME: To remove some day.
1224 target
=$target_alias
1226 # FIXME: To remove some day.
1227 if test "x$host_alias" != x
; then
1228 if test "x$build_alias" = x
; then
1229 cross_compiling
=maybe
1230 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1231 If a cross compiler is detected then cross compile mode will be used." >&2
1232 elif test "x$build_alias" != "x$host_alias"; then
1238 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1240 test "$silent" = yes && exec 6>/dev
/null
1243 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1244 ac_ls_di
=`ls -di .` &&
1245 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1246 { echo "$as_me: error: Working directory cannot be determined" >&2
1247 { (exit 1); exit 1; }; }
1248 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1249 { echo "$as_me: error: pwd does not report name of working directory" >&2
1250 { (exit 1); exit 1; }; }
1253 # Find the source files, if location was not specified.
1254 if test -z "$srcdir"; then
1255 ac_srcdir_defaulted
=yes
1256 # Try the directory containing this script, then the parent directory.
1257 ac_confdir
=`$as_dirname -- "$0" ||
1258 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1259 X"$0" : 'X\(//\)[^/]' \| \
1260 X"$0" : 'X\(//\)$' \| \
1261 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1285 ac_srcdir_defaulted
=no
1287 if test ! -r "$srcdir/$ac_unique_file"; then
1288 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1289 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1290 { (exit 1); exit 1; }; }
1292 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1295 { (exit 1); exit 1; }; }
1297 # When building in place, set srcdir=.
1298 if test "$ac_abs_confdir" = "$ac_pwd"; then
1301 # Remove unnecessary trailing slashes from srcdir.
1302 # Double slashes in file names in object file debugging info
1303 # mess up M-x gdb in Emacs.
1305 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 for ac_var
in $ac_precious_vars; do
1308 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1309 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1310 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1311 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1315 # Report the --help message.
1317 if test "$ac_init_help" = "long"; then
1318 # Omit some internal or obsolete options to make the list less imposing.
1319 # This message is too long to be a string in the A/UX 3.1 sh.
1321 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1323 Usage: $0 [OPTION]... [VAR=VALUE]...
1325 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1326 VAR=VALUE. See below for descriptions of some of the useful variables.
1328 Defaults for the options are specified in brackets.
1331 -h, --help display this help and exit
1332 --help=short display options specific to this package
1333 --help=recursive display the short help of all the included packages
1334 -V, --version display version information and exit
1335 -q, --quiet, --silent do not print \`checking...' messages
1336 --cache-file=FILE cache test results in FILE [disabled]
1337 -C, --config-cache alias for \`--cache-file=config.cache'
1338 -n, --no-create do not create output files
1339 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1341 Installation directories:
1342 --prefix=PREFIX install architecture-independent files in PREFIX
1343 [$ac_default_prefix]
1344 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1347 By default, \`make install' will install all the files in
1348 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1349 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1350 for instance \`--prefix=\$HOME'.
1352 For better control, use the options below.
1354 Fine tuning of the installation directories:
1355 --bindir=DIR user executables [EPREFIX/bin]
1356 --sbindir=DIR system admin executables [EPREFIX/sbin]
1357 --libexecdir=DIR program executables [EPREFIX/libexec]
1358 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1359 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1360 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1361 --libdir=DIR object code libraries [EPREFIX/lib]
1362 --includedir=DIR C header files [PREFIX/include]
1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
1379 --build=BUILD configure
for building on BUILD
[guessed
]
1380 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1381 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1385 if test -n "$ac_init_help"; then
1386 case $ac_init_help in
1387 short | recursive
) echo "Configuration of llvm 2.9svn:";;
1392 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1393 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1394 --enable-optimized Compile with optimizations enabled
(default is NO
)
1395 --enable-profiling Compile with profiling enabled
(default is NO
)
1396 --enable-assertions Compile with assertion checks enabled
(default is
1398 --enable-expensive-checks
1399 Compile with expensive debug checks enabled
(default
1401 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1403 --enable-debug-symbols Build compiler with debug symbols
(default is NO
if
1404 optimization is on and YES
if it
's off)
1405 --enable-jit Enable Just In Time Compiling (default is YES)
1406 --enable-doxygen Build doxygen documentation (default is NO)
1407 --enable-threads Use threads if available (default is YES)
1408 --enable-pic Build LLVM with Position Independent Code (default
1410 --enable-shared Build a shared library and link tools against it
1412 --enable-timestamps Enable embedding timestamp information in build
1414 --enable-targets Build specific host targets: all or
1415 target1,target2,... Valid targets are: host, x86,
1416 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1417 pic16, xcore, msp430, systemz, blackfin, cbe, and
1419 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1421 --enable-bindings Build specific language bindings:
1422 all,auto,none,{binding-name} (default=auto)
1423 --enable-libffi Check for the presence of libffi (default is NO)
1424 --enable-ltdl-install install libltdl
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 --with-optimize-option Select the compiler options to use for optimized
1441 --with-extra-options Specify additional options to compile LLVM with
1442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 --with-c-include-dirs Colon separated list of directories clang will
1446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
1452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
1454 --with-tclinclude directory where tcl headers are
1455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to
help
1473 it to
find libraries and programs with nonstandard names
/locations.
1475 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1483 test -d "$ac_dir" ||
continue
1487 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1489 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1494 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir
=$ac_pwd
1498 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir
=$ac_top_build_prefix
1503 .
) # We are building in place.
1505 ac_top_srcdir
=$ac_top_builddir_sub
1506 ac_abs_top_srcdir
=$ac_pwd ;;
1507 [\\/]* | ?
:[\\/]* ) # Absolute name.
1508 ac_srcdir
=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir
=$srcdir
1510 ac_abs_top_srcdir
=$srcdir ;;
1512 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 llvm configure
2.9svn
1537 generated by GNU Autoconf
2.60
1539 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1541 This configure
script is free software
; the Free Software Foundation
1542 gives unlimited permission to copy
, distribute and modify it.
1544 Copyright
(c
) 2003-2010 University of Illinois
at Urbana-Champaign.
1548 cat >config.log
<<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 2.9svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir
=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next
=false
1619 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1620 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1621 |
-silent |
--silent |
--silen |
--sile |
--sil)
1624 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true
; then
1631 ac_must_keep_next
=false
# Got value, back to normal.
1634 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1635 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1636 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1637 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next
=true
;;
1645 ac_configure_args
="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1651 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var
in $ac_subst_files
1725 eval ac_val
=\$
$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal
in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest
* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h
<<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h
<<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h
<<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h
<<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h
<<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x
"$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE
; then
1792 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x
"$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1816 *) .
"./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted
=false
1828 for ac_var
in $ac_precious_vars; do
1829 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1830 eval ac_new_set
=\
$ac_env_${ac_var}_set
1831 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1832 eval ac_new_val
=\
$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted
=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted
=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted
=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg
=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp
='$CPP $CPPFLAGS'
1900 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT
="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1915 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh
="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh
="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh
="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1956 if test -d ${srcdir}/projects
/llvm-gcc
; then
1957 subdirs
="$subdirs projects/llvm-gcc"
1961 if test -d ${srcdir}/projects
/test-suite
; then
1962 subdirs
="$subdirs projects/test-suite"
1966 if test -d ${srcdir}/projects
/llvm-test
; then
1967 subdirs
="$subdirs projects/llvm-test"
1971 if test -d ${srcdir}/projects
/poolalloc
; then
1972 subdirs
="$subdirs projects/poolalloc"
1976 if test -d ${srcdir}/projects
/llvm-poolalloc
; then
1977 subdirs
="$subdirs projects/llvm-poolalloc"
1981 for i
in `ls ${srcdir}/projects`
1983 if test -d ${srcdir}/projects
/${i} ; then
1985 sample
) subdirs
="$subdirs projects/sample"
1987 privbracket
) subdirs
="$subdirs projects/privbracket"
1989 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
1991 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
1993 llvm-java
) subdirs
="$subdirs projects/llvm-java"
1995 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
1997 safecode
) subdirs
="$subdirs projects/safecode"
1999 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2007 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2008 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2015 # Make sure we can run config.sub.
2016 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2017 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2018 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2019 { (exit 1); exit 1; }; }
2021 { echo "$as_me:$LINENO: checking build system type" >&5
2022 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2023 if test "${ac_cv_build+set}" = set; then
2024 echo $ECHO_N "(cached) $ECHO_C" >&6
2026 ac_build_alias
=$build_alias
2027 test "x$ac_build_alias" = x
&&
2028 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2029 test "x$ac_build_alias" = x
&&
2030 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2031 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2032 { (exit 1); exit 1; }; }
2033 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2034 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2035 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2036 { (exit 1); exit 1; }; }
2039 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2040 echo "${ECHO_T}$ac_cv_build" >&6; }
2041 case $ac_cv_build in
2043 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2044 echo "$as_me: error: invalid value of canonical build" >&2;}
2045 { (exit 1); exit 1; }; };;
2048 ac_save_IFS
=$IFS; IFS
='-'
2054 # Remember, the first character of IFS is used to create $*,
2055 # except with old shells:
2058 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2061 { echo "$as_me:$LINENO: checking host system type" >&5
2062 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2063 if test "${ac_cv_host+set}" = set; then
2064 echo $ECHO_N "(cached) $ECHO_C" >&6
2066 if test "x$host_alias" = x
; then
2067 ac_cv_host
=$ac_cv_build
2069 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2070 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2071 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2072 { (exit 1); exit 1; }; }
2076 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2077 echo "${ECHO_T}$ac_cv_host" >&6; }
2080 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2081 echo "$as_me: error: invalid value of canonical host" >&2;}
2082 { (exit 1); exit 1; }; };;
2085 ac_save_IFS
=$IFS; IFS
='-'
2091 # Remember, the first character of IFS is used to create $*,
2092 # except with old shells:
2095 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2098 { echo "$as_me:$LINENO: checking target system type" >&5
2099 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2100 if test "${ac_cv_target+set}" = set; then
2101 echo $ECHO_N "(cached) $ECHO_C" >&6
2103 if test "x$target_alias" = x
; then
2104 ac_cv_target
=$ac_cv_host
2106 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2107 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2108 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2109 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2114 echo "${ECHO_T}$ac_cv_target" >&6; }
2115 case $ac_cv_target in
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2118 echo "$as_me: error: invalid value of canonical target" >&2;}
2119 { (exit 1); exit 1; }; };;
2121 target
=$ac_cv_target
2122 ac_save_IFS
=$IFS; IFS
='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2135 # The aliases save the names the user supplied, while $host etc.
2136 # will get canonicalized.
2137 test -n "$target_alias" &&
2138 test "$program_prefix$program_suffix$program_transform_name" = \
2140 program_prefix
=${target_alias}-
2142 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2143 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2144 if test "${llvm_cv_os_type+set}" = set; then
2145 echo $ECHO_N "(cached) $ECHO_C" >&6
2149 llvm_cv_link_all_option
="-Wl,--whole-archive"
2150 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2151 llvm_cv_os_type
="AIX"
2152 llvm_cv_platform_type
="Unix" ;;
2154 llvm_cv_link_all_option
="-Wl,--whole-archive"
2155 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2156 llvm_cv_os_type
="IRIX"
2157 llvm_cv_platform_type
="Unix" ;;
2159 llvm_cv_link_all_option
="-Wl,--whole-archive"
2160 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2161 llvm_cv_os_type
="Cygwin"
2162 llvm_cv_platform_type
="Unix" ;;
2164 llvm_cv_link_all_option
="-Wl,-all_load"
2165 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2166 llvm_cv_os_type
="Darwin"
2167 llvm_cv_platform_type
="Unix" ;;
2169 llvm_cv_link_all_option
="-Wl,-all_load"
2170 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2171 llvm_cv_os_type
="Minix"
2172 llvm_cv_platform_type
="Unix" ;;
2174 llvm_cv_link_all_option
="-Wl,--whole-archive"
2175 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2176 llvm_cv_os_type
="FreeBSD"
2177 llvm_cv_platform_type
="Unix" ;;
2179 llvm_cv_link_all_option
="-Wl,--whole-archive"
2180 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2181 llvm_cv_os_type
="OpenBSD"
2182 llvm_cv_platform_type
="Unix" ;;
2184 llvm_cv_link_all_option
="-Wl,--whole-archive"
2185 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2186 llvm_cv_os_type
="NetBSD"
2187 llvm_cv_platform_type
="Unix" ;;
2189 llvm_cv_link_all_option
="-Wl,--whole-archive"
2190 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2191 llvm_cv_os_type
="DragonFly"
2192 llvm_cv_platform_type
="Unix" ;;
2194 llvm_cv_link_all_option
="-Wl,--whole-archive"
2195 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2196 llvm_cv_os_type
="HP-UX"
2197 llvm_cv_platform_type
="Unix" ;;
2199 llvm_cv_link_all_option
="-Wl,--whole-archive"
2200 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2201 llvm_cv_os_type
="Interix"
2202 llvm_cv_platform_type
="Unix" ;;
2204 llvm_cv_link_all_option
="-Wl,--whole-archive"
2205 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2206 llvm_cv_os_type
="Linux"
2207 llvm_cv_platform_type
="Unix" ;;
2209 llvm_cv_link_all_option
="-Wl,-z,allextract"
2210 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2211 llvm_cv_os_type
="SunOS"
2212 llvm_cv_platform_type
="Unix" ;;
2214 llvm_cv_link_all_option
="-Wl,-z,allextract"
2215 llvm_cv_link_all_option
="-Wl,-z,defaultextract"
2216 llvm_cv_os_type
="AuroraUX"
2217 llvm_cv_platform_type
="Unix" ;;
2219 llvm_cv_link_all_option
="-Wl,--whole-archive"
2220 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2221 llvm_cv_os_type
="Win32"
2222 llvm_cv_platform_type
="Win32" ;;
2224 llvm_cv_link_all_option
="-Wl,--whole-archive"
2225 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2226 llvm_cv_os_type
="MingW"
2227 llvm_cv_platform_type
="Win32" ;;
2229 llvm_cv_link_all_option
="-Wl,--whole-archive"
2230 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2231 llvm_cv_os_type
="Haiku"
2232 llvm_cv_platform_type
="Unix" ;;
2234 llvm_cv_link_all_option
="-Wl,--whole-archive"
2235 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2236 llvm_cv_os_type
="Freestanding"
2237 llvm_cv_platform_type
="Unix" ;;
2239 llvm_cv_link_all_option
="-Wl,--whole-archive"
2240 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2241 llvm_cv_os_type
="Freestanding"
2242 llvm_cv_platform_type
="Unix" ;;
2244 llvm_cv_link_all_option
=""
2245 llvm_cv_no_link_all_option
=""
2246 llvm_cv_os_type
="Unknown"
2247 llvm_cv_platform_type
="Unknown" ;;
2250 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2251 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2253 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2254 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2255 if test "${llvm_cv_target_os_type+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2260 llvm_cv_target_os_type
="AIX" ;;
2262 llvm_cv_target_os_type
="IRIX" ;;
2264 llvm_cv_target_os_type
="Cygwin" ;;
2266 llvm_cv_target_os_type
="Darwin" ;;
2268 llvm_cv_target_os_type
="Minix" ;;
2270 llvm_cv_target_os_type
="FreeBSD" ;;
2272 llvm_cv_target_os_type
="OpenBSD" ;;
2274 llvm_cv_target_os_type
="NetBSD" ;;
2276 llvm_cv_target_os_type
="DragonFly" ;;
2278 llvm_cv_target_os_type
="HP-UX" ;;
2280 llvm_cv_target_os_type
="Interix" ;;
2282 llvm_cv_target_os_type
="Linux" ;;
2284 llvm_cv_target_os_type
="SunOS" ;;
2286 llvm_cv_target_os_type
="AuroraUX" ;;
2288 llvm_cv_target_os_type
="Win32" ;;
2290 llvm_cv_target_os_type
="MingW" ;;
2292 llvm_cv_target_os_type
="Haiku" ;;
2294 llvm_cv_target_os_type
="Freestanding" ;;
2296 llvm_cv_target_os_type
="Unknown" ;;
2299 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2300 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2302 if test "$llvm_cv_os_type" = "Unknown" ; then
2303 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2304 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2305 { (exit 1); exit 1; }; }
2310 HOST_OS
=$llvm_cv_os_type
2312 TARGET_OS
=$llvm_cv_target_os_type
2315 LINKALL
=$llvm_cv_link_all_option
2317 NOLINKALL
=$llvm_cv_no_link_all_option
2320 case $llvm_cv_platform_type in
2323 cat >>confdefs.h
<<\_ACEOF
2324 #define LLVM_ON_UNIX 1
2334 cat >>confdefs.h
<<\_ACEOF
2335 #define LLVM_ON_WIN32 1
2345 { echo "$as_me:$LINENO: checking target architecture" >&5
2346 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2347 if test "${llvm_cv_target_arch+set}" = set; then
2348 echo $ECHO_N "(cached) $ECHO_C" >&6
2351 i?
86-*) llvm_cv_target_arch
="x86" ;;
2352 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2353 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2354 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2355 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2356 arm
*-*) llvm_cv_target_arch
="ARM" ;;
2357 mips-
*) llvm_cv_target_arch
="Mips" ;;
2358 pic16-
*) llvm_cv_target_arch
="PIC16" ;;
2359 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2360 msp430-
*) llvm_cv_target_arch
="MSP430" ;;
2361 s390x-
*) llvm_cv_target_arch
="SystemZ" ;;
2362 bfin-
*) llvm_cv_target_arch
="Blackfin" ;;
2363 mblaze-
*) llvm_cv_target_arch
="MBlaze" ;;
2364 *) llvm_cv_target_arch
="Unknown" ;;
2367 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2368 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2370 if test "$llvm_cv_target_arch" = "Unknown" ; then
2371 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2372 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2375 # Determine the LLVM native architecture for the target
2376 case "$llvm_cv_target_arch" in
2377 x86
) LLVM_NATIVE_ARCH
="X86" ;;
2378 x86_64
) LLVM_NATIVE_ARCH
="X86" ;;
2379 *) LLVM_NATIVE_ARCH
="$llvm_cv_target_arch" ;;
2382 ARCH
=$llvm_cv_target_arch
2386 ac_cpp
='$CPP $CPPFLAGS'
2387 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2390 if test -n "$ac_tool_prefix"; then
2391 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2392 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2393 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2394 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2395 if test "${ac_cv_prog_CC+set}" = set; then
2396 echo $ECHO_N "(cached) $ECHO_C" >&6
2398 if test -n "$CC"; then
2399 ac_cv_prog_CC
="$CC" # Let the user override the test.
2401 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2405 test -z "$as_dir" && as_dir
=.
2406 for ac_exec_ext
in '' $ac_executable_extensions; do
2407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2408 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2419 if test -n "$CC"; then
2420 { echo "$as_me:$LINENO: result: $CC" >&5
2421 echo "${ECHO_T}$CC" >&6; }
2423 { echo "$as_me:$LINENO: result: no" >&5
2424 echo "${ECHO_T}no" >&6; }
2429 if test -z "$ac_cv_prog_CC"; then
2431 # Extract the first word of "gcc", so it can be a program name with args.
2432 set dummy gcc
; ac_word
=$2
2433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2435 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2436 echo $ECHO_N "(cached) $ECHO_C" >&6
2438 if test -n "$ac_ct_CC"; then
2439 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2445 test -z "$as_dir" && as_dir
=.
2446 for ac_exec_ext
in '' $ac_executable_extensions; do
2447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2448 ac_cv_prog_ac_ct_CC
="gcc"
2449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2459 if test -n "$ac_ct_CC"; then
2460 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2461 echo "${ECHO_T}$ac_ct_CC" >&6; }
2463 { echo "$as_me:$LINENO: result: no" >&5
2464 echo "${ECHO_T}no" >&6; }
2467 if test "x$ac_ct_CC" = x
; then
2470 case $cross_compiling:$ac_tool_warned in
2472 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2473 whose name does not start with the host triplet. If you think this
2474 configuration is useful to you, please write to autoconf@gnu.org." >&5
2475 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2476 whose name does not start with the host triplet. If you think this
2477 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2478 ac_tool_warned
=yes ;;
2486 if test -z "$CC"; then
2487 if test -n "$ac_tool_prefix"; then
2488 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2489 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2492 if test "${ac_cv_prog_CC+set}" = set; then
2493 echo $ECHO_N "(cached) $ECHO_C" >&6
2495 if test -n "$CC"; then
2496 ac_cv_prog_CC
="$CC" # Let the user override the test.
2498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2502 test -z "$as_dir" && as_dir
=.
2503 for ac_exec_ext
in '' $ac_executable_extensions; do
2504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2505 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2516 if test -n "$CC"; then
2517 { echo "$as_me:$LINENO: result: $CC" >&5
2518 echo "${ECHO_T}$CC" >&6; }
2520 { echo "$as_me:$LINENO: result: no" >&5
2521 echo "${ECHO_T}no" >&6; }
2527 if test -z "$CC"; then
2528 # Extract the first word of "cc", so it can be a program name with args.
2529 set dummy cc
; ac_word
=$2
2530 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2531 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2532 if test "${ac_cv_prog_CC+set}" = set; then
2533 echo $ECHO_N "(cached) $ECHO_C" >&6
2535 if test -n "$CC"; then
2536 ac_cv_prog_CC
="$CC" # Let the user override the test.
2539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir
=.
2544 for ac_exec_ext
in '' $ac_executable_extensions; do
2545 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2546 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2547 ac_prog_rejected
=yes
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2558 if test $ac_prog_rejected = yes; then
2559 # We found a bogon in the path, so make sure we never use it.
2560 set dummy
$ac_cv_prog_CC
2562 if test $# != 0; then
2563 # We chose a different compiler from the bogus one.
2564 # However, it has the same basename, so the bogon will be chosen
2565 # first if we set CC to just the basename; use the full file name.
2567 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2573 if test -n "$CC"; then
2574 { echo "$as_me:$LINENO: result: $CC" >&5
2575 echo "${ECHO_T}$CC" >&6; }
2577 { echo "$as_me:$LINENO: result: no" >&5
2578 echo "${ECHO_T}no" >&6; }
2583 if test -z "$CC"; then
2584 if test -n "$ac_tool_prefix"; then
2585 for ac_prog
in cl.exe
2587 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2588 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2591 if test "${ac_cv_prog_CC+set}" = set; then
2592 echo $ECHO_N "(cached) $ECHO_C" >&6
2594 if test -n "$CC"; then
2595 ac_cv_prog_CC
="$CC" # Let the user override the test.
2597 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2601 test -z "$as_dir" && as_dir
=.
2602 for ac_exec_ext
in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2615 if test -n "$CC"; then
2616 { echo "$as_me:$LINENO: result: $CC" >&5
2617 echo "${ECHO_T}$CC" >&6; }
2619 { echo "$as_me:$LINENO: result: no" >&5
2620 echo "${ECHO_T}no" >&6; }
2624 test -n "$CC" && break
2627 if test -z "$CC"; then
2629 for ac_prog
in cl.exe
2631 # Extract the first word of "$ac_prog", so it can be a program name with args.
2632 set dummy
$ac_prog; ac_word
=$2
2633 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2634 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2635 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2636 echo $ECHO_N "(cached) $ECHO_C" >&6
2638 if test -n "$ac_ct_CC"; then
2639 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2645 test -z "$as_dir" && as_dir
=.
2646 for ac_exec_ext
in '' $ac_executable_extensions; do
2647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2648 ac_cv_prog_ac_ct_CC
="$ac_prog"
2649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2658 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2659 if test -n "$ac_ct_CC"; then
2660 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2661 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 { echo "$as_me:$LINENO: result: no" >&5
2664 echo "${ECHO_T}no" >&6; }
2668 test -n "$ac_ct_CC" && break
2671 if test "x$ac_ct_CC" = x
; then
2674 case $cross_compiling:$ac_tool_warned in
2676 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2677 whose name does not start with the host triplet. If you think this
2678 configuration is useful to you, please write to autoconf@gnu.org." >&5
2679 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2680 whose name does not start with the host triplet. If you think this
2681 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2682 ac_tool_warned
=yes ;;
2691 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2692 See \`config.log' for more details." >&5
2693 echo "$as_me: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&2;}
2695 { (exit 1); exit 1; }; }
2697 # Provide some information about the compiler.
2698 echo "$as_me:$LINENO: checking for C compiler version" >&5
2699 ac_compiler
=`set X $ac_compile; echo $2`
2700 { (ac_try
="$ac_compiler --version >&5"
2702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2703 *) ac_try_echo=$ac_try;;
2705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2706 (eval "$ac_compiler --version >&5") 2>&5
2708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2709 (exit $ac_status); }
2710 { (ac_try="$ac_compiler -v >&5"
2712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2713 *) ac_try_echo
=$ac_try;;
2715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2716 (eval "$ac_compiler -v >&5") 2>&5
2718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2719 (exit $ac_status); }
2720 { (ac_try
="$ac_compiler -V >&5"
2722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2723 *) ac_try_echo=$ac_try;;
2725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2726 (eval "$ac_compiler -V >&5") 2>&5
2728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2729 (exit $ac_status); }
2731 cat >conftest.$ac_ext <<_ACEOF
2734 cat confdefs.h >>conftest.$ac_ext
2735 cat >>conftest.$ac_ext <<_ACEOF
2736 /* end confdefs.h. */
2746 ac_clean_files_save=$ac_clean_files
2747 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2748 # Try to create an executable without -o first, disregard a.out.
2749 # It will help us diagnose broken compilers, and finding out an intuition
2751 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2752 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2753 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2755 # List of possible output files, starting from the most likely.
2756 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2757 # only as a last resort. b.out is created by i960 compilers.
2758 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2760 # The IRIX 6 linker writes into existing files which may not be
2761 # executable, retaining their permissions. Remove them first so a
2762 # subsequent execution test works.
2764 for ac_file in $ac_files
2767 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2768 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773 if { (ac_try="$ac_link_default"
2775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2776 *) ac_try_echo=$ac_try;;
2778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2779 (eval "$ac_link_default") 2>&5
2781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2782 (exit $ac_status); }; then
2783 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2784 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2785 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2786 # so that the user can short-circuit this test for compilers unknown to
2788 for ac_file
in $ac_files
2790 test -f "$ac_file" ||
continue
2792 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2795 # We found the default executable, but exeext='' is most
2799 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2801 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803 # We set ac_cv_exeext here because the later test for it is not
2804 # safe: cross compilers may not add the suffix if given an `-o'
2805 # argument, so we may need to know it at that point already.
2806 # Even if this section looks crufty: it has the advantage of
2813 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2816 echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.
$ac_ext >&5
2819 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&2;}
2823 { (exit 77); exit 77; }; }
2826 ac_exeext
=$ac_cv_exeext
2827 { echo "$as_me:$LINENO: result: $ac_file" >&5
2828 echo "${ECHO_T}$ac_file" >&6; }
2830 # Check that the compiler produces executables we can run. If not, either
2831 # the compiler is broken, or we cross compile.
2832 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2833 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2834 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2835 # If not cross compiling, check that we can run a simple program.
2836 if test "$cross_compiling" != yes; then
2837 if { ac_try
='./$ac_file'
2838 { (case "(($ac_try" in
2839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2840 *) ac_try_echo=$ac_try;;
2842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2843 (eval "$ac_try") 2>&5
2845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2846 (exit $ac_status); }; }; then
2849 if test "$cross_compiling" = maybe; then
2852 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2853 If you meant to cross compile, use \`--host'.
2854 See \`config.log' for more details.
" >&5
2855 echo "$as_me: error
: cannot run C compiled programs.
2856 If you meant to cross compile
, use \
`--host'.
2857 See \`config.log
' for more details." >&2;}
2858 { (exit 1); exit 1; }; }
2862 { echo "$as_me:$LINENO: result: yes" >&5
2863 echo "${ECHO_T}yes" >&6; }
2865 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2866 ac_clean_files=$ac_clean_files_save
2867 # Check that the compiler produces executables we can run. If not, either
2868 # the compiler is broken, or we cross compile.
2869 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2870 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2871 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2872 echo "${ECHO_T}$cross_compiling" >&6; }
2874 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2875 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2876 if { (ac_try="$ac_link"
2878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2879 *) ac_try_echo=$ac_try;;
2881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2882 (eval "$ac_link") 2>&5
2884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2885 (exit $ac_status); }; then
2886 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2887 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2888 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2890 for ac_file
in conftest.exe conftest conftest.
*; do
2891 test -f "$ac_file" ||
continue
2893 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2894 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2900 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2901 See \`config.log' for more details." >&5
2902 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&2;}
2904 { (exit 1); exit 1; }; }
2907 rm -f conftest
$ac_cv_exeext
2908 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2909 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2911 rm -f conftest.
$ac_ext
2912 EXEEXT
=$ac_cv_exeext
2914 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2915 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2916 if test "${ac_cv_objext+set}" = set; then
2917 echo $ECHO_N "(cached) $ECHO_C" >&6
2919 cat >conftest.
$ac_ext <<_ACEOF
2922 cat confdefs.h
>>conftest.
$ac_ext
2923 cat >>conftest.
$ac_ext <<_ACEOF
2924 /* end confdefs.h. */
2934 rm -f conftest.o conftest.obj
2935 if { (ac_try
="$ac_compile"
2937 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2938 *) ac_try_echo=$ac_try;;
2940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2941 (eval "$ac_compile") 2>&5
2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2944 (exit $ac_status); }; then
2945 for ac_file in conftest.o conftest.obj conftest.*; do
2946 test -f "$ac_file" || continue;
2948 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2949 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2954 echo "$as_me: failed program was:" >&5
2955 sed 's/^/| /' conftest.$ac_ext >&5
2957 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2958 See \`config.log
' for more details." >&5
2959 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log' for more details.
" >&2;}
2961 { (exit 1); exit 1; }; }
2964 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2967 echo "${ECHO_T}$ac_cv_objext" >&6; }
2968 OBJEXT=$ac_cv_objext
2970 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2971 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2972 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2973 echo $ECHO_N "(cached
) $ECHO_C" >&6
2975 cat >conftest.$ac_ext <<_ACEOF
2978 cat confdefs.h >>conftest.$ac_ext
2979 cat >>conftest.$ac_ext <<_ACEOF
2980 /* end confdefs.h. */
2993 rm -f conftest.$ac_objext
2994 if { (ac_try="$ac_compile"
2996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2997 *) ac_try_echo=$ac_try;;
2999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3000 (eval "$ac_compile") 2>conftest.er1
3002 grep -v '^ *+' conftest.er1 >conftest.err
3004 cat conftest.err >&5
3005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3006 (exit $ac_status); } &&
3007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3008 { (case "(($ac_try" in
3009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3010 *) ac_try_echo=$ac_try;;
3012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3013 (eval "$ac_try") 2>&5
3015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3016 (exit $ac_status); }; } &&
3017 { ac_try='test -s conftest.$ac_objext'
3018 { (case "(($ac_try" in
3019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3020 *) ac_try_echo=$ac_try;;
3022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3023 (eval "$ac_try") 2>&5
3025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3026 (exit $ac_status); }; }; then
3029 echo "$as_me: failed program was
:" >&5
3030 sed 's/^/| /' conftest.$ac_ext >&5
3035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3036 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3039 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3040 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3041 GCC=`test $ac_compiler_gnu = yes && echo yes`
3042 ac_test_CFLAGS=${CFLAGS+set}
3043 ac_save_CFLAGS=$CFLAGS
3044 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3045 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3046 if test "${ac_cv_prog_cc_g+set}" = set; then
3047 echo $ECHO_N "(cached
) $ECHO_C" >&6
3049 ac_save_c_werror_flag=$ac_c_werror_flag
3050 ac_c_werror_flag=yes
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 rm -f conftest.$ac_objext
3069 if { (ac_try="$ac_compile"
3071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3072 *) ac_try_echo=$ac_try;;
3074 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3075 (eval "$ac_compile") 2>conftest.er1
3077 grep -v '^ *+' conftest.er1 >conftest.err
3079 cat conftest.err >&5
3080 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3081 (exit $ac_status); } &&
3082 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3083 { (case "(($ac_try" in
3084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3085 *) ac_try_echo=$ac_try;;
3087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3088 (eval "$ac_try") 2>&5
3090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3091 (exit $ac_status); }; } &&
3092 { ac_try='test -s conftest.$ac_objext'
3093 { (case "(($ac_try" in
3094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3095 *) ac_try_echo=$ac_try;;
3097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3098 (eval "$ac_try") 2>&5
3100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3101 (exit $ac_status); }; }; then
3104 echo "$as_me: failed program was
:" >&5
3105 sed 's/^/| /' conftest.$ac_ext >&5
3108 cat >conftest.$ac_ext <<_ACEOF
3111 cat confdefs.h >>conftest.$ac_ext
3112 cat >>conftest.$ac_ext <<_ACEOF
3113 /* end confdefs.h. */
3123 rm -f conftest.$ac_objext
3124 if { (ac_try="$ac_compile"
3126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3127 *) ac_try_echo=$ac_try;;
3129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3130 (eval "$ac_compile") 2>conftest.er1
3132 grep -v '^ *+' conftest.er1 >conftest.err
3134 cat conftest.err >&5
3135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3136 (exit $ac_status); } &&
3137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3138 { (case "(($ac_try" in
3139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3140 *) ac_try_echo=$ac_try;;
3142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3143 (eval "$ac_try") 2>&5
3145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3146 (exit $ac_status); }; } &&
3147 { ac_try='test -s conftest.$ac_objext'
3148 { (case "(($ac_try" in
3149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3150 *) ac_try_echo=$ac_try;;
3152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3153 (eval "$ac_try") 2>&5
3155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3156 (exit $ac_status); }; }; then
3159 echo "$as_me: failed program was
:" >&5
3160 sed 's/^/| /' conftest.$ac_ext >&5
3162 ac_c_werror_flag=$ac_save_c_werror_flag
3164 cat >conftest.$ac_ext <<_ACEOF
3167 cat confdefs.h >>conftest.$ac_ext
3168 cat >>conftest.$ac_ext <<_ACEOF
3169 /* end confdefs.h. */
3179 rm -f conftest.$ac_objext
3180 if { (ac_try="$ac_compile"
3182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3183 *) ac_try_echo=$ac_try;;
3185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3186 (eval "$ac_compile") 2>conftest.er1
3188 grep -v '^ *+' conftest.er1 >conftest.err
3190 cat conftest.err >&5
3191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3192 (exit $ac_status); } &&
3193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3194 { (case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_try") 2>&5
3201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3202 (exit $ac_status); }; } &&
3203 { ac_try='test -s conftest.$ac_objext'
3204 { (case "(($ac_try" in
3205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3206 *) ac_try_echo=$ac_try;;
3208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3209 (eval "$ac_try") 2>&5
3211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3212 (exit $ac_status); }; }; then
3215 echo "$as_me: failed program was
:" >&5
3216 sed 's/^/| /' conftest.$ac_ext >&5
3221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 ac_c_werror_flag=$ac_save_c_werror_flag
3230 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3231 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3232 if test "$ac_test_CFLAGS" = set; then
3233 CFLAGS=$ac_save_CFLAGS
3234 elif test $ac_cv_prog_cc_g = yes; then
3235 if test "$GCC" = yes; then
3241 if test "$GCC" = yes; then
3247 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3248 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3249 if test "${ac_cv_prog_cc_c89+set}" = set; then
3250 echo $ECHO_N "(cached
) $ECHO_C" >&6
3252 ac_cv_prog_cc_c89=no
3254 cat >conftest.$ac_ext <<_ACEOF
3257 cat confdefs.h >>conftest.$ac_ext
3258 cat >>conftest.$ac_ext <<_ACEOF
3259 /* end confdefs.h. */
3262 #include <sys/types.h>
3263 #include <sys/stat.h>
3264 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3265 struct buf { int x; };
3266 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3267 static char *e (p, i)
3273 static char *f (char * (*g) (char **, int), char **p, ...)
3278 s = g (p, va_arg (v,int));
3283 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3284 function prototypes and stuff, but not '\xHH' hex character constants.
3285 These don't provoke an error unfortunately, instead are silently treated
3286 as 'x'. The following induces an error, until -std is added to get
3287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3288 array size at least. It's necessary to write '\x00'==0 to get something
3289 that's true only with -std. */
3290 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3293 inside strings and character constants. */
3295 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297 int test (int i, double x);
3298 struct s1 {int (*f) (int a);};
3299 struct s2 {int (*f) (double a);};
3300 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3306 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3311 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314 CC="$ac_save_CC $ac_arg"
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3328 (exit $ac_status); } &&
3329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3330 { (case "(($ac_try" in
3331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3332 *) ac_try_echo=$ac_try;;
3334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3335 (eval "$ac_try") 2>&5
3337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3338 (exit $ac_status); }; } &&
3339 { ac_try='test -s conftest.$ac_objext'
3340 { (case "(($ac_try" in
3341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3342 *) ac_try_echo=$ac_try;;
3344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3345 (eval "$ac_try") 2>&5
3347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3348 (exit $ac_status); }; }; then
3349 ac_cv_prog_cc_c89=$ac_arg
3351 echo "$as_me: failed program was
:" >&5
3352 sed 's/^/| /' conftest.$ac_ext >&5
3357 rm -f core conftest.err conftest.$ac_objext
3358 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3360 rm -f conftest.$ac_ext
3365 case "x
$ac_cv_prog_cc_c89" in
3367 { echo "$as_me:$LINENO: result
: none needed
" >&5
3368 echo "${ECHO_T}none needed
" >&6; } ;;
3370 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3371 echo "${ECHO_T}unsupported
" >&6; } ;;
3373 CC="$CC $ac_cv_prog_cc_c89"
3374 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3375 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3380 ac_cpp='$CPP $CPPFLAGS'
3381 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3382 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3383 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3387 ac_cpp='$CPP $CPPFLAGS'
3388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3392 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3393 # On Suns, sometimes $CPP names a directory.
3394 if test -n "$CPP" && test -d "$CPP"; then
3397 if test -z "$CPP"; then
3398 if test "${ac_cv_prog_CPP+set}" = set; then
3399 echo $ECHO_N "(cached
) $ECHO_C" >&6
3401 # Double quotes because CPP needs to be expanded
3402 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3405 for ac_c_preproc_warn_flag in '' yes
3407 # Use a header file that comes with gcc, so configuring glibc
3408 # with a fresh cross-compiler works.
3409 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3410 # <limits.h> exists even on freestanding compilers.
3411 # On the NeXT, cc -E runs the code through the compiler's parser,
3412 # not just through cpp. "Syntax error
" is here to catch this case.
3413 cat >conftest.$ac_ext <<_ACEOF
3416 cat confdefs.h >>conftest.$ac_ext
3417 cat >>conftest.$ac_ext <<_ACEOF
3418 /* end confdefs.h. */
3420 # include <limits.h>
3422 # include <assert.h>
3426 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3438 (exit $ac_status); } >/dev/null; then
3439 if test -s conftest.err; then
3440 ac_cpp_err=$ac_c_preproc_warn_flag
3441 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3448 if test -z "$ac_cpp_err"; then
3451 echo "$as_me: failed program was
:" >&5
3452 sed 's/^/| /' conftest.$ac_ext >&5
3454 # Broken: fails on valid input.
3458 rm -f conftest.err conftest.$ac_ext
3460 # OK, works on sane cases. Now check whether nonexistent headers
3461 # can be detected and how.
3462 cat >conftest.$ac_ext <<_ACEOF
3465 cat confdefs.h >>conftest.$ac_ext
3466 cat >>conftest.$ac_ext <<_ACEOF
3467 /* end confdefs.h. */
3468 #include <ac_nonexistent.h>
3470 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3473 *) ac_try_echo=$ac_try;;
3475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3476 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3478 grep -v '^ *+' conftest.er1 >conftest.err
3480 cat conftest.err >&5
3481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3482 (exit $ac_status); } >/dev/null; then
3483 if test -s conftest.err; then
3484 ac_cpp_err=$ac_c_preproc_warn_flag
3485 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3492 if test -z "$ac_cpp_err"; then
3493 # Broken: success on invalid input.
3496 echo "$as_me: failed program was
:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Passes both tests.
3504 rm -f conftest.err conftest.$ac_ext
3507 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3508 rm -f conftest.err conftest.$ac_ext
3509 if $ac_preproc_ok; then
3521 { echo "$as_me:$LINENO: result
: $CPP" >&5
3522 echo "${ECHO_T}$CPP" >&6; }
3524 for ac_c_preproc_warn_flag in '' yes
3526 # Use a header file that comes with gcc, so configuring glibc
3527 # with a fresh cross-compiler works.
3528 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3529 # <limits.h> exists even on freestanding compilers.
3530 # On the NeXT, cc -E runs the code through the compiler's parser,
3531 # not just through cpp. "Syntax error
" is here to catch this case.
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3539 # include <limits.h>
3541 # include <assert.h>
3545 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3548 *) ac_try_echo=$ac_try;;
3550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3551 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3553 grep -v '^ *+' conftest.er1 >conftest.err
3555 cat conftest.err >&5
3556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3557 (exit $ac_status); } >/dev/null; then
3558 if test -s conftest.err; then
3559 ac_cpp_err=$ac_c_preproc_warn_flag
3560 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3567 if test -z "$ac_cpp_err"; then
3570 echo "$as_me: failed program was
:" >&5
3571 sed 's/^/| /' conftest.$ac_ext >&5
3573 # Broken: fails on valid input.
3577 rm -f conftest.err conftest.$ac_ext
3579 # OK, works on sane cases. Now check whether nonexistent headers
3580 # can be detected and how.
3581 cat >conftest.$ac_ext <<_ACEOF
3584 cat confdefs.h >>conftest.$ac_ext
3585 cat >>conftest.$ac_ext <<_ACEOF
3586 /* end confdefs.h. */
3587 #include <ac_nonexistent.h>
3589 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3597 grep -v '^ *+' conftest.er1 >conftest.err
3599 cat conftest.err >&5
3600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3601 (exit $ac_status); } >/dev/null; then
3602 if test -s conftest.err; then
3603 ac_cpp_err=$ac_c_preproc_warn_flag
3604 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3611 if test -z "$ac_cpp_err"; then
3612 # Broken: success on invalid input.
3615 echo "$as_me: failed program was
:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 # Passes both tests.
3623 rm -f conftest.err conftest.$ac_ext
3626 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3627 rm -f conftest.err conftest.$ac_ext
3628 if $ac_preproc_ok; then
3631 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3632 See \
`config.log' for more details." >&5
3633 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3634 See \`config.log
' for more details." >&2;}
3635 { (exit 1); exit 1; }; }
3639 ac_cpp='$CPP $CPPFLAGS'
3640 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3641 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3642 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3645 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3646 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3647 if test "${ac_cv_path_GREP+set}" = set; then
3648 echo $ECHO_N "(cached) $ECHO_C" >&6
3650 # Extract the first word of "grep ggrep" to use in msg output
3651 if test -z "$GREP"; then
3652 set dummy grep ggrep; ac_prog_name=$2
3653 if test "${ac_cv_path_GREP+set}" = set; then
3654 echo $ECHO_N "(cached) $ECHO_C" >&6
3656 ac_path_GREP_found=false
3657 # Loop through the user's path and
test for each of PROGNAME-LIST
3658 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3659 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3662 test -z "$as_dir" && as_dir
=.
3663 for ac_prog
in grep ggrep
; do
3664 for ac_exec_ext
in '' $ac_executable_extensions; do
3665 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3666 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3667 # Check for GNU ac_path_GREP and select it if it is found.
3668 # Check for GNU $ac_path_GREP
3669 case `"$ac_path_GREP" --version 2>&1` in
3671 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3674 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3677 cat "conftest.in" "conftest.in" >"conftest.tmp"
3678 mv "conftest.tmp" "conftest.in"
3679 cp "conftest.in" "conftest.nl"
3680 echo 'GREP' >> "conftest.nl"
3681 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3682 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3683 ac_count
=`expr $ac_count + 1`
3684 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3685 # Best one so far, save it but keep looking for a better one
3686 ac_cv_path_GREP
="$ac_path_GREP"
3687 ac_path_GREP_max
=$ac_count
3689 # 10*(2^10) chars as input seems more than enough
3690 test $ac_count -gt 10 && break
3692 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3696 $ac_path_GREP_found && break 3
3706 GREP
="$ac_cv_path_GREP"
3707 if test -z "$GREP"; then
3708 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3709 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3710 { (exit 1); exit 1; }; }
3714 ac_cv_path_GREP
=$GREP
3719 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3720 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3721 GREP
="$ac_cv_path_GREP"
3724 { echo "$as_me:$LINENO: checking for egrep" >&5
3725 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3726 if test "${ac_cv_path_EGREP+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3730 then ac_cv_path_EGREP
="$GREP -E"
3732 # Extract the first word of "egrep" to use in msg output
3733 if test -z "$EGREP"; then
3734 set dummy
egrep; ac_prog_name
=$2
3735 if test "${ac_cv_path_EGREP+set}" = set; then
3736 echo $ECHO_N "(cached) $ECHO_C" >&6
3738 ac_path_EGREP_found
=false
3739 # Loop through the user's path and test for each of PROGNAME-LIST
3740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3741 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3744 test -z "$as_dir" && as_dir
=.
3745 for ac_prog
in egrep; do
3746 for ac_exec_ext
in '' $ac_executable_extensions; do
3747 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3748 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3749 # Check for GNU ac_path_EGREP and select it if it is found.
3750 # Check for GNU $ac_path_EGREP
3751 case `"$ac_path_EGREP" --version 2>&1` in
3753 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3756 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3759 cat "conftest.in" "conftest.in" >"conftest.tmp"
3760 mv "conftest.tmp" "conftest.in"
3761 cp "conftest.in" "conftest.nl"
3762 echo 'EGREP' >> "conftest.nl"
3763 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3764 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3765 ac_count
=`expr $ac_count + 1`
3766 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3767 # Best one so far, save it but keep looking for a better one
3768 ac_cv_path_EGREP
="$ac_path_EGREP"
3769 ac_path_EGREP_max
=$ac_count
3771 # 10*(2^10) chars as input seems more than enough
3772 test $ac_count -gt 10 && break
3774 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3778 $ac_path_EGREP_found && break 3
3788 EGREP
="$ac_cv_path_EGREP"
3789 if test -z "$EGREP"; then
3790 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3791 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3792 { (exit 1); exit 1; }; }
3796 ac_cv_path_EGREP
=$EGREP
3802 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3803 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3804 EGREP
="$ac_cv_path_EGREP"
3807 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3808 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3809 if test "${ac_cv_header_stdc+set}" = set; then
3810 echo $ECHO_N "(cached) $ECHO_C" >&6
3812 cat >conftest.
$ac_ext <<_ACEOF
3815 cat confdefs.h
>>conftest.
$ac_ext
3816 cat >>conftest.
$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3831 rm -f conftest.
$ac_objext
3832 if { (ac_try
="$ac_compile"
3834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3835 *) ac_try_echo=$ac_try;;
3837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3838 (eval "$ac_compile") 2>conftest.er1
3840 grep -v '^ *+' conftest.er1 >conftest.err
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3846 { (case "(($ac_try" in
3847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3848 *) ac_try_echo
=$ac_try;;
3850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_try") 2>&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); }; } &&
3855 { ac_try
='test -s conftest.$ac_objext'
3856 { (case "(($ac_try" in
3857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3858 *) ac_try_echo=$ac_try;;
3860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3861 (eval "$ac_try") 2>&5
3863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 (exit $ac_status); }; }; then
3865 ac_cv_header_stdc=yes
3867 echo "$as_me: failed program was:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 ac_cv_header_stdc=no
3873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875 if test $ac_cv_header_stdc = yes; then
3876 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3877 cat >conftest.$ac_ext <<_ACEOF
3880 cat confdefs.h >>conftest.$ac_ext
3881 cat >>conftest.$ac_ext <<_ACEOF
3882 /* end confdefs.h. */
3886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3887 $EGREP "memchr" >/dev/null 2>&1; then
3890 ac_cv_header_stdc=no
3896 if test $ac_cv_header_stdc = yes; then
3897 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3898 cat >conftest.$ac_ext <<_ACEOF
3901 cat confdefs.h >>conftest.$ac_ext
3902 cat >>conftest.$ac_ext <<_ACEOF
3903 /* end confdefs.h. */
3907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3908 $EGREP "free" >/dev/null 2>&1; then
3911 ac_cv_header_stdc=no
3917 if test $ac_cv_header_stdc = yes; then
3918 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3919 if test "$cross_compiling" = yes; then
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3930 #if ((' ' & 0x0FF) == 0x020)
3931 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3932 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934 # define ISLOWER(c) \
3935 (('a' <= (c) && (c) <= 'i') \
3936 || ('j' <= (c) && (c) <= 'r') \
3937 || ('s' <= (c) && (c) <= 'z'))
3938 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3941 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3946 for (i = 0; i < 256; i++)
3947 if (XOR (islower (i), ISLOWER (i))
3948 || toupper (i) != TOUPPER (i))
3953 rm -f conftest$ac_exeext
3954 if { (ac_try="$ac_link"
3956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3957 *) ac_try_echo
=$ac_try;;
3959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3960 (eval "$ac_link") 2>&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3964 { (case "(($ac_try" in
3965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3966 *) ac_try_echo=$ac_try;;
3968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3969 (eval "$ac_try") 2>&5
3971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3972 (exit $ac_status); }; }; then
3975 echo "$as_me: program exited with status $ac_status" >&5
3976 echo "$as_me: failed program was:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3980 ac_cv_header_stdc=no
3982 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3988 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3989 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3990 if test $ac_cv_header_stdc = yes; then
3992 cat >>confdefs.h <<\_ACEOF
3993 #define STDC_HEADERS 1
3998 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4008 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4009 inttypes.h stdint.h unistd.h
4011 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4012 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4013 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4014 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4015 echo $ECHO_N "(cached) $ECHO_C" >&6
4017 cat >conftest.$ac_ext <<_ACEOF
4020 cat confdefs.h >>conftest.$ac_ext
4021 cat >>conftest.$ac_ext <<_ACEOF
4022 /* end confdefs.h. */
4023 $ac_includes_default
4025 #include <$ac_header>
4027 rm -f conftest.$ac_objext
4028 if { (ac_try="$ac_compile"
4030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4031 *) ac_try_echo
=$ac_try;;
4033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4034 (eval "$ac_compile") 2>conftest.er1
4036 grep -v '^ *+' conftest.er1
>conftest.err
4038 cat conftest.err
>&5
4039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4040 (exit $ac_status); } &&
4041 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4042 { (case "(($ac_try" in
4043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4044 *) ac_try_echo=$ac_try;;
4046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4047 (eval "$ac_try") 2>&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); }; } &&
4051 { ac_try='test -s conftest.$ac_objext'
4052 { (case "(($ac_try" in
4053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4054 *) ac_try_echo
=$ac_try;;
4056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4057 (eval "$ac_try") 2>&5
4059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4060 (exit $ac_status); }; }; then
4061 eval "$as_ac_Header=yes"
4063 echo "$as_me: failed program was:" >&5
4064 sed 's/^/| /' conftest.
$ac_ext >&5
4066 eval "$as_ac_Header=no"
4069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4071 ac_res
=`eval echo '${'$as_ac_Header'}'`
4072 { echo "$as_me:$LINENO: result: $ac_res" >&5
4073 echo "${ECHO_T}$ac_res" >&6; }
4074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4075 cat >>confdefs.h
<<_ACEOF
4076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4084 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4085 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4086 if test "${ac_cv_c_bigendian+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 # See if sys/param.h defines the BYTE_ORDER macro.
4090 cat >conftest.
$ac_ext <<_ACEOF
4093 cat confdefs.h
>>conftest.
$ac_ext
4094 cat >>conftest.
$ac_ext <<_ACEOF
4095 /* end confdefs.h. */
4096 #include <sys/types.h>
4097 #include <sys/param.h>
4102 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4110 rm -f conftest.
$ac_objext
4111 if { (ac_try
="$ac_compile"
4113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4119 grep -v '^ *+' conftest.er1 >conftest.err
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } &&
4124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4125 { (case "(($ac_try" in
4126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4127 *) ac_try_echo
=$ac_try;;
4129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4130 (eval "$ac_try") 2>&5
4132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4133 (exit $ac_status); }; } &&
4134 { ac_try
='test -s conftest.$ac_objext'
4135 { (case "(($ac_try" in
4136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4137 *) ac_try_echo=$ac_try;;
4139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4140 (eval "$ac_try") 2>&5
4142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4143 (exit $ac_status); }; }; then
4144 # It does; now see whether it defined to BIG_ENDIAN or not.
4145 cat >conftest.$ac_ext <<_ACEOF
4148 cat confdefs.h >>conftest.$ac_ext
4149 cat >>conftest.$ac_ext <<_ACEOF
4150 /* end confdefs.h. */
4151 #include <sys/types.h>
4152 #include <sys/param.h>
4157 #if BYTE_ORDER != BIG_ENDIAN
4165 rm -f conftest.$ac_objext
4166 if { (ac_try="$ac_compile"
4168 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4169 *) ac_try_echo
=$ac_try;;
4171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4172 (eval "$ac_compile") 2>conftest.er1
4174 grep -v '^ *+' conftest.er1
>conftest.err
4176 cat conftest.err
>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); } &&
4179 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4180 { (case "(($ac_try" in
4181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4182 *) ac_try_echo=$ac_try;;
4184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4185 (eval "$ac_try") 2>&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); }; } &&
4189 { ac_try='test -s conftest.$ac_objext'
4190 { (case "(($ac_try" in
4191 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4192 *) ac_try_echo
=$ac_try;;
4194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4195 (eval "$ac_try") 2>&5
4197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198 (exit $ac_status); }; }; then
4199 ac_cv_c_bigendian
=yes
4201 echo "$as_me: failed program was:" >&5
4202 sed 's/^/| /' conftest.
$ac_ext >&5
4204 ac_cv_c_bigendian
=no
4207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4209 echo "$as_me: failed program was:" >&5
4210 sed 's/^/| /' conftest.
$ac_ext >&5
4212 # It does not; compile a test program.
4213 if test "$cross_compiling" = yes; then
4214 # try to guess the endianness by grepping values into an object file
4215 ac_cv_c_bigendian
=unknown
4216 cat >conftest.
$ac_ext <<_ACEOF
4219 cat confdefs.h
>>conftest.
$ac_ext
4220 cat >>conftest.
$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4222 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4223 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4224 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4225 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4226 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4227 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4231 _ascii (); _ebcdic ();
4236 rm -f conftest.
$ac_objext
4237 if { (ac_try
="$ac_compile"
4239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_compile") 2>conftest.er1
4245 grep -v '^ *+' conftest.er1 >conftest.err
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } &&
4250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4251 { (case "(($ac_try" in
4252 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4253 *) ac_try_echo
=$ac_try;;
4255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4256 (eval "$ac_try") 2>&5
4258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); }; } &&
4260 { ac_try
='test -s conftest.$ac_objext'
4261 { (case "(($ac_try" in
4262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4263 *) ac_try_echo=$ac_try;;
4265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4266 (eval "$ac_try") 2>&5
4268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4269 (exit $ac_status); }; }; then
4270 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4271 ac_cv_c_bigendian=yes
4273 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4274 if test "$ac_cv_c_bigendian" = unknown; then
4275 ac_cv_c_bigendian=no
4277 # finding both strings is unlikely to happen, but who knows?
4278 ac_cv_c_bigendian=unknown
4282 echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 cat >conftest.$ac_ext <<_ACEOF
4293 cat confdefs.h >>conftest.$ac_ext
4294 cat >>conftest.$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4296 $ac_includes_default
4301 /* Are we little or big endian? From Harbison&Steele. */
4305 char c[sizeof (long int)];
4308 return u.c[sizeof (long int) - 1] == 1;
4314 rm -f conftest$ac_exeext
4315 if { (ac_try="$ac_link"
4317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4318 *) ac_try_echo
=$ac_try;;
4320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_link") 2>&5
4323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4324 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4325 { (case "(($ac_try" in
4326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4327 *) ac_try_echo=$ac_try;;
4329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4330 (eval "$ac_try") 2>&5
4332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4333 (exit $ac_status); }; }; then
4334 ac_cv_c_bigendian=no
4336 echo "$as_me: program exited with status $ac_status" >&5
4337 echo "$as_me: failed program was:" >&5
4338 sed 's/^/| /' conftest.$ac_ext >&5
4341 ac_cv_c_bigendian=yes
4343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4352 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4353 case $ac_cv_c_bigendian in
4361 { { echo "$as_me:$LINENO: error: unknown endianness
4362 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4363 echo "$as_me: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4365 { (exit 1); exit 1; }; } ;;
4369 if test "$cross_compiling" = yes; then
4370 LLVM_CROSS_COMPILING=1
4373 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4374 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4375 if test "${ac_cv_build_exeext+set}" = set; then
4376 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4379 ac_cv_build_exeext=.exe
4381 ac_build_prefix=${build_alias}-
4383 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4384 set dummy ${ac_build_prefix}gcc; ac_word=$2
4385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4387 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 if test -n "$BUILD_CC"; then
4391 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir=.
4398 for ac_exec_ext in '' $ac_executable_extensions; do
4399 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4400 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4401 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4410 BUILD_CC=$ac_cv_prog_BUILD_CC
4411 if test -n "$BUILD_CC"; then
4412 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4413 echo "${ECHO_T}$BUILD_CC" >&6; }
4415 { echo "$as_me:$LINENO: result: no" >&5
4416 echo "${ECHO_T}no" >&6; }
4420 if test -z "$BUILD_CC"; then
4421 # Extract the first word of "gcc", so it can be a program name with args.
4422 set dummy gcc; ac_word=$2
4423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4425 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4426 echo $ECHO_N "(cached) $ECHO_C" >&6
4428 if test -n "$BUILD_CC"; then
4429 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4435 test -z "$as_dir" && as_dir=.
4436 for ac_exec_ext in '' $ac_executable_extensions; do
4437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4438 ac_cv_prog_BUILD_CC="gcc"
4439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4448 BUILD_CC=$ac_cv_prog_BUILD_CC
4449 if test -n "$BUILD_CC"; then
4450 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4451 echo "${ECHO_T}$BUILD_CC" >&6; }
4453 { echo "$as_me:$LINENO: result: no" >&5
4454 echo "${ECHO_T}no" >&6; }
4458 if test -z "$BUILD_CC"; then
4459 # Extract the first word of "cc", so it can be a program name with args.
4460 set dummy cc; ac_word=$2
4461 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4462 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4463 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4464 echo $ECHO_N "(cached) $ECHO_C" >&6
4466 if test -n "$BUILD_CC"; then
4467 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 test -z "$as_dir" && as_dir=.
4475 for ac_exec_ext in '' $ac_executable_extensions; do
4476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4477 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4478 ac_prog_rejected=yes
4481 ac_cv_prog_BUILD_CC="cc"
4482 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4489 if test $ac_prog_rejected = yes; then
4490 # We found a bogon in the path, so make sure we never use it.
4491 set dummy $ac_cv_prog_BUILD_CC
4493 if test $# != 0; then
4494 # We chose a different compiler from the bogus one.
4495 # However, it has the same basename, so the bogon will be chosen
4496 # first if we set BUILD_CC to just the basename; use the full file name.
4498 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4503 BUILD_CC=$ac_cv_prog_BUILD_CC
4504 if test -n "$BUILD_CC"; then
4505 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4506 echo "${ECHO_T}$BUILD_CC" >&6; }
4508 { echo "$as_me:$LINENO: result: no" >&5
4509 echo "${ECHO_T}no" >&6; }
4515 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4516 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4517 { (exit 1); exit 1; }; }
4518 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520 echo 'int main () { return 0; }' > conftest.$ac_ext
4522 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4523 (eval $ac_build_link) 2>&5
4525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4526 (exit $ac_status); }; then
4527 for file in conftest.*; do
4529 *.c | *.o | *.obj | *.dSYM) ;;
4530 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4534 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4535 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4536 { (exit 1); exit 1; }; }
4539 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4544 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4545 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4546 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4547 ac_build_exeext=$BUILD_EXEEXT
4549 ac_build_prefix=${build_alias}-
4550 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4551 set dummy ${ac_build_prefix}g++; ac_word=$2
4552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4554 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 if test -n "$BUILD_CXX"; then
4558 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4564 test -z "$as_dir" && as_dir=.
4565 for ac_exec_ext in '' $ac_executable_extensions; do
4566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4567 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4568 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4577 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4578 if test -n "$BUILD_CXX"; then
4579 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4580 echo "${ECHO_T}$BUILD_CXX" >&6; }
4582 { echo "$as_me:$LINENO: result: no" >&5
4583 echo "${ECHO_T}no" >&6; }
4587 if test -z "$BUILD_CXX"; then
4588 # Extract the first word of "g++", so it can be a program name with args.
4589 set dummy g++; ac_word=$2
4590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4592 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4593 echo $ECHO_N "(cached) $ECHO_C" >&6
4595 if test -n "$BUILD_CXX"; then
4596 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4602 test -z "$as_dir" && as_dir=.
4603 for ac_exec_ext in '' $ac_executable_extensions; do
4604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4605 ac_cv_prog_BUILD_CXX="g++"
4606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4615 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4616 if test -n "$BUILD_CXX"; then
4617 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4618 echo "${ECHO_T}$BUILD_CXX" >&6; }
4620 { echo "$as_me:$LINENO: result: no" >&5
4621 echo "${ECHO_T}no" >&6; }
4625 if test -z "$BUILD_CXX"; then
4626 # Extract the first word of "c++", so it can be a program name with args.
4627 set dummy c++; ac_word=$2
4628 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4629 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4630 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4631 echo $ECHO_N "(cached) $ECHO_C" >&6
4633 if test -n "$BUILD_CXX"; then
4634 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4641 test -z "$as_dir" && as_dir=.
4642 for ac_exec_ext in '' $ac_executable_extensions; do
4643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4644 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4645 ac_prog_rejected=yes
4648 ac_cv_prog_BUILD_CXX="c++"
4649 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4656 if test $ac_prog_rejected = yes; then
4657 # We found a bogon in the path, so make sure we never use it.
4658 set dummy $ac_cv_prog_BUILD_CXX
4660 if test $# != 0; then
4661 # We chose a different compiler from the bogus one.
4662 # However, it has the same basename, so the bogon will be chosen
4663 # first if we set BUILD_CXX to just the basename; use the full file name.
4665 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4670 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4671 if test -n "$BUILD_CXX"; then
4672 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4673 echo "${ECHO_T}$BUILD_CXX" >&6; }
4675 { echo "$as_me:$LINENO: result: no" >&5
4676 echo "${ECHO_T}no" >&6; }
4683 LLVM_CROSS_COMPILING=0
4687 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4698 # Check whether --enable-optimized was given.
4699 if test "${enable_optimized+set}" = set; then
4700 enableval=$enable_optimized;
4705 if test ${enableval} = "no" ; then
4709 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4713 # Check whether --enable-profiling was given.
4714 if test "${enable_profiling+set}" = set; then
4715 enableval=$enable_profiling;
4720 if test ${enableval} = "no" ; then
4724 ENABLE_PROFILING=ENABLE_PROFILING=1
4728 # Check whether --enable-assertions was given.
4729 if test "${enable_assertions+set}" = set; then
4730 enableval=$enable_assertions;
4735 if test ${enableval} = "yes" ; then
4739 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4743 # Check whether --enable-expensive-checks was given.
4744 if test "${enable_expensive_checks+set}" = set; then
4745 enableval=$enable_expensive_checks;
4750 if test ${enableval} = "yes" ; then
4751 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4753 EXPENSIVE_CHECKS=yes
4756 ENABLE_EXPENSIVE_CHECKS=
4762 # Check whether --enable-debug-runtime was given.
4763 if test "${enable_debug_runtime+set}" = set; then
4764 enableval=$enable_debug_runtime;
4769 if test ${enableval} = "no" ; then
4773 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4777 # Check whether --enable-debug-symbols was given.
4778 if test "${enable_debug_symbols+set}" = set; then
4779 enableval=$enable_debug_symbols;
4784 if test ${enableval} = "no" ; then
4788 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4792 # Check whether --enable-jit was given.
4793 if test "${enable_jit+set}" = set; then
4794 enableval=$enable_jit;
4799 if test ${enableval} = "no"
4804 case "$llvm_cv_target_arch" in
4805 x86) TARGET_HAS_JIT=1
4807 Sparc) TARGET_HAS_JIT=0
4809 PowerPC) TARGET_HAS_JIT=1
4811 x86_64) TARGET_HAS_JIT=1
4813 Alpha) TARGET_HAS_JIT=1
4815 ARM) TARGET_HAS_JIT=1
4817 Mips) TARGET_HAS_JIT=0
4819 PIC16) TARGET_HAS_JIT=0
4821 XCore) TARGET_HAS_JIT=0
4823 MSP430) TARGET_HAS_JIT=0
4825 SystemZ) TARGET_HAS_JIT=0
4827 Blackfin) TARGET_HAS_JIT=0
4829 MBlaze) TARGET_HAS_JIT=0
4836 # Check whether --enable-doxygen was given.
4837 if test "${enable_doxygen+set}" = set; then
4838 enableval=$enable_doxygen;
4843 case "$enableval" in
4844 yes) ENABLE_DOXYGEN=1
4846 no) ENABLE_DOXYGEN=0
4848 default) ENABLE_DOXYGEN=0
4850 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4851 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4852 { (exit 1); exit 1; }; } ;;
4855 # Check whether --enable-threads was given.
4856 if test "${enable_threads+set}" = set; then
4857 enableval=$enable_threads;
4862 case "$enableval" in
4863 yes) ENABLE_THREADS=1
4865 no) ENABLE_THREADS=0
4867 default) ENABLE_THREADS=1
4869 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4870 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4871 { (exit 1); exit 1; }; } ;;
4874 cat >>confdefs.h <<_ACEOF
4875 #define ENABLE_THREADS $ENABLE_THREADS
4879 # Check whether --enable-pic was given.
4880 if test "${enable_pic+set}" = set; then
4881 enableval=$enable_pic;
4886 case "$enableval" in
4891 default) ENABLE_PIC=1
4893 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4894 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4895 { (exit 1); exit 1; }; } ;;
4898 cat >>confdefs.h <<_ACEOF
4899 #define ENABLE_PIC $ENABLE_PIC
4903 # Check whether --enable-shared was given.
4904 if test "${enable_shared+set}" = set; then
4905 enableval=$enable_shared;
4910 case "$enableval" in
4911 yes) ENABLE_SHARED=1
4915 default) ENABLE_SHARED=0
4917 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4918 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4919 { (exit 1); exit 1; }; } ;;
4922 # Check whether --enable-timestamps was given.
4923 if test "${enable_timestamps+set}" = set; then
4924 enableval=$enable_timestamps;
4929 case "$enableval" in
4930 yes) ENABLE_TIMESTAMPS=1
4932 no) ENABLE_TIMESTAMPS=0
4934 default) ENABLE_TIMESTAMPS=1
4936 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4937 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4938 { (exit 1); exit 1; }; } ;;
4941 cat >>confdefs.h <<_ACEOF
4942 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4947 # Check whether --enable-targets was given.
4948 if test "${enable_targets+set}" = set; then
4949 enableval=$enable_targets;
4954 if test "$enableval" = host-only ; then
4957 case "$enableval" in
4958 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze" ;;
4959 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4961 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4962 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4964 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4965 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4966 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4967 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4968 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4969 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4970 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4975 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4976 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4977 host) case "$llvm_cv_target_arch" in
4978 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4979 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4981 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4982 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4983 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4984 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4985 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4986 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4987 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4988 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4989 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4990 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4991 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4992 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4993 echo "$as_me: error: Can not set target to build" >&2;}
4994 { (exit 1); exit 1; }; } ;;
4996 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4997 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4998 { (exit 1); exit 1; }; } ;;
5003 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5006 # Determine whether we are building LLVM support for the native architecture.
5007 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5008 for a_target in $TARGETS_TO_BUILD; do
5009 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5011 cat >>confdefs.h <<_ACEOF
5012 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5015 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5016 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5017 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5019 cat >>confdefs.h <<_ACEOF
5020 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5024 cat >>confdefs.h <<_ACEOF
5025 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5029 cat >>confdefs.h <<_ACEOF
5030 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5036 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5037 # target feature def files.
5038 LLVM_ENUM_TARGETS=""
5039 LLVM_ENUM_ASM_PRINTERS=""
5040 LLVM_ENUM_ASM_PARSERS=""
5041 LLVM_ENUM_DISASSEMBLERS=""
5042 for target_to_build in $TARGETS_TO_BUILD; do
5043 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5044 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5045 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5047 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5048 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5050 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5051 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5059 # Check whether --enable-cbe-printf-a was given.
5060 if test "${enable_cbe_printf_a+set}" = set; then
5061 enableval=$enable_cbe_printf_a;
5066 case "$enableval" in
5067 yes) ENABLE_CBE_PRINTF_A=1
5069 no) ENABLE_CBE_PRINTF_A=0
5071 default) ENABLE_CBE_PRINTF_A=1
5073 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5074 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5075 { (exit 1); exit 1; }; } ;;
5078 cat >>confdefs.h <<_ACEOF
5079 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5084 # Check whether --with-llvmgccdir was given.
5085 if test "${with_llvmgccdir+set}" = set; then
5086 withval=$with_llvmgccdir;
5092 default) WITH_LLVMGCCDIR=default ;;
5093 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5094 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5095 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5100 # Check whether --with-llvmgcc was given.
5101 if test "${with_llvmgcc+set}" = set; then
5102 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5108 # Check whether --with-llvmgxx was given.
5109 if test "${with_llvmgxx+set}" = set; then
5110 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5115 if test -n "$LLVMGCC"; then
5116 LLVMGCCCOMMAND="$LLVMGCC"
5119 if test -n "$LLVMGXX"; then
5120 LLVMGXXCOMMAND="$LLVMGXX"
5123 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5124 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5125 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5126 { (exit 1); exit 1; }; };
5129 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5130 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5131 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5132 { (exit 1); exit 1; }; };
5136 # Check whether --with-clang was given.
5137 if test "${with_clang+set}" = set; then
5138 withval=$with_clang;
5145 # Check whether --with-built-clang was given.
5146 if test "${with_built_clang+set}" = set; then
5147 withval=$with_built_clang;
5149 with_built_clang=check
5153 { echo "$as_me:$LINENO: checking clang compiler" >&5
5154 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5157 if test "$with_clang" != "default"; then
5158 WITH_CLANGPATH="$with_clang"
5159 if ! test -x "$WITH_CLANGPATH"; then
5160 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5161 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5162 { (exit 1); exit 1; }; }
5164 elif test "$with_built_clang" = "yes"; then
5166 elif test "$with_built_clang" = "no"; then
5169 if test "$with_built_clang" != "check"; then
5170 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5171 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5172 { (exit 1); exit 1; }; }
5175 if test -f ${srcdir}/tools/clang/README.txt; then
5180 if ! test -z "$WITH_CLANGPATH"; then
5181 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5182 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5183 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang
++`
5184 elif test "$WITH_BUILT_CLANG" = "1"; then
5185 { echo "$as_me:$LINENO: result: built" >&5
5186 echo "${ECHO_T}built" >&6; }
5188 { echo "$as_me:$LINENO: result: none" >&5
5189 echo "${ECHO_T}none" >&6; }
5191 CLANGPATH=$WITH_CLANGPATH
5193 CLANGXXPATH=$WITH_CLANGXXPATH
5195 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5199 # Check whether --with-optimize-option was given.
5200 if test "${with_optimize_option+set}" = set; then
5201 withval=$with_optimize_option;
5206 { echo "$as_me:$LINENO: checking optimization flags" >&5
5207 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5210 case "$llvm_cv_os_type" in
5211 FreeBSD) optimize_option=-O2 ;;
5212 MingW) optimize_option=-O2 ;;
5213 *) optimize_option=-O3 ;;
5215 *) optimize_option="$withval" ;;
5217 OPTIMIZE_OPTION=$optimize_option
5219 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5220 echo "${ECHO_T}$optimize_option" >&6; }
5223 # Check whether --with-extra-options was given.
5224 if test "${with_extra_options+set}" = set; then
5225 withval=$with_extra_options;
5231 default) EXTRA_OPTIONS= ;;
5232 *) EXTRA_OPTIONS=$withval ;;
5234 EXTRA_OPTIONS=$EXTRA_OPTIONS
5237 # Check whether --enable-bindings was given.
5238 if test "${enable_bindings+set}" = set; then
5239 enableval=$enable_bindings;
5244 BINDINGS_TO_BUILD=""
5245 case "$enableval" in
5246 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5247 all ) BINDINGS_TO_BUILD="ocaml" ;;
5248 none | no) BINDINGS_TO_BUILD="" ;;
5249 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5250 case "$a_binding" in
5251 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5252 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5253 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5254 { (exit 1); exit 1; }; } ;;
5261 # Check whether --with-ocaml-libdir was given.
5262 if test "${with_ocaml_libdir+set}" = set; then
5263 withval=$with_ocaml_libdir;
5269 auto) with_ocaml_libdir="$withval" ;;
5270 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5271 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5272 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5273 { (exit 1); exit 1; }; } ;;
5277 # Check whether --with-c-include-dirs was given.
5278 if test "${with_c_include_dirs+set}" = set; then
5279 withval=$with_c_include_dirs;
5285 cat >>confdefs.h <<_ACEOF
5286 #define C_INCLUDE_DIRS "$withval"
5291 # Check whether --with-cxx-include-root was given.
5292 if test "${with_cxx_include_root+set}" = set; then
5293 withval=$with_cxx_include_root;
5299 cat >>confdefs.h <<_ACEOF
5300 #define CXX_INCLUDE_ROOT "$withval"
5305 # Check whether --with-cxx-include-arch was given.
5306 if test "${with_cxx_include_arch+set}" = set; then
5307 withval=$with_cxx_include_arch;
5313 cat >>confdefs.h <<_ACEOF
5314 #define CXX_INCLUDE_ARCH "$withval"
5319 # Check whether --with-cxx-include-32bit-dir was given.
5320 if test "${with_cxx_include_32bit_dir+set}" = set; then
5321 withval=$with_cxx_include_32bit_dir;
5327 cat >>confdefs.h <<_ACEOF
5328 #define CXX_INCLUDE_32BIT_DIR "$withval"
5333 # Check whether --with-cxx-include-64bit-dir was given.
5334 if test "${with_cxx_include_64bit_dir+set}" = set; then
5335 withval=$with_cxx_include_64bit_dir;
5341 cat >>confdefs.h <<_ACEOF
5342 #define CXX_INCLUDE_64BIT_DIR "$withval"
5347 # Check whether --with-binutils-include was given.
5348 if test "${with_binutils_include+set}" = set; then
5349 withval=$with_binutils_include;
5355 default) WITH_BINUTILS_INCDIR=default ;;
5356 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5357 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5358 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5359 { (exit 1); exit 1; }; } ;;
5361 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5362 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5364 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5365 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5366 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5367 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5368 { (exit 1); exit 1; }; };
5372 # Check whether --enable-libffi was given.
5373 if test "${enable_libffi+set}" = set; then
5374 enableval=$enable_libffi; case "$enableval" in
5375 yes) llvm_cv_enable_libffi="yes" ;;
5376 no) llvm_cv_enable_libffi="no" ;;
5377 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5378 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5379 { (exit 1); exit 1; }; } ;;
5382 llvm_cv_enable_libffi=no
5388 ac_cpp='$CPP $CPPFLAGS'
5389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5394 # On Suns, sometimes $CPP names a directory.
5395 if test -n "$CPP" && test -d "$CPP"; then
5398 if test -z "$CPP"; then
5399 if test "${ac_cv_prog_CPP+set}" = set; then
5400 echo $ECHO_N "(cached) $ECHO_C" >&6
5402 # Double quotes because CPP needs to be expanded
5403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5406 for ac_c_preproc_warn_flag in '' yes
5408 # Use a header file that comes with gcc, so configuring glibc
5409 # with a fresh cross-compiler works.
5410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5411 # <limits.h> exists even on freestanding compilers.
5412 # On the NeXT, cc -E runs the code through the compiler's parser,
5413 # not just through cpp. "Syntax error" is here to catch this case.
5414 cat >conftest.$ac_ext <<_ACEOF
5417 cat confdefs.h >>conftest.$ac_ext
5418 cat >>conftest.$ac_ext <<_ACEOF
5419 /* end confdefs.h. */
5421 # include <limits.h>
5423 # include <assert.h>
5427 if { (ac_try="$ac_cpp conftest.$ac_ext"
5429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5430 *) ac_try_echo
=$ac_try;;
5432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5435 grep -v '^ *+' conftest.er1
>conftest.err
5437 cat conftest.err
>&5
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); } >/dev
/null
; then
5440 if test -s conftest.err
; then
5441 ac_cpp_err
=$ac_c_preproc_warn_flag
5442 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5449 if test -z "$ac_cpp_err"; then
5452 echo "$as_me: failed program was:" >&5
5453 sed 's/^/| /' conftest.
$ac_ext >&5
5455 # Broken: fails on valid input.
5459 rm -f conftest.err conftest.
$ac_ext
5461 # OK, works on sane cases. Now check whether nonexistent headers
5462 # can be detected and how.
5463 cat >conftest.
$ac_ext <<_ACEOF
5466 cat confdefs.h
>>conftest.
$ac_ext
5467 cat >>conftest.
$ac_ext <<_ACEOF
5468 /* end confdefs.h. */
5469 #include <ac_nonexistent.h>
5471 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5473 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5474 *) ac_try_echo=$ac_try;;
5476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5479 grep -v '^ *+' conftest.er1 >conftest.err
5481 cat conftest.err >&5
5482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5483 (exit $ac_status); } >/dev/null; then
5484 if test -s conftest.err; then
5485 ac_cpp_err=$ac_c_preproc_warn_flag
5486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5493 if test -z "$ac_cpp_err"; then
5494 # Broken: success on invalid input.
5497 echo "$as_me: failed program was:" >&5
5498 sed 's/^/| /' conftest.$ac_ext >&5
5500 # Passes both tests.
5505 rm -f conftest.err conftest.$ac_ext
5508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5509 rm -f conftest.err conftest.
$ac_ext
5510 if $ac_preproc_ok; then
5522 { echo "$as_me:$LINENO: result: $CPP" >&5
5523 echo "${ECHO_T}$CPP" >&6; }
5525 for ac_c_preproc_warn_flag
in '' yes
5527 # Use a header file that comes with gcc, so configuring glibc
5528 # with a fresh cross-compiler works.
5529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5530 # <limits.h> exists even on freestanding compilers.
5531 # On the NeXT, cc -E runs the code through the compiler's parser,
5532 # not just through cpp. "Syntax error" is here to catch this case.
5533 cat >conftest.
$ac_ext <<_ACEOF
5536 cat confdefs.h
>>conftest.
$ac_ext
5537 cat >>conftest.
$ac_ext <<_ACEOF
5538 /* end confdefs.h. */
5540 # include <limits.h>
5542 # include <assert.h>
5546 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5549 *) ac_try_echo=$ac_try;;
5551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5554 grep -v '^ *+' conftest.er1 >conftest.err
5556 cat conftest.err >&5
5557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5558 (exit $ac_status); } >/dev/null; then
5559 if test -s conftest.err; then
5560 ac_cpp_err=$ac_c_preproc_warn_flag
5561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5568 if test -z "$ac_cpp_err"; then
5571 echo "$as_me: failed program was:" >&5
5572 sed 's/^/| /' conftest.$ac_ext >&5
5574 # Broken: fails on valid input.
5578 rm -f conftest.err conftest.$ac_ext
5580 # OK, works on sane cases. Now check whether nonexistent headers
5581 # can be detected and how.
5582 cat >conftest.$ac_ext <<_ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #include <ac_nonexistent.h>
5590 if { (ac_try="$ac_cpp conftest.$ac_ext"
5592 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5593 *) ac_try_echo
=$ac_try;;
5595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5598 grep -v '^ *+' conftest.er1
>conftest.err
5600 cat conftest.err
>&5
5601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5602 (exit $ac_status); } >/dev
/null
; then
5603 if test -s conftest.err
; then
5604 ac_cpp_err
=$ac_c_preproc_warn_flag
5605 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5612 if test -z "$ac_cpp_err"; then
5613 # Broken: success on invalid input.
5616 echo "$as_me: failed program was:" >&5
5617 sed 's/^/| /' conftest.
$ac_ext >&5
5619 # Passes both tests.
5624 rm -f conftest.err conftest.
$ac_ext
5627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5628 rm -f conftest.err conftest.
$ac_ext
5629 if $ac_preproc_ok; then
5632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5633 See \`config.log' for more details." >&5
5634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5635 See \`config.log' for more details." >&2;}
5636 { (exit 1); exit 1; }; }
5640 ac_cpp
='$CPP $CPPFLAGS'
5641 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5642 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5643 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5646 ac_cpp
='$CPP $CPPFLAGS'
5647 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5648 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5649 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5650 if test -n "$ac_tool_prefix"; then
5653 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5654 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5655 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5656 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5657 if test "${ac_cv_prog_CC+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5660 if test -n "$CC"; then
5661 ac_cv_prog_CC
="$CC" # Let the user override the test.
5663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5667 test -z "$as_dir" && as_dir
=.
5668 for ac_exec_ext
in '' $ac_executable_extensions; do
5669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5670 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5671 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5681 if test -n "$CC"; then
5682 { echo "$as_me:$LINENO: result: $CC" >&5
5683 echo "${ECHO_T}$CC" >&6; }
5685 { echo "$as_me:$LINENO: result: no" >&5
5686 echo "${ECHO_T}no" >&6; }
5690 test -n "$CC" && break
5693 if test -z "$CC"; then
5697 # Extract the first word of "$ac_prog", so it can be a program name with args.
5698 set dummy
$ac_prog; ac_word
=$2
5699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5701 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5702 echo $ECHO_N "(cached) $ECHO_C" >&6
5704 if test -n "$ac_ct_CC"; then
5705 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5707 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5711 test -z "$as_dir" && as_dir
=.
5712 for ac_exec_ext
in '' $ac_executable_extensions; do
5713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5714 ac_cv_prog_ac_ct_CC
="$ac_prog"
5715 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5724 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5725 if test -n "$ac_ct_CC"; then
5726 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5727 echo "${ECHO_T}$ac_ct_CC" >&6; }
5729 { echo "$as_me:$LINENO: result: no" >&5
5730 echo "${ECHO_T}no" >&6; }
5734 test -n "$ac_ct_CC" && break
5737 if test "x$ac_ct_CC" = x
; then
5740 case $cross_compiling:$ac_tool_warned in
5742 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5743 whose name does not start with the host triplet. If you think this
5744 configuration is useful to you, please write to autoconf@gnu.org." >&5
5745 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5746 whose name does not start with the host triplet. If you think this
5747 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5748 ac_tool_warned
=yes ;;
5755 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5756 See \`config.log' for more details." >&5
5757 echo "$as_me: error: no acceptable C compiler found in \$PATH
5758 See \`config.log' for more details." >&2;}
5759 { (exit 1); exit 1; }; }
5761 # Provide some information about the compiler.
5762 echo "$as_me:$LINENO: checking for C compiler version" >&5
5763 ac_compiler
=`set X $ac_compile; echo $2`
5764 { (ac_try
="$ac_compiler --version >&5"
5766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_compiler --version >&5") 2>&5
5772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5773 (exit $ac_status); }
5774 { (ac_try="$ac_compiler -v >&5"
5776 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5777 *) ac_try_echo
=$ac_try;;
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compiler -v >&5") 2>&5
5782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5783 (exit $ac_status); }
5784 { (ac_try
="$ac_compiler -V >&5"
5786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5787 *) ac_try_echo=$ac_try;;
5789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5790 (eval "$ac_compiler -V >&5") 2>&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); }
5795 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5796 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5797 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5798 echo $ECHO_N "(cached) $ECHO_C" >&6
5800 cat >conftest.$ac_ext <<_ACEOF
5803 cat confdefs.h >>conftest.$ac_ext
5804 cat >>conftest.$ac_ext <<_ACEOF
5805 /* end confdefs.h. */
5818 rm -f conftest.$ac_objext
5819 if { (ac_try="$ac_compile"
5821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5822 *) ac_try_echo
=$ac_try;;
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_compile") 2>conftest.er1
5827 grep -v '^ *+' conftest.er1
>conftest.err
5829 cat conftest.err
>&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } &&
5832 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5833 { (case "(($ac_try" in
5834 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_try") 2>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); }; } &&
5842 { ac_try='test -s conftest.$ac_objext'
5843 { (case "(($ac_try" in
5844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5845 *) ac_try_echo
=$ac_try;;
5847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5848 (eval "$ac_try") 2>&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); }; }; then
5854 echo "$as_me: failed program was:" >&5
5855 sed 's/^/| /' conftest.
$ac_ext >&5
5860 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5861 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5864 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5865 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5866 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5867 ac_test_CFLAGS
=${CFLAGS+set}
5868 ac_save_CFLAGS
=$CFLAGS
5869 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5870 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5871 if test "${ac_cv_prog_cc_g+set}" = set; then
5872 echo $ECHO_N "(cached) $ECHO_C" >&6
5874 ac_save_c_werror_flag
=$ac_c_werror_flag
5875 ac_c_werror_flag
=yes
5878 cat >conftest.
$ac_ext <<_ACEOF
5881 cat confdefs.h
>>conftest.
$ac_ext
5882 cat >>conftest.
$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5893 rm -f conftest.
$ac_objext
5894 if { (ac_try
="$ac_compile"
5896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5897 *) ac_try_echo=$ac_try;;
5899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5900 (eval "$ac_compile") 2>conftest.er1
5902 grep -v '^ *+' conftest.er1 >conftest.err
5904 cat conftest.err >&5
5905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5906 (exit $ac_status); } &&
5907 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5908 { (case "(($ac_try" in
5909 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5910 *) ac_try_echo
=$ac_try;;
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_try") 2>&5
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; } &&
5917 { ac_try
='test -s conftest.$ac_objext'
5918 { (case "(($ac_try" in
5919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5920 *) ac_try_echo=$ac_try;;
5922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5923 (eval "$ac_try") 2>&5
5925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5926 (exit $ac_status); }; }; then
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5933 cat >conftest.$ac_ext <<_ACEOF
5936 cat confdefs.h >>conftest.$ac_ext
5937 cat >>conftest.$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5948 rm -f conftest.$ac_objext
5949 if { (ac_try="$ac_compile"
5951 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5952 *) ac_try_echo
=$ac_try;;
5954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5955 (eval "$ac_compile") 2>conftest.er1
5957 grep -v '^ *+' conftest.er1
>conftest.err
5959 cat conftest.err
>&5
5960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5961 (exit $ac_status); } &&
5962 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5963 { (case "(($ac_try" in
5964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5965 *) ac_try_echo=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_try") 2>&5
5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5971 (exit $ac_status); }; } &&
5972 { ac_try='test -s conftest.$ac_objext'
5973 { (case "(($ac_try" in
5974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5975 *) ac_try_echo
=$ac_try;;
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_try") 2>&5
5980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5981 (exit $ac_status); }; }; then
5984 echo "$as_me: failed program was:" >&5
5985 sed 's/^/| /' conftest.
$ac_ext >&5
5987 ac_c_werror_flag
=$ac_save_c_werror_flag
5989 cat >conftest.
$ac_ext <<_ACEOF
5992 cat confdefs.h
>>conftest.
$ac_ext
5993 cat >>conftest.
$ac_ext <<_ACEOF
5994 /* end confdefs.h. */
6004 rm -f conftest.
$ac_objext
6005 if { (ac_try
="$ac_compile"
6007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6008 *) ac_try_echo=$ac_try;;
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_compile") 2>conftest.er1
6013 grep -v '^ *+' conftest.er1 >conftest.err
6015 cat conftest.err >&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } &&
6018 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6019 { (case "(($ac_try" in
6020 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6021 *) ac_try_echo
=$ac_try;;
6023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6024 (eval "$ac_try") 2>&5
6026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6027 (exit $ac_status); }; } &&
6028 { ac_try
='test -s conftest.$ac_objext'
6029 { (case "(($ac_try" in
6030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_try") 2>&5
6036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6037 (exit $ac_status); }; }; then
6040 echo "$as_me: failed program was:" >&5
6041 sed 's/^/| /' conftest.$ac_ext >&5
6046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053 ac_c_werror_flag=$ac_save_c_werror_flag
6055 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6056 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6057 if test "$ac_test_CFLAGS" = set; then
6058 CFLAGS=$ac_save_CFLAGS
6059 elif test $ac_cv_prog_cc_g = yes; then
6060 if test "$GCC" = yes; then
6066 if test "$GCC" = yes; then
6072 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6073 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6074 if test "${ac_cv_prog_cc_c89+set}" = set; then
6075 echo $ECHO_N "(cached) $ECHO_C" >&6
6077 ac_cv_prog_cc_c89=no
6079 cat >conftest.$ac_ext <<_ACEOF
6082 cat confdefs.h >>conftest.$ac_ext
6083 cat >>conftest.$ac_ext <<_ACEOF
6084 /* end confdefs.h. */
6087 #include <sys/types.h>
6088 #include <sys/stat.h>
6089 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6090 struct buf { int x; };
6091 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6092 static char *e (p, i)
6098 static char *f (char * (*g) (char **, int), char **p, ...)
6103 s = g (p, va_arg (v,int));
6108 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6109 function prototypes and stuff, but not '\xHH' hex character constants.
6110 These don't provoke an error unfortunately, instead are silently treated
6111 as 'x'. The following induces an error, until -std is added to get
6112 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6113 array size at least. It's necessary to write '\x00'==0 to get something
6114 that's true only with -std. */
6115 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6117 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6118 inside strings and character constants. */
6120 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6122 int test (int i, double x);
6123 struct s1 {int (*f) (int a);};
6124 struct s2 {int (*f) (double a);};
6125 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6131 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6136 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6137 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6139 CC="$ac_save_CC $ac_arg"
6140 rm -f conftest.$ac_objext
6141 if { (ac_try="$ac_compile"
6143 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6144 *) ac_try_echo
=$ac_try;;
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_compile") 2>conftest.er1
6149 grep -v '^ *+' conftest.er1
>conftest.err
6151 cat conftest.err
>&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6155 { (case "(($ac_try" in
6156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_try") 2>&5
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 { (case "(($ac_try" in
6166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6167 *) ac_try_echo
=$ac_try;;
6169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170 (eval "$ac_try") 2>&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_cv_prog_cc_c89
=$ac_arg
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.
$ac_ext >&5
6182 rm -f core conftest.err conftest.
$ac_objext
6183 test "x$ac_cv_prog_cc_c89" != "xno" && break
6185 rm -f conftest.
$ac_ext
6190 case "x$ac_cv_prog_cc_c89" in
6192 { echo "$as_me:$LINENO: result: none needed" >&5
6193 echo "${ECHO_T}none needed" >&6; } ;;
6195 { echo "$as_me:$LINENO: result: unsupported" >&5
6196 echo "${ECHO_T}unsupported" >&6; } ;;
6198 CC
="$CC $ac_cv_prog_cc_c89"
6199 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6200 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6205 ac_cpp
='$CPP $CPPFLAGS'
6206 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6207 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6208 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6211 ac_cpp
='$CXXCPP $CPPFLAGS'
6212 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6213 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6214 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6215 if test -z "$CXX"; then
6216 if test -n "$CCC"; then
6219 if test -n "$ac_tool_prefix"; then
6222 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6223 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6226 if test "${ac_cv_prog_CXX+set}" = set; then
6227 echo $ECHO_N "(cached) $ECHO_C" >&6
6229 if test -n "$CXX"; then
6230 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6232 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6236 test -z "$as_dir" && as_dir
=.
6237 for ac_exec_ext
in '' $ac_executable_extensions; do
6238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6239 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6250 if test -n "$CXX"; then
6251 { echo "$as_me:$LINENO: result: $CXX" >&5
6252 echo "${ECHO_T}$CXX" >&6; }
6254 { echo "$as_me:$LINENO: result: no" >&5
6255 echo "${ECHO_T}no" >&6; }
6259 test -n "$CXX" && break
6262 if test -z "$CXX"; then
6266 # Extract the first word of "$ac_prog", so it can be a program name with args.
6267 set dummy
$ac_prog; ac_word
=$2
6268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6270 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6273 if test -n "$ac_ct_CXX"; then
6274 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6280 test -z "$as_dir" && as_dir
=.
6281 for ac_exec_ext
in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6293 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6294 if test -n "$ac_ct_CXX"; then
6295 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6296 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6298 { echo "$as_me:$LINENO: result: no" >&5
6299 echo "${ECHO_T}no" >&6; }
6303 test -n "$ac_ct_CXX" && break
6306 if test "x$ac_ct_CXX" = x
; then
6309 case $cross_compiling:$ac_tool_warned in
6311 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6312 whose name does not start with the host triplet. If you think this
6313 configuration is useful to you, please write to autoconf@gnu.org." >&5
6314 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6315 whose name does not start with the host triplet. If you think this
6316 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6317 ac_tool_warned
=yes ;;
6325 # Provide some information about the compiler.
6326 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6327 ac_compiler
=`set X $ac_compile; echo $2`
6328 { (ac_try
="$ac_compiler --version >&5"
6330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6331 *) ac_try_echo=$ac_try;;
6333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6334 (eval "$ac_compiler --version >&5") 2>&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); }
6338 { (ac_try="$ac_compiler -v >&5"
6340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6341 *) ac_try_echo
=$ac_try;;
6343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6344 (eval "$ac_compiler -v >&5") 2>&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); }
6348 { (ac_try
="$ac_compiler -V >&5"
6350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6351 *) ac_try_echo=$ac_try;;
6353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6354 (eval "$ac_compiler -V >&5") 2>&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); }
6359 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6360 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6361 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6362 echo $ECHO_N "(cached) $ECHO_C" >&6
6364 cat >conftest.$ac_ext <<_ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6382 rm -f conftest.$ac_objext
6383 if { (ac_try="$ac_compile"
6385 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6386 *) ac_try_echo
=$ac_try;;
6388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6389 (eval "$ac_compile") 2>conftest.er1
6391 grep -v '^ *+' conftest.er1
>conftest.err
6393 cat conftest.err
>&5
6394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6395 (exit $ac_status); } &&
6396 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6397 { (case "(($ac_try" in
6398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_try") 2>&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); }; } &&
6406 { ac_try='test -s conftest.$ac_objext'
6407 { (case "(($ac_try" in
6408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6409 *) ac_try_echo
=$ac_try;;
6411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6412 (eval "$ac_try") 2>&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; }; then
6418 echo "$as_me: failed program was:" >&5
6419 sed 's/^/| /' conftest.
$ac_ext >&5
6424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6425 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6428 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6429 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6430 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6431 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6432 ac_save_CXXFLAGS
=$CXXFLAGS
6433 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6434 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6435 if test "${ac_cv_prog_cxx_g+set}" = set; then
6436 echo $ECHO_N "(cached) $ECHO_C" >&6
6438 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6439 ac_cxx_werror_flag
=yes
6442 cat >conftest.
$ac_ext <<_ACEOF
6445 cat confdefs.h
>>conftest.
$ac_ext
6446 cat >>conftest.
$ac_ext <<_ACEOF
6447 /* end confdefs.h. */
6457 rm -f conftest.
$ac_objext
6458 if { (ac_try
="$ac_compile"
6460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6461 *) ac_try_echo=$ac_try;;
6463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6464 (eval "$ac_compile") 2>conftest.er1
6466 grep -v '^ *+' conftest.er1 >conftest.err
6468 cat conftest.err >&5
6469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } &&
6471 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6472 { (case "(($ac_try" in
6473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6474 *) ac_try_echo
=$ac_try;;
6476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6477 (eval "$ac_try") 2>&5
6479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6480 (exit $ac_status); }; } &&
6481 { ac_try
='test -s conftest.$ac_objext'
6482 { (case "(($ac_try" in
6483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_try") 2>&5
6489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); }; }; then
6491 ac_cv_prog_cxx_g=yes
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6497 cat >conftest.$ac_ext <<_ACEOF
6500 cat confdefs.h >>conftest.$ac_ext
6501 cat >>conftest.$ac_ext <<_ACEOF
6502 /* end confdefs.h. */
6512 rm -f conftest.$ac_objext
6513 if { (ac_try="$ac_compile"
6515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6516 *) ac_try_echo
=$ac_try;;
6518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6519 (eval "$ac_compile") 2>conftest.er1
6521 grep -v '^ *+' conftest.er1
>conftest.err
6523 cat conftest.err
>&5
6524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6525 (exit $ac_status); } &&
6526 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6527 { (case "(($ac_try" in
6528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6529 *) ac_try_echo=$ac_try;;
6531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6532 (eval "$ac_try") 2>&5
6534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6535 (exit $ac_status); }; } &&
6536 { ac_try='test -s conftest.$ac_objext'
6537 { (case "(($ac_try" in
6538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6539 *) ac_try_echo
=$ac_try;;
6541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6542 (eval "$ac_try") 2>&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); }; }; then
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.
$ac_ext >&5
6551 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6553 cat >conftest.
$ac_ext <<_ACEOF
6556 cat confdefs.h
>>conftest.
$ac_ext
6557 cat >>conftest.
$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6568 rm -f conftest.
$ac_objext
6569 if { (ac_try
="$ac_compile"
6571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6572 *) ac_try_echo=$ac_try;;
6574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6575 (eval "$ac_compile") 2>conftest.er1
6577 grep -v '^ *+' conftest.er1 >conftest.err
6579 cat conftest.err >&5
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); } &&
6582 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6583 { (case "(($ac_try" in
6584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6585 *) ac_try_echo
=$ac_try;;
6587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6588 (eval "$ac_try") 2>&5
6590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6591 (exit $ac_status); }; } &&
6592 { ac_try
='test -s conftest.$ac_objext'
6593 { (case "(($ac_try" in
6594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6598 (eval "$ac_try") 2>&5
6600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6601 (exit $ac_status); }; }; then
6602 ac_cv_prog_cxx_g=yes
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.$ac_ext >&5
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6617 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6619 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6620 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6621 if test "$ac_test_CXXFLAGS" = set; then
6622 CXXFLAGS=$ac_save_CXXFLAGS
6623 elif test $ac_cv_prog_cxx_g = yes; then
6624 if test "$GXX" = yes; then
6630 if test "$GXX" = yes; then
6637 ac_cpp='$CPP $CPPFLAGS'
6638 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6639 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6640 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6643 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6644 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6645 if test "${lt_cv_path_NM+set}" = set; then
6646 echo $ECHO_N "(cached) $ECHO_C" >&6
6648 if test -n "$NM"; then
6649 # Let the user override the test.
6652 lt_nm_to_check="${ac_tool_prefix}nm"
6653 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6654 lt_nm_to_check="$lt_nm_to_check nm"
6656 for lt_tmp_nm in $lt_nm_to_check; do
6657 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6658 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6660 test -z "$ac_dir" && ac_dir=.
6661 tmp_nm="$ac_dir/$lt_tmp_nm"
6662 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6663 # Check to see if the nm accepts a BSD-compat flag.
6664 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6665 # nm: unknown option "B" ignored
6666 # Tru64's nm complains that
/dev
/null is an invalid object
file
6667 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6668 */dev
/null
* |
*'Invalid file or object type'*)
6669 lt_cv_path_NM
="$tmp_nm -B"
6673 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6675 lt_cv_path_NM
="$tmp_nm -p"
6679 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6680 continue # so that we can try to find one that supports BSD flags
6689 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6692 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6693 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6698 { echo "$as_me:$LINENO: checking for GNU make" >&5
6699 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6700 if test "${llvm_cv_gnu_make_command+set}" = set; then
6701 echo $ECHO_N "(cached) $ECHO_C" >&6
6703 llvm_cv_gnu_make_command
=''
6704 for a
in "$MAKE" make gmake gnumake
; do
6705 if test -z "$a" ; then continue ; fi ;
6706 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6708 llvm_cv_gnu_make_command
=$a ;
6713 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6714 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6715 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6719 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6720 echo "${ECHO_T}\"Not found\"" >&6; };
6724 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6725 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6727 if test "$LN_S" = "ln -s"; then
6728 { echo "$as_me:$LINENO: result: yes" >&5
6729 echo "${ECHO_T}yes" >&6; }
6731 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6732 echo "${ECHO_T}no, using $LN_S" >&6; }
6735 # Extract the first word of "cmp", so it can be a program name with args.
6736 set dummy
cmp; ac_word
=$2
6737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6739 if test "${ac_cv_path_CMP+set}" = set; then
6740 echo $ECHO_N "(cached) $ECHO_C" >&6
6744 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6747 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6751 test -z "$as_dir" && as_dir
=.
6752 for ac_exec_ext
in '' $ac_executable_extensions; do
6753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6754 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6762 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6767 if test -n "$CMP"; then
6768 { echo "$as_me:$LINENO: result: $CMP" >&5
6769 echo "${ECHO_T}$CMP" >&6; }
6771 { echo "$as_me:$LINENO: result: no" >&5
6772 echo "${ECHO_T}no" >&6; }
6776 # Extract the first word of "cp", so it can be a program name with args.
6777 set dummy
cp; ac_word
=$2
6778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6780 if test "${ac_cv_path_CP+set}" = set; then
6781 echo $ECHO_N "(cached) $ECHO_C" >&6
6785 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6792 test -z "$as_dir" && as_dir
=.
6793 for ac_exec_ext
in '' $ac_executable_extensions; do
6794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6795 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6803 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6808 if test -n "$CP"; then
6809 { echo "$as_me:$LINENO: result: $CP" >&5
6810 echo "${ECHO_T}$CP" >&6; }
6812 { echo "$as_me:$LINENO: result: no" >&5
6813 echo "${ECHO_T}no" >&6; }
6817 # Extract the first word of "date", so it can be a program name with args.
6818 set dummy
date; ac_word
=$2
6819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6821 if test "${ac_cv_path_DATE+set}" = set; then
6822 echo $ECHO_N "(cached) $ECHO_C" >&6
6826 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6829 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6833 test -z "$as_dir" && as_dir
=.
6834 for ac_exec_ext
in '' $ac_executable_extensions; do
6835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6836 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6844 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6848 DATE
=$ac_cv_path_DATE
6849 if test -n "$DATE"; then
6850 { echo "$as_me:$LINENO: result: $DATE" >&5
6851 echo "${ECHO_T}$DATE" >&6; }
6853 { echo "$as_me:$LINENO: result: no" >&5
6854 echo "${ECHO_T}no" >&6; }
6858 # Extract the first word of "find", so it can be a program name with args.
6859 set dummy
find; ac_word
=$2
6860 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6861 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6862 if test "${ac_cv_path_FIND+set}" = set; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6867 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6870 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6874 test -z "$as_dir" && as_dir
=.
6875 for ac_exec_ext
in '' $ac_executable_extensions; do
6876 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6877 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6885 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6889 FIND
=$ac_cv_path_FIND
6890 if test -n "$FIND"; then
6891 { echo "$as_me:$LINENO: result: $FIND" >&5
6892 echo "${ECHO_T}$FIND" >&6; }
6894 { echo "$as_me:$LINENO: result: no" >&5
6895 echo "${ECHO_T}no" >&6; }
6899 # Extract the first word of "grep", so it can be a program name with args.
6900 set dummy
grep; ac_word
=$2
6901 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6902 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6903 if test "${ac_cv_path_GREP+set}" = set; then
6904 echo $ECHO_N "(cached) $ECHO_C" >&6
6908 ac_cv_path_GREP
="$GREP" # 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_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6918 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6919 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6926 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6930 GREP
=$ac_cv_path_GREP
6931 if test -n "$GREP"; then
6932 { echo "$as_me:$LINENO: result: $GREP" >&5
6933 echo "${ECHO_T}$GREP" >&6; }
6935 { echo "$as_me:$LINENO: result: no" >&5
6936 echo "${ECHO_T}no" >&6; }
6940 # Extract the first word of "mkdir", so it can be a program name with args.
6941 set dummy mkdir
; ac_word
=$2
6942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6944 if test "${ac_cv_path_MKDIR+set}" = set; then
6945 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6952 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6956 test -z "$as_dir" && as_dir
=.
6957 for ac_exec_ext
in '' $ac_executable_extensions; do
6958 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6959 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6960 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6967 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6971 MKDIR
=$ac_cv_path_MKDIR
6972 if test -n "$MKDIR"; then
6973 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6974 echo "${ECHO_T}$MKDIR" >&6; }
6976 { echo "$as_me:$LINENO: result: no" >&5
6977 echo "${ECHO_T}no" >&6; }
6981 # Extract the first word of "mv", so it can be a program name with args.
6982 set dummy
mv; ac_word
=$2
6983 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6984 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6985 if test "${ac_cv_path_MV+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6990 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
6993 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6997 test -z "$as_dir" && as_dir
=.
6998 for ac_exec_ext
in '' $ac_executable_extensions; do
6999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7000 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
7001 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
7013 if test -n "$MV"; then
7014 { echo "$as_me:$LINENO: result: $MV" >&5
7015 echo "${ECHO_T}$MV" >&6; }
7017 { echo "$as_me:$LINENO: result: no" >&5
7018 echo "${ECHO_T}no" >&6; }
7022 if test -n "$ac_tool_prefix"; then
7023 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7024 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7027 if test "${ac_cv_prog_RANLIB+set}" = set; then
7028 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 if test -n "$RANLIB"; then
7031 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7037 test -z "$as_dir" && as_dir
=.
7038 for ac_exec_ext
in '' $ac_executable_extensions; do
7039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7040 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 RANLIB
=$ac_cv_prog_RANLIB
7051 if test -n "$RANLIB"; then
7052 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7053 echo "${ECHO_T}$RANLIB" >&6; }
7055 { echo "$as_me:$LINENO: result: no" >&5
7056 echo "${ECHO_T}no" >&6; }
7061 if test -z "$ac_cv_prog_RANLIB"; then
7062 ac_ct_RANLIB
=$RANLIB
7063 # Extract the first word of "ranlib", so it can be a program name with args.
7064 set dummy ranlib
; ac_word
=$2
7065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7067 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7068 echo $ECHO_N "(cached) $ECHO_C" >&6
7070 if test -n "$ac_ct_RANLIB"; then
7071 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7073 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7077 test -z "$as_dir" && as_dir
=.
7078 for ac_exec_ext
in '' $ac_executable_extensions; do
7079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7080 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7090 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7091 if test -n "$ac_ct_RANLIB"; then
7092 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7093 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7095 { echo "$as_me:$LINENO: result: no" >&5
7096 echo "${ECHO_T}no" >&6; }
7099 if test "x$ac_ct_RANLIB" = x
; then
7102 case $cross_compiling:$ac_tool_warned in
7104 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7105 whose name does not start with the host triplet. If you think this
7106 configuration is useful to you, please write to autoconf@gnu.org." >&5
7107 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7108 whose name does not start with the host triplet. If you think this
7109 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7110 ac_tool_warned
=yes ;;
7112 RANLIB
=$ac_ct_RANLIB
7115 RANLIB
="$ac_cv_prog_RANLIB"
7118 if test -n "$ac_tool_prefix"; then
7119 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7120 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7123 if test "${ac_cv_prog_AR+set}" = set; then
7124 echo $ECHO_N "(cached) $ECHO_C" >&6
7126 if test -n "$AR"; then
7127 ac_cv_prog_AR
="$AR" # Let the user override the test.
7129 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7133 test -z "$as_dir" && as_dir
=.
7134 for ac_exec_ext
in '' $ac_executable_extensions; do
7135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7136 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7137 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7147 if test -n "$AR"; then
7148 { echo "$as_me:$LINENO: result: $AR" >&5
7149 echo "${ECHO_T}$AR" >&6; }
7151 { echo "$as_me:$LINENO: result: no" >&5
7152 echo "${ECHO_T}no" >&6; }
7157 if test -z "$ac_cv_prog_AR"; then
7159 # Extract the first word of "ar", so it can be a program name with args.
7160 set dummy
ar; ac_word
=$2
7161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7163 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 if test -n "$ac_ct_AR"; then
7167 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7173 test -z "$as_dir" && as_dir
=.
7174 for ac_exec_ext
in '' $ac_executable_extensions; do
7175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7176 ac_cv_prog_ac_ct_AR
="ar"
7177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7186 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7187 if test -n "$ac_ct_AR"; then
7188 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7189 echo "${ECHO_T}$ac_ct_AR" >&6; }
7191 { echo "$as_me:$LINENO: result: no" >&5
7192 echo "${ECHO_T}no" >&6; }
7195 if test "x$ac_ct_AR" = x
; then
7198 case $cross_compiling:$ac_tool_warned in
7200 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7201 whose name does not start with the host triplet. If you think this
7202 configuration is useful to you, please write to autoconf@gnu.org." >&5
7203 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7204 whose name does not start with the host triplet. If you think this
7205 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7206 ac_tool_warned
=yes ;;
7214 # Extract the first word of "rm", so it can be a program name with args.
7215 set dummy
rm; ac_word
=$2
7216 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7217 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7218 if test "${ac_cv_path_RM+set}" = set; then
7219 echo $ECHO_N "(cached) $ECHO_C" >&6
7223 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7230 test -z "$as_dir" && as_dir
=.
7231 for ac_exec_ext
in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7234 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7241 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7246 if test -n "$RM"; then
7247 { echo "$as_me:$LINENO: result: $RM" >&5
7248 echo "${ECHO_T}$RM" >&6; }
7250 { echo "$as_me:$LINENO: result: no" >&5
7251 echo "${ECHO_T}no" >&6; }
7255 # Extract the first word of "sed", so it can be a program name with args.
7256 set dummy
sed; ac_word
=$2
7257 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7258 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7259 if test "${ac_cv_path_SED+set}" = set; then
7260 echo $ECHO_N "(cached) $ECHO_C" >&6
7264 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7271 test -z "$as_dir" && as_dir
=.
7272 for ac_exec_ext
in '' $ac_executable_extensions; do
7273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7274 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7282 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7287 if test -n "$SED"; then
7288 { echo "$as_me:$LINENO: result: $SED" >&5
7289 echo "${ECHO_T}$SED" >&6; }
7291 { echo "$as_me:$LINENO: result: no" >&5
7292 echo "${ECHO_T}no" >&6; }
7296 # Extract the first word of "tar", so it can be a program name with args.
7297 set dummy
tar; ac_word
=$2
7298 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7299 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7300 if test "${ac_cv_path_TAR+set}" = set; then
7301 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7308 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7312 test -z "$as_dir" && as_dir
=.
7313 for ac_exec_ext
in '' $ac_executable_extensions; do
7314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7315 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7316 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7328 if test -n "$TAR"; then
7329 { echo "$as_me:$LINENO: result: $TAR" >&5
7330 echo "${ECHO_T}$TAR" >&6; }
7332 { echo "$as_me:$LINENO: result: no" >&5
7333 echo "${ECHO_T}no" >&6; }
7337 # Extract the first word of "pwd", so it can be a program name with args.
7338 set dummy
pwd; ac_word
=$2
7339 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7340 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7341 if test "${ac_cv_path_BINPWD+set}" = set; then
7342 echo $ECHO_N "(cached) $ECHO_C" >&6
7346 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7349 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7353 test -z "$as_dir" && as_dir
=.
7354 for ac_exec_ext
in '' $ac_executable_extensions; do
7355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7356 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7364 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7368 BINPWD
=$ac_cv_path_BINPWD
7369 if test -n "$BINPWD"; then
7370 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7371 echo "${ECHO_T}$BINPWD" >&6; }
7373 { echo "$as_me:$LINENO: result: no" >&5
7374 echo "${ECHO_T}no" >&6; }
7379 # Extract the first word of "Graphviz", so it can be a program name with args.
7380 set dummy Graphviz
; ac_word
=$2
7381 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7382 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7383 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7388 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7391 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7395 test -z "$as_dir" && as_dir
=.
7396 for ac_exec_ext
in '' $ac_executable_extensions; do
7397 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7398 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7399 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7410 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7411 if test -n "$GRAPHVIZ"; then
7412 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7413 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7415 { echo "$as_me:$LINENO: result: no" >&5
7416 echo "${ECHO_T}no" >&6; }
7420 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7422 cat >>confdefs.h
<<\_ACEOF
7423 #define HAVE_GRAPHVIZ 1
7426 if test "$llvm_cv_os_type" = "MingW" ; then
7427 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7430 cat >>confdefs.h
<<_ACEOF
7431 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7435 # Extract the first word of "dot", so it can be a program name with args.
7436 set dummy dot
; ac_word
=$2
7437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7439 if test "${ac_cv_path_DOT+set}" = set; then
7440 echo $ECHO_N "(cached) $ECHO_C" >&6
7444 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7451 test -z "$as_dir" && as_dir
=.
7452 for ac_exec_ext
in '' $ac_executable_extensions; do
7453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7454 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7467 if test -n "$DOT"; then
7468 { echo "$as_me:$LINENO: result: $DOT" >&5
7469 echo "${ECHO_T}$DOT" >&6; }
7471 { echo "$as_me:$LINENO: result: no" >&5
7472 echo "${ECHO_T}no" >&6; }
7476 if test "$DOT" != "echo dot" ; then
7478 cat >>confdefs.h
<<\_ACEOF
7482 if test "$llvm_cv_os_type" = "MingW" ; then
7483 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7486 cat >>confdefs.h
<<_ACEOF
7487 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7491 # Extract the first word of "fdp", so it can be a program name with args.
7492 set dummy fdp
; ac_word
=$2
7493 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7495 if test "${ac_cv_path_FDP+set}" = set; then
7496 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7503 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7507 test -z "$as_dir" && as_dir
=.
7508 for ac_exec_ext
in '' $ac_executable_extensions; do
7509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7510 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7518 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7523 if test -n "$FDP"; then
7524 { echo "$as_me:$LINENO: result: $FDP" >&5
7525 echo "${ECHO_T}$FDP" >&6; }
7527 { echo "$as_me:$LINENO: result: no" >&5
7528 echo "${ECHO_T}no" >&6; }
7532 if test "$FDP" != "echo fdp" ; then
7534 cat >>confdefs.h
<<\_ACEOF
7538 if test "$llvm_cv_os_type" = "MingW" ; then
7539 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7542 cat >>confdefs.h
<<_ACEOF
7543 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7547 # Extract the first word of "neato", so it can be a program name with args.
7548 set dummy neato
; ac_word
=$2
7549 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7550 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7551 if test "${ac_cv_path_NEATO+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir
=.
7564 for ac_exec_ext
in '' $ac_executable_extensions; do
7565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7566 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7567 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7574 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7578 NEATO
=$ac_cv_path_NEATO
7579 if test -n "$NEATO"; then
7580 { echo "$as_me:$LINENO: result: $NEATO" >&5
7581 echo "${ECHO_T}$NEATO" >&6; }
7583 { echo "$as_me:$LINENO: result: no" >&5
7584 echo "${ECHO_T}no" >&6; }
7588 if test "$NEATO" != "echo neato" ; then
7590 cat >>confdefs.h
<<\_ACEOF
7591 #define HAVE_NEATO 1
7594 if test "$llvm_cv_os_type" = "MingW" ; then
7595 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7598 cat >>confdefs.h
<<_ACEOF
7599 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7603 # Extract the first word of "twopi", so it can be a program name with args.
7604 set dummy twopi
; ac_word
=$2
7605 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7606 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7607 if test "${ac_cv_path_TWOPI+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7612 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7615 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7619 test -z "$as_dir" && as_dir
=.
7620 for ac_exec_ext
in '' $ac_executable_extensions; do
7621 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7622 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7623 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7634 TWOPI
=$ac_cv_path_TWOPI
7635 if test -n "$TWOPI"; then
7636 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7637 echo "${ECHO_T}$TWOPI" >&6; }
7639 { echo "$as_me:$LINENO: result: no" >&5
7640 echo "${ECHO_T}no" >&6; }
7644 if test "$TWOPI" != "echo twopi" ; then
7646 cat >>confdefs.h
<<\_ACEOF
7647 #define HAVE_TWOPI 1
7650 if test "$llvm_cv_os_type" = "MingW" ; then
7651 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7654 cat >>confdefs.h
<<_ACEOF
7655 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7659 # Extract the first word of "circo", so it can be a program name with args.
7660 set dummy circo
; ac_word
=$2
7661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7663 if test "${ac_cv_path_CIRCO+set}" = set; then
7664 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7675 test -z "$as_dir" && as_dir
=.
7676 for ac_exec_ext
in '' $ac_executable_extensions; do
7677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7678 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7690 CIRCO
=$ac_cv_path_CIRCO
7691 if test -n "$CIRCO"; then
7692 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7693 echo "${ECHO_T}$CIRCO" >&6; }
7695 { echo "$as_me:$LINENO: result: no" >&5
7696 echo "${ECHO_T}no" >&6; }
7700 if test "$CIRCO" != "echo circo" ; then
7702 cat >>confdefs.h
<<\_ACEOF
7703 #define HAVE_CIRCO 1
7706 if test "$llvm_cv_os_type" = "MingW" ; then
7707 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7710 cat >>confdefs.h
<<_ACEOF
7711 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7715 for ac_prog
in gv gsview32
7717 # Extract the first word of "$ac_prog", so it can be a program name with args.
7718 set dummy
$ac_prog; ac_word
=$2
7719 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7720 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7721 if test "${ac_cv_path_GV+set}" = set; then
7722 echo $ECHO_N "(cached) $ECHO_C" >&6
7726 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir
=.
7734 for ac_exec_ext
in '' $ac_executable_extensions; do
7735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7736 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7748 if test -n "$GV"; then
7749 { echo "$as_me:$LINENO: result: $GV" >&5
7750 echo "${ECHO_T}$GV" >&6; }
7752 { echo "$as_me:$LINENO: result: no" >&5
7753 echo "${ECHO_T}no" >&6; }
7757 test -n "$GV" && break
7759 test -n "$GV" || GV
="echo gv"
7761 if test "$GV" != "echo gv" ; then
7763 cat >>confdefs.h
<<\_ACEOF
7767 if test "$llvm_cv_os_type" = "MingW" ; then
7768 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7771 cat >>confdefs.h
<<_ACEOF
7772 #define LLVM_PATH_GV "$GV${EXEEXT}"
7776 # Extract the first word of "dotty", so it can be a program name with args.
7777 set dummy dotty
; ac_word
=$2
7778 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7779 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7780 if test "${ac_cv_path_DOTTY+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7785 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7788 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7792 test -z "$as_dir" && as_dir
=.
7793 for ac_exec_ext
in '' $ac_executable_extensions; do
7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7795 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7796 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7803 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7807 DOTTY
=$ac_cv_path_DOTTY
7808 if test -n "$DOTTY"; then
7809 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7810 echo "${ECHO_T}$DOTTY" >&6; }
7812 { echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6; }
7817 if test "$DOTTY" != "echo dotty" ; then
7819 cat >>confdefs.h
<<\_ACEOF
7820 #define HAVE_DOTTY 1
7823 if test "$llvm_cv_os_type" = "MingW" ; then
7824 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7827 cat >>confdefs.h
<<_ACEOF
7828 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7834 # Extract the first word of "perl", so it can be a program name with args.
7835 set dummy perl
; ac_word
=$2
7836 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7837 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7838 if test "${ac_cv_path_PERL+set}" = set; then
7839 echo $ECHO_N "(cached) $ECHO_C" >&6
7843 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7846 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7850 test -z "$as_dir" && as_dir
=.
7851 for ac_exec_ext
in '' $ac_executable_extensions; do
7852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7853 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7854 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7861 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7865 PERL
=$ac_cv_path_PERL
7866 if test -n "$PERL"; then
7867 { echo "$as_me:$LINENO: result: $PERL" >&5
7868 echo "${ECHO_T}$PERL" >&6; }
7870 { echo "$as_me:$LINENO: result: no" >&5
7871 echo "${ECHO_T}no" >&6; }
7875 if test "$PERL" != "none"; then
7876 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7877 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7878 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7879 { echo "$as_me:$LINENO: result: yes" >&5
7880 echo "${ECHO_T}yes" >&6; }
7883 { echo "$as_me:$LINENO: result: not found" >&5
7884 echo "${ECHO_T}not found" >&6; }
7889 if test x
"$PERL" = xnone
; then
7892 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7893 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7894 { (exit 1); exit 1; }; }
7900 # Find a good install program. We prefer a C program (faster),
7901 # so one script is as good as another. But avoid the broken or
7902 # incompatible versions:
7903 # SysV /etc/install, /usr/sbin/install
7904 # SunOS /usr/etc/install
7905 # IRIX /sbin/install
7907 # AmigaOS /C/install, which installs bootblocks on floppy discs
7908 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7909 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7910 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7911 # OS/2's system install, which has a completely different semantic
7912 # ./install, which can be erroneously created by make from ./install.sh.
7913 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7914 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7915 if test -z "$INSTALL"; then
7916 if test "${ac_cv_path_install+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7923 test -z "$as_dir" && as_dir
=.
7924 # Account for people who put trailing slashes in PATH elements.
7926 .
/ | .
// |
/cC
/* | \
7927 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7928 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7931 # OSF1 and SCO ODT 3.0 have their own names for install.
7932 # Don't use installbsd from OSF since it installs stuff as root
7934 for ac_prog
in ginstall scoinst
install; do
7935 for ac_exec_ext
in '' $ac_executable_extensions; do
7936 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7937 if test $ac_prog = install &&
7938 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7939 # AIX install. It has an incompatible calling convention.
7941 elif test $ac_prog = install &&
7942 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
7943 # program-specific install script used by HP pwplus--don't use.
7946 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
7959 if test "${ac_cv_path_install+set}" = set; then
7960 INSTALL
=$ac_cv_path_install
7962 # As a last resort, use the slow shell script. Don't cache a
7963 # value for INSTALL within a source directory, because that will
7964 # break other packages using the cache if that directory is
7965 # removed, or if the value is a relative name.
7966 INSTALL
=$ac_install_sh
7969 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7970 echo "${ECHO_T}$INSTALL" >&6; }
7972 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7973 # It thinks the first close brace ends the variable substitution.
7974 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
7976 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
7978 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
7981 [\\/$
]* | ?
:[\\/]* ) ;;
7982 *) INSTALL
="\\\$(TOPSRCDIR)/$INSTALL" ;;
7985 # Extract the first word of "bzip2", so it can be a program name with args.
7986 set dummy
bzip2; ac_word
=$2
7987 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7988 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7989 if test "${ac_cv_path_BZIP2+set}" = set; then
7990 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8001 test -z "$as_dir" && as_dir
=.
8002 for ac_exec_ext
in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8004 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
8005 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 BZIP2
=$ac_cv_path_BZIP2
8016 if test -n "$BZIP2"; then
8017 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8018 echo "${ECHO_T}$BZIP2" >&6; }
8020 { echo "$as_me:$LINENO: result: no" >&5
8021 echo "${ECHO_T}no" >&6; }
8025 # Extract the first word of "cat", so it can be a program name with args.
8026 set dummy
cat; ac_word
=$2
8027 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8028 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8029 if test "${ac_cv_path_CAT+set}" = set; then
8030 echo $ECHO_N "(cached) $ECHO_C" >&6
8034 ac_cv_path_CAT
="$CAT" # Let the user override the test with a path.
8037 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8041 test -z "$as_dir" && as_dir
=.
8042 for ac_exec_ext
in '' $ac_executable_extensions; do
8043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8044 ac_cv_path_CAT
="$as_dir/$ac_word$ac_exec_ext"
8045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 if test -n "$CAT"; then
8057 { echo "$as_me:$LINENO: result: $CAT" >&5
8058 echo "${ECHO_T}$CAT" >&6; }
8060 { echo "$as_me:$LINENO: result: no" >&5
8061 echo "${ECHO_T}no" >&6; }
8065 # Extract the first word of "doxygen", so it can be a program name with args.
8066 set dummy doxygen
; ac_word
=$2
8067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8069 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8070 echo $ECHO_N "(cached) $ECHO_C" >&6
8074 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
8077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8081 test -z "$as_dir" && as_dir
=.
8082 for ac_exec_ext
in '' $ac_executable_extensions; do
8083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8084 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
8085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8095 DOXYGEN
=$ac_cv_path_DOXYGEN
8096 if test -n "$DOXYGEN"; then
8097 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8098 echo "${ECHO_T}$DOXYGEN" >&6; }
8100 { echo "$as_me:$LINENO: result: no" >&5
8101 echo "${ECHO_T}no" >&6; }
8105 # Extract the first word of "groff", so it can be a program name with args.
8106 set dummy
groff; ac_word
=$2
8107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8109 if test "${ac_cv_path_GROFF+set}" = set; then
8110 echo $ECHO_N "(cached) $ECHO_C" >&6
8114 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
8117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8121 test -z "$as_dir" && as_dir
=.
8122 for ac_exec_ext
in '' $ac_executable_extensions; do
8123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8124 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
8125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8135 GROFF
=$ac_cv_path_GROFF
8136 if test -n "$GROFF"; then
8137 { echo "$as_me:$LINENO: result: $GROFF" >&5
8138 echo "${ECHO_T}$GROFF" >&6; }
8140 { echo "$as_me:$LINENO: result: no" >&5
8141 echo "${ECHO_T}no" >&6; }
8145 # Extract the first word of "gzip", so it can be a program name with args.
8146 set dummy
gzip; ac_word
=$2
8147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8149 if test "${ac_cv_path_GZIP+set}" = set; then
8150 echo $ECHO_N "(cached) $ECHO_C" >&6
8154 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
8157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8161 test -z "$as_dir" && as_dir
=.
8162 for ac_exec_ext
in '' $ac_executable_extensions; do
8163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8164 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
8165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8175 GZIP
=$ac_cv_path_GZIP
8176 if test -n "$GZIP"; then
8177 { echo "$as_me:$LINENO: result: $GZIP" >&5
8178 echo "${ECHO_T}$GZIP" >&6; }
8180 { echo "$as_me:$LINENO: result: no" >&5
8181 echo "${ECHO_T}no" >&6; }
8185 # Extract the first word of "pod2html", so it can be a program name with args.
8186 set dummy pod2html
; ac_word
=$2
8187 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8188 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8189 if test "${ac_cv_path_POD2HTML+set}" = set; then
8190 echo $ECHO_N "(cached) $ECHO_C" >&6
8194 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
8197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8201 test -z "$as_dir" && as_dir
=.
8202 for ac_exec_ext
in '' $ac_executable_extensions; do
8203 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8204 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
8205 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 POD2HTML
=$ac_cv_path_POD2HTML
8216 if test -n "$POD2HTML"; then
8217 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8218 echo "${ECHO_T}$POD2HTML" >&6; }
8220 { echo "$as_me:$LINENO: result: no" >&5
8221 echo "${ECHO_T}no" >&6; }
8225 # Extract the first word of "pod2man", so it can be a program name with args.
8226 set dummy pod2man
; ac_word
=$2
8227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8229 if test "${ac_cv_path_POD2MAN+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8241 test -z "$as_dir" && as_dir
=.
8242 for ac_exec_ext
in '' $ac_executable_extensions; do
8243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8244 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8255 POD2MAN
=$ac_cv_path_POD2MAN
8256 if test -n "$POD2MAN"; then
8257 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8258 echo "${ECHO_T}$POD2MAN" >&6; }
8260 { echo "$as_me:$LINENO: result: no" >&5
8261 echo "${ECHO_T}no" >&6; }
8265 # Extract the first word of "pdfroff", so it can be a program name with args.
8266 set dummy pdfroff
; ac_word
=$2
8267 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8268 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8269 if test "${ac_cv_path_PDFROFF+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8274 ac_cv_path_PDFROFF
="$PDFROFF" # Let the user override the test with a path.
8277 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8281 test -z "$as_dir" && as_dir
=.
8282 for ac_exec_ext
in '' $ac_executable_extensions; do
8283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8284 ac_cv_path_PDFROFF
="$as_dir/$ac_word$ac_exec_ext"
8285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8295 PDFROFF
=$ac_cv_path_PDFROFF
8296 if test -n "$PDFROFF"; then
8297 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8298 echo "${ECHO_T}$PDFROFF" >&6; }
8300 { echo "$as_me:$LINENO: result: no" >&5
8301 echo "${ECHO_T}no" >&6; }
8305 # Extract the first word of "runtest", so it can be a program name with args.
8306 set dummy runtest
; ac_word
=$2
8307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8309 if test "${ac_cv_path_RUNTEST+set}" = set; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8314 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
8317 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8321 test -z "$as_dir" && as_dir
=.
8322 for ac_exec_ext
in '' $ac_executable_extensions; do
8323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8324 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8335 RUNTEST
=$ac_cv_path_RUNTEST
8336 if test -n "$RUNTEST"; then
8337 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8338 echo "${ECHO_T}$RUNTEST" >&6; }
8340 { echo "$as_me:$LINENO: result: no" >&5
8341 echo "${ECHO_T}no" >&6; }
8347 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8348 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8350 # Check whether --with-tclinclude was given.
8351 if test "${with_tclinclude+set}" = set; then
8352 withval
=$with_tclinclude; with_tclinclude
=${withval}
8357 if test "${ac_cv_path_tclsh+set}" = set; then
8358 echo $ECHO_N "(cached) $ECHO_C" >&6
8361 if test x
"${with_tclinclude}" != x
; then
8362 if test -f ${with_tclinclude}/tclsh
; then
8363 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8364 elif test -f ${with_tclinclude}/src
/tclsh
; then
8365 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8367 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8368 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8369 { (exit 1); exit 1; }; }
8375 if test x
"${ac_cv_path_tclsh}" = x
; then
8376 { echo "$as_me:$LINENO: result: none" >&5
8377 echo "${ECHO_T}none" >&6; }
8378 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
8380 # Extract the first word of "$ac_prog", so it can be a program name with args.
8381 set dummy
$ac_prog; ac_word
=$2
8382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8384 if test "${ac_cv_path_TCLSH+set}" = set; then
8385 echo $ECHO_N "(cached) $ECHO_C" >&6
8389 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8396 test -z "$as_dir" && as_dir
=.
8397 for ac_exec_ext
in '' $ac_executable_extensions; do
8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8399 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8410 TCLSH
=$ac_cv_path_TCLSH
8411 if test -n "$TCLSH"; then
8412 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8413 echo "${ECHO_T}$TCLSH" >&6; }
8415 { echo "$as_me:$LINENO: result: no" >&5
8416 echo "${ECHO_T}no" >&6; }
8420 test -n "$TCLSH" && break
8423 if test x
"${TCLSH}" = x
; then
8424 ac_cv_path_tclsh
='';
8426 ac_cv_path_tclsh
="${TCLSH}";
8429 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8430 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8431 TCLSH="${ac_cv_path_tclsh}"
8435 # Extract the first word of "zip", so it can be a program name with args.
8436 set dummy zip; ac_word=$2
8437 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8438 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8439 if test "${ac_cv_path_ZIP+set}" = set; then
8440 echo $ECHO_N "(cached
) $ECHO_C" >&6
8444 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8451 test -z "$as_dir" && as_dir=.
8452 for ac_exec_ext in '' $ac_executable_extensions; do
8453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8454 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8455 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8466 if test -n "$ZIP"; then
8467 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8468 echo "${ECHO_T}$ZIP" >&6; }
8470 { echo "$as_me:$LINENO: result
: no
" >&5
8471 echo "${ECHO_T}no
" >&6; }
8475 for ac_prog in ocamlc
8477 # Extract the first word of "$ac_prog", so it can be a program name with args.
8478 set dummy $ac_prog; ac_word=$2
8479 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8480 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8481 if test "${ac_cv_path_OCAMLC+set}" = set; then
8482 echo $ECHO_N "(cached
) $ECHO_C" >&6
8486 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8493 test -z "$as_dir" && as_dir=.
8494 for ac_exec_ext in '' $ac_executable_extensions; do
8495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8496 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8497 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8507 OCAMLC=$ac_cv_path_OCAMLC
8508 if test -n "$OCAMLC"; then
8509 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8510 echo "${ECHO_T}$OCAMLC" >&6; }
8512 { echo "$as_me:$LINENO: result
: no
" >&5
8513 echo "${ECHO_T}no
" >&6; }
8517 test -n "$OCAMLC" && break
8520 for ac_prog in ocamlopt
8522 # Extract the first word of "$ac_prog", so it can be a program name with args.
8523 set dummy $ac_prog; ac_word=$2
8524 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8525 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8526 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8527 echo $ECHO_N "(cached
) $ECHO_C" >&6
8531 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8538 test -z "$as_dir" && as_dir=.
8539 for ac_exec_ext in '' $ac_executable_extensions; do
8540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8541 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8542 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8552 OCAMLOPT=$ac_cv_path_OCAMLOPT
8553 if test -n "$OCAMLOPT"; then
8554 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8555 echo "${ECHO_T}$OCAMLOPT" >&6; }
8557 { echo "$as_me:$LINENO: result
: no
" >&5
8558 echo "${ECHO_T}no
" >&6; }
8562 test -n "$OCAMLOPT" && break
8565 for ac_prog in ocamldep
8567 # Extract the first word of "$ac_prog", so it can be a program name with args.
8568 set dummy $ac_prog; ac_word=$2
8569 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8570 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8571 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8572 echo $ECHO_N "(cached
) $ECHO_C" >&6
8576 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 test -z "$as_dir" && as_dir=.
8584 for ac_exec_ext in '' $ac_executable_extensions; do
8585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8586 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8587 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8597 OCAMLDEP=$ac_cv_path_OCAMLDEP
8598 if test -n "$OCAMLDEP"; then
8599 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8600 echo "${ECHO_T}$OCAMLDEP" >&6; }
8602 { echo "$as_me:$LINENO: result
: no
" >&5
8603 echo "${ECHO_T}no
" >&6; }
8607 test -n "$OCAMLDEP" && break
8610 for ac_prog in ocamldoc
8612 # Extract the first word of "$ac_prog", so it can be a program name with args.
8613 set dummy $ac_prog; ac_word=$2
8614 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8615 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8616 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8617 echo $ECHO_N "(cached
) $ECHO_C" >&6
8621 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8628 test -z "$as_dir" && as_dir=.
8629 for ac_exec_ext in '' $ac_executable_extensions; do
8630 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8631 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8632 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8642 OCAMLDOC=$ac_cv_path_OCAMLDOC
8643 if test -n "$OCAMLDOC"; then
8644 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8645 echo "${ECHO_T}$OCAMLDOC" >&6; }
8647 { echo "$as_me:$LINENO: result
: no
" >&5
8648 echo "${ECHO_T}no
" >&6; }
8652 test -n "$OCAMLDOC" && break
8655 for ac_prog in gas as
8657 # Extract the first word of "$ac_prog", so it can be a program name with args.
8658 set dummy $ac_prog; ac_word=$2
8659 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8660 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8661 if test "${ac_cv_path_GAS+set}" = set; then
8662 echo $ECHO_N "(cached
) $ECHO_C" >&6
8666 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8673 test -z "$as_dir" && as_dir=.
8674 for ac_exec_ext in '' $ac_executable_extensions; do
8675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8676 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8677 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8688 if test -n "$GAS"; then
8689 { echo "$as_me:$LINENO: result
: $GAS" >&5
8690 echo "${ECHO_T}$GAS" >&6; }
8692 { echo "$as_me:$LINENO: result
: no
" >&5
8693 echo "${ECHO_T}no
" >&6; }
8697 test -n "$GAS" && break
8701 { echo "$as_me:$LINENO: checking
for linker version
" >&5
8702 echo $ECHO_N "checking
for linker version...
$ECHO_C" >&6; }
8703 if test "${llvm_cv_link_version+set}" = set; then
8704 echo $ECHO_N "(cached
) $ECHO_C" >&6
8707 version_string="$
(ld
-v 2>&1 |
head -1)"
8710 if (echo "$version_string" | grep -q "ld64
"); then
8711 llvm_cv_link_version=$(echo "$version_string" | sed -e "s
#.*ld64-\([^ ]*\)#\1#")
8713 llvm_cv_link_version
=$
(echo "$version_string" |
sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8717 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8718 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8720 cat >>confdefs.h
<<_ACEOF
8721 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8726 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8727 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8728 if test "${llvm_cv_link_use_r+set}" = set; then
8729 echo $ECHO_N "(cached) $ECHO_C" >&6
8732 ac_cpp
='$CPP $CPPFLAGS'
8733 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8734 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8735 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8738 CFLAGS
="$CFLAGS -Wl,-R."
8739 cat >conftest.
$ac_ext <<_ACEOF
8742 cat confdefs.h
>>conftest.
$ac_ext
8743 cat >>conftest.
$ac_ext <<_ACEOF
8744 /* end confdefs.h. */
8754 rm -f conftest.
$ac_objext conftest
$ac_exeext
8755 if { (ac_try
="$ac_link"
8757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8761 (eval "$ac_link") 2>conftest.er1
8763 grep -v '^ *+' conftest.er1 >conftest.err
8765 cat conftest.err >&5
8766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8767 (exit $ac_status); } &&
8768 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8769 { (case "(($ac_try" in
8770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8771 *) ac_try_echo
=$ac_try;;
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_try") 2>&5
8776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8777 (exit $ac_status); }; } &&
8778 { ac_try
='test -s conftest$ac_exeext'
8779 { (case "(($ac_try" in
8780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8784 (eval "$ac_try") 2>&5
8786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8787 (exit $ac_status); }; }; then
8788 llvm_cv_link_use_r=yes
8790 echo "$as_me: failed program was:" >&5
8791 sed 's/^/| /' conftest.$ac_ext >&5
8793 llvm_cv_link_use_r=no
8796 rm -f core conftest.err conftest.$ac_objext \
8797 conftest$ac_exeext conftest.$ac_ext
8800 ac_cpp='$CPP $CPPFLAGS'
8801 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8802 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8803 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8807 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8808 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8809 if test "$llvm_cv_link_use_r" = yes ; then
8811 cat >>confdefs.h <<\_ACEOF
8812 #define HAVE_LINK_R 1
8818 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8819 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8820 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8821 echo $ECHO_N "(cached) $ECHO_C" >&6
8824 ac_cpp='$CPP $CPPFLAGS'
8825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8830 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8831 cat >conftest.$ac_ext <<_ACEOF
8834 cat confdefs.h >>conftest.$ac_ext
8835 cat >>conftest.$ac_ext <<_ACEOF
8836 /* end confdefs.h. */
8846 rm -f conftest.$ac_objext conftest$ac_exeext
8847 if { (ac_try="$ac_link"
8849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8850 *) ac_try_echo
=$ac_try;;
8852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8853 (eval "$ac_link") 2>conftest.er1
8855 grep -v '^ *+' conftest.er1
>conftest.err
8857 cat conftest.err
>&5
8858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8859 (exit $ac_status); } &&
8860 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8861 { (case "(($ac_try" in
8862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_try") 2>&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); }; } &&
8870 { ac_try='test -s conftest$ac_exeext'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8873 *) ac_try_echo
=$ac_try;;
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_try") 2>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; }; then
8880 llvm_cv_link_use_export_dynamic
=yes
8882 echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.
$ac_ext >&5
8885 llvm_cv_link_use_export_dynamic
=no
8888 rm -f core conftest.err conftest.
$ac_objext \
8889 conftest
$ac_exeext conftest.
$ac_ext
8892 ac_cpp
='$CPP $CPPFLAGS'
8893 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8894 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8895 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8899 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8900 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8901 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8903 cat >>confdefs.h
<<\_ACEOF
8904 #define HAVE_LINK_EXPORT_DYNAMIC 1
8910 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8911 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8912 if test "${llvm_cv_link_use_version_script+set}" = set; then
8913 echo $ECHO_N "(cached) $ECHO_C" >&6
8916 ac_cpp
='$CPP $CPPFLAGS'
8917 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8918 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8919 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8923 # The following code is from the autoconf manual,
8924 # "11.13: Limitations of Usual Tools".
8925 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8926 # Use mktemp if possible; otherwise fall back on mkdir,
8927 # with $RANDOM to make collisions less likely.
8931 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8933 test -n "$tmp" && test -d "$tmp"
8935 tmp
=$TMPDIR/foo$$
-$RANDOM
8936 (umask 077 && mkdir
"$tmp")
8939 echo "{" > "$tmp/export.map"
8940 echo " global: main;" >> "$tmp/export.map"
8941 echo " local: *;" >> "$tmp/export.map"
8942 echo "};" >> "$tmp/export.map"
8944 CFLAGS
="$CFLAGS -Wl,--version-script=$tmp/export.map"
8945 cat >conftest.
$ac_ext <<_ACEOF
8948 cat confdefs.h
>>conftest.
$ac_ext
8949 cat >>conftest.
$ac_ext <<_ACEOF
8950 /* end confdefs.h. */
8960 rm -f conftest.
$ac_objext conftest
$ac_exeext
8961 if { (ac_try
="$ac_link"
8963 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8964 *) ac_try_echo=$ac_try;;
8966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8967 (eval "$ac_link") 2>conftest.er1
8969 grep -v '^ *+' conftest.er1 >conftest.err
8971 cat conftest.err >&5
8972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8973 (exit $ac_status); } &&
8974 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8975 { (case "(($ac_try" in
8976 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8977 *) ac_try_echo
=$ac_try;;
8979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8980 (eval "$ac_try") 2>&5
8982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8983 (exit $ac_status); }; } &&
8984 { ac_try
='test -s conftest$ac_exeext'
8985 { (case "(($ac_try" in
8986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_try") 2>&5
8992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8993 (exit $ac_status); }; }; then
8994 llvm_cv_link_use_version_script=yes
8996 echo "$as_me: failed program was:" >&5
8997 sed 's/^/| /' conftest.$ac_ext >&5
8999 llvm_cv_link_use_version_script=no
9002 rm -f core conftest.err conftest.$ac_objext \
9003 conftest$ac_exeext conftest.$ac_ext
9004 rm "$tmp/export.map"
9008 ac_cpp='$CPP $CPPFLAGS'
9009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9015 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9016 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9017 if test "$llvm_cv_link_use_version_script" = yes ; then
9018 HAVE_LINK_VERSION_SCRIPT=1
9025 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9026 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9027 if test "${ac_cv_c_const+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 cat >conftest.$ac_ext <<_ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */
9040 /* FIXME: Include the comments suggested by Paul. */
9042 /* Ultrix mips cc rejects this. */
9043 typedef int charset[2];
9045 /* SunOS 4.1.1 cc rejects this. */
9046 char const *const *ccp;
9048 /* NEC SVR4.0.2 mips cc rejects this. */
9049 struct point {int x, y;};
9050 static struct point const zero = {0,0};
9051 /* AIX XL C 1.02.0.0 rejects this.
9052 It does not let you subtract one const X* pointer from another in
9053 an arm of an if-expression whose if-part is not a constant
9055 const char *g = "string";
9056 ccp = &g + (g ? g-g : 0);
9057 /* HPUX 7.0 cc rejects these. */
9060 ccp = (char const *const *) p;
9061 { /* SCO 3.2v4 cc rejects this. */
9063 char const *s = 0 ? (char *) 0 : (char const *) 0;
9068 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9070 const int *foo = &x[0];
9073 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9074 typedef const int *iptr;
9078 { /* AIX XL C 1.02.0.0 rejects this saying
9079 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9080 struct s { int j; const int *ap[3]; };
9081 struct s *b; b->j = 5;
9083 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9087 return !x[0] && !zero.x;
9094 rm -f conftest.$ac_objext
9095 if { (ac_try="$ac_compile"
9097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9098 *) ac_try_echo
=$ac_try;;
9100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9101 (eval "$ac_compile") 2>conftest.er1
9103 grep -v '^ *+' conftest.er1
>conftest.err
9105 cat conftest.err
>&5
9106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9107 (exit $ac_status); } &&
9108 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9109 { (case "(($ac_try" in
9110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_try") 2>&5
9116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); }; } &&
9118 { ac_try='test -s conftest.$ac_objext'
9119 { (case "(($ac_try" in
9120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9121 *) ac_try_echo
=$ac_try;;
9123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9124 (eval "$ac_try") 2>&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); }; }; then
9130 echo "$as_me: failed program was:" >&5
9131 sed 's/^/| /' conftest.
$ac_ext >&5
9136 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9138 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9139 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9140 if test $ac_cv_c_const = no
; then
9142 cat >>confdefs.h
<<\_ACEOF
9154 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9155 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9156 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9157 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9158 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159 echo $ECHO_N "(cached) $ECHO_C" >&6
9161 cat >conftest.
$ac_ext <<_ACEOF
9164 cat confdefs.h
>>conftest.
$ac_ext
9165 cat >>conftest.
$ac_ext <<_ACEOF
9166 /* end confdefs.h. */
9167 #include <sys/types.h>
9179 rm -f conftest.
$ac_objext
9180 if { (ac_try
="$ac_compile"
9182 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9183 *) ac_try_echo=$ac_try;;
9185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9186 (eval "$ac_compile") 2>conftest.er1
9188 grep -v '^ *+' conftest.er1 >conftest.err
9190 cat conftest.err >&5
9191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9192 (exit $ac_status); } &&
9193 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9194 { (case "(($ac_try" in
9195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9196 *) ac_try_echo
=$ac_try;;
9198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9199 (eval "$ac_try") 2>&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); }; } &&
9203 { ac_try
='test -s conftest.$ac_objext'
9204 { (case "(($ac_try" in
9205 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9206 *) ac_try_echo=$ac_try;;
9208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9209 (eval "$ac_try") 2>&5
9211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9212 (exit $ac_status); }; }; then
9213 eval "$as_ac_Header=yes"
9215 echo "$as_me: failed program was:" >&5
9216 sed 's/^/| /' conftest.$ac_ext >&5
9218 eval "$as_ac_Header=no"
9221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9223 ac_res=`eval echo '${'$as_ac_Header'}'`
9224 { echo "$as_me:$LINENO: result: $ac_res" >&5
9225 echo "${ECHO_T}$ac_res" >&6; }
9226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9227 cat >>confdefs.h <<_ACEOF
9228 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
9231 ac_header_dirent=$ac_hdr; break
9235 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9236 if test $ac_header_dirent = dirent.h; then
9237 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9238 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9239 if test "${ac_cv_search_opendir+set}" = set; then
9240 echo $ECHO_N "(cached) $ECHO_C" >&6
9242 ac_func_search_save_LIBS=$LIBS
9243 cat >conftest.$ac_ext <<_ACEOF
9246 cat confdefs.h >>conftest.$ac_ext
9247 cat >>conftest.$ac_ext <<_ACEOF
9248 /* end confdefs.h. */
9250 /* Override any GCC internal prototype to avoid an error.
9251 Use char because int might match the return type of a GCC
9252 builtin and then its argument prototype would still apply. */
9265 for ac_lib in '' dir; do
9266 if test -z "$ac_lib"; then
9267 ac_res="none required"
9270 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9272 rm -f conftest.$ac_objext conftest$ac_exeext
9273 if { (ac_try="$ac_link"
9275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9276 *) ac_try_echo
=$ac_try;;
9278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9279 (eval "$ac_link") 2>conftest.er1
9281 grep -v '^ *+' conftest.er1
>conftest.err
9283 cat conftest.err
>&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } &&
9286 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9287 { (case "(($ac_try" in
9288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9289 *) ac_try_echo=$ac_try;;
9291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9292 (eval "$ac_try") 2>&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); }; } &&
9296 { ac_try='test -s conftest$ac_exeext'
9297 { (case "(($ac_try" in
9298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9299 *) ac_try_echo
=$ac_try;;
9301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9302 (eval "$ac_try") 2>&5
9304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9305 (exit $ac_status); }; }; then
9306 ac_cv_search_opendir
=$ac_res
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.
$ac_ext >&5
9314 rm -f core conftest.err conftest.
$ac_objext \
9316 if test "${ac_cv_search_opendir+set}" = set; then
9320 if test "${ac_cv_search_opendir+set}" = set; then
9323 ac_cv_search_opendir
=no
9326 LIBS
=$ac_func_search_save_LIBS
9328 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9329 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9330 ac_res
=$ac_cv_search_opendir
9331 if test "$ac_res" != no
; then
9332 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9337 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9338 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9339 if test "${ac_cv_search_opendir+set}" = set; then
9340 echo $ECHO_N "(cached) $ECHO_C" >&6
9342 ac_func_search_save_LIBS
=$LIBS
9343 cat >conftest.
$ac_ext <<_ACEOF
9346 cat confdefs.h
>>conftest.
$ac_ext
9347 cat >>conftest.
$ac_ext <<_ACEOF
9348 /* end confdefs.h. */
9350 /* Override any GCC internal prototype to avoid an error.
9351 Use char because int might match the return type of a GCC
9352 builtin and then its argument prototype would still apply. */
9365 for ac_lib
in '' x
; do
9366 if test -z "$ac_lib"; then
9367 ac_res
="none required"
9370 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9372 rm -f conftest.
$ac_objext conftest
$ac_exeext
9373 if { (ac_try
="$ac_link"
9375 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9376 *) ac_try_echo=$ac_try;;
9378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9379 (eval "$ac_link") 2>conftest.er1
9381 grep -v '^ *+' conftest.er1 >conftest.err
9383 cat conftest.err >&5
9384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9385 (exit $ac_status); } &&
9386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9387 { (case "(($ac_try" in
9388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9389 *) ac_try_echo
=$ac_try;;
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_try") 2>&5
9394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9395 (exit $ac_status); }; } &&
9396 { ac_try
='test -s conftest$ac_exeext'
9397 { (case "(($ac_try" in
9398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9399 *) ac_try_echo=$ac_try;;
9401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9402 (eval "$ac_try") 2>&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); }; }; then
9406 ac_cv_search_opendir=$ac_res
9408 echo "$as_me: failed program was:" >&5
9409 sed 's/^/| /' conftest.$ac_ext >&5
9414 rm -f core conftest.err conftest.$ac_objext \
9416 if test "${ac_cv_search_opendir+set}" = set; then
9420 if test "${ac_cv_search_opendir+set}" = set; then
9423 ac_cv_search_opendir=no
9426 LIBS=$ac_func_search_save_LIBS
9428 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9429 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9430 ac_res=$ac_cv_search_opendir
9431 if test "$ac_res" != no; then
9432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9439 for ac_header in dlfcn.h
9441 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9446 echo $ECHO_N "(cached) $ECHO_C" >&6
9448 ac_res=`eval echo '${'$as_ac_Header'}'`
9449 { echo "$as_me:$LINENO: result: $ac_res" >&5
9450 echo "${ECHO_T}$ac_res" >&6; }
9452 # Is the header compilable?
9453 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9454 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9455 cat >conftest.$ac_ext <<_ACEOF
9458 cat confdefs.h >>conftest.$ac_ext
9459 cat >>conftest.$ac_ext <<_ACEOF
9460 /* end confdefs.h. */
9461 $ac_includes_default
9462 #include <$ac_header>
9464 rm -f conftest.$ac_objext
9465 if { (ac_try="$ac_compile"
9467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9468 *) ac_try_echo
=$ac_try;;
9470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_compile") 2>conftest.er1
9473 grep -v '^ *+' conftest.er1
>conftest.err
9475 cat conftest.err
>&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } &&
9478 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9479 { (case "(($ac_try" in
9480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9481 *) ac_try_echo=$ac_try;;
9483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9484 (eval "$ac_try") 2>&5
9486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9487 (exit $ac_status); }; } &&
9488 { ac_try='test -s conftest.$ac_objext'
9489 { (case "(($ac_try" in
9490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9491 *) ac_try_echo
=$ac_try;;
9493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9494 (eval "$ac_try") 2>&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); }; }; then
9498 ac_header_compiler
=yes
9500 echo "$as_me: failed program was:" >&5
9501 sed 's/^/| /' conftest.
$ac_ext >&5
9503 ac_header_compiler
=no
9506 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9508 echo "${ECHO_T}$ac_header_compiler" >&6; }
9510 # Is the header present?
9511 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9512 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9513 cat >conftest.
$ac_ext <<_ACEOF
9516 cat confdefs.h
>>conftest.
$ac_ext
9517 cat >>conftest.
$ac_ext <<_ACEOF
9518 /* end confdefs.h. */
9519 #include <$ac_header>
9521 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9524 *) ac_try_echo=$ac_try;;
9526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9529 grep -v '^ *+' conftest.er1 >conftest.err
9531 cat conftest.err >&5
9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } >/dev/null; then
9534 if test -s conftest.err; then
9535 ac_cpp_err=$ac_c_preproc_warn_flag
9536 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9543 if test -z "$ac_cpp_err"; then
9544 ac_header_preproc=yes
9546 echo "$as_me: failed program was:" >&5
9547 sed 's/^/| /' conftest.$ac_ext >&5
9549 ac_header_preproc=no
9552 rm -f conftest.err conftest.$ac_ext
9553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9554 echo "${ECHO_T}$ac_header_preproc" >&6; }
9556 # So? What about this header?
9557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9563 ac_header_preproc=yes
9566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9579 ## ----------------------------------- ##
9580 ## Report this to llvmbugs@cs.uiuc.edu ##
9581 ## ----------------------------------- ##
9583 ) | sed "s/^/$as_me: WARNING: /" >&2
9586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9589 echo $ECHO_N "(cached) $ECHO_C" >&6
9591 eval "$as_ac_Header=\$ac_header_preproc"
9593 ac_res=`eval echo '${'$as_ac_Header'}'`
9594 { echo "$as_me:$LINENO: result: $ac_res" >&5
9595 echo "${ECHO_T}$ac_res" >&6; }
9598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9599 cat >>confdefs.h <<_ACEOF
9600 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9607 # Check whether --enable-ltdl-install was given.
9608 if test "${enable_ltdl_install+set}" = set; then
9609 enableval=$enable_ltdl_install;
9615 if test x"${enable_ltdl_install-no}" != xno; then
9617 INSTALL_LTDL_FALSE='#'
9619 INSTALL_LTDL_TRUE='#'
9625 if test x"${enable_ltdl_convenience-no}" != xno; then
9626 CONVENIENCE_LTDL_TRUE=
9627 CONVENIENCE_LTDL_FALSE='#'
9629 CONVENIENCE_LTDL_TRUE='#'
9630 CONVENIENCE_LTDL_FALSE=
9634 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9635 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9637 libname_spec='lib$name'
9645 shlibpath_overrides_runpath=unknown
9647 dynamic_linker="$host_os ld.so"
9648 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9649 if test "$GCC" = yes; then
9650 sys_lib_search_path_spec=`$CC -print-search-dirs |
grep "^libraries:" |
$SED -e "s/^libraries://" -e "s,=/,/,g"`
9651 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9652 # if the path contains ";" then we assume it to be the separator
9653 # otherwise default to the standard path separator (i.e. ":") - it is
9654 # assumed that no part of a normal pathname contains ";" but that should
9655 # okay in the real world where ";" in dirpaths is itself problematic.
9656 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e 's/;/ /g'`
9658 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e "s/$PATH_SEPARATOR/ /g"`
9661 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9663 need_lib_prefix=unknown
9664 hardcode_into_libs=no
9666 # when you set need_version to no, make sure it does not cause -set_version
9667 # flags to be left without arguments
9668 need_version=unknown
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9674 shlibpath_var=LIBPATH
9676 # AIX 3 has no versioning support, so we append a major version to the name.
9677 soname_spec='${libname}${release}${shared_ext}$major'
9684 hardcode_into_libs=yes
9685 if test "$host_cpu" = ia64; then
9686 # AIX 5 supports IA64
9687 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9688 shlibpath_var=LD_LIBRARY_PATH
9690 # With GCC up to 2.95.x, collect2 would create an import file
9691 # for dependence libraries. The import file would start with
9692 # the line `#! .'. This would cause the generated library to
9693 # depend on `.', always an invalid library. This was fixed in
9694 # development snapshots of GCC prior to 3.0.
9696 aix4 | aix4.
[01] | aix4.
[01].
*)
9697 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9699 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9706 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9707 # soname into executable. Probably we can add versioning support to
9708 # collect2, so additional links can be useful in future.
9709 if test "$aix_use_runtimelinking" = yes; then
9710 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9711 # instead of lib<name>.a to let people know that these are not
9712 # typical AIX shared libraries.
9713 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9715 # We preserve .a as extension for shared libraries through AIX4.2
9716 # and later when we are not doing run time linking.
9717 library_names_spec
='${libname}${release}.a $libname.a'
9718 soname_spec
='${libname}${release}${shared_ext}$major'
9720 shlibpath_var
=LIBPATH
9725 library_names_spec
='$libname.ixlibrary $libname.a'
9726 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9727 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'
9731 library_names_spec
='${libname}${shared_ext}'
9732 dynamic_linker
="$host_os ld.so"
9733 shlibpath_var
=LIBRARY_PATH
9739 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9740 soname_spec
='${libname}${release}${shared_ext}$major'
9741 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9742 shlibpath_var
=LD_LIBRARY_PATH
9743 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9744 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9745 # the default ld.so.conf also contains /usr/contrib/lib and
9746 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9747 # libtool to hard-code these into programs
9750 cygwin
* | mingw
* | pw32
*)
9751 version_type
=windows
9756 case $GCC,$host_os in
9757 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9758 library_names_spec
='$libname.dll.a'
9759 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9760 postinstall_cmds
='base_file=`basename \${file}`~
9761 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9762 dldir=$destdir/`dirname \$dlpath`~
9763 test -d \$dldir || mkdir -p \$dldir~
9764 $install_prog $dir/$dlname \$dldir/$dlname~
9765 chmod a+x \$dldir/$dlname'
9766 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9767 dlpath=$dir/\$dldll~
9769 shlibpath_overrides_runpath
=yes
9773 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9774 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9775 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9778 # MinGW DLLs use traditional 'lib' prefix
9779 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9780 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9781 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9782 # It is most probably a Windows format PATH printed by
9783 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9784 # path with ; separators, and with drive letters. We can handle the
9785 # drive letters (cygwin fileutils understands them), so leave them,
9786 # especially as we might pass files found there to a mingw objdump,
9787 # which wouldn't understand a cygwinified path. Ahh.
9788 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9790 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9794 # pw32 DLLs use 'pw' prefix rather than 'lib'
9795 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9801 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9804 dynamic_linker
='Win32 ld.exe'
9805 # FIXME: first we should search . and the directory the executable is in
9809 darwin
* | rhapsody
*)
9810 dynamic_linker
="$host_os dyld"
9814 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9815 soname_spec
='${libname}${release}${major}$shared_ext'
9816 shlibpath_overrides_runpath
=yes
9817 shlibpath_var
=DYLD_LIBRARY_PATH
9818 shrext_cmds
='.dylib'
9819 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9820 if test "$GCC" = yes; then
9821 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"`
9823 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
9825 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9832 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9833 soname_spec
='${libname}${release}${shared_ext}$major'
9834 shlibpath_var
=LD_LIBRARY_PATH
9845 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9846 soname_spec
='${libname}${release}${shared_ext}$major'
9847 shlibpath_var
=LD_LIBRARY_PATH
9848 shlibpath_overrides_runpath
=no
9849 hardcode_into_libs
=yes
9850 dynamic_linker
='GNU ld.so'
9853 freebsd
* | dragonfly
*)
9854 # DragonFly does not have aout. When/if they implement a new
9855 # versioning mechanism, adjust this.
9856 if test -x /usr
/bin
/objformat
; then
9857 objformat
=`/usr/bin/objformat`
9860 freebsd
[123]*) objformat
=aout
;;
9864 version_type
=freebsd-
$objformat
9865 case $version_type in
9867 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9872 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9876 shlibpath_var
=LD_LIBRARY_PATH
9879 shlibpath_overrides_runpath
=yes
9881 freebsd3.
[01]* | freebsdelf3.
[01]*)
9882 shlibpath_overrides_runpath
=yes
9883 hardcode_into_libs
=yes
9885 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9886 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9887 shlibpath_overrides_runpath
=no
9888 hardcode_into_libs
=yes
9890 freebsd
*) # from 4.6 on
9891 shlibpath_overrides_runpath
=yes
9892 hardcode_into_libs
=yes
9901 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9902 soname_spec
='${libname}${release}${shared_ext}$major'
9903 shlibpath_var
=LD_LIBRARY_PATH
9904 hardcode_into_libs
=yes
9907 hpux9
* | hpux10
* | hpux11
*)
9908 # Give a soname corresponding to the major version so that dld.sl refuses to
9909 # link against other versions.
9916 hardcode_into_libs
=yes
9917 dynamic_linker
="$host_os dld.so"
9918 shlibpath_var
=LD_LIBRARY_PATH
9919 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9920 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9921 soname_spec
='${libname}${release}${shared_ext}$major'
9922 if test "X$HPUX_IA64_MODE" = X32
; then
9923 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9925 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9927 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9931 hardcode_into_libs
=yes
9932 dynamic_linker
="$host_os dld.sl"
9933 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
9934 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9935 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9936 soname_spec
='${libname}${release}${shared_ext}$major'
9937 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9938 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9942 dynamic_linker
="$host_os dld.sl"
9943 shlibpath_var
=SHLIB_PATH
9944 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
9945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9946 soname_spec
='${libname}${release}${shared_ext}$major'
9949 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9950 postinstall_cmds
='chmod 555 $lib'
9957 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9958 soname_spec
='${libname}${release}${shared_ext}$major'
9959 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
9960 shlibpath_var
=LD_LIBRARY_PATH
9961 shlibpath_overrides_runpath
=no
9962 hardcode_into_libs
=yes
9965 irix5
* | irix6
* | nonstopux
*)
9967 nonstopux
*) version_type
=nonstopux
;;
9969 if test "$lt_cv_prog_gnu_ld" = yes; then
9977 soname_spec
='${libname}${release}${shared_ext}$major'
9978 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9980 irix5
* | nonstopux
*)
9984 case $LD in # libtool.m4 will add one of these switches to LD
9985 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
9986 libsuff
= shlibsuff
= libmagic
=32-bit;;
9987 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
9988 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
9989 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
9990 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
9991 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
9995 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
9996 shlibpath_overrides_runpath
=no
9997 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9998 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
9999 hardcode_into_libs
=yes
10002 # No shared lib support for Linux oldld, aout, or coff.
10003 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10007 # This must be Linux ELF.
10012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 soname_spec
='${libname}${release}${shared_ext}$major'
10014 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10015 shlibpath_var
=LD_LIBRARY_PATH
10016 shlibpath_overrides_runpath
=no
10017 # This implies no fast_install, which is unacceptable.
10018 # Some rework will be needed to allow for fast_install
10019 # before this can be enabled.
10020 hardcode_into_libs
=yes
10022 # Append ld.so.conf contents to the search path
10023 if test -f /etc
/ld.so.conf
; then
10024 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' ' '`
10025 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10028 # We used to test for /lib/ld.so.1 and disable shared libraries on
10029 # powerpc, because MkLinux only supported shared libraries with the
10030 # GNU dynamic linker. Since this was broken with cross compilers,
10031 # most powerpc-linux boxes support dynamic linking these days and
10032 # people can always --disable-shared, the test was removed, and we
10033 # assume the GNU/Linux dynamic linker is in use.
10034 dynamic_linker
='GNU/Linux ld.so'
10041 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10042 soname_spec
='${libname}${release}${shared_ext}$major'
10043 shlibpath_var
=LD_LIBRARY_PATH
10044 shlibpath_overrides_runpath
=no
10045 hardcode_into_libs
=yes
10046 dynamic_linker
='GNU ld.so'
10053 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10054 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10055 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10056 dynamic_linker
='NetBSD (a.out) ld.so'
10058 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10059 soname_spec
='${libname}${release}${shared_ext}$major'
10060 dynamic_linker
='NetBSD ld.elf_so'
10062 shlibpath_var
=LD_LIBRARY_PATH
10063 shlibpath_overrides_runpath
=yes
10064 hardcode_into_libs
=yes
10069 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10070 shlibpath_var
=LD_LIBRARY_PATH
10071 shlibpath_overrides_runpath
=yes
10078 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10079 soname_spec
='${libname}${release}${shared_ext}$major'
10080 shlibpath_var
=LD_LIBRARY_PATH
10081 shlibpath_overrides_runpath
=yes
10086 sys_lib_dlsearch_path_spec
="/usr/lib"
10088 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10090 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10091 *) need_version
=no
;;
10093 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10094 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10095 shlibpath_var
=LD_LIBRARY_PATH
10096 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10098 openbsd2.
[89] | openbsd2.
[89].
*)
10099 shlibpath_overrides_runpath
=no
10102 shlibpath_overrides_runpath
=yes
10106 shlibpath_overrides_runpath
=yes
10111 libname_spec
='$name'
10114 library_names_spec
='$libname${shared_ext} $libname.a'
10115 dynamic_linker
='OS/2 ld.exe'
10116 shlibpath_var
=LIBPATH
10119 osf3
* | osf4
* | osf5
*)
10123 soname_spec
='${libname}${release}${shared_ext}$major'
10124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10125 shlibpath_var
=LD_LIBRARY_PATH
10126 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10127 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10134 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10135 soname_spec
='${libname}${release}${shared_ext}$major'
10136 shlibpath_var
=LD_LIBRARY_PATH
10137 shlibpath_overrides_runpath
=yes
10138 hardcode_into_libs
=yes
10139 # ldd complains unless libraries are executable
10140 postinstall_cmds
='chmod +x $lib'
10145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10146 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10147 shlibpath_var
=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath
=yes
10149 if test "$with_gnu_ld" = yes; then
10157 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10158 soname_spec
='${libname}${release}${shared_ext}$major'
10159 shlibpath_var
=LD_LIBRARY_PATH
10160 case $host_vendor in
10162 shlibpath_overrides_runpath
=no
10164 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10165 runpath_var
=LD_RUN_PATH
10173 shlibpath_overrides_runpath
=no
10174 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10180 if test -d /usr
/nec
;then
10182 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10183 soname_spec
='$libname${shared_ext}.$major'
10184 shlibpath_var
=LD_LIBRARY_PATH
10188 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10189 version_type
=freebsd-elf
10192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10193 soname_spec
='${libname}${release}${shared_ext}$major'
10194 shlibpath_var
=LD_LIBRARY_PATH
10195 hardcode_into_libs
=yes
10196 if test "$with_gnu_ld" = yes; then
10197 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10198 shlibpath_overrides_runpath
=no
10200 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10201 shlibpath_overrides_runpath
=yes
10204 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10208 sys_lib_dlsearch_path_spec
='/usr/lib'
10213 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10214 soname_spec
='${libname}${release}${shared_ext}$major'
10215 shlibpath_var
=LD_LIBRARY_PATH
10222 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10223 echo "${ECHO_T}$dynamic_linker" >&6; }
10224 test "$dynamic_linker" = no
&& can_build_shared
=no
10226 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10227 if test "$GCC" = yes; then
10228 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10232 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10233 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10234 if test "${libltdl_cv_shlibext+set}" = set; then
10235 echo $ECHO_N "(cached) $ECHO_C" >&6
10239 eval libltdl_cv_shlibext
=$shrext_cmds
10242 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10243 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10244 if test -n "$libltdl_cv_shlibext"; then
10246 cat >>confdefs.h
<<_ACEOF
10247 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10253 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10254 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10255 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10256 echo $ECHO_N "(cached) $ECHO_C" >&6
10258 libltdl_cv_shlibpath_var
="$shlibpath_var"
10260 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10261 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10262 if test -n "$libltdl_cv_shlibpath_var"; then
10264 cat >>confdefs.h
<<_ACEOF
10265 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10271 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10272 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10273 if test "${libltdl_cv_sys_search_path+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10276 libltdl_cv_sys_search_path
="$sys_lib_dlsearch_path_spec"
10278 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10279 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10280 if test -n "$libltdl_cv_sys_search_path"; then
10282 for dir
in $libltdl_cv_sys_search_path; do
10283 if test -z "$sys_search_path"; then
10284 sys_search_path
="$dir"
10286 sys_search_path
="$sys_search_path$PATH_SEPARATOR$dir"
10290 cat >>confdefs.h
<<_ACEOF
10291 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10296 { echo "$as_me:$LINENO: checking for objdir" >&5
10297 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10298 if test "${libltdl_cv_objdir+set}" = set; then
10299 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 libltdl_cv_objdir
="$objdir"
10302 if test -n "$objdir"; then
10305 rm -f .libs
2>/dev
/null
10306 mkdir .libs
2>/dev
/null
10307 if test -d .libs
; then
10308 libltdl_cv_objdir
=.libs
10310 # MS-DOS does not allow filenames that begin with a dot.
10311 libltdl_cv_objdir
=_libs
10313 rmdir .libs
2>/dev
/null
10317 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10318 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10320 cat >>confdefs.h
<<_ACEOF
10321 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10329 # Check for command to grab the raw symbol name followed by C symbol from nm.
10330 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10331 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10332 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10333 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 # These are sane defaults that work on at least a few old systems.
10337 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10339 # Character class describing NM global symbol codes.
10340 symcode
='[BCDEGRST]'
10342 # Regexp to match symbols that can be accessed directly from C.
10343 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
10345 # Transform an extracted symbol line into a proper C declaration
10346 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10348 # Transform an extracted symbol line into symbol name and symbol address
10349 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'"
10351 # Define system-specific variables.
10356 cygwin
* | mingw
* | pw32
*)
10357 symcode
='[ABCDGISTW]'
10359 hpux
*) # Its linker distinguishes data from code symbols
10360 if test "$host_cpu" = ia64
; then
10361 symcode
='[ABCDEGRST]'
10363 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10364 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'"
10367 if test "$host_cpu" = ia64
; then
10368 symcode
='[ABCDGIRSTW]'
10369 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10370 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'"
10373 irix
* | nonstopux
*)
10374 symcode
='[BCDEGRST]'
10377 symcode
='[BCDEGQRST]'
10388 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10396 # Handle CRLF in mingw tool chain
10400 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10404 # If we're using GNU nm, then use its standard symbol codes.
10405 case `$NM -V 2>&1` in
10406 *GNU
* |
*'with BFD'*)
10407 symcode
='[ABCDGIRSTW]' ;;
10410 # Try without a prefix undercore, then with it.
10411 for ac_symprfx
in "" "_"; do
10413 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10414 symxfrm
="\\1 $ac_symprfx\\2 \\2"
10416 # Write the raw and C identifiers.
10417 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10419 # Check to see that the pipe works correctly.
10423 cat > conftest.
$ac_ext <<EOF
10428 void nm_test_func(){}
10432 int main(){nm_test_var='a';nm_test_func();return(0);}
10435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10436 (eval $ac_compile) 2>&5
10438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10439 (exit $ac_status); }; then
10440 # Now try to grab the symbols.
10442 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10443 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); } && test -s "$nlist"; then
10447 # Try sorting and uniquifying the output.
10448 if sort "$nlist" |
uniq > "$nlist"T
; then
10449 mv -f "$nlist"T
"$nlist"
10454 # Make sure that we snagged all the symbols we need.
10455 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
10456 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
10457 cat <<EOF > conftest.$ac_ext
10463 # Now generate the symbol file.
10464 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10466 cat <<EOF >> conftest.$ac_ext
10467 #if defined (__STDC__) && __STDC__
10468 # define lt_ptr_t void *
10470 # define lt_ptr_t char *
10474 /* The mapping between symbol names and symbols. */
10479 lt_preloaded_symbols[] =
10482 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
10483 cat <<\EOF
>> conftest.
$ac_ext
10491 # Now try linking the two files.
10492 mv conftest.
$ac_objext conftstm.
$ac_objext
10493 lt_save_LIBS
="$LIBS"
10494 lt_save_CFLAGS
="$CFLAGS"
10495 LIBS
="conftstm.$ac_objext"
10496 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10497 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10498 (eval $ac_link) 2>&5
10500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10501 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
10504 LIBS
="$lt_save_LIBS"
10505 CFLAGS
="$lt_save_CFLAGS"
10507 echo "cannot find nm_test_func in $nlist" >&5
10510 echo "cannot find nm_test_var in $nlist" >&5
10513 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10516 echo "$progname: failed program was:" >&5
10517 cat conftest.
$ac_ext >&5
10519 rm -f conftest
* conftst
*
10521 # Do not use the global_symbol_pipe unless it works.
10522 if test "$pipe_works" = yes; then
10525 lt_cv_sys_global_symbol_pipe
=
10531 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10532 lt_cv_sys_global_symbol_to_cdecl
=
10534 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10535 { echo "$as_me:$LINENO: result: failed" >&5
10536 echo "${ECHO_T}failed" >&6; }
10538 { echo "$as_me:$LINENO: result: ok" >&5
10539 echo "${ECHO_T}ok" >&6; }
10543 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10544 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10545 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10546 echo $ECHO_N "(cached) $ECHO_C" >&6
10548 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10549 libltdl_cv_preloaded_symbols
=yes
10551 libltdl_cv_preloaded_symbols
=no
10555 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10556 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10557 if test x
"$libltdl_cv_preloaded_symbols" = xyes
; then
10559 cat >>confdefs.h
<<\_ACEOF
10560 #define HAVE_PRELOADED_SYMBOLS 1
10568 ac_cpp
='$CPP $CPPFLAGS'
10569 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10570 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10571 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10574 { echo "$as_me:$LINENO: checking for shl_load" >&5
10575 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10576 if test "${ac_cv_func_shl_load+set}" = set; then
10577 echo $ECHO_N "(cached) $ECHO_C" >&6
10579 cat >conftest.
$ac_ext <<_ACEOF
10582 cat confdefs.h
>>conftest.
$ac_ext
10583 cat >>conftest.
$ac_ext <<_ACEOF
10584 /* end confdefs.h. */
10585 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10587 #define shl_load innocuous_shl_load
10589 /* System header to define __stub macros and hopefully few prototypes,
10590 which can conflict with char shl_load (); below.
10591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10592 <limits.h> exists even on freestanding compilers. */
10595 # include <limits.h>
10597 # include <assert.h>
10602 /* Override any GCC internal prototype to avoid an error.
10603 Use char because int might match the return type of a GCC
10604 builtin and then its argument prototype would still apply. */
10609 /* The GNU C library defines this for functions which it implements
10610 to always fail with ENOSYS. Some functions are actually named
10611 something starting with __ and the normal name is an alias. */
10612 #if defined __stub_shl_load || defined __stub___shl_load
10619 return shl_load ();
10624 rm -f conftest.
$ac_objext conftest
$ac_exeext
10625 if { (ac_try
="$ac_link"
10626 case "(($ac_try" in
10627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10628 *) ac_try_echo=$ac_try;;
10630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10631 (eval "$ac_link") 2>conftest.er1
10633 grep -v '^ *+' conftest.er1 >conftest.err
10635 cat conftest.err >&5
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); } &&
10638 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10639 { (case "(($ac_try" in
10640 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10641 *) ac_try_echo
=$ac_try;;
10643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10644 (eval "$ac_try") 2>&5
10646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10647 (exit $ac_status); }; } &&
10648 { ac_try
='test -s conftest$ac_exeext'
10649 { (case "(($ac_try" in
10650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10651 *) ac_try_echo=$ac_try;;
10653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10654 (eval "$ac_try") 2>&5
10656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10657 (exit $ac_status); }; }; then
10658 ac_cv_func_shl_load=yes
10660 echo "$as_me: failed program was:" >&5
10661 sed 's/^/| /' conftest.$ac_ext >&5
10663 ac_cv_func_shl_load=no
10666 rm -f core conftest.err conftest.$ac_objext \
10667 conftest$ac_exeext conftest.$ac_ext
10669 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10670 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10671 if test $ac_cv_func_shl_load = yes; then
10673 cat >>confdefs.h <<\_ACEOF
10674 #define HAVE_SHL_LOAD 1
10678 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10679 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10680 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 ac_check_lib_save_LIBS=$LIBS
10685 cat >conftest.$ac_ext <<_ACEOF
10688 cat confdefs.h >>conftest.$ac_ext
10689 cat >>conftest.$ac_ext <<_ACEOF
10690 /* end confdefs.h. */
10692 /* Override any GCC internal prototype to avoid an error.
10693 Use char because int might match the return type of a GCC
10694 builtin and then its argument prototype would still apply. */
10702 return shl_load ();
10707 rm -f conftest.$ac_objext conftest$ac_exeext
10708 if { (ac_try="$ac_link"
10709 case "(($ac_try" in
10710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10711 *) ac_try_echo
=$ac_try;;
10713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10714 (eval "$ac_link") 2>conftest.er1
10716 grep -v '^ *+' conftest.er1
>conftest.err
10718 cat conftest.err
>&5
10719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10720 (exit $ac_status); } &&
10721 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10722 { (case "(($ac_try" in
10723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_try") 2>&5
10729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10730 (exit $ac_status); }; } &&
10731 { ac_try='test -s conftest$ac_exeext'
10732 { (case "(($ac_try" in
10733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10734 *) ac_try_echo
=$ac_try;;
10736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10737 (eval "$ac_try") 2>&5
10739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10740 (exit $ac_status); }; }; then
10741 ac_cv_lib_dld_shl_load
=yes
10743 echo "$as_me: failed program was:" >&5
10744 sed 's/^/| /' conftest.
$ac_ext >&5
10746 ac_cv_lib_dld_shl_load
=no
10749 rm -f core conftest.err conftest.
$ac_objext \
10750 conftest
$ac_exeext conftest.
$ac_ext
10751 LIBS
=$ac_check_lib_save_LIBS
10753 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10754 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10755 if test $ac_cv_lib_dld_shl_load = yes; then
10757 cat >>confdefs.h
<<\_ACEOF
10758 #define HAVE_SHL_LOAD 1
10761 LIBADD_DL
="$LIBADD_DL -ldld"
10763 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10764 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10765 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10766 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 ac_check_lib_save_LIBS
=$LIBS
10770 cat >conftest.
$ac_ext <<_ACEOF
10773 cat confdefs.h
>>conftest.
$ac_ext
10774 cat >>conftest.
$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10777 /* Override any GCC internal prototype to avoid an error.
10778 Use char because int might match the return type of a GCC
10779 builtin and then its argument prototype would still apply. */
10792 rm -f conftest.
$ac_objext conftest
$ac_exeext
10793 if { (ac_try
="$ac_link"
10794 case "(($ac_try" in
10795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10796 *) ac_try_echo=$ac_try;;
10798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10799 (eval "$ac_link") 2>conftest.er1
10801 grep -v '^ *+' conftest.er1 >conftest.err
10803 cat conftest.err >&5
10804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10805 (exit $ac_status); } &&
10806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10807 { (case "(($ac_try" in
10808 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10809 *) ac_try_echo
=$ac_try;;
10811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10812 (eval "$ac_try") 2>&5
10814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10815 (exit $ac_status); }; } &&
10816 { ac_try
='test -s conftest$ac_exeext'
10817 { (case "(($ac_try" in
10818 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10819 *) ac_try_echo=$ac_try;;
10821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10822 (eval "$ac_try") 2>&5
10824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10825 (exit $ac_status); }; }; then
10826 ac_cv_lib_dl_dlopen=yes
10828 echo "$as_me: failed program was:" >&5
10829 sed 's/^/| /' conftest.$ac_ext >&5
10831 ac_cv_lib_dl_dlopen=no
10834 rm -f core conftest.err conftest.$ac_objext \
10835 conftest$ac_exeext conftest.$ac_ext
10836 LIBS=$ac_check_lib_save_LIBS
10838 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10839 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10840 if test $ac_cv_lib_dl_dlopen = yes; then
10842 cat >>confdefs.h <<\_ACEOF
10843 #define HAVE_LIBDL 1
10846 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10848 cat >conftest.$ac_ext <<_ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10855 # include <dlfcn.h>
10866 rm -f conftest.$ac_objext conftest$ac_exeext
10867 if { (ac_try="$ac_link"
10868 case "(($ac_try" in
10869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10870 *) ac_try_echo
=$ac_try;;
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_link") 2>conftest.er1
10875 grep -v '^ *+' conftest.er1
>conftest.err
10877 cat conftest.err
>&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } &&
10880 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10881 { (case "(($ac_try" in
10882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10883 *) ac_try_echo=$ac_try;;
10885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10886 (eval "$ac_try") 2>&5
10888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10889 (exit $ac_status); }; } &&
10890 { ac_try='test -s conftest$ac_exeext'
10891 { (case "(($ac_try" in
10892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10893 *) ac_try_echo
=$ac_try;;
10895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10896 (eval "$ac_try") 2>&5
10898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); }; }; then
10901 cat >>confdefs.h
<<\_ACEOF
10902 #define HAVE_LIBDL 1
10904 libltdl_cv_func_dlopen
="yes"
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.
$ac_ext >&5
10909 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10910 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10911 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10912 echo $ECHO_N "(cached) $ECHO_C" >&6
10914 ac_check_lib_save_LIBS
=$LIBS
10915 LIBS
="-lsvld $LIBS"
10916 cat >conftest.
$ac_ext <<_ACEOF
10919 cat confdefs.h
>>conftest.
$ac_ext
10920 cat >>conftest.
$ac_ext <<_ACEOF
10921 /* end confdefs.h. */
10923 /* Override any GCC internal prototype to avoid an error.
10924 Use char because int might match the return type of a GCC
10925 builtin and then its argument prototype would still apply. */
10938 rm -f conftest.
$ac_objext conftest
$ac_exeext
10939 if { (ac_try
="$ac_link"
10940 case "(($ac_try" in
10941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10942 *) ac_try_echo=$ac_try;;
10944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10945 (eval "$ac_link") 2>conftest.er1
10947 grep -v '^ *+' conftest.er1 >conftest.err
10949 cat conftest.err >&5
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); } &&
10952 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10953 { (case "(($ac_try" in
10954 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10955 *) ac_try_echo
=$ac_try;;
10957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10958 (eval "$ac_try") 2>&5
10960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10961 (exit $ac_status); }; } &&
10962 { ac_try
='test -s conftest$ac_exeext'
10963 { (case "(($ac_try" in
10964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10965 *) ac_try_echo=$ac_try;;
10967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10968 (eval "$ac_try") 2>&5
10970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10971 (exit $ac_status); }; }; then
10972 ac_cv_lib_svld_dlopen=yes
10974 echo "$as_me: failed program was:" >&5
10975 sed 's/^/| /' conftest.$ac_ext >&5
10977 ac_cv_lib_svld_dlopen=no
10980 rm -f core conftest.err conftest.$ac_objext \
10981 conftest$ac_exeext conftest.$ac_ext
10982 LIBS=$ac_check_lib_save_LIBS
10984 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10985 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10986 if test $ac_cv_lib_svld_dlopen = yes; then
10988 cat >>confdefs.h <<\_ACEOF
10989 #define HAVE_LIBDL 1
10992 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10994 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10995 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10996 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10997 echo $ECHO_N "(cached) $ECHO_C" >&6
10999 ac_check_lib_save_LIBS=$LIBS
11001 cat >conftest.$ac_ext <<_ACEOF
11004 cat confdefs.h >>conftest.$ac_ext
11005 cat >>conftest.$ac_ext <<_ACEOF
11006 /* end confdefs.h. */
11008 /* Override any GCC internal prototype to avoid an error.
11009 Use char because int might match the return type of a GCC
11010 builtin and then its argument prototype would still apply. */
11018 return dld_link ();
11023 rm -f conftest.$ac_objext conftest$ac_exeext
11024 if { (ac_try="$ac_link"
11025 case "(($ac_try" in
11026 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11027 *) ac_try_echo
=$ac_try;;
11029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11030 (eval "$ac_link") 2>conftest.er1
11032 grep -v '^ *+' conftest.er1
>conftest.err
11034 cat conftest.err
>&5
11035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11036 (exit $ac_status); } &&
11037 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11038 { (case "(($ac_try" in
11039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11040 *) ac_try_echo=$ac_try;;
11042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11043 (eval "$ac_try") 2>&5
11045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11046 (exit $ac_status); }; } &&
11047 { ac_try='test -s conftest$ac_exeext'
11048 { (case "(($ac_try" in
11049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11050 *) ac_try_echo
=$ac_try;;
11052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11053 (eval "$ac_try") 2>&5
11055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11056 (exit $ac_status); }; }; then
11057 ac_cv_lib_dld_dld_link
=yes
11059 echo "$as_me: failed program was:" >&5
11060 sed 's/^/| /' conftest.
$ac_ext >&5
11062 ac_cv_lib_dld_dld_link
=no
11065 rm -f core conftest.err conftest.
$ac_objext \
11066 conftest
$ac_exeext conftest.
$ac_ext
11067 LIBS
=$ac_check_lib_save_LIBS
11069 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11070 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11071 if test $ac_cv_lib_dld_dld_link = yes; then
11073 cat >>confdefs.h
<<\_ACEOF
11077 LIBADD_DL
="$LIBADD_DL -ldld"
11079 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11080 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11081 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11084 cat >conftest.
$ac_ext <<_ACEOF
11087 cat confdefs.h
>>conftest.
$ac_ext
11088 cat >>conftest.
$ac_ext <<_ACEOF
11089 /* end confdefs.h. */
11090 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11091 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11092 #define _dyld_func_lookup innocuous__dyld_func_lookup
11094 /* System header to define __stub macros and hopefully few prototypes,
11095 which can conflict with char _dyld_func_lookup (); below.
11096 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11097 <limits.h> exists even on freestanding compilers. */
11100 # include <limits.h>
11102 # include <assert.h>
11105 #undef _dyld_func_lookup
11107 /* Override any GCC internal prototype to avoid an error.
11108 Use char because int might match the return type of a GCC
11109 builtin and then its argument prototype would still apply. */
11113 char _dyld_func_lookup ();
11114 /* The GNU C library defines this for functions which it implements
11115 to always fail with ENOSYS. Some functions are actually named
11116 something starting with __ and the normal name is an alias. */
11117 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11124 return _dyld_func_lookup ();
11129 rm -f conftest.
$ac_objext conftest
$ac_exeext
11130 if { (ac_try
="$ac_link"
11131 case "(($ac_try" in
11132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11133 *) ac_try_echo=$ac_try;;
11135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11136 (eval "$ac_link") 2>conftest.er1
11138 grep -v '^ *+' conftest.er1 >conftest.err
11140 cat conftest.err >&5
11141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11142 (exit $ac_status); } &&
11143 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11144 { (case "(($ac_try" in
11145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11146 *) ac_try_echo
=$ac_try;;
11148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11149 (eval "$ac_try") 2>&5
11151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11152 (exit $ac_status); }; } &&
11153 { ac_try
='test -s conftest$ac_exeext'
11154 { (case "(($ac_try" in
11155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11156 *) ac_try_echo=$ac_try;;
11158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11159 (eval "$ac_try") 2>&5
11161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11162 (exit $ac_status); }; }; then
11163 ac_cv_func__dyld_func_lookup=yes
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11168 ac_cv_func__dyld_func_lookup=no
11171 rm -f core conftest.err conftest.$ac_objext \
11172 conftest$ac_exeext conftest.$ac_ext
11174 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11175 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11176 if test $ac_cv_func__dyld_func_lookup = yes; then
11178 cat >>confdefs.h <<\_ACEOF
11179 #define HAVE_DYLD 1
11193 rm -f core conftest.err conftest.$ac_objext \
11194 conftest$ac_exeext conftest.$ac_ext
11205 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11207 lt_save_LIBS="$LIBS"
11208 LIBS="$LIBS $LIBADD_DL"
11210 for ac_func in dlerror
11212 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11213 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11215 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11218 cat >conftest.$ac_ext <<_ACEOF
11221 cat confdefs.h >>conftest.$ac_ext
11222 cat >>conftest.$ac_ext <<_ACEOF
11223 /* end confdefs.h. */
11224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11226 #define $ac_func innocuous_$ac_func
11228 /* System header to define __stub macros and hopefully few prototypes,
11229 which can conflict with char $ac_func (); below.
11230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11231 <limits.h> exists even on freestanding compilers. */
11234 # include <limits.h>
11236 # include <assert.h>
11241 /* Override any GCC internal prototype to avoid an error.
11242 Use char because int might match the return type of a GCC
11243 builtin and then its argument prototype would still apply. */
11248 /* The GNU C library defines this for functions which it implements
11249 to always fail with ENOSYS. Some functions are actually named
11250 something starting with __ and the normal name is an alias. */
11251 #if defined __stub_$ac_func || defined __stub___$ac_func
11258 return $ac_func ();
11263 rm -f conftest.$ac_objext conftest$ac_exeext
11264 if { (ac_try="$ac_link"
11265 case "(($ac_try" in
11266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11267 *) ac_try_echo
=$ac_try;;
11269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11270 (eval "$ac_link") 2>conftest.er1
11272 grep -v '^ *+' conftest.er1
>conftest.err
11274 cat conftest.err
>&5
11275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11276 (exit $ac_status); } &&
11277 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11278 { (case "(($ac_try" in
11279 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11280 *) ac_try_echo=$ac_try;;
11282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11283 (eval "$ac_try") 2>&5
11285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11286 (exit $ac_status); }; } &&
11287 { ac_try='test -s conftest$ac_exeext'
11288 { (case "(($ac_try" in
11289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11290 *) ac_try_echo
=$ac_try;;
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_try") 2>&5
11295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11296 (exit $ac_status); }; }; then
11297 eval "$as_ac_var=yes"
11299 echo "$as_me: failed program was:" >&5
11300 sed 's/^/| /' conftest.
$ac_ext >&5
11302 eval "$as_ac_var=no"
11305 rm -f core conftest.err conftest.
$ac_objext \
11306 conftest
$ac_exeext conftest.
$ac_ext
11308 ac_res
=`eval echo '${'$as_ac_var'}'`
11309 { echo "$as_me:$LINENO: result: $ac_res" >&5
11310 echo "${ECHO_T}$ac_res" >&6; }
11311 if test `eval echo '${'$as_ac_var'}'` = yes; then
11312 cat >>confdefs.h
<<_ACEOF
11313 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11319 LIBS
="$lt_save_LIBS"
11322 ac_cpp
='$CPP $CPPFLAGS'
11323 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11324 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11325 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11329 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11330 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11331 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11334 ac_cv_sys_symbol_underscore
=no
11335 cat > conftest.
$ac_ext <<EOF
11336 void nm_test_func(){}
11337 int main(){nm_test_func;return 0;}
11339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11340 (eval $ac_compile) 2>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; then
11344 # Now try to grab the symbols.
11345 ac_nlist
=conftest.nm
11346 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11347 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5
11349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11350 (exit $ac_status); } && test -s "$ac_nlist"; then
11351 # See whether the symbols have a leading underscore.
11352 if grep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
11353 ac_cv_sys_symbol_underscore
=yes
11355 if grep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
11358 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11362 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11365 echo "configure: failed program was:" >&5
11371 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11372 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11375 if test x
"$ac_cv_sys_symbol_underscore" = xyes
; then
11376 if test x
"$libltdl_cv_func_dlopen" = xyes ||
11377 test x
"$libltdl_cv_lib_dl_dlopen" = xyes
; then
11378 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11379 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11380 if test "${libltdl_cv_need_uscore+set}" = set; then
11381 echo $ECHO_N "(cached) $ECHO_C" >&6
11383 libltdl_cv_need_uscore
=unknown
11385 LIBS
="$LIBS $LIBADD_DL"
11386 if test "$cross_compiling" = yes; then :
11387 libltdl_cv_need_uscore
=cross
11389 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11390 lt_status
=$lt_dlunknown
11391 cat > conftest.
$ac_ext <<EOF
11392 #line 11392 "configure"
11393 #include "confdefs.h"
11402 # define LT_DLGLOBAL RTLD_GLOBAL
11405 # define LT_DLGLOBAL DL_GLOBAL
11407 # define LT_DLGLOBAL 0
11411 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11412 find out it does not work in some platform. */
11413 #ifndef LT_DLLAZY_OR_NOW
11415 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11418 # define LT_DLLAZY_OR_NOW DL_LAZY
11421 # define LT_DLLAZY_OR_NOW RTLD_NOW
11424 # define LT_DLLAZY_OR_NOW DL_NOW
11426 # define LT_DLLAZY_OR_NOW 0
11434 extern "C" void exit (int);
11437 void fnord() { int i=42;}
11440 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11441 int status = $lt_dlunknown;
11445 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11446 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11447 /* dlclose (self); */
11455 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11456 (eval $ac_link) 2>&5
11458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11459 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11460 (.
/conftest
; exit; ) >&5 2>/dev
/null
11462 case x
$lt_status in
11463 x
$lt_dlno_uscore) libltdl_cv_need_uscore
=no
;;
11464 x
$lt_dlneed_uscore) libltdl_cv_need_uscore
=yes ;;
11465 x
$lt_dlunknown|x
*) ;;
11468 # compilation failed
11477 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11478 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11482 if test x
"$libltdl_cv_need_uscore" = xyes
; then
11484 cat >>confdefs.h
<<\_ACEOF
11485 #define NEED_USCORE 1
11491 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11492 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11493 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11494 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 # PORTME does your system automatically load deplibs for dlopen?
11497 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11498 # For now, we just catch OSes we know something about -- in the
11499 # future, we'll try test this programmatically.
11500 libltdl_cv_sys_dlopen_deplibs
=unknown
11502 aix3
*|aix4.1.
*|aix4.2.
*)
11503 # Unknown whether this is true for these versions of AIX, but
11504 # we want this `case' here to explicitly catch those versions.
11505 libltdl_cv_sys_dlopen_deplibs
=unknown
11508 libltdl_cv_sys_dlopen_deplibs
=yes
11511 # Assuming the user has installed a libdl from somewhere, this is true
11512 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11513 libltdl_cv_sys_dlopen_deplibs
=yes
11515 gnu
* | linux
* | kfreebsd
*-gnu | knetbsd
*-gnu)
11516 # GNU and its variants, using gnu ld.so (Glibc)
11517 libltdl_cv_sys_dlopen_deplibs
=yes
11520 libltdl_cv_sys_dlopen_deplibs
=yes
11523 libltdl_cv_sys_dlopen_deplibs
=yes
11525 irix
[12345]*|irix6.
[01]*)
11526 # Catch all versions of IRIX before 6.2, and indicate that we don't
11527 # know how it worked for any of those versions.
11528 libltdl_cv_sys_dlopen_deplibs
=unknown
11531 # The case above catches anything before 6.2, and it's known that
11532 # at 6.2 and later dlopen does load deplibs.
11533 libltdl_cv_sys_dlopen_deplibs
=yes
11536 libltdl_cv_sys_dlopen_deplibs
=yes
11539 libltdl_cv_sys_dlopen_deplibs
=yes
11542 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11543 # it did *not* use an RPATH in a shared library to find objects the
11544 # library depends on, so we explictly say `no'.
11545 libltdl_cv_sys_dlopen_deplibs
=no
11547 osf5.0|osf5.0a|osf5.1
)
11548 # dlopen *does* load deplibs and with the right loader patch applied
11549 # it even uses RPATH in a shared library to search for shared objects
11550 # that the library depends on, but there's no easy way to know if that
11551 # patch is installed. Since this is the case, all we can really
11552 # say is unknown -- it depends on the patch being installed. If
11553 # it is, this changes to `yes'. Without it, it would be `no'.
11554 libltdl_cv_sys_dlopen_deplibs
=unknown
11557 # the two cases above should catch all versions of osf <= 5.1. Read
11558 # the comments above for what we know about them.
11559 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11560 # is used to find them so we can finally say `yes'.
11561 libltdl_cv_sys_dlopen_deplibs
=yes
11564 libltdl_cv_sys_dlopen_deplibs
=yes
11566 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11567 libltdl_cv_sys_dlopen_deplibs
=yes
11572 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11573 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11574 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11576 cat >>confdefs.h
<<\_ACEOF
11577 #define LTDL_DLOPEN_DEPLIBS 1
11583 for ac_header
in argz.h
11585 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11586 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11589 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11590 echo $ECHO_N "(cached) $ECHO_C" >&6
11592 ac_res
=`eval echo '${'$as_ac_Header'}'`
11593 { echo "$as_me:$LINENO: result: $ac_res" >&5
11594 echo "${ECHO_T}$ac_res" >&6; }
11596 # Is the header compilable?
11597 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11599 cat >conftest.
$ac_ext <<_ACEOF
11602 cat confdefs.h
>>conftest.
$ac_ext
11603 cat >>conftest.
$ac_ext <<_ACEOF
11604 /* end confdefs.h. */
11605 $ac_includes_default
11606 #include <$ac_header>
11608 rm -f conftest.
$ac_objext
11609 if { (ac_try
="$ac_compile"
11610 case "(($ac_try" in
11611 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11612 *) ac_try_echo=$ac_try;;
11614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11615 (eval "$ac_compile") 2>conftest.er1
11617 grep -v '^ *+' conftest.er1 >conftest.err
11619 cat conftest.err >&5
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); } &&
11622 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11623 { (case "(($ac_try" in
11624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11625 *) ac_try_echo
=$ac_try;;
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_try") 2>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; } &&
11632 { ac_try
='test -s conftest.$ac_objext'
11633 { (case "(($ac_try" in
11634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11635 *) ac_try_echo=$ac_try;;
11637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11638 (eval "$ac_try") 2>&5
11640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11641 (exit $ac_status); }; }; then
11642 ac_header_compiler=yes
11644 echo "$as_me: failed program was:" >&5
11645 sed 's/^/| /' conftest.$ac_ext >&5
11647 ac_header_compiler=no
11650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11651 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11652 echo "${ECHO_T}$ac_header_compiler" >&6; }
11654 # Is the header present?
11655 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11656 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11657 cat >conftest.$ac_ext <<_ACEOF
11660 cat confdefs.h >>conftest.$ac_ext
11661 cat >>conftest.$ac_ext <<_ACEOF
11662 /* end confdefs.h. */
11663 #include <$ac_header>
11665 if { (ac_try="$ac_cpp conftest.$ac_ext"
11666 case "(($ac_try" in
11667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11668 *) ac_try_echo
=$ac_try;;
11670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11671 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11673 grep -v '^ *+' conftest.er1
>conftest.err
11675 cat conftest.err
>&5
11676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11677 (exit $ac_status); } >/dev
/null
; then
11678 if test -s conftest.err
; then
11679 ac_cpp_err
=$ac_c_preproc_warn_flag
11680 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11687 if test -z "$ac_cpp_err"; then
11688 ac_header_preproc
=yes
11690 echo "$as_me: failed program was:" >&5
11691 sed 's/^/| /' conftest.
$ac_ext >&5
11693 ac_header_preproc
=no
11696 rm -f conftest.err conftest.
$ac_ext
11697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11698 echo "${ECHO_T}$ac_header_preproc" >&6; }
11700 # So? What about this header?
11701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11707 ac_header_preproc
=yes
11710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11723 ## ----------------------------------- ##
11724 ## Report this to llvmbugs@cs.uiuc.edu ##
11725 ## ----------------------------------- ##
11727 ) |
sed "s/^/$as_me: WARNING: /" >&2
11730 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11731 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11732 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 eval "$as_ac_Header=\$ac_header_preproc"
11737 ac_res
=`eval echo '${'$as_ac_Header'}'`
11738 { echo "$as_me:$LINENO: result: $ac_res" >&5
11739 echo "${ECHO_T}$ac_res" >&6; }
11742 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11743 cat >>confdefs.h
<<_ACEOF
11744 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11752 { echo "$as_me:$LINENO: checking for error_t" >&5
11753 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11754 if test "${ac_cv_type_error_t+set}" = set; then
11755 echo $ECHO_N "(cached) $ECHO_C" >&6
11757 cat >conftest.
$ac_ext <<_ACEOF
11760 cat confdefs.h
>>conftest.
$ac_ext
11761 cat >>conftest.
$ac_ext <<_ACEOF
11762 /* end confdefs.h. */
11767 typedef error_t ac__type_new_;
11771 if ((ac__type_new_ *) 0)
11773 if (sizeof (ac__type_new_))
11779 rm -f conftest.
$ac_objext
11780 if { (ac_try
="$ac_compile"
11781 case "(($ac_try" in
11782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11788 grep -v '^ *+' conftest.er1 >conftest.err
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } &&
11793 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11794 { (case "(($ac_try" in
11795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11796 *) ac_try_echo
=$ac_try;;
11798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11799 (eval "$ac_try") 2>&5
11801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11802 (exit $ac_status); }; } &&
11803 { ac_try
='test -s conftest.$ac_objext'
11804 { (case "(($ac_try" in
11805 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11806 *) ac_try_echo=$ac_try;;
11808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11809 (eval "$ac_try") 2>&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); }; }; then
11813 ac_cv_type_error_t=yes
11815 echo "$as_me: failed program was:" >&5
11816 sed 's/^/| /' conftest.$ac_ext >&5
11818 ac_cv_type_error_t=no
11821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11824 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11825 if test $ac_cv_type_error_t = yes; then
11827 cat >>confdefs.h <<_ACEOF
11828 #define HAVE_ERROR_T 1
11834 cat >>confdefs.h <<\_ACEOF
11835 #define error_t int
11846 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11848 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11849 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11850 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11851 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11852 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 cat >conftest.$ac_ext <<_ACEOF
11857 cat confdefs.h >>conftest.$ac_ext
11858 cat >>conftest.$ac_ext <<_ACEOF
11859 /* end confdefs.h. */
11860 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11861 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11862 #define $ac_func innocuous_$ac_func
11864 /* System header to define __stub macros and hopefully few prototypes,
11865 which can conflict with char $ac_func (); below.
11866 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11867 <limits.h> exists even on freestanding compilers. */
11870 # include <limits.h>
11872 # include <assert.h>
11877 /* Override any GCC internal prototype to avoid an error.
11878 Use char because int might match the return type of a GCC
11879 builtin and then its argument prototype would still apply. */
11884 /* The GNU C library defines this for functions which it implements
11885 to always fail with ENOSYS. Some functions are actually named
11886 something starting with __ and the normal name is an alias. */
11887 #if defined __stub_$ac_func || defined __stub___$ac_func
11894 return $ac_func ();
11899 rm -f conftest.$ac_objext conftest$ac_exeext
11900 if { (ac_try="$ac_link"
11901 case "(($ac_try" in
11902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11903 *) ac_try_echo
=$ac_try;;
11905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11906 (eval "$ac_link") 2>conftest.er1
11908 grep -v '^ *+' conftest.er1
>conftest.err
11910 cat conftest.err
>&5
11911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11912 (exit $ac_status); } &&
11913 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11914 { (case "(($ac_try" in
11915 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11916 *) ac_try_echo=$ac_try;;
11918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11919 (eval "$ac_try") 2>&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); }; } &&
11923 { ac_try='test -s conftest$ac_exeext'
11924 { (case "(($ac_try" in
11925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11926 *) ac_try_echo
=$ac_try;;
11928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11929 (eval "$ac_try") 2>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); }; }; then
11933 eval "$as_ac_var=yes"
11935 echo "$as_me: failed program was:" >&5
11936 sed 's/^/| /' conftest.
$ac_ext >&5
11938 eval "$as_ac_var=no"
11941 rm -f core conftest.err conftest.
$ac_objext \
11942 conftest
$ac_exeext conftest.
$ac_ext
11944 ac_res
=`eval echo '${'$as_ac_var'}'`
11945 { echo "$as_me:$LINENO: result: $ac_res" >&5
11946 echo "${ECHO_T}$ac_res" >&6; }
11947 if test `eval echo '${'$as_ac_var'}'` = yes; then
11948 cat >>confdefs.h
<<_ACEOF
11949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11982 for ac_header
in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11985 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11986 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11989 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11990 echo $ECHO_N "(cached) $ECHO_C" >&6
11992 ac_res
=`eval echo '${'$as_ac_Header'}'`
11993 { echo "$as_me:$LINENO: result: $ac_res" >&5
11994 echo "${ECHO_T}$ac_res" >&6; }
11996 # Is the header compilable?
11997 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11998 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11999 cat >conftest.
$ac_ext <<_ACEOF
12002 cat confdefs.h
>>conftest.
$ac_ext
12003 cat >>conftest.
$ac_ext <<_ACEOF
12004 /* end confdefs.h. */
12005 $ac_includes_default
12006 #include <$ac_header>
12008 rm -f conftest.
$ac_objext
12009 if { (ac_try
="$ac_compile"
12010 case "(($ac_try" in
12011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_compile") 2>conftest.er1
12017 grep -v '^ *+' conftest.er1 >conftest.err
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } &&
12022 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12023 { (case "(($ac_try" in
12024 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12025 *) ac_try_echo
=$ac_try;;
12027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12028 (eval "$ac_try") 2>&5
12030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12031 (exit $ac_status); }; } &&
12032 { ac_try
='test -s conftest.$ac_objext'
12033 { (case "(($ac_try" in
12034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12035 *) ac_try_echo=$ac_try;;
12037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12038 (eval "$ac_try") 2>&5
12040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12041 (exit $ac_status); }; }; then
12042 ac_header_compiler=yes
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12047 ac_header_compiler=no
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12052 echo "${ECHO_T}$ac_header_compiler" >&6; }
12054 # Is the header present?
12055 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12056 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12057 cat >conftest.$ac_ext <<_ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 #include <$ac_header>
12065 if { (ac_try="$ac_cpp conftest.$ac_ext"
12066 case "(($ac_try" in
12067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12068 *) ac_try_echo
=$ac_try;;
12070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12073 grep -v '^ *+' conftest.er1
>conftest.err
12075 cat conftest.err
>&5
12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12077 (exit $ac_status); } >/dev
/null
; then
12078 if test -s conftest.err
; then
12079 ac_cpp_err
=$ac_c_preproc_warn_flag
12080 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12087 if test -z "$ac_cpp_err"; then
12088 ac_header_preproc
=yes
12090 echo "$as_me: failed program was:" >&5
12091 sed 's/^/| /' conftest.
$ac_ext >&5
12093 ac_header_preproc
=no
12096 rm -f conftest.err conftest.
$ac_ext
12097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12098 echo "${ECHO_T}$ac_header_preproc" >&6; }
12100 # So? What about this header?
12101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12103 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12104 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12105 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12106 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12107 ac_header_preproc
=yes
12110 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12111 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12112 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12113 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12114 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12115 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12116 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12117 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12118 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12119 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12120 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12121 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12123 ## ----------------------------------- ##
12124 ## Report this to llvmbugs@cs.uiuc.edu ##
12125 ## ----------------------------------- ##
12127 ) |
sed "s/^/$as_me: WARNING: /" >&2
12130 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12131 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12132 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12133 echo $ECHO_N "(cached) $ECHO_C" >&6
12135 eval "$as_ac_Header=\$ac_header_preproc"
12137 ac_res
=`eval echo '${'$as_ac_Header'}'`
12138 { echo "$as_me:$LINENO: result: $ac_res" >&5
12139 echo "${ECHO_T}$ac_res" >&6; }
12142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12143 cat >>confdefs.h
<<_ACEOF
12144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12155 for ac_header
in dl.h sys
/dl.h dld.h mach-o
/dyld.h
12157 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12158 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12161 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12162 echo $ECHO_N "(cached) $ECHO_C" >&6
12164 ac_res
=`eval echo '${'$as_ac_Header'}'`
12165 { echo "$as_me:$LINENO: result: $ac_res" >&5
12166 echo "${ECHO_T}$ac_res" >&6; }
12168 # Is the header compilable?
12169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12171 cat >conftest.
$ac_ext <<_ACEOF
12174 cat confdefs.h
>>conftest.
$ac_ext
12175 cat >>conftest.
$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12177 $ac_includes_default
12178 #include <$ac_header>
12180 rm -f conftest.
$ac_objext
12181 if { (ac_try
="$ac_compile"
12182 case "(($ac_try" in
12183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12189 grep -v '^ *+' conftest.er1 >conftest.err
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } &&
12194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12195 { (case "(($ac_try" in
12196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12197 *) ac_try_echo
=$ac_try;;
12199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12200 (eval "$ac_try") 2>&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); }; } &&
12204 { ac_try
='test -s conftest.$ac_objext'
12205 { (case "(($ac_try" in
12206 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12207 *) ac_try_echo=$ac_try;;
12209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12210 (eval "$ac_try") 2>&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); }; }; then
12214 ac_header_compiler=yes
12216 echo "$as_me: failed program was:" >&5
12217 sed 's/^/| /' conftest.$ac_ext >&5
12219 ac_header_compiler=no
12222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12224 echo "${ECHO_T}$ac_header_compiler" >&6; }
12226 # Is the header present?
12227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12229 cat >conftest.$ac_ext <<_ACEOF
12232 cat confdefs.h >>conftest.$ac_ext
12233 cat >>conftest.$ac_ext <<_ACEOF
12234 /* end confdefs.h. */
12235 #include <$ac_header>
12237 if { (ac_try="$ac_cpp conftest.$ac_ext"
12238 case "(($ac_try" in
12239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12240 *) ac_try_echo
=$ac_try;;
12242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12245 grep -v '^ *+' conftest.er1
>conftest.err
12247 cat conftest.err
>&5
12248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12249 (exit $ac_status); } >/dev
/null
; then
12250 if test -s conftest.err
; then
12251 ac_cpp_err
=$ac_c_preproc_warn_flag
12252 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12259 if test -z "$ac_cpp_err"; then
12260 ac_header_preproc
=yes
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.
$ac_ext >&5
12265 ac_header_preproc
=no
12268 rm -f conftest.err conftest.
$ac_ext
12269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12270 echo "${ECHO_T}$ac_header_preproc" >&6; }
12272 # So? What about this header?
12273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12279 ac_header_preproc
=yes
12282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12295 ## ----------------------------------- ##
12296 ## Report this to llvmbugs@cs.uiuc.edu ##
12297 ## ----------------------------------- ##
12299 ) |
sed "s/^/$as_me: WARNING: /" >&2
12302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12304 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 eval "$as_ac_Header=\$ac_header_preproc"
12309 ac_res
=`eval echo '${'$as_ac_Header'}'`
12310 { echo "$as_me:$LINENO: result: $ac_res" >&5
12311 echo "${ECHO_T}$ac_res" >&6; }
12314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12315 cat >>confdefs.h
<<_ACEOF
12316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12325 for ac_header
in string.h
strings.h
12327 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12328 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12331 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12332 echo $ECHO_N "(cached) $ECHO_C" >&6
12334 ac_res
=`eval echo '${'$as_ac_Header'}'`
12335 { echo "$as_me:$LINENO: result: $ac_res" >&5
12336 echo "${ECHO_T}$ac_res" >&6; }
12338 # Is the header compilable?
12339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12341 cat >conftest.
$ac_ext <<_ACEOF
12344 cat confdefs.h
>>conftest.
$ac_ext
12345 cat >>conftest.
$ac_ext <<_ACEOF
12346 /* end confdefs.h. */
12347 $ac_includes_default
12348 #include <$ac_header>
12350 rm -f conftest.
$ac_objext
12351 if { (ac_try
="$ac_compile"
12352 case "(($ac_try" in
12353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12354 *) ac_try_echo=$ac_try;;
12356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12357 (eval "$ac_compile") 2>conftest.er1
12359 grep -v '^ *+' conftest.er1 >conftest.err
12361 cat conftest.err >&5
12362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12363 (exit $ac_status); } &&
12364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12365 { (case "(($ac_try" in
12366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12367 *) ac_try_echo
=$ac_try;;
12369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12370 (eval "$ac_try") 2>&5
12372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12373 (exit $ac_status); }; } &&
12374 { ac_try
='test -s conftest.$ac_objext'
12375 { (case "(($ac_try" in
12376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12377 *) ac_try_echo=$ac_try;;
12379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12380 (eval "$ac_try") 2>&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); }; }; then
12384 ac_header_compiler=yes
12386 echo "$as_me: failed program was:" >&5
12387 sed 's/^/| /' conftest.$ac_ext >&5
12389 ac_header_compiler=no
12392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12393 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12394 echo "${ECHO_T}$ac_header_compiler" >&6; }
12396 # Is the header present?
12397 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12398 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12399 cat >conftest.$ac_ext <<_ACEOF
12402 cat confdefs.h >>conftest.$ac_ext
12403 cat >>conftest.$ac_ext <<_ACEOF
12404 /* end confdefs.h. */
12405 #include <$ac_header>
12407 if { (ac_try="$ac_cpp conftest.$ac_ext"
12408 case "(($ac_try" in
12409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12410 *) ac_try_echo
=$ac_try;;
12412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12413 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12415 grep -v '^ *+' conftest.er1
>conftest.err
12417 cat conftest.err
>&5
12418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12419 (exit $ac_status); } >/dev
/null
; then
12420 if test -s conftest.err
; then
12421 ac_cpp_err
=$ac_c_preproc_warn_flag
12422 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12429 if test -z "$ac_cpp_err"; then
12430 ac_header_preproc
=yes
12432 echo "$as_me: failed program was:" >&5
12433 sed 's/^/| /' conftest.
$ac_ext >&5
12435 ac_header_preproc
=no
12438 rm -f conftest.err conftest.
$ac_ext
12439 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12440 echo "${ECHO_T}$ac_header_preproc" >&6; }
12442 # So? What about this header?
12443 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12445 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12446 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12448 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12449 ac_header_preproc
=yes
12452 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12453 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12455 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12457 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12459 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12461 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12463 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12465 ## ----------------------------------- ##
12466 ## Report this to llvmbugs@cs.uiuc.edu ##
12467 ## ----------------------------------- ##
12469 ) |
sed "s/^/$as_me: WARNING: /" >&2
12472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12474 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 eval "$as_ac_Header=\$ac_header_preproc"
12479 ac_res
=`eval echo '${'$as_ac_Header'}'`
12480 { echo "$as_me:$LINENO: result: $ac_res" >&5
12481 echo "${ECHO_T}$ac_res" >&6; }
12484 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12485 cat >>confdefs.h
<<_ACEOF
12486 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12496 for ac_func
in strchr index
12498 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12499 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12501 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12502 echo $ECHO_N "(cached) $ECHO_C" >&6
12504 cat >conftest.
$ac_ext <<_ACEOF
12507 cat confdefs.h
>>conftest.
$ac_ext
12508 cat >>conftest.
$ac_ext <<_ACEOF
12509 /* end confdefs.h. */
12510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12512 #define $ac_func innocuous_$ac_func
12514 /* System header to define __stub macros and hopefully few prototypes,
12515 which can conflict with char $ac_func (); below.
12516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12517 <limits.h> exists even on freestanding compilers. */
12520 # include <limits.h>
12522 # include <assert.h>
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12534 /* The GNU C library defines this for functions which it implements
12535 to always fail with ENOSYS. Some functions are actually named
12536 something starting with __ and the normal name is an alias. */
12537 #if defined __stub_$ac_func || defined __stub___$ac_func
12544 return $ac_func ();
12549 rm -f conftest.
$ac_objext conftest
$ac_exeext
12550 if { (ac_try
="$ac_link"
12551 case "(($ac_try" in
12552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12553 *) ac_try_echo=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1 >conftest.err
12560 cat conftest.err >&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } &&
12563 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12564 { (case "(($ac_try" in
12565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12566 *) ac_try_echo
=$ac_try;;
12568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12569 (eval "$ac_try") 2>&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); }; } &&
12573 { ac_try
='test -s conftest$ac_exeext'
12574 { (case "(($ac_try" in
12575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_try") 2>&5
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; }; then
12583 eval "$as_ac_var=yes"
12585 echo "$as_me: failed program was:" >&5
12586 sed 's/^/| /' conftest.$ac_ext >&5
12588 eval "$as_ac_var=no"
12591 rm -f core conftest.err conftest.$ac_objext \
12592 conftest$ac_exeext conftest.$ac_ext
12594 ac_res=`eval echo '${'$as_ac_var'}'`
12595 { echo "$as_me:$LINENO: result: $ac_res" >&5
12596 echo "${ECHO_T}$ac_res" >&6; }
12597 if test `eval echo '${'$as_ac_var'}'` = yes; then
12598 cat >>confdefs.h <<_ACEOF
12599 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12607 for ac_func in strrchr rindex
12609 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12610 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12611 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12612 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12613 echo $ECHO_N "(cached) $ECHO_C" >&6
12615 cat >conftest.$ac_ext <<_ACEOF
12618 cat confdefs.h >>conftest.$ac_ext
12619 cat >>conftest.$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12623 #define $ac_func innocuous_$ac_func
12625 /* System header to define __stub macros and hopefully few prototypes,
12626 which can conflict with char $ac_func (); below.
12627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12628 <limits.h> exists even on freestanding compilers. */
12631 # include <limits.h>
12633 # include <assert.h>
12638 /* Override any GCC internal prototype to avoid an error.
12639 Use char because int might match the return type of a GCC
12640 builtin and then its argument prototype would still apply. */
12645 /* The GNU C library defines this for functions which it implements
12646 to always fail with ENOSYS. Some functions are actually named
12647 something starting with __ and the normal name is an alias. */
12648 #if defined __stub_$ac_func || defined __stub___$ac_func
12655 return $ac_func ();
12660 rm -f conftest.$ac_objext conftest$ac_exeext
12661 if { (ac_try="$ac_link"
12662 case "(($ac_try" in
12663 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12664 *) ac_try_echo
=$ac_try;;
12666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12667 (eval "$ac_link") 2>conftest.er1
12669 grep -v '^ *+' conftest.er1
>conftest.err
12671 cat conftest.err
>&5
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); } &&
12674 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12675 { (case "(($ac_try" in
12676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_try") 2>&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); }; } &&
12684 { ac_try='test -s conftest$ac_exeext'
12685 { (case "(($ac_try" in
12686 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12687 *) ac_try_echo
=$ac_try;;
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_try") 2>&5
12692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12693 (exit $ac_status); }; }; then
12694 eval "$as_ac_var=yes"
12696 echo "$as_me: failed program was:" >&5
12697 sed 's/^/| /' conftest.
$ac_ext >&5
12699 eval "$as_ac_var=no"
12702 rm -f core conftest.err conftest.
$ac_objext \
12703 conftest
$ac_exeext conftest.
$ac_ext
12705 ac_res
=`eval echo '${'$as_ac_var'}'`
12706 { echo "$as_me:$LINENO: result: $ac_res" >&5
12707 echo "${ECHO_T}$ac_res" >&6; }
12708 if test `eval echo '${'$as_ac_var'}'` = yes; then
12709 cat >>confdefs.h
<<_ACEOF
12710 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12718 for ac_func
in memcpy bcopy
12720 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12721 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12722 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12723 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12724 echo $ECHO_N "(cached) $ECHO_C" >&6
12726 cat >conftest.
$ac_ext <<_ACEOF
12729 cat confdefs.h
>>conftest.
$ac_ext
12730 cat >>conftest.
$ac_ext <<_ACEOF
12731 /* end confdefs.h. */
12732 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12734 #define $ac_func innocuous_$ac_func
12736 /* System header to define __stub macros and hopefully few prototypes,
12737 which can conflict with char $ac_func (); below.
12738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12739 <limits.h> exists even on freestanding compilers. */
12742 # include <limits.h>
12744 # include <assert.h>
12749 /* Override any GCC internal prototype to avoid an error.
12750 Use char because int might match the return type of a GCC
12751 builtin and then its argument prototype would still apply. */
12756 /* The GNU C library defines this for functions which it implements
12757 to always fail with ENOSYS. Some functions are actually named
12758 something starting with __ and the normal name is an alias. */
12759 #if defined __stub_$ac_func || defined __stub___$ac_func
12766 return $ac_func ();
12771 rm -f conftest.
$ac_objext conftest
$ac_exeext
12772 if { (ac_try
="$ac_link"
12773 case "(($ac_try" in
12774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12775 *) ac_try_echo=$ac_try;;
12777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12778 (eval "$ac_link") 2>conftest.er1
12780 grep -v '^ *+' conftest.er1 >conftest.err
12782 cat conftest.err >&5
12783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12784 (exit $ac_status); } &&
12785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12786 { (case "(($ac_try" in
12787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12788 *) ac_try_echo
=$ac_try;;
12790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12791 (eval "$ac_try") 2>&5
12793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12794 (exit $ac_status); }; } &&
12795 { ac_try
='test -s conftest$ac_exeext'
12796 { (case "(($ac_try" in
12797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12798 *) ac_try_echo=$ac_try;;
12800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12801 (eval "$ac_try") 2>&5
12803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12804 (exit $ac_status); }; }; then
12805 eval "$as_ac_var=yes"
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12810 eval "$as_ac_var=no"
12813 rm -f core conftest.err conftest.$ac_objext \
12814 conftest$ac_exeext conftest.$ac_ext
12816 ac_res=`eval echo '${'$as_ac_var'}'`
12817 { echo "$as_me:$LINENO: result: $ac_res" >&5
12818 echo "${ECHO_T}$ac_res" >&6; }
12819 if test `eval echo '${'$as_ac_var'}'` = yes; then
12820 cat >>confdefs.h <<_ACEOF
12821 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12829 for ac_func in memmove strcmp
12831 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12832 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12833 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12834 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12835 echo $ECHO_N "(cached) $ECHO_C" >&6
12837 cat >conftest.$ac_ext <<_ACEOF
12840 cat confdefs.h >>conftest.$ac_ext
12841 cat >>conftest.$ac_ext <<_ACEOF
12842 /* end confdefs.h. */
12843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12845 #define $ac_func innocuous_$ac_func
12847 /* System header to define __stub macros and hopefully few prototypes,
12848 which can conflict with char $ac_func (); below.
12849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12850 <limits.h> exists even on freestanding compilers. */
12853 # include <limits.h>
12855 # include <assert.h>
12860 /* Override any GCC internal prototype to avoid an error.
12861 Use char because int might match the return type of a GCC
12862 builtin and then its argument prototype would still apply. */
12867 /* The GNU C library defines this for functions which it implements
12868 to always fail with ENOSYS. Some functions are actually named
12869 something starting with __ and the normal name is an alias. */
12870 #if defined __stub_$ac_func || defined __stub___$ac_func
12877 return $ac_func ();
12882 rm -f conftest.$ac_objext conftest$ac_exeext
12883 if { (ac_try="$ac_link"
12884 case "(($ac_try" in
12885 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12886 *) ac_try_echo
=$ac_try;;
12888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12889 (eval "$ac_link") 2>conftest.er1
12891 grep -v '^ *+' conftest.er1
>conftest.err
12893 cat conftest.err
>&5
12894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12895 (exit $ac_status); } &&
12896 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12897 { (case "(($ac_try" in
12898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_try") 2>&5
12904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12905 (exit $ac_status); }; } &&
12906 { ac_try='test -s conftest$ac_exeext'
12907 { (case "(($ac_try" in
12908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12909 *) ac_try_echo
=$ac_try;;
12911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12912 (eval "$ac_try") 2>&5
12914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12915 (exit $ac_status); }; }; then
12916 eval "$as_ac_var=yes"
12918 echo "$as_me: failed program was:" >&5
12919 sed 's/^/| /' conftest.
$ac_ext >&5
12921 eval "$as_ac_var=no"
12924 rm -f core conftest.err conftest.
$ac_objext \
12925 conftest
$ac_exeext conftest.
$ac_ext
12927 ac_res
=`eval echo '${'$as_ac_var'}'`
12928 { echo "$as_me:$LINENO: result: $ac_res" >&5
12929 echo "${ECHO_T}$ac_res" >&6; }
12930 if test `eval echo '${'$as_ac_var'}'` = yes; then
12931 cat >>confdefs.h
<<_ACEOF
12932 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12941 for ac_func
in closedir opendir readdir
12943 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12946 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12947 echo $ECHO_N "(cached) $ECHO_C" >&6
12949 cat >conftest.
$ac_ext <<_ACEOF
12952 cat confdefs.h
>>conftest.
$ac_ext
12953 cat >>conftest.
$ac_ext <<_ACEOF
12954 /* end confdefs.h. */
12955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12957 #define $ac_func innocuous_$ac_func
12959 /* System header to define __stub macros and hopefully few prototypes,
12960 which can conflict with char $ac_func (); below.
12961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12962 <limits.h> exists even on freestanding compilers. */
12965 # include <limits.h>
12967 # include <assert.h>
12972 /* Override any GCC internal prototype to avoid an error.
12973 Use char because int might match the return type of a GCC
12974 builtin and then its argument prototype would still apply. */
12979 /* The GNU C library defines this for functions which it implements
12980 to always fail with ENOSYS. Some functions are actually named
12981 something starting with __ and the normal name is an alias. */
12982 #if defined __stub_$ac_func || defined __stub___$ac_func
12989 return $ac_func ();
12994 rm -f conftest.
$ac_objext conftest
$ac_exeext
12995 if { (ac_try
="$ac_link"
12996 case "(($ac_try" in
12997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12998 *) ac_try_echo=$ac_try;;
13000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13001 (eval "$ac_link") 2>conftest.er1
13003 grep -v '^ *+' conftest.er1 >conftest.err
13005 cat conftest.err >&5
13006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13007 (exit $ac_status); } &&
13008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13009 { (case "(($ac_try" in
13010 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13011 *) ac_try_echo
=$ac_try;;
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_try") 2>&5
13016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13017 (exit $ac_status); }; } &&
13018 { ac_try
='test -s conftest$ac_exeext'
13019 { (case "(($ac_try" in
13020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13021 *) ac_try_echo=$ac_try;;
13023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13024 (eval "$ac_try") 2>&5
13026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13027 (exit $ac_status); }; }; then
13028 eval "$as_ac_var=yes"
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13033 eval "$as_ac_var=no"
13036 rm -f core conftest.err conftest.$ac_objext \
13037 conftest$ac_exeext conftest.$ac_ext
13039 ac_res=`eval echo '${'$as_ac_var'}'`
13040 { echo "$as_me:$LINENO: result: $ac_res" >&5
13041 echo "${ECHO_T}$ac_res" >&6; }
13042 if test `eval echo '${'$as_ac_var'}'` = yes; then
13043 cat >>confdefs.h <<_ACEOF
13044 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13052 if test "$WITH_LLVMGCCDIR" = "default" ; then
13053 LLVMGCC="llvm-gcc${EXEEXT}"
13054 LLVMGXX="llvm-g++${EXEEXT}"
13055 LLVMGCCCOMMAND="$LLVMGCC"
13056 LLVMGXXCOMMAND="$LLVMGXX"
13057 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13059 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13061 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13062 set dummy $LLVMGCC; ac_word=$2
13063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13065 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13066 echo $ECHO_N "(cached) $ECHO_C" >&6
13070 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13074 for as_dir in $PATH
13077 test -z "$as_dir" && as_dir=.
13078 for ac_exec_ext in '' $ac_executable_extensions; do
13079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13080 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13091 LLVMGCC=$ac_cv_path_LLVMGCC
13092 if test -n "$LLVMGCC"; then
13093 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13094 echo "${ECHO_T}$LLVMGCC" >&6; }
13096 { echo "$as_me:$LINENO: result: no" >&5
13097 echo "${ECHO_T}no" >&6; }
13101 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13102 set dummy $LLVMGXX; ac_word=$2
13103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13105 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13106 echo $ECHO_N "(cached) $ECHO_C" >&6
13110 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13114 for as_dir in $PATH
13117 test -z "$as_dir" && as_dir=.
13118 for ac_exec_ext in '' $ac_executable_extensions; do
13119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13120 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13131 LLVMGXX=$ac_cv_path_LLVMGXX
13132 if test -n "$LLVMGXX"; then
13133 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13134 echo "${ECHO_T}$LLVMGXX" >&6; }
13136 { echo "$as_me:$LINENO: result: no" >&5
13137 echo "${ECHO_T}no" >&6; }
13142 if test -z "$LLVMGCC"; then
13143 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13144 LLVMGCCCOMMAND="$LLVMGCC"
13146 if test -z "$LLVMGXX"; then
13147 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13148 LLVMGXXCOMMAND="$LLVMGXX"
13155 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13157 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13162 # Check whether --with-llvmcc was given.
13163 if test "${with_llvmcc+set}" = set; then
13164 withval=$with_llvmcc;
13169 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13170 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13171 if test "$with_llvmcc" != "check"; then
13172 if (test "$with_llvmcc" != "llvm-gcc" &&
13173 test "$with_llvmcc" != "clang" &&
13174 test "$with_llvmcc" != "none"); then
13175 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13176 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13177 { (exit 1); exit 1; }; }
13179 WITH_LLVMCC="$with_llvmcc"
13180 elif test -n "$LLVMGCC"; then
13181 WITH_LLVMCC=llvm-gcc
13182 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13187 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13188 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13189 LLVMCC_OPTION=$WITH_LLVMCC
13192 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13193 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13206 if test "$GCC" != "yes" && test "$ICC" != "yes"
13208 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13209 echo "$as_me: error: gcc|icc required but not found" >&2;}
13210 { (exit 1); exit 1; }; }
13213 if test "$GXX" != "yes" && test "$IXX" != "yes"
13215 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13216 echo "$as_me: error: g++|icc required but not found" >&2;}
13217 { (exit 1); exit 1; }; }
13220 if test "$GCC" = "yes"
13222 cat >conftest.$ac_ext <<_ACEOF
13223 #if !defined(__GNUC__) || __GNUC__ < 3
13224 #error Unsupported GCC version
13228 rm -f conftest.$ac_objext
13229 if { (ac_try="$ac_compile"
13230 case "(($ac_try" in
13231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13232 *) ac_try_echo
=$ac_try;;
13234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13235 (eval "$ac_compile") 2>conftest.er1
13237 grep -v '^ *+' conftest.er1
>conftest.err
13239 cat conftest.err
>&5
13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13241 (exit $ac_status); } &&
13242 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13243 { (case "(($ac_try" in
13244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13245 *) ac_try_echo=$ac_try;;
13247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13248 (eval "$ac_try") 2>&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); }; } &&
13252 { ac_try='test -s conftest.$ac_objext'
13253 { (case "(($ac_try" in
13254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13255 *) ac_try_echo
=$ac_try;;
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_try") 2>&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.
$ac_ext >&5
13267 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13268 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13269 { (exit 1); exit 1; }; }
13272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13275 if test -z "$llvm_cv_gnu_make_command"
13277 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13278 echo "$as_me: error: GNU Make required but not found" >&2;}
13279 { (exit 1); exit 1; }; }
13282 { echo "$as_me:$LINENO: result: ok" >&5
13283 echo "${ECHO_T}ok" >&6; }
13285 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13286 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13287 NO_VARIADIC_MACROS
=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13289 NO_MISSING_FIELD_INITIALIZERS
=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13291 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13292 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13296 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13297 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13298 if test "${ac_cv_lib_m_sin+set}" = set; then
13299 echo $ECHO_N "(cached) $ECHO_C" >&6
13301 ac_check_lib_save_LIBS
=$LIBS
13303 cat >conftest.
$ac_ext <<_ACEOF
13306 cat confdefs.h
>>conftest.
$ac_ext
13307 cat >>conftest.
$ac_ext <<_ACEOF
13308 /* end confdefs.h. */
13310 /* Override any GCC internal prototype to avoid an error.
13311 Use char because int might match the return type of a GCC
13312 builtin and then its argument prototype would still apply. */
13325 rm -f conftest.
$ac_objext conftest
$ac_exeext
13326 if { (ac_try
="$ac_link"
13327 case "(($ac_try" in
13328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13329 *) ac_try_echo=$ac_try;;
13331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13332 (eval "$ac_link") 2>conftest.er1
13334 grep -v '^ *+' conftest.er1 >conftest.err
13336 cat conftest.err >&5
13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13338 (exit $ac_status); } &&
13339 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13340 { (case "(($ac_try" in
13341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13342 *) ac_try_echo
=$ac_try;;
13344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13345 (eval "$ac_try") 2>&5
13347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13348 (exit $ac_status); }; } &&
13349 { ac_try
='test -s conftest$ac_exeext'
13350 { (case "(($ac_try" in
13351 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13352 *) ac_try_echo=$ac_try;;
13354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13355 (eval "$ac_try") 2>&5
13357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13358 (exit $ac_status); }; }; then
13359 ac_cv_lib_m_sin=yes
13361 echo "$as_me: failed program was:" >&5
13362 sed 's/^/| /' conftest.$ac_ext >&5
13367 rm -f core conftest.err conftest.$ac_objext \
13368 conftest$ac_exeext conftest.$ac_ext
13369 LIBS=$ac_check_lib_save_LIBS
13371 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13372 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13373 if test $ac_cv_lib_m_sin = yes; then
13374 cat >>confdefs.h <<_ACEOF
13375 #define HAVE_LIBM 1
13382 if test "$llvm_cv_os_type" = "MingW" ; then
13384 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13385 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13386 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 ac_check_lib_save_LIBS=$LIBS
13390 LIBS="-limagehlp $LIBS"
13391 cat >conftest.$ac_ext <<_ACEOF
13394 cat confdefs.h >>conftest.$ac_ext
13395 cat >>conftest.$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13407 rm -f conftest.$ac_objext conftest$ac_exeext
13408 if { (ac_try="$ac_link"
13409 case "(($ac_try" in
13410 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13411 *) ac_try_echo
=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_link") 2>conftest.er1
13416 grep -v '^ *+' conftest.er1
>conftest.err
13418 cat conftest.err
>&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } &&
13421 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13422 { (case "(($ac_try" in
13423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13424 *) ac_try_echo=$ac_try;;
13426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13427 (eval "$ac_try") 2>&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); }; } &&
13431 { ac_try='test -s conftest$ac_exeext'
13432 { (case "(($ac_try" in
13433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13434 *) ac_try_echo
=$ac_try;;
13436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13437 (eval "$ac_try") 2>&5
13439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13440 (exit $ac_status); }; }; then
13441 ac_cv_lib_imagehlp_main
=yes
13443 echo "$as_me: failed program was:" >&5
13444 sed 's/^/| /' conftest.
$ac_ext >&5
13446 ac_cv_lib_imagehlp_main
=no
13449 rm -f core conftest.err conftest.
$ac_objext \
13450 conftest
$ac_exeext conftest.
$ac_ext
13451 LIBS
=$ac_check_lib_save_LIBS
13453 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13454 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13455 if test $ac_cv_lib_imagehlp_main = yes; then
13456 cat >>confdefs.h
<<_ACEOF
13457 #define HAVE_LIBIMAGEHLP 1
13460 LIBS
="-limagehlp $LIBS"
13465 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13466 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13467 if test "${ac_cv_lib_psapi_main+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 ac_check_lib_save_LIBS
=$LIBS
13471 LIBS
="-lpsapi $LIBS"
13472 cat >conftest.
$ac_ext <<_ACEOF
13475 cat confdefs.h
>>conftest.
$ac_ext
13476 cat >>conftest.
$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13488 rm -f conftest.
$ac_objext conftest
$ac_exeext
13489 if { (ac_try
="$ac_link"
13490 case "(($ac_try" in
13491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13492 *) ac_try_echo=$ac_try;;
13494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13495 (eval "$ac_link") 2>conftest.er1
13497 grep -v '^ *+' conftest.er1 >conftest.err
13499 cat conftest.err >&5
13500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501 (exit $ac_status); } &&
13502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13503 { (case "(($ac_try" in
13504 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13505 *) ac_try_echo
=$ac_try;;
13507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13508 (eval "$ac_try") 2>&5
13510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13511 (exit $ac_status); }; } &&
13512 { ac_try
='test -s conftest$ac_exeext'
13513 { (case "(($ac_try" in
13514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13515 *) ac_try_echo=$ac_try;;
13517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13518 (eval "$ac_try") 2>&5
13520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13521 (exit $ac_status); }; }; then
13522 ac_cv_lib_psapi_main=yes
13524 echo "$as_me: failed program was:" >&5
13525 sed 's/^/| /' conftest.$ac_ext >&5
13527 ac_cv_lib_psapi_main=no
13530 rm -f core conftest.err conftest.$ac_objext \
13531 conftest$ac_exeext conftest.$ac_ext
13532 LIBS=$ac_check_lib_save_LIBS
13534 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13535 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13536 if test $ac_cv_lib_psapi_main = yes; then
13537 cat >>confdefs.h <<_ACEOF
13538 #define HAVE_LIBPSAPI 1
13541 LIBS="-lpsapi $LIBS"
13547 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13548 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13549 if test "${ac_cv_search_dlopen+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 ac_func_search_save_LIBS=$LIBS
13553 cat >conftest.$ac_ext <<_ACEOF
13556 cat confdefs.h >>conftest.$ac_ext
13557 cat >>conftest.$ac_ext <<_ACEOF
13558 /* end confdefs.h. */
13560 /* Override any GCC internal prototype to avoid an error.
13561 Use char because int might match the return type of a GCC
13562 builtin and then its argument prototype would still apply. */
13575 for ac_lib in '' dl; do
13576 if test -z "$ac_lib"; then
13577 ac_res="none required"
13580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13582 rm -f conftest.$ac_objext conftest$ac_exeext
13583 if { (ac_try="$ac_link"
13584 case "(($ac_try" in
13585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13586 *) ac_try_echo
=$ac_try;;
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_link") 2>conftest.er1
13591 grep -v '^ *+' conftest.er1
>conftest.err
13593 cat conftest.err
>&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13597 { (case "(($ac_try" in
13598 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_try") 2>&5
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; } &&
13606 { ac_try='test -s conftest$ac_exeext'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13609 *) ac_try_echo
=$ac_try;;
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_search_dlopen
=$ac_res
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.
$ac_ext >&5
13624 rm -f core conftest.err conftest.
$ac_objext \
13626 if test "${ac_cv_search_dlopen+set}" = set; then
13630 if test "${ac_cv_search_dlopen+set}" = set; then
13633 ac_cv_search_dlopen
=no
13635 rm conftest.
$ac_ext
13636 LIBS
=$ac_func_search_save_LIBS
13638 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13639 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13640 ac_res
=$ac_cv_search_dlopen
13641 if test "$ac_res" != no
; then
13642 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13644 cat >>confdefs.h
<<\_ACEOF
13645 #define HAVE_DLOPEN 1
13649 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13650 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13654 if test "$llvm_cv_enable_libffi" = "yes" ; then
13655 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13656 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13657 if test "${ac_cv_search_ffi_call+set}" = set; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 ac_func_search_save_LIBS
=$LIBS
13661 cat >conftest.
$ac_ext <<_ACEOF
13664 cat confdefs.h
>>conftest.
$ac_ext
13665 cat >>conftest.
$ac_ext <<_ACEOF
13666 /* end confdefs.h. */
13668 /* Override any GCC internal prototype to avoid an error.
13669 Use char because int might match the return type of a GCC
13670 builtin and then its argument prototype would still apply. */
13678 return ffi_call ();
13683 for ac_lib
in '' ffi
; do
13684 if test -z "$ac_lib"; then
13685 ac_res
="none required"
13688 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13690 rm -f conftest.
$ac_objext conftest
$ac_exeext
13691 if { (ac_try
="$ac_link"
13692 case "(($ac_try" in
13693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13694 *) ac_try_echo=$ac_try;;
13696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13697 (eval "$ac_link") 2>conftest.er1
13699 grep -v '^ *+' conftest.er1 >conftest.err
13701 cat conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 (exit $ac_status); } &&
13704 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13705 { (case "(($ac_try" in
13706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13707 *) ac_try_echo
=$ac_try;;
13709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13710 (eval "$ac_try") 2>&5
13712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13713 (exit $ac_status); }; } &&
13714 { ac_try
='test -s conftest$ac_exeext'
13715 { (case "(($ac_try" in
13716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13717 *) ac_try_echo=$ac_try;;
13719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13720 (eval "$ac_try") 2>&5
13722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13723 (exit $ac_status); }; }; then
13724 ac_cv_search_ffi_call=$ac_res
13726 echo "$as_me: failed program was:" >&5
13727 sed 's/^/| /' conftest.$ac_ext >&5
13732 rm -f core conftest.err conftest.$ac_objext \
13734 if test "${ac_cv_search_ffi_call+set}" = set; then
13738 if test "${ac_cv_search_ffi_call+set}" = set; then
13741 ac_cv_search_ffi_call=no
13743 rm conftest.$ac_ext
13744 LIBS=$ac_func_search_save_LIBS
13746 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13747 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13748 ac_res=$ac_cv_search_ffi_call
13749 if test "$ac_res" != no; then
13750 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13752 cat >>confdefs.h <<\_ACEOF
13753 #define HAVE_FFI_CALL 1
13757 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13758 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13759 { (exit 1); exit 1; }; }
13764 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13765 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13766 if test "${ac_cv_search_mallinfo+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13769 ac_func_search_save_LIBS=$LIBS
13770 cat >conftest.$ac_ext <<_ACEOF
13773 cat confdefs.h >>conftest.$ac_ext
13774 cat >>conftest.$ac_ext <<_ACEOF
13775 /* end confdefs.h. */
13777 /* Override any GCC internal prototype to avoid an error.
13778 Use char because int might match the return type of a GCC
13779 builtin and then its argument prototype would still apply. */
13787 return mallinfo ();
13792 for ac_lib in '' malloc; do
13793 if test -z "$ac_lib"; then
13794 ac_res="none required"
13797 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13799 rm -f conftest.$ac_objext conftest$ac_exeext
13800 if { (ac_try="$ac_link"
13801 case "(($ac_try" in
13802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13803 *) ac_try_echo
=$ac_try;;
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_link") 2>conftest.er1
13808 grep -v '^ *+' conftest.er1
>conftest.err
13810 cat conftest.err
>&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } &&
13813 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13814 { (case "(($ac_try" in
13815 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13816 *) ac_try_echo=$ac_try;;
13818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13819 (eval "$ac_try") 2>&5
13821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); }; } &&
13823 { ac_try='test -s conftest$ac_exeext'
13824 { (case "(($ac_try" in
13825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13826 *) ac_try_echo
=$ac_try;;
13828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13829 (eval "$ac_try") 2>&5
13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13832 (exit $ac_status); }; }; then
13833 ac_cv_search_mallinfo
=$ac_res
13835 echo "$as_me: failed program was:" >&5
13836 sed 's/^/| /' conftest.
$ac_ext >&5
13841 rm -f core conftest.err conftest.
$ac_objext \
13843 if test "${ac_cv_search_mallinfo+set}" = set; then
13847 if test "${ac_cv_search_mallinfo+set}" = set; then
13850 ac_cv_search_mallinfo
=no
13852 rm conftest.
$ac_ext
13853 LIBS
=$ac_func_search_save_LIBS
13855 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13856 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13857 ac_res
=$ac_cv_search_mallinfo
13858 if test "$ac_res" != no
; then
13859 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13861 cat >>confdefs.h
<<\_ACEOF
13862 #define HAVE_MALLINFO 1
13868 if test "$ENABLE_THREADS" -eq 1 ; then
13870 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13871 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13872 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13873 echo $ECHO_N "(cached) $ECHO_C" >&6
13875 ac_check_lib_save_LIBS
=$LIBS
13876 LIBS
="-lpthread $LIBS"
13877 cat >conftest.
$ac_ext <<_ACEOF
13880 cat confdefs.h
>>conftest.
$ac_ext
13881 cat >>conftest.
$ac_ext <<_ACEOF
13882 /* end confdefs.h. */
13884 /* Override any GCC internal prototype to avoid an error.
13885 Use char because int might match the return type of a GCC
13886 builtin and then its argument prototype would still apply. */
13890 char pthread_mutex_init ();
13894 return pthread_mutex_init ();
13899 rm -f conftest.
$ac_objext conftest
$ac_exeext
13900 if { (ac_try
="$ac_link"
13901 case "(($ac_try" in
13902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13903 *) ac_try_echo=$ac_try;;
13905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13906 (eval "$ac_link") 2>conftest.er1
13908 grep -v '^ *+' conftest.er1 >conftest.err
13910 cat conftest.err >&5
13911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13912 (exit $ac_status); } &&
13913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13914 { (case "(($ac_try" in
13915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13916 *) ac_try_echo
=$ac_try;;
13918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13919 (eval "$ac_try") 2>&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); }; } &&
13923 { ac_try
='test -s conftest$ac_exeext'
13924 { (case "(($ac_try" in
13925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_try") 2>&5
13931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13932 (exit $ac_status); }; }; then
13933 ac_cv_lib_pthread_pthread_mutex_init=yes
13935 echo "$as_me: failed program was:" >&5
13936 sed 's/^/| /' conftest.$ac_ext >&5
13938 ac_cv_lib_pthread_pthread_mutex_init=no
13941 rm -f core conftest.err conftest.$ac_objext \
13942 conftest$ac_exeext conftest.$ac_ext
13943 LIBS=$ac_check_lib_save_LIBS
13945 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13946 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13947 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13948 cat >>confdefs.h <<_ACEOF
13949 #define HAVE_LIBPTHREAD 1
13952 LIBS="-lpthread $LIBS"
13956 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13957 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13958 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 ac_func_search_save_LIBS=$LIBS
13962 cat >conftest.$ac_ext <<_ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13969 /* Override any GCC internal prototype to avoid an error.
13970 Use char because int might match the return type of a GCC
13971 builtin and then its argument prototype would still apply. */
13975 char pthread_mutex_lock ();
13979 return pthread_mutex_lock ();
13984 for ac_lib in '' pthread; do
13985 if test -z "$ac_lib"; then
13986 ac_res="none required"
13989 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13991 rm -f conftest.$ac_objext conftest$ac_exeext
13992 if { (ac_try="$ac_link"
13993 case "(($ac_try" in
13994 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13995 *) ac_try_echo
=$ac_try;;
13997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13998 (eval "$ac_link") 2>conftest.er1
14000 grep -v '^ *+' conftest.er1
>conftest.err
14002 cat conftest.err
>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); } &&
14005 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14006 { (case "(($ac_try" in
14007 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14008 *) ac_try_echo=$ac_try;;
14010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14011 (eval "$ac_try") 2>&5
14013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14014 (exit $ac_status); }; } &&
14015 { ac_try='test -s conftest$ac_exeext'
14016 { (case "(($ac_try" in
14017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14018 *) ac_try_echo
=$ac_try;;
14020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14021 (eval "$ac_try") 2>&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); }; }; then
14025 ac_cv_search_pthread_mutex_lock
=$ac_res
14027 echo "$as_me: failed program was:" >&5
14028 sed 's/^/| /' conftest.
$ac_ext >&5
14033 rm -f core conftest.err conftest.
$ac_objext \
14035 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14039 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14042 ac_cv_search_pthread_mutex_lock
=no
14044 rm conftest.
$ac_ext
14045 LIBS
=$ac_func_search_save_LIBS
14047 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14048 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14049 ac_res
=$ac_cv_search_pthread_mutex_lock
14050 if test "$ac_res" != no
; then
14051 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14053 cat >>confdefs.h
<<\_ACEOF
14054 #define HAVE_PTHREAD_MUTEX_LOCK 1
14059 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14060 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14061 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14064 ac_func_search_save_LIBS
=$LIBS
14065 cat >conftest.
$ac_ext <<_ACEOF
14068 cat confdefs.h
>>conftest.
$ac_ext
14069 cat >>conftest.
$ac_ext <<_ACEOF
14070 /* end confdefs.h. */
14072 /* Override any GCC internal prototype to avoid an error.
14073 Use char because int might match the return type of a GCC
14074 builtin and then its argument prototype would still apply. */
14078 char pthread_rwlock_init ();
14082 return pthread_rwlock_init ();
14087 for ac_lib
in '' pthread
; do
14088 if test -z "$ac_lib"; then
14089 ac_res
="none required"
14092 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14094 rm -f conftest.
$ac_objext conftest
$ac_exeext
14095 if { (ac_try
="$ac_link"
14096 case "(($ac_try" in
14097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_link") 2>conftest.er1
14103 grep -v '^ *+' conftest.er1 >conftest.err
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } &&
14108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14109 { (case "(($ac_try" in
14110 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14111 *) ac_try_echo
=$ac_try;;
14113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14114 (eval "$ac_try") 2>&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); }; } &&
14118 { ac_try
='test -s conftest$ac_exeext'
14119 { (case "(($ac_try" in
14120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14121 *) ac_try_echo=$ac_try;;
14123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14124 (eval "$ac_try") 2>&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); }; }; then
14128 ac_cv_search_pthread_rwlock_init=$ac_res
14130 echo "$as_me: failed program was:" >&5
14131 sed 's/^/| /' conftest.$ac_ext >&5
14136 rm -f core conftest.err conftest.$ac_objext \
14138 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14142 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14145 ac_cv_search_pthread_rwlock_init=no
14147 rm conftest.$ac_ext
14148 LIBS=$ac_func_search_save_LIBS
14150 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14151 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14152 ac_res=$ac_cv_search_pthread_rwlock_init
14153 if test "$ac_res" != no; then
14154 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14156 cat >>confdefs.h <<\_ACEOF
14157 #define HAVE_PTHREAD_RWLOCK_INIT 1
14162 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14163 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14164 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 ac_func_search_save_LIBS=$LIBS
14168 cat >conftest.$ac_ext <<_ACEOF
14171 cat confdefs.h >>conftest.$ac_ext
14172 cat >>conftest.$ac_ext <<_ACEOF
14173 /* end confdefs.h. */
14175 /* Override any GCC internal prototype to avoid an error.
14176 Use char because int might match the return type of a GCC
14177 builtin and then its argument prototype would still apply. */
14181 char pthread_getspecific ();
14185 return pthread_getspecific ();
14190 for ac_lib in '' pthread; do
14191 if test -z "$ac_lib"; then
14192 ac_res="none required"
14195 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14197 rm -f conftest.$ac_objext conftest$ac_exeext
14198 if { (ac_try="$ac_link"
14199 case "(($ac_try" in
14200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14201 *) ac_try_echo
=$ac_try;;
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_link") 2>conftest.er1
14206 grep -v '^ *+' conftest.er1
>conftest.err
14208 cat conftest.err
>&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } &&
14211 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14212 { (case "(($ac_try" in
14213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14214 *) ac_try_echo=$ac_try;;
14216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14217 (eval "$ac_try") 2>&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); }; } &&
14221 { ac_try='test -s conftest$ac_exeext'
14222 { (case "(($ac_try" in
14223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14224 *) ac_try_echo
=$ac_try;;
14226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14227 (eval "$ac_try") 2>&5
14229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14230 (exit $ac_status); }; }; then
14231 ac_cv_search_pthread_getspecific
=$ac_res
14233 echo "$as_me: failed program was:" >&5
14234 sed 's/^/| /' conftest.
$ac_ext >&5
14239 rm -f core conftest.err conftest.
$ac_objext \
14241 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14245 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14248 ac_cv_search_pthread_getspecific
=no
14250 rm conftest.
$ac_ext
14251 LIBS
=$ac_func_search_save_LIBS
14253 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14254 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14255 ac_res
=$ac_cv_search_pthread_getspecific
14256 if test "$ac_res" != no
; then
14257 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14259 cat >>confdefs.h
<<\_ACEOF
14260 #define HAVE_PTHREAD_GETSPECIFIC 1
14268 # Check whether --with-udis86 was given.
14269 if test "${with_udis86+set}" = set; then
14270 withval
=$with_udis86;
14275 *) LDFLAGS
="$LDFLAGS -L${withval}" ;;
14278 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14279 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14280 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14281 echo $ECHO_N "(cached) $ECHO_C" >&6
14283 ac_check_lib_save_LIBS
=$LIBS
14284 LIBS
="-ludis86 $LIBS"
14285 cat >conftest.
$ac_ext <<_ACEOF
14288 cat confdefs.h
>>conftest.
$ac_ext
14289 cat >>conftest.
$ac_ext <<_ACEOF
14290 /* end confdefs.h. */
14292 /* Override any GCC internal prototype to avoid an error.
14293 Use char because int might match the return type of a GCC
14294 builtin and then its argument prototype would still apply. */
14307 rm -f conftest.
$ac_objext conftest
$ac_exeext
14308 if { (ac_try
="$ac_link"
14309 case "(($ac_try" in
14310 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_link") 2>conftest.er1
14316 grep -v '^ *+' conftest.er1 >conftest.err
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } &&
14321 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14322 { (case "(($ac_try" in
14323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14324 *) ac_try_echo
=$ac_try;;
14326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14327 (eval "$ac_try") 2>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); }; } &&
14331 { ac_try
='test -s conftest$ac_exeext'
14332 { (case "(($ac_try" in
14333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14334 *) ac_try_echo=$ac_try;;
14336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14337 (eval "$ac_try") 2>&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); }; }; then
14341 ac_cv_lib_udis86_ud_init=yes
14343 echo "$as_me: failed program was:" >&5
14344 sed 's/^/| /' conftest.$ac_ext >&5
14346 ac_cv_lib_udis86_ud_init=no
14349 rm -f core conftest.err conftest.$ac_objext \
14350 conftest$ac_exeext conftest.$ac_ext
14351 LIBS=$ac_check_lib_save_LIBS
14353 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14354 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14355 if test $ac_cv_lib_udis86_ud_init = yes; then
14356 cat >>confdefs.h <<_ACEOF
14357 #define HAVE_LIBUDIS86 1
14360 LIBS="-ludis86 $LIBS"
14364 echo "Error! You need to have libudis86 around."
14376 cat >>confdefs.h <<_ACEOF
14377 #define USE_UDIS86 $USE_UDIS86
14382 # Check whether --with-oprofile was given.
14383 if test "${with_oprofile+set}" = set; then
14384 withval=$with_oprofile;
14388 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14389 no) llvm_cv_oppath=
14392 *) llvm_cv_oppath="${withval}/lib/oprofile"
14393 CPPFLAGS="-I${withval}/include";;
14395 if test -n "$llvm_cv_oppath" ; then
14396 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14397 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14398 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14399 if test "${ac_cv_search_bfd_init+set}" = set; then
14400 echo $ECHO_N "(cached) $ECHO_C" >&6
14402 ac_func_search_save_LIBS=$LIBS
14403 cat >conftest.$ac_ext <<_ACEOF
14406 cat confdefs.h >>conftest.$ac_ext
14407 cat >>conftest.$ac_ext <<_ACEOF
14408 /* end confdefs.h. */
14410 /* Override any GCC internal prototype to avoid an error.
14411 Use char because int might match the return type of a GCC
14412 builtin and then its argument prototype would still apply. */
14420 return bfd_init ();
14425 for ac_lib in '' bfd; do
14426 if test -z "$ac_lib"; then
14427 ac_res="none required"
14430 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14432 rm -f conftest.$ac_objext conftest$ac_exeext
14433 if { (ac_try="$ac_link"
14434 case "(($ac_try" in
14435 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14436 *) ac_try_echo
=$ac_try;;
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_link") 2>conftest.er1
14441 grep -v '^ *+' conftest.er1
>conftest.err
14443 cat conftest.err
>&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } &&
14446 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14447 { (case "(($ac_try" in
14448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14449 *) ac_try_echo=$ac_try;;
14451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14452 (eval "$ac_try") 2>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); }; } &&
14456 { ac_try='test -s conftest$ac_exeext'
14457 { (case "(($ac_try" in
14458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14459 *) ac_try_echo
=$ac_try;;
14461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14462 (eval "$ac_try") 2>&5
14464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14465 (exit $ac_status); }; }; then
14466 ac_cv_search_bfd_init
=$ac_res
14468 echo "$as_me: failed program was:" >&5
14469 sed 's/^/| /' conftest.
$ac_ext >&5
14474 rm -f core conftest.err conftest.
$ac_objext \
14476 if test "${ac_cv_search_bfd_init+set}" = set; then
14480 if test "${ac_cv_search_bfd_init+set}" = set; then
14483 ac_cv_search_bfd_init
=no
14485 rm conftest.
$ac_ext
14486 LIBS
=$ac_func_search_save_LIBS
14488 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14489 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14490 ac_res
=$ac_cv_search_bfd_init
14491 if test "$ac_res" != no
; then
14492 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14496 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14497 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14498 if test "${ac_cv_search_op_open_agent+set}" = set; then
14499 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 ac_func_search_save_LIBS
=$LIBS
14502 cat >conftest.
$ac_ext <<_ACEOF
14505 cat confdefs.h
>>conftest.
$ac_ext
14506 cat >>conftest.
$ac_ext <<_ACEOF
14507 /* end confdefs.h. */
14509 /* Override any GCC internal prototype to avoid an error.
14510 Use char because int might match the return type of a GCC
14511 builtin and then its argument prototype would still apply. */
14515 char op_open_agent ();
14519 return op_open_agent ();
14524 for ac_lib
in '' opagent
; do
14525 if test -z "$ac_lib"; then
14526 ac_res
="none required"
14529 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14531 rm -f conftest.
$ac_objext conftest
$ac_exeext
14532 if { (ac_try
="$ac_link"
14533 case "(($ac_try" in
14534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14535 *) ac_try_echo=$ac_try;;
14537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14538 (eval "$ac_link") 2>conftest.er1
14540 grep -v '^ *+' conftest.er1 >conftest.err
14542 cat conftest.err >&5
14543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14544 (exit $ac_status); } &&
14545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14546 { (case "(($ac_try" in
14547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14548 *) ac_try_echo
=$ac_try;;
14550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14551 (eval "$ac_try") 2>&5
14553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14554 (exit $ac_status); }; } &&
14555 { ac_try
='test -s conftest$ac_exeext'
14556 { (case "(($ac_try" in
14557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14558 *) ac_try_echo=$ac_try;;
14560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14561 (eval "$ac_try") 2>&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); }; }; then
14565 ac_cv_search_op_open_agent=$ac_res
14567 echo "$as_me: failed program was:" >&5
14568 sed 's/^/| /' conftest.$ac_ext >&5
14573 rm -f core conftest.err conftest.$ac_objext \
14575 if test "${ac_cv_search_op_open_agent+set}" = set; then
14579 if test "${ac_cv_search_op_open_agent+set}" = set; then
14582 ac_cv_search_op_open_agent=no
14584 rm conftest.$ac_ext
14585 LIBS=$ac_func_search_save_LIBS
14587 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14588 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14589 ac_res=$ac_cv_search_op_open_agent
14590 if test "$ac_res" != no; then
14591 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14595 echo "Error! You need to have libopagent around."
14600 if test "${ac_cv_header_opagent_h+set}" = set; then
14601 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14602 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14603 if test "${ac_cv_header_opagent_h+set}" = set; then
14604 echo $ECHO_N "(cached) $ECHO_C" >&6
14606 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14607 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14609 # Is the header compilable?
14610 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14611 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14612 cat >conftest.$ac_ext <<_ACEOF
14615 cat confdefs.h >>conftest.$ac_ext
14616 cat >>conftest.$ac_ext <<_ACEOF
14617 /* end confdefs.h. */
14618 $ac_includes_default
14619 #include <opagent.h>
14621 rm -f conftest.$ac_objext
14622 if { (ac_try="$ac_compile"
14623 case "(($ac_try" in
14624 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14625 *) ac_try_echo
=$ac_try;;
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_compile") 2>conftest.er1
14630 grep -v '^ *+' conftest.er1
>conftest.err
14632 cat conftest.err
>&5
14633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } &&
14635 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14636 { (case "(($ac_try" in
14637 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14638 *) ac_try_echo=$ac_try;;
14640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14641 (eval "$ac_try") 2>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); }; } &&
14645 { ac_try='test -s conftest.$ac_objext'
14646 { (case "(($ac_try" in
14647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14648 *) ac_try_echo
=$ac_try;;
14650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14651 (eval "$ac_try") 2>&5
14653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14654 (exit $ac_status); }; }; then
14655 ac_header_compiler
=yes
14657 echo "$as_me: failed program was:" >&5
14658 sed 's/^/| /' conftest.
$ac_ext >&5
14660 ac_header_compiler
=no
14663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14664 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14665 echo "${ECHO_T}$ac_header_compiler" >&6; }
14667 # Is the header present?
14668 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14669 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14670 cat >conftest.
$ac_ext <<_ACEOF
14673 cat confdefs.h
>>conftest.
$ac_ext
14674 cat >>conftest.
$ac_ext <<_ACEOF
14675 /* end confdefs.h. */
14676 #include <opagent.h>
14678 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14679 case "(($ac_try" in
14680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14686 grep -v '^ *+' conftest.er1 >conftest.err
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } >/dev/null; then
14691 if test -s conftest.err; then
14692 ac_cpp_err=$ac_c_preproc_warn_flag
14693 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14700 if test -z "$ac_cpp_err"; then
14701 ac_header_preproc=yes
14703 echo "$as_me: failed program was:" >&5
14704 sed 's/^/| /' conftest.$ac_ext >&5
14706 ac_header_preproc=no
14709 rm -f conftest.err conftest.$ac_ext
14710 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14711 echo "${ECHO_T}$ac_header_preproc" >&6; }
14713 # So? What about this header?
14714 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14716 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14717 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14719 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14720 ac_header_preproc=yes
14723 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14724 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14725 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14726 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14727 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14728 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14729 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14730 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14731 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14732 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14733 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14734 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14736 ## ----------------------------------- ##
14737 ## Report this to llvmbugs@cs.uiuc.edu ##
14738 ## ----------------------------------- ##
14740 ) | sed "s/^/$as_me: WARNING: /" >&2
14743 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14744 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14745 if test "${ac_cv_header_opagent_h+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 ac_cv_header_opagent_h=$ac_header_preproc
14750 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14751 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14754 if test $ac_cv_header_opagent_h = yes; then
14758 echo "Error! You need to have opagent.h around."
14774 cat >>confdefs.h <<_ACEOF
14775 #define USE_OPROFILE $USE_OPROFILE
14785 ac_header_dirent=no
14786 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14787 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
14788 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14789 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14790 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14791 echo $ECHO_N "(cached) $ECHO_C" >&6
14793 cat >conftest.$ac_ext <<_ACEOF
14796 cat confdefs.h >>conftest.$ac_ext
14797 cat >>conftest.$ac_ext <<_ACEOF
14798 /* end confdefs.h. */
14799 #include <sys/types.h>
14811 rm -f conftest.$ac_objext
14812 if { (ac_try="$ac_compile"
14813 case "(($ac_try" in
14814 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14815 *) ac_try_echo
=$ac_try;;
14817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14818 (eval "$ac_compile") 2>conftest.er1
14820 grep -v '^ *+' conftest.er1
>conftest.err
14822 cat conftest.err
>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); } &&
14825 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14826 { (case "(($ac_try" in
14827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14828 *) ac_try_echo=$ac_try;;
14830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14831 (eval "$ac_try") 2>&5
14833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14834 (exit $ac_status); }; } &&
14835 { ac_try='test -s conftest.$ac_objext'
14836 { (case "(($ac_try" in
14837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14838 *) ac_try_echo
=$ac_try;;
14840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14841 (eval "$ac_try") 2>&5
14843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14844 (exit $ac_status); }; }; then
14845 eval "$as_ac_Header=yes"
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.
$ac_ext >&5
14850 eval "$as_ac_Header=no"
14853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14855 ac_res
=`eval echo '${'$as_ac_Header'}'`
14856 { echo "$as_me:$LINENO: result: $ac_res" >&5
14857 echo "${ECHO_T}$ac_res" >&6; }
14858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14859 cat >>confdefs.h
<<_ACEOF
14860 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14863 ac_header_dirent
=$ac_hdr; break
14867 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14868 if test $ac_header_dirent = dirent.h
; then
14869 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14870 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14871 if test "${ac_cv_search_opendir+set}" = set; then
14872 echo $ECHO_N "(cached) $ECHO_C" >&6
14874 ac_func_search_save_LIBS
=$LIBS
14875 cat >conftest.
$ac_ext <<_ACEOF
14878 cat confdefs.h
>>conftest.
$ac_ext
14879 cat >>conftest.
$ac_ext <<_ACEOF
14880 /* end confdefs.h. */
14882 /* Override any GCC internal prototype to avoid an error.
14883 Use char because int might match the return type of a GCC
14884 builtin and then its argument prototype would still apply. */
14897 for ac_lib
in '' dir
; do
14898 if test -z "$ac_lib"; then
14899 ac_res
="none required"
14902 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14904 rm -f conftest.
$ac_objext conftest
$ac_exeext
14905 if { (ac_try
="$ac_link"
14906 case "(($ac_try" in
14907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14908 *) ac_try_echo=$ac_try;;
14910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14911 (eval "$ac_link") 2>conftest.er1
14913 grep -v '^ *+' conftest.er1 >conftest.err
14915 cat conftest.err >&5
14916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14917 (exit $ac_status); } &&
14918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14919 { (case "(($ac_try" in
14920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14921 *) ac_try_echo
=$ac_try;;
14923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14924 (eval "$ac_try") 2>&5
14926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14927 (exit $ac_status); }; } &&
14928 { ac_try
='test -s conftest$ac_exeext'
14929 { (case "(($ac_try" in
14930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_try") 2>&5
14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14937 (exit $ac_status); }; }; then
14938 ac_cv_search_opendir=$ac_res
14940 echo "$as_me: failed program was:" >&5
14941 sed 's/^/| /' conftest.$ac_ext >&5
14946 rm -f core conftest.err conftest.$ac_objext \
14948 if test "${ac_cv_search_opendir+set}" = set; then
14952 if test "${ac_cv_search_opendir+set}" = set; then
14955 ac_cv_search_opendir=no
14957 rm conftest.$ac_ext
14958 LIBS=$ac_func_search_save_LIBS
14960 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14961 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14962 ac_res=$ac_cv_search_opendir
14963 if test "$ac_res" != no; then
14964 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14969 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14970 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14971 if test "${ac_cv_search_opendir+set}" = set; then
14972 echo $ECHO_N "(cached) $ECHO_C" >&6
14974 ac_func_search_save_LIBS=$LIBS
14975 cat >conftest.$ac_ext <<_ACEOF
14978 cat confdefs.h >>conftest.$ac_ext
14979 cat >>conftest.$ac_ext <<_ACEOF
14980 /* end confdefs.h. */
14982 /* Override any GCC internal prototype to avoid an error.
14983 Use char because int might match the return type of a GCC
14984 builtin and then its argument prototype would still apply. */
14997 for ac_lib in '' x; do
14998 if test -z "$ac_lib"; then
14999 ac_res="none required"
15002 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15004 rm -f conftest.$ac_objext conftest$ac_exeext
15005 if { (ac_try="$ac_link"
15006 case "(($ac_try" in
15007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15008 *) ac_try_echo
=$ac_try;;
15010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15011 (eval "$ac_link") 2>conftest.er1
15013 grep -v '^ *+' conftest.er1
>conftest.err
15015 cat conftest.err
>&5
15016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15017 (exit $ac_status); } &&
15018 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15019 { (case "(($ac_try" in
15020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15021 *) ac_try_echo=$ac_try;;
15023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15024 (eval "$ac_try") 2>&5
15026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15027 (exit $ac_status); }; } &&
15028 { ac_try='test -s conftest$ac_exeext'
15029 { (case "(($ac_try" in
15030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15031 *) ac_try_echo
=$ac_try;;
15033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15034 (eval "$ac_try") 2>&5
15036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15037 (exit $ac_status); }; }; then
15038 ac_cv_search_opendir
=$ac_res
15040 echo "$as_me: failed program was:" >&5
15041 sed 's/^/| /' conftest.
$ac_ext >&5
15046 rm -f core conftest.err conftest.
$ac_objext \
15048 if test "${ac_cv_search_opendir+set}" = set; then
15052 if test "${ac_cv_search_opendir+set}" = set; then
15055 ac_cv_search_opendir
=no
15057 rm conftest.
$ac_ext
15058 LIBS
=$ac_func_search_save_LIBS
15060 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15061 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15062 ac_res
=$ac_cv_search_opendir
15063 if test "$ac_res" != no
; then
15064 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15070 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15071 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15072 if test "${ac_cv_header_mmap_anon+set}" = set; then
15073 echo $ECHO_N "(cached) $ECHO_C" >&6
15076 ac_cpp
='$CPP $CPPFLAGS'
15077 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15078 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15079 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15081 cat >conftest.
$ac_ext <<_ACEOF
15084 cat confdefs.h
>>conftest.
$ac_ext
15085 cat >>conftest.
$ac_ext <<_ACEOF
15086 /* end confdefs.h. */
15087 #include <sys/mman.h>
15088 #include <unistd.h>
15093 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15098 rm -f conftest.
$ac_objext
15099 if { (ac_try
="$ac_compile"
15100 case "(($ac_try" in
15101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15102 *) ac_try_echo=$ac_try;;
15104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15105 (eval "$ac_compile") 2>conftest.er1
15107 grep -v '^ *+' conftest.er1 >conftest.err
15109 cat conftest.err >&5
15110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } &&
15112 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15113 { (case "(($ac_try" in
15114 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15115 *) ac_try_echo
=$ac_try;;
15117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_try") 2>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); }; } &&
15122 { ac_try
='test -s conftest.$ac_objext'
15123 { (case "(($ac_try" in
15124 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15125 *) ac_try_echo=$ac_try;;
15127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15128 (eval "$ac_try") 2>&5
15130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15131 (exit $ac_status); }; }; then
15132 ac_cv_header_mmap_anon=yes
15134 echo "$as_me: failed program was:" >&5
15135 sed 's/^/| /' conftest.$ac_ext >&5
15137 ac_cv_header_mmap_anon=no
15140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15142 ac_cpp='$CPP $CPPFLAGS'
15143 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15144 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15145 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15149 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15150 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15151 if test "$ac_cv_header_mmap_anon" = yes; then
15153 cat >>confdefs.h <<\_ACEOF
15154 #define HAVE_MMAP_ANONYMOUS 1
15159 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15160 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15161 if test "${ac_cv_header_stat_broken+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15164 cat >conftest.$ac_ext <<_ACEOF
15167 cat confdefs.h >>conftest.$ac_ext
15168 cat >>conftest.$ac_ext <<_ACEOF
15169 /* end confdefs.h. */
15170 #include <sys/types.h>
15171 #include <sys/stat.h>
15173 #if defined S_ISBLK && defined S_IFDIR
15174 # if S_ISBLK (S_IFDIR)
15179 #if defined S_ISBLK && defined S_IFCHR
15180 # if S_ISBLK (S_IFCHR)
15185 #if defined S_ISLNK && defined S_IFREG
15186 # if S_ISLNK (S_IFREG)
15191 #if defined S_ISSOCK && defined S_IFREG
15192 # if S_ISSOCK (S_IFREG)
15198 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15199 $EGREP "You lose" >/dev/null 2>&1; then
15200 ac_cv_header_stat_broken=yes
15202 ac_cv_header_stat_broken=no
15207 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15208 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15209 if test $ac_cv_header_stat_broken = yes; then
15211 cat >>confdefs.h <<\_ACEOF
15212 #define STAT_MACROS_BROKEN 1
15217 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15218 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15219 if test "${ac_cv_header_stdc+set}" = set; then
15220 echo $ECHO_N "(cached) $ECHO_C" >&6
15222 cat >conftest.$ac_ext <<_ACEOF
15225 cat confdefs.h >>conftest.$ac_ext
15226 cat >>conftest.$ac_ext <<_ACEOF
15227 /* end confdefs.h. */
15228 #include <stdlib.h>
15229 #include <stdarg.h>
15230 #include <string.h>
15241 rm -f conftest.$ac_objext
15242 if { (ac_try="$ac_compile"
15243 case "(($ac_try" in
15244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15245 *) ac_try_echo
=$ac_try;;
15247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15248 (eval "$ac_compile") 2>conftest.er1
15250 grep -v '^ *+' conftest.er1
>conftest.err
15252 cat conftest.err
>&5
15253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15254 (exit $ac_status); } &&
15255 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15256 { (case "(($ac_try" in
15257 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15261 (eval "$ac_try") 2>&5
15263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15264 (exit $ac_status); }; } &&
15265 { ac_try='test -s conftest.$ac_objext'
15266 { (case "(($ac_try" in
15267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15268 *) ac_try_echo
=$ac_try;;
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_try") 2>&5
15273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15274 (exit $ac_status); }; }; then
15275 ac_cv_header_stdc
=yes
15277 echo "$as_me: failed program was:" >&5
15278 sed 's/^/| /' conftest.
$ac_ext >&5
15280 ac_cv_header_stdc
=no
15283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15285 if test $ac_cv_header_stdc = yes; then
15286 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15287 cat >conftest.
$ac_ext <<_ACEOF
15290 cat confdefs.h
>>conftest.
$ac_ext
15291 cat >>conftest.
$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 #include <string.h>
15296 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15297 $EGREP "memchr" >/dev
/null
2>&1; then
15300 ac_cv_header_stdc
=no
15306 if test $ac_cv_header_stdc = yes; then
15307 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15308 cat >conftest.
$ac_ext <<_ACEOF
15311 cat confdefs.h
>>conftest.
$ac_ext
15312 cat >>conftest.
$ac_ext <<_ACEOF
15313 /* end confdefs.h. */
15314 #include <stdlib.h>
15317 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15318 $EGREP "free" >/dev
/null
2>&1; then
15321 ac_cv_header_stdc
=no
15327 if test $ac_cv_header_stdc = yes; then
15328 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15329 if test "$cross_compiling" = yes; then
15332 cat >conftest.
$ac_ext <<_ACEOF
15335 cat confdefs.h
>>conftest.
$ac_ext
15336 cat >>conftest.
$ac_ext <<_ACEOF
15337 /* end confdefs.h. */
15339 #include <stdlib.h>
15340 #if ((' ' & 0x0FF) == 0x020)
15341 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15342 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15344 # define ISLOWER(c) \
15345 (('a' <= (c) && (c) <= 'i') \
15346 || ('j' <= (c) && (c) <= 'r') \
15347 || ('s' <= (c) && (c) <= 'z'))
15348 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15351 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15356 for (i = 0; i < 256; i++)
15357 if (XOR (islower (i), ISLOWER (i))
15358 || toupper (i) != TOUPPER (i))
15363 rm -f conftest
$ac_exeext
15364 if { (ac_try
="$ac_link"
15365 case "(($ac_try" in
15366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15367 *) ac_try_echo=$ac_try;;
15369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15370 (eval "$ac_link") 2>&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15374 { (case "(($ac_try" in
15375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15376 *) ac_try_echo
=$ac_try;;
15378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15379 (eval "$ac_try") 2>&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); }; }; then
15385 echo "$as_me: program exited with status $ac_status" >&5
15386 echo "$as_me: failed program was:" >&5
15387 sed 's/^/| /' conftest.
$ac_ext >&5
15389 ( exit $ac_status )
15390 ac_cv_header_stdc
=no
15392 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15398 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15399 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15400 if test $ac_cv_header_stdc = yes; then
15402 cat >>confdefs.h
<<\_ACEOF
15403 #define STDC_HEADERS 1
15408 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15409 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15410 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15411 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 cat >conftest.
$ac_ext <<_ACEOF
15416 cat confdefs.h
>>conftest.
$ac_ext
15417 cat >>conftest.
$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 #include <sys/types.h>
15420 #include <sys/wait.h>
15421 #ifndef WEXITSTATUS
15422 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15425 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15433 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15438 rm -f conftest.
$ac_objext
15439 if { (ac_try
="$ac_compile"
15440 case "(($ac_try" in
15441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_compile") 2>conftest.er1
15447 grep -v '^ *+' conftest.er1 >conftest.err
15449 cat conftest.err >&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } &&
15452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15453 { (case "(($ac_try" in
15454 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15455 *) ac_try_echo
=$ac_try;;
15457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15458 (eval "$ac_try") 2>&5
15460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15461 (exit $ac_status); }; } &&
15462 { ac_try
='test -s conftest.$ac_objext'
15463 { (case "(($ac_try" in
15464 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15465 *) ac_try_echo=$ac_try;;
15467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15468 (eval "$ac_try") 2>&5
15470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15471 (exit $ac_status); }; }; then
15472 ac_cv_header_sys_wait_h=yes
15474 echo "$as_me: failed program was:" >&5
15475 sed 's/^/| /' conftest.$ac_ext >&5
15477 ac_cv_header_sys_wait_h=no
15480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15482 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15483 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15484 if test $ac_cv_header_sys_wait_h = yes; then
15486 cat >>confdefs.h <<\_ACEOF
15487 #define HAVE_SYS_WAIT_H 1
15492 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15493 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15494 if test "${ac_cv_header_time+set}" = set; then
15495 echo $ECHO_N "(cached) $ECHO_C" >&6
15497 cat >conftest.$ac_ext <<_ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 #include <sys/types.h>
15504 #include <sys/time.h>
15510 if ((struct tm *) 0)
15516 rm -f conftest.$ac_objext
15517 if { (ac_try="$ac_compile"
15518 case "(($ac_try" in
15519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15520 *) ac_try_echo
=$ac_try;;
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_compile") 2>conftest.er1
15525 grep -v '^ *+' conftest.er1
>conftest.err
15527 cat conftest.err
>&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15531 { (case "(($ac_try" in
15532 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15533 *) ac_try_echo=$ac_try;;
15535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 (eval "$ac_try") 2>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try='test -s conftest.$ac_objext'
15541 { (case "(($ac_try" in
15542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15543 *) ac_try_echo
=$ac_try;;
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_try") 2>&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 ac_cv_header_time
=yes
15552 echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.
$ac_ext >&5
15555 ac_cv_header_time
=no
15558 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15561 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15562 if test $ac_cv_header_time = yes; then
15564 cat >>confdefs.h
<<\_ACEOF
15565 #define TIME_WITH_SYS_TIME 1
15577 for ac_header
in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15579 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15580 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15583 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15584 echo $ECHO_N "(cached) $ECHO_C" >&6
15586 ac_res
=`eval echo '${'$as_ac_Header'}'`
15587 { echo "$as_me:$LINENO: result: $ac_res" >&5
15588 echo "${ECHO_T}$ac_res" >&6; }
15590 # Is the header compilable?
15591 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15592 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15593 cat >conftest.
$ac_ext <<_ACEOF
15596 cat confdefs.h
>>conftest.
$ac_ext
15597 cat >>conftest.
$ac_ext <<_ACEOF
15598 /* end confdefs.h. */
15599 $ac_includes_default
15600 #include <$ac_header>
15602 rm -f conftest.
$ac_objext
15603 if { (ac_try
="$ac_compile"
15604 case "(($ac_try" in
15605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15606 *) ac_try_echo=$ac_try;;
15608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15609 (eval "$ac_compile") 2>conftest.er1
15611 grep -v '^ *+' conftest.er1 >conftest.err
15613 cat conftest.err >&5
15614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15615 (exit $ac_status); } &&
15616 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15617 { (case "(($ac_try" in
15618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15619 *) ac_try_echo
=$ac_try;;
15621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15622 (eval "$ac_try") 2>&5
15624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15625 (exit $ac_status); }; } &&
15626 { ac_try
='test -s conftest.$ac_objext'
15627 { (case "(($ac_try" in
15628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15629 *) ac_try_echo=$ac_try;;
15631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15632 (eval "$ac_try") 2>&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); }; }; then
15636 ac_header_compiler=yes
15638 echo "$as_me: failed program was:" >&5
15639 sed 's/^/| /' conftest.$ac_ext >&5
15641 ac_header_compiler=no
15644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15646 echo "${ECHO_T}$ac_header_compiler" >&6; }
15648 # Is the header present?
15649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15651 cat >conftest.$ac_ext <<_ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15657 #include <$ac_header>
15659 if { (ac_try="$ac_cpp conftest.$ac_ext"
15660 case "(($ac_try" in
15661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15662 *) ac_try_echo
=$ac_try;;
15664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15667 grep -v '^ *+' conftest.er1
>conftest.err
15669 cat conftest.err
>&5
15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15671 (exit $ac_status); } >/dev
/null
; then
15672 if test -s conftest.err
; then
15673 ac_cpp_err
=$ac_c_preproc_warn_flag
15674 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15681 if test -z "$ac_cpp_err"; then
15682 ac_header_preproc
=yes
15684 echo "$as_me: failed program was:" >&5
15685 sed 's/^/| /' conftest.
$ac_ext >&5
15687 ac_header_preproc
=no
15690 rm -f conftest.err conftest.
$ac_ext
15691 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15692 echo "${ECHO_T}$ac_header_preproc" >&6; }
15694 # So? What about this header?
15695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15697 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15698 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15699 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15700 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15701 ac_header_preproc
=yes
15704 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15705 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15706 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15707 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15708 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15709 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15710 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15711 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15713 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15715 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15717 ## ----------------------------------- ##
15718 ## Report this to llvmbugs@cs.uiuc.edu ##
15719 ## ----------------------------------- ##
15721 ) |
sed "s/^/$as_me: WARNING: /" >&2
15724 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15725 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15726 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15727 echo $ECHO_N "(cached) $ECHO_C" >&6
15729 eval "$as_ac_Header=\$ac_header_preproc"
15731 ac_res
=`eval echo '${'$as_ac_Header'}'`
15732 { echo "$as_me:$LINENO: result: $ac_res" >&5
15733 echo "${ECHO_T}$ac_res" >&6; }
15736 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15737 cat >>confdefs.h
<<_ACEOF
15738 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15751 for ac_header
in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15753 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15754 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15757 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15758 echo $ECHO_N "(cached) $ECHO_C" >&6
15760 ac_res
=`eval echo '${'$as_ac_Header'}'`
15761 { echo "$as_me:$LINENO: result: $ac_res" >&5
15762 echo "${ECHO_T}$ac_res" >&6; }
15764 # Is the header compilable?
15765 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15766 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15767 cat >conftest.
$ac_ext <<_ACEOF
15770 cat confdefs.h
>>conftest.
$ac_ext
15771 cat >>conftest.
$ac_ext <<_ACEOF
15772 /* end confdefs.h. */
15773 $ac_includes_default
15774 #include <$ac_header>
15776 rm -f conftest.
$ac_objext
15777 if { (ac_try
="$ac_compile"
15778 case "(($ac_try" in
15779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_compile") 2>conftest.er1
15785 grep -v '^ *+' conftest.er1 >conftest.err
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } &&
15790 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15791 { (case "(($ac_try" in
15792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15793 *) ac_try_echo
=$ac_try;;
15795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15796 (eval "$ac_try") 2>&5
15798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15799 (exit $ac_status); }; } &&
15800 { ac_try
='test -s conftest.$ac_objext'
15801 { (case "(($ac_try" in
15802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15806 (eval "$ac_try") 2>&5
15808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15809 (exit $ac_status); }; }; then
15810 ac_header_compiler=yes
15812 echo "$as_me: failed program was:" >&5
15813 sed 's/^/| /' conftest.$ac_ext >&5
15815 ac_header_compiler=no
15818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15820 echo "${ECHO_T}$ac_header_compiler" >&6; }
15822 # Is the header present?
15823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15825 cat >conftest.$ac_ext <<_ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 #include <$ac_header>
15833 if { (ac_try="$ac_cpp conftest.$ac_ext"
15834 case "(($ac_try" in
15835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15836 *) ac_try_echo
=$ac_try;;
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15841 grep -v '^ *+' conftest.er1
>conftest.err
15843 cat conftest.err
>&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } >/dev
/null
; then
15846 if test -s conftest.err
; then
15847 ac_cpp_err
=$ac_c_preproc_warn_flag
15848 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15855 if test -z "$ac_cpp_err"; then
15856 ac_header_preproc
=yes
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.
$ac_ext >&5
15861 ac_header_preproc
=no
15864 rm -f conftest.err conftest.
$ac_ext
15865 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15866 echo "${ECHO_T}$ac_header_preproc" >&6; }
15868 # So? What about this header?
15869 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15872 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15874 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15875 ac_header_preproc
=yes
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15879 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15881 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15883 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15885 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15887 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15888 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15889 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15891 ## ----------------------------------- ##
15892 ## Report this to llvmbugs@cs.uiuc.edu ##
15893 ## ----------------------------------- ##
15895 ) |
sed "s/^/$as_me: WARNING: /" >&2
15898 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15899 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15900 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 eval "$as_ac_Header=\$ac_header_preproc"
15905 ac_res
=`eval echo '${'$as_ac_Header'}'`
15906 { echo "$as_me:$LINENO: result: $ac_res" >&5
15907 echo "${ECHO_T}$ac_res" >&6; }
15910 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15911 cat >>confdefs.h
<<_ACEOF
15912 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15921 for ac_header
in utime.h windows.h
15923 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15924 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15927 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15928 echo $ECHO_N "(cached) $ECHO_C" >&6
15930 ac_res
=`eval echo '${'$as_ac_Header'}'`
15931 { echo "$as_me:$LINENO: result: $ac_res" >&5
15932 echo "${ECHO_T}$ac_res" >&6; }
15934 # Is the header compilable?
15935 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15936 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15937 cat >conftest.
$ac_ext <<_ACEOF
15940 cat confdefs.h
>>conftest.
$ac_ext
15941 cat >>conftest.
$ac_ext <<_ACEOF
15942 /* end confdefs.h. */
15943 $ac_includes_default
15944 #include <$ac_header>
15946 rm -f conftest.
$ac_objext
15947 if { (ac_try
="$ac_compile"
15948 case "(($ac_try" in
15949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15950 *) ac_try_echo=$ac_try;;
15952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15953 (eval "$ac_compile") 2>conftest.er1
15955 grep -v '^ *+' conftest.er1 >conftest.err
15957 cat conftest.err >&5
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); } &&
15960 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15961 { (case "(($ac_try" in
15962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15963 *) ac_try_echo
=$ac_try;;
15965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_try") 2>&5
15968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15969 (exit $ac_status); }; } &&
15970 { ac_try
='test -s conftest.$ac_objext'
15971 { (case "(($ac_try" in
15972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15976 (eval "$ac_try") 2>&5
15978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15979 (exit $ac_status); }; }; then
15980 ac_header_compiler=yes
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15985 ac_header_compiler=no
15988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15989 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15990 echo "${ECHO_T}$ac_header_compiler" >&6; }
15992 # Is the header present?
15993 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15994 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15995 cat >conftest.$ac_ext <<_ACEOF
15998 cat confdefs.h >>conftest.$ac_ext
15999 cat >>conftest.$ac_ext <<_ACEOF
16000 /* end confdefs.h. */
16001 #include <$ac_header>
16003 if { (ac_try="$ac_cpp conftest.$ac_ext"
16004 case "(($ac_try" in
16005 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16006 *) ac_try_echo
=$ac_try;;
16008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16011 grep -v '^ *+' conftest.er1
>conftest.err
16013 cat conftest.err
>&5
16014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16015 (exit $ac_status); } >/dev
/null
; then
16016 if test -s conftest.err
; then
16017 ac_cpp_err
=$ac_c_preproc_warn_flag
16018 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16025 if test -z "$ac_cpp_err"; then
16026 ac_header_preproc
=yes
16028 echo "$as_me: failed program was:" >&5
16029 sed 's/^/| /' conftest.
$ac_ext >&5
16031 ac_header_preproc
=no
16034 rm -f conftest.err conftest.
$ac_ext
16035 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16036 echo "${ECHO_T}$ac_header_preproc" >&6; }
16038 # So? What about this header?
16039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16042 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16044 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16045 ac_header_preproc
=yes
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16049 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16051 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16053 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16055 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16057 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16059 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16061 ## ----------------------------------- ##
16062 ## Report this to llvmbugs@cs.uiuc.edu ##
16063 ## ----------------------------------- ##
16065 ) |
sed "s/^/$as_me: WARNING: /" >&2
16068 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16069 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16070 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16071 echo $ECHO_N "(cached) $ECHO_C" >&6
16073 eval "$as_ac_Header=\$ac_header_preproc"
16075 ac_res
=`eval echo '${'$as_ac_Header'}'`
16076 { echo "$as_me:$LINENO: result: $ac_res" >&5
16077 echo "${ECHO_T}$ac_res" >&6; }
16080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16081 cat >>confdefs.h
<<_ACEOF
16082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16093 for ac_header
in sys
/mman.h sys
/param.h sys
/resource.h sys
/time.h
16095 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16096 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16099 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16102 ac_res
=`eval echo '${'$as_ac_Header'}'`
16103 { echo "$as_me:$LINENO: result: $ac_res" >&5
16104 echo "${ECHO_T}$ac_res" >&6; }
16106 # Is the header compilable?
16107 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16108 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16109 cat >conftest.
$ac_ext <<_ACEOF
16112 cat confdefs.h
>>conftest.
$ac_ext
16113 cat >>conftest.
$ac_ext <<_ACEOF
16114 /* end confdefs.h. */
16115 $ac_includes_default
16116 #include <$ac_header>
16118 rm -f conftest.
$ac_objext
16119 if { (ac_try
="$ac_compile"
16120 case "(($ac_try" in
16121 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16122 *) ac_try_echo=$ac_try;;
16124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16125 (eval "$ac_compile") 2>conftest.er1
16127 grep -v '^ *+' conftest.er1 >conftest.err
16129 cat conftest.err >&5
16130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16131 (exit $ac_status); } &&
16132 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16133 { (case "(($ac_try" in
16134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16135 *) ac_try_echo
=$ac_try;;
16137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16138 (eval "$ac_try") 2>&5
16140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16141 (exit $ac_status); }; } &&
16142 { ac_try
='test -s conftest.$ac_objext'
16143 { (case "(($ac_try" in
16144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16145 *) ac_try_echo=$ac_try;;
16147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16148 (eval "$ac_try") 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; }; then
16152 ac_header_compiler=yes
16154 echo "$as_me: failed program was:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 ac_header_compiler=no
16160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16161 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16162 echo "${ECHO_T}$ac_header_compiler" >&6; }
16164 # Is the header present?
16165 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16166 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16167 cat >conftest.$ac_ext <<_ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16173 #include <$ac_header>
16175 if { (ac_try="$ac_cpp conftest.$ac_ext"
16176 case "(($ac_try" in
16177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16178 *) ac_try_echo
=$ac_try;;
16180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16181 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16183 grep -v '^ *+' conftest.er1
>conftest.err
16185 cat conftest.err
>&5
16186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16187 (exit $ac_status); } >/dev
/null
; then
16188 if test -s conftest.err
; then
16189 ac_cpp_err
=$ac_c_preproc_warn_flag
16190 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16197 if test -z "$ac_cpp_err"; then
16198 ac_header_preproc
=yes
16200 echo "$as_me: failed program was:" >&5
16201 sed 's/^/| /' conftest.
$ac_ext >&5
16203 ac_header_preproc
=no
16206 rm -f conftest.err conftest.
$ac_ext
16207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16208 echo "${ECHO_T}$ac_header_preproc" >&6; }
16210 # So? What about this header?
16211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16217 ac_header_preproc
=yes
16220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16233 ## ----------------------------------- ##
16234 ## Report this to llvmbugs@cs.uiuc.edu ##
16235 ## ----------------------------------- ##
16237 ) |
sed "s/^/$as_me: WARNING: /" >&2
16240 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16241 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16242 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16243 echo $ECHO_N "(cached) $ECHO_C" >&6
16245 eval "$as_ac_Header=\$ac_header_preproc"
16247 ac_res
=`eval echo '${'$as_ac_Header'}'`
16248 { echo "$as_me:$LINENO: result: $ac_res" >&5
16249 echo "${ECHO_T}$ac_res" >&6; }
16252 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16253 cat >>confdefs.h
<<_ACEOF
16254 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16265 for ac_header
in sys
/types.h sys
/ioctl.h malloc
/malloc.h mach
/mach.h
16267 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16268 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16271 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16272 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 ac_res
=`eval echo '${'$as_ac_Header'}'`
16275 { echo "$as_me:$LINENO: result: $ac_res" >&5
16276 echo "${ECHO_T}$ac_res" >&6; }
16278 # Is the header compilable?
16279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16281 cat >conftest.
$ac_ext <<_ACEOF
16284 cat confdefs.h
>>conftest.
$ac_ext
16285 cat >>conftest.
$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 $ac_includes_default
16288 #include <$ac_header>
16290 rm -f conftest.
$ac_objext
16291 if { (ac_try
="$ac_compile"
16292 case "(($ac_try" in
16293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16294 *) ac_try_echo=$ac_try;;
16296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16297 (eval "$ac_compile") 2>conftest.er1
16299 grep -v '^ *+' conftest.er1 >conftest.err
16301 cat conftest.err >&5
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } &&
16304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16305 { (case "(($ac_try" in
16306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16307 *) ac_try_echo
=$ac_try;;
16309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16310 (eval "$ac_try") 2>&5
16312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16313 (exit $ac_status); }; } &&
16314 { ac_try
='test -s conftest.$ac_objext'
16315 { (case "(($ac_try" in
16316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16317 *) ac_try_echo=$ac_try;;
16319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16320 (eval "$ac_try") 2>&5
16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16323 (exit $ac_status); }; }; then
16324 ac_header_compiler=yes
16326 echo "$as_me: failed program was:" >&5
16327 sed 's/^/| /' conftest.$ac_ext >&5
16329 ac_header_compiler=no
16332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16333 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16334 echo "${ECHO_T}$ac_header_compiler" >&6; }
16336 # Is the header present?
16337 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16338 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16339 cat >conftest.$ac_ext <<_ACEOF
16342 cat confdefs.h >>conftest.$ac_ext
16343 cat >>conftest.$ac_ext <<_ACEOF
16344 /* end confdefs.h. */
16345 #include <$ac_header>
16347 if { (ac_try="$ac_cpp conftest.$ac_ext"
16348 case "(($ac_try" in
16349 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16350 *) ac_try_echo
=$ac_try;;
16352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16353 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16355 grep -v '^ *+' conftest.er1
>conftest.err
16357 cat conftest.err
>&5
16358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16359 (exit $ac_status); } >/dev
/null
; then
16360 if test -s conftest.err
; then
16361 ac_cpp_err
=$ac_c_preproc_warn_flag
16362 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16369 if test -z "$ac_cpp_err"; then
16370 ac_header_preproc
=yes
16372 echo "$as_me: failed program was:" >&5
16373 sed 's/^/| /' conftest.
$ac_ext >&5
16375 ac_header_preproc
=no
16378 rm -f conftest.err conftest.
$ac_ext
16379 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16380 echo "${ECHO_T}$ac_header_preproc" >&6; }
16382 # So? What about this header?
16383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16385 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16386 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16387 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16388 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16389 ac_header_preproc
=yes
16392 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16393 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16394 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16395 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16396 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16397 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16398 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16399 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16401 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16402 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16403 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16405 ## ----------------------------------- ##
16406 ## Report this to llvmbugs@cs.uiuc.edu ##
16407 ## ----------------------------------- ##
16409 ) |
sed "s/^/$as_me: WARNING: /" >&2
16412 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16413 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16414 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16415 echo $ECHO_N "(cached) $ECHO_C" >&6
16417 eval "$as_ac_Header=\$ac_header_preproc"
16419 ac_res
=`eval echo '${'$as_ac_Header'}'`
16420 { echo "$as_me:$LINENO: result: $ac_res" >&5
16421 echo "${ECHO_T}$ac_res" >&6; }
16424 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16425 cat >>confdefs.h
<<_ACEOF
16426 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16434 for ac_header
in valgrind
/valgrind.h
16436 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16437 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16438 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16439 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16440 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16441 echo $ECHO_N "(cached) $ECHO_C" >&6
16443 ac_res
=`eval echo '${'$as_ac_Header'}'`
16444 { echo "$as_me:$LINENO: result: $ac_res" >&5
16445 echo "${ECHO_T}$ac_res" >&6; }
16447 # Is the header compilable?
16448 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16449 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16450 cat >conftest.
$ac_ext <<_ACEOF
16453 cat confdefs.h
>>conftest.
$ac_ext
16454 cat >>conftest.
$ac_ext <<_ACEOF
16455 /* end confdefs.h. */
16456 $ac_includes_default
16457 #include <$ac_header>
16459 rm -f conftest.
$ac_objext
16460 if { (ac_try
="$ac_compile"
16461 case "(($ac_try" in
16462 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_compile") 2>conftest.er1
16468 grep -v '^ *+' conftest.er1 >conftest.err
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } &&
16473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16474 { (case "(($ac_try" in
16475 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16476 *) ac_try_echo
=$ac_try;;
16478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16479 (eval "$ac_try") 2>&5
16481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16482 (exit $ac_status); }; } &&
16483 { ac_try
='test -s conftest.$ac_objext'
16484 { (case "(($ac_try" in
16485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16486 *) ac_try_echo=$ac_try;;
16488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16489 (eval "$ac_try") 2>&5
16491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16492 (exit $ac_status); }; }; then
16493 ac_header_compiler=yes
16495 echo "$as_me: failed program was:" >&5
16496 sed 's/^/| /' conftest.$ac_ext >&5
16498 ac_header_compiler=no
16501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16503 echo "${ECHO_T}$ac_header_compiler" >&6; }
16505 # Is the header present?
16506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16508 cat >conftest.$ac_ext <<_ACEOF
16511 cat confdefs.h >>conftest.$ac_ext
16512 cat >>conftest.$ac_ext <<_ACEOF
16513 /* end confdefs.h. */
16514 #include <$ac_header>
16516 if { (ac_try="$ac_cpp conftest.$ac_ext"
16517 case "(($ac_try" in
16518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16519 *) ac_try_echo
=$ac_try;;
16521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16524 grep -v '^ *+' conftest.er1
>conftest.err
16526 cat conftest.err
>&5
16527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16528 (exit $ac_status); } >/dev
/null
; then
16529 if test -s conftest.err
; then
16530 ac_cpp_err
=$ac_c_preproc_warn_flag
16531 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16538 if test -z "$ac_cpp_err"; then
16539 ac_header_preproc
=yes
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.
$ac_ext >&5
16544 ac_header_preproc
=no
16547 rm -f conftest.err conftest.
$ac_ext
16548 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16549 echo "${ECHO_T}$ac_header_preproc" >&6; }
16551 # So? What about this header?
16552 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16554 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16555 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16557 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16558 ac_header_preproc
=yes
16561 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16562 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16563 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16564 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16565 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16566 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16567 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16568 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16570 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16571 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16572 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16574 ## ----------------------------------- ##
16575 ## Report this to llvmbugs@cs.uiuc.edu ##
16576 ## ----------------------------------- ##
16578 ) |
sed "s/^/$as_me: WARNING: /" >&2
16581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16583 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 eval "$as_ac_Header=\$ac_header_preproc"
16588 ac_res
=`eval echo '${'$as_ac_Header'}'`
16589 { echo "$as_me:$LINENO: result: $ac_res" >&5
16590 echo "${ECHO_T}$ac_res" >&6; }
16593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16594 cat >>confdefs.h
<<_ACEOF
16595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16602 if test "$ENABLE_THREADS" -eq 1 ; then
16604 for ac_header
in pthread.h
16606 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16607 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16610 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16611 echo $ECHO_N "(cached) $ECHO_C" >&6
16613 ac_res
=`eval echo '${'$as_ac_Header'}'`
16614 { echo "$as_me:$LINENO: result: $ac_res" >&5
16615 echo "${ECHO_T}$ac_res" >&6; }
16617 # Is the header compilable?
16618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16620 cat >conftest.
$ac_ext <<_ACEOF
16623 cat confdefs.h
>>conftest.
$ac_ext
16624 cat >>conftest.
$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16626 $ac_includes_default
16627 #include <$ac_header>
16629 rm -f conftest.
$ac_objext
16630 if { (ac_try
="$ac_compile"
16631 case "(($ac_try" in
16632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16633 *) ac_try_echo=$ac_try;;
16635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16636 (eval "$ac_compile") 2>conftest.er1
16638 grep -v '^ *+' conftest.er1 >conftest.err
16640 cat conftest.err >&5
16641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16642 (exit $ac_status); } &&
16643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16646 *) ac_try_echo
=$ac_try;;
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_try") 2>&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); }; } &&
16653 { ac_try
='test -s conftest.$ac_objext'
16654 { (case "(($ac_try" in
16655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16656 *) ac_try_echo=$ac_try;;
16658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16659 (eval "$ac_try") 2>&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); }; }; then
16663 ac_header_compiler=yes
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 ac_header_compiler=no
16671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16672 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16673 echo "${ECHO_T}$ac_header_compiler" >&6; }
16675 # Is the header present?
16676 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16677 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16678 cat >conftest.$ac_ext <<_ACEOF
16681 cat confdefs.h >>conftest.$ac_ext
16682 cat >>conftest.$ac_ext <<_ACEOF
16683 /* end confdefs.h. */
16684 #include <$ac_header>
16686 if { (ac_try="$ac_cpp conftest.$ac_ext"
16687 case "(($ac_try" in
16688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16689 *) ac_try_echo
=$ac_try;;
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16694 grep -v '^ *+' conftest.er1
>conftest.err
16696 cat conftest.err
>&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } >/dev
/null
; then
16699 if test -s conftest.err
; then
16700 ac_cpp_err
=$ac_c_preproc_warn_flag
16701 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16708 if test -z "$ac_cpp_err"; then
16709 ac_header_preproc
=yes
16711 echo "$as_me: failed program was:" >&5
16712 sed 's/^/| /' conftest.
$ac_ext >&5
16714 ac_header_preproc
=no
16717 rm -f conftest.err conftest.
$ac_ext
16718 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16719 echo "${ECHO_T}$ac_header_preproc" >&6; }
16721 # So? What about this header?
16722 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16724 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16725 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16727 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16728 ac_header_preproc
=yes
16731 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16732 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16734 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16736 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16738 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16740 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16742 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16744 ## ----------------------------------- ##
16745 ## Report this to llvmbugs@cs.uiuc.edu ##
16746 ## ----------------------------------- ##
16748 ) |
sed "s/^/$as_me: WARNING: /" >&2
16751 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16752 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16753 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16756 eval "$as_ac_Header=\$ac_header_preproc"
16758 ac_res
=`eval echo '${'$as_ac_Header'}'`
16759 { echo "$as_me:$LINENO: result: $ac_res" >&5
16760 echo "${ECHO_T}$ac_res" >&6; }
16763 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16764 cat >>confdefs.h
<<_ACEOF
16765 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16781 if test "$llvm_cv_enable_libffi" = "yes" ; then
16784 for ac_header
in ffi.h ffi
/ffi.h
16786 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16787 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16788 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16789 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16790 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16791 echo $ECHO_N "(cached) $ECHO_C" >&6
16793 ac_res
=`eval echo '${'$as_ac_Header'}'`
16794 { echo "$as_me:$LINENO: result: $ac_res" >&5
16795 echo "${ECHO_T}$ac_res" >&6; }
16797 # Is the header compilable?
16798 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16799 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16800 cat >conftest.
$ac_ext <<_ACEOF
16803 cat confdefs.h
>>conftest.
$ac_ext
16804 cat >>conftest.
$ac_ext <<_ACEOF
16805 /* end confdefs.h. */
16806 $ac_includes_default
16807 #include <$ac_header>
16809 rm -f conftest.
$ac_objext
16810 if { (ac_try
="$ac_compile"
16811 case "(($ac_try" in
16812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_compile") 2>conftest.er1
16818 grep -v '^ *+' conftest.er1 >conftest.err
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16826 *) ac_try_echo
=$ac_try;;
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try
='test -s conftest.$ac_objext'
16834 { (case "(($ac_try" in
16835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 ac_header_compiler=yes
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 ac_header_compiler=no
16851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16852 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16853 echo "${ECHO_T}$ac_header_compiler" >&6; }
16855 # Is the header present?
16856 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16857 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16858 cat >conftest.$ac_ext <<_ACEOF
16861 cat confdefs.h >>conftest.$ac_ext
16862 cat >>conftest.$ac_ext <<_ACEOF
16863 /* end confdefs.h. */
16864 #include <$ac_header>
16866 if { (ac_try="$ac_cpp conftest.$ac_ext"
16867 case "(($ac_try" in
16868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16869 *) ac_try_echo
=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16874 grep -v '^ *+' conftest.er1
>conftest.err
16876 cat conftest.err
>&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } >/dev
/null
; then
16879 if test -s conftest.err
; then
16880 ac_cpp_err
=$ac_c_preproc_warn_flag
16881 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16888 if test -z "$ac_cpp_err"; then
16889 ac_header_preproc
=yes
16891 echo "$as_me: failed program was:" >&5
16892 sed 's/^/| /' conftest.
$ac_ext >&5
16894 ac_header_preproc
=no
16897 rm -f conftest.err conftest.
$ac_ext
16898 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16899 echo "${ECHO_T}$ac_header_preproc" >&6; }
16901 # So? What about this header?
16902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16905 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16907 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16908 ac_header_preproc
=yes
16911 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16912 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16913 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16914 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16915 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16916 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16917 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16918 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16920 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16921 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16922 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16924 ## ----------------------------------- ##
16925 ## Report this to llvmbugs@cs.uiuc.edu ##
16926 ## ----------------------------------- ##
16928 ) |
sed "s/^/$as_me: WARNING: /" >&2
16931 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16933 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16934 echo $ECHO_N "(cached) $ECHO_C" >&6
16936 eval "$as_ac_Header=\$ac_header_preproc"
16938 ac_res
=`eval echo '${'$as_ac_Header'}'`
16939 { echo "$as_me:$LINENO: result: $ac_res" >&5
16940 echo "${ECHO_T}$ac_res" >&6; }
16943 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16944 cat >>confdefs.h
<<_ACEOF
16945 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16955 for ac_header
in CrashReporterClient.h
16957 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16958 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16961 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16962 echo $ECHO_N "(cached) $ECHO_C" >&6
16964 ac_res
=`eval echo '${'$as_ac_Header'}'`
16965 { echo "$as_me:$LINENO: result: $ac_res" >&5
16966 echo "${ECHO_T}$ac_res" >&6; }
16968 # Is the header compilable?
16969 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16970 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16971 cat >conftest.
$ac_ext <<_ACEOF
16974 cat confdefs.h
>>conftest.
$ac_ext
16975 cat >>conftest.
$ac_ext <<_ACEOF
16976 /* end confdefs.h. */
16977 $ac_includes_default
16978 #include <$ac_header>
16980 rm -f conftest.
$ac_objext
16981 if { (ac_try
="$ac_compile"
16982 case "(($ac_try" in
16983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16984 *) ac_try_echo=$ac_try;;
16986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16987 (eval "$ac_compile") 2>conftest.er1
16989 grep -v '^ *+' conftest.er1 >conftest.err
16991 cat conftest.err >&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); } &&
16994 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16995 { (case "(($ac_try" in
16996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16997 *) ac_try_echo
=$ac_try;;
16999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17000 (eval "$ac_try") 2>&5
17002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17003 (exit $ac_status); }; } &&
17004 { ac_try
='test -s conftest.$ac_objext'
17005 { (case "(($ac_try" in
17006 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_try") 2>&5
17012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17013 (exit $ac_status); }; }; then
17014 ac_header_compiler=yes
17016 echo "$as_me: failed program was:" >&5
17017 sed 's/^/| /' conftest.$ac_ext >&5
17019 ac_header_compiler=no
17022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17024 echo "${ECHO_T}$ac_header_compiler" >&6; }
17026 # Is the header present?
17027 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17028 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17029 cat >conftest.$ac_ext <<_ACEOF
17032 cat confdefs.h >>conftest.$ac_ext
17033 cat >>conftest.$ac_ext <<_ACEOF
17034 /* end confdefs.h. */
17035 #include <$ac_header>
17037 if { (ac_try="$ac_cpp conftest.$ac_ext"
17038 case "(($ac_try" in
17039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17040 *) ac_try_echo
=$ac_try;;
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17045 grep -v '^ *+' conftest.er1
>conftest.err
17047 cat conftest.err
>&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } >/dev
/null
; then
17050 if test -s conftest.err
; then
17051 ac_cpp_err
=$ac_c_preproc_warn_flag
17052 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17059 if test -z "$ac_cpp_err"; then
17060 ac_header_preproc
=yes
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.
$ac_ext >&5
17065 ac_header_preproc
=no
17068 rm -f conftest.err conftest.
$ac_ext
17069 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17070 echo "${ECHO_T}$ac_header_preproc" >&6; }
17072 # So? What about this header?
17073 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17075 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17076 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17077 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17078 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17079 ac_header_preproc
=yes
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17083 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17084 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17085 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17087 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17089 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17090 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17091 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17092 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17093 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17095 ## ----------------------------------- ##
17096 ## Report this to llvmbugs@cs.uiuc.edu ##
17097 ## ----------------------------------- ##
17099 ) |
sed "s/^/$as_me: WARNING: /" >&2
17102 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17103 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17104 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17105 echo $ECHO_N "(cached) $ECHO_C" >&6
17107 eval "$as_ac_Header=\$ac_header_preproc"
17109 ac_res
=`eval echo '${'$as_ac_Header'}'`
17110 { echo "$as_me:$LINENO: result: $ac_res" >&5
17111 echo "${ECHO_T}$ac_res" >&6; }
17114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17115 cat >>confdefs.h
<<_ACEOF
17116 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17127 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17128 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17129 if test "${ac_cv_huge_val_sanity+set}" = set; then
17130 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 ac_cpp
='$CXXCPP $CPPFLAGS'
17135 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17136 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17137 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17139 ac_save_CXXFLAGS
=$CXXFLAGS
17141 if test "$cross_compiling" = yes; then
17142 ac_cv_huge_val_sanity
=yes
17144 cat >conftest.
$ac_ext <<_ACEOF
17147 cat confdefs.h
>>conftest.
$ac_ext
17148 cat >>conftest.
$ac_ext <<_ACEOF
17149 /* end confdefs.h. */
17154 double x = HUGE_VAL; return x != x;
17159 rm -f conftest
$ac_exeext
17160 if { (ac_try
="$ac_link"
17161 case "(($ac_try" in
17162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17170 { (case "(($ac_try" in
17171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17172 *) ac_try_echo
=$ac_try;;
17174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17175 (eval "$ac_try") 2>&5
17177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17178 (exit $ac_status); }; }; then
17179 ac_cv_huge_val_sanity
=yes
17181 echo "$as_me: program exited with status $ac_status" >&5
17182 echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.
$ac_ext >&5
17185 ( exit $ac_status )
17186 ac_cv_huge_val_sanity
=no
17188 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17192 CXXFLAGS
=$ac_save_CXXFLAGS
17194 ac_cpp
='$CPP $CPPFLAGS'
17195 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17196 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17197 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17201 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17202 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17203 HUGE_VAL_SANITY
=$ac_cv_huge_val_sanity
17206 { echo "$as_me:$LINENO: checking for pid_t" >&5
17207 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17208 if test "${ac_cv_type_pid_t+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 cat >conftest.
$ac_ext <<_ACEOF
17214 cat confdefs.h
>>conftest.
$ac_ext
17215 cat >>conftest.
$ac_ext <<_ACEOF
17216 /* end confdefs.h. */
17217 $ac_includes_default
17218 typedef pid_t ac__type_new_;
17222 if ((ac__type_new_ *) 0)
17224 if (sizeof (ac__type_new_))
17230 rm -f conftest.
$ac_objext
17231 if { (ac_try
="$ac_compile"
17232 case "(($ac_try" in
17233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_compile") 2>conftest.er1
17239 grep -v '^ *+' conftest.er1 >conftest.err
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243 (exit $ac_status); } &&
17244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17245 { (case "(($ac_try" in
17246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17247 *) ac_try_echo
=$ac_try;;
17249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_try") 2>&5
17252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17253 (exit $ac_status); }; } &&
17254 { ac_try
='test -s conftest.$ac_objext'
17255 { (case "(($ac_try" in
17256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17257 *) ac_try_echo=$ac_try;;
17259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17260 (eval "$ac_try") 2>&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); }; }; then
17264 ac_cv_type_pid_t=yes
17266 echo "$as_me: failed program was:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17269 ac_cv_type_pid_t=no
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17274 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17275 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17276 if test $ac_cv_type_pid_t = yes; then
17280 cat >>confdefs.h <<_ACEOF
17286 { echo "$as_me:$LINENO: checking for size_t" >&5
17287 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17288 if test "${ac_cv_type_size_t+set}" = set; then
17289 echo $ECHO_N "(cached) $ECHO_C" >&6
17291 cat >conftest.$ac_ext <<_ACEOF
17294 cat confdefs.h >>conftest.$ac_ext
17295 cat >>conftest.$ac_ext <<_ACEOF
17296 /* end confdefs.h. */
17297 $ac_includes_default
17298 typedef size_t ac__type_new_;
17302 if ((ac__type_new_ *) 0)
17304 if (sizeof (ac__type_new_))
17310 rm -f conftest.$ac_objext
17311 if { (ac_try="$ac_compile"
17312 case "(($ac_try" in
17313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17314 *) ac_try_echo
=$ac_try;;
17316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17317 (eval "$ac_compile") 2>conftest.er1
17319 grep -v '^ *+' conftest.er1
>conftest.err
17321 cat conftest.err
>&5
17322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17323 (exit $ac_status); } &&
17324 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17325 { (case "(($ac_try" in
17326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17327 *) ac_try_echo=$ac_try;;
17329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17330 (eval "$ac_try") 2>&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); }; } &&
17334 { ac_try='test -s conftest.$ac_objext'
17335 { (case "(($ac_try" in
17336 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17337 *) ac_try_echo
=$ac_try;;
17339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17340 (eval "$ac_try") 2>&5
17342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17343 (exit $ac_status); }; }; then
17344 ac_cv_type_size_t
=yes
17346 echo "$as_me: failed program was:" >&5
17347 sed 's/^/| /' conftest.
$ac_ext >&5
17349 ac_cv_type_size_t
=no
17352 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17354 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17355 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17356 if test $ac_cv_type_size_t = yes; then
17360 cat >>confdefs.h
<<_ACEOF
17361 #define size_t unsigned int
17367 cat >>confdefs.h
<<_ACEOF
17368 #define RETSIGTYPE void
17371 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17372 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17373 if test "${ac_cv_struct_tm+set}" = set; then
17374 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 cat >conftest.
$ac_ext <<_ACEOF
17379 cat confdefs.h
>>conftest.
$ac_ext
17380 cat >>conftest.
$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17382 #include <sys/types.h>
17388 struct tm *tp; tp->tm_sec;
17393 rm -f conftest.
$ac_objext
17394 if { (ac_try
="$ac_compile"
17395 case "(($ac_try" in
17396 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_compile") 2>conftest.er1
17402 grep -v '^ *+' conftest.er1 >conftest.err
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17406 (exit $ac_status); } &&
17407 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17408 { (case "(($ac_try" in
17409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17410 *) ac_try_echo
=$ac_try;;
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_try") 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); }; } &&
17417 { ac_try
='test -s conftest.$ac_objext'
17418 { (case "(($ac_try" in
17419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_try") 2>&5
17425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17426 (exit $ac_status); }; }; then
17427 ac_cv_struct_tm=time.h
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 ac_cv_struct_tm=sys/time.h
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17437 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17438 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17439 if test $ac_cv_struct_tm = sys/time.h; then
17441 cat >>confdefs.h <<\_ACEOF
17442 #define TM_IN_SYS_TIME 1
17447 { echo "$as_me:$LINENO: checking for int64_t" >&5
17448 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17449 if test "${ac_cv_type_int64_t+set}" = set; then
17450 echo $ECHO_N "(cached) $ECHO_C" >&6
17452 cat >conftest.$ac_ext <<_ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17458 $ac_includes_default
17459 typedef int64_t ac__type_new_;
17463 if ((ac__type_new_ *) 0)
17465 if (sizeof (ac__type_new_))
17471 rm -f conftest.$ac_objext
17472 if { (ac_try="$ac_compile"
17473 case "(($ac_try" in
17474 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17475 *) ac_try_echo
=$ac_try;;
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_compile") 2>conftest.er1
17480 grep -v '^ *+' conftest.er1
>conftest.err
17482 cat conftest.err
>&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } &&
17485 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17486 { (case "(($ac_try" in
17487 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17488 *) ac_try_echo=$ac_try;;
17490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17491 (eval "$ac_try") 2>&5
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; } &&
17495 { ac_try='test -s conftest.$ac_objext'
17496 { (case "(($ac_try" in
17497 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17498 *) ac_try_echo
=$ac_try;;
17500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17501 (eval "$ac_try") 2>&5
17503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17504 (exit $ac_status); }; }; then
17505 ac_cv_type_int64_t
=yes
17507 echo "$as_me: failed program was:" >&5
17508 sed 's/^/| /' conftest.
$ac_ext >&5
17510 ac_cv_type_int64_t
=no
17513 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17515 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17516 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17517 if test $ac_cv_type_int64_t = yes; then
17519 cat >>confdefs.h
<<_ACEOF
17520 #define HAVE_INT64_T 1
17525 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17526 echo "$as_me: error: Type int64_t required but not found" >&2;}
17527 { (exit 1); exit 1; }; }
17530 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17531 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17532 if test "${ac_cv_type_uint64_t+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 cat >conftest.
$ac_ext <<_ACEOF
17538 cat confdefs.h
>>conftest.
$ac_ext
17539 cat >>conftest.
$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17541 $ac_includes_default
17542 typedef uint64_t ac__type_new_;
17546 if ((ac__type_new_ *) 0)
17548 if (sizeof (ac__type_new_))
17554 rm -f conftest.
$ac_objext
17555 if { (ac_try
="$ac_compile"
17556 case "(($ac_try" in
17557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17558 *) ac_try_echo=$ac_try;;
17560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17561 (eval "$ac_compile") 2>conftest.er1
17563 grep -v '^ *+' conftest.er1 >conftest.err
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
17568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17569 { (case "(($ac_try" in
17570 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17571 *) ac_try_echo
=$ac_try;;
17573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_try") 2>&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); }; } &&
17578 { ac_try
='test -s conftest.$ac_objext'
17579 { (case "(($ac_try" in
17580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_try") 2>&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); }; }; then
17588 ac_cv_type_uint64_t=yes
17590 echo "$as_me: failed program was:" >&5
17591 sed 's/^/| /' conftest.$ac_ext >&5
17593 ac_cv_type_uint64_t=no
17596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17598 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17599 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17600 if test $ac_cv_type_uint64_t = yes; then
17602 cat >>confdefs.h <<_ACEOF
17603 #define HAVE_UINT64_T 1
17608 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17609 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17610 if test "${ac_cv_type_u_int64_t+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17613 cat >conftest.$ac_ext <<_ACEOF
17616 cat confdefs.h >>conftest.$ac_ext
17617 cat >>conftest.$ac_ext <<_ACEOF
17618 /* end confdefs.h. */
17619 $ac_includes_default
17620 typedef u_int64_t ac__type_new_;
17624 if ((ac__type_new_ *) 0)
17626 if (sizeof (ac__type_new_))
17632 rm -f conftest.$ac_objext
17633 if { (ac_try="$ac_compile"
17634 case "(($ac_try" in
17635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17636 *) ac_try_echo
=$ac_try;;
17638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17639 (eval "$ac_compile") 2>conftest.er1
17641 grep -v '^ *+' conftest.er1
>conftest.err
17643 cat conftest.err
>&5
17644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17645 (exit $ac_status); } &&
17646 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17647 { (case "(($ac_try" in
17648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17652 (eval "$ac_try") 2>&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); }; } &&
17656 { ac_try='test -s conftest.$ac_objext'
17657 { (case "(($ac_try" in
17658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17659 *) ac_try_echo
=$ac_try;;
17661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17662 (eval "$ac_try") 2>&5
17664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17665 (exit $ac_status); }; }; then
17666 ac_cv_type_u_int64_t
=yes
17668 echo "$as_me: failed program was:" >&5
17669 sed 's/^/| /' conftest.
$ac_ext >&5
17671 ac_cv_type_u_int64_t
=no
17674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17676 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17677 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17678 if test $ac_cv_type_u_int64_t = yes; then
17680 cat >>confdefs.h
<<_ACEOF
17681 #define HAVE_U_INT64_T 1
17686 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17687 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17688 { (exit 1); exit 1; }; }
17702 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17704 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17705 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17706 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17707 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17708 echo $ECHO_N "(cached) $ECHO_C" >&6
17710 cat >conftest.
$ac_ext <<_ACEOF
17713 cat confdefs.h
>>conftest.
$ac_ext
17714 cat >>conftest.
$ac_ext <<_ACEOF
17715 /* end confdefs.h. */
17716 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17717 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17718 #define $ac_func innocuous_$ac_func
17720 /* System header to define __stub macros and hopefully few prototypes,
17721 which can conflict with char $ac_func (); below.
17722 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17723 <limits.h> exists even on freestanding compilers. */
17726 # include <limits.h>
17728 # include <assert.h>
17733 /* Override any GCC internal prototype to avoid an error.
17734 Use char because int might match the return type of a GCC
17735 builtin and then its argument prototype would still apply. */
17740 /* The GNU C library defines this for functions which it implements
17741 to always fail with ENOSYS. Some functions are actually named
17742 something starting with __ and the normal name is an alias. */
17743 #if defined __stub_$ac_func || defined __stub___$ac_func
17750 return $ac_func ();
17755 rm -f conftest.
$ac_objext conftest
$ac_exeext
17756 if { (ac_try
="$ac_link"
17757 case "(($ac_try" in
17758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17759 *) ac_try_echo=$ac_try;;
17761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17762 (eval "$ac_link") 2>conftest.er1
17764 grep -v '^ *+' conftest.er1 >conftest.err
17766 cat conftest.err >&5
17767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17768 (exit $ac_status); } &&
17769 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17770 { (case "(($ac_try" in
17771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17772 *) ac_try_echo
=$ac_try;;
17774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17775 (eval "$ac_try") 2>&5
17777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17778 (exit $ac_status); }; } &&
17779 { ac_try
='test -s conftest$ac_exeext'
17780 { (case "(($ac_try" in
17781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17782 *) ac_try_echo=$ac_try;;
17784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17785 (eval "$ac_try") 2>&5
17787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17788 (exit $ac_status); }; }; then
17789 eval "$as_ac_var=yes"
17791 echo "$as_me: failed program was:" >&5
17792 sed 's/^/| /' conftest.$ac_ext >&5
17794 eval "$as_ac_var=no"
17797 rm -f core conftest.err conftest.$ac_objext \
17798 conftest$ac_exeext conftest.$ac_ext
17800 ac_res=`eval echo '${'$as_ac_var'}'`
17801 { echo "$as_me:$LINENO: result: $ac_res" >&5
17802 echo "${ECHO_T}$ac_res" >&6; }
17803 if test `eval echo '${'$as_ac_var'}'` = yes; then
17804 cat >>confdefs.h <<_ACEOF
17805 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
17815 for ac_func in powf fmodf strtof round
17817 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
17818 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17819 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17820 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17821 echo $ECHO_N "(cached) $ECHO_C" >&6
17823 cat >conftest.$ac_ext <<_ACEOF
17826 cat confdefs.h >>conftest.$ac_ext
17827 cat >>conftest.$ac_ext <<_ACEOF
17828 /* end confdefs.h. */
17829 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17831 #define $ac_func innocuous_$ac_func
17833 /* System header to define __stub macros and hopefully few prototypes,
17834 which can conflict with char $ac_func (); below.
17835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17836 <limits.h> exists even on freestanding compilers. */
17839 # include <limits.h>
17841 # include <assert.h>
17846 /* Override any GCC internal prototype to avoid an error.
17847 Use char because int might match the return type of a GCC
17848 builtin and then its argument prototype would still apply. */
17853 /* The GNU C library defines this for functions which it implements
17854 to always fail with ENOSYS. Some functions are actually named
17855 something starting with __ and the normal name is an alias. */
17856 #if defined __stub_$ac_func || defined __stub___$ac_func
17863 return $ac_func ();
17868 rm -f conftest.$ac_objext conftest$ac_exeext
17869 if { (ac_try="$ac_link"
17870 case "(($ac_try" in
17871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17872 *) ac_try_echo
=$ac_try;;
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_link") 2>conftest.er1
17877 grep -v '^ *+' conftest.er1
>conftest.err
17879 cat conftest.err
>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } &&
17882 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17883 { (case "(($ac_try" in
17884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_try") 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest$ac_exeext'
17893 { (case "(($ac_try" in
17894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17895 *) ac_try_echo
=$ac_try;;
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_try") 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 eval "$as_ac_var=yes"
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.
$ac_ext >&5
17907 eval "$as_ac_var=no"
17910 rm -f core conftest.err conftest.
$ac_objext \
17911 conftest
$ac_exeext conftest.
$ac_ext
17913 ac_res
=`eval echo '${'$as_ac_var'}'`
17914 { echo "$as_me:$LINENO: result: $ac_res" >&5
17915 echo "${ECHO_T}$ac_res" >&6; }
17916 if test `eval echo '${'$as_ac_var'}'` = yes; then
17917 cat >>confdefs.h
<<_ACEOF
17918 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17929 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
17931 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17932 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17933 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17934 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17935 echo $ECHO_N "(cached) $ECHO_C" >&6
17937 cat >conftest.
$ac_ext <<_ACEOF
17940 cat confdefs.h
>>conftest.
$ac_ext
17941 cat >>conftest.
$ac_ext <<_ACEOF
17942 /* end confdefs.h. */
17943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17945 #define $ac_func innocuous_$ac_func
17947 /* System header to define __stub macros and hopefully few prototypes,
17948 which can conflict with char $ac_func (); below.
17949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17950 <limits.h> exists even on freestanding compilers. */
17953 # include <limits.h>
17955 # include <assert.h>
17960 /* Override any GCC internal prototype to avoid an error.
17961 Use char because int might match the return type of a GCC
17962 builtin and then its argument prototype would still apply. */
17967 /* The GNU C library defines this for functions which it implements
17968 to always fail with ENOSYS. Some functions are actually named
17969 something starting with __ and the normal name is an alias. */
17970 #if defined __stub_$ac_func || defined __stub___$ac_func
17977 return $ac_func ();
17982 rm -f conftest.
$ac_objext conftest
$ac_exeext
17983 if { (ac_try
="$ac_link"
17984 case "(($ac_try" in
17985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_link") 2>conftest.er1
17991 grep -v '^ *+' conftest.er1 >conftest.err
17993 cat conftest.err >&5
17994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17995 (exit $ac_status); } &&
17996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17997 { (case "(($ac_try" in
17998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17999 *) ac_try_echo
=$ac_try;;
18001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18002 (eval "$ac_try") 2>&5
18004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18005 (exit $ac_status); }; } &&
18006 { ac_try
='test -s conftest$ac_exeext'
18007 { (case "(($ac_try" in
18008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18009 *) ac_try_echo=$ac_try;;
18011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18012 (eval "$ac_try") 2>&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); }; }; then
18016 eval "$as_ac_var=yes"
18018 echo "$as_me: failed program was:" >&5
18019 sed 's/^/| /' conftest.$ac_ext >&5
18021 eval "$as_ac_var=no"
18024 rm -f core conftest.err conftest.$ac_objext \
18025 conftest$ac_exeext conftest.$ac_ext
18027 ac_res=`eval echo '${'$as_ac_var'}'`
18028 { echo "$as_me:$LINENO: result: $ac_res" >&5
18029 echo "${ECHO_T}$ac_res" >&6; }
18030 if test `eval echo '${'$as_ac_var'}'` = yes; then
18031 cat >>confdefs.h <<_ACEOF
18032 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18041 for ac_func in isatty mkdtemp mkstemp
18043 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18044 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18045 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18046 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18047 echo $ECHO_N "(cached) $ECHO_C" >&6
18049 cat >conftest.$ac_ext <<_ACEOF
18052 cat confdefs.h >>conftest.$ac_ext
18053 cat >>conftest.$ac_ext <<_ACEOF
18054 /* end confdefs.h. */
18055 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18056 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18057 #define $ac_func innocuous_$ac_func
18059 /* System header to define __stub macros and hopefully few prototypes,
18060 which can conflict with char $ac_func (); below.
18061 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18062 <limits.h> exists even on freestanding compilers. */
18065 # include <limits.h>
18067 # include <assert.h>
18072 /* Override any GCC internal prototype to avoid an error.
18073 Use char because int might match the return type of a GCC
18074 builtin and then its argument prototype would still apply. */
18079 /* The GNU C library defines this for functions which it implements
18080 to always fail with ENOSYS. Some functions are actually named
18081 something starting with __ and the normal name is an alias. */
18082 #if defined __stub_$ac_func || defined __stub___$ac_func
18089 return $ac_func ();
18094 rm -f conftest.$ac_objext conftest$ac_exeext
18095 if { (ac_try="$ac_link"
18096 case "(($ac_try" in
18097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18098 *) ac_try_echo
=$ac_try;;
18100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_link") 2>conftest.er1
18103 grep -v '^ *+' conftest.er1
>conftest.err
18105 cat conftest.err
>&5
18106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18107 (exit $ac_status); } &&
18108 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18109 { (case "(($ac_try" in
18110 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18111 *) ac_try_echo=$ac_try;;
18113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18114 (eval "$ac_try") 2>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); }; } &&
18118 { ac_try='test -s conftest$ac_exeext'
18119 { (case "(($ac_try" in
18120 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18121 *) ac_try_echo
=$ac_try;;
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; }; then
18128 eval "$as_ac_var=yes"
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.
$ac_ext >&5
18133 eval "$as_ac_var=no"
18136 rm -f core conftest.err conftest.
$ac_objext \
18137 conftest
$ac_exeext conftest.
$ac_ext
18139 ac_res
=`eval echo '${'$as_ac_var'}'`
18140 { echo "$as_me:$LINENO: result: $ac_res" >&5
18141 echo "${ECHO_T}$ac_res" >&6; }
18142 if test `eval echo '${'$as_ac_var'}'` = yes; then
18143 cat >>confdefs.h
<<_ACEOF
18144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18156 for ac_func
in mktemp posix_spawn realpath sbrk setrlimit strdup
18158 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18159 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18160 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18161 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18162 echo $ECHO_N "(cached) $ECHO_C" >&6
18164 cat >conftest.
$ac_ext <<_ACEOF
18167 cat confdefs.h
>>conftest.
$ac_ext
18168 cat >>conftest.
$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18172 #define $ac_func innocuous_$ac_func
18174 /* System header to define __stub macros and hopefully few prototypes,
18175 which can conflict with char $ac_func (); below.
18176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18177 <limits.h> exists even on freestanding compilers. */
18180 # include <limits.h>
18182 # include <assert.h>
18187 /* Override any GCC internal prototype to avoid an error.
18188 Use char because int might match the return type of a GCC
18189 builtin and then its argument prototype would still apply. */
18194 /* The GNU C library defines this for functions which it implements
18195 to always fail with ENOSYS. Some functions are actually named
18196 something starting with __ and the normal name is an alias. */
18197 #if defined __stub_$ac_func || defined __stub___$ac_func
18204 return $ac_func ();
18209 rm -f conftest.
$ac_objext conftest
$ac_exeext
18210 if { (ac_try
="$ac_link"
18211 case "(($ac_try" in
18212 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_link") 2>conftest.er1
18218 grep -v '^ *+' conftest.er1 >conftest.err
18220 cat conftest.err >&5
18221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18222 (exit $ac_status); } &&
18223 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18224 { (case "(($ac_try" in
18225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18226 *) ac_try_echo
=$ac_try;;
18228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18229 (eval "$ac_try") 2>&5
18231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18232 (exit $ac_status); }; } &&
18233 { ac_try
='test -s conftest$ac_exeext'
18234 { (case "(($ac_try" in
18235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18236 *) ac_try_echo=$ac_try;;
18238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18239 (eval "$ac_try") 2>&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); }; }; then
18243 eval "$as_ac_var=yes"
18245 echo "$as_me: failed program was:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18248 eval "$as_ac_var=no"
18251 rm -f core conftest.err conftest.$ac_objext \
18252 conftest$ac_exeext conftest.$ac_ext
18254 ac_res=`eval echo '${'$as_ac_var'}'`
18255 { echo "$as_me:$LINENO: result: $ac_res" >&5
18256 echo "${ECHO_T}$ac_res" >&6; }
18257 if test `eval echo '${'$as_ac_var'}'` = yes; then
18258 cat >>confdefs.h <<_ACEOF
18259 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18269 for ac_func in strerror strerror_r strerror_s setenv
18271 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18272 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18273 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18274 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18275 echo $ECHO_N "(cached) $ECHO_C" >&6
18277 cat >conftest.$ac_ext <<_ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18285 #define $ac_func innocuous_$ac_func
18287 /* System header to define __stub macros and hopefully few prototypes,
18288 which can conflict with char $ac_func (); below.
18289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18290 <limits.h> exists even on freestanding compilers. */
18293 # include <limits.h>
18295 # include <assert.h>
18300 /* Override any GCC internal prototype to avoid an error.
18301 Use char because int might match the return type of a GCC
18302 builtin and then its argument prototype would still apply. */
18307 /* The GNU C library defines this for functions which it implements
18308 to always fail with ENOSYS. Some functions are actually named
18309 something starting with __ and the normal name is an alias. */
18310 #if defined __stub_$ac_func || defined __stub___$ac_func
18317 return $ac_func ();
18322 rm -f conftest.$ac_objext conftest$ac_exeext
18323 if { (ac_try="$ac_link"
18324 case "(($ac_try" in
18325 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18326 *) ac_try_echo
=$ac_try;;
18328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_link") 2>conftest.er1
18331 grep -v '^ *+' conftest.er1
>conftest.err
18333 cat conftest.err
>&5
18334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18335 (exit $ac_status); } &&
18336 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18337 { (case "(($ac_try" in
18338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18339 *) ac_try_echo=$ac_try;;
18341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18342 (eval "$ac_try") 2>&5
18344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18345 (exit $ac_status); }; } &&
18346 { ac_try='test -s conftest$ac_exeext'
18347 { (case "(($ac_try" in
18348 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18349 *) ac_try_echo
=$ac_try;;
18351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18352 (eval "$ac_try") 2>&5
18354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18355 (exit $ac_status); }; }; then
18356 eval "$as_ac_var=yes"
18358 echo "$as_me: failed program was:" >&5
18359 sed 's/^/| /' conftest.
$ac_ext >&5
18361 eval "$as_ac_var=no"
18364 rm -f core conftest.err conftest.
$ac_objext \
18365 conftest
$ac_exeext conftest.
$ac_ext
18367 ac_res
=`eval echo '${'$as_ac_var'}'`
18368 { echo "$as_me:$LINENO: result: $ac_res" >&5
18369 echo "${ECHO_T}$ac_res" >&6; }
18370 if test `eval echo '${'$as_ac_var'}'` = yes; then
18371 cat >>confdefs.h
<<_ACEOF
18372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18382 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
18384 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18387 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18388 echo $ECHO_N "(cached) $ECHO_C" >&6
18390 cat >conftest.
$ac_ext <<_ACEOF
18393 cat confdefs.h
>>conftest.
$ac_ext
18394 cat >>conftest.
$ac_ext <<_ACEOF
18395 /* end confdefs.h. */
18396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18398 #define $ac_func innocuous_$ac_func
18400 /* System header to define __stub macros and hopefully few prototypes,
18401 which can conflict with char $ac_func (); below.
18402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18403 <limits.h> exists even on freestanding compilers. */
18406 # include <limits.h>
18408 # include <assert.h>
18413 /* Override any GCC internal prototype to avoid an error.
18414 Use char because int might match the return type of a GCC
18415 builtin and then its argument prototype would still apply. */
18420 /* The GNU C library defines this for functions which it implements
18421 to always fail with ENOSYS. Some functions are actually named
18422 something starting with __ and the normal name is an alias. */
18423 #if defined __stub_$ac_func || defined __stub___$ac_func
18430 return $ac_func ();
18435 rm -f conftest.
$ac_objext conftest
$ac_exeext
18436 if { (ac_try
="$ac_link"
18437 case "(($ac_try" in
18438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_link") 2>conftest.er1
18444 grep -v '^ *+' conftest.er1 >conftest.err
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18448 (exit $ac_status); } &&
18449 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18450 { (case "(($ac_try" in
18451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18452 *) ac_try_echo
=$ac_try;;
18454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18455 (eval "$ac_try") 2>&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); }; } &&
18459 { ac_try
='test -s conftest$ac_exeext'
18460 { (case "(($ac_try" in
18461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; }; then
18469 eval "$as_ac_var=yes"
18471 echo "$as_me: failed program was:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18474 eval "$as_ac_var=no"
18477 rm -f core conftest.err conftest.$ac_objext \
18478 conftest$ac_exeext conftest.$ac_ext
18480 ac_res=`eval echo '${'$as_ac_var'}'`
18481 { echo "$as_me:$LINENO: result: $ac_res" >&5
18482 echo "${ECHO_T}$ac_res" >&6; }
18483 if test `eval echo '${'$as_ac_var'}'` = yes; then
18484 cat >>confdefs.h <<_ACEOF
18485 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18495 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18497 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18498 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18499 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18500 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18503 cat >conftest.$ac_ext <<_ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18510 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18511 #define $ac_func innocuous_$ac_func
18513 /* System header to define __stub macros and hopefully few prototypes,
18514 which can conflict with char $ac_func (); below.
18515 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18516 <limits.h> exists even on freestanding compilers. */
18519 # include <limits.h>
18521 # include <assert.h>
18526 /* Override any GCC internal prototype to avoid an error.
18527 Use char because int might match the return type of a GCC
18528 builtin and then its argument prototype would still apply. */
18533 /* The GNU C library defines this for functions which it implements
18534 to always fail with ENOSYS. Some functions are actually named
18535 something starting with __ and the normal name is an alias. */
18536 #if defined __stub_$ac_func || defined __stub___$ac_func
18543 return $ac_func ();
18548 rm -f conftest.$ac_objext conftest$ac_exeext
18549 if { (ac_try="$ac_link"
18550 case "(($ac_try" in
18551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18552 *) ac_try_echo
=$ac_try;;
18554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_link") 2>conftest.er1
18557 grep -v '^ *+' conftest.er1
>conftest.err
18559 cat conftest.err
>&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } &&
18562 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18563 { (case "(($ac_try" in
18564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_try") 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; } &&
18572 { ac_try='test -s conftest$ac_exeext'
18573 { (case "(($ac_try" in
18574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18575 *) ac_try_echo
=$ac_try;;
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_try") 2>&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; }; then
18582 eval "$as_ac_var=yes"
18584 echo "$as_me: failed program was:" >&5
18585 sed 's/^/| /' conftest.
$ac_ext >&5
18587 eval "$as_ac_var=no"
18590 rm -f core conftest.err conftest.
$ac_objext \
18591 conftest
$ac_exeext conftest.
$ac_ext
18593 ac_res
=`eval echo '${'$as_ac_var'}'`
18594 { echo "$as_me:$LINENO: result: $ac_res" >&5
18595 echo "${ECHO_T}$ac_res" >&6; }
18596 if test `eval echo '${'$as_ac_var'}'` = yes; then
18597 cat >>confdefs.h
<<_ACEOF
18598 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18604 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18605 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18606 if test "${llvm_cv_c_printf_a+set}" = set; then
18607 echo $ECHO_N "(cached) $ECHO_C" >&6
18610 ac_cpp
='$CPP $CPPFLAGS'
18611 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18612 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18613 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18615 if test "$cross_compiling" = yes; then
18616 llvmac_cv_c_printf_a
=no
18618 cat >conftest.
$ac_ext <<_ACEOF
18622 cat confdefs.h
>>conftest.
$ac_ext
18623 cat >>conftest.
$ac_ext <<_ACEOF
18624 /* end confdefs.h. */
18627 #include <stdlib.h>
18633 volatile double A, B;
18637 sprintf(Buffer, "%a", A);
18641 if (A != 0x1.999999999999ap-4)
18648 rm -f conftest
$ac_exeext
18649 if { (ac_try
="$ac_link"
18650 case "(($ac_try" in
18651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_link") 2>&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18659 { (case "(($ac_try" in
18660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18661 *) ac_try_echo
=$ac_try;;
18663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18664 (eval "$ac_try") 2>&5
18666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18667 (exit $ac_status); }; }; then
18668 llvm_cv_c_printf_a
=yes
18670 echo "$as_me: program exited with status $ac_status" >&5
18671 echo "$as_me: failed program was:" >&5
18672 sed 's/^/| /' conftest.
$ac_ext >&5
18674 ( exit $ac_status )
18675 llvmac_cv_c_printf_a
=no
18677 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18682 ac_cpp
='$CPP $CPPFLAGS'
18683 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18684 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18685 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18688 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18689 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18690 if test "$llvm_cv_c_printf_a" = "yes"; then
18692 cat >>confdefs.h
<<\_ACEOF
18693 #define HAVE_PRINTF_A 1
18699 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18700 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18701 if test "${ac_cv_func_rand48+set}" = set; then
18702 echo $ECHO_N "(cached) $ECHO_C" >&6
18705 ac_cpp
='$CXXCPP $CPPFLAGS'
18706 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18707 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18708 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18710 cat >conftest.
$ac_ext <<_ACEOF
18713 cat confdefs.h
>>conftest.
$ac_ext
18714 cat >>conftest.
$ac_ext <<_ACEOF
18715 /* end confdefs.h. */
18716 #include <stdlib.h>
18720 srand48(0);lrand48();drand48();
18725 rm -f conftest.
$ac_objext
18726 if { (ac_try
="$ac_compile"
18727 case "(($ac_try" in
18728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_compile") 2>conftest.er1
18734 grep -v '^ *+' conftest.er1 >conftest.err
18736 cat conftest.err >&5
18737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18738 (exit $ac_status); } &&
18739 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18740 { (case "(($ac_try" in
18741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18742 *) ac_try_echo
=$ac_try;;
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_try") 2>&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); }; } &&
18749 { ac_try
='test -s conftest.$ac_objext'
18750 { (case "(($ac_try" in
18751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_try") 2>&5
18757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18758 (exit $ac_status); }; }; then
18759 ac_cv_func_rand48=yes
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18764 ac_cv_func_rand48=no
18767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18769 ac_cpp='$CPP $CPPFLAGS'
18770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18775 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18776 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18778 if test "$ac_cv_func_rand48" = "yes" ; then
18780 cat >>confdefs.h <<\_ACEOF
18781 #define HAVE_RAND48 1
18788 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18789 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18790 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18791 echo $ECHO_N "(cached) $ECHO_C" >&6
18794 ac_cpp='$CXXCPP $CPPFLAGS'
18795 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18796 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18797 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18799 cat >conftest.$ac_ext <<_ACEOF
18802 cat confdefs.h >>conftest.$ac_ext
18803 cat >>conftest.$ac_ext <<_ACEOF
18804 /* end confdefs.h. */
18814 rm -f conftest.$ac_objext
18815 if { (ac_try="$ac_compile"
18816 case "(($ac_try" in
18817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18818 *) ac_try_echo
=$ac_try;;
18820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18821 (eval "$ac_compile") 2>conftest.er1
18823 grep -v '^ *+' conftest.er1
>conftest.err
18825 cat conftest.err
>&5
18826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18827 (exit $ac_status); } &&
18828 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18829 { (case "(($ac_try" in
18830 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18831 *) ac_try_echo=$ac_try;;
18833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18834 (eval "$ac_try") 2>&5
18836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18837 (exit $ac_status); }; } &&
18838 { ac_try='test -s conftest.$ac_objext'
18839 { (case "(($ac_try" in
18840 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18841 *) ac_try_echo
=$ac_try;;
18843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18844 (eval "$ac_try") 2>&5
18846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18847 (exit $ac_status); }; }; then
18848 ac_cv_func_isnan_in_math_h
=yes
18850 echo "$as_me: failed program was:" >&5
18851 sed 's/^/| /' conftest.
$ac_ext >&5
18853 ac_cv_func_isnan_in_math_h
=no
18856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18858 ac_cpp
='$CPP $CPPFLAGS'
18859 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18860 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18861 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18864 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18865 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18868 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18870 cat >>confdefs.h
<<\_ACEOF
18871 #define HAVE_ISNAN_IN_MATH_H 1
18876 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18877 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18878 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18879 echo $ECHO_N "(cached) $ECHO_C" >&6
18882 ac_cpp
='$CXXCPP $CPPFLAGS'
18883 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18884 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18885 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18887 cat >conftest.
$ac_ext <<_ACEOF
18890 cat confdefs.h
>>conftest.
$ac_ext
18891 cat >>conftest.
$ac_ext <<_ACEOF
18892 /* end confdefs.h. */
18902 rm -f conftest.
$ac_objext
18903 if { (ac_try
="$ac_compile"
18904 case "(($ac_try" in
18905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_compile") 2>conftest.er1
18911 grep -v '^ *+' conftest.er1 >conftest.err
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } &&
18916 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18917 { (case "(($ac_try" in
18918 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18919 *) ac_try_echo
=$ac_try;;
18921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_try") 2>&5
18924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18925 (exit $ac_status); }; } &&
18926 { ac_try
='test -s conftest.$ac_objext'
18927 { (case "(($ac_try" in
18928 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18929 *) ac_try_echo=$ac_try;;
18931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18932 (eval "$ac_try") 2>&5
18934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18935 (exit $ac_status); }; }; then
18936 ac_cv_func_isnan_in_cmath=yes
18938 echo "$as_me: failed program was:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 ac_cv_func_isnan_in_cmath=no
18944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18946 ac_cpp='$CPP $CPPFLAGS'
18947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18952 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18953 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18955 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18957 cat >>confdefs.h <<\_ACEOF
18958 #define HAVE_ISNAN_IN_CMATH 1
18963 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18964 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18965 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18966 echo $ECHO_N "(cached) $ECHO_C" >&6
18969 ac_cpp='$CXXCPP $CPPFLAGS'
18970 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18971 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18972 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18974 cat >conftest.$ac_ext <<_ACEOF
18977 cat confdefs.h >>conftest.$ac_ext
18978 cat >>conftest.$ac_ext <<_ACEOF
18979 /* end confdefs.h. */
18984 float f; std::isnan(f);
18989 rm -f conftest.$ac_objext
18990 if { (ac_try="$ac_compile"
18991 case "(($ac_try" in
18992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18993 *) ac_try_echo
=$ac_try;;
18995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_compile") 2>conftest.er1
18998 grep -v '^ *+' conftest.er1
>conftest.err
19000 cat conftest.err
>&5
19001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19002 (exit $ac_status); } &&
19003 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19004 { (case "(($ac_try" in
19005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19006 *) ac_try_echo=$ac_try;;
19008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19009 (eval "$ac_try") 2>&5
19011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19012 (exit $ac_status); }; } &&
19013 { ac_try='test -s conftest.$ac_objext'
19014 { (case "(($ac_try" in
19015 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19016 *) ac_try_echo
=$ac_try;;
19018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19019 (eval "$ac_try") 2>&5
19021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19022 (exit $ac_status); }; }; then
19023 ac_cv_func_std_isnan_in_cmath
=yes
19025 echo "$as_me: failed program was:" >&5
19026 sed 's/^/| /' conftest.
$ac_ext >&5
19028 ac_cv_func_std_isnan_in_cmath
=no
19031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19033 ac_cpp
='$CPP $CPPFLAGS'
19034 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19035 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19036 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19039 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19040 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19042 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19044 cat >>confdefs.h
<<\_ACEOF
19045 #define HAVE_STD_ISNAN_IN_CMATH 1
19051 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19052 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19053 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19054 echo $ECHO_N "(cached) $ECHO_C" >&6
19057 ac_cpp
='$CXXCPP $CPPFLAGS'
19058 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19059 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19060 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19062 cat >conftest.
$ac_ext <<_ACEOF
19065 cat confdefs.h
>>conftest.
$ac_ext
19066 cat >>conftest.
$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19077 rm -f conftest.
$ac_objext
19078 if { (ac_try
="$ac_compile"
19079 case "(($ac_try" in
19080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19081 *) ac_try_echo=$ac_try;;
19083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19084 (eval "$ac_compile") 2>conftest.er1
19086 grep -v '^ *+' conftest.er1 >conftest.err
19088 cat conftest.err >&5
19089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } &&
19091 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19092 { (case "(($ac_try" in
19093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19094 *) ac_try_echo
=$ac_try;;
19096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19097 (eval "$ac_try") 2>&5
19099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19100 (exit $ac_status); }; } &&
19101 { ac_try
='test -s conftest.$ac_objext'
19102 { (case "(($ac_try" in
19103 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19104 *) ac_try_echo=$ac_try;;
19106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19107 (eval "$ac_try") 2>&5
19109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19110 (exit $ac_status); }; }; then
19111 ac_cv_func_isinf_in_math_h=yes
19113 echo "$as_me: failed program was:" >&5
19114 sed 's/^/| /' conftest.$ac_ext >&5
19116 ac_cv_func_isinf_in_math_h=no
19119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19121 ac_cpp='$CPP $CPPFLAGS'
19122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19127 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19128 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19130 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19132 cat >>confdefs.h <<\_ACEOF
19133 #define HAVE_ISINF_IN_MATH_H 1
19138 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19139 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19140 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19141 echo $ECHO_N "(cached) $ECHO_C" >&6
19144 ac_cpp='$CXXCPP $CPPFLAGS'
19145 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19146 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19147 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19149 cat >conftest.$ac_ext <<_ACEOF
19152 cat confdefs.h >>conftest.$ac_ext
19153 cat >>conftest.$ac_ext <<_ACEOF
19154 /* end confdefs.h. */
19164 rm -f conftest.$ac_objext
19165 if { (ac_try="$ac_compile"
19166 case "(($ac_try" in
19167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19168 *) ac_try_echo
=$ac_try;;
19170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19171 (eval "$ac_compile") 2>conftest.er1
19173 grep -v '^ *+' conftest.er1
>conftest.err
19175 cat conftest.err
>&5
19176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19177 (exit $ac_status); } &&
19178 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19179 { (case "(($ac_try" in
19180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_try") 2>&5
19186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19187 (exit $ac_status); }; } &&
19188 { ac_try='test -s conftest.$ac_objext'
19189 { (case "(($ac_try" in
19190 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19191 *) ac_try_echo
=$ac_try;;
19193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19194 (eval "$ac_try") 2>&5
19196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19197 (exit $ac_status); }; }; then
19198 ac_cv_func_isinf_in_cmath
=yes
19200 echo "$as_me: failed program was:" >&5
19201 sed 's/^/| /' conftest.
$ac_ext >&5
19203 ac_cv_func_isinf_in_cmath
=no
19206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19208 ac_cpp
='$CPP $CPPFLAGS'
19209 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19210 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19211 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19214 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19215 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19217 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19219 cat >>confdefs.h
<<\_ACEOF
19220 #define HAVE_ISINF_IN_CMATH 1
19225 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19226 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19227 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19228 echo $ECHO_N "(cached) $ECHO_C" >&6
19231 ac_cpp
='$CXXCPP $CPPFLAGS'
19232 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19233 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19234 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19236 cat >conftest.
$ac_ext <<_ACEOF
19239 cat confdefs.h
>>conftest.
$ac_ext
19240 cat >>conftest.
$ac_ext <<_ACEOF
19241 /* end confdefs.h. */
19246 float f; std::isinf(f)}
19251 rm -f conftest.
$ac_objext
19252 if { (ac_try
="$ac_compile"
19253 case "(($ac_try" in
19254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19255 *) ac_try_echo=$ac_try;;
19257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19258 (eval "$ac_compile") 2>conftest.er1
19260 grep -v '^ *+' conftest.er1 >conftest.err
19262 cat conftest.err >&5
19263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19264 (exit $ac_status); } &&
19265 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19266 { (case "(($ac_try" in
19267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19268 *) ac_try_echo
=$ac_try;;
19270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_try") 2>&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try
='test -s conftest.$ac_objext'
19276 { (case "(($ac_try" in
19277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19278 *) ac_try_echo=$ac_try;;
19280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19281 (eval "$ac_try") 2>&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); }; }; then
19285 ac_cv_func_std_isinf_in_cmath=yes
19287 echo "$as_me: failed program was:" >&5
19288 sed 's/^/| /' conftest.$ac_ext >&5
19290 ac_cv_func_std_isinf_in_cmath=no
19293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19295 ac_cpp='$CPP $CPPFLAGS'
19296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19301 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19302 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19304 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19306 cat >>confdefs.h <<\_ACEOF
19307 #define HAVE_STD_ISINF_IN_CMATH 1
19312 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19313 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19314 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19315 echo $ECHO_N "(cached) $ECHO_C" >&6
19318 ac_cpp='$CXXCPP $CPPFLAGS'
19319 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19320 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19321 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 #include <ieeefp.h>
19333 float f; finite(f);
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19342 *) ac_try_echo
=$ac_try;;
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19347 grep -v '^ *+' conftest.er1
>conftest.err
19349 cat conftest.err
>&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } &&
19352 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19353 { (case "(($ac_try" in
19354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_try") 2>&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); }; } &&
19362 { ac_try='test -s conftest.$ac_objext'
19363 { (case "(($ac_try" in
19364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19365 *) ac_try_echo
=$ac_try;;
19367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_try") 2>&5
19370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); }; }; then
19372 ac_cv_func_finite_in_ieeefp_h
=yes
19374 echo "$as_me: failed program was:" >&5
19375 sed 's/^/| /' conftest.
$ac_ext >&5
19377 ac_cv_func_finite_in_ieeefp_h
=no
19380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19382 ac_cpp
='$CPP $CPPFLAGS'
19383 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19384 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19385 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19388 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19389 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19391 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19393 cat >>confdefs.h
<<\_ACEOF
19394 #define HAVE_FINITE_IN_IEEEFP_H 1
19401 if test "$llvm_cv_platform_type" = "Unix" ; then
19404 for ac_header
in stdlib.h unistd.h
19406 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19407 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19408 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19409 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19410 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19411 echo $ECHO_N "(cached) $ECHO_C" >&6
19413 ac_res
=`eval echo '${'$as_ac_Header'}'`
19414 { echo "$as_me:$LINENO: result: $ac_res" >&5
19415 echo "${ECHO_T}$ac_res" >&6; }
19417 # Is the header compilable?
19418 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19419 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19420 cat >conftest.
$ac_ext <<_ACEOF
19423 cat confdefs.h
>>conftest.
$ac_ext
19424 cat >>conftest.
$ac_ext <<_ACEOF
19425 /* end confdefs.h. */
19426 $ac_includes_default
19427 #include <$ac_header>
19429 rm -f conftest.
$ac_objext
19430 if { (ac_try
="$ac_compile"
19431 case "(($ac_try" in
19432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19433 *) ac_try_echo=$ac_try;;
19435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19436 (eval "$ac_compile") 2>conftest.er1
19438 grep -v '^ *+' conftest.er1 >conftest.err
19440 cat conftest.err >&5
19441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19442 (exit $ac_status); } &&
19443 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19444 { (case "(($ac_try" in
19445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19446 *) ac_try_echo
=$ac_try;;
19448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19449 (eval "$ac_try") 2>&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); }; } &&
19453 { ac_try
='test -s conftest.$ac_objext'
19454 { (case "(($ac_try" in
19455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_try") 2>&5
19461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19462 (exit $ac_status); }; }; then
19463 ac_header_compiler=yes
19465 echo "$as_me: failed program was:" >&5
19466 sed 's/^/| /' conftest.$ac_ext >&5
19468 ac_header_compiler=no
19471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19472 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19473 echo "${ECHO_T}$ac_header_compiler" >&6; }
19475 # Is the header present?
19476 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19477 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19478 cat >conftest.$ac_ext <<_ACEOF
19481 cat confdefs.h >>conftest.$ac_ext
19482 cat >>conftest.$ac_ext <<_ACEOF
19483 /* end confdefs.h. */
19484 #include <$ac_header>
19486 if { (ac_try="$ac_cpp conftest.$ac_ext"
19487 case "(($ac_try" in
19488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19489 *) ac_try_echo
=$ac_try;;
19491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19494 grep -v '^ *+' conftest.er1
>conftest.err
19496 cat conftest.err
>&5
19497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19498 (exit $ac_status); } >/dev
/null
; then
19499 if test -s conftest.err
; then
19500 ac_cpp_err
=$ac_c_preproc_warn_flag
19501 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19508 if test -z "$ac_cpp_err"; then
19509 ac_header_preproc
=yes
19511 echo "$as_me: failed program was:" >&5
19512 sed 's/^/| /' conftest.
$ac_ext >&5
19514 ac_header_preproc
=no
19517 rm -f conftest.err conftest.
$ac_ext
19518 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19519 echo "${ECHO_T}$ac_header_preproc" >&6; }
19521 # So? What about this header?
19522 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19524 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19525 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19526 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19527 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19528 ac_header_preproc
=yes
19531 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19532 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19533 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19534 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19535 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19536 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19537 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19538 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19539 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19540 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19541 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19542 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19544 ## ----------------------------------- ##
19545 ## Report this to llvmbugs@cs.uiuc.edu ##
19546 ## ----------------------------------- ##
19548 ) |
sed "s/^/$as_me: WARNING: /" >&2
19551 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19552 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19553 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 eval "$as_ac_Header=\$ac_header_preproc"
19558 ac_res
=`eval echo '${'$as_ac_Header'}'`
19559 { echo "$as_me:$LINENO: result: $ac_res" >&5
19560 echo "${ECHO_T}$ac_res" >&6; }
19563 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19564 cat >>confdefs.h
<<_ACEOF
19565 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19573 for ac_func
in getpagesize
19575 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19578 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19579 echo $ECHO_N "(cached) $ECHO_C" >&6
19581 cat >conftest.
$ac_ext <<_ACEOF
19584 cat confdefs.h
>>conftest.
$ac_ext
19585 cat >>conftest.
$ac_ext <<_ACEOF
19586 /* end confdefs.h. */
19587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19589 #define $ac_func innocuous_$ac_func
19591 /* System header to define __stub macros and hopefully few prototypes,
19592 which can conflict with char $ac_func (); below.
19593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19594 <limits.h> exists even on freestanding compilers. */
19597 # include <limits.h>
19599 # include <assert.h>
19604 /* Override any GCC internal prototype to avoid an error.
19605 Use char because int might match the return type of a GCC
19606 builtin and then its argument prototype would still apply. */
19611 /* The GNU C library defines this for functions which it implements
19612 to always fail with ENOSYS. Some functions are actually named
19613 something starting with __ and the normal name is an alias. */
19614 #if defined __stub_$ac_func || defined __stub___$ac_func
19621 return $ac_func ();
19626 rm -f conftest.
$ac_objext conftest
$ac_exeext
19627 if { (ac_try
="$ac_link"
19628 case "(($ac_try" in
19629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_link") 2>conftest.er1
19635 grep -v '^ *+' conftest.er1 >conftest.err
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19639 (exit $ac_status); } &&
19640 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19641 { (case "(($ac_try" in
19642 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19643 *) ac_try_echo
=$ac_try;;
19645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19646 (eval "$ac_try") 2>&5
19648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19649 (exit $ac_status); }; } &&
19650 { ac_try
='test -s conftest$ac_exeext'
19651 { (case "(($ac_try" in
19652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19653 *) ac_try_echo=$ac_try;;
19655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19656 (eval "$ac_try") 2>&5
19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19659 (exit $ac_status); }; }; then
19660 eval "$as_ac_var=yes"
19662 echo "$as_me: failed program was:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 eval "$as_ac_var=no"
19668 rm -f core conftest.err conftest.$ac_objext \
19669 conftest$ac_exeext conftest.$ac_ext
19671 ac_res=`eval echo '${'$as_ac_var'}'`
19672 { echo "$as_me:$LINENO: result: $ac_res" >&5
19673 echo "${ECHO_T}$ac_res" >&6; }
19674 if test `eval echo '${'$as_ac_var'}'` = yes; then
19675 cat >>confdefs.h <<_ACEOF
19676 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19682 { echo "$as_me:$LINENO: checking for working mmap" >&5
19683 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19684 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19685 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 if test "$cross_compiling" = yes; then
19688 ac_cv_func_mmap_fixed_mapped=no
19690 cat >conftest.$ac_ext <<_ACEOF
19693 cat confdefs.h >>conftest.$ac_ext
19694 cat >>conftest.$ac_ext <<_ACEOF
19695 /* end confdefs.h. */
19696 $ac_includes_default
19697 /* malloc might have been renamed as rpl_malloc. */
19700 /* Thanks to Mike Haertel and Jim Avera for this test.
19701 Here is a matrix of mmap possibilities:
19702 mmap private not fixed
19703 mmap private fixed at somewhere currently unmapped
19704 mmap private fixed at somewhere already mapped
19705 mmap shared not fixed
19706 mmap shared fixed at somewhere currently unmapped
19707 mmap shared fixed at somewhere already mapped
19708 For private mappings, we should verify that changes cannot be read()
19709 back from the file, nor mmap's back from the file at a different
19710 address. (There have been systems where private was not correctly
19711 implemented like the infamous i386 svr4.0, and systems where the
19712 VM page cache was not coherent with the file system buffer cache
19713 like early versions of FreeBSD and possibly contemporary NetBSD.)
19714 For shared mappings, we should conversely verify that changes get
19715 propagated back to all the places they're supposed to be.
19717 Grep wants private fixed already mapped.
19718 The main things grep needs to know about mmap are:
19719 * does it exist and is it safe to write into the mmap'd area
19720 * how to use it (BSD variants) */
19723 #include <sys/mman.h>
19725 #if !STDC_HEADERS && !HAVE_STDLIB_H
19729 /* This mess was copied from the GNU getpagesize.h. */
19730 #if !HAVE_GETPAGESIZE
19731 /* Assume that all systems that can run configure have sys/param.h. */
19732 # if !HAVE_SYS_PARAM_H
19733 # define HAVE_SYS_PARAM_H 1
19736 # ifdef _SC_PAGESIZE
19737 # define getpagesize() sysconf(_SC_PAGESIZE)
19738 # else /* no _SC_PAGESIZE */
19739 # if HAVE_SYS_PARAM_H
19740 # include <sys/param.h>
19741 # ifdef EXEC_PAGESIZE
19742 # define getpagesize() EXEC_PAGESIZE
19743 # else /* no EXEC_PAGESIZE */
19745 # define getpagesize() NBPG * CLSIZE
19748 # endif /* no CLSIZE */
19749 # else /* no NBPG */
19751 # define getpagesize() NBPC
19752 # else /* no NBPC */
19754 # define getpagesize() PAGESIZE
19755 # endif /* PAGESIZE */
19756 # endif /* no NBPC */
19757 # endif /* no NBPG */
19758 # endif /* no EXEC_PAGESIZE */
19759 # else /* no HAVE_SYS_PARAM_H */
19760 # define getpagesize() 8192 /* punt totally */
19761 # endif /* no HAVE_SYS_PARAM_H */
19762 # endif /* no _SC_PAGESIZE */
19764 #endif /* no HAVE_GETPAGESIZE */
19769 char *data, *data2, *data3;
19773 pagesize = getpagesize ();
19775 /* First, make a file with some known garbage in it. */
19776 data = (char *) malloc (pagesize);
19779 for (i = 0; i < pagesize; ++i)
19780 *(data + i) = rand ();
19782 fd = creat ("conftest.mmap", 0600);
19785 if (write (fd, data, pagesize) != pagesize)
19789 /* Next, try to mmap the file at a fixed address which already has
19790 something else allocated at it. If we can, also make sure that
19791 we see the same garbage. */
19792 fd = open ("conftest.mmap", O_RDWR);
19795 data2 = (char *) malloc (2 * pagesize);
19798 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19799 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19800 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19802 for (i = 0; i < pagesize; ++i)
19803 if (*(data + i) != *(data2 + i))
19806 /* Finally, make sure that changes to the mapped area do not
19807 percolate back to the file as seen by read(). (This is a bug on
19808 some variants of i386 svr4.0.) */
19809 for (i = 0; i < pagesize; ++i)
19810 *(data2 + i) = *(data2 + i) + 1;
19811 data3 = (char *) malloc (pagesize);
19814 if (read (fd, data3, pagesize) != pagesize)
19816 for (i = 0; i < pagesize; ++i)
19817 if (*(data + i) != *(data3 + i))
19823 rm -f conftest$ac_exeext
19824 if { (ac_try="$ac_link"
19825 case "(($ac_try" in
19826 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19827 *) ac_try_echo
=$ac_try;;
19829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19830 (eval "$ac_link") 2>&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19834 { (case "(($ac_try" in
19835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19836 *) ac_try_echo=$ac_try;;
19838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19839 (eval "$ac_try") 2>&5
19841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19842 (exit $ac_status); }; }; then
19843 ac_cv_func_mmap_fixed_mapped=yes
19845 echo "$as_me: program exited with status $ac_status" >&5
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19849 ( exit $ac_status )
19850 ac_cv_func_mmap_fixed_mapped=no
19852 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19857 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19858 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19859 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19861 cat >>confdefs.h <<\_ACEOF
19862 #define HAVE_MMAP 1
19866 rm -f conftest.mmap
19868 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19869 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19870 if test "${ac_cv_func_mmap_file+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 ac_cpp='$CPP $CPPFLAGS'
19875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19879 if test "$cross_compiling" = yes; then
19880 ac_cv_func_mmap_file=no
19882 cat >conftest.$ac_ext <<_ACEOF
19886 cat confdefs.h >>conftest.$ac_ext
19887 cat >>conftest.$ac_ext <<_ACEOF
19888 /* end confdefs.h. */
19890 #include <sys/types.h>
19891 #include <sys/mman.h>
19899 fd = creat ("foo",0777);
19900 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19902 return (fd != (int) MAP_FAILED);
19907 rm -f conftest$ac_exeext
19908 if { (ac_try="$ac_link"
19909 case "(($ac_try" in
19910 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19911 *) ac_try_echo
=$ac_try;;
19913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19914 (eval "$ac_link") 2>&5
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19918 { (case "(($ac_try" in
19919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19920 *) ac_try_echo=$ac_try;;
19922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19923 (eval "$ac_try") 2>&5
19925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19926 (exit $ac_status); }; }; then
19927 ac_cv_func_mmap_file=yes
19929 echo "$as_me: program exited with status $ac_status" >&5
19930 echo "$as_me: failed program was:" >&5
19931 sed 's/^/| /' conftest.$ac_ext >&5
19933 ( exit $ac_status )
19934 ac_cv_func_mmap_file=no
19936 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19941 ac_cpp='$CPP $CPPFLAGS'
19942 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19943 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19944 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19948 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19949 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19950 if test "$ac_cv_func_mmap_file" = yes; then
19952 cat >>confdefs.h <<\_ACEOF
19953 #define HAVE_MMAP_FILE
19960 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19961 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19962 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19963 echo $ECHO_N "(cached) $ECHO_C" >&6
19965 if test "$llvm_cv_os_type" = "Interix" ; then
19966 ac_cv_need_dev_zero_for_mmap=yes
19968 ac_cv_need_dev_zero_for_mmap=no
19972 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19973 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19974 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19976 cat >>confdefs.h <<\_ACEOF
19977 #define NEED_DEV_ZERO_FOR_MMAP 1
19982 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19984 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19985 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19987 if test "$ac_cv_func_mmap_file" = "no"
19989 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19990 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19994 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19995 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19997 ac_cpp='$CXXCPP $CPPFLAGS'
19998 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19999 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20000 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20002 cat >conftest.$ac_ext <<_ACEOF
20005 cat confdefs.h >>conftest.$ac_ext
20006 cat >>conftest.$ac_ext <<_ACEOF
20007 /* end confdefs.h. */
20009 volatile unsigned long val = 1;
20010 __sync_synchronize();
20011 __sync_val_compare_and_swap(&val, 1, 0);
20012 __sync_add_and_fetch(&val, 1);
20013 __sync_sub_and_fetch(&val, 1);
20018 rm -f conftest.$ac_objext conftest$ac_exeext
20019 if { (ac_try="$ac_link"
20020 case "(($ac_try" in
20021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20022 *) ac_try_echo
=$ac_try;;
20024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20025 (eval "$ac_link") 2>conftest.er1
20027 grep -v '^ *+' conftest.er1
>conftest.err
20029 cat conftest.err
>&5
20030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20031 (exit $ac_status); } &&
20032 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20033 { (case "(($ac_try" in
20034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20035 *) ac_try_echo=$ac_try;;
20037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20038 (eval "$ac_try") 2>&5
20040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20041 (exit $ac_status); }; } &&
20042 { ac_try='test -s conftest$ac_exeext'
20043 { (case "(($ac_try" in
20044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20045 *) ac_try_echo
=$ac_try;;
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_try") 2>&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); }; }; then
20053 ac_cpp
='$CPP $CPPFLAGS'
20054 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20055 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20056 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20058 { echo "$as_me:$LINENO: result: yes" >&5
20059 echo "${ECHO_T}yes" >&6; }
20061 cat >>confdefs.h
<<\_ACEOF
20062 #define LLVM_MULTITHREADED 1
20066 echo "$as_me: failed program was:" >&5
20067 sed 's/^/| /' conftest.
$ac_ext >&5
20069 { echo "$as_me:$LINENO: result: no" >&5
20070 echo "${ECHO_T}no" >&6; }
20072 cat >>confdefs.h
<<\_ACEOF
20073 #define LLVM_MULTITHREADED 0
20076 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20077 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20080 rm -f core conftest.err conftest.
$ac_objext \
20081 conftest
$ac_exeext conftest.
$ac_ext
20084 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20085 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20086 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20087 if test "${llvm_cv_linux_mixed+set}" = set; then
20088 echo $ECHO_N "(cached) $ECHO_C" >&6
20091 ac_cpp
='$CPP $CPPFLAGS'
20092 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20093 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20094 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20096 cat >conftest.
$ac_ext <<_ACEOF
20099 cat confdefs.h
>>conftest.
$ac_ext
20100 cat >>conftest.
$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20103 error: Not x86-64 even if uname says so!
20114 rm -f conftest.
$ac_objext
20115 if { (ac_try
="$ac_compile"
20116 case "(($ac_try" in
20117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20118 *) ac_try_echo=$ac_try;;
20120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20121 (eval "$ac_compile") 2>conftest.er1
20123 grep -v '^ *+' conftest.er1 >conftest.err
20125 cat conftest.err >&5
20126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20127 (exit $ac_status); } &&
20128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20129 { (case "(($ac_try" in
20130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20131 *) ac_try_echo
=$ac_try;;
20133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20134 (eval "$ac_try") 2>&5
20136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); }; } &&
20138 { ac_try
='test -s conftest.$ac_objext'
20139 { (case "(($ac_try" in
20140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_try") 2>&5
20146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; }; then
20148 llvm_cv_linux_mixed=no
20150 echo "$as_me: failed program was:" >&5
20151 sed 's/^/| /' conftest.$ac_ext >&5
20153 llvm_cv_linux_mixed=yes
20156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20158 ac_cpp='$CPP $CPPFLAGS'
20159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20165 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20166 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20168 if test "$llvm_cv_linux_mixed" = "yes"; then
20169 llvm_cv_target_arch="x86"
20175 for ac_func in __dso_handle
20177 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20178 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20179 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20180 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20181 echo $ECHO_N "(cached) $ECHO_C" >&6
20183 cat >conftest.$ac_ext <<_ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20190 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20191 #define $ac_func innocuous_$ac_func
20193 /* System header to define __stub macros and hopefully few prototypes,
20194 which can conflict with char $ac_func (); below.
20195 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20196 <limits.h> exists even on freestanding compilers. */
20199 # include <limits.h>
20201 # include <assert.h>
20206 /* Override any GCC internal prototype to avoid an error.
20207 Use char because int might match the return type of a GCC
20208 builtin and then its argument prototype would still apply. */
20213 /* The GNU C library defines this for functions which it implements
20214 to always fail with ENOSYS. Some functions are actually named
20215 something starting with __ and the normal name is an alias. */
20216 #if defined __stub_$ac_func || defined __stub___$ac_func
20223 return $ac_func ();
20228 rm -f conftest.$ac_objext conftest$ac_exeext
20229 if { (ac_try="$ac_link"
20230 case "(($ac_try" in
20231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20232 *) ac_try_echo
=$ac_try;;
20234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20235 (eval "$ac_link") 2>conftest.er1
20237 grep -v '^ *+' conftest.er1
>conftest.err
20239 cat conftest.err
>&5
20240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20241 (exit $ac_status); } &&
20242 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20243 { (case "(($ac_try" in
20244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20245 *) ac_try_echo=$ac_try;;
20247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20248 (eval "$ac_try") 2>&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); }; } &&
20252 { ac_try='test -s conftest$ac_exeext'
20253 { (case "(($ac_try" in
20254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20255 *) ac_try_echo
=$ac_try;;
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_try") 2>&5
20260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261 (exit $ac_status); }; }; then
20262 eval "$as_ac_var=yes"
20264 echo "$as_me: failed program was:" >&5
20265 sed 's/^/| /' conftest.
$ac_ext >&5
20267 eval "$as_ac_var=no"
20270 rm -f core conftest.err conftest.
$ac_objext \
20271 conftest
$ac_exeext conftest.
$ac_ext
20273 ac_res
=`eval echo '${'$as_ac_var'}'`
20274 { echo "$as_me:$LINENO: result: $ac_res" >&5
20275 echo "${ECHO_T}$ac_res" >&6; }
20276 if test `eval echo '${'$as_ac_var'}'` = yes; then
20277 cat >>confdefs.h
<<_ACEOF
20278 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20285 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20286 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20287 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20288 echo $ECHO_N "(cached) $ECHO_C" >&6
20290 llvm_cv_llvmgcc_sanity
="no"
20291 if test -x "$LLVMGCC" ; then
20292 cp /dev
/null conftest.c
20293 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20294 grep 'target datalayout =' > /dev
/null
2>&1
20295 if test $?
-eq 0 ; then
20296 llvm_cv_llvmgcc_sanity
="yes"
20301 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20302 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20304 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20305 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20306 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20307 llvmcc1path
=`"$LLVMGCC" --print-prog-name=cc1`
20308 LLVMCC1
=$llvmcc1path
20310 llvmcc1pluspath
=`"$LLVMGCC" --print-prog-name=cc1plus`
20311 LLVMCC1PLUS
=$llvmcc1pluspath
20313 llvmgccdir
=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20314 LLVMGCCDIR
=$llvmgccdir
20316 llvmgcclangs
=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20317 LLVMGCC_LANGS
=$llvmgcclangs
20319 { echo "$as_me:$LINENO: result: ok" >&5
20320 echo "${ECHO_T}ok" >&6; }
20323 SHLIBEXT
=$libltdl_cv_shlibext
20326 SHLIBPATH_VAR
=$libltdl_cv_shlibpath_var
20329 # Translate the various configuration directories and other basic
20330 # information into substitutions that will end up in Makefile.config.in
20331 # that these configured values can be used by the makefiles
20332 if test "${prefix}" = "NONE" ; then
20333 prefix
="/usr/local"
20335 eval LLVM_PREFIX
="${prefix}";
20336 eval LLVM_BINDIR
="${prefix}/bin";
20337 eval LLVM_LIBDIR
="${prefix}/lib";
20338 eval LLVM_DATADIR
="${prefix}/share/llvm";
20339 eval LLVM_DOCSDIR
="${prefix}/share/doc/llvm";
20340 eval LLVM_ETCDIR
="${prefix}/etc/llvm";
20341 eval LLVM_INCLUDEDIR
="${prefix}/include";
20342 eval LLVM_INFODIR
="${prefix}/info";
20343 eval LLVM_MANDIR
="${prefix}/man";
20344 LLVM_CONFIGTIME
=`date`
20356 # Place the various directores into the config.h file as #defines so that we
20357 # can know about the installation paths within LLVM.
20359 cat >>confdefs.h
<<_ACEOF
20360 #define LLVM_PREFIX "$LLVM_PREFIX"
20364 cat >>confdefs.h
<<_ACEOF
20365 #define LLVM_BINDIR "$LLVM_BINDIR"
20369 cat >>confdefs.h
<<_ACEOF
20370 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20374 cat >>confdefs.h
<<_ACEOF
20375 #define LLVM_DATADIR "$LLVM_DATADIR"
20379 cat >>confdefs.h
<<_ACEOF
20380 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20384 cat >>confdefs.h
<<_ACEOF
20385 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20389 cat >>confdefs.h
<<_ACEOF
20390 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20394 cat >>confdefs.h
<<_ACEOF
20395 #define LLVM_INFODIR "$LLVM_INFODIR"
20399 cat >>confdefs.h
<<_ACEOF
20400 #define LLVM_MANDIR "$LLVM_MANDIR"
20404 cat >>confdefs.h
<<_ACEOF
20405 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20409 cat >>confdefs.h
<<_ACEOF
20410 #define LLVM_HOSTTRIPLE "$host"
20414 # Determine which bindings to build.
20415 if test "$BINDINGS_TO_BUILD" = auto
; then
20416 BINDINGS_TO_BUILD
=""
20417 if test "x$OCAMLC" != x
-a "x$OCAMLDEP" != x
; then
20418 BINDINGS_TO_BUILD
="ocaml $BINDINGS_TO_BUILD"
20421 BINDINGS_TO_BUILD
=$BINDINGS_TO_BUILD
20424 # This isn't really configurey, but it avoids having to repeat the list in
20429 # Do any work necessary to ensure that bindings have what they need.
20430 binding_prereqs_failed
=0
20431 for a_binding
in $BINDINGS_TO_BUILD ; do
20432 case "$a_binding" in
20434 if test "x$OCAMLC" = x
; then
20435 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20436 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20437 binding_prereqs_failed
=1
20439 if test "x$OCAMLDEP" = x
; then
20440 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20441 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20442 binding_prereqs_failed
=1
20444 if test "x$OCAMLOPT" = x
; then
20445 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20446 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20448 if test "x$with_ocaml_libdir" != xauto
; then
20449 OCAML_LIBDIR
=$with_ocaml_libdir
20452 ocaml_stdlib
="`"$OCAMLC" -where`"
20453 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20455 # ocaml stdlib is beneath our prefix; use stdlib
20456 OCAML_LIBDIR
=$ocaml_stdlib
20459 # ocaml stdlib is outside our prefix; use libdir/ocaml
20460 OCAML_LIBDIR
=$LLVM_LIBDIR/ocaml
20467 if test "$binding_prereqs_failed" = 1 ; then
20468 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20469 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20470 { (exit 1); exit 1; }; }
20473 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20474 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20475 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20476 echo $ECHO_N "(cached) $ECHO_C" >&6
20479 ac_cpp
='$CXXCPP $CPPFLAGS'
20480 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20481 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20482 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20484 oldcxxflags
="$CXXFLAGS"
20485 CXXFLAGS
="$CXXFLAGS -fvisibility-inlines-hidden"
20486 cat >conftest.
$ac_ext <<_ACEOF
20489 cat confdefs.h
>>conftest.
$ac_ext
20490 cat >>conftest.
$ac_ext <<_ACEOF
20491 /* end confdefs.h. */
20501 rm -f conftest.
$ac_objext
20502 if { (ac_try
="$ac_compile"
20503 case "(($ac_try" in
20504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20505 *) ac_try_echo=$ac_try;;
20507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20508 (eval "$ac_compile") 2>conftest.er1
20510 grep -v '^ *+' conftest.er1 >conftest.err
20512 cat conftest.err >&5
20513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20514 (exit $ac_status); } &&
20515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20516 { (case "(($ac_try" in
20517 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20518 *) ac_try_echo
=$ac_try;;
20520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_try") 2>&5
20523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20524 (exit $ac_status); }; } &&
20525 { ac_try
='test -s conftest.$ac_objext'
20526 { (case "(($ac_try" in
20527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20528 *) ac_try_echo=$ac_try;;
20530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20531 (eval "$ac_try") 2>&5
20533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20534 (exit $ac_status); }; }; then
20535 llvm_cv_cxx_visibility_inlines_hidden=yes
20537 echo "$as_me: failed program was:" >&5
20538 sed 's/^/| /' conftest.$ac_ext >&5
20540 llvm_cv_cxx_visibility_inlines_hidden=no
20543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20544 CXXFLAGS="$oldcxxflags"
20546 ac_cpp='$CPP $CPPFLAGS'
20547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20553 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20554 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20555 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20556 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20559 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20564 if test "$llvm_cv_link_use_r" = "yes" ; then
20571 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20572 RDYNAMIC="-Wl,-export-dynamic"
20579 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20586 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20588 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20590 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20592 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20594 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20597 ac_config_files="$ac_config_files Makefile.config"
20600 ac_config_files="$ac_config_files llvm.spec"
20603 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20606 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20609 ac_config_commands="$ac_config_commands setup"
20611 ac_config_commands="$ac_config_commands Makefile"
20614 ac_config_commands="$ac_config_commands Makefile.common"
20617 ac_config_commands="$ac_config_commands examples/Makefile"
20620 ac_config_commands="$ac_config_commands lib/Makefile"
20623 ac_config_commands="$ac_config_commands runtime/Makefile"
20626 ac_config_commands="$ac_config_commands test/Makefile"
20629 ac_config_commands="$ac_config_commands test/Makefile.tests"
20632 ac_config_commands="$ac_config_commands unittests/Makefile"
20635 ac_config_commands="$ac_config_commands tools/Makefile"
20638 ac_config_commands="$ac_config_commands utils/Makefile"
20641 ac_config_commands="$ac_config_commands projects/Makefile"
20644 ac_config_commands="$ac_config_commands bindings/Makefile"
20647 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20651 cat >confcache <<\_ACEOF
20652 # This file is a shell script that caches the results of configure
20653 # tests run on this system so they can be shared between configure
20654 # scripts and configure runs, see configure's option --config-cache.
20655 # It is not useful on other systems. If it contains results you don't
20656 # want to keep, you may remove or edit it.
20658 # config.status only pays attention to the cache file if you give it
20659 # the --recheck option to rerun configure.
20661 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
20662 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20663 # following values.
20667 # The following way of writing the cache mishandles newlines in values,
20668 # but we know of no workaround that is simple, portable, and efficient.
20669 # So, we kill variables containing newlines.
20670 # Ultrix sh set writes to stderr and can't be redirected directly,
20671 # and sets the high bit in the cache file unless we assign to the vars.
20673 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20674 eval ac_val
=\$
$ac_var
20678 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20679 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20682 _ | IFS | as_nl
) ;; #(
20683 *) $as_unset $ac_var ;;
20689 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20690 *${as_nl}ac_space
=\
*)
20691 # `set' does not quote correctly, so add quotes (double-quote
20692 # substitution turns \\\\ into \\, and sed turns \\ into \).
20695 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20698 # `set' quotes correctly as required by POSIX, so do not add quotes.
20699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20708 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20710 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20712 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20713 if test -w "$cache_file"; then
20714 test "x$cache_file" != "x/dev/null" &&
20715 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20716 echo "$as_me: updating cache $cache_file" >&6;}
20717 cat confcache
>$cache_file
20719 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20720 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20725 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20726 # Let make expand exec_prefix.
20727 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20729 DEFS
=-DHAVE_CONFIG_H
20733 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20734 # 1. Remove the extension, and $U if already installed.
20735 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20736 ac_i
=`echo "$ac_i" | sed "$ac_script"`
20737 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20738 # will be set to the directory where LIBOBJS objects are built.
20739 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20740 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20742 LIBOBJS
=$ac_libobjs
20744 LTLIBOBJS
=$ac_ltlibobjs
20747 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20748 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20749 Usually this means the macro was only invoked conditionally." >&5
20750 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20751 Usually this means the macro was only invoked conditionally." >&2;}
20752 { (exit 1); exit 1; }; }
20754 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20755 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20756 Usually this means the macro was only invoked conditionally." >&5
20757 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20758 Usually this means the macro was only invoked conditionally." >&2;}
20759 { (exit 1); exit 1; }; }
20762 : ${CONFIG_STATUS=./config.status}
20763 ac_clean_files_save
=$ac_clean_files
20764 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
20765 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20766 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20767 cat >$CONFIG_STATUS <<_ACEOF
20769 # Generated by $as_me.
20770 # Run this file to recreate the current configuration.
20771 # Compiler output produced by configure, useful for debugging
20772 # configure, is in config.log if it exists.
20775 ac_cs_recheck=false
20777 SHELL=\${CONFIG_SHELL-$SHELL}
20780 cat >>$CONFIG_STATUS <<\_ACEOF
20781 ## --------------------- ##
20782 ## M4sh Initialization. ##
20783 ## --------------------- ##
20785 # Be Bourne compatible
20786 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
20789 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20790 # is contrary to our usage. Disable this feature.
20791 alias -g '${1+"$@"}'='"$@"'
20792 setopt NO_GLOB_SUBST
20794 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
20796 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
20797 DUALCASE
=1; export DUALCASE
# for MKS sh
20801 # Avoid depending upon Character Ranges.
20802 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20803 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20804 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20805 as_cr_digits
='0123456789'
20806 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20808 # The user is always right.
20809 if test "${PATH_SEPARATOR+set}" != set; then
20810 echo "#! /bin/sh" >conf$$.sh
20811 echo "exit 0" >>conf$$.sh
20813 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
20821 # Support unset when possible.
20822 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
20830 # We need space, tab and new line, in precisely that order. Quoting is
20831 # there to prevent editors from complaining about space-tab.
20832 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20833 # splitting by setting IFS to empty value.)
20838 # Find who we are. Look in the path if we contain no directory separator.
20840 *[\\/]* ) as_myself
=$0 ;;
20841 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20842 for as_dir
in $PATH
20845 test -z "$as_dir" && as_dir
=.
20846 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20852 # We did not find ourselves, most probably we were run as `sh COMMAND'
20853 # in which case we are not to be found in the path.
20854 if test "x$as_myself" = x
; then
20857 if test ! -f "$as_myself"; then
20858 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20859 { (exit 1); exit 1; }
20862 # Work around bugs in pre-3.0 UWIN ksh.
20863 for as_var
in ENV MAIL MAILPATH
20864 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20872 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20873 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20874 LC_TELEPHONE LC_TIME
20876 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20877 eval $as_var=C
; export $as_var
20879 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
20883 # Required to use basename.
20884 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20885 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20891 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20892 as_basename
=basename
20898 # Name of the executable.
20899 as_me
=`$as_basename -- "$0" ||
20900 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20901 X"$0" : 'X\(//\)$' \| \
20902 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20904 sed '/^.*\/\([^/][^/]*\)\/*$/{
20923 as_lineno_1
=$LINENO
20924 as_lineno_2
=$LINENO
20925 test "x$as_lineno_1" != "x$as_lineno_2" &&
20926 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
20928 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20929 # uniformly replaced by the line number. The first 'sed' inserts a
20930 # line-number line after each line using $LINENO; the second 'sed'
20931 # does the real work. The second script uses 'N' to pair each
20932 # line-number line with the line containing $LINENO, and appends
20933 # trailing '-' during substitution so that $LINENO is not a special
20934 # case at line end.
20935 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20936 # scripts with optimization help from Paolo Bonzini. Blame Lee
20937 # E. McMahon (1931-1989) for sed's syntax. :-)
20949 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20952 ' >$as_me.lineno
&&
20953 chmod +x
"$as_me.lineno" ||
20954 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20955 { (exit 1); exit 1; }; }
20957 # Don't try to exec as it changes $[0], causing all sort of problems
20958 # (the dirname of $[0] is not the place where we might find the
20959 # original and so on. Autoconf is especially sensitive to this).
20960 .
"./$as_me.lineno"
20961 # Exit status is that of the last command.
20966 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20972 ECHO_C
= ECHO_N
= ECHO_T
=
20973 case `echo -n x` in
20975 case `echo 'x\c'` in
20976 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20983 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20984 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20990 rm -f conf$$ conf$$.exe conf$$.
file
20991 if test -d conf$$.dir
; then
20992 rm -f conf$$.dir
/conf$$.
file
20998 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21000 # ... but there are two gotchas:
21001 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21002 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21003 # In both cases, we have to default to `cp -p'.
21004 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
21006 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21011 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
21012 rmdir conf$$.dir
2>/dev
/null
21014 if mkdir
-p .
2>/dev
/null
; then
21017 test -d .
/-p && rmdir .
/-p
21021 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21022 # systems may use methods other than mode bits to determine executability.
21023 cat >conf$$.
file <<_ASEOF
21027 chmod +x conf$$.
file
21028 if test -x conf$$.
file >/dev
/null
2>&1; then
21029 as_executable_p
="test -x"
21035 # Sed expression to map a string onto a valid CPP name.
21036 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21038 # Sed expression to map a string onto a valid variable name.
21039 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21044 # Save the log message, to keep $[0] and so on meaningful, and to
21045 # report actual input values of CONFIG_FILES etc. instead of their
21046 # values after options handling.
21048 This file was extended by llvm $as_me 2.9svn, which was
21049 generated by GNU Autoconf 2.60. Invocation command line was
21051 CONFIG_FILES = $CONFIG_FILES
21052 CONFIG_HEADERS = $CONFIG_HEADERS
21053 CONFIG_LINKS = $CONFIG_LINKS
21054 CONFIG_COMMANDS = $CONFIG_COMMANDS
21057 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21062 cat >>$CONFIG_STATUS <<_ACEOF
21063 # Files that config.status was made for.
21064 config_files="$ac_config_files"
21065 config_headers="$ac_config_headers"
21066 config_commands="$ac_config_commands"
21070 cat >>$CONFIG_STATUS <<\_ACEOF
21072 \`$as_me' instantiates files from templates according to the
21073 current configuration.
21075 Usage: $0 [OPTIONS] [FILE]...
21077 -h, --help print this help, then exit
21078 -V, --version print version number, then exit
21079 -q, --quiet do not print progress messages
21080 -d, --debug don't remove temporary files
21081 --recheck update $as_me by reconfiguring in the same conditions
21082 --file=FILE[:TEMPLATE]
21083 instantiate the configuration file FILE
21084 --header=FILE[:TEMPLATE]
21085 instantiate the configuration header FILE
21087 Configuration files:
21090 Configuration headers:
21093 Configuration commands:
21096 Report bugs to <bug-autoconf@gnu.org>."
21099 cat >>$CONFIG_STATUS <<_ACEOF
21101 llvm config.status 2.9svn
21102 configured by $0, generated by GNU Autoconf 2.60,
21103 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21105 Copyright (C) 2006 Free Software Foundation, Inc.
21106 This config.status script is free software; the Free Software Foundation
21107 gives unlimited permission to copy, distribute and modify it."
21114 cat >>$CONFIG_STATUS <<\_ACEOF
21115 # If no file are specified by the user, then we need to provide default
21116 # value. By we need to know if files were specified by the user.
21122 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
21123 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
21134 # Handling of the options.
21135 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21137 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
21138 echo "$ac_cs_version"; exit ;;
21139 --debug |
--debu |
--deb |
--de |
--d |
-d )
21141 --file |
--fil |
--fi |
--f )
21143 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21144 ac_need_defaults
=false
;;
21145 --header |
--heade |
--head |
--hea )
21147 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21148 ac_need_defaults
=false
;;
21150 # Conflict between --help and --header
21151 { echo "$as_me: error: ambiguous option: $1
21152 Try \`$0 --help' for more information." >&2
21153 { (exit 1); exit 1; }; };;
21154 --help |
--hel |
-h )
21155 echo "$ac_cs_usage"; exit ;;
21156 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21157 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21160 # This is an error.
21161 -*) { echo "$as_me: error: unrecognized option: $1
21162 Try \`$0 --help' for more information." >&2
21163 { (exit 1); exit 1; }; } ;;
21165 *) ac_config_targets
="$ac_config_targets $1"
21166 ac_need_defaults
=false
;;
21172 ac_configure_extra_args
=
21174 if $ac_cs_silent; then
21176 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21180 cat >>$CONFIG_STATUS <<_ACEOF
21181 if \$ac_cs_recheck; then
21182 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21183 CONFIG_SHELL=$SHELL
21184 export CONFIG_SHELL
21185 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21189 cat >>$CONFIG_STATUS <<\_ACEOF
21193 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21194 ## Running $as_me. ##
21200 cat >>$CONFIG_STATUS <<_ACEOF
21204 llvm_src="${srcdir}"
21208 cat >>$CONFIG_STATUS <<\_ACEOF
21210 # Handling of arguments.
21211 for ac_config_target
in $ac_config_targets
21213 case $ac_config_target in
21214 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21215 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21216 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21217 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21218 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21219 "include/llvm/Config/Disassemblers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21220 "include/llvm/System/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21221 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
21222 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
21223 "tools/llvmc/src/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21224 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21225 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
21226 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
21227 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
21228 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
21229 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
21230 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
21231 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
21232 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
21233 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
21234 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
21235 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
21236 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
21237 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
21238 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21240 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21241 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21242 { (exit 1); exit 1; }; };;
21247 # If the user did not use the arguments to specify the items to instantiate,
21248 # then the envvar interface is used. Set only those that are not.
21249 # We use the long form for the default assignment because of an extremely
21250 # bizarre bug on SunOS 4.1.3.
21251 if $ac_need_defaults; then
21252 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21253 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21254 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21257 # Have a temporary directory for convenience. Make it in the build tree
21258 # simply because there is no reason against having it here, and in addition,
21259 # creating and moving files from /tmp can sometimes cause problems.
21260 # Hook for its removal unless debugging.
21261 # Note that there is a small window in which the directory will not be cleaned:
21262 # after its creation but before its name has been assigned to `$tmp'.
21266 trap 'exit_status=$?
21267 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21269 trap '{ (exit 1); exit 1; }' 1 2 13 15
21271 # Create a (secure) tmp directory for tmp files.
21274 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21275 test -n "$tmp" && test -d "$tmp"
21278 tmp
=.
/conf$$
-$RANDOM
21279 (umask 077 && mkdir
"$tmp")
21282 echo "$me: cannot create a temporary directory in ." >&2
21283 { (exit 1); exit 1; }
21287 # Set up the sed scripts for CONFIG_FILES section.
21290 # No need to generate the scripts if there are no CONFIG_FILES.
21291 # This happens for instance when ./config.status config.h
21292 if test -n "$CONFIG_FILES"; then
21299 for ac_last_try
in false false false false false
:; do
21300 cat >conf$
$subs.
sed <<_ACEOF
21301 SHELL!$SHELL$ac_delim
21302 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21303 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21304 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21305 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21306 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21307 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21308 exec_prefix!$exec_prefix$ac_delim
21309 prefix!$prefix$ac_delim
21310 program_transform_name!$program_transform_name$ac_delim
21311 bindir!$bindir$ac_delim
21312 sbindir!$sbindir$ac_delim
21313 libexecdir!$libexecdir$ac_delim
21314 datarootdir!$datarootdir$ac_delim
21315 datadir!$datadir$ac_delim
21316 sysconfdir!$sysconfdir$ac_delim
21317 sharedstatedir!$sharedstatedir$ac_delim
21318 localstatedir!$localstatedir$ac_delim
21319 includedir!$includedir$ac_delim
21320 oldincludedir!$oldincludedir$ac_delim
21321 docdir!$docdir$ac_delim
21322 infodir!$infodir$ac_delim
21323 htmldir!$htmldir$ac_delim
21324 dvidir!$dvidir$ac_delim
21325 pdfdir!$pdfdir$ac_delim
21326 psdir!$psdir$ac_delim
21327 libdir!$libdir$ac_delim
21328 localedir!$localedir$ac_delim
21329 mandir!$mandir$ac_delim
21330 DEFS!$DEFS$ac_delim
21331 ECHO_C!$ECHO_C$ac_delim
21332 ECHO_N!$ECHO_N$ac_delim
21333 ECHO_T!$ECHO_T$ac_delim
21334 LIBS!$LIBS$ac_delim
21335 build_alias!$build_alias$ac_delim
21336 host_alias!$host_alias$ac_delim
21337 target_alias!$target_alias$ac_delim
21338 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21339 subdirs!$subdirs$ac_delim
21340 build!$build$ac_delim
21341 build_cpu!$build_cpu$ac_delim
21342 build_vendor!$build_vendor$ac_delim
21343 build_os!$build_os$ac_delim
21344 host!$host$ac_delim
21345 host_cpu!$host_cpu$ac_delim
21346 host_vendor!$host_vendor$ac_delim
21347 host_os!$host_os$ac_delim
21348 target!$target$ac_delim
21349 target_cpu!$target_cpu$ac_delim
21350 target_vendor!$target_vendor$ac_delim
21351 target_os!$target_os$ac_delim
21353 HOST_OS!$HOST_OS$ac_delim
21354 TARGET_OS!$TARGET_OS$ac_delim
21355 LINKALL!$LINKALL$ac_delim
21356 NOLINKALL!$NOLINKALL$ac_delim
21357 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21358 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21359 ARCH!$ARCH$ac_delim
21360 ENDIAN!$ENDIAN$ac_delim
21362 CFLAGS!$CFLAGS$ac_delim
21363 LDFLAGS!$LDFLAGS$ac_delim
21364 CPPFLAGS!$CPPFLAGS$ac_delim
21365 ac_ct_CC!$ac_ct_CC$ac_delim
21366 EXEEXT!$EXEEXT$ac_delim
21367 OBJEXT!$OBJEXT$ac_delim
21369 GREP!$GREP$ac_delim
21370 EGREP!$EGREP$ac_delim
21371 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21372 BUILD_CC!$BUILD_CC$ac_delim
21373 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21374 BUILD_CXX!$BUILD_CXX$ac_delim
21375 CVSBUILD!$CVSBUILD$ac_delim
21376 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21377 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21378 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21379 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21380 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21381 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21382 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21384 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21385 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21386 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21387 ENABLE_PIC!$ENABLE_PIC$ac_delim
21388 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21389 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21390 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21391 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21392 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21393 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21394 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21395 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21396 CLANGPATH!$CLANGPATH$ac_delim
21397 CLANGXXPATH!$CLANGXXPATH$ac_delim
21400 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21402 elif $ac_last_try; then
21403 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21404 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21405 { (exit 1); exit 1; }; }
21407 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21411 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21412 if test -n "$ac_eof"; then
21413 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21414 ac_eof
=`expr $ac_eof + 1`
21417 cat >>$CONFIG_STATUS <<_ACEOF
21418 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21419 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21422 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21423 s/^/s,@/; s/!/@,|#_!!_#|/
21426 s/'"$ac_delim"'$/,g/; t
21428 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21429 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21430 rm -f conf$
$subs.
sed
21431 cat >>$CONFIG_STATUS <<_ACEOF
21437 for ac_last_try
in false false false false false
:; do
21438 cat >conf$
$subs.
sed <<_ACEOF
21439 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21440 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21441 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21442 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21444 CXXFLAGS!$CXXFLAGS$ac_delim
21445 ac_ct_CXX!$ac_ct_CXX$ac_delim
21447 ifGNUmake!$ifGNUmake$ac_delim
21448 LN_S!$LN_S$ac_delim
21451 DATE!$DATE$ac_delim
21452 FIND!$FIND$ac_delim
21453 MKDIR!$MKDIR$ac_delim
21455 RANLIB!$RANLIB$ac_delim
21460 BINPWD!$BINPWD$ac_delim
21461 GRAPHVIZ!$GRAPHVIZ$ac_delim
21464 NEATO!$NEATO$ac_delim
21465 TWOPI!$TWOPI$ac_delim
21466 CIRCO!$CIRCO$ac_delim
21468 DOTTY!$DOTTY$ac_delim
21469 PERL!$PERL$ac_delim
21470 HAVE_PERL!$HAVE_PERL$ac_delim
21471 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21472 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21473 INSTALL_DATA!$INSTALL_DATA$ac_delim
21474 BZIP2!$BZIP2$ac_delim
21476 DOXYGEN!$DOXYGEN$ac_delim
21477 GROFF!$GROFF$ac_delim
21478 GZIP!$GZIP$ac_delim
21479 POD2HTML!$POD2HTML$ac_delim
21480 POD2MAN!$POD2MAN$ac_delim
21481 PDFROFF!$PDFROFF$ac_delim
21482 RUNTEST!$RUNTEST$ac_delim
21483 TCLSH!$TCLSH$ac_delim
21485 OCAMLC!$OCAMLC$ac_delim
21486 OCAMLOPT!$OCAMLOPT$ac_delim
21487 OCAMLDEP!$OCAMLDEP$ac_delim
21488 OCAMLDOC!$OCAMLDOC$ac_delim
21490 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21491 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21492 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21493 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21494 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21495 LIBADD_DL!$LIBADD_DL$ac_delim
21496 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21497 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21498 LLVMGCC!$LLVMGCC$ac_delim
21499 LLVMGXX!$LLVMGXX$ac_delim
21500 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21501 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21502 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21503 USE_UDIS86!$USE_UDIS86$ac_delim
21504 USE_OPROFILE!$USE_OPROFILE$ac_delim
21505 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21506 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21507 MMAP_FILE!$MMAP_FILE$ac_delim
21508 LLVMCC1!$LLVMCC1$ac_delim
21509 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21510 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21511 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21512 SHLIBEXT!$SHLIBEXT$ac_delim
21513 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21514 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21515 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21516 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21517 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21518 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21519 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21520 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21521 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21522 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21523 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21524 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21525 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21526 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21527 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21528 RPATH!$RPATH$ac_delim
21529 RDYNAMIC!$RDYNAMIC$ac_delim
21530 LIBOBJS!$LIBOBJS$ac_delim
21531 LTLIBOBJS!$LTLIBOBJS$ac_delim
21534 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 93; then
21536 elif $ac_last_try; then
21537 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21538 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21539 { (exit 1); exit 1; }; }
21541 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21545 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21546 if test -n "$ac_eof"; then
21547 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21548 ac_eof
=`expr $ac_eof + 1`
21551 cat >>$CONFIG_STATUS <<_ACEOF
21552 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21553 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21556 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21557 s/^/s,@/; s/!/@,|#_!!_#|/
21560 s/'"$ac_delim"'$/,g/; t
21562 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21563 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21564 rm -f conf$
$subs.
sed
21565 cat >>$CONFIG_STATUS <<_ACEOF
21572 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21573 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21574 # trailing colons and then remove the whole line if VPATH becomes empty
21575 # (actually we leave an empty line to preserve line numbers).
21576 if test "x$srcdir" = x.
; then
21577 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21578 s/:*\$(srcdir):*/:/
21579 s/:*\${srcdir}:*/:/
21581 s/^\([^=]*=[ ]*\):*/\1/
21587 cat >>$CONFIG_STATUS <<\_ACEOF
21588 fi # test -n "$CONFIG_FILES"
21591 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
21594 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21596 case $ac_mode$ac_tag in
21598 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21599 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21600 { (exit 1); exit 1; }; };;
21601 :[FH
]-) ac_tag
=-:-;;
21602 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21619 -) ac_f
="$tmp/stdin";;
21620 *) # Look for the file first in the build tree, then in the source tree
21621 # (if the path is not absolute). The absolute path cannot be DOS-style,
21622 # because $ac_f cannot contain `:'.
21626 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21628 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21629 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21630 { (exit 1); exit 1; }; };;
21632 ac_file_inputs
="$ac_file_inputs $ac_f"
21635 # Let's still pretend it is `configure' which instantiates (i.e., don't
21636 # use $as_me), people would be surprised to read:
21637 # /* config.h. Generated by config.status. */
21638 configure_input
="Generated from "`IFS=:
21639 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21640 if test x
"$ac_file" != x-
; then
21641 configure_input
="$ac_file. $configure_input"
21642 { echo "$as_me:$LINENO: creating $ac_file" >&5
21643 echo "$as_me: creating $ac_file" >&6;}
21647 *:-:* |
*:-) cat >"$tmp/stdin";;
21652 ac_dir
=`$as_dirname -- "$ac_file" ||
21653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21654 X"$ac_file" : 'X\(//\)[^/]' \| \
21655 X"$ac_file" : 'X\(//\)$' \| \
21656 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21662 /^X\(\/\/\)[^/].*/{
21677 -*) as_dir
=.
/$as_dir;;
21679 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21683 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21684 *) as_qdir
=$as_dir;;
21686 as_dirs
="'$as_qdir' $as_dirs"
21687 as_dir
=`$as_dirname -- "$as_dir" ||
21688 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21689 X"$as_dir" : 'X\(//\)[^/]' \| \
21690 X"$as_dir" : 'X\(//\)$' \| \
21691 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21693 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21697 /^X\(\/\/\)[^/].*/{
21710 test -d "$as_dir" && break
21712 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21713 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21714 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21715 { (exit 1); exit 1; }; }; }
21719 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21721 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21722 # A ".." for each directory in $ac_dir_suffix.
21723 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21724 case $ac_top_builddir_sub in
21725 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21726 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21729 ac_abs_top_builddir
=$ac_pwd
21730 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21731 # for backward compatibility:
21732 ac_top_builddir
=$ac_top_build_prefix
21735 .
) # We are building in place.
21737 ac_top_srcdir
=$ac_top_builddir_sub
21738 ac_abs_top_srcdir
=$ac_pwd ;;
21739 [\\/]* | ?
:[\\/]* ) # Absolute name.
21740 ac_srcdir
=$srcdir$ac_dir_suffix;
21741 ac_top_srcdir
=$srcdir
21742 ac_abs_top_srcdir
=$srcdir ;;
21743 *) # Relative name.
21744 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21745 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21746 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21748 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21758 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21759 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
21763 cat >>$CONFIG_STATUS <<\_ACEOF
21764 # If the template does not know about datarootdir, expand it.
21765 # FIXME: This hack should be removed a few years after 2.60.
21766 ac_datarootdir_hack
=; ac_datarootdir_seen
=
21768 case `sed -n '/datarootdir/ {
21777 ' $ac_file_inputs` in
21778 *datarootdir
*) ac_datarootdir_seen
=yes;;
21779 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
21780 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21781 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21783 cat >>$CONFIG_STATUS <<_ACEOF
21784 ac_datarootdir_hack='
21785 s&@datadir@&$datadir&g
21786 s&@docdir@&$docdir&g
21787 s&@infodir@&$infodir&g
21788 s&@localedir@&$localedir&g
21789 s&@mandir@&$mandir&g
21790 s&\\\${datarootdir}&$datarootdir&g' ;;
21794 # Neutralize VPATH when `$srcdir' = `.'.
21795 # Shell code in configure.ac might set extrasub.
21796 # FIXME: do we really want to maintain this feature?
21797 cat >>$CONFIG_STATUS <<_ACEOF
21801 cat >>$CONFIG_STATUS <<\_ACEOF
21803 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21804 s
&@configure_input@
&$configure_input&;t t
21805 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21806 s
&@srcdir@
&$ac_srcdir&;t t
21807 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21808 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21809 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21810 s
&@builddir@
&$ac_builddir&;t t
21811 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21812 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21813 s
&@INSTALL@
&$ac_INSTALL&;t t
21814 $ac_datarootdir_hack
21815 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
21817 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21818 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
21819 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
21820 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21821 which seems to be undefined. Please make sure it is defined." >&5
21822 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21823 which seems to be undefined. Please make sure it is defined." >&2;}
21827 -) cat "$tmp/out"; rm -f "$tmp/out";;
21828 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21837 # Transform confdefs.h into a sed script `conftest.defines', that
21838 # substitutes the proper values into config.h.in to produce config.h.
21839 rm -f conftest.defines conftest.
tail
21840 # First, append a space to every undef/define line, to ease matching.
21841 echo 's/$/ /' >conftest.defines
21842 # Then, protect against being on the right side of a sed subst, or in
21843 # an unquoted here document, in config.status. If some macros were
21844 # called several times there might be several #defines for the same
21845 # symbol, which is useless. But do not sort them, since the last
21846 # AC_DEFINE must be honored.
21847 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
21848 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21849 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21850 # PARAMS is the parameter list in the macro definition--in most cases, it's
21851 # just an empty string.
21852 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21853 ac_dB
='\\)[ (].*,\\1define\\2'
21861 s/^[ ]*#[ ]*define[ ][ ]*//
21866 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21867 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21868 ' >>conftest.defines
21870 # Remove the space that was appended to ease matching.
21871 # Then replace #undef with comments. This is necessary, for
21872 # example, in the case of _POSIX_SOURCE, which is predefined and required
21873 # on some systems where configure will not decide to define it.
21874 # (The regexp can be short, since the line contains either #define or #undef.)
21876 s,^[ #]*u.*,/* & */,' >>conftest.defines
21878 # Break up conftest.defines:
21879 ac_max_sed_lines
=50
21881 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21882 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21883 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21885 ac_in
='$ac_file_inputs'
21886 ac_out
='"$tmp/out1"'
21887 ac_nxt
='"$tmp/out2"'
21891 # Write a here document:
21892 cat >>$CONFIG_STATUS <<_ACEOF
21893 # First, check the format of the line:
21894 cat >"\$tmp/defines.sed" <<\\CEOF
21895 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21896 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21900 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
21902 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21903 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
21904 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
21905 grep . conftest.
tail >/dev
/null ||
break
21906 rm -f conftest.defines
21907 mv conftest.
tail conftest.defines
21909 rm -f conftest.defines conftest.
tail
21911 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21912 cat >>$CONFIG_STATUS <<\_ACEOF
21913 if test x
"$ac_file" != x-
; then
21914 echo "/* $configure_input */" >"$tmp/config.h"
21915 cat "$ac_result" >>"$tmp/config.h"
21916 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
21917 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21918 echo "$as_me: $ac_file is unchanged" >&6;}
21921 mv "$tmp/config.h" $ac_file
21924 echo "/* $configure_input */"
21930 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21931 echo "$as_me: executing $ac_file commands" >&6;}
21936 case $ac_file$ac_mode in
21937 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
21938 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile
;;
21939 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
21940 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common
;;
21941 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
21942 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
21943 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
21944 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
21945 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
21946 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
21947 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
21948 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile test
/Makefile
;;
21949 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
21950 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
21951 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
21952 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
21953 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
21954 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
21955 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
21956 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
21957 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
21958 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
21959 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
21960 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
21961 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
21962 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
21968 { (exit 0); exit 0; }
21970 chmod +x
$CONFIG_STATUS
21971 ac_clean_files
=$ac_clean_files_save
21974 # configure is writing to config.log, and then calls config.status.
21975 # config.status does its own redirection, appending to config.log.
21976 # Unfortunately, on DOS this fails, as config.log is still kept open
21977 # by configure, so config.status won't be able to write to it; its
21978 # output is simply discarded. So we exec the FD to /dev/null,
21979 # effectively closing config.log, so it can be properly (re)opened and
21980 # appended to by config.status. When coming back to configure, we
21981 # need to make the FD available again.
21982 if test "$no_create" != yes; then
21984 ac_config_status_args
=
21985 test "$silent" = yes &&
21986 ac_config_status_args
="$ac_config_status_args --quiet"
21988 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21990 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21991 # would make configure fail if this is the last instruction.
21992 $ac_cs_success ||
{ (exit 1); exit 1; }
21996 # CONFIG_SUBDIRS section.
21998 if test "$no_recursion" != yes; then
22000 # Remove --cache-file and --srcdir arguments so they do not pile up.
22001 ac_sub_configure_args
=
22003 eval "set x $ac_configure_args"
22007 if test -n "$ac_prev"; then
22012 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
22013 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
22014 ac_prev
=cache_file
;;
22015 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
22016 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
22019 --config-cache |
-C)
22021 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
22023 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
22025 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
22027 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
22031 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22033 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
22037 # Always prepend --prefix to ensure using the same prefix
22038 # in subdir configurations.
22039 ac_arg
="--prefix=$prefix"
22041 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22043 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
22046 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
22048 # Do not complain, so a configure script can configure whichever
22049 # parts of a large source tree are present.
22050 test -d "$srcdir/$ac_dir" ||
continue
22052 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22053 echo "$as_me:$LINENO: $ac_msg" >&5
22057 -*) as_dir
=.
/$as_dir;;
22059 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
22063 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22064 *) as_qdir
=$as_dir;;
22066 as_dirs
="'$as_qdir' $as_dirs"
22067 as_dir
=`$as_dirname -- "$as_dir" ||
22068 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22069 X"$as_dir" : 'X\(//\)[^/]' \| \
22070 X"$as_dir" : 'X\(//\)$' \| \
22071 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22073 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22077 /^X\(\/\/\)[^/].*/{
22090 test -d "$as_dir" && break
22092 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22093 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22094 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22095 { (exit 1); exit 1; }; }; }
22099 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22101 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22102 # A ".." for each directory in $ac_dir_suffix.
22103 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22104 case $ac_top_builddir_sub in
22105 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22106 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
22109 ac_abs_top_builddir
=$ac_pwd
22110 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
22111 # for backward compatibility:
22112 ac_top_builddir
=$ac_top_build_prefix
22115 .
) # We are building in place.
22117 ac_top_srcdir
=$ac_top_builddir_sub
22118 ac_abs_top_srcdir
=$ac_pwd ;;
22119 [\\/]* | ?
:[\\/]* ) # Absolute name.
22120 ac_srcdir
=$srcdir$ac_dir_suffix;
22121 ac_top_srcdir
=$srcdir
22122 ac_abs_top_srcdir
=$srcdir ;;
22123 *) # Relative name.
22124 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
22125 ac_top_srcdir
=$ac_top_build_prefix$srcdir
22126 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
22128 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
22133 # Check for guested configure; otherwise get Cygnus style configure.
22134 if test -f "$ac_srcdir/configure.gnu"; then
22135 ac_sub_configure
=$ac_srcdir/configure.gnu
22136 elif test -f "$ac_srcdir/configure"; then
22137 ac_sub_configure
=$ac_srcdir/configure
22138 elif test -f "$ac_srcdir/configure.in"; then
22139 # This should be Cygnus configure.
22140 ac_sub_configure
=$ac_aux_dir/configure
22142 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22143 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22147 # The recursion is here.
22148 if test -n "$ac_sub_configure"; then
22149 # Make the cache file name correct relative to the subdirectory.
22150 case $cache_file in
22151 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
22152 *) # Relative name.
22153 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
22156 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22157 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22158 # The eval makes quoting arguments work.
22159 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22160 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22161 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22162 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22163 { (exit 1); exit 1; }; }