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
685 ENABLE_EXPENSIVE_CHECKS
701 LLVM_ENUM_ASM_PRINTERS
702 LLVM_ENUM_ASM_PARSERS
703 LLVM_ENUM_DISASSEMBLERS
759 HAVE_LINK_VERSION_SCRIPT
762 CONVENIENCE_LTDL_TRUE
763 CONVENIENCE_LTDL_FALSE
771 NO_MISSING_FIELD_INITIALIZERS
783 LLVMCC_DISABLEOPT_FLAGS
799 ENABLE_VISIBILITY_INLINES_HIDDEN
805 ac_precious_vars
='build_alias
816 ac_subdirs_all
='projects/llvm-gcc
820 projects/llvm-poolalloc
823 projects/llvm-stacker
831 # Initialize some variables set by options.
833 ac_init_version
=false
834 # The variables have the same names as the options, with
835 # dashes changed to underlines.
843 program_transform_name
=s
,x
,x
,
851 # Installation directory options.
852 # These are left unexpanded so users can "make install exec_prefix=/foo"
853 # and all the variables that are supposed to be based on exec_prefix
854 # by default will actually change.
855 # Use braces instead of parens because sh, perl, etc. also accept them.
856 # (The list follows the same order as the GNU Coding Standards.)
857 bindir
='${exec_prefix}/bin'
858 sbindir
='${exec_prefix}/sbin'
859 libexecdir
='${exec_prefix}/libexec'
860 datarootdir
='${prefix}/share'
861 datadir
='${datarootdir}'
862 sysconfdir
='${prefix}/etc'
863 sharedstatedir
='${prefix}/com'
864 localstatedir
='${prefix}/var'
865 includedir
='${prefix}/include'
866 oldincludedir
='/usr/include'
867 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
868 infodir
='${datarootdir}/info'
873 libdir
='${exec_prefix}/lib'
874 localedir
='${datarootdir}/locale'
875 mandir
='${datarootdir}/man'
881 # If the previous option needs an argument, assign it.
882 if test -n "$ac_prev"; then
883 eval $ac_prev=\
$ac_option
889 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
893 # Accept the important Cygnus configure options, so we can diagnose typos.
895 case $ac_dashdash$ac_option in
899 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
901 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
904 -build |
--build |
--buil |
--bui |
--bu)
905 ac_prev
=build_alias
;;
906 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
907 build_alias
=$ac_optarg ;;
909 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
910 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
911 ac_prev
=cache_file
;;
912 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
913 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
914 cache_file
=$ac_optarg ;;
917 cache_file
=config.cache
;;
919 -datadir |
--datadir |
--datadi |
--datad)
921 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
922 datadir
=$ac_optarg ;;
924 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
925 |
--dataroo |
--dataro |
--datar)
926 ac_prev
=datarootdir
;;
927 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
928 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
929 datarootdir
=$ac_optarg ;;
931 -disable-* |
--disable-*)
932 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
933 # Reject names that are not valid shell variable names.
934 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
935 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
936 { (exit 1); exit 1; }; }
937 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
938 eval enable_
$ac_feature=no
;;
940 -docdir |
--docdir |
--docdi |
--doc |
--do)
942 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
945 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
947 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
950 -enable-* |
--enable-*)
951 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
952 # Reject names that are not valid shell variable names.
953 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
954 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
955 { (exit 1); exit 1; }; }
956 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
957 eval enable_
$ac_feature=\
$ac_optarg ;;
959 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
960 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
961 |
--exec |
--exe |
--ex)
962 ac_prev
=exec_prefix
;;
963 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
964 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
965 |
--exec=* |
--exe=* |
--ex=*)
966 exec_prefix
=$ac_optarg ;;
968 -gas |
--gas |
--ga |
--g)
969 # Obsolete; use --with-gas.
972 -help |
--help |
--hel |
--he |
-h)
974 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
975 ac_init_help
=recursive
;;
976 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
977 ac_init_help
=short
;;
979 -host |
--host |
--hos |
--ho)
980 ac_prev
=host_alias
;;
981 -host=* |
--host=* |
--hos=* |
--ho=*)
982 host_alias
=$ac_optarg ;;
984 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
986 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
988 htmldir
=$ac_optarg ;;
990 -includedir |
--includedir |
--includedi |
--included |
--include \
991 |
--includ |
--inclu |
--incl |
--inc)
992 ac_prev
=includedir
;;
993 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
994 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
995 includedir
=$ac_optarg ;;
997 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
999 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1000 infodir
=$ac_optarg ;;
1002 -libdir |
--libdir |
--libdi |
--libd)
1004 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1005 libdir
=$ac_optarg ;;
1007 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1008 |
--libexe |
--libex |
--libe)
1009 ac_prev
=libexecdir
;;
1010 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1011 |
--libexe=* |
--libex=* |
--libe=*)
1012 libexecdir
=$ac_optarg ;;
1014 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1015 ac_prev
=localedir
;;
1016 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1017 localedir
=$ac_optarg ;;
1019 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1020 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1021 ac_prev
=localstatedir
;;
1022 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1023 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1024 localstatedir
=$ac_optarg ;;
1026 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1028 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1029 mandir
=$ac_optarg ;;
1031 -nfp |
--nfp |
--nf)
1032 # Obsolete; use --without-fp.
1035 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1036 |
--no-cr |
--no-c |
-n)
1039 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1040 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1043 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1044 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1045 |
--oldin |
--oldi |
--old |
--ol |
--o)
1046 ac_prev
=oldincludedir
;;
1047 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1048 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1049 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1050 oldincludedir
=$ac_optarg ;;
1052 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1054 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1055 prefix
=$ac_optarg ;;
1057 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1058 |
--program-pre |
--program-pr |
--program-p)
1059 ac_prev
=program_prefix
;;
1060 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1061 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1062 program_prefix
=$ac_optarg ;;
1064 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1065 |
--program-suf |
--program-su |
--program-s)
1066 ac_prev
=program_suffix
;;
1067 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1068 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1069 program_suffix
=$ac_optarg ;;
1071 -program-transform-name |
--program-transform-name \
1072 |
--program-transform-nam |
--program-transform-na \
1073 |
--program-transform-n |
--program-transform- \
1074 |
--program-transform |
--program-transfor \
1075 |
--program-transfo |
--program-transf \
1076 |
--program-trans |
--program-tran \
1077 |
--progr-tra |
--program-tr |
--program-t)
1078 ac_prev
=program_transform_name
;;
1079 -program-transform-name=* |
--program-transform-name=* \
1080 |
--program-transform-nam=* |
--program-transform-na=* \
1081 |
--program-transform-n=* |
--program-transform-=* \
1082 |
--program-transform=* |
--program-transfor=* \
1083 |
--program-transfo=* |
--program-transf=* \
1084 |
--program-trans=* |
--program-tran=* \
1085 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1086 program_transform_name
=$ac_optarg ;;
1088 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1090 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1091 pdfdir
=$ac_optarg ;;
1093 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1095 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1098 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1099 |
-silent |
--silent |
--silen |
--sile |
--sil)
1102 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1104 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1106 sbindir
=$ac_optarg ;;
1108 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1109 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1110 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1112 ac_prev
=sharedstatedir
;;
1113 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1114 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1115 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1117 sharedstatedir
=$ac_optarg ;;
1119 -site |
--site |
--sit)
1121 -site=* |
--site=* |
--sit=*)
1124 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1126 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1127 srcdir
=$ac_optarg ;;
1129 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1130 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1131 ac_prev
=sysconfdir
;;
1132 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1133 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1134 sysconfdir
=$ac_optarg ;;
1136 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1137 ac_prev
=target_alias
;;
1138 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1139 target_alias
=$ac_optarg ;;
1141 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1144 -version |
--version |
--versio |
--versi |
--vers |
-V)
1145 ac_init_version
=: ;;
1148 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1154 eval with_
$ac_package=\
$ac_optarg ;;
1156 -without-* |
--without-*)
1157 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1160 { echo "$as_me: error: invalid package name: $ac_package" >&2
1161 { (exit 1); exit 1; }; }
1162 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1163 eval with_
$ac_package=no
;;
1166 # Obsolete; use --with-x.
1169 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1170 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1171 ac_prev
=x_includes
;;
1172 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1173 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1174 x_includes
=$ac_optarg ;;
1176 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1177 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1178 ac_prev
=x_libraries
;;
1179 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1180 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1181 x_libraries
=$ac_optarg ;;
1183 -*) { echo "$as_me: error: unrecognized option: $ac_option
1184 Try \`$0 --help' for more information." >&2
1185 { (exit 1); exit 1; }; }
1189 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1190 # Reject names that are not valid shell variable names.
1191 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1192 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1193 { (exit 1); exit 1; }; }
1194 eval $ac_envvar=\
$ac_optarg
1195 export $ac_envvar ;;
1198 # FIXME: should be removed in autoconf 3.0.
1199 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1201 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1208 if test -n "$ac_prev"; then
1209 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1210 { echo "$as_me: error: missing argument to $ac_option" >&2
1211 { (exit 1); exit 1; }; }
1214 # Be sure to have absolute directory names.
1215 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1216 datadir sysconfdir sharedstatedir localstatedir includedir \
1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1218 libdir localedir mandir
1220 eval ac_val
=\$
$ac_var
1222 [\\/$
]* | ?
:[\\/]* ) continue;;
1223 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1225 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1226 { (exit 1); exit 1; }; }
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1234 target
=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x
; then
1238 if test "x$build_alias" = x
; then
1239 cross_compiling
=maybe
1240 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1248 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1250 test "$silent" = yes && exec 6>/dev
/null
1253 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di
=`ls -di .` &&
1255 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1256 { echo "$as_me: error: Working directory cannot be determined" >&2
1257 { (exit 1); exit 1; }; }
1258 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1259 { echo "$as_me: error: pwd does not report name of working directory" >&2
1260 { (exit 1); exit 1; }; }
1263 # Find the source files, if location was not specified.
1264 if test -z "$srcdir"; then
1265 ac_srcdir_defaulted
=yes
1266 # Try the directory containing this script, then the parent directory.
1267 ac_confdir
=`$as_dirname -- "$0" ||
1268 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1269 X"$0" : 'X\(//\)[^/]' \| \
1270 X"$0" : 'X\(//\)$' \| \
1271 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1291 if test ! -r "$srcdir/$ac_unique_file"; then
1295 ac_srcdir_defaulted
=no
1297 if test ! -r "$srcdir/$ac_unique_file"; then
1298 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1299 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1300 { (exit 1); exit 1; }; }
1302 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1305 { (exit 1); exit 1; }; }
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1315 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1317 for ac_var
in $ac_precious_vars; do
1318 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1320 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1331 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1389 --build=BUILD configure
for building on BUILD
[guessed
]
1390 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1391 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1395 if test -n "$ac_init_help"; then
1396 case $ac_init_help in
1397 short | recursive
) echo "Configuration of llvm 2.9svn:";;
1402 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1403 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1404 --enable-polly Use polly
if available
(default is YES
)
1405 --enable-optimized Compile with optimizations enabled
(default is NO
)
1406 --enable-profiling Compile with profiling enabled
(default is NO
)
1407 --enable-assertions Compile with assertion checks enabled
(default is
1409 --enable-expensive-checks
1410 Compile with expensive debug checks enabled
(default
1412 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1414 --enable-debug-symbols Build compiler with debug symbols
(default is NO
if
1415 optimization is on and YES
if it
's off)
1416 --enable-jit Enable Just In Time Compiling (default is YES)
1417 --enable-docs Build documents (default is YES)
1418 --enable-doxygen Build doxygen documentation (default is NO)
1419 --enable-threads Use threads if available (default is YES)
1420 --enable-pthreads Use pthreads if available (default is YES)
1421 --enable-pic Build LLVM with Position Independent Code (default
1423 --enable-shared Build a shared library and link tools against it
1425 --enable-embed-stdcxx Build a shared library with embedded libstdc++ for
1426 Win32 DLL (default is YES)
1427 --enable-timestamps Enable embedding timestamp information in build
1429 --enable-targets Build specific host targets: all or
1430 target1,target2,... Valid targets are: host, x86,
1431 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1432 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1434 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1436 --enable-bindings Build specific language bindings:
1437 all,auto,none,{binding-name} (default=auto)
1438 --enable-libffi Check for the presence of libffi (default is NO)
1439 --enable-ltdl-install install libltdl
1442 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1443 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1444 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1446 --with-llvmgcc Specify location of llvm-gcc driver (default
1448 --with-llvmgxx Specify location of llvm-g++ driver (default
1450 --with-clang Specify location of clang compiler (default is
1452 --with-built-clang Use the compiled Clang as the LLVM compiler
1454 --with-optimize-option Select the compiler options to use for optimized
1456 --with-extra-options Specify additional options to compile LLVM with
1457 --with-ocaml-libdir Specify install location for ocaml bindings (default
1459 --with-clang-resource-dir
1460 Relative directory from the Clang binary for
1462 --with-c-include-dirs Colon separated list of directories clang will
1464 --with-cxx-include-root Directory with the libstdc++ headers.
1465 --with-cxx-include-arch Architecture of the libstdc++ headers.
1466 --with-cxx-include-32bit-dir
1467 32 bit multilib dir.
1468 --with-cxx-include-64bit-dir
1469 64 bit multilib directory.
1470 --with-binutils-include Specify path to binutils/include/ containing
1471 plugin-api.h file for gold plugin.
1472 --with-tclinclude directory where tcl headers are
1473 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1474 clang, or none; default=check)
1475 --with-udis86=<path> Use udis86 external x86 disassembler library
1476 --with-oprofile=<prefix>
1477 Tell OProfile >= 0.9.4 how to symbolize JIT output
1479 Some influential environment variables:
1480 CC C compiler command
1481 CFLAGS C compiler flags
1482 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1483 nonstandard directory <lib dir>
1484 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1485 you have headers in a nonstandard directory <include dir>
1487 CXX C++ compiler command
1488 CXXFLAGS C++ compiler flags
1490 Use these variables to override the choices made by `configure' or to
help
1491 it to
find libraries and programs with nonstandard names
/locations.
1493 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1498 if test "$ac_init_help" = "recursive"; then
1499 # If there are subdirs, report their specific --help.
1500 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1501 test -d "$ac_dir" ||
continue
1505 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1507 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1508 # A ".." for each directory in $ac_dir_suffix.
1509 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1510 case $ac_top_builddir_sub in
1511 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1512 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1515 ac_abs_top_builddir
=$ac_pwd
1516 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1517 # for backward compatibility:
1518 ac_top_builddir
=$ac_top_build_prefix
1521 .
) # We are building in place.
1523 ac_top_srcdir
=$ac_top_builddir_sub
1524 ac_abs_top_srcdir
=$ac_pwd ;;
1525 [\\/]* | ?
:[\\/]* ) # Absolute name.
1526 ac_srcdir
=$srcdir$ac_dir_suffix;
1527 ac_top_srcdir
=$srcdir
1528 ac_abs_top_srcdir
=$srcdir ;;
1530 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1531 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1532 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1534 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1536 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1537 # Check for guested configure.
1538 if test -f "$ac_srcdir/configure.gnu"; then
1540 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1541 elif test -f "$ac_srcdir/configure"; then
1543 $SHELL "$ac_srcdir/configure" --help=recursive
1545 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1547 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1551 test -n "$ac_init_help" && exit $ac_status
1552 if $ac_init_version; then
1554 llvm configure
2.9svn
1555 generated by GNU Autoconf
2.60
1557 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1558 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1559 This configure
script is free software
; the Free Software Foundation
1560 gives unlimited permission to copy
, distribute and modify it.
1562 Copyright
(c
) 2003-2010 University of Illinois
at Urbana-Champaign.
1566 cat >config.log
<<_ACEOF
1567 This file contains any messages produced by compilers while
1568 running configure, to aid debugging if configure makes a mistake.
1570 It was created by llvm $as_me 2.9svn, which was
1571 generated by GNU Autoconf 2.60. Invocation command line was
1583 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1584 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1585 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1586 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1587 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1589 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1590 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1592 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1593 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1594 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1595 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1596 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1597 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1598 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1602 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1606 test -z "$as_dir" && as_dir
=.
1607 echo "PATH: $as_dir"
1623 # Keep a trace of the command line.
1624 # Strip out --no-create and --no-recursion so they do not pile up.
1625 # Strip out --silent because we don't want to record it for future runs.
1626 # Also quote any args containing shell meta-characters.
1627 # Make two passes to allow for proper duplicate-argument suppression.
1631 ac_must_keep_next
=false
1637 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1638 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1639 |
-silent |
--silent |
--silen |
--sile |
--sil)
1642 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1645 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1647 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1648 if test $ac_must_keep_next = true
; then
1649 ac_must_keep_next
=false
# Got value, back to normal.
1652 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1653 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1654 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1655 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1656 case "$ac_configure_args0 " in
1657 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1660 -* ) ac_must_keep_next
=true
;;
1663 ac_configure_args
="$ac_configure_args '$ac_arg'"
1668 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1669 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1671 # When interrupted or exit'd, cleanup temporary files, and complete
1672 # config.log. We remove comments because anyway the quotes in there
1673 # would cause problems or look ugly.
1674 # WARNING: Use '\'' to represent an apostrophe within the trap.
1675 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1676 trap 'exit_status=$?
1677 # Save into config.log some information that might help in debugging.
1682 ## ---------------- ##
1683 ## Cache variables. ##
1684 ## ---------------- ##
1687 # The following way of writing the cache mishandles newlines in values,
1689 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1690 eval ac_val=\$$ac_var
1694 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1695 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1698 _ | IFS | as_nl) ;; #(
1699 *) $as_unset $ac_var ;;
1704 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1705 *${as_nl}ac_space=\ *)
1707 "s/'\''/'\''\\\\'\'''\''/g;
1708 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1711 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1719 ## ----------------- ##
1720 ## Output variables. ##
1721 ## ----------------- ##
1724 for ac_var in $ac_subst_vars
1726 eval ac_val=\$$ac_var
1728 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 echo "$ac_var='\''$ac_val'\''"
1734 if test -n "$ac_subst_files"; then
1736 ## ------------------- ##
1737 ## File substitutions. ##
1738 ## ------------------- ##
1741 for ac_var
in $ac_subst_files
1743 eval ac_val
=\$
$ac_var
1745 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1747 echo "$ac_var='\''$ac_val'\''"
1752 if test -s confdefs.h; then
1762 test "$ac_signal" != 0 &&
1763 echo "$as_me: caught signal $ac_signal"
1764 echo "$as_me: exit $exit_status"
1766 rm -f core *.core core.conftest.* &&
1767 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1770 for ac_signal
in 1 2 13 15; do
1771 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1775 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1776 rm -f -r conftest
* confdefs.h
1778 # Predefined preprocessor variables.
1780 cat >>confdefs.h
<<_ACEOF
1781 #define PACKAGE_NAME "$PACKAGE_NAME"
1785 cat >>confdefs.h
<<_ACEOF
1786 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1790 cat >>confdefs.h
<<_ACEOF
1791 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1795 cat >>confdefs.h
<<_ACEOF
1796 #define PACKAGE_STRING "$PACKAGE_STRING"
1800 cat >>confdefs.h
<<_ACEOF
1801 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1805 # Let the site file select an alternate cache file if it wants to.
1806 # Prefer explicitly selected file to automatically selected ones.
1807 if test -n "$CONFIG_SITE"; then
1808 set x
"$CONFIG_SITE"
1809 elif test "x$prefix" != xNONE
; then
1810 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1812 set x
"$ac_default_prefix/share/config.site" \
1813 "$ac_default_prefix/etc/config.site"
1818 if test -r "$ac_site_file"; then
1819 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1820 echo "$as_me: loading site script $ac_site_file" >&6;}
1821 sed 's/^/| /' "$ac_site_file" >&5
1826 if test -r "$cache_file"; then
1827 # Some versions of bash will fail to source /dev/null (special
1828 # files actually), so we avoid doing that.
1829 if test -f "$cache_file"; then
1830 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1831 echo "$as_me: loading cache $cache_file" >&6;}
1833 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1834 *) .
"./$cache_file";;
1838 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1839 echo "$as_me: creating cache $cache_file" >&6;}
1843 # Check that the precious variables saved in the cache have kept the same
1845 ac_cache_corrupted
=false
1846 for ac_var
in $ac_precious_vars; do
1847 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1848 eval ac_new_set
=\
$ac_env_${ac_var}_set
1849 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1850 eval ac_new_val
=\
$ac_env_${ac_var}_value
1851 case $ac_old_set,$ac_new_set in
1853 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1854 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1855 ac_cache_corrupted
=: ;;
1857 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1858 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1859 ac_cache_corrupted
=: ;;
1862 if test "x$ac_old_val" != "x$ac_new_val"; then
1863 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1864 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1865 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1866 echo "$as_me: former value: $ac_old_val" >&2;}
1867 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1868 echo "$as_me: current value: $ac_new_val" >&2;}
1869 ac_cache_corrupted
=:
1872 # Pass precious variables to config.status.
1873 if test "$ac_new_set" = set; then
1875 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1876 *) ac_arg
=$ac_var=$ac_new_val ;;
1878 case " $ac_configure_args " in
1879 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1880 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1884 if $ac_cache_corrupted; then
1885 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1886 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1887 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1888 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1889 { (exit 1); exit 1; }; }
1917 ac_cpp
='$CPP $CPPFLAGS'
1918 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1919 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1920 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1924 LLVM_COPYRIGHT
="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1933 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
1934 if test -f "$ac_dir/install-sh"; then
1936 ac_install_sh
="$ac_aux_dir/install-sh -c"
1938 elif test -f "$ac_dir/install.sh"; then
1940 ac_install_sh
="$ac_aux_dir/install.sh -c"
1942 elif test -f "$ac_dir/shtool"; then
1944 ac_install_sh
="$ac_aux_dir/shtool install -c"
1948 if test -z "$ac_aux_dir"; then
1949 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1950 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1951 { (exit 1); exit 1; }; }
1954 # These three variables are undocumented and unsupported,
1955 # and are intended to be withdrawn in a future Autoconf release.
1956 # They can cause serious problems if a builder's source tree is in a directory
1957 # whose full name contains unusual characters.
1958 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1959 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1960 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1964 if test ${srcdir} != "." ; then
1965 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
1966 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1967 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1968 { (exit 1); exit 1; }; }
1974 if test -d ${srcdir}/projects
/llvm-gcc
; then
1975 subdirs
="$subdirs projects/llvm-gcc"
1979 if test -d ${srcdir}/projects
/test-suite
; then
1980 subdirs
="$subdirs projects/test-suite"
1984 if test -d ${srcdir}/projects
/llvm-test
; then
1985 subdirs
="$subdirs projects/llvm-test"
1989 if test -d ${srcdir}/projects
/poolalloc
; then
1990 subdirs
="$subdirs projects/poolalloc"
1994 if test -d ${srcdir}/projects
/llvm-poolalloc
; then
1995 subdirs
="$subdirs projects/llvm-poolalloc"
1999 for i
in `ls ${srcdir}/projects`
2001 if test -d ${srcdir}/projects
/${i} ; then
2003 sample
) subdirs
="$subdirs projects/sample"
2005 privbracket
) subdirs
="$subdirs projects/privbracket"
2007 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
2009 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
2011 llvm-java
) subdirs
="$subdirs projects/llvm-java"
2013 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
2015 safecode
) subdirs
="$subdirs projects/safecode"
2017 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2025 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2026 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2032 # Check whether --enable-polly was given.
2033 if test "${enable_polly+set}" = set; then
2034 enableval
=$enable_polly;
2039 case "$enableval" in
2044 default
) ENABLE_POLLY
=1
2046 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&5
2047 echo "$as_me: error: Invalid setting for --enable-polly. Use \"yes\" or \"no\"" >&2;}
2048 { (exit 1); exit 1; }; } ;;
2052 if (test -d ${srcdir}/tools
/polly
) && (test $ENABLE_POLLY -eq 1) ; then
2055 subdirs
="$subdirs tools/polly"
2060 # Make sure we can run config.sub.
2061 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2062 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064 { (exit 1); exit 1; }; }
2066 { echo "$as_me:$LINENO: checking build system type" >&5
2067 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_build+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2071 ac_build_alias
=$build_alias
2072 test "x$ac_build_alias" = x
&&
2073 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2074 test "x$ac_build_alias" = x
&&
2075 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077 { (exit 1); exit 1; }; }
2078 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2079 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081 { (exit 1); exit 1; }; }
2084 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085 echo "${ECHO_T}$ac_cv_build" >&6; }
2086 case $ac_cv_build in
2088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089 echo "$as_me: error: invalid value of canonical build" >&2;}
2090 { (exit 1); exit 1; }; };;
2093 ac_save_IFS
=$IFS; IFS
='-'
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2103 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2106 { echo "$as_me:$LINENO: checking host system type" >&5
2107 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2108 if test "${ac_cv_host+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2111 if test "x$host_alias" = x
; then
2112 ac_cv_host
=$ac_cv_build
2114 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2121 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122 echo "${ECHO_T}$ac_cv_host" >&6; }
2125 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126 echo "$as_me: error: invalid value of canonical host" >&2;}
2127 { (exit 1); exit 1; }; };;
2130 ac_save_IFS
=$IFS; IFS
='-'
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2140 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2143 { echo "$as_me:$LINENO: checking target system type" >&5
2144 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2145 if test "${ac_cv_target+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2148 if test "x$target_alias" = x
; then
2149 ac_cv_target
=$ac_cv_host
2151 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2152 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2153 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2154 { (exit 1); exit 1; }; }
2158 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2159 echo "${ECHO_T}$ac_cv_target" >&6; }
2160 case $ac_cv_target in
2162 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2163 echo "$as_me: error: invalid value of canonical target" >&2;}
2164 { (exit 1); exit 1; }; };;
2166 target
=$ac_cv_target
2167 ac_save_IFS
=$IFS; IFS
='-'
2173 # Remember, the first character of IFS is used to create $*,
2174 # except with old shells:
2177 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2180 # The aliases save the names the user supplied, while $host etc.
2181 # will get canonicalized.
2182 test -n "$target_alias" &&
2183 test "$program_prefix$program_suffix$program_transform_name" = \
2185 program_prefix
=${target_alias}-
2187 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2188 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2189 if test "${llvm_cv_os_type+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
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
="AIX"
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
="IRIX"
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
="Cygwin"
2207 llvm_cv_platform_type
="Unix" ;;
2209 llvm_cv_link_all_option
="-Wl,-all_load"
2210 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2211 llvm_cv_os_type
="Darwin"
2212 llvm_cv_platform_type
="Unix" ;;
2214 llvm_cv_link_all_option
="-Wl,-all_load"
2215 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2216 llvm_cv_os_type
="Minix"
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
="FreeBSD"
2222 llvm_cv_platform_type
="Unix" ;;
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
="OpenBSD"
2227 llvm_cv_platform_type
="Unix" ;;
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
="NetBSD"
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
="DragonFly"
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
="HP-UX"
2242 llvm_cv_platform_type
="Unix" ;;
2244 llvm_cv_link_all_option
="-Wl,--whole-archive"
2245 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2246 llvm_cv_os_type
="Interix"
2247 llvm_cv_platform_type
="Unix" ;;
2249 llvm_cv_link_all_option
="-Wl,--whole-archive"
2250 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2251 llvm_cv_os_type
="Linux"
2252 llvm_cv_platform_type
="Unix" ;;
2254 llvm_cv_link_all_option
="-Wl,-z,allextract"
2255 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2256 llvm_cv_os_type
="SunOS"
2257 llvm_cv_platform_type
="Unix" ;;
2259 llvm_cv_link_all_option
="-Wl,-z,allextract"
2260 llvm_cv_link_all_option
="-Wl,-z,defaultextract"
2261 llvm_cv_os_type
="AuroraUX"
2262 llvm_cv_platform_type
="Unix" ;;
2264 llvm_cv_link_all_option
="-Wl,--whole-archive"
2265 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2266 llvm_cv_os_type
="Win32"
2267 llvm_cv_platform_type
="Win32" ;;
2269 llvm_cv_link_all_option
="-Wl,--whole-archive"
2270 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2271 llvm_cv_os_type
="MingW"
2272 llvm_cv_platform_type
="Win32" ;;
2274 llvm_cv_link_all_option
="-Wl,--whole-archive"
2275 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2276 llvm_cv_os_type
="Haiku"
2277 llvm_cv_platform_type
="Unix" ;;
2279 llvm_cv_link_all_option
="-Wl,--whole-archive"
2280 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2281 llvm_cv_os_type
="Freestanding"
2282 llvm_cv_platform_type
="Unix" ;;
2284 llvm_cv_link_all_option
="-Wl,--whole-archive"
2285 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2286 llvm_cv_os_type
="Freestanding"
2287 llvm_cv_platform_type
="Unix" ;;
2289 llvm_cv_link_all_option
=""
2290 llvm_cv_no_link_all_option
=""
2291 llvm_cv_os_type
="Unknown"
2292 llvm_cv_platform_type
="Unknown" ;;
2295 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2296 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2298 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2299 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2300 if test "${llvm_cv_target_os_type+set}" = set; then
2301 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 llvm_cv_target_os_type
="AIX" ;;
2307 llvm_cv_target_os_type
="IRIX" ;;
2309 llvm_cv_target_os_type
="Cygwin" ;;
2311 llvm_cv_target_os_type
="Darwin" ;;
2313 llvm_cv_target_os_type
="Minix" ;;
2315 llvm_cv_target_os_type
="FreeBSD" ;;
2317 llvm_cv_target_os_type
="OpenBSD" ;;
2319 llvm_cv_target_os_type
="NetBSD" ;;
2321 llvm_cv_target_os_type
="DragonFly" ;;
2323 llvm_cv_target_os_type
="HP-UX" ;;
2325 llvm_cv_target_os_type
="Interix" ;;
2327 llvm_cv_target_os_type
="Linux" ;;
2329 llvm_cv_target_os_type
="SunOS" ;;
2331 llvm_cv_target_os_type
="AuroraUX" ;;
2333 llvm_cv_target_os_type
="Win32" ;;
2335 llvm_cv_target_os_type
="MingW" ;;
2337 llvm_cv_target_os_type
="Haiku" ;;
2339 llvm_cv_target_os_type
="Freestanding" ;;
2341 llvm_cv_target_os_type
="Unknown" ;;
2344 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2345 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2347 if test "$llvm_cv_os_type" = "Unknown" ; then
2348 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2349 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2350 { (exit 1); exit 1; }; }
2355 HOST_OS
=$llvm_cv_os_type
2357 TARGET_OS
=$llvm_cv_target_os_type
2360 LINKALL
=$llvm_cv_link_all_option
2362 NOLINKALL
=$llvm_cv_no_link_all_option
2365 case $llvm_cv_platform_type in
2368 cat >>confdefs.h
<<\_ACEOF
2369 #define LLVM_ON_UNIX 1
2379 cat >>confdefs.h
<<\_ACEOF
2380 #define LLVM_ON_WIN32 1
2390 { echo "$as_me:$LINENO: checking target architecture" >&5
2391 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2392 if test "${llvm_cv_target_arch+set}" = set; then
2393 echo $ECHO_N "(cached) $ECHO_C" >&6
2396 i?
86-*) llvm_cv_target_arch
="x86" ;;
2397 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2398 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2399 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2400 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2401 arm
*-*) llvm_cv_target_arch
="ARM" ;;
2402 mips-
*) llvm_cv_target_arch
="Mips" ;;
2403 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2404 msp430-
*) llvm_cv_target_arch
="MSP430" ;;
2405 s390x-
*) llvm_cv_target_arch
="SystemZ" ;;
2406 bfin-
*) llvm_cv_target_arch
="Blackfin" ;;
2407 mblaze-
*) llvm_cv_target_arch
="MBlaze" ;;
2408 ptx-
*) llvm_cv_target_arch
="PTX" ;;
2409 *) llvm_cv_target_arch
="Unknown" ;;
2412 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2413 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2415 if test "$llvm_cv_target_arch" = "Unknown" ; then
2416 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2417 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2420 # Determine the LLVM native architecture for the target
2421 case "$llvm_cv_target_arch" in
2422 x86
) LLVM_NATIVE_ARCH
="X86" ;;
2423 x86_64
) LLVM_NATIVE_ARCH
="X86" ;;
2424 *) LLVM_NATIVE_ARCH
="$llvm_cv_target_arch" ;;
2427 ARCH
=$llvm_cv_target_arch
2431 ac_cpp
='$CPP $CPPFLAGS'
2432 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2433 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2434 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2435 if test -n "$ac_tool_prefix"; then
2436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2437 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2438 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2439 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2440 if test "${ac_cv_prog_CC+set}" = set; then
2441 echo $ECHO_N "(cached) $ECHO_C" >&6
2443 if test -n "$CC"; then
2444 ac_cv_prog_CC
="$CC" # Let the user override the test.
2446 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2450 test -z "$as_dir" && as_dir
=.
2451 for ac_exec_ext
in '' $ac_executable_extensions; do
2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2453 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 if test -n "$CC"; then
2465 { echo "$as_me:$LINENO: result: $CC" >&5
2466 echo "${ECHO_T}$CC" >&6; }
2468 { echo "$as_me:$LINENO: result: no" >&5
2469 echo "${ECHO_T}no" >&6; }
2474 if test -z "$ac_cv_prog_CC"; then
2476 # Extract the first word of "gcc", so it can be a program name with args.
2477 set dummy gcc
; ac_word
=$2
2478 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2479 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2480 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2481 echo $ECHO_N "(cached) $ECHO_C" >&6
2483 if test -n "$ac_ct_CC"; then
2484 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2490 test -z "$as_dir" && as_dir
=.
2491 for ac_exec_ext
in '' $ac_executable_extensions; do
2492 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2493 ac_cv_prog_ac_ct_CC
="gcc"
2494 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2503 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2504 if test -n "$ac_ct_CC"; then
2505 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2506 echo "${ECHO_T}$ac_ct_CC" >&6; }
2508 { echo "$as_me:$LINENO: result: no" >&5
2509 echo "${ECHO_T}no" >&6; }
2512 if test "x$ac_ct_CC" = x
; then
2515 case $cross_compiling:$ac_tool_warned in
2517 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2518 whose name does not start with the host triplet. If you think this
2519 configuration is useful to you, please write to autoconf@gnu.org." >&5
2520 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2521 whose name does not start with the host triplet. If you think this
2522 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2523 ac_tool_warned
=yes ;;
2531 if test -z "$CC"; then
2532 if test -n "$ac_tool_prefix"; then
2533 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2534 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2535 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2536 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2537 if test "${ac_cv_prog_CC+set}" = set; then
2538 echo $ECHO_N "(cached) $ECHO_C" >&6
2540 if test -n "$CC"; then
2541 ac_cv_prog_CC
="$CC" # Let the user override the test.
2543 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2547 test -z "$as_dir" && as_dir
=.
2548 for ac_exec_ext
in '' $ac_executable_extensions; do
2549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2561 if test -n "$CC"; then
2562 { echo "$as_me:$LINENO: result: $CC" >&5
2563 echo "${ECHO_T}$CC" >&6; }
2565 { echo "$as_me:$LINENO: result: no" >&5
2566 echo "${ECHO_T}no" >&6; }
2572 if test -z "$CC"; then
2573 # Extract the first word of "cc", so it can be a program name with args.
2574 set dummy cc
; ac_word
=$2
2575 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2576 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2577 if test "${ac_cv_prog_CC+set}" = set; then
2578 echo $ECHO_N "(cached) $ECHO_C" >&6
2580 if test -n "$CC"; then
2581 ac_cv_prog_CC
="$CC" # Let the user override the test.
2584 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2588 test -z "$as_dir" && as_dir
=.
2589 for ac_exec_ext
in '' $ac_executable_extensions; do
2590 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2591 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2592 ac_prog_rejected
=yes
2596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2603 if test $ac_prog_rejected = yes; then
2604 # We found a bogon in the path, so make sure we never use it.
2605 set dummy
$ac_cv_prog_CC
2607 if test $# != 0; then
2608 # We chose a different compiler from the bogus one.
2609 # However, it has the same basename, so the bogon will be chosen
2610 # first if we set CC to just the basename; use the full file name.
2612 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2618 if test -n "$CC"; then
2619 { echo "$as_me:$LINENO: result: $CC" >&5
2620 echo "${ECHO_T}$CC" >&6; }
2622 { echo "$as_me:$LINENO: result: no" >&5
2623 echo "${ECHO_T}no" >&6; }
2628 if test -z "$CC"; then
2629 if test -n "$ac_tool_prefix"; then
2630 for ac_prog
in cl.exe
2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2633 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$CC"; then
2640 ac_cv_prog_CC
="$CC" # Let the user override the test.
2642 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir
=.
2647 for ac_exec_ext
in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 if test -n "$CC"; then
2661 { echo "$as_me:$LINENO: result: $CC" >&5
2662 echo "${ECHO_T}$CC" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$CC" && break
2672 if test -z "$CC"; then
2674 for ac_prog
in cl.exe
2676 # Extract the first word of "$ac_prog", so it can be a program name with args.
2677 set dummy
$ac_prog; ac_word
=$2
2678 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2680 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2681 echo $ECHO_N "(cached) $ECHO_C" >&6
2683 if test -n "$ac_ct_CC"; then
2684 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2690 test -z "$as_dir" && as_dir
=.
2691 for ac_exec_ext
in '' $ac_executable_extensions; do
2692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2693 ac_cv_prog_ac_ct_CC
="$ac_prog"
2694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2703 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2704 if test -n "$ac_ct_CC"; then
2705 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2706 echo "${ECHO_T}$ac_ct_CC" >&6; }
2708 { echo "$as_me:$LINENO: result: no" >&5
2709 echo "${ECHO_T}no" >&6; }
2713 test -n "$ac_ct_CC" && break
2716 if test "x$ac_ct_CC" = x
; then
2719 case $cross_compiling:$ac_tool_warned in
2721 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2722 whose name does not start with the host triplet. If you think this
2723 configuration is useful to you, please write to autoconf@gnu.org." >&5
2724 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2725 whose name does not start with the host triplet. If you think this
2726 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2727 ac_tool_warned
=yes ;;
2736 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: no acceptable C compiler found in \$PATH
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2742 # Provide some information about the compiler.
2743 echo "$as_me:$LINENO: checking for C compiler version" >&5
2744 ac_compiler
=`set X $ac_compile; echo $2`
2745 { (ac_try
="$ac_compiler --version >&5"
2747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2748 *) ac_try_echo=$ac_try;;
2750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2751 (eval "$ac_compiler --version >&5") 2>&5
2753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2754 (exit $ac_status); }
2755 { (ac_try="$ac_compiler -v >&5"
2757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2758 *) ac_try_echo
=$ac_try;;
2760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2761 (eval "$ac_compiler -v >&5") 2>&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); }
2765 { (ac_try
="$ac_compiler -V >&5"
2767 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2768 *) ac_try_echo=$ac_try;;
2770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2771 (eval "$ac_compiler -V >&5") 2>&5
2773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2774 (exit $ac_status); }
2776 cat >conftest.$ac_ext <<_ACEOF
2779 cat confdefs.h >>conftest.$ac_ext
2780 cat >>conftest.$ac_ext <<_ACEOF
2781 /* end confdefs.h. */
2791 ac_clean_files_save=$ac_clean_files
2792 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2793 # Try to create an executable without -o first, disregard a.out.
2794 # It will help us diagnose broken compilers, and finding out an intuition
2796 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2797 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2798 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2800 # List of possible output files, starting from the most likely.
2801 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2802 # only as a last resort. b.out is created by i960 compilers.
2803 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2805 # The IRIX 6 linker writes into existing files which may not be
2806 # executable, retaining their permissions. Remove them first so a
2807 # subsequent execution test works.
2809 for ac_file in $ac_files
2812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2813 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2818 if { (ac_try="$ac_link_default"
2820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2821 *) ac_try_echo=$ac_try;;
2823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2824 (eval "$ac_link_default") 2>&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); }; then
2828 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2829 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2830 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2831 # so that the user can short-circuit this test for compilers unknown to
2833 for ac_file
in $ac_files
2835 test -f "$ac_file" ||
continue
2837 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2840 # We found the default executable, but exeext='' is most
2844 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2846 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2848 # We set ac_cv_exeext here because the later test for it is not
2849 # safe: cross compilers may not add the suffix if given an `-o'
2850 # argument, so we may need to know it at that point already.
2851 # Even if this section looks crufty: it has the advantage of
2858 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2861 echo "$as_me: failed program was:" >&5
2862 sed 's/^/| /' conftest.
$ac_ext >&5
2864 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2865 See \`config.log' for more details." >&5
2866 echo "$as_me: error: C compiler cannot create executables
2867 See \`config.log' for more details." >&2;}
2868 { (exit 77); exit 77; }; }
2871 ac_exeext
=$ac_cv_exeext
2872 { echo "$as_me:$LINENO: result: $ac_file" >&5
2873 echo "${ECHO_T}$ac_file" >&6; }
2875 # Check that the compiler produces executables we can run. If not, either
2876 # the compiler is broken, or we cross compile.
2877 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2878 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2879 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2880 # If not cross compiling, check that we can run a simple program.
2881 if test "$cross_compiling" != yes; then
2882 if { ac_try
='./$ac_file'
2883 { (case "(($ac_try" in
2884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2885 *) ac_try_echo=$ac_try;;
2887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2888 (eval "$ac_try") 2>&5
2890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2891 (exit $ac_status); }; }; then
2894 if test "$cross_compiling" = maybe; then
2897 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2898 If you meant to cross compile, use \`--host'.
2899 See \`config.log' for more details.
" >&5
2900 echo "$as_me: error
: cannot run C compiled programs.
2901 If you meant to cross compile
, use \
`--host'.
2902 See \`config.log
' for more details." >&2;}
2903 { (exit 1); exit 1; }; }
2907 { echo "$as_me:$LINENO: result: yes" >&5
2908 echo "${ECHO_T}yes" >&6; }
2910 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2911 ac_clean_files=$ac_clean_files_save
2912 # Check that the compiler produces executables we can run. If not, either
2913 # the compiler is broken, or we cross compile.
2914 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2915 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2916 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2917 echo "${ECHO_T}$cross_compiling" >&6; }
2919 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2920 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2921 if { (ac_try="$ac_link"
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2927 (eval "$ac_link") 2>&5
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); }; then
2931 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2932 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2933 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2935 for ac_file
in conftest.exe conftest conftest.
*; do
2936 test -f "$ac_file" ||
continue
2938 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2939 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2945 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2946 See \`config.log' for more details." >&5
2947 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2948 See \`config.log' for more details." >&2;}
2949 { (exit 1); exit 1; }; }
2952 rm -f conftest
$ac_cv_exeext
2953 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2954 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2956 rm -f conftest.
$ac_ext
2957 EXEEXT
=$ac_cv_exeext
2959 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2960 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2961 if test "${ac_cv_objext+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 cat >conftest.
$ac_ext <<_ACEOF
2967 cat confdefs.h
>>conftest.
$ac_ext
2968 cat >>conftest.
$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2979 rm -f conftest.o conftest.obj
2980 if { (ac_try
="$ac_compile"
2982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;;
2985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2986 (eval "$ac_compile") 2>&5
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2989 (exit $ac_status); }; then
2990 for ac_file in conftest.o conftest.obj conftest.*; do
2991 test -f "$ac_file" || continue;
2993 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2994 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2999 echo "$as_me: failed program was:" >&5
3000 sed 's/^/| /' conftest.$ac_ext >&5
3002 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3003 See \`config.log
' for more details." >&5
3004 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3005 See \`config.log' for more details.
" >&2;}
3006 { (exit 1); exit 1; }; }
3009 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3011 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3012 echo "${ECHO_T}$ac_cv_objext" >&6; }
3013 OBJEXT=$ac_cv_objext
3015 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3016 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3017 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3018 echo $ECHO_N "(cached
) $ECHO_C" >&6
3020 cat >conftest.$ac_ext <<_ACEOF
3023 cat confdefs.h >>conftest.$ac_ext
3024 cat >>conftest.$ac_ext <<_ACEOF
3025 /* end confdefs.h. */
3038 rm -f conftest.$ac_objext
3039 if { (ac_try="$ac_compile"
3041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3042 *) ac_try_echo=$ac_try;;
3044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3045 (eval "$ac_compile") 2>conftest.er1
3047 grep -v '^ *+' conftest.er1 >conftest.err
3049 cat conftest.err >&5
3050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3051 (exit $ac_status); } &&
3052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3053 { (case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_try") 2>&5
3060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3061 (exit $ac_status); }; } &&
3062 { ac_try='test -s conftest.$ac_objext'
3063 { (case "(($ac_try" in
3064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3065 *) ac_try_echo=$ac_try;;
3067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3068 (eval "$ac_try") 2>&5
3070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3071 (exit $ac_status); }; }; then
3074 echo "$as_me: failed program was
:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3084 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3085 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3086 GCC=`test $ac_compiler_gnu = yes && echo yes`
3087 ac_test_CFLAGS=${CFLAGS+set}
3088 ac_save_CFLAGS=$CFLAGS
3089 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3090 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3091 if test "${ac_cv_prog_cc_g+set}" = set; then
3092 echo $ECHO_N "(cached
) $ECHO_C" >&6
3094 ac_save_c_werror_flag=$ac_c_werror_flag
3095 ac_c_werror_flag=yes
3098 cat >conftest.$ac_ext <<_ACEOF
3101 cat confdefs.h >>conftest.$ac_ext
3102 cat >>conftest.$ac_ext <<_ACEOF
3103 /* end confdefs.h. */
3113 rm -f conftest.$ac_objext
3114 if { (ac_try="$ac_compile"
3116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3117 *) ac_try_echo=$ac_try;;
3119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3120 (eval "$ac_compile") 2>conftest.er1
3122 grep -v '^ *+' conftest.er1 >conftest.err
3124 cat conftest.err >&5
3125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3126 (exit $ac_status); } &&
3127 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3128 { (case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_try") 2>&5
3135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3136 (exit $ac_status); }; } &&
3137 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
3149 echo "$as_me: failed program was
:" >&5
3150 sed 's/^/| /' conftest.$ac_ext >&5
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3177 grep -v '^ *+' conftest.er1 >conftest.err
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3201 (exit $ac_status); }; }; then
3204 echo "$as_me: failed program was
:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3209 cat >conftest.$ac_ext <<_ACEOF
3212 cat confdefs.h >>conftest.$ac_ext
3213 cat >>conftest.$ac_ext <<_ACEOF
3214 /* end confdefs.h. */
3224 rm -f conftest.$ac_objext
3225 if { (ac_try="$ac_compile"
3227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3228 *) ac_try_echo=$ac_try;;
3230 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3231 (eval "$ac_compile") 2>conftest.er1
3233 grep -v '^ *+' conftest.er1 >conftest.err
3235 cat conftest.err >&5
3236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3237 (exit $ac_status); } &&
3238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3239 { (case "(($ac_try" in
3240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_try") 2>&5
3246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3247 (exit $ac_status); }; } &&
3248 { ac_try='test -s conftest.$ac_objext'
3249 { (case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_try") 2>&5
3256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3257 (exit $ac_status); }; }; then
3260 echo "$as_me: failed program was
:" >&5
3261 sed 's/^/| /' conftest.$ac_ext >&5
3266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3273 ac_c_werror_flag=$ac_save_c_werror_flag
3275 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3276 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3277 if test "$ac_test_CFLAGS" = set; then
3278 CFLAGS=$ac_save_CFLAGS
3279 elif test $ac_cv_prog_cc_g = yes; then
3280 if test "$GCC" = yes; then
3286 if test "$GCC" = yes; then
3292 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3293 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3294 if test "${ac_cv_prog_cc_c89+set}" = set; then
3295 echo $ECHO_N "(cached
) $ECHO_C" >&6
3297 ac_cv_prog_cc_c89=no
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3307 #include <sys/types.h>
3308 #include <sys/stat.h>
3309 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3310 struct buf { int x; };
3311 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3312 static char *e (p, i)
3318 static char *f (char * (*g) (char **, int), char **p, ...)
3323 s = g (p, va_arg (v,int));
3328 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3329 function prototypes and stuff, but not '\xHH' hex character constants.
3330 These don't provoke an error unfortunately, instead are silently treated
3331 as 'x'. The following induces an error, until -std is added to get
3332 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3333 array size at least. It's necessary to write '\x00'==0 to get something
3334 that's true only with -std. */
3335 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3337 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3338 inside strings and character constants. */
3340 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3342 int test (int i, double x);
3343 struct s1 {int (*f) (int a);};
3344 struct s2 {int (*f) (double a);};
3345 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3351 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3357 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3359 CC="$ac_save_CC $ac_arg"
3360 rm -f conftest.$ac_objext
3361 if { (ac_try="$ac_compile"
3363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3364 *) ac_try_echo=$ac_try;;
3366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3367 (eval "$ac_compile") 2>conftest.er1
3369 grep -v '^ *+' conftest.er1 >conftest.err
3371 cat conftest.err >&5
3372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3373 (exit $ac_status); } &&
3374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3375 { (case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_try") 2>&5
3382 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3383 (exit $ac_status); }; } &&
3384 { ac_try='test -s conftest.$ac_objext'
3385 { (case "(($ac_try" in
3386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3387 *) ac_try_echo=$ac_try;;
3389 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3390 (eval "$ac_try") 2>&5
3392 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3393 (exit $ac_status); }; }; then
3394 ac_cv_prog_cc_c89=$ac_arg
3396 echo "$as_me: failed program was
:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3402 rm -f core conftest.err conftest.$ac_objext
3403 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3405 rm -f conftest.$ac_ext
3410 case "x
$ac_cv_prog_cc_c89" in
3412 { echo "$as_me:$LINENO: result
: none needed
" >&5
3413 echo "${ECHO_T}none needed
" >&6; } ;;
3415 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3416 echo "${ECHO_T}unsupported
" >&6; } ;;
3418 CC="$CC $ac_cv_prog_cc_c89"
3419 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3420 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3425 ac_cpp='$CPP $CPPFLAGS'
3426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3432 ac_cpp='$CPP $CPPFLAGS'
3433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3437 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3438 # On Suns, sometimes $CPP names a directory.
3439 if test -n "$CPP" && test -d "$CPP"; then
3442 if test -z "$CPP"; then
3443 if test "${ac_cv_prog_CPP+set}" = set; then
3444 echo $ECHO_N "(cached
) $ECHO_C" >&6
3446 # Double quotes because CPP needs to be expanded
3447 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3450 for ac_c_preproc_warn_flag in '' yes
3452 # Use a header file that comes with gcc, so configuring glibc
3453 # with a fresh cross-compiler works.
3454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3455 # <limits.h> exists even on freestanding compilers.
3456 # On the NeXT, cc -E runs the code through the compiler's parser,
3457 # not just through cpp. "Syntax error
" is here to catch this case.
3458 cat >conftest.$ac_ext <<_ACEOF
3461 cat confdefs.h >>conftest.$ac_ext
3462 cat >>conftest.$ac_ext <<_ACEOF
3463 /* end confdefs.h. */
3465 # include <limits.h>
3467 # include <assert.h>
3471 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 if test -z "$ac_cpp_err"; then
3496 echo "$as_me: failed program was
:" >&5
3497 sed 's/^/| /' conftest.$ac_ext >&5
3499 # Broken: fails on valid input.
3503 rm -f conftest.err conftest.$ac_ext
3505 # OK, works on sane cases. Now check whether nonexistent headers
3506 # can be detected and how.
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3513 #include <ac_nonexistent.h>
3515 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3518 *) ac_try_echo=$ac_try;;
3520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3521 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3523 grep -v '^ *+' conftest.er1 >conftest.err
3525 cat conftest.err >&5
3526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3527 (exit $ac_status); } >/dev/null; then
3528 if test -s conftest.err; then
3529 ac_cpp_err=$ac_c_preproc_warn_flag
3530 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3537 if test -z "$ac_cpp_err"; then
3538 # Broken: success on invalid input.
3541 echo "$as_me: failed program was
:" >&5
3542 sed 's/^/| /' conftest.$ac_ext >&5
3544 # Passes both tests.
3549 rm -f conftest.err conftest.$ac_ext
3552 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3553 rm -f conftest.err conftest.$ac_ext
3554 if $ac_preproc_ok; then
3566 { echo "$as_me:$LINENO: result
: $CPP" >&5
3567 echo "${ECHO_T}$CPP" >&6; }
3569 for ac_c_preproc_warn_flag in '' yes
3571 # Use a header file that comes with gcc, so configuring glibc
3572 # with a fresh cross-compiler works.
3573 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3574 # <limits.h> exists even on freestanding compilers.
3575 # On the NeXT, cc -E runs the code through the compiler's parser,
3576 # not just through cpp. "Syntax error
" is here to catch this case.
3577 cat >conftest.$ac_ext <<_ACEOF
3580 cat confdefs.h >>conftest.$ac_ext
3581 cat >>conftest.$ac_ext <<_ACEOF
3582 /* end confdefs.h. */
3584 # include <limits.h>
3586 # include <assert.h>
3590 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 if test -z "$ac_cpp_err"; then
3615 echo "$as_me: failed program was
:" >&5
3616 sed 's/^/| /' conftest.$ac_ext >&5
3618 # Broken: fails on valid input.
3622 rm -f conftest.err conftest.$ac_ext
3624 # OK, works on sane cases. Now check whether nonexistent headers
3625 # can be detected and how.
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3632 #include <ac_nonexistent.h>
3634 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3642 grep -v '^ *+' conftest.er1 >conftest.err
3644 cat conftest.err >&5
3645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3646 (exit $ac_status); } >/dev/null; then
3647 if test -s conftest.err; then
3648 ac_cpp_err=$ac_c_preproc_warn_flag
3649 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3656 if test -z "$ac_cpp_err"; then
3657 # Broken: success on invalid input.
3660 echo "$as_me: failed program was
:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3663 # Passes both tests.
3668 rm -f conftest.err conftest.$ac_ext
3671 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3672 rm -f conftest.err conftest.$ac_ext
3673 if $ac_preproc_ok; then
3676 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3677 See \
`config.log' for more details." >&5
3678 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3679 See \`config.log
' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
3684 ac_cpp='$CPP $CPPFLAGS'
3685 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3686 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3687 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3691 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_GREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 # Extract the first word of "grep ggrep" to use in msg output
3696 if test -z "$GREP"; then
3697 set dummy grep ggrep; ac_prog_name=$2
3698 if test "${ac_cv_path_GREP+set}" = set; then
3699 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 ac_path_GREP_found=false
3702 # Loop through the user's path and
test for each of PROGNAME-LIST
3703 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3704 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3707 test -z "$as_dir" && as_dir
=.
3708 for ac_prog
in grep ggrep
; do
3709 for ac_exec_ext
in '' $ac_executable_extensions; do
3710 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3711 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3712 # Check for GNU ac_path_GREP and select it if it is found.
3713 # Check for GNU $ac_path_GREP
3714 case `"$ac_path_GREP" --version 2>&1` in
3716 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3719 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3722 cat "conftest.in" "conftest.in" >"conftest.tmp"
3723 mv "conftest.tmp" "conftest.in"
3724 cp "conftest.in" "conftest.nl"
3725 echo 'GREP' >> "conftest.nl"
3726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3727 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3728 ac_count
=`expr $ac_count + 1`
3729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3730 # Best one so far, save it but keep looking for a better one
3731 ac_cv_path_GREP
="$ac_path_GREP"
3732 ac_path_GREP_max
=$ac_count
3734 # 10*(2^10) chars as input seems more than enough
3735 test $ac_count -gt 10 && break
3737 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3741 $ac_path_GREP_found && break 3
3751 GREP
="$ac_cv_path_GREP"
3752 if test -z "$GREP"; then
3753 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3754 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3755 { (exit 1); exit 1; }; }
3759 ac_cv_path_GREP
=$GREP
3764 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3765 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3766 GREP
="$ac_cv_path_GREP"
3769 { echo "$as_me:$LINENO: checking for egrep" >&5
3770 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3771 if test "${ac_cv_path_EGREP+set}" = set; then
3772 echo $ECHO_N "(cached) $ECHO_C" >&6
3774 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3775 then ac_cv_path_EGREP
="$GREP -E"
3777 # Extract the first word of "egrep" to use in msg output
3778 if test -z "$EGREP"; then
3779 set dummy
egrep; ac_prog_name
=$2
3780 if test "${ac_cv_path_EGREP+set}" = set; then
3781 echo $ECHO_N "(cached) $ECHO_C" >&6
3783 ac_path_EGREP_found
=false
3784 # Loop through the user's path and test for each of PROGNAME-LIST
3785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3786 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3789 test -z "$as_dir" && as_dir
=.
3790 for ac_prog
in egrep; do
3791 for ac_exec_ext
in '' $ac_executable_extensions; do
3792 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3793 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3794 # Check for GNU ac_path_EGREP and select it if it is found.
3795 # Check for GNU $ac_path_EGREP
3796 case `"$ac_path_EGREP" --version 2>&1` in
3798 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3801 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3804 cat "conftest.in" "conftest.in" >"conftest.tmp"
3805 mv "conftest.tmp" "conftest.in"
3806 cp "conftest.in" "conftest.nl"
3807 echo 'EGREP' >> "conftest.nl"
3808 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3809 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3810 ac_count
=`expr $ac_count + 1`
3811 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3812 # Best one so far, save it but keep looking for a better one
3813 ac_cv_path_EGREP
="$ac_path_EGREP"
3814 ac_path_EGREP_max
=$ac_count
3816 # 10*(2^10) chars as input seems more than enough
3817 test $ac_count -gt 10 && break
3819 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3823 $ac_path_EGREP_found && break 3
3833 EGREP
="$ac_cv_path_EGREP"
3834 if test -z "$EGREP"; then
3835 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3836 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3837 { (exit 1); exit 1; }; }
3841 ac_cv_path_EGREP
=$EGREP
3847 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3848 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3849 EGREP
="$ac_cv_path_EGREP"
3852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3854 if test "${ac_cv_header_stdc+set}" = set; then
3855 echo $ECHO_N "(cached) $ECHO_C" >&6
3857 cat >conftest.
$ac_ext <<_ACEOF
3860 cat confdefs.h
>>conftest.
$ac_ext
3861 cat >>conftest.
$ac_ext <<_ACEOF
3862 /* end confdefs.h. */
3876 rm -f conftest.
$ac_objext
3877 if { (ac_try
="$ac_compile"
3879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3883 (eval "$ac_compile") 2>conftest.er1
3885 grep -v '^ *+' conftest.er1 >conftest.err
3887 cat conftest.err >&5
3888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3889 (exit $ac_status); } &&
3890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3891 { (case "(($ac_try" in
3892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3893 *) ac_try_echo
=$ac_try;;
3895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3896 (eval "$ac_try") 2>&5
3898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3899 (exit $ac_status); }; } &&
3900 { ac_try
='test -s conftest.$ac_objext'
3901 { (case "(($ac_try" in
3902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_try") 2>&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); }; }; then
3910 ac_cv_header_stdc=yes
3912 echo "$as_me: failed program was:" >&5
3913 sed 's/^/| /' conftest.$ac_ext >&5
3915 ac_cv_header_stdc=no
3918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3920 if test $ac_cv_header_stdc = yes; then
3921 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3932 $EGREP "memchr" >/dev/null 2>&1; then
3935 ac_cv_header_stdc=no
3941 if test $ac_cv_header_stdc = yes; then
3942 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3943 cat >conftest.$ac_ext <<_ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3953 $EGREP "free" >/dev/null 2>&1; then
3956 ac_cv_header_stdc=no
3962 if test $ac_cv_header_stdc = yes; then
3963 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3964 if test "$cross_compiling" = yes; then
3967 cat >conftest.$ac_ext <<_ACEOF
3970 cat confdefs.h >>conftest.$ac_ext
3971 cat >>conftest.$ac_ext <<_ACEOF
3972 /* end confdefs.h. */
3975 #if ((' ' & 0x0FF) == 0x020)
3976 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3977 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3979 # define ISLOWER(c) \
3980 (('a' <= (c) && (c) <= 'i') \
3981 || ('j' <= (c) && (c) <= 'r') \
3982 || ('s' <= (c) && (c) <= 'z'))
3983 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3986 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3991 for (i = 0; i < 256; i++)
3992 if (XOR (islower (i), ISLOWER (i))
3993 || toupper (i) != TOUPPER (i))
3998 rm -f conftest$ac_exeext
3999 if { (ac_try="$ac_link"
4001 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4002 *) ac_try_echo
=$ac_try;;
4004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4005 (eval "$ac_link") 2>&5
4007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4009 { (case "(($ac_try" in
4010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_try") 2>&5
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4020 echo "$as_me: program exited with status $ac_status" >&5
4021 echo "$as_me: failed program was:" >&5
4022 sed 's/^/| /' conftest.$ac_ext >&5
4025 ac_cv_header_stdc=no
4027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4033 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4034 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4035 if test $ac_cv_header_stdc = yes; then
4037 cat >>confdefs.h <<\_ACEOF
4038 #define STDC_HEADERS 1
4043 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4053 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4054 inttypes.h stdint.h unistd.h
4056 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4060 echo $ECHO_N "(cached) $ECHO_C" >&6
4062 cat >conftest.$ac_ext <<_ACEOF
4065 cat confdefs.h >>conftest.$ac_ext
4066 cat >>conftest.$ac_ext <<_ACEOF
4067 /* end confdefs.h. */
4068 $ac_includes_default
4070 #include <$ac_header>
4072 rm -f conftest.$ac_objext
4073 if { (ac_try="$ac_compile"
4075 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4076 *) ac_try_echo
=$ac_try;;
4078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4079 (eval "$ac_compile") 2>conftest.er1
4081 grep -v '^ *+' conftest.er1
>conftest.err
4083 cat conftest.err
>&5
4084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4085 (exit $ac_status); } &&
4086 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4087 { (case "(($ac_try" in
4088 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4089 *) ac_try_echo=$ac_try;;
4091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4092 (eval "$ac_try") 2>&5
4094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4095 (exit $ac_status); }; } &&
4096 { ac_try='test -s conftest.$ac_objext'
4097 { (case "(($ac_try" in
4098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4099 *) ac_try_echo
=$ac_try;;
4101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4102 (eval "$ac_try") 2>&5
4104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4105 (exit $ac_status); }; }; then
4106 eval "$as_ac_Header=yes"
4108 echo "$as_me: failed program was:" >&5
4109 sed 's/^/| /' conftest.
$ac_ext >&5
4111 eval "$as_ac_Header=no"
4114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4116 ac_res
=`eval echo '${'$as_ac_Header'}'`
4117 { echo "$as_me:$LINENO: result: $ac_res" >&5
4118 echo "${ECHO_T}$ac_res" >&6; }
4119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4120 cat >>confdefs.h
<<_ACEOF
4121 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4129 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4130 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4131 if test "${ac_cv_c_bigendian+set}" = set; then
4132 echo $ECHO_N "(cached) $ECHO_C" >&6
4134 # See if sys/param.h defines the BYTE_ORDER macro.
4135 cat >conftest.
$ac_ext <<_ACEOF
4138 cat confdefs.h
>>conftest.
$ac_ext
4139 cat >>conftest.
$ac_ext <<_ACEOF
4140 /* end confdefs.h. */
4141 #include <sys/types.h>
4142 #include <sys/param.h>
4147 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4155 rm -f conftest.
$ac_objext
4156 if { (ac_try
="$ac_compile"
4158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4159 *) ac_try_echo=$ac_try;;
4161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4162 (eval "$ac_compile") 2>conftest.er1
4164 grep -v '^ *+' conftest.er1 >conftest.err
4166 cat conftest.err >&5
4167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4168 (exit $ac_status); } &&
4169 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4170 { (case "(($ac_try" in
4171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4172 *) ac_try_echo
=$ac_try;;
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_try") 2>&5
4177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4178 (exit $ac_status); }; } &&
4179 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
4189 # It does; now see whether it defined to BIG_ENDIAN or not.
4190 cat >conftest.$ac_ext <<_ACEOF
4193 cat confdefs.h >>conftest.$ac_ext
4194 cat >>conftest.$ac_ext <<_ACEOF
4195 /* end confdefs.h. */
4196 #include <sys/types.h>
4197 #include <sys/param.h>
4202 #if BYTE_ORDER != BIG_ENDIAN
4210 rm -f conftest.$ac_objext
4211 if { (ac_try="$ac_compile"
4213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4214 *) ac_try_echo
=$ac_try;;
4216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4217 (eval "$ac_compile") 2>conftest.er1
4219 grep -v '^ *+' conftest.er1
>conftest.err
4221 cat conftest.err
>&5
4222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } &&
4224 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4225 { (case "(($ac_try" in
4226 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4227 *) ac_try_echo=$ac_try;;
4229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4230 (eval "$ac_try") 2>&5
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }; } &&
4234 { ac_try='test -s conftest.$ac_objext'
4235 { (case "(($ac_try" in
4236 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4237 *) ac_try_echo
=$ac_try;;
4239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4240 (eval "$ac_try") 2>&5
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }; }; then
4244 ac_cv_c_bigendian
=yes
4246 echo "$as_me: failed program was:" >&5
4247 sed 's/^/| /' conftest.
$ac_ext >&5
4249 ac_cv_c_bigendian
=no
4252 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4254 echo "$as_me: failed program was:" >&5
4255 sed 's/^/| /' conftest.
$ac_ext >&5
4257 # It does not; compile a test program.
4258 if test "$cross_compiling" = yes; then
4259 # try to guess the endianness by grepping values into an object file
4260 ac_cv_c_bigendian
=unknown
4261 cat >conftest.
$ac_ext <<_ACEOF
4264 cat confdefs.h
>>conftest.
$ac_ext
4265 cat >>conftest.
$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4268 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4269 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4270 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4271 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4272 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4276 _ascii (); _ebcdic ();
4281 rm -f conftest.
$ac_objext
4282 if { (ac_try
="$ac_compile"
4284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4285 *) ac_try_echo=$ac_try;;
4287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4288 (eval "$ac_compile") 2>conftest.er1
4290 grep -v '^ *+' conftest.er1 >conftest.err
4292 cat conftest.err >&5
4293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4294 (exit $ac_status); } &&
4295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4296 { (case "(($ac_try" in
4297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4298 *) ac_try_echo
=$ac_try;;
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_try") 2>&5
4303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4304 (exit $ac_status); }; } &&
4305 { ac_try
='test -s conftest.$ac_objext'
4306 { (case "(($ac_try" in
4307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_try") 2>&5
4313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4314 (exit $ac_status); }; }; then
4315 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4316 ac_cv_c_bigendian=yes
4318 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4319 if test "$ac_cv_c_bigendian" = unknown; then
4320 ac_cv_c_bigendian=no
4322 # finding both strings is unlikely to happen, but who knows?
4323 ac_cv_c_bigendian=unknown
4327 echo "$as_me: failed program was:" >&5
4328 sed 's/^/| /' conftest.$ac_ext >&5
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 cat >conftest.$ac_ext <<_ACEOF
4338 cat confdefs.h >>conftest.$ac_ext
4339 cat >>conftest.$ac_ext <<_ACEOF
4340 /* end confdefs.h. */
4341 $ac_includes_default
4346 /* Are we little or big endian? From Harbison&Steele. */
4350 char c[sizeof (long int)];
4353 return u.c[sizeof (long int) - 1] == 1;
4359 rm -f conftest$ac_exeext
4360 if { (ac_try="$ac_link"
4362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4363 *) ac_try_echo
=$ac_try;;
4365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4366 (eval "$ac_link") 2>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4370 { (case "(($ac_try" in
4371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4375 (eval "$ac_try") 2>&5
4377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4378 (exit $ac_status); }; }; then
4379 ac_cv_c_bigendian=no
4381 echo "$as_me: program exited with status $ac_status" >&5
4382 echo "$as_me: failed program was:" >&5
4383 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_cv_c_bigendian=yes
4388 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4396 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4397 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4398 case $ac_cv_c_bigendian in
4406 { { echo "$as_me:$LINENO: error: unknown endianness
4407 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4408 echo "$as_me: error: unknown endianness
4409 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4410 { (exit 1); exit 1; }; } ;;
4414 if test "$cross_compiling" = yes; then
4415 LLVM_CROSS_COMPILING=1
4418 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4419 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4420 if test "${ac_cv_build_exeext+set}" = set; then
4421 echo $ECHO_N "(cached) $ECHO_C" >&6
4423 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4424 ac_cv_build_exeext=.exe
4426 ac_build_prefix=${build_alias}-
4428 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4429 set dummy ${ac_build_prefix}gcc; ac_word=$2
4430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4432 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4433 echo $ECHO_N "(cached) $ECHO_C" >&6
4435 if test -n "$BUILD_CC"; then
4436 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 test -z "$as_dir" && as_dir=.
4443 for ac_exec_ext in '' $ac_executable_extensions; do
4444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4445 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 BUILD_CC=$ac_cv_prog_BUILD_CC
4456 if test -n "$BUILD_CC"; then
4457 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4458 echo "${ECHO_T}$BUILD_CC" >&6; }
4460 { echo "$as_me:$LINENO: result: no" >&5
4461 echo "${ECHO_T}no" >&6; }
4465 if test -z "$BUILD_CC"; then
4466 # Extract the first word of "gcc", so it can be a program name with args.
4467 set dummy gcc; ac_word=$2
4468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4470 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4471 echo $ECHO_N "(cached) $ECHO_C" >&6
4473 if test -n "$BUILD_CC"; then
4474 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4480 test -z "$as_dir" && as_dir=.
4481 for ac_exec_ext in '' $ac_executable_extensions; do
4482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4483 ac_cv_prog_BUILD_CC="gcc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 BUILD_CC=$ac_cv_prog_BUILD_CC
4494 if test -n "$BUILD_CC"; then
4495 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4496 echo "${ECHO_T}$BUILD_CC" >&6; }
4498 { echo "$as_me:$LINENO: result: no" >&5
4499 echo "${ECHO_T}no" >&6; }
4503 if test -z "$BUILD_CC"; then
4504 # Extract the first word of "cc", so it can be a program name with args.
4505 set dummy cc; ac_word=$2
4506 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4507 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4508 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 if test -n "$BUILD_CC"; then
4512 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4519 test -z "$as_dir" && as_dir=.
4520 for ac_exec_ext in '' $ac_executable_extensions; do
4521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4522 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4523 ac_prog_rejected=yes
4526 ac_cv_prog_BUILD_CC="cc"
4527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4534 if test $ac_prog_rejected = yes; then
4535 # We found a bogon in the path, so make sure we never use it.
4536 set dummy $ac_cv_prog_BUILD_CC
4538 if test $# != 0; then
4539 # We chose a different compiler from the bogus one.
4540 # However, it has the same basename, so the bogon will be chosen
4541 # first if we set BUILD_CC to just the basename; use the full file name.
4543 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4548 BUILD_CC=$ac_cv_prog_BUILD_CC
4549 if test -n "$BUILD_CC"; then
4550 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4551 echo "${ECHO_T}$BUILD_CC" >&6; }
4553 { echo "$as_me:$LINENO: result: no" >&5
4554 echo "${ECHO_T}no" >&6; }
4560 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4561 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4562 { (exit 1); exit 1; }; }
4563 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4565 echo 'int main () { return 0; }' > conftest.$ac_ext
4567 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4568 (eval $ac_build_link) 2>&5
4570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); }; then
4572 for file in conftest.*; do
4574 *.c | *.o | *.obj | *.dSYM) ;;
4575 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4579 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4580 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4581 { (exit 1); exit 1; }; }
4584 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4589 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4590 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4591 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4592 ac_build_exeext=$BUILD_EXEEXT
4594 ac_build_prefix=${build_alias}-
4595 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4596 set dummy ${ac_build_prefix}g++; ac_word=$2
4597 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4599 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4600 echo $ECHO_N "(cached) $ECHO_C" >&6
4602 if test -n "$BUILD_CXX"; then
4603 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609 test -z "$as_dir" && as_dir=.
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4612 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4613 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4623 if test -n "$BUILD_CXX"; then
4624 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4625 echo "${ECHO_T}$BUILD_CXX" >&6; }
4627 { echo "$as_me:$LINENO: result: no" >&5
4628 echo "${ECHO_T}no" >&6; }
4632 if test -z "$BUILD_CXX"; then
4633 # Extract the first word of "g++", so it can be a program name with args.
4634 set dummy g++; ac_word=$2
4635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4637 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 if test -n "$BUILD_CXX"; then
4641 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4647 test -z "$as_dir" && as_dir=.
4648 for ac_exec_ext in '' $ac_executable_extensions; do
4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4650 ac_cv_prog_BUILD_CXX="g++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4661 if test -n "$BUILD_CXX"; then
4662 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4663 echo "${ECHO_T}$BUILD_CXX" >&6; }
4665 { echo "$as_me:$LINENO: result: no" >&5
4666 echo "${ECHO_T}no" >&6; }
4670 if test -z "$BUILD_CXX"; then
4671 # Extract the first word of "c++", so it can be a program name with args.
4672 set dummy c++; ac_word=$2
4673 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4674 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4675 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4676 echo $ECHO_N "(cached) $ECHO_C" >&6
4678 if test -n "$BUILD_CXX"; then
4679 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4686 test -z "$as_dir" && as_dir=.
4687 for ac_exec_ext in '' $ac_executable_extensions; do
4688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4690 ac_prog_rejected=yes
4693 ac_cv_prog_BUILD_CXX="c++"
4694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 if test $ac_prog_rejected = yes; then
4702 # We found a bogon in the path, so make sure we never use it.
4703 set dummy $ac_cv_prog_BUILD_CXX
4705 if test $# != 0; then
4706 # We chose a different compiler from the bogus one.
4707 # However, it has the same basename, so the bogon will be chosen
4708 # first if we set BUILD_CXX to just the basename; use the full file name.
4710 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4715 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4716 if test -n "$BUILD_CXX"; then
4717 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4718 echo "${ECHO_T}$BUILD_CXX" >&6; }
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4728 LLVM_CROSS_COMPILING=0
4732 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4743 # Check whether --enable-optimized was given.
4744 if test "${enable_optimized+set}" = set; then
4745 enableval=$enable_optimized;
4750 if test ${enableval} = "no" ; then
4754 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4758 # Check whether --enable-profiling was given.
4759 if test "${enable_profiling+set}" = set; then
4760 enableval=$enable_profiling;
4765 if test ${enableval} = "no" ; then
4769 ENABLE_PROFILING=ENABLE_PROFILING=1
4773 # Check whether --enable-assertions was given.
4774 if test "${enable_assertions+set}" = set; then
4775 enableval=$enable_assertions;
4780 if test ${enableval} = "yes" ; then
4784 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4788 # Check whether --enable-expensive-checks was given.
4789 if test "${enable_expensive_checks+set}" = set; then
4790 enableval=$enable_expensive_checks;
4795 if test ${enableval} = "yes" ; then
4796 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4798 EXPENSIVE_CHECKS=yes
4801 ENABLE_EXPENSIVE_CHECKS=
4807 # Check whether --enable-debug-runtime was given.
4808 if test "${enable_debug_runtime+set}" = set; then
4809 enableval=$enable_debug_runtime;
4814 if test ${enableval} = "no" ; then
4818 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4822 # Check whether --enable-debug-symbols was given.
4823 if test "${enable_debug_symbols+set}" = set; then
4824 enableval=$enable_debug_symbols;
4829 if test ${enableval} = "no" ; then
4833 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4837 # Check whether --enable-jit was given.
4838 if test "${enable_jit+set}" = set; then
4839 enableval=$enable_jit;
4844 if test ${enableval} = "no"
4849 case "$llvm_cv_target_arch" in
4850 x86) TARGET_HAS_JIT=1
4852 Sparc) TARGET_HAS_JIT=0
4854 PowerPC) TARGET_HAS_JIT=1
4856 x86_64) TARGET_HAS_JIT=1
4858 Alpha) TARGET_HAS_JIT=0
4860 ARM) TARGET_HAS_JIT=1
4862 Mips) TARGET_HAS_JIT=0
4864 XCore) TARGET_HAS_JIT=0
4866 MSP430) TARGET_HAS_JIT=0
4868 SystemZ) TARGET_HAS_JIT=0
4870 Blackfin) TARGET_HAS_JIT=0
4872 MBlaze) TARGET_HAS_JIT=0
4874 PTX) TARGET_HAS_JIT=0
4881 # Check whether --enable-docs was given.
4882 if test "${enable_docs+set}" = set; then
4883 enableval=$enable_docs;
4888 case "$enableval" in
4893 default) ENABLE_DOCS=1
4895 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&5
4896 echo "$as_me: error: Invalid setting for --enable-docs. Use \"yes\" or \"no\"" >&2;}
4897 { (exit 1); exit 1; }; } ;;
4900 # Check whether --enable-doxygen was given.
4901 if test "${enable_doxygen+set}" = set; then
4902 enableval=$enable_doxygen;
4907 case "$enableval" in
4908 yes) ENABLE_DOXYGEN=1
4910 no) ENABLE_DOXYGEN=0
4912 default) ENABLE_DOXYGEN=0
4914 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4915 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4916 { (exit 1); exit 1; }; } ;;
4919 # Check whether --enable-threads was given.
4920 if test "${enable_threads+set}" = set; then
4921 enableval=$enable_threads;
4926 case "$enableval" in
4927 yes) ENABLE_THREADS=1
4929 no) ENABLE_THREADS=0
4931 default) ENABLE_THREADS=1
4933 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4934 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4935 { (exit 1); exit 1; }; } ;;
4938 cat >>confdefs.h <<_ACEOF
4939 #define ENABLE_THREADS $ENABLE_THREADS
4943 # Check whether --enable-pthreads was given.
4944 if test "${enable_pthreads+set}" = set; then
4945 enableval=$enable_pthreads;
4950 case "$enableval" in
4951 yes) ENABLE_PTHREADS=1
4953 no) ENABLE_PTHREADS=0
4955 default) ENABLE_PTHREADS=1
4957 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&5
4958 echo "$as_me: error: Invalid setting for --enable-pthreads. Use \"yes\" or \"no\"" >&2;}
4959 { (exit 1); exit 1; }; } ;;
4962 # Check whether --enable-pic was given.
4963 if test "${enable_pic+set}" = set; then
4964 enableval=$enable_pic;
4969 case "$enableval" in
4974 default) ENABLE_PIC=1
4976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4977 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
4981 cat >>confdefs.h <<_ACEOF
4982 #define ENABLE_PIC $ENABLE_PIC
4986 # Check whether --enable-shared was given.
4987 if test "${enable_shared+set}" = set; then
4988 enableval=$enable_shared;
4993 case "$enableval" in
4994 yes) ENABLE_SHARED=1
4998 default) ENABLE_SHARED=0
5000 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
5001 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
5002 { (exit 1); exit 1; }; } ;;
5005 # Check whether --enable-embed-stdcxx was given.
5006 if test "${enable_embed_stdcxx+set}" = set; then
5007 enableval=$enable_embed_stdcxx;
5012 case "$enableval" in
5013 yes) ENABLE_EMBED_STDCXX=1
5015 no) ENABLE_EMBED_STDCXX=0
5017 default) ENABLE_EMBED_STDCXX=1
5019 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&5
5020 echo "$as_me: error: Invalid setting for --enable-embed-stdcxx. Use \"yes\" or \"no\"" >&2;}
5021 { (exit 1); exit 1; }; } ;;
5024 # Check whether --enable-timestamps was given.
5025 if test "${enable_timestamps+set}" = set; then
5026 enableval=$enable_timestamps;
5031 case "$enableval" in
5032 yes) ENABLE_TIMESTAMPS=1
5034 no) ENABLE_TIMESTAMPS=0
5036 default) ENABLE_TIMESTAMPS=1
5038 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
5039 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
5040 { (exit 1); exit 1; }; } ;;
5043 cat >>confdefs.h <<_ACEOF
5044 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
5049 # Check whether --enable-targets was given.
5050 if test "${enable_targets+set}" = set; then
5051 enableval=$enable_targets;
5056 if test "$enableval" = host-only ; then
5059 case "$enableval" in
5060 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
5061 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5063 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5064 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5065 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5066 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5067 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5068 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5069 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5070 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5071 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5072 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5073 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5074 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5075 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
5076 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
5077 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5078 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5079 host) case "$llvm_cv_target_arch" in
5080 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5081 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
5082 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
5083 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
5084 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
5085 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
5086 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
5087 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
5088 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
5089 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
5090 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
5091 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
5092 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
5093 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
5094 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
5095 echo "$as_me: error: Can not set target to build" >&2;}
5096 { (exit 1); exit 1; }; } ;;
5098 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5099 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5100 { (exit 1); exit 1; }; } ;;
5105 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5108 # Determine whether we are building LLVM support for the native architecture.
5109 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5110 for a_target in $TARGETS_TO_BUILD; do
5111 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5113 cat >>confdefs.h <<_ACEOF
5114 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5117 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5118 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5119 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5121 cat >>confdefs.h <<_ACEOF
5122 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5126 cat >>confdefs.h <<_ACEOF
5127 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5131 cat >>confdefs.h <<_ACEOF
5132 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5138 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5139 # target feature def files.
5140 LLVM_ENUM_TARGETS=""
5141 LLVM_ENUM_ASM_PRINTERS=""
5142 LLVM_ENUM_ASM_PARSERS=""
5143 LLVM_ENUM_DISASSEMBLERS=""
5144 for target_to_build in $TARGETS_TO_BUILD; do
5145 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5146 if test -f ${srcdir}/lib/Target/${target_to_build}/*AsmPrinter.cpp ; then
5147 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5149 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5150 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5152 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5153 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5161 # Check whether --enable-cbe-printf-a was given.
5162 if test "${enable_cbe_printf_a+set}" = set; then
5163 enableval=$enable_cbe_printf_a;
5168 case "$enableval" in
5169 yes) ENABLE_CBE_PRINTF_A=1
5171 no) ENABLE_CBE_PRINTF_A=0
5173 default) ENABLE_CBE_PRINTF_A=1
5175 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5176 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5177 { (exit 1); exit 1; }; } ;;
5180 cat >>confdefs.h <<_ACEOF
5181 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5186 # Check whether --with-llvmgccdir was given.
5187 if test "${with_llvmgccdir+set}" = set; then
5188 withval=$with_llvmgccdir;
5194 default) WITH_LLVMGCCDIR=default ;;
5195 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5196 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5197 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5198 { (exit 1); exit 1; }; } ;;
5202 # Check whether --with-llvmgcc was given.
5203 if test "${with_llvmgcc+set}" = set; then
5204 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5210 # Check whether --with-llvmgxx was given.
5211 if test "${with_llvmgxx+set}" = set; then
5212 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5217 if test -n "$LLVMGCC"; then
5218 LLVMGCCCOMMAND="$LLVMGCC"
5221 if test -n "$LLVMGXX"; then
5222 LLVMGXXCOMMAND="$LLVMGXX"
5225 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5226 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5227 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5228 { (exit 1); exit 1; }; };
5231 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5232 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5233 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5234 { (exit 1); exit 1; }; };
5238 # Check whether --with-clang was given.
5239 if test "${with_clang+set}" = set; then
5240 withval=$with_clang;
5247 # Check whether --with-built-clang was given.
5248 if test "${with_built_clang+set}" = set; then
5249 withval=$with_built_clang;
5251 with_built_clang=check
5255 { echo "$as_me:$LINENO: checking clang compiler" >&5
5256 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5259 if test "$with_clang" != "default"; then
5260 WITH_CLANGPATH="$with_clang"
5261 if ! test -x "$WITH_CLANGPATH"; then
5262 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5263 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5264 { (exit 1); exit 1; }; }
5266 elif test "$with_built_clang" = "yes"; then
5268 elif test "$with_built_clang" = "no"; then
5271 if test "$with_built_clang" != "check"; then
5272 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5273 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5274 { (exit 1); exit 1; }; }
5277 if test -f ${srcdir}/tools/clang/README.txt; then
5282 if ! test -z "$WITH_CLANGPATH"; then
5283 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5284 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5285 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang
++`
5286 elif test "$WITH_BUILT_CLANG" = "1"; then
5287 { echo "$as_me:$LINENO: result: built" >&5
5288 echo "${ECHO_T}built" >&6; }
5290 { echo "$as_me:$LINENO: result: none" >&5
5291 echo "${ECHO_T}none" >&6; }
5293 CLANGPATH=$WITH_CLANGPATH
5295 CLANGXXPATH=$WITH_CLANGXXPATH
5297 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5301 # Check whether --with-optimize-option was given.
5302 if test "${with_optimize_option+set}" = set; then
5303 withval=$with_optimize_option;
5308 { echo "$as_me:$LINENO: checking optimization flags" >&5
5309 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5312 case "$llvm_cv_os_type" in
5313 FreeBSD) optimize_option=-O2 ;;
5314 MingW) optimize_option=-O2 ;;
5315 *) optimize_option=-O3 ;;
5317 *) optimize_option="$withval" ;;
5319 OPTIMIZE_OPTION=$optimize_option
5321 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5322 echo "${ECHO_T}$optimize_option" >&6; }
5325 # Check whether --with-extra-options was given.
5326 if test "${with_extra_options+set}" = set; then
5327 withval=$with_extra_options;
5333 default) EXTRA_OPTIONS= ;;
5334 *) EXTRA_OPTIONS=$withval ;;
5336 EXTRA_OPTIONS=$EXTRA_OPTIONS
5339 # Check whether --enable-bindings was given.
5340 if test "${enable_bindings+set}" = set; then
5341 enableval=$enable_bindings;
5346 BINDINGS_TO_BUILD=""
5347 case "$enableval" in
5348 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5349 all ) BINDINGS_TO_BUILD="ocaml" ;;
5350 none | no) BINDINGS_TO_BUILD="" ;;
5351 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5352 case "$a_binding" in
5353 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5354 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5355 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5356 { (exit 1); exit 1; }; } ;;
5363 # Check whether --with-ocaml-libdir was given.
5364 if test "${with_ocaml_libdir+set}" = set; then
5365 withval=$with_ocaml_libdir;
5371 auto) with_ocaml_libdir="$withval" ;;
5372 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5373 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5374 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5375 { (exit 1); exit 1; }; } ;;
5379 # Check whether --with-clang-resource-dir was given.
5380 if test "${with_clang_resource_dir+set}" = set; then
5381 withval=$with_clang_resource_dir;
5387 cat >>confdefs.h <<_ACEOF
5388 #define CLANG_RESOURCE_DIR "$withval"
5393 # Check whether --with-c-include-dirs was given.
5394 if test "${with_c_include_dirs+set}" = set; then
5395 withval=$with_c_include_dirs;
5401 cat >>confdefs.h <<_ACEOF
5402 #define C_INCLUDE_DIRS "$withval"
5407 # Check whether --with-cxx-include-root was given.
5408 if test "${with_cxx_include_root+set}" = set; then
5409 withval=$with_cxx_include_root;
5415 cat >>confdefs.h <<_ACEOF
5416 #define CXX_INCLUDE_ROOT "$withval"
5421 # Check whether --with-cxx-include-arch was given.
5422 if test "${with_cxx_include_arch+set}" = set; then
5423 withval=$with_cxx_include_arch;
5429 cat >>confdefs.h <<_ACEOF
5430 #define CXX_INCLUDE_ARCH "$withval"
5435 # Check whether --with-cxx-include-32bit-dir was given.
5436 if test "${with_cxx_include_32bit_dir+set}" = set; then
5437 withval=$with_cxx_include_32bit_dir;
5443 cat >>confdefs.h <<_ACEOF
5444 #define CXX_INCLUDE_32BIT_DIR "$withval"
5449 # Check whether --with-cxx-include-64bit-dir was given.
5450 if test "${with_cxx_include_64bit_dir+set}" = set; then
5451 withval=$with_cxx_include_64bit_dir;
5457 cat >>confdefs.h <<_ACEOF
5458 #define CXX_INCLUDE_64BIT_DIR "$withval"
5463 # Check whether --with-binutils-include was given.
5464 if test "${with_binutils_include+set}" = set; then
5465 withval=$with_binutils_include;
5471 default) WITH_BINUTILS_INCDIR=default ;;
5472 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5473 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5474 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5475 { (exit 1); exit 1; }; } ;;
5477 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5478 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5480 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5481 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5482 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5483 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5484 { (exit 1); exit 1; }; };
5488 # Check whether --enable-libffi was given.
5489 if test "${enable_libffi+set}" = set; then
5490 enableval=$enable_libffi; case "$enableval" in
5491 yes) llvm_cv_enable_libffi="yes" ;;
5492 no) llvm_cv_enable_libffi="no" ;;
5493 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5494 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5495 { (exit 1); exit 1; }; } ;;
5498 llvm_cv_enable_libffi=no
5504 ac_cpp='$CPP $CPPFLAGS'
5505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5508 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5509 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5510 # On Suns, sometimes $CPP names a directory.
5511 if test -n "$CPP" && test -d "$CPP"; then
5514 if test -z "$CPP"; then
5515 if test "${ac_cv_prog_CPP+set}" = set; then
5516 echo $ECHO_N "(cached) $ECHO_C" >&6
5518 # Double quotes because CPP needs to be expanded
5519 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5522 for ac_c_preproc_warn_flag in '' yes
5524 # Use a header file that comes with gcc, so configuring glibc
5525 # with a fresh cross-compiler works.
5526 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5527 # <limits.h> exists even on freestanding compilers.
5528 # On the NeXT, cc -E runs the code through the compiler's parser,
5529 # not just through cpp. "Syntax error" is here to catch this case.
5530 cat >conftest.$ac_ext <<_ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5537 # include <limits.h>
5539 # include <assert.h>
5543 if { (ac_try="$ac_cpp conftest.$ac_ext"
5545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5546 *) ac_try_echo
=$ac_try;;
5548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5549 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5551 grep -v '^ *+' conftest.er1
>conftest.err
5553 cat conftest.err
>&5
5554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5555 (exit $ac_status); } >/dev
/null
; then
5556 if test -s conftest.err
; then
5557 ac_cpp_err
=$ac_c_preproc_warn_flag
5558 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5565 if test -z "$ac_cpp_err"; then
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.
$ac_ext >&5
5571 # Broken: fails on valid input.
5575 rm -f conftest.err conftest.
$ac_ext
5577 # OK, works on sane cases. Now check whether nonexistent headers
5578 # can be detected and how.
5579 cat >conftest.
$ac_ext <<_ACEOF
5582 cat confdefs.h
>>conftest.
$ac_ext
5583 cat >>conftest.
$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 #include <ac_nonexistent.h>
5587 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5589 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5590 *) ac_try_echo=$ac_try;;
5592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5593 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5595 grep -v '^ *+' conftest.er1 >conftest.err
5597 cat conftest.err >&5
5598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5599 (exit $ac_status); } >/dev/null; then
5600 if test -s conftest.err; then
5601 ac_cpp_err=$ac_c_preproc_warn_flag
5602 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5609 if test -z "$ac_cpp_err"; then
5610 # Broken: success on invalid input.
5613 echo "$as_me: failed program was:" >&5
5614 sed 's/^/| /' conftest.$ac_ext >&5
5616 # Passes both tests.
5621 rm -f conftest.err conftest.$ac_ext
5624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5625 rm -f conftest.err conftest.
$ac_ext
5626 if $ac_preproc_ok; then
5638 { echo "$as_me:$LINENO: result: $CPP" >&5
5639 echo "${ECHO_T}$CPP" >&6; }
5641 for ac_c_preproc_warn_flag
in '' yes
5643 # Use a header file that comes with gcc, so configuring glibc
5644 # with a fresh cross-compiler works.
5645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5646 # <limits.h> exists even on freestanding compilers.
5647 # On the NeXT, cc -E runs the code through the compiler's parser,
5648 # not just through cpp. "Syntax error" is here to catch this case.
5649 cat >conftest.
$ac_ext <<_ACEOF
5652 cat confdefs.h
>>conftest.
$ac_ext
5653 cat >>conftest.
$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5656 # include <limits.h>
5658 # include <assert.h>
5662 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5664 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5665 *) ac_try_echo=$ac_try;;
5667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5668 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5670 grep -v '^ *+' conftest.er1 >conftest.err
5672 cat conftest.err >&5
5673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5674 (exit $ac_status); } >/dev/null; then
5675 if test -s conftest.err; then
5676 ac_cpp_err=$ac_c_preproc_warn_flag
5677 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5684 if test -z "$ac_cpp_err"; then
5687 echo "$as_me: failed program was:" >&5
5688 sed 's/^/| /' conftest.$ac_ext >&5
5690 # Broken: fails on valid input.
5694 rm -f conftest.err conftest.$ac_ext
5696 # OK, works on sane cases. Now check whether nonexistent headers
5697 # can be detected and how.
5698 cat >conftest.$ac_ext <<_ACEOF
5701 cat confdefs.h >>conftest.$ac_ext
5702 cat >>conftest.$ac_ext <<_ACEOF
5703 /* end confdefs.h. */
5704 #include <ac_nonexistent.h>
5706 if { (ac_try="$ac_cpp conftest.$ac_ext"
5708 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5709 *) ac_try_echo
=$ac_try;;
5711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5712 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5714 grep -v '^ *+' conftest.er1
>conftest.err
5716 cat conftest.err
>&5
5717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5718 (exit $ac_status); } >/dev
/null
; then
5719 if test -s conftest.err
; then
5720 ac_cpp_err
=$ac_c_preproc_warn_flag
5721 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5728 if test -z "$ac_cpp_err"; then
5729 # Broken: success on invalid input.
5732 echo "$as_me: failed program was:" >&5
5733 sed 's/^/| /' conftest.
$ac_ext >&5
5735 # Passes both tests.
5740 rm -f conftest.err conftest.
$ac_ext
5743 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5744 rm -f conftest.err conftest.
$ac_ext
5745 if $ac_preproc_ok; then
5748 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5749 See \`config.log' for more details." >&5
5750 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5751 See \`config.log' for more details." >&2;}
5752 { (exit 1); exit 1; }; }
5756 ac_cpp
='$CPP $CPPFLAGS'
5757 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5758 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5759 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5762 ac_cpp
='$CPP $CPPFLAGS'
5763 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5764 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5765 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5766 if test -n "$ac_tool_prefix"; then
5769 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5770 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5771 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5772 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5773 if test "${ac_cv_prog_CC+set}" = set; then
5774 echo $ECHO_N "(cached) $ECHO_C" >&6
5776 if test -n "$CC"; then
5777 ac_cv_prog_CC
="$CC" # Let the user override the test.
5779 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5783 test -z "$as_dir" && as_dir
=.
5784 for ac_exec_ext
in '' $ac_executable_extensions; do
5785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5786 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5797 if test -n "$CC"; then
5798 { echo "$as_me:$LINENO: result: $CC" >&5
5799 echo "${ECHO_T}$CC" >&6; }
5801 { echo "$as_me:$LINENO: result: no" >&5
5802 echo "${ECHO_T}no" >&6; }
5806 test -n "$CC" && break
5809 if test -z "$CC"; then
5813 # Extract the first word of "$ac_prog", so it can be a program name with args.
5814 set dummy
$ac_prog; ac_word
=$2
5815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5817 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5820 if test -n "$ac_ct_CC"; then
5821 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5823 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5827 test -z "$as_dir" && as_dir
=.
5828 for ac_exec_ext
in '' $ac_executable_extensions; do
5829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5830 ac_cv_prog_ac_ct_CC
="$ac_prog"
5831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5841 if test -n "$ac_ct_CC"; then
5842 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5843 echo "${ECHO_T}$ac_ct_CC" >&6; }
5845 { echo "$as_me:$LINENO: result: no" >&5
5846 echo "${ECHO_T}no" >&6; }
5850 test -n "$ac_ct_CC" && break
5853 if test "x$ac_ct_CC" = x
; then
5856 case $cross_compiling:$ac_tool_warned in
5858 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5859 whose name does not start with the host triplet. If you think this
5860 configuration is useful to you, please write to autoconf@gnu.org." >&5
5861 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5862 whose name does not start with the host triplet. If you think this
5863 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5864 ac_tool_warned
=yes ;;
5871 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5872 See \`config.log' for more details." >&5
5873 echo "$as_me: error: no acceptable C compiler found in \$PATH
5874 See \`config.log' for more details." >&2;}
5875 { (exit 1); exit 1; }; }
5877 # Provide some information about the compiler.
5878 echo "$as_me:$LINENO: checking for C compiler version" >&5
5879 ac_compiler
=`set X $ac_compile; echo $2`
5880 { (ac_try
="$ac_compiler --version >&5"
5882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5883 *) ac_try_echo=$ac_try;;
5885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5886 (eval "$ac_compiler --version >&5") 2>&5
5888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5889 (exit $ac_status); }
5890 { (ac_try="$ac_compiler -v >&5"
5892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5893 *) ac_try_echo
=$ac_try;;
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compiler -v >&5") 2>&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); }
5900 { (ac_try
="$ac_compiler -V >&5"
5902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_compiler -V >&5") 2>&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }
5911 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5912 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5913 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 cat >conftest.$ac_ext <<_ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5934 rm -f conftest.$ac_objext
5935 if { (ac_try="$ac_compile"
5937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5938 *) ac_try_echo
=$ac_try;;
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5943 grep -v '^ *+' conftest.er1
>conftest.err
5945 cat conftest.err
>&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } &&
5948 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5949 { (case "(($ac_try" in
5950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_try") 2>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); }; } &&
5958 { ac_try='test -s conftest.$ac_objext'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5961 *) ac_try_echo
=$ac_try;;
5963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; }; then
5970 echo "$as_me: failed program was:" >&5
5971 sed 's/^/| /' conftest.
$ac_ext >&5
5976 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5977 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5980 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5981 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5982 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5983 ac_test_CFLAGS
=${CFLAGS+set}
5984 ac_save_CFLAGS
=$CFLAGS
5985 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5986 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5987 if test "${ac_cv_prog_cc_g+set}" = set; then
5988 echo $ECHO_N "(cached) $ECHO_C" >&6
5990 ac_save_c_werror_flag
=$ac_c_werror_flag
5991 ac_c_werror_flag
=yes
5994 cat >conftest.
$ac_ext <<_ACEOF
5997 cat confdefs.h
>>conftest.
$ac_ext
5998 cat >>conftest.
$ac_ext <<_ACEOF
5999 /* end confdefs.h. */
6009 rm -f conftest.
$ac_objext
6010 if { (ac_try
="$ac_compile"
6012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6013 *) ac_try_echo=$ac_try;;
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016 (eval "$ac_compile") 2>conftest.er1
6018 grep -v '^ *+' conftest.er1 >conftest.err
6020 cat conftest.err >&5
6021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022 (exit $ac_status); } &&
6023 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024 { (case "(($ac_try" in
6025 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6026 *) ac_try_echo
=$ac_try;;
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029 (eval "$ac_try") 2>&5
6031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032 (exit $ac_status); }; } &&
6033 { ac_try
='test -s conftest.$ac_objext'
6034 { (case "(($ac_try" in
6035 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_try") 2>&5
6041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042 (exit $ac_status); }; }; then
6045 echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6049 cat >conftest.$ac_ext <<_ACEOF
6052 cat confdefs.h >>conftest.$ac_ext
6053 cat >>conftest.$ac_ext <<_ACEOF
6054 /* end confdefs.h. */
6064 rm -f conftest.$ac_objext
6065 if { (ac_try="$ac_compile"
6067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6068 *) ac_try_echo
=$ac_try;;
6070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6071 (eval "$ac_compile") 2>conftest.er1
6073 grep -v '^ *+' conftest.er1
>conftest.err
6075 cat conftest.err
>&5
6076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6077 (exit $ac_status); } &&
6078 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6079 { (case "(($ac_try" in
6080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6081 *) ac_try_echo=$ac_try;;
6083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6084 (eval "$ac_try") 2>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); }; } &&
6088 { ac_try='test -s conftest.$ac_objext'
6089 { (case "(($ac_try" in
6090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6091 *) ac_try_echo
=$ac_try;;
6093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6094 (eval "$ac_try") 2>&5
6096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }; }; then
6100 echo "$as_me: failed program was:" >&5
6101 sed 's/^/| /' conftest.
$ac_ext >&5
6103 ac_c_werror_flag
=$ac_save_c_werror_flag
6105 cat >conftest.
$ac_ext <<_ACEOF
6108 cat confdefs.h
>>conftest.
$ac_ext
6109 cat >>conftest.
$ac_ext <<_ACEOF
6110 /* end confdefs.h. */
6120 rm -f conftest.
$ac_objext
6121 if { (ac_try
="$ac_compile"
6123 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127 (eval "$ac_compile") 2>conftest.er1
6129 grep -v '^ *+' conftest.er1 >conftest.err
6131 cat conftest.err >&5
6132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6133 (exit $ac_status); } &&
6134 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6135 { (case "(($ac_try" in
6136 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6137 *) ac_try_echo
=$ac_try;;
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_try") 2>&5
6142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); }; } &&
6144 { ac_try
='test -s conftest.$ac_objext'
6145 { (case "(($ac_try" in
6146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6147 *) ac_try_echo=$ac_try;;
6149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6150 (eval "$ac_try") 2>&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; }; then
6156 echo "$as_me: failed program was:" >&5
6157 sed 's/^/| /' conftest.$ac_ext >&5
6162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6169 ac_c_werror_flag=$ac_save_c_werror_flag
6171 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6172 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6173 if test "$ac_test_CFLAGS" = set; then
6174 CFLAGS=$ac_save_CFLAGS
6175 elif test $ac_cv_prog_cc_g = yes; then
6176 if test "$GCC" = yes; then
6182 if test "$GCC" = yes; then
6188 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6189 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6190 if test "${ac_cv_prog_cc_c89+set}" = set; then
6191 echo $ECHO_N "(cached) $ECHO_C" >&6
6193 ac_cv_prog_cc_c89=no
6195 cat >conftest.$ac_ext <<_ACEOF
6198 cat confdefs.h >>conftest.$ac_ext
6199 cat >>conftest.$ac_ext <<_ACEOF
6200 /* end confdefs.h. */
6203 #include <sys/types.h>
6204 #include <sys/stat.h>
6205 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6206 struct buf { int x; };
6207 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6208 static char *e (p, i)
6214 static char *f (char * (*g) (char **, int), char **p, ...)
6219 s = g (p, va_arg (v,int));
6224 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6225 function prototypes and stuff, but not '\xHH' hex character constants.
6226 These don't provoke an error unfortunately, instead are silently treated
6227 as 'x'. The following induces an error, until -std is added to get
6228 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6229 array size at least. It's necessary to write '\x00'==0 to get something
6230 that's true only with -std. */
6231 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6233 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6234 inside strings and character constants. */
6236 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6238 int test (int i, double x);
6239 struct s1 {int (*f) (int a);};
6240 struct s2 {int (*f) (double a);};
6241 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6247 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6252 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6253 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6255 CC="$ac_save_CC $ac_arg"
6256 rm -f conftest.$ac_objext
6257 if { (ac_try="$ac_compile"
6259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6260 *) ac_try_echo
=$ac_try;;
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_compile") 2>conftest.er1
6265 grep -v '^ *+' conftest.er1
>conftest.err
6267 cat conftest.err
>&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } &&
6270 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6271 { (case "(($ac_try" in
6272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6273 *) ac_try_echo=$ac_try;;
6275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6276 (eval "$ac_try") 2>&5
6278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6279 (exit $ac_status); }; } &&
6280 { ac_try='test -s conftest.$ac_objext'
6281 { (case "(($ac_try" in
6282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6283 *) ac_try_echo
=$ac_try;;
6285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6286 (eval "$ac_try") 2>&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); }; }; then
6290 ac_cv_prog_cc_c89
=$ac_arg
6292 echo "$as_me: failed program was:" >&5
6293 sed 's/^/| /' conftest.
$ac_ext >&5
6298 rm -f core conftest.err conftest.
$ac_objext
6299 test "x$ac_cv_prog_cc_c89" != "xno" && break
6301 rm -f conftest.
$ac_ext
6306 case "x$ac_cv_prog_cc_c89" in
6308 { echo "$as_me:$LINENO: result: none needed" >&5
6309 echo "${ECHO_T}none needed" >&6; } ;;
6311 { echo "$as_me:$LINENO: result: unsupported" >&5
6312 echo "${ECHO_T}unsupported" >&6; } ;;
6314 CC
="$CC $ac_cv_prog_cc_c89"
6315 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6316 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6321 ac_cpp
='$CPP $CPPFLAGS'
6322 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6323 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6324 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6327 ac_cpp
='$CXXCPP $CPPFLAGS'
6328 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6329 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6330 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6331 if test -z "$CXX"; then
6332 if test -n "$CCC"; then
6335 if test -n "$ac_tool_prefix"; then
6338 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6339 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6340 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6341 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6342 if test "${ac_cv_prog_CXX+set}" = set; then
6343 echo $ECHO_N "(cached) $ECHO_C" >&6
6345 if test -n "$CXX"; then
6346 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6348 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6352 test -z "$as_dir" && as_dir
=.
6353 for ac_exec_ext
in '' $ac_executable_extensions; do
6354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6355 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6356 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 if test -n "$CXX"; then
6367 { echo "$as_me:$LINENO: result: $CXX" >&5
6368 echo "${ECHO_T}$CXX" >&6; }
6370 { echo "$as_me:$LINENO: result: no" >&5
6371 echo "${ECHO_T}no" >&6; }
6375 test -n "$CXX" && break
6378 if test -z "$CXX"; then
6382 # Extract the first word of "$ac_prog", so it can be a program name with args.
6383 set dummy
$ac_prog; ac_word
=$2
6384 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6385 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6386 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6389 if test -n "$ac_ct_CXX"; then
6390 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6392 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6396 test -z "$as_dir" && as_dir
=.
6397 for ac_exec_ext
in '' $ac_executable_extensions; do
6398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6399 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6400 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6409 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6410 if test -n "$ac_ct_CXX"; then
6411 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6412 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6414 { echo "$as_me:$LINENO: result: no" >&5
6415 echo "${ECHO_T}no" >&6; }
6419 test -n "$ac_ct_CXX" && break
6422 if test "x$ac_ct_CXX" = x
; then
6425 case $cross_compiling:$ac_tool_warned in
6427 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6428 whose name does not start with the host triplet. If you think this
6429 configuration is useful to you, please write to autoconf@gnu.org." >&5
6430 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6431 whose name does not start with the host triplet. If you think this
6432 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6433 ac_tool_warned
=yes ;;
6441 # Provide some information about the compiler.
6442 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6443 ac_compiler
=`set X $ac_compile; echo $2`
6444 { (ac_try
="$ac_compiler --version >&5"
6446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6447 *) ac_try_echo=$ac_try;;
6449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6450 (eval "$ac_compiler --version >&5") 2>&5
6452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6453 (exit $ac_status); }
6454 { (ac_try="$ac_compiler -v >&5"
6456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6457 *) ac_try_echo
=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compiler -v >&5") 2>&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); }
6464 { (ac_try
="$ac_compiler -V >&5"
6466 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_compiler -V >&5") 2>&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }
6475 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6476 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6477 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6478 echo $ECHO_N "(cached) $ECHO_C" >&6
6480 cat >conftest.$ac_ext <<_ACEOF
6483 cat confdefs.h >>conftest.$ac_ext
6484 cat >>conftest.$ac_ext <<_ACEOF
6485 /* end confdefs.h. */
6498 rm -f conftest.$ac_objext
6499 if { (ac_try="$ac_compile"
6501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6502 *) ac_try_echo
=$ac_try;;
6504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6505 (eval "$ac_compile") 2>conftest.er1
6507 grep -v '^ *+' conftest.er1
>conftest.err
6509 cat conftest.err
>&5
6510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6511 (exit $ac_status); } &&
6512 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6513 { (case "(($ac_try" in
6514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6515 *) ac_try_echo=$ac_try;;
6517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6518 (eval "$ac_try") 2>&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); }; } &&
6522 { ac_try='test -s conftest.$ac_objext'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6525 *) ac_try_echo
=$ac_try;;
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; }; then
6534 echo "$as_me: failed program was:" >&5
6535 sed 's/^/| /' conftest.
$ac_ext >&5
6540 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6541 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6544 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6545 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6546 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6547 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6548 ac_save_CXXFLAGS
=$CXXFLAGS
6549 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6550 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6551 if test "${ac_cv_prog_cxx_g+set}" = set; then
6552 echo $ECHO_N "(cached) $ECHO_C" >&6
6554 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6555 ac_cxx_werror_flag
=yes
6558 cat >conftest.
$ac_ext <<_ACEOF
6561 cat confdefs.h
>>conftest.
$ac_ext
6562 cat >>conftest.
$ac_ext <<_ACEOF
6563 /* end confdefs.h. */
6573 rm -f conftest.
$ac_objext
6574 if { (ac_try
="$ac_compile"
6576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6577 *) ac_try_echo=$ac_try;;
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580 (eval "$ac_compile") 2>conftest.er1
6582 grep -v '^ *+' conftest.er1 >conftest.err
6584 cat conftest.err >&5
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); } &&
6587 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6588 { (case "(($ac_try" in
6589 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6590 *) ac_try_echo
=$ac_try;;
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593 (eval "$ac_try") 2>&5
6595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596 (exit $ac_status); }; } &&
6597 { ac_try
='test -s conftest.$ac_objext'
6598 { (case "(($ac_try" in
6599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6600 *) ac_try_echo=$ac_try;;
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603 (eval "$ac_try") 2>&5
6605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606 (exit $ac_status); }; }; then
6607 ac_cv_prog_cxx_g=yes
6609 echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6613 cat >conftest.$ac_ext <<_ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6628 rm -f conftest.$ac_objext
6629 if { (ac_try="$ac_compile"
6631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6632 *) ac_try_echo
=$ac_try;;
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6637 grep -v '^ *+' conftest.er1
>conftest.err
6639 cat conftest.err
>&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } &&
6642 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6643 { (case "(($ac_try" in
6644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6645 *) ac_try_echo=$ac_try;;
6647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6648 (eval "$ac_try") 2>&5
6650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6651 (exit $ac_status); }; } &&
6652 { ac_try='test -s conftest.$ac_objext'
6653 { (case "(($ac_try" in
6654 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6655 *) ac_try_echo
=$ac_try;;
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_try") 2>&5
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6664 echo "$as_me: failed program was:" >&5
6665 sed 's/^/| /' conftest.
$ac_ext >&5
6667 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6669 cat >conftest.
$ac_ext <<_ACEOF
6672 cat confdefs.h
>>conftest.
$ac_ext
6673 cat >>conftest.
$ac_ext <<_ACEOF
6674 /* end confdefs.h. */
6684 rm -f conftest.
$ac_objext
6685 if { (ac_try
="$ac_compile"
6687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6688 *) ac_try_echo=$ac_try;;
6690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6691 (eval "$ac_compile") 2>conftest.er1
6693 grep -v '^ *+' conftest.er1 >conftest.err
6695 cat conftest.err >&5
6696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6697 (exit $ac_status); } &&
6698 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6699 { (case "(($ac_try" in
6700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6701 *) ac_try_echo
=$ac_try;;
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_try") 2>&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); }; } &&
6708 { ac_try
='test -s conftest.$ac_objext'
6709 { (case "(($ac_try" in
6710 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6711 *) ac_try_echo=$ac_try;;
6713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6714 (eval "$ac_try") 2>&5
6716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6717 (exit $ac_status); }; }; then
6718 ac_cv_prog_cxx_g=yes
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6733 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6735 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6736 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6737 if test "$ac_test_CXXFLAGS" = set; then
6738 CXXFLAGS=$ac_save_CXXFLAGS
6739 elif test $ac_cv_prog_cxx_g = yes; then
6740 if test "$GXX" = yes; then
6746 if test "$GXX" = yes; then
6753 ac_cpp='$CPP $CPPFLAGS'
6754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6759 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6760 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6761 if test "${lt_cv_path_NM+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 if test -n "$NM"; then
6765 # Let the user override the test.
6768 lt_nm_to_check="${ac_tool_prefix}nm"
6769 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6770 lt_nm_to_check="$lt_nm_to_check nm"
6772 for lt_tmp_nm in $lt_nm_to_check; do
6773 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6774 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6776 test -z "$ac_dir" && ac_dir=.
6777 tmp_nm="$ac_dir/$lt_tmp_nm"
6778 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6779 # Check to see if the nm accepts a BSD-compat flag.
6780 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6781 # nm: unknown option "B" ignored
6782 # Tru64's nm complains that
/dev
/null is an invalid object
file
6783 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6784 */dev
/null
* |
*'Invalid file or object type'*)
6785 lt_cv_path_NM
="$tmp_nm -B"
6789 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6791 lt_cv_path_NM
="$tmp_nm -p"
6795 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6796 continue # so that we can try to find one that supports BSD flags
6805 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6808 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6809 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6814 { echo "$as_me:$LINENO: checking for GNU make" >&5
6815 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6816 if test "${llvm_cv_gnu_make_command+set}" = set; then
6817 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 llvm_cv_gnu_make_command
=''
6820 for a
in "$MAKE" make gmake gnumake
; do
6821 if test -z "$a" ; then continue ; fi ;
6822 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6824 llvm_cv_gnu_make_command
=$a ;
6829 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6830 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6831 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6835 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6836 echo "${ECHO_T}\"Not found\"" >&6; };
6840 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6841 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6843 if test "$LN_S" = "ln -s"; then
6844 { echo "$as_me:$LINENO: result: yes" >&5
6845 echo "${ECHO_T}yes" >&6; }
6847 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6848 echo "${ECHO_T}no, using $LN_S" >&6; }
6851 # Extract the first word of "cmp", so it can be a program name with args.
6852 set dummy
cmp; ac_word
=$2
6853 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6854 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6855 if test "${ac_cv_path_CMP+set}" = set; then
6856 echo $ECHO_N "(cached) $ECHO_C" >&6
6860 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6863 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6867 test -z "$as_dir" && as_dir
=.
6868 for ac_exec_ext
in '' $ac_executable_extensions; do
6869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6870 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6878 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6883 if test -n "$CMP"; then
6884 { echo "$as_me:$LINENO: result: $CMP" >&5
6885 echo "${ECHO_T}$CMP" >&6; }
6887 { echo "$as_me:$LINENO: result: no" >&5
6888 echo "${ECHO_T}no" >&6; }
6892 # Extract the first word of "cp", so it can be a program name with args.
6893 set dummy
cp; ac_word
=$2
6894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6896 if test "${ac_cv_path_CP+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6901 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6908 test -z "$as_dir" && as_dir
=.
6909 for ac_exec_ext
in '' $ac_executable_extensions; do
6910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6911 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6919 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6924 if test -n "$CP"; then
6925 { echo "$as_me:$LINENO: result: $CP" >&5
6926 echo "${ECHO_T}$CP" >&6; }
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6933 # Extract the first word of "date", so it can be a program name with args.
6934 set dummy
date; ac_word
=$2
6935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6937 if test "${ac_cv_path_DATE+set}" = set; then
6938 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6945 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6949 test -z "$as_dir" && as_dir
=.
6950 for ac_exec_ext
in '' $ac_executable_extensions; do
6951 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6952 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6953 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6960 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6964 DATE
=$ac_cv_path_DATE
6965 if test -n "$DATE"; then
6966 { echo "$as_me:$LINENO: result: $DATE" >&5
6967 echo "${ECHO_T}$DATE" >&6; }
6969 { echo "$as_me:$LINENO: result: no" >&5
6970 echo "${ECHO_T}no" >&6; }
6974 # Extract the first word of "find", so it can be a program name with args.
6975 set dummy
find; ac_word
=$2
6976 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6977 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6978 if test "${ac_cv_path_FIND+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6990 test -z "$as_dir" && as_dir
=.
6991 for ac_exec_ext
in '' $ac_executable_extensions; do
6992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6993 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
7005 FIND
=$ac_cv_path_FIND
7006 if test -n "$FIND"; then
7007 { echo "$as_me:$LINENO: result: $FIND" >&5
7008 echo "${ECHO_T}$FIND" >&6; }
7010 { echo "$as_me:$LINENO: result: no" >&5
7011 echo "${ECHO_T}no" >&6; }
7015 # Extract the first word of "grep", so it can be a program name with args.
7016 set dummy
grep; ac_word
=$2
7017 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7019 if test "${ac_cv_path_GREP+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
7027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7031 test -z "$as_dir" && as_dir
=.
7032 for ac_exec_ext
in '' $ac_executable_extensions; do
7033 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7034 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
7035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7042 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
7046 GREP
=$ac_cv_path_GREP
7047 if test -n "$GREP"; then
7048 { echo "$as_me:$LINENO: result: $GREP" >&5
7049 echo "${ECHO_T}$GREP" >&6; }
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7056 # Extract the first word of "mkdir", so it can be a program name with args.
7057 set dummy mkdir
; ac_word
=$2
7058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7060 if test "${ac_cv_path_MKDIR+set}" = set; then
7061 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
7068 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7072 test -z "$as_dir" && as_dir
=.
7073 for ac_exec_ext
in '' $ac_executable_extensions; do
7074 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7075 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
7076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7083 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
7087 MKDIR
=$ac_cv_path_MKDIR
7088 if test -n "$MKDIR"; then
7089 { echo "$as_me:$LINENO: result: $MKDIR" >&5
7090 echo "${ECHO_T}$MKDIR" >&6; }
7092 { echo "$as_me:$LINENO: result: no" >&5
7093 echo "${ECHO_T}no" >&6; }
7097 # Extract the first word of "mv", so it can be a program name with args.
7098 set dummy
mv; ac_word
=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_path_MV+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7106 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
7109 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7113 test -z "$as_dir" && as_dir
=.
7114 for ac_exec_ext
in '' $ac_executable_extensions; do
7115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7116 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
7117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
7129 if test -n "$MV"; then
7130 { echo "$as_me:$LINENO: result: $MV" >&5
7131 echo "${ECHO_T}$MV" >&6; }
7133 { echo "$as_me:$LINENO: result: no" >&5
7134 echo "${ECHO_T}no" >&6; }
7138 if test -n "$ac_tool_prefix"; then
7139 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7140 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7143 if test "${ac_cv_prog_RANLIB+set}" = set; then
7144 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 if test -n "$RANLIB"; then
7147 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7153 test -z "$as_dir" && as_dir
=.
7154 for ac_exec_ext
in '' $ac_executable_extensions; do
7155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7156 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7166 RANLIB
=$ac_cv_prog_RANLIB
7167 if test -n "$RANLIB"; then
7168 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7169 echo "${ECHO_T}$RANLIB" >&6; }
7171 { echo "$as_me:$LINENO: result: no" >&5
7172 echo "${ECHO_T}no" >&6; }
7177 if test -z "$ac_cv_prog_RANLIB"; then
7178 ac_ct_RANLIB
=$RANLIB
7179 # Extract the first word of "ranlib", so it can be a program name with args.
7180 set dummy ranlib
; ac_word
=$2
7181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7183 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 if test -n "$ac_ct_RANLIB"; then
7187 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7189 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7193 test -z "$as_dir" && as_dir
=.
7194 for ac_exec_ext
in '' $ac_executable_extensions; do
7195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7196 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7206 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7207 if test -n "$ac_ct_RANLIB"; then
7208 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7209 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7211 { echo "$as_me:$LINENO: result: no" >&5
7212 echo "${ECHO_T}no" >&6; }
7215 if test "x$ac_ct_RANLIB" = x
; then
7218 case $cross_compiling:$ac_tool_warned in
7220 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7221 whose name does not start with the host triplet. If you think this
7222 configuration is useful to you, please write to autoconf@gnu.org." >&5
7223 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7224 whose name does not start with the host triplet. If you think this
7225 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7226 ac_tool_warned
=yes ;;
7228 RANLIB
=$ac_ct_RANLIB
7231 RANLIB
="$ac_cv_prog_RANLIB"
7234 if test -n "$ac_tool_prefix"; then
7235 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7236 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7237 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7239 if test "${ac_cv_prog_AR+set}" = set; then
7240 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 if test -n "$AR"; then
7243 ac_cv_prog_AR
="$AR" # Let the user override the test.
7245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7249 test -z "$as_dir" && as_dir
=.
7250 for ac_exec_ext
in '' $ac_executable_extensions; do
7251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7252 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 if test -n "$AR"; then
7264 { echo "$as_me:$LINENO: result: $AR" >&5
7265 echo "${ECHO_T}$AR" >&6; }
7267 { echo "$as_me:$LINENO: result: no" >&5
7268 echo "${ECHO_T}no" >&6; }
7273 if test -z "$ac_cv_prog_AR"; then
7275 # Extract the first word of "ar", so it can be a program name with args.
7276 set dummy
ar; ac_word
=$2
7277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7279 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 if test -n "$ac_ct_AR"; then
7283 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7289 test -z "$as_dir" && as_dir
=.
7290 for ac_exec_ext
in '' $ac_executable_extensions; do
7291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7292 ac_cv_prog_ac_ct_AR
="ar"
7293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7303 if test -n "$ac_ct_AR"; then
7304 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7305 echo "${ECHO_T}$ac_ct_AR" >&6; }
7307 { echo "$as_me:$LINENO: result: no" >&5
7308 echo "${ECHO_T}no" >&6; }
7311 if test "x$ac_ct_AR" = x
; then
7314 case $cross_compiling:$ac_tool_warned in
7316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7317 whose name does not start with the host triplet. If you think this
7318 configuration is useful to you, please write to autoconf@gnu.org." >&5
7319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7320 whose name does not start with the host triplet. If you think this
7321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7322 ac_tool_warned
=yes ;;
7330 # Extract the first word of "rm", so it can be a program name with args.
7331 set dummy
rm; ac_word
=$2
7332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7334 if test "${ac_cv_path_RM+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7339 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7346 test -z "$as_dir" && as_dir
=.
7347 for ac_exec_ext
in '' $ac_executable_extensions; do
7348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7349 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7357 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7362 if test -n "$RM"; then
7363 { echo "$as_me:$LINENO: result: $RM" >&5
7364 echo "${ECHO_T}$RM" >&6; }
7366 { echo "$as_me:$LINENO: result: no" >&5
7367 echo "${ECHO_T}no" >&6; }
7371 # Extract the first word of "sed", so it can be a program name with args.
7372 set dummy
sed; ac_word
=$2
7373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7375 if test "${ac_cv_path_SED+set}" = set; then
7376 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7387 test -z "$as_dir" && as_dir
=.
7388 for ac_exec_ext
in '' $ac_executable_extensions; do
7389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7390 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7398 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7403 if test -n "$SED"; then
7404 { echo "$as_me:$LINENO: result: $SED" >&5
7405 echo "${ECHO_T}$SED" >&6; }
7407 { echo "$as_me:$LINENO: result: no" >&5
7408 echo "${ECHO_T}no" >&6; }
7412 # Extract the first word of "tar", so it can be a program name with args.
7413 set dummy
tar; ac_word
=$2
7414 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7416 if test "${ac_cv_path_TAR+set}" = set; then
7417 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7424 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7428 test -z "$as_dir" && as_dir
=.
7429 for ac_exec_ext
in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7432 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7439 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7444 if test -n "$TAR"; then
7445 { echo "$as_me:$LINENO: result: $TAR" >&5
7446 echo "${ECHO_T}$TAR" >&6; }
7448 { echo "$as_me:$LINENO: result: no" >&5
7449 echo "${ECHO_T}no" >&6; }
7453 # Extract the first word of "pwd", so it can be a program name with args.
7454 set dummy
pwd; ac_word
=$2
7455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7457 if test "${ac_cv_path_BINPWD+set}" = set; then
7458 echo $ECHO_N "(cached) $ECHO_C" >&6
7462 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7465 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7469 test -z "$as_dir" && as_dir
=.
7470 for ac_exec_ext
in '' $ac_executable_extensions; do
7471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7472 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7480 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7484 BINPWD
=$ac_cv_path_BINPWD
7485 if test -n "$BINPWD"; then
7486 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7487 echo "${ECHO_T}$BINPWD" >&6; }
7489 { echo "$as_me:$LINENO: result: no" >&5
7490 echo "${ECHO_T}no" >&6; }
7495 # Extract the first word of "Graphviz", so it can be a program name with args.
7496 set dummy Graphviz
; ac_word
=$2
7497 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7499 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7500 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7507 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7511 test -z "$as_dir" && as_dir
=.
7512 for ac_exec_ext
in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7522 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7526 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7527 if test -n "$GRAPHVIZ"; then
7528 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7529 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7531 { echo "$as_me:$LINENO: result: no" >&5
7532 echo "${ECHO_T}no" >&6; }
7536 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7538 cat >>confdefs.h
<<\_ACEOF
7539 #define HAVE_GRAPHVIZ 1
7542 if test "$llvm_cv_os_type" = "MingW" ; then
7543 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7546 cat >>confdefs.h
<<_ACEOF
7547 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7551 # Extract the first word of "dot", so it can be a program name with args.
7552 set dummy dot
; ac_word
=$2
7553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7555 if test "${ac_cv_path_DOT+set}" = set; then
7556 echo $ECHO_N "(cached) $ECHO_C" >&6
7560 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7567 test -z "$as_dir" && as_dir
=.
7568 for ac_exec_ext
in '' $ac_executable_extensions; do
7569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7570 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7578 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7583 if test -n "$DOT"; then
7584 { echo "$as_me:$LINENO: result: $DOT" >&5
7585 echo "${ECHO_T}$DOT" >&6; }
7587 { echo "$as_me:$LINENO: result: no" >&5
7588 echo "${ECHO_T}no" >&6; }
7592 if test "$DOT" != "echo dot" ; then
7594 cat >>confdefs.h
<<\_ACEOF
7598 if test "$llvm_cv_os_type" = "MingW" ; then
7599 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7602 cat >>confdefs.h
<<_ACEOF
7603 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7607 # Extract the first word of "fdp", so it can be a program name with args.
7608 set dummy fdp
; ac_word
=$2
7609 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7610 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7611 if test "${ac_cv_path_FDP+set}" = set; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7616 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7619 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7623 test -z "$as_dir" && as_dir
=.
7624 for ac_exec_ext
in '' $ac_executable_extensions; do
7625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7626 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7627 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7634 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7639 if test -n "$FDP"; then
7640 { echo "$as_me:$LINENO: result: $FDP" >&5
7641 echo "${ECHO_T}$FDP" >&6; }
7643 { echo "$as_me:$LINENO: result: no" >&5
7644 echo "${ECHO_T}no" >&6; }
7648 if test "$FDP" != "echo fdp" ; then
7650 cat >>confdefs.h
<<\_ACEOF
7654 if test "$llvm_cv_os_type" = "MingW" ; then
7655 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7658 cat >>confdefs.h
<<_ACEOF
7659 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7663 # Extract the first word of "neato", so it can be a program name with args.
7664 set dummy neato
; ac_word
=$2
7665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7667 if test "${ac_cv_path_NEATO+set}" = set; then
7668 echo $ECHO_N "(cached) $ECHO_C" >&6
7672 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7679 test -z "$as_dir" && as_dir
=.
7680 for ac_exec_ext
in '' $ac_executable_extensions; do
7681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7682 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7694 NEATO
=$ac_cv_path_NEATO
7695 if test -n "$NEATO"; then
7696 { echo "$as_me:$LINENO: result: $NEATO" >&5
7697 echo "${ECHO_T}$NEATO" >&6; }
7699 { echo "$as_me:$LINENO: result: no" >&5
7700 echo "${ECHO_T}no" >&6; }
7704 if test "$NEATO" != "echo neato" ; then
7706 cat >>confdefs.h
<<\_ACEOF
7707 #define HAVE_NEATO 1
7710 if test "$llvm_cv_os_type" = "MingW" ; then
7711 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7714 cat >>confdefs.h
<<_ACEOF
7715 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7719 # Extract the first word of "twopi", so it can be a program name with args.
7720 set dummy twopi
; ac_word
=$2
7721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7723 if test "${ac_cv_path_TWOPI+set}" = set; then
7724 echo $ECHO_N "(cached) $ECHO_C" >&6
7728 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7731 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7735 test -z "$as_dir" && as_dir
=.
7736 for ac_exec_ext
in '' $ac_executable_extensions; do
7737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7738 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7746 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7750 TWOPI
=$ac_cv_path_TWOPI
7751 if test -n "$TWOPI"; then
7752 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7753 echo "${ECHO_T}$TWOPI" >&6; }
7755 { echo "$as_me:$LINENO: result: no" >&5
7756 echo "${ECHO_T}no" >&6; }
7760 if test "$TWOPI" != "echo twopi" ; then
7762 cat >>confdefs.h
<<\_ACEOF
7763 #define HAVE_TWOPI 1
7766 if test "$llvm_cv_os_type" = "MingW" ; then
7767 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7770 cat >>confdefs.h
<<_ACEOF
7771 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7775 # Extract the first word of "circo", so it can be a program name with args.
7776 set dummy circo
; ac_word
=$2
7777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7779 if test "${ac_cv_path_CIRCO+set}" = set; then
7780 echo $ECHO_N "(cached) $ECHO_C" >&6
7784 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7787 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7791 test -z "$as_dir" && as_dir
=.
7792 for ac_exec_ext
in '' $ac_executable_extensions; do
7793 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7794 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7806 CIRCO
=$ac_cv_path_CIRCO
7807 if test -n "$CIRCO"; then
7808 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7809 echo "${ECHO_T}$CIRCO" >&6; }
7811 { echo "$as_me:$LINENO: result: no" >&5
7812 echo "${ECHO_T}no" >&6; }
7816 if test "$CIRCO" != "echo circo" ; then
7818 cat >>confdefs.h
<<\_ACEOF
7819 #define HAVE_CIRCO 1
7822 if test "$llvm_cv_os_type" = "MingW" ; then
7823 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7826 cat >>confdefs.h
<<_ACEOF
7827 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7831 for ac_prog
in gv gsview32
7833 # Extract the first word of "$ac_prog", so it can be a program name with args.
7834 set dummy
$ac_prog; ac_word
=$2
7835 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7836 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7837 if test "${ac_cv_path_GV+set}" = set; then
7838 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7845 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7849 test -z "$as_dir" && as_dir
=.
7850 for ac_exec_ext
in '' $ac_executable_extensions; do
7851 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7852 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7853 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7864 if test -n "$GV"; then
7865 { echo "$as_me:$LINENO: result: $GV" >&5
7866 echo "${ECHO_T}$GV" >&6; }
7868 { echo "$as_me:$LINENO: result: no" >&5
7869 echo "${ECHO_T}no" >&6; }
7873 test -n "$GV" && break
7875 test -n "$GV" || GV
="echo gv"
7877 if test "$GV" != "echo gv" ; then
7879 cat >>confdefs.h
<<\_ACEOF
7883 if test "$llvm_cv_os_type" = "MingW" ; then
7884 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7887 cat >>confdefs.h
<<_ACEOF
7888 #define LLVM_PATH_GV "$GV${EXEEXT}"
7892 # Extract the first word of "dotty", so it can be a program name with args.
7893 set dummy dotty
; ac_word
=$2
7894 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7895 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7896 if test "${ac_cv_path_DOTTY+set}" = set; then
7897 echo $ECHO_N "(cached) $ECHO_C" >&6
7901 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7904 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7908 test -z "$as_dir" && as_dir
=.
7909 for ac_exec_ext
in '' $ac_executable_extensions; do
7910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7911 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7912 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7919 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7923 DOTTY
=$ac_cv_path_DOTTY
7924 if test -n "$DOTTY"; then
7925 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7926 echo "${ECHO_T}$DOTTY" >&6; }
7928 { echo "$as_me:$LINENO: result: no" >&5
7929 echo "${ECHO_T}no" >&6; }
7933 if test "$DOTTY" != "echo dotty" ; then
7935 cat >>confdefs.h
<<\_ACEOF
7936 #define HAVE_DOTTY 1
7939 if test "$llvm_cv_os_type" = "MingW" ; then
7940 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7943 cat >>confdefs.h
<<_ACEOF
7944 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7948 # Extract the first word of "xdot.py", so it can be a program name with args.
7949 set dummy xdot.py
; ac_word
=$2
7950 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7951 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7952 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7957 ac_cv_path_XDOT_PY
="$XDOT_PY" # Let the user override the test with a path.
7960 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7964 test -z "$as_dir" && as_dir
=.
7965 for ac_exec_ext
in '' $ac_executable_extensions; do
7966 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7967 ac_cv_path_XDOT_PY
="$as_dir/$ac_word$ac_exec_ext"
7968 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7975 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY
="echo xdot.py"
7979 XDOT_PY
=$ac_cv_path_XDOT_PY
7980 if test -n "$XDOT_PY"; then
7981 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7982 echo "${ECHO_T}$XDOT_PY" >&6; }
7984 { echo "$as_me:$LINENO: result: no" >&5
7985 echo "${ECHO_T}no" >&6; }
7989 if test "$XDOT_PY" != "echo xdot.py" ; then
7991 cat >>confdefs.h
<<\_ACEOF
7992 #define HAVE_XDOT_PY 1
7995 if test "$llvm_cv_os_type" = "MingW" ; then
7996 XDOT_PY
=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7999 cat >>confdefs.h
<<_ACEOF
8000 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
8006 # Extract the first word of "perl", so it can be a program name with args.
8007 set dummy perl
; ac_word
=$2
8008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8010 if test "${ac_cv_path_PERL+set}" = set; then
8011 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
8018 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8022 test -z "$as_dir" && as_dir
=.
8023 for ac_exec_ext
in '' $ac_executable_extensions; do
8024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8025 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
8026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8033 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
8037 PERL
=$ac_cv_path_PERL
8038 if test -n "$PERL"; then
8039 { echo "$as_me:$LINENO: result: $PERL" >&5
8040 echo "${ECHO_T}$PERL" >&6; }
8042 { echo "$as_me:$LINENO: result: no" >&5
8043 echo "${ECHO_T}no" >&6; }
8047 if test "$PERL" != "none"; then
8048 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
8049 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
8050 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
8051 { echo "$as_me:$LINENO: result: yes" >&5
8052 echo "${ECHO_T}yes" >&6; }
8055 { echo "$as_me:$LINENO: result: not found" >&5
8056 echo "${ECHO_T}not found" >&6; }
8061 if test x
"$PERL" = xnone
; then
8064 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
8065 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
8066 { (exit 1); exit 1; }; }
8072 # Find a good install program. We prefer a C program (faster),
8073 # so one script is as good as another. But avoid the broken or
8074 # incompatible versions:
8075 # SysV /etc/install, /usr/sbin/install
8076 # SunOS /usr/etc/install
8077 # IRIX /sbin/install
8079 # AmigaOS /C/install, which installs bootblocks on floppy discs
8080 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
8081 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
8082 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
8083 # OS/2's system install, which has a completely different semantic
8084 # ./install, which can be erroneously created by make from ./install.sh.
8085 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
8086 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
8087 if test -z "$INSTALL"; then
8088 if test "${ac_cv_path_install+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8095 test -z "$as_dir" && as_dir
=.
8096 # Account for people who put trailing slashes in PATH elements.
8098 .
/ | .
// |
/cC
/* | \
8099 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
8100 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
8103 # OSF1 and SCO ODT 3.0 have their own names for install.
8104 # Don't use installbsd from OSF since it installs stuff as root
8106 for ac_prog
in ginstall scoinst
install; do
8107 for ac_exec_ext
in '' $ac_executable_extensions; do
8108 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8109 if test $ac_prog = install &&
8110 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8111 # AIX install. It has an incompatible calling convention.
8113 elif test $ac_prog = install &&
8114 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8115 # program-specific install script used by HP pwplus--don't use.
8118 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
8131 if test "${ac_cv_path_install+set}" = set; then
8132 INSTALL
=$ac_cv_path_install
8134 # As a last resort, use the slow shell script. Don't cache a
8135 # value for INSTALL within a source directory, because that will
8136 # break other packages using the cache if that directory is
8137 # removed, or if the value is a relative name.
8138 INSTALL
=$ac_install_sh
8141 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8142 echo "${ECHO_T}$INSTALL" >&6; }
8144 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8145 # It thinks the first close brace ends the variable substitution.
8146 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8148 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8150 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8153 [\\/$
]* | ?
:[\\/]* ) ;;
8154 *) INSTALL
="\\\$(TOPSRCDIR)/$INSTALL" ;;
8157 # Extract the first word of "bzip2", so it can be a program name with args.
8158 set dummy
bzip2; ac_word
=$2
8159 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8160 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8161 if test "${ac_cv_path_BZIP2+set}" = set; then
8162 echo $ECHO_N "(cached) $ECHO_C" >&6
8166 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
8169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8173 test -z "$as_dir" && as_dir
=.
8174 for ac_exec_ext
in '' $ac_executable_extensions; do
8175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8176 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
8177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 BZIP2
=$ac_cv_path_BZIP2
8188 if test -n "$BZIP2"; then
8189 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8190 echo "${ECHO_T}$BZIP2" >&6; }
8192 { echo "$as_me:$LINENO: result: no" >&5
8193 echo "${ECHO_T}no" >&6; }
8197 # Extract the first word of "cat", so it can be a program name with args.
8198 set dummy
cat; ac_word
=$2
8199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8201 if test "${ac_cv_path_CAT+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 ac_cv_path_CAT
="$CAT" # Let the user override the test with a path.
8209 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8213 test -z "$as_dir" && as_dir
=.
8214 for ac_exec_ext
in '' $ac_executable_extensions; do
8215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8216 ac_cv_path_CAT
="$as_dir/$ac_word$ac_exec_ext"
8217 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8228 if test -n "$CAT"; then
8229 { echo "$as_me:$LINENO: result: $CAT" >&5
8230 echo "${ECHO_T}$CAT" >&6; }
8232 { echo "$as_me:$LINENO: result: no" >&5
8233 echo "${ECHO_T}no" >&6; }
8237 # Extract the first word of "doxygen", so it can be a program name with args.
8238 set dummy doxygen
; ac_word
=$2
8239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8241 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8242 echo $ECHO_N "(cached) $ECHO_C" >&6
8246 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
8249 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8253 test -z "$as_dir" && as_dir
=.
8254 for ac_exec_ext
in '' $ac_executable_extensions; do
8255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8256 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
8257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8267 DOXYGEN
=$ac_cv_path_DOXYGEN
8268 if test -n "$DOXYGEN"; then
8269 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8270 echo "${ECHO_T}$DOXYGEN" >&6; }
8272 { echo "$as_me:$LINENO: result: no" >&5
8273 echo "${ECHO_T}no" >&6; }
8277 # Extract the first word of "groff", so it can be a program name with args.
8278 set dummy
groff; ac_word
=$2
8279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8281 if test "${ac_cv_path_GROFF+set}" = set; then
8282 echo $ECHO_N "(cached) $ECHO_C" >&6
8286 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
8289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8293 test -z "$as_dir" && as_dir
=.
8294 for ac_exec_ext
in '' $ac_executable_extensions; do
8295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8296 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
8297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 GROFF
=$ac_cv_path_GROFF
8308 if test -n "$GROFF"; then
8309 { echo "$as_me:$LINENO: result: $GROFF" >&5
8310 echo "${ECHO_T}$GROFF" >&6; }
8312 { echo "$as_me:$LINENO: result: no" >&5
8313 echo "${ECHO_T}no" >&6; }
8317 # Extract the first word of "gzip", so it can be a program name with args.
8318 set dummy
gzip; ac_word
=$2
8319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8321 if test "${ac_cv_path_GZIPBIN+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8326 ac_cv_path_GZIPBIN
="$GZIPBIN" # Let the user override the test with a path.
8329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8333 test -z "$as_dir" && as_dir
=.
8334 for ac_exec_ext
in '' $ac_executable_extensions; do
8335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8336 ac_cv_path_GZIPBIN
="$as_dir/$ac_word$ac_exec_ext"
8337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8347 GZIPBIN
=$ac_cv_path_GZIPBIN
8348 if test -n "$GZIPBIN"; then
8349 { echo "$as_me:$LINENO: result: $GZIPBIN" >&5
8350 echo "${ECHO_T}$GZIPBIN" >&6; }
8352 { echo "$as_me:$LINENO: result: no" >&5
8353 echo "${ECHO_T}no" >&6; }
8357 # Extract the first word of "pod2html", so it can be a program name with args.
8358 set dummy pod2html
; ac_word
=$2
8359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8361 if test "${ac_cv_path_POD2HTML+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8366 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
8369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8373 test -z "$as_dir" && as_dir
=.
8374 for ac_exec_ext
in '' $ac_executable_extensions; do
8375 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8376 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
8377 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8387 POD2HTML
=$ac_cv_path_POD2HTML
8388 if test -n "$POD2HTML"; then
8389 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8390 echo "${ECHO_T}$POD2HTML" >&6; }
8392 { echo "$as_me:$LINENO: result: no" >&5
8393 echo "${ECHO_T}no" >&6; }
8397 # Extract the first word of "pod2man", so it can be a program name with args.
8398 set dummy pod2man
; ac_word
=$2
8399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8401 if test "${ac_cv_path_POD2MAN+set}" = set; then
8402 echo $ECHO_N "(cached) $ECHO_C" >&6
8406 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8409 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8413 test -z "$as_dir" && as_dir
=.
8414 for ac_exec_ext
in '' $ac_executable_extensions; do
8415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8416 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8427 POD2MAN
=$ac_cv_path_POD2MAN
8428 if test -n "$POD2MAN"; then
8429 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8430 echo "${ECHO_T}$POD2MAN" >&6; }
8432 { echo "$as_me:$LINENO: result: no" >&5
8433 echo "${ECHO_T}no" >&6; }
8437 # Extract the first word of "pdfroff", so it can be a program name with args.
8438 set dummy pdfroff
; ac_word
=$2
8439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8441 if test "${ac_cv_path_PDFROFF+set}" = set; then
8442 echo $ECHO_N "(cached) $ECHO_C" >&6
8446 ac_cv_path_PDFROFF
="$PDFROFF" # Let the user override the test with a path.
8449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8453 test -z "$as_dir" && as_dir
=.
8454 for ac_exec_ext
in '' $ac_executable_extensions; do
8455 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8456 ac_cv_path_PDFROFF
="$as_dir/$ac_word$ac_exec_ext"
8457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 PDFROFF
=$ac_cv_path_PDFROFF
8468 if test -n "$PDFROFF"; then
8469 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8470 echo "${ECHO_T}$PDFROFF" >&6; }
8472 { echo "$as_me:$LINENO: result: no" >&5
8473 echo "${ECHO_T}no" >&6; }
8477 # Extract the first word of "runtest", so it can be a program name with args.
8478 set dummy runtest
; 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_RUNTEST+set}" = set; then
8482 echo $ECHO_N "(cached) $ECHO_C" >&6
8486 ac_cv_path_RUNTEST
="$RUNTEST" # 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_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8497 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8507 RUNTEST
=$ac_cv_path_RUNTEST
8508 if test -n "$RUNTEST"; then
8509 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8510 echo "${ECHO_T}$RUNTEST" >&6; }
8512 { echo "$as_me:$LINENO: result: no" >&5
8513 echo "${ECHO_T}no" >&6; }
8519 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8520 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8522 # Check whether --with-tclinclude was given.
8523 if test "${with_tclinclude+set}" = set; then
8524 withval
=$with_tclinclude; with_tclinclude
=${withval}
8529 if test "${ac_cv_path_tclsh+set}" = set; then
8530 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 if test x
"${with_tclinclude}" != x
; then
8534 if test -f ${with_tclinclude}/tclsh
; then
8535 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8536 elif test -f ${with_tclinclude}/src
/tclsh
; then
8537 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8539 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8540 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8541 { (exit 1); exit 1; }; }
8547 if test x
"${ac_cv_path_tclsh}" = x
; then
8548 { echo "$as_me:$LINENO: result: none" >&5
8549 echo "${ECHO_T}none" >&6; }
8550 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
8552 # Extract the first word of "$ac_prog", so it can be a program name with args.
8553 set dummy
$ac_prog; ac_word
=$2
8554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8556 if test "${ac_cv_path_TCLSH+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8568 test -z "$as_dir" && as_dir
=.
8569 for ac_exec_ext
in '' $ac_executable_extensions; do
8570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8571 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8582 TCLSH
=$ac_cv_path_TCLSH
8583 if test -n "$TCLSH"; then
8584 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8585 echo "${ECHO_T}$TCLSH" >&6; }
8587 { echo "$as_me:$LINENO: result: no" >&5
8588 echo "${ECHO_T}no" >&6; }
8592 test -n "$TCLSH" && break
8595 if test x
"${TCLSH}" = x
; then
8596 ac_cv_path_tclsh
='';
8598 ac_cv_path_tclsh
="${TCLSH}";
8601 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8602 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8603 TCLSH="${ac_cv_path_tclsh}"
8607 # Extract the first word of "zip", so it can be a program name with args.
8608 set dummy zip; ac_word=$2
8609 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8610 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8611 if test "${ac_cv_path_ZIP+set}" = set; then
8612 echo $ECHO_N "(cached
) $ECHO_C" >&6
8616 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 test -z "$as_dir" && as_dir=.
8624 for ac_exec_ext in '' $ac_executable_extensions; do
8625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8626 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8627 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8638 if test -n "$ZIP"; then
8639 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8640 echo "${ECHO_T}$ZIP" >&6; }
8642 { echo "$as_me:$LINENO: result
: no
" >&5
8643 echo "${ECHO_T}no
" >&6; }
8647 for ac_prog in ocamlc
8649 # Extract the first word of "$ac_prog", so it can be a program name with args.
8650 set dummy $ac_prog; ac_word=$2
8651 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8652 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8653 if test "${ac_cv_path_OCAMLC+set}" = set; then
8654 echo $ECHO_N "(cached
) $ECHO_C" >&6
8658 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8665 test -z "$as_dir" && as_dir=.
8666 for ac_exec_ext in '' $ac_executable_extensions; do
8667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8668 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8669 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8679 OCAMLC=$ac_cv_path_OCAMLC
8680 if test -n "$OCAMLC"; then
8681 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8682 echo "${ECHO_T}$OCAMLC" >&6; }
8684 { echo "$as_me:$LINENO: result
: no
" >&5
8685 echo "${ECHO_T}no
" >&6; }
8689 test -n "$OCAMLC" && break
8692 for ac_prog in ocamlopt
8694 # Extract the first word of "$ac_prog", so it can be a program name with args.
8695 set dummy $ac_prog; ac_word=$2
8696 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8697 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8698 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8699 echo $ECHO_N "(cached
) $ECHO_C" >&6
8703 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8710 test -z "$as_dir" && as_dir=.
8711 for ac_exec_ext in '' $ac_executable_extensions; do
8712 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8713 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8714 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8724 OCAMLOPT=$ac_cv_path_OCAMLOPT
8725 if test -n "$OCAMLOPT"; then
8726 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8727 echo "${ECHO_T}$OCAMLOPT" >&6; }
8729 { echo "$as_me:$LINENO: result
: no
" >&5
8730 echo "${ECHO_T}no
" >&6; }
8734 test -n "$OCAMLOPT" && break
8737 for ac_prog in ocamldep
8739 # Extract the first word of "$ac_prog", so it can be a program name with args.
8740 set dummy $ac_prog; ac_word=$2
8741 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8742 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8743 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8744 echo $ECHO_N "(cached
) $ECHO_C" >&6
8748 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8758 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8759 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8769 OCAMLDEP=$ac_cv_path_OCAMLDEP
8770 if test -n "$OCAMLDEP"; then
8771 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8772 echo "${ECHO_T}$OCAMLDEP" >&6; }
8774 { echo "$as_me:$LINENO: result
: no
" >&5
8775 echo "${ECHO_T}no
" >&6; }
8779 test -n "$OCAMLDEP" && break
8782 for ac_prog in ocamldoc
8784 # Extract the first word of "$ac_prog", so it can be a program name with args.
8785 set dummy $ac_prog; ac_word=$2
8786 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8787 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8788 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8789 echo $ECHO_N "(cached
) $ECHO_C" >&6
8793 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8800 test -z "$as_dir" && as_dir=.
8801 for ac_exec_ext in '' $ac_executable_extensions; do
8802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8803 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8804 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8814 OCAMLDOC=$ac_cv_path_OCAMLDOC
8815 if test -n "$OCAMLDOC"; then
8816 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8817 echo "${ECHO_T}$OCAMLDOC" >&6; }
8819 { echo "$as_me:$LINENO: result
: no
" >&5
8820 echo "${ECHO_T}no
" >&6; }
8824 test -n "$OCAMLDOC" && break
8827 for ac_prog in gas as
8829 # Extract the first word of "$ac_prog", so it can be a program name with args.
8830 set dummy $ac_prog; ac_word=$2
8831 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8832 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8833 if test "${ac_cv_path_GAS+set}" = set; then
8834 echo $ECHO_N "(cached
) $ECHO_C" >&6
8838 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8848 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8849 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8860 if test -n "$GAS"; then
8861 { echo "$as_me:$LINENO: result
: $GAS" >&5
8862 echo "${ECHO_T}$GAS" >&6; }
8864 { echo "$as_me:$LINENO: result
: no
" >&5
8865 echo "${ECHO_T}no
" >&6; }
8869 test -n "$GAS" && break
8873 { echo "$as_me:$LINENO: checking
for linker version
" >&5
8874 echo $ECHO_N "checking
for linker version...
$ECHO_C" >&6; }
8875 if test "${llvm_cv_link_version+set}" = set; then
8876 echo $ECHO_N "(cached
) $ECHO_C" >&6
8879 version_string="$
(ld
-v 2>&1 |
head -1)"
8882 if (echo "$version_string" | grep -q "ld64
"); then
8883 llvm_cv_link_version=$(echo "$version_string" | sed -e "s
#.*ld64-\([^ ]*\)#\1#")
8885 llvm_cv_link_version
=$
(echo "$version_string" |
sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8889 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8890 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8892 cat >>confdefs.h
<<_ACEOF
8893 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8898 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8899 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8900 if test "${llvm_cv_link_use_r+set}" = set; then
8901 echo $ECHO_N "(cached) $ECHO_C" >&6
8904 ac_cpp
='$CPP $CPPFLAGS'
8905 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8906 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8907 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8910 CFLAGS
="$CFLAGS -Wl,-R."
8911 cat >conftest.
$ac_ext <<_ACEOF
8914 cat confdefs.h
>>conftest.
$ac_ext
8915 cat >>conftest.
$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8926 rm -f conftest.
$ac_objext conftest
$ac_exeext
8927 if { (ac_try
="$ac_link"
8929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_link") 2>conftest.er1
8935 grep -v '^ *+' conftest.er1 >conftest.err
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } &&
8940 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8941 { (case "(($ac_try" in
8942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8943 *) ac_try_echo
=$ac_try;;
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_try") 2>&5
8948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8949 (exit $ac_status); }; } &&
8950 { ac_try
='test -s conftest$ac_exeext'
8951 { (case "(($ac_try" in
8952 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8953 *) ac_try_echo=$ac_try;;
8955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8956 (eval "$ac_try") 2>&5
8958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8959 (exit $ac_status); }; }; then
8960 llvm_cv_link_use_r=yes
8962 echo "$as_me: failed program was:" >&5
8963 sed 's/^/| /' conftest.$ac_ext >&5
8965 llvm_cv_link_use_r=no
8968 rm -f core conftest.err conftest.$ac_objext \
8969 conftest$ac_exeext conftest.$ac_ext
8972 ac_cpp='$CPP $CPPFLAGS'
8973 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8974 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8975 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8979 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8980 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8981 if test "$llvm_cv_link_use_r" = yes ; then
8983 cat >>confdefs.h <<\_ACEOF
8984 #define HAVE_LINK_R 1
8990 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8991 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8992 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8993 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 ac_cpp='$CPP $CPPFLAGS'
8997 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8998 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8999 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9002 CFLAGS="$CFLAGS -Wl,-export-dynamic"
9003 cat >conftest.$ac_ext <<_ACEOF
9006 cat confdefs.h >>conftest.$ac_ext
9007 cat >>conftest.$ac_ext <<_ACEOF
9008 /* end confdefs.h. */
9018 rm -f conftest.$ac_objext conftest$ac_exeext
9019 if { (ac_try="$ac_link"
9021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9022 *) ac_try_echo
=$ac_try;;
9024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9025 (eval "$ac_link") 2>conftest.er1
9027 grep -v '^ *+' conftest.er1
>conftest.err
9029 cat conftest.err
>&5
9030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9031 (exit $ac_status); } &&
9032 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9033 { (case "(($ac_try" in
9034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9035 *) ac_try_echo=$ac_try;;
9037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9038 (eval "$ac_try") 2>&5
9040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9041 (exit $ac_status); }; } &&
9042 { ac_try='test -s conftest$ac_exeext'
9043 { (case "(($ac_try" in
9044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9045 *) ac_try_echo
=$ac_try;;
9047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9048 (eval "$ac_try") 2>&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); }; }; then
9052 llvm_cv_link_use_export_dynamic
=yes
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.
$ac_ext >&5
9057 llvm_cv_link_use_export_dynamic
=no
9060 rm -f core conftest.err conftest.
$ac_objext \
9061 conftest
$ac_exeext conftest.
$ac_ext
9064 ac_cpp
='$CPP $CPPFLAGS'
9065 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9066 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9067 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9071 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
9072 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
9073 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
9075 cat >>confdefs.h
<<\_ACEOF
9076 #define HAVE_LINK_EXPORT_DYNAMIC 1
9082 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
9083 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
9084 if test "${llvm_cv_link_use_version_script+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 ac_cpp
='$CPP $CPPFLAGS'
9089 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9090 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9091 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9095 # The following code is from the autoconf manual,
9096 # "11.13: Limitations of Usual Tools".
9097 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9098 # Use mktemp if possible; otherwise fall back on mkdir,
9099 # with $RANDOM to make collisions less likely.
9103 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9105 test -n "$tmp" && test -d "$tmp"
9107 tmp
=$TMPDIR/foo$$
-$RANDOM
9108 (umask 077 && mkdir
"$tmp")
9111 echo "{" > "$tmp/export.map"
9112 echo " global: main;" >> "$tmp/export.map"
9113 echo " local: *;" >> "$tmp/export.map"
9114 echo "};" >> "$tmp/export.map"
9116 CFLAGS
="$CFLAGS -Wl,--version-script=$tmp/export.map"
9117 cat >conftest.
$ac_ext <<_ACEOF
9120 cat confdefs.h
>>conftest.
$ac_ext
9121 cat >>conftest.
$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9132 rm -f conftest.
$ac_objext conftest
$ac_exeext
9133 if { (ac_try
="$ac_link"
9135 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9136 *) ac_try_echo=$ac_try;;
9138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9139 (eval "$ac_link") 2>conftest.er1
9141 grep -v '^ *+' conftest.er1 >conftest.err
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9147 { (case "(($ac_try" in
9148 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9149 *) ac_try_echo
=$ac_try;;
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_try") 2>&5
9154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9155 (exit $ac_status); }; } &&
9156 { ac_try
='test -s conftest$ac_exeext'
9157 { (case "(($ac_try" in
9158 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162 (eval "$ac_try") 2>&5
9164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9165 (exit $ac_status); }; }; then
9166 llvm_cv_link_use_version_script=yes
9168 echo "$as_me: failed program was:" >&5
9169 sed 's/^/| /' conftest.$ac_ext >&5
9171 llvm_cv_link_use_version_script=no
9174 rm -f core conftest.err conftest.$ac_objext \
9175 conftest$ac_exeext conftest.$ac_ext
9176 rm "$tmp/export.map"
9180 ac_cpp='$CPP $CPPFLAGS'
9181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9187 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9188 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9189 if test "$llvm_cv_link_use_version_script" = yes ; then
9190 HAVE_LINK_VERSION_SCRIPT=1
9197 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9198 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9199 if test "${ac_cv_c_const+set}" = set; then
9200 echo $ECHO_N "(cached) $ECHO_C" >&6
9202 cat >conftest.$ac_ext <<_ACEOF
9205 cat confdefs.h >>conftest.$ac_ext
9206 cat >>conftest.$ac_ext <<_ACEOF
9207 /* end confdefs.h. */
9212 /* FIXME: Include the comments suggested by Paul. */
9214 /* Ultrix mips cc rejects this. */
9215 typedef int charset[2];
9217 /* SunOS 4.1.1 cc rejects this. */
9218 char const *const *ccp;
9220 /* NEC SVR4.0.2 mips cc rejects this. */
9221 struct point {int x, y;};
9222 static struct point const zero = {0,0};
9223 /* AIX XL C 1.02.0.0 rejects this.
9224 It does not let you subtract one const X* pointer from another in
9225 an arm of an if-expression whose if-part is not a constant
9227 const char *g = "string";
9228 ccp = &g + (g ? g-g : 0);
9229 /* HPUX 7.0 cc rejects these. */
9232 ccp = (char const *const *) p;
9233 { /* SCO 3.2v4 cc rejects this. */
9235 char const *s = 0 ? (char *) 0 : (char const *) 0;
9240 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9242 const int *foo = &x[0];
9245 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9246 typedef const int *iptr;
9250 { /* AIX XL C 1.02.0.0 rejects this saying
9251 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9252 struct s { int j; const int *ap[3]; };
9253 struct s *b; b->j = 5;
9255 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9259 return !x[0] && !zero.x;
9266 rm -f conftest.$ac_objext
9267 if { (ac_try="$ac_compile"
9269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9270 *) ac_try_echo
=$ac_try;;
9272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9273 (eval "$ac_compile") 2>conftest.er1
9275 grep -v '^ *+' conftest.er1
>conftest.err
9277 cat conftest.err
>&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); } &&
9280 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9281 { (case "(($ac_try" in
9282 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_try") 2>&5
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; } &&
9290 { ac_try='test -s conftest.$ac_objext'
9291 { (case "(($ac_try" in
9292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9293 *) ac_try_echo
=$ac_try;;
9295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9296 (eval "$ac_try") 2>&5
9298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9299 (exit $ac_status); }; }; then
9302 echo "$as_me: failed program was:" >&5
9303 sed 's/^/| /' conftest.
$ac_ext >&5
9308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9310 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9311 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9312 if test $ac_cv_c_const = no
; then
9314 cat >>confdefs.h
<<\_ACEOF
9326 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9327 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9328 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9329 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9330 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9331 echo $ECHO_N "(cached) $ECHO_C" >&6
9333 cat >conftest.
$ac_ext <<_ACEOF
9336 cat confdefs.h
>>conftest.
$ac_ext
9337 cat >>conftest.
$ac_ext <<_ACEOF
9338 /* end confdefs.h. */
9339 #include <sys/types.h>
9351 rm -f conftest.
$ac_objext
9352 if { (ac_try
="$ac_compile"
9354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_compile") 2>conftest.er1
9360 grep -v '^ *+' conftest.er1 >conftest.err
9362 cat conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } &&
9365 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9366 { (case "(($ac_try" in
9367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9368 *) ac_try_echo
=$ac_try;;
9370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_try") 2>&5
9373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9374 (exit $ac_status); }; } &&
9375 { ac_try
='test -s conftest.$ac_objext'
9376 { (case "(($ac_try" in
9377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_try") 2>&5
9383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9384 (exit $ac_status); }; }; then
9385 eval "$as_ac_Header=yes"
9387 echo "$as_me: failed program was:" >&5
9388 sed 's/^/| /' conftest.$ac_ext >&5
9390 eval "$as_ac_Header=no"
9393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 ac_res=`eval echo '${'$as_ac_Header'}'`
9396 { echo "$as_me:$LINENO: result: $ac_res" >&5
9397 echo "${ECHO_T}$ac_res" >&6; }
9398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9399 cat >>confdefs.h <<_ACEOF
9400 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
9403 ac_header_dirent=$ac_hdr; break
9407 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9408 if test $ac_header_dirent = dirent.h; then
9409 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9410 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9411 if test "${ac_cv_search_opendir+set}" = set; then
9412 echo $ECHO_N "(cached) $ECHO_C" >&6
9414 ac_func_search_save_LIBS=$LIBS
9415 cat >conftest.$ac_ext <<_ACEOF
9418 cat confdefs.h >>conftest.$ac_ext
9419 cat >>conftest.$ac_ext <<_ACEOF
9420 /* end confdefs.h. */
9422 /* Override any GCC internal prototype to avoid an error.
9423 Use char because int might match the return type of a GCC
9424 builtin and then its argument prototype would still apply. */
9437 for ac_lib in '' dir; do
9438 if test -z "$ac_lib"; then
9439 ac_res="none required"
9442 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9444 rm -f conftest.$ac_objext conftest$ac_exeext
9445 if { (ac_try="$ac_link"
9447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9448 *) ac_try_echo
=$ac_try;;
9450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9451 (eval "$ac_link") 2>conftest.er1
9453 grep -v '^ *+' conftest.er1
>conftest.err
9455 cat conftest.err
>&5
9456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9457 (exit $ac_status); } &&
9458 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9459 { (case "(($ac_try" in
9460 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9461 *) ac_try_echo=$ac_try;;
9463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9464 (eval "$ac_try") 2>&5
9466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9467 (exit $ac_status); }; } &&
9468 { ac_try='test -s conftest$ac_exeext'
9469 { (case "(($ac_try" in
9470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9471 *) ac_try_echo
=$ac_try;;
9473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9474 (eval "$ac_try") 2>&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); }; }; then
9478 ac_cv_search_opendir
=$ac_res
9480 echo "$as_me: failed program was:" >&5
9481 sed 's/^/| /' conftest.
$ac_ext >&5
9486 rm -f core conftest.err conftest.
$ac_objext \
9488 if test "${ac_cv_search_opendir+set}" = set; then
9492 if test "${ac_cv_search_opendir+set}" = set; then
9495 ac_cv_search_opendir
=no
9498 LIBS
=$ac_func_search_save_LIBS
9500 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9501 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9502 ac_res
=$ac_cv_search_opendir
9503 if test "$ac_res" != no
; then
9504 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9509 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9510 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9511 if test "${ac_cv_search_opendir+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9514 ac_func_search_save_LIBS
=$LIBS
9515 cat >conftest.
$ac_ext <<_ACEOF
9518 cat confdefs.h
>>conftest.
$ac_ext
9519 cat >>conftest.
$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9522 /* Override any GCC internal prototype to avoid an error.
9523 Use char because int might match the return type of a GCC
9524 builtin and then its argument prototype would still apply. */
9537 for ac_lib
in '' x
; do
9538 if test -z "$ac_lib"; then
9539 ac_res
="none required"
9542 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9544 rm -f conftest.
$ac_objext conftest
$ac_exeext
9545 if { (ac_try
="$ac_link"
9547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_link") 2>conftest.er1
9553 grep -v '^ *+' conftest.er1 >conftest.err
9555 cat conftest.err >&5
9556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9557 (exit $ac_status); } &&
9558 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9559 { (case "(($ac_try" in
9560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9561 *) ac_try_echo
=$ac_try;;
9563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9564 (eval "$ac_try") 2>&5
9566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9567 (exit $ac_status); }; } &&
9568 { ac_try
='test -s conftest$ac_exeext'
9569 { (case "(($ac_try" in
9570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9571 *) ac_try_echo=$ac_try;;
9573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9574 (eval "$ac_try") 2>&5
9576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9577 (exit $ac_status); }; }; then
9578 ac_cv_search_opendir=$ac_res
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.$ac_ext >&5
9586 rm -f core conftest.err conftest.$ac_objext \
9588 if test "${ac_cv_search_opendir+set}" = set; then
9592 if test "${ac_cv_search_opendir+set}" = set; then
9595 ac_cv_search_opendir=no
9598 LIBS=$ac_func_search_save_LIBS
9600 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9601 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9602 ac_res=$ac_cv_search_opendir
9603 if test "$ac_res" != no; then
9604 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9611 for ac_header in dlfcn.h
9613 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9618 echo $ECHO_N "(cached) $ECHO_C" >&6
9620 ac_res=`eval echo '${'$as_ac_Header'}'`
9621 { echo "$as_me:$LINENO: result: $ac_res" >&5
9622 echo "${ECHO_T}$ac_res" >&6; }
9624 # Is the header compilable?
9625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9627 cat >conftest.$ac_ext <<_ACEOF
9630 cat confdefs.h >>conftest.$ac_ext
9631 cat >>conftest.$ac_ext <<_ACEOF
9632 /* end confdefs.h. */
9633 $ac_includes_default
9634 #include <$ac_header>
9636 rm -f conftest.$ac_objext
9637 if { (ac_try="$ac_compile"
9639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9640 *) ac_try_echo
=$ac_try;;
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_compile") 2>conftest.er1
9645 grep -v '^ *+' conftest.er1
>conftest.err
9647 cat conftest.err
>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } &&
9650 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9651 { (case "(($ac_try" in
9652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_try") 2>&5
9658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9659 (exit $ac_status); }; } &&
9660 { ac_try='test -s conftest.$ac_objext'
9661 { (case "(($ac_try" in
9662 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9663 *) ac_try_echo
=$ac_try;;
9665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9666 (eval "$ac_try") 2>&5
9668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9669 (exit $ac_status); }; }; then
9670 ac_header_compiler
=yes
9672 echo "$as_me: failed program was:" >&5
9673 sed 's/^/| /' conftest.
$ac_ext >&5
9675 ac_header_compiler
=no
9678 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9679 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9680 echo "${ECHO_T}$ac_header_compiler" >&6; }
9682 # Is the header present?
9683 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9684 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9685 cat >conftest.
$ac_ext <<_ACEOF
9688 cat confdefs.h
>>conftest.
$ac_ext
9689 cat >>conftest.
$ac_ext <<_ACEOF
9690 /* end confdefs.h. */
9691 #include <$ac_header>
9693 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9696 *) ac_try_echo=$ac_try;;
9698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9701 grep -v '^ *+' conftest.er1 >conftest.err
9703 cat conftest.err >&5
9704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9705 (exit $ac_status); } >/dev/null; then
9706 if test -s conftest.err; then
9707 ac_cpp_err=$ac_c_preproc_warn_flag
9708 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9715 if test -z "$ac_cpp_err"; then
9716 ac_header_preproc=yes
9718 echo "$as_me: failed program was:" >&5
9719 sed 's/^/| /' conftest.$ac_ext >&5
9721 ac_header_preproc=no
9724 rm -f conftest.err conftest.$ac_ext
9725 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9726 echo "${ECHO_T}$ac_header_preproc" >&6; }
9728 # So? What about this header?
9729 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9731 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9732 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9733 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9734 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9735 ac_header_preproc=yes
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9739 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9740 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9741 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9742 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9743 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9744 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9745 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9746 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9747 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9748 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9749 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9751 ## ----------------------------------- ##
9752 ## Report this to llvmbugs@cs.uiuc.edu ##
9753 ## ----------------------------------- ##
9755 ) | sed "s/^/$as_me: WARNING: /" >&2
9758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 eval "$as_ac_Header=\$ac_header_preproc"
9765 ac_res=`eval echo '${'$as_ac_Header'}'`
9766 { echo "$as_me:$LINENO: result: $ac_res" >&5
9767 echo "${ECHO_T}$ac_res" >&6; }
9770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9771 cat >>confdefs.h <<_ACEOF
9772 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9779 # Check whether --enable-ltdl-install was given.
9780 if test "${enable_ltdl_install+set}" = set; then
9781 enableval=$enable_ltdl_install;
9787 if test x"${enable_ltdl_install-no}" != xno; then
9789 INSTALL_LTDL_FALSE='#'
9791 INSTALL_LTDL_TRUE='#'
9797 if test x"${enable_ltdl_convenience-no}" != xno; then
9798 CONVENIENCE_LTDL_TRUE=
9799 CONVENIENCE_LTDL_FALSE='#'
9801 CONVENIENCE_LTDL_TRUE='#'
9802 CONVENIENCE_LTDL_FALSE=
9806 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9807 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9809 libname_spec='lib$name'
9817 shlibpath_overrides_runpath=unknown
9819 dynamic_linker="$host_os ld.so"
9820 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9821 if test "$GCC" = yes; then
9822 sys_lib_search_path_spec=`$CC -print-search-dirs |
grep "^libraries:" |
$SED -e "s/^libraries://" -e "s,=/,/,g"`
9823 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9824 # if the path contains ";" then we assume it to be the separator
9825 # otherwise default to the standard path separator (i.e. ":") - it is
9826 # assumed that no part of a normal pathname contains ";" but that should
9827 # okay in the real world where ";" in dirpaths is itself problematic.
9828 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e 's/;/ /g'`
9830 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e "s/$PATH_SEPARATOR/ /g"`
9833 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9835 need_lib_prefix=unknown
9836 hardcode_into_libs=no
9838 # when you set need_version to no, make sure it does not cause -set_version
9839 # flags to be left without arguments
9840 need_version=unknown
9845 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9846 shlibpath_var=LIBPATH
9848 # AIX 3 has no versioning support, so we append a major version to the name.
9849 soname_spec='${libname}${release}${shared_ext}$major'
9856 hardcode_into_libs=yes
9857 if test "$host_cpu" = ia64; then
9858 # AIX 5 supports IA64
9859 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9860 shlibpath_var=LD_LIBRARY_PATH
9862 # With GCC up to 2.95.x, collect2 would create an import file
9863 # for dependence libraries. The import file would start with
9864 # the line `#! .'. This would cause the generated library to
9865 # depend on `.', always an invalid library. This was fixed in
9866 # development snapshots of GCC prior to 3.0.
9868 aix4 | aix4.
[01] | aix4.
[01].
*)
9869 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9871 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9878 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9879 # soname into executable. Probably we can add versioning support to
9880 # collect2, so additional links can be useful in future.
9881 if test "$aix_use_runtimelinking" = yes; then
9882 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9883 # instead of lib<name>.a to let people know that these are not
9884 # typical AIX shared libraries.
9885 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9887 # We preserve .a as extension for shared libraries through AIX4.2
9888 # and later when we are not doing run time linking.
9889 library_names_spec
='${libname}${release}.a $libname.a'
9890 soname_spec
='${libname}${release}${shared_ext}$major'
9892 shlibpath_var
=LIBPATH
9897 library_names_spec
='$libname.ixlibrary $libname.a'
9898 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9899 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'
9903 library_names_spec
='${libname}${shared_ext}'
9904 dynamic_linker
="$host_os ld.so"
9905 shlibpath_var
=LIBRARY_PATH
9911 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9912 soname_spec
='${libname}${release}${shared_ext}$major'
9913 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9914 shlibpath_var
=LD_LIBRARY_PATH
9915 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9916 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9917 # the default ld.so.conf also contains /usr/contrib/lib and
9918 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9919 # libtool to hard-code these into programs
9922 cygwin
* | mingw
* | pw32
*)
9923 version_type
=windows
9928 case $GCC,$host_os in
9929 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9930 library_names_spec
='$libname.dll.a'
9931 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9932 postinstall_cmds
='base_file=`basename \${file}`~
9933 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9934 dldir=$destdir/`dirname \$dlpath`~
9935 test -d \$dldir || mkdir -p \$dldir~
9936 $install_prog $dir/$dlname \$dldir/$dlname~
9937 chmod a+x \$dldir/$dlname'
9938 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9939 dlpath=$dir/\$dldll~
9941 shlibpath_overrides_runpath
=yes
9945 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9946 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9947 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9950 # MinGW DLLs use traditional 'lib' prefix
9951 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9952 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9953 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9954 # It is most probably a Windows format PATH printed by
9955 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9956 # path with ; separators, and with drive letters. We can handle the
9957 # drive letters (cygwin fileutils understands them), so leave them,
9958 # especially as we might pass files found there to a mingw objdump,
9959 # which wouldn't understand a cygwinified path. Ahh.
9960 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9962 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9966 # pw32 DLLs use 'pw' prefix rather than 'lib'
9967 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9973 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9976 dynamic_linker
='Win32 ld.exe'
9977 # FIXME: first we should search . and the directory the executable is in
9981 darwin
* | rhapsody
*)
9982 dynamic_linker
="$host_os dyld"
9986 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9987 soname_spec
='${libname}${release}${major}$shared_ext'
9988 shlibpath_overrides_runpath
=yes
9989 shlibpath_var
=DYLD_LIBRARY_PATH
9990 shrext_cmds
='.dylib'
9991 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9992 if test "$GCC" = yes; then
9993 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"`
9995 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
9997 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
10004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10005 soname_spec
='${libname}${release}${shared_ext}$major'
10006 shlibpath_var
=LD_LIBRARY_PATH
10017 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10018 soname_spec
='${libname}${release}${shared_ext}$major'
10019 shlibpath_var
=LD_LIBRARY_PATH
10020 shlibpath_overrides_runpath
=no
10021 hardcode_into_libs
=yes
10022 dynamic_linker
='GNU ld.so'
10025 freebsd
* | dragonfly
*)
10026 # DragonFly does not have aout. When/if they implement a new
10027 # versioning mechanism, adjust this.
10028 if test -x /usr
/bin
/objformat
; then
10029 objformat
=`/usr/bin/objformat`
10032 freebsd
[123]*) objformat
=aout
;;
10033 *) objformat
=elf
;;
10036 version_type
=freebsd-
$objformat
10037 case $version_type in
10039 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10044 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10048 shlibpath_var
=LD_LIBRARY_PATH
10051 shlibpath_overrides_runpath
=yes
10053 freebsd3.
[01]* | freebsdelf3.
[01]*)
10054 shlibpath_overrides_runpath
=yes
10055 hardcode_into_libs
=yes
10057 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
10058 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
10059 shlibpath_overrides_runpath
=no
10060 hardcode_into_libs
=yes
10062 freebsd
*) # from 4.6 on
10063 shlibpath_overrides_runpath
=yes
10064 hardcode_into_libs
=yes
10073 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10074 soname_spec
='${libname}${release}${shared_ext}$major'
10075 shlibpath_var
=LD_LIBRARY_PATH
10076 hardcode_into_libs
=yes
10079 hpux9
* | hpux10
* | hpux11
*)
10080 # Give a soname corresponding to the major version so that dld.sl refuses to
10081 # link against other versions.
10088 hardcode_into_libs
=yes
10089 dynamic_linker
="$host_os dld.so"
10090 shlibpath_var
=LD_LIBRARY_PATH
10091 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10092 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10093 soname_spec
='${libname}${release}${shared_ext}$major'
10094 if test "X$HPUX_IA64_MODE" = X32
; then
10095 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10097 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10099 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10103 hardcode_into_libs
=yes
10104 dynamic_linker
="$host_os dld.sl"
10105 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10106 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10107 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10108 soname_spec
='${libname}${release}${shared_ext}$major'
10109 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10110 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10114 dynamic_linker
="$host_os dld.sl"
10115 shlibpath_var
=SHLIB_PATH
10116 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10117 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10118 soname_spec
='${libname}${release}${shared_ext}$major'
10121 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10122 postinstall_cmds
='chmod 555 $lib'
10129 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10130 soname_spec
='${libname}${release}${shared_ext}$major'
10131 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10132 shlibpath_var
=LD_LIBRARY_PATH
10133 shlibpath_overrides_runpath
=no
10134 hardcode_into_libs
=yes
10137 irix5
* | irix6
* | nonstopux
*)
10139 nonstopux
*) version_type
=nonstopux
;;
10141 if test "$lt_cv_prog_gnu_ld" = yes; then
10149 soname_spec
='${libname}${release}${shared_ext}$major'
10150 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10152 irix5
* | nonstopux
*)
10153 libsuff
= shlibsuff
=
10156 case $LD in # libtool.m4 will add one of these switches to LD
10157 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10158 libsuff
= shlibsuff
= libmagic
=32-bit;;
10159 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10160 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10161 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10162 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10163 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10167 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10168 shlibpath_overrides_runpath
=no
10169 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10170 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10171 hardcode_into_libs
=yes
10174 # No shared lib support for Linux oldld, aout, or coff.
10175 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10179 # This must be Linux ELF.
10184 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10185 soname_spec
='${libname}${release}${shared_ext}$major'
10186 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10187 shlibpath_var
=LD_LIBRARY_PATH
10188 shlibpath_overrides_runpath
=no
10189 # This implies no fast_install, which is unacceptable.
10190 # Some rework will be needed to allow for fast_install
10191 # before this can be enabled.
10192 hardcode_into_libs
=yes
10194 # Append ld.so.conf contents to the search path
10195 if test -f /etc
/ld.so.conf
; then
10196 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' ' '`
10197 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10200 # We used to test for /lib/ld.so.1 and disable shared libraries on
10201 # powerpc, because MkLinux only supported shared libraries with the
10202 # GNU dynamic linker. Since this was broken with cross compilers,
10203 # most powerpc-linux boxes support dynamic linking these days and
10204 # people can always --disable-shared, the test was removed, and we
10205 # assume the GNU/Linux dynamic linker is in use.
10206 dynamic_linker
='GNU/Linux ld.so'
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
10216 shlibpath_overrides_runpath
=no
10217 hardcode_into_libs
=yes
10218 dynamic_linker
='GNU ld.so'
10225 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10226 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10227 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10228 dynamic_linker
='NetBSD (a.out) ld.so'
10230 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10231 soname_spec
='${libname}${release}${shared_ext}$major'
10232 dynamic_linker
='NetBSD ld.elf_so'
10234 shlibpath_var
=LD_LIBRARY_PATH
10235 shlibpath_overrides_runpath
=yes
10236 hardcode_into_libs
=yes
10241 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10242 shlibpath_var
=LD_LIBRARY_PATH
10243 shlibpath_overrides_runpath
=yes
10250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10251 soname_spec
='${libname}${release}${shared_ext}$major'
10252 shlibpath_var
=LD_LIBRARY_PATH
10253 shlibpath_overrides_runpath
=yes
10258 sys_lib_dlsearch_path_spec
="/usr/lib"
10260 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10262 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10263 *) need_version
=no
;;
10265 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10266 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10267 shlibpath_var
=LD_LIBRARY_PATH
10268 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10270 openbsd2.
[89] | openbsd2.
[89].
*)
10271 shlibpath_overrides_runpath
=no
10274 shlibpath_overrides_runpath
=yes
10278 shlibpath_overrides_runpath
=yes
10283 libname_spec
='$name'
10286 library_names_spec
='$libname${shared_ext} $libname.a'
10287 dynamic_linker
='OS/2 ld.exe'
10288 shlibpath_var
=LIBPATH
10291 osf3
* | osf4
* | osf5
*)
10295 soname_spec
='${libname}${release}${shared_ext}$major'
10296 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10297 shlibpath_var
=LD_LIBRARY_PATH
10298 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10299 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10306 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10307 soname_spec
='${libname}${release}${shared_ext}$major'
10308 shlibpath_var
=LD_LIBRARY_PATH
10309 shlibpath_overrides_runpath
=yes
10310 hardcode_into_libs
=yes
10311 # ldd complains unless libraries are executable
10312 postinstall_cmds
='chmod +x $lib'
10317 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10318 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10319 shlibpath_var
=LD_LIBRARY_PATH
10320 shlibpath_overrides_runpath
=yes
10321 if test "$with_gnu_ld" = yes; then
10329 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10330 soname_spec
='${libname}${release}${shared_ext}$major'
10331 shlibpath_var
=LD_LIBRARY_PATH
10332 case $host_vendor in
10334 shlibpath_overrides_runpath
=no
10336 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10337 runpath_var
=LD_RUN_PATH
10345 shlibpath_overrides_runpath
=no
10346 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10352 if test -d /usr
/nec
;then
10354 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10355 soname_spec
='$libname${shared_ext}.$major'
10356 shlibpath_var
=LD_LIBRARY_PATH
10360 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10361 version_type
=freebsd-elf
10364 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10365 soname_spec
='${libname}${release}${shared_ext}$major'
10366 shlibpath_var
=LD_LIBRARY_PATH
10367 hardcode_into_libs
=yes
10368 if test "$with_gnu_ld" = yes; then
10369 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10370 shlibpath_overrides_runpath
=no
10372 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10373 shlibpath_overrides_runpath
=yes
10376 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10380 sys_lib_dlsearch_path_spec
='/usr/lib'
10385 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10386 soname_spec
='${libname}${release}${shared_ext}$major'
10387 shlibpath_var
=LD_LIBRARY_PATH
10394 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10395 echo "${ECHO_T}$dynamic_linker" >&6; }
10396 test "$dynamic_linker" = no
&& can_build_shared
=no
10398 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10399 if test "$GCC" = yes; then
10400 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10404 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10405 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10406 if test "${libltdl_cv_shlibext+set}" = set; then
10407 echo $ECHO_N "(cached) $ECHO_C" >&6
10411 eval libltdl_cv_shlibext
=$shrext_cmds
10414 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10415 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10416 if test -n "$libltdl_cv_shlibext"; then
10418 cat >>confdefs.h
<<_ACEOF
10419 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10425 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10426 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10427 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10428 echo $ECHO_N "(cached) $ECHO_C" >&6
10430 libltdl_cv_shlibpath_var
="$shlibpath_var"
10432 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10433 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10434 if test -n "$libltdl_cv_shlibpath_var"; then
10436 cat >>confdefs.h
<<_ACEOF
10437 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10443 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10444 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10445 if test "${libltdl_cv_sys_search_path+set}" = set; then
10446 echo $ECHO_N "(cached) $ECHO_C" >&6
10448 libltdl_cv_sys_search_path
="$sys_lib_dlsearch_path_spec"
10450 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10451 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10452 if test -n "$libltdl_cv_sys_search_path"; then
10454 for dir
in $libltdl_cv_sys_search_path; do
10455 if test -z "$sys_search_path"; then
10456 sys_search_path
="$dir"
10458 sys_search_path
="$sys_search_path$PATH_SEPARATOR$dir"
10462 cat >>confdefs.h
<<_ACEOF
10463 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10468 { echo "$as_me:$LINENO: checking for objdir" >&5
10469 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10470 if test "${libltdl_cv_objdir+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 libltdl_cv_objdir
="$objdir"
10474 if test -n "$objdir"; then
10477 rm -f .libs
2>/dev
/null
10478 mkdir .libs
2>/dev
/null
10479 if test -d .libs
; then
10480 libltdl_cv_objdir
=.libs
10482 # MS-DOS does not allow filenames that begin with a dot.
10483 libltdl_cv_objdir
=_libs
10485 rmdir .libs
2>/dev
/null
10489 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10490 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10492 cat >>confdefs.h
<<_ACEOF
10493 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10501 # Check for command to grab the raw symbol name followed by C symbol from nm.
10502 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10503 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10504 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10505 echo $ECHO_N "(cached) $ECHO_C" >&6
10508 # These are sane defaults that work on at least a few old systems.
10509 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10511 # Character class describing NM global symbol codes.
10512 symcode
='[BCDEGRST]'
10514 # Regexp to match symbols that can be accessed directly from C.
10515 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
10517 # Transform an extracted symbol line into a proper C declaration
10518 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10520 # Transform an extracted symbol line into symbol name and symbol address
10521 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'"
10523 # Define system-specific variables.
10528 cygwin
* | mingw
* | pw32
*)
10529 symcode
='[ABCDGISTW]'
10531 hpux
*) # Its linker distinguishes data from code symbols
10532 if test "$host_cpu" = ia64
; then
10533 symcode
='[ABCDEGRST]'
10535 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10536 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'"
10539 if test "$host_cpu" = ia64
; then
10540 symcode
='[ABCDGIRSTW]'
10541 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10542 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'"
10545 irix
* | nonstopux
*)
10546 symcode
='[BCDEGRST]'
10549 symcode
='[BCDEGQRST]'
10560 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10568 # Handle CRLF in mingw tool chain
10572 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10576 # If we're using GNU nm, then use its standard symbol codes.
10577 case `$NM -V 2>&1` in
10578 *GNU
* |
*'with BFD'*)
10579 symcode
='[ABCDGIRSTW]' ;;
10582 # Try without a prefix undercore, then with it.
10583 for ac_symprfx
in "" "_"; do
10585 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10586 symxfrm
="\\1 $ac_symprfx\\2 \\2"
10588 # Write the raw and C identifiers.
10589 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10591 # Check to see that the pipe works correctly.
10595 cat > conftest.
$ac_ext <<EOF
10600 void nm_test_func(){}
10604 int main(){nm_test_var='a';nm_test_func();return(0);}
10607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10608 (eval $ac_compile) 2>&5
10610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10611 (exit $ac_status); }; then
10612 # Now try to grab the symbols.
10614 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10615 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
10617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10618 (exit $ac_status); } && test -s "$nlist"; then
10619 # Try sorting and uniquifying the output.
10620 if sort "$nlist" |
uniq > "$nlist"T
; then
10621 mv -f "$nlist"T
"$nlist"
10626 # Make sure that we snagged all the symbols we need.
10627 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
10628 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
10629 cat <<EOF > conftest.$ac_ext
10635 # Now generate the symbol file.
10636 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10638 cat <<EOF >> conftest.$ac_ext
10639 #if defined (__STDC__) && __STDC__
10640 # define lt_ptr_t void *
10642 # define lt_ptr_t char *
10646 /* The mapping between symbol names and symbols. */
10651 lt_preloaded_symbols[] =
10654 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
10655 cat <<\EOF
>> conftest.
$ac_ext
10663 # Now try linking the two files.
10664 mv conftest.
$ac_objext conftstm.
$ac_objext
10665 lt_save_LIBS
="$LIBS"
10666 lt_save_CFLAGS
="$CFLAGS"
10667 LIBS
="conftstm.$ac_objext"
10668 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10669 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10670 (eval $ac_link) 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
10676 LIBS
="$lt_save_LIBS"
10677 CFLAGS
="$lt_save_CFLAGS"
10679 echo "cannot find nm_test_func in $nlist" >&5
10682 echo "cannot find nm_test_var in $nlist" >&5
10685 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10688 echo "$progname: failed program was:" >&5
10689 cat conftest.
$ac_ext >&5
10691 rm -f conftest
* conftst
*
10693 # Do not use the global_symbol_pipe unless it works.
10694 if test "$pipe_works" = yes; then
10697 lt_cv_sys_global_symbol_pipe
=
10703 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10704 lt_cv_sys_global_symbol_to_cdecl
=
10706 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10707 { echo "$as_me:$LINENO: result: failed" >&5
10708 echo "${ECHO_T}failed" >&6; }
10710 { echo "$as_me:$LINENO: result: ok" >&5
10711 echo "${ECHO_T}ok" >&6; }
10715 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10716 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10717 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10720 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10721 libltdl_cv_preloaded_symbols
=yes
10723 libltdl_cv_preloaded_symbols
=no
10727 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10728 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10729 if test x
"$libltdl_cv_preloaded_symbols" = xyes
; then
10731 cat >>confdefs.h
<<\_ACEOF
10732 #define HAVE_PRELOADED_SYMBOLS 1
10740 ac_cpp
='$CPP $CPPFLAGS'
10741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10746 { echo "$as_me:$LINENO: checking for shl_load" >&5
10747 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10748 if test "${ac_cv_func_shl_load+set}" = set; then
10749 echo $ECHO_N "(cached) $ECHO_C" >&6
10751 cat >conftest.
$ac_ext <<_ACEOF
10754 cat confdefs.h
>>conftest.
$ac_ext
10755 cat >>conftest.
$ac_ext <<_ACEOF
10756 /* end confdefs.h. */
10757 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10759 #define shl_load innocuous_shl_load
10761 /* System header to define __stub macros and hopefully few prototypes,
10762 which can conflict with char shl_load (); below.
10763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10764 <limits.h> exists even on freestanding compilers. */
10767 # include <limits.h>
10769 # include <assert.h>
10774 /* Override any GCC internal prototype to avoid an error.
10775 Use char because int might match the return type of a GCC
10776 builtin and then its argument prototype would still apply. */
10781 /* The GNU C library defines this for functions which it implements
10782 to always fail with ENOSYS. Some functions are actually named
10783 something starting with __ and the normal name is an alias. */
10784 #if defined __stub_shl_load || defined __stub___shl_load
10791 return shl_load ();
10796 rm -f conftest.
$ac_objext conftest
$ac_exeext
10797 if { (ac_try
="$ac_link"
10798 case "(($ac_try" in
10799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10800 *) ac_try_echo=$ac_try;;
10802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10803 (eval "$ac_link") 2>conftest.er1
10805 grep -v '^ *+' conftest.er1 >conftest.err
10807 cat conftest.err >&5
10808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10809 (exit $ac_status); } &&
10810 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10811 { (case "(($ac_try" in
10812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10813 *) ac_try_echo
=$ac_try;;
10815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10816 (eval "$ac_try") 2>&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); }; } &&
10820 { ac_try
='test -s conftest$ac_exeext'
10821 { (case "(($ac_try" in
10822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10823 *) ac_try_echo=$ac_try;;
10825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10826 (eval "$ac_try") 2>&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); }; }; then
10830 ac_cv_func_shl_load=yes
10832 echo "$as_me: failed program was:" >&5
10833 sed 's/^/| /' conftest.$ac_ext >&5
10835 ac_cv_func_shl_load=no
10838 rm -f core conftest.err conftest.$ac_objext \
10839 conftest$ac_exeext conftest.$ac_ext
10841 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10842 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10843 if test $ac_cv_func_shl_load = yes; then
10845 cat >>confdefs.h <<\_ACEOF
10846 #define HAVE_SHL_LOAD 1
10850 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10851 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10852 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10855 ac_check_lib_save_LIBS=$LIBS
10857 cat >conftest.$ac_ext <<_ACEOF
10860 cat confdefs.h >>conftest.$ac_ext
10861 cat >>conftest.$ac_ext <<_ACEOF
10862 /* end confdefs.h. */
10864 /* Override any GCC internal prototype to avoid an error.
10865 Use char because int might match the return type of a GCC
10866 builtin and then its argument prototype would still apply. */
10874 return shl_load ();
10879 rm -f conftest.$ac_objext conftest$ac_exeext
10880 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
10888 grep -v '^ *+' conftest.er1
>conftest.err
10890 cat conftest.err
>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); } &&
10893 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10894 { (case "(($ac_try" in
10895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10896 *) ac_try_echo=$ac_try;;
10898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10899 (eval "$ac_try") 2>&5
10901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10902 (exit $ac_status); }; } &&
10903 { ac_try='test -s conftest$ac_exeext'
10904 { (case "(($ac_try" in
10905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10906 *) ac_try_echo
=$ac_try;;
10908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10909 (eval "$ac_try") 2>&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); }; }; then
10913 ac_cv_lib_dld_shl_load
=yes
10915 echo "$as_me: failed program was:" >&5
10916 sed 's/^/| /' conftest.
$ac_ext >&5
10918 ac_cv_lib_dld_shl_load
=no
10921 rm -f core conftest.err conftest.
$ac_objext \
10922 conftest
$ac_exeext conftest.
$ac_ext
10923 LIBS
=$ac_check_lib_save_LIBS
10925 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10926 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10927 if test $ac_cv_lib_dld_shl_load = yes; then
10929 cat >>confdefs.h
<<\_ACEOF
10930 #define HAVE_SHL_LOAD 1
10933 LIBADD_DL
="$LIBADD_DL -ldld"
10935 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10936 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10937 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10938 echo $ECHO_N "(cached) $ECHO_C" >&6
10940 ac_check_lib_save_LIBS
=$LIBS
10942 cat >conftest.
$ac_ext <<_ACEOF
10945 cat confdefs.h
>>conftest.
$ac_ext
10946 cat >>conftest.
$ac_ext <<_ACEOF
10947 /* end confdefs.h. */
10949 /* Override any GCC internal prototype to avoid an error.
10950 Use char because int might match the return type of a GCC
10951 builtin and then its argument prototype would still apply. */
10964 rm -f conftest.
$ac_objext conftest
$ac_exeext
10965 if { (ac_try
="$ac_link"
10966 case "(($ac_try" in
10967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10968 *) ac_try_echo=$ac_try;;
10970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10971 (eval "$ac_link") 2>conftest.er1
10973 grep -v '^ *+' conftest.er1 >conftest.err
10975 cat conftest.err >&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); } &&
10978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10979 { (case "(($ac_try" in
10980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10981 *) ac_try_echo
=$ac_try;;
10983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10984 (eval "$ac_try") 2>&5
10986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10987 (exit $ac_status); }; } &&
10988 { ac_try
='test -s conftest$ac_exeext'
10989 { (case "(($ac_try" in
10990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10991 *) ac_try_echo=$ac_try;;
10993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10994 (eval "$ac_try") 2>&5
10996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10997 (exit $ac_status); }; }; then
10998 ac_cv_lib_dl_dlopen=yes
11000 echo "$as_me: failed program was:" >&5
11001 sed 's/^/| /' conftest.$ac_ext >&5
11003 ac_cv_lib_dl_dlopen=no
11006 rm -f core conftest.err conftest.$ac_objext \
11007 conftest$ac_exeext conftest.$ac_ext
11008 LIBS=$ac_check_lib_save_LIBS
11010 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
11011 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
11012 if test $ac_cv_lib_dl_dlopen = yes; then
11014 cat >>confdefs.h <<\_ACEOF
11015 #define HAVE_LIBDL 1
11018 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
11020 cat >conftest.$ac_ext <<_ACEOF
11023 cat confdefs.h >>conftest.$ac_ext
11024 cat >>conftest.$ac_ext <<_ACEOF
11025 /* end confdefs.h. */
11027 # include <dlfcn.h>
11038 rm -f conftest.$ac_objext conftest$ac_exeext
11039 if { (ac_try="$ac_link"
11040 case "(($ac_try" in
11041 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11042 *) ac_try_echo
=$ac_try;;
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_link") 2>conftest.er1
11047 grep -v '^ *+' conftest.er1
>conftest.err
11049 cat conftest.err
>&5
11050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11051 (exit $ac_status); } &&
11052 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11053 { (case "(($ac_try" in
11054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_try") 2>&5
11060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11061 (exit $ac_status); }; } &&
11062 { ac_try='test -s conftest$ac_exeext'
11063 { (case "(($ac_try" in
11064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11065 *) ac_try_echo
=$ac_try;;
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_try") 2>&5
11070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11071 (exit $ac_status); }; }; then
11073 cat >>confdefs.h
<<\_ACEOF
11074 #define HAVE_LIBDL 1
11076 libltdl_cv_func_dlopen
="yes"
11078 echo "$as_me: failed program was:" >&5
11079 sed 's/^/| /' conftest.
$ac_ext >&5
11081 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
11082 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
11083 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
11084 echo $ECHO_N "(cached) $ECHO_C" >&6
11086 ac_check_lib_save_LIBS
=$LIBS
11087 LIBS
="-lsvld $LIBS"
11088 cat >conftest.
$ac_ext <<_ACEOF
11091 cat confdefs.h
>>conftest.
$ac_ext
11092 cat >>conftest.
$ac_ext <<_ACEOF
11093 /* end confdefs.h. */
11095 /* Override any GCC internal prototype to avoid an error.
11096 Use char because int might match the return type of a GCC
11097 builtin and then its argument prototype would still apply. */
11110 rm -f conftest.
$ac_objext conftest
$ac_exeext
11111 if { (ac_try
="$ac_link"
11112 case "(($ac_try" in
11113 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11114 *) ac_try_echo=$ac_try;;
11116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11117 (eval "$ac_link") 2>conftest.er1
11119 grep -v '^ *+' conftest.er1 >conftest.err
11121 cat conftest.err >&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); } &&
11124 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11125 { (case "(($ac_try" in
11126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11127 *) ac_try_echo
=$ac_try;;
11129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11130 (eval "$ac_try") 2>&5
11132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11133 (exit $ac_status); }; } &&
11134 { ac_try
='test -s conftest$ac_exeext'
11135 { (case "(($ac_try" in
11136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11137 *) ac_try_echo=$ac_try;;
11139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11140 (eval "$ac_try") 2>&5
11142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11143 (exit $ac_status); }; }; then
11144 ac_cv_lib_svld_dlopen=yes
11146 echo "$as_me: failed program was:" >&5
11147 sed 's/^/| /' conftest.$ac_ext >&5
11149 ac_cv_lib_svld_dlopen=no
11152 rm -f core conftest.err conftest.$ac_objext \
11153 conftest$ac_exeext conftest.$ac_ext
11154 LIBS=$ac_check_lib_save_LIBS
11156 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11157 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11158 if test $ac_cv_lib_svld_dlopen = yes; then
11160 cat >>confdefs.h <<\_ACEOF
11161 #define HAVE_LIBDL 1
11164 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11166 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11167 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11168 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11169 echo $ECHO_N "(cached) $ECHO_C" >&6
11171 ac_check_lib_save_LIBS=$LIBS
11173 cat >conftest.$ac_ext <<_ACEOF
11176 cat confdefs.h >>conftest.$ac_ext
11177 cat >>conftest.$ac_ext <<_ACEOF
11178 /* end confdefs.h. */
11180 /* Override any GCC internal prototype to avoid an error.
11181 Use char because int might match the return type of a GCC
11182 builtin and then its argument prototype would still apply. */
11190 return dld_link ();
11195 rm -f conftest.$ac_objext conftest$ac_exeext
11196 if { (ac_try="$ac_link"
11197 case "(($ac_try" in
11198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11199 *) ac_try_echo
=$ac_try;;
11201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11202 (eval "$ac_link") 2>conftest.er1
11204 grep -v '^ *+' conftest.er1
>conftest.err
11206 cat conftest.err
>&5
11207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11208 (exit $ac_status); } &&
11209 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11210 { (case "(($ac_try" in
11211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11212 *) ac_try_echo=$ac_try;;
11214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11215 (eval "$ac_try") 2>&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); }; } &&
11219 { ac_try='test -s conftest$ac_exeext'
11220 { (case "(($ac_try" in
11221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11222 *) ac_try_echo
=$ac_try;;
11224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11225 (eval "$ac_try") 2>&5
11227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11228 (exit $ac_status); }; }; then
11229 ac_cv_lib_dld_dld_link
=yes
11231 echo "$as_me: failed program was:" >&5
11232 sed 's/^/| /' conftest.
$ac_ext >&5
11234 ac_cv_lib_dld_dld_link
=no
11237 rm -f core conftest.err conftest.
$ac_objext \
11238 conftest
$ac_exeext conftest.
$ac_ext
11239 LIBS
=$ac_check_lib_save_LIBS
11241 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11242 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11243 if test $ac_cv_lib_dld_dld_link = yes; then
11245 cat >>confdefs.h
<<\_ACEOF
11249 LIBADD_DL
="$LIBADD_DL -ldld"
11251 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11252 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11253 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11254 echo $ECHO_N "(cached) $ECHO_C" >&6
11256 cat >conftest.
$ac_ext <<_ACEOF
11259 cat confdefs.h
>>conftest.
$ac_ext
11260 cat >>conftest.
$ac_ext <<_ACEOF
11261 /* end confdefs.h. */
11262 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11264 #define _dyld_func_lookup innocuous__dyld_func_lookup
11266 /* System header to define __stub macros and hopefully few prototypes,
11267 which can conflict with char _dyld_func_lookup (); below.
11268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11269 <limits.h> exists even on freestanding compilers. */
11272 # include <limits.h>
11274 # include <assert.h>
11277 #undef _dyld_func_lookup
11279 /* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11285 char _dyld_func_lookup ();
11286 /* The GNU C library defines this for functions which it implements
11287 to always fail with ENOSYS. Some functions are actually named
11288 something starting with __ and the normal name is an alias. */
11289 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11296 return _dyld_func_lookup ();
11301 rm -f conftest.
$ac_objext conftest
$ac_exeext
11302 if { (ac_try
="$ac_link"
11303 case "(($ac_try" in
11304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11305 *) ac_try_echo=$ac_try;;
11307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11308 (eval "$ac_link") 2>conftest.er1
11310 grep -v '^ *+' conftest.er1 >conftest.err
11312 cat conftest.err >&5
11313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11314 (exit $ac_status); } &&
11315 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11316 { (case "(($ac_try" in
11317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11318 *) ac_try_echo
=$ac_try;;
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_try") 2>&5
11323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11324 (exit $ac_status); }; } &&
11325 { ac_try
='test -s conftest$ac_exeext'
11326 { (case "(($ac_try" in
11327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_try") 2>&5
11333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11334 (exit $ac_status); }; }; then
11335 ac_cv_func__dyld_func_lookup=yes
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.$ac_ext >&5
11340 ac_cv_func__dyld_func_lookup=no
11343 rm -f core conftest.err conftest.$ac_objext \
11344 conftest$ac_exeext conftest.$ac_ext
11346 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11347 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11348 if test $ac_cv_func__dyld_func_lookup = yes; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define HAVE_DYLD 1
11365 rm -f core conftest.err conftest.$ac_objext \
11366 conftest$ac_exeext conftest.$ac_ext
11377 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11379 lt_save_LIBS="$LIBS"
11380 LIBS="$LIBS $LIBADD_DL"
11382 for ac_func in dlerror
11384 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11390 cat >conftest.$ac_ext <<_ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11398 #define $ac_func innocuous_$ac_func
11400 /* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func (); below.
11402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11403 <limits.h> exists even on freestanding compilers. */
11406 # include <limits.h>
11408 # include <assert.h>
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11420 /* The GNU C library defines this for functions which it implements
11421 to always fail with ENOSYS. Some functions are actually named
11422 something starting with __ and the normal name is an alias. */
11423 #if defined __stub_$ac_func || defined __stub___$ac_func
11430 return $ac_func ();
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (ac_try="$ac_link"
11437 case "(($ac_try" in
11438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11439 *) ac_try_echo
=$ac_try;;
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_link") 2>conftest.er1
11444 grep -v '^ *+' conftest.er1
>conftest.err
11446 cat conftest.err
>&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } &&
11449 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11450 { (case "(($ac_try" in
11451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11452 *) ac_try_echo=$ac_try;;
11454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11455 (eval "$ac_try") 2>&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); }; } &&
11459 { ac_try='test -s conftest$ac_exeext'
11460 { (case "(($ac_try" in
11461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11462 *) ac_try_echo
=$ac_try;;
11464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11465 (eval "$ac_try") 2>&5
11467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11468 (exit $ac_status); }; }; then
11469 eval "$as_ac_var=yes"
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.
$ac_ext >&5
11474 eval "$as_ac_var=no"
11477 rm -f core conftest.err conftest.
$ac_objext \
11478 conftest
$ac_exeext conftest.
$ac_ext
11480 ac_res
=`eval echo '${'$as_ac_var'}'`
11481 { echo "$as_me:$LINENO: result: $ac_res" >&5
11482 echo "${ECHO_T}$ac_res" >&6; }
11483 if test `eval echo '${'$as_ac_var'}'` = yes; then
11484 cat >>confdefs.h
<<_ACEOF
11485 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11491 LIBS
="$lt_save_LIBS"
11494 ac_cpp
='$CPP $CPPFLAGS'
11495 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11496 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11497 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11501 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11502 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11503 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11504 echo $ECHO_N "(cached) $ECHO_C" >&6
11506 ac_cv_sys_symbol_underscore
=no
11507 cat > conftest.
$ac_ext <<EOF
11508 void nm_test_func(){}
11509 int main(){nm_test_func;return 0;}
11511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11512 (eval $ac_compile) 2>&5
11514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11515 (exit $ac_status); }; then
11516 # Now try to grab the symbols.
11517 ac_nlist
=conftest.nm
11518 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11519 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } && test -s "$ac_nlist"; then
11523 # See whether the symbols have a leading underscore.
11524 if grep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
11525 ac_cv_sys_symbol_underscore
=yes
11527 if grep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
11530 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11534 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11537 echo "configure: failed program was:" >&5
11543 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11544 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11547 if test x
"$ac_cv_sys_symbol_underscore" = xyes
; then
11548 if test x
"$libltdl_cv_func_dlopen" = xyes ||
11549 test x
"$libltdl_cv_lib_dl_dlopen" = xyes
; then
11550 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11551 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11552 if test "${libltdl_cv_need_uscore+set}" = set; then
11553 echo $ECHO_N "(cached) $ECHO_C" >&6
11555 libltdl_cv_need_uscore
=unknown
11557 LIBS
="$LIBS $LIBADD_DL"
11558 if test "$cross_compiling" = yes; then :
11559 libltdl_cv_need_uscore
=cross
11561 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11562 lt_status
=$lt_dlunknown
11563 cat > conftest.
$ac_ext <<EOF
11564 #line 11564 "configure"
11565 #include "confdefs.h"
11574 # define LT_DLGLOBAL RTLD_GLOBAL
11577 # define LT_DLGLOBAL DL_GLOBAL
11579 # define LT_DLGLOBAL 0
11583 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11584 find out it does not work in some platform. */
11585 #ifndef LT_DLLAZY_OR_NOW
11587 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11590 # define LT_DLLAZY_OR_NOW DL_LAZY
11593 # define LT_DLLAZY_OR_NOW RTLD_NOW
11596 # define LT_DLLAZY_OR_NOW DL_NOW
11598 # define LT_DLLAZY_OR_NOW 0
11606 extern "C" void exit (int);
11609 void fnord() { int i=42;}
11612 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11613 int status = $lt_dlunknown;
11617 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11618 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11619 /* dlclose (self); */
11627 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11628 (eval $ac_link) 2>&5
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11632 (.
/conftest
; exit; ) >&5 2>/dev
/null
11634 case x
$lt_status in
11635 x
$lt_dlno_uscore) libltdl_cv_need_uscore
=no
;;
11636 x
$lt_dlneed_uscore) libltdl_cv_need_uscore
=yes ;;
11637 x
$lt_dlunknown|x
*) ;;
11640 # compilation failed
11649 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11650 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11654 if test x
"$libltdl_cv_need_uscore" = xyes
; then
11656 cat >>confdefs.h
<<\_ACEOF
11657 #define NEED_USCORE 1
11663 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11664 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11665 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11666 echo $ECHO_N "(cached) $ECHO_C" >&6
11668 # PORTME does your system automatically load deplibs for dlopen?
11669 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11670 # For now, we just catch OSes we know something about -- in the
11671 # future, we'll try test this programmatically.
11672 libltdl_cv_sys_dlopen_deplibs
=unknown
11674 aix3
*|aix4.1.
*|aix4.2.
*)
11675 # Unknown whether this is true for these versions of AIX, but
11676 # we want this `case' here to explicitly catch those versions.
11677 libltdl_cv_sys_dlopen_deplibs
=unknown
11680 libltdl_cv_sys_dlopen_deplibs
=yes
11683 # Assuming the user has installed a libdl from somewhere, this is true
11684 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11685 libltdl_cv_sys_dlopen_deplibs
=yes
11687 gnu
* | linux
* | kfreebsd
*-gnu | knetbsd
*-gnu)
11688 # GNU and its variants, using gnu ld.so (Glibc)
11689 libltdl_cv_sys_dlopen_deplibs
=yes
11692 libltdl_cv_sys_dlopen_deplibs
=yes
11695 libltdl_cv_sys_dlopen_deplibs
=yes
11697 irix
[12345]*|irix6.
[01]*)
11698 # Catch all versions of IRIX before 6.2, and indicate that we don't
11699 # know how it worked for any of those versions.
11700 libltdl_cv_sys_dlopen_deplibs
=unknown
11703 # The case above catches anything before 6.2, and it's known that
11704 # at 6.2 and later dlopen does load deplibs.
11705 libltdl_cv_sys_dlopen_deplibs
=yes
11708 libltdl_cv_sys_dlopen_deplibs
=yes
11711 libltdl_cv_sys_dlopen_deplibs
=yes
11714 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11715 # it did *not* use an RPATH in a shared library to find objects the
11716 # library depends on, so we explictly say `no'.
11717 libltdl_cv_sys_dlopen_deplibs
=no
11719 osf5.0|osf5.0a|osf5.1
)
11720 # dlopen *does* load deplibs and with the right loader patch applied
11721 # it even uses RPATH in a shared library to search for shared objects
11722 # that the library depends on, but there's no easy way to know if that
11723 # patch is installed. Since this is the case, all we can really
11724 # say is unknown -- it depends on the patch being installed. If
11725 # it is, this changes to `yes'. Without it, it would be `no'.
11726 libltdl_cv_sys_dlopen_deplibs
=unknown
11729 # the two cases above should catch all versions of osf <= 5.1. Read
11730 # the comments above for what we know about them.
11731 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11732 # is used to find them so we can finally say `yes'.
11733 libltdl_cv_sys_dlopen_deplibs
=yes
11736 libltdl_cv_sys_dlopen_deplibs
=yes
11738 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11739 libltdl_cv_sys_dlopen_deplibs
=yes
11744 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11745 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11746 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11748 cat >>confdefs.h
<<\_ACEOF
11749 #define LTDL_DLOPEN_DEPLIBS 1
11755 for ac_header
in argz.h
11757 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11758 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11759 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11760 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11761 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 ac_res
=`eval echo '${'$as_ac_Header'}'`
11765 { echo "$as_me:$LINENO: result: $ac_res" >&5
11766 echo "${ECHO_T}$ac_res" >&6; }
11768 # Is the header compilable?
11769 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11770 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11771 cat >conftest.
$ac_ext <<_ACEOF
11774 cat confdefs.h
>>conftest.
$ac_ext
11775 cat >>conftest.
$ac_ext <<_ACEOF
11776 /* end confdefs.h. */
11777 $ac_includes_default
11778 #include <$ac_header>
11780 rm -f conftest.
$ac_objext
11781 if { (ac_try
="$ac_compile"
11782 case "(($ac_try" in
11783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_compile") 2>conftest.er1
11789 grep -v '^ *+' conftest.er1 >conftest.err
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } &&
11794 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11797 *) ac_try_echo
=$ac_try;;
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; } &&
11804 { ac_try
='test -s conftest.$ac_objext'
11805 { (case "(($ac_try" in
11806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11807 *) ac_try_echo=$ac_try;;
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_try") 2>&5
11812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11813 (exit $ac_status); }; }; then
11814 ac_header_compiler=yes
11816 echo "$as_me: failed program was:" >&5
11817 sed 's/^/| /' conftest.$ac_ext >&5
11819 ac_header_compiler=no
11822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11823 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11824 echo "${ECHO_T}$ac_header_compiler" >&6; }
11826 # Is the header present?
11827 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11828 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11829 cat >conftest.$ac_ext <<_ACEOF
11832 cat confdefs.h >>conftest.$ac_ext
11833 cat >>conftest.$ac_ext <<_ACEOF
11834 /* end confdefs.h. */
11835 #include <$ac_header>
11837 if { (ac_try="$ac_cpp conftest.$ac_ext"
11838 case "(($ac_try" in
11839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11840 *) ac_try_echo
=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11845 grep -v '^ *+' conftest.er1
>conftest.err
11847 cat conftest.err
>&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } >/dev
/null
; then
11850 if test -s conftest.err
; then
11851 ac_cpp_err
=$ac_c_preproc_warn_flag
11852 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11859 if test -z "$ac_cpp_err"; then
11860 ac_header_preproc
=yes
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.
$ac_ext >&5
11865 ac_header_preproc
=no
11868 rm -f conftest.err conftest.
$ac_ext
11869 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11870 echo "${ECHO_T}$ac_header_preproc" >&6; }
11872 # So? What about this header?
11873 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11875 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11876 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11878 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11879 ac_header_preproc
=yes
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11883 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11885 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11887 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11889 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11891 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11893 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11895 ## ----------------------------------- ##
11896 ## Report this to llvmbugs@cs.uiuc.edu ##
11897 ## ----------------------------------- ##
11899 ) |
sed "s/^/$as_me: WARNING: /" >&2
11902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11904 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11905 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 eval "$as_ac_Header=\$ac_header_preproc"
11909 ac_res
=`eval echo '${'$as_ac_Header'}'`
11910 { echo "$as_me:$LINENO: result: $ac_res" >&5
11911 echo "${ECHO_T}$ac_res" >&6; }
11914 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11915 cat >>confdefs.h
<<_ACEOF
11916 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11924 { echo "$as_me:$LINENO: checking for error_t" >&5
11925 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11926 if test "${ac_cv_type_error_t+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 cat >conftest.
$ac_ext <<_ACEOF
11932 cat confdefs.h
>>conftest.
$ac_ext
11933 cat >>conftest.
$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11939 typedef error_t ac__type_new_;
11943 if ((ac__type_new_ *) 0)
11945 if (sizeof (ac__type_new_))
11951 rm -f conftest.
$ac_objext
11952 if { (ac_try
="$ac_compile"
11953 case "(($ac_try" in
11954 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11955 *) ac_try_echo=$ac_try;;
11957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11958 (eval "$ac_compile") 2>conftest.er1
11960 grep -v '^ *+' conftest.er1 >conftest.err
11962 cat conftest.err >&5
11963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11964 (exit $ac_status); } &&
11965 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11966 { (case "(($ac_try" in
11967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11968 *) ac_try_echo
=$ac_try;;
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_try") 2>&5
11973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11974 (exit $ac_status); }; } &&
11975 { ac_try
='test -s conftest.$ac_objext'
11976 { (case "(($ac_try" in
11977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11978 *) ac_try_echo=$ac_try;;
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_try") 2>&5
11983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11984 (exit $ac_status); }; }; then
11985 ac_cv_type_error_t=yes
11987 echo "$as_me: failed program was:" >&5
11988 sed 's/^/| /' conftest.$ac_ext >&5
11990 ac_cv_type_error_t=no
11993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11995 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11996 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11997 if test $ac_cv_type_error_t = yes; then
11999 cat >>confdefs.h <<_ACEOF
12000 #define HAVE_ERROR_T 1
12006 cat >>confdefs.h <<\_ACEOF
12007 #define error_t int
12018 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
12020 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12024 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12034 #define $ac_func innocuous_$ac_func
12036 /* System header to define __stub macros and hopefully few prototypes,
12037 which can conflict with char $ac_func (); below.
12038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12039 <limits.h> exists even on freestanding compilers. */
12042 # include <limits.h>
12044 # include <assert.h>
12049 /* Override any GCC internal prototype to avoid an error.
12050 Use char because int might match the return type of a GCC
12051 builtin and then its argument prototype would still apply. */
12056 /* The GNU C library defines this for functions which it implements
12057 to always fail with ENOSYS. Some functions are actually named
12058 something starting with __ and the normal name is an alias. */
12059 #if defined __stub_$ac_func || defined __stub___$ac_func
12066 return $ac_func ();
12071 rm -f conftest.$ac_objext conftest$ac_exeext
12072 if { (ac_try="$ac_link"
12073 case "(($ac_try" in
12074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12075 *) ac_try_echo
=$ac_try;;
12077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12078 (eval "$ac_link") 2>conftest.er1
12080 grep -v '^ *+' conftest.er1
>conftest.err
12082 cat conftest.err
>&5
12083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12084 (exit $ac_status); } &&
12085 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12086 { (case "(($ac_try" in
12087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12088 *) ac_try_echo=$ac_try;;
12090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12091 (eval "$ac_try") 2>&5
12093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12094 (exit $ac_status); }; } &&
12095 { ac_try='test -s conftest$ac_exeext'
12096 { (case "(($ac_try" in
12097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12098 *) ac_try_echo
=$ac_try;;
12100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12101 (eval "$ac_try") 2>&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); }; }; then
12105 eval "$as_ac_var=yes"
12107 echo "$as_me: failed program was:" >&5
12108 sed 's/^/| /' conftest.
$ac_ext >&5
12110 eval "$as_ac_var=no"
12113 rm -f core conftest.err conftest.
$ac_objext \
12114 conftest
$ac_exeext conftest.
$ac_ext
12116 ac_res
=`eval echo '${'$as_ac_var'}'`
12117 { echo "$as_me:$LINENO: result: $ac_res" >&5
12118 echo "${ECHO_T}$ac_res" >&6; }
12119 if test `eval echo '${'$as_ac_var'}'` = yes; then
12120 cat >>confdefs.h
<<_ACEOF
12121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12154 for ac_header
in assert.h ctype.h errno.h malloc.h memory.h stdlib.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
12327 for ac_header
in dl.h sys
/dl.h dld.h mach-o
/dyld.h
12329 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12330 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12333 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12334 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 ac_res
=`eval echo '${'$as_ac_Header'}'`
12337 { echo "$as_me:$LINENO: result: $ac_res" >&5
12338 echo "${ECHO_T}$ac_res" >&6; }
12340 # Is the header compilable?
12341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12343 cat >conftest.
$ac_ext <<_ACEOF
12346 cat confdefs.h
>>conftest.
$ac_ext
12347 cat >>conftest.
$ac_ext <<_ACEOF
12348 /* end confdefs.h. */
12349 $ac_includes_default
12350 #include <$ac_header>
12352 rm -f conftest.
$ac_objext
12353 if { (ac_try
="$ac_compile"
12354 case "(($ac_try" in
12355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } &&
12366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12367 { (case "(($ac_try" in
12368 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12369 *) ac_try_echo
=$ac_try;;
12371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12372 (eval "$ac_try") 2>&5
12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12375 (exit $ac_status); }; } &&
12376 { ac_try
='test -s conftest.$ac_objext'
12377 { (case "(($ac_try" in
12378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12379 *) ac_try_echo=$ac_try;;
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_try") 2>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); }; }; then
12386 ac_header_compiler=yes
12388 echo "$as_me: failed program was:" >&5
12389 sed 's/^/| /' conftest.$ac_ext >&5
12391 ac_header_compiler=no
12394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12396 echo "${ECHO_T}$ac_header_compiler" >&6; }
12398 # Is the header present?
12399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12401 cat >conftest.$ac_ext <<_ACEOF
12404 cat confdefs.h >>conftest.$ac_ext
12405 cat >>conftest.$ac_ext <<_ACEOF
12406 /* end confdefs.h. */
12407 #include <$ac_header>
12409 if { (ac_try="$ac_cpp conftest.$ac_ext"
12410 case "(($ac_try" in
12411 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12412 *) ac_try_echo
=$ac_try;;
12414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12417 grep -v '^ *+' conftest.er1
>conftest.err
12419 cat conftest.err
>&5
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); } >/dev
/null
; then
12422 if test -s conftest.err
; then
12423 ac_cpp_err
=$ac_c_preproc_warn_flag
12424 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12431 if test -z "$ac_cpp_err"; then
12432 ac_header_preproc
=yes
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.
$ac_ext >&5
12437 ac_header_preproc
=no
12440 rm -f conftest.err conftest.
$ac_ext
12441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12442 echo "${ECHO_T}$ac_header_preproc" >&6; }
12444 # So? What about this header?
12445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12451 ac_header_preproc
=yes
12454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12467 ## ----------------------------------- ##
12468 ## Report this to llvmbugs@cs.uiuc.edu ##
12469 ## ----------------------------------- ##
12471 ) |
sed "s/^/$as_me: WARNING: /" >&2
12474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12476 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 eval "$as_ac_Header=\$ac_header_preproc"
12481 ac_res
=`eval echo '${'$as_ac_Header'}'`
12482 { echo "$as_me:$LINENO: result: $ac_res" >&5
12483 echo "${ECHO_T}$ac_res" >&6; }
12486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12487 cat >>confdefs.h
<<_ACEOF
12488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12497 for ac_header
in string.h
strings.h
12499 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12500 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12503 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12504 echo $ECHO_N "(cached) $ECHO_C" >&6
12506 ac_res
=`eval echo '${'$as_ac_Header'}'`
12507 { echo "$as_me:$LINENO: result: $ac_res" >&5
12508 echo "${ECHO_T}$ac_res" >&6; }
12510 # Is the header compilable?
12511 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12512 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12513 cat >conftest.
$ac_ext <<_ACEOF
12516 cat confdefs.h
>>conftest.
$ac_ext
12517 cat >>conftest.
$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 $ac_includes_default
12520 #include <$ac_header>
12522 rm -f conftest.
$ac_objext
12523 if { (ac_try
="$ac_compile"
12524 case "(($ac_try" in
12525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_compile") 2>conftest.er1
12531 grep -v '^ *+' conftest.er1 >conftest.err
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } &&
12536 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12537 { (case "(($ac_try" in
12538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12539 *) ac_try_echo
=$ac_try;;
12541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12542 (eval "$ac_try") 2>&5
12544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12545 (exit $ac_status); }; } &&
12546 { ac_try
='test -s conftest.$ac_objext'
12547 { (case "(($ac_try" in
12548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_try") 2>&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); }; }; then
12556 ac_header_compiler=yes
12558 echo "$as_me: failed program was:" >&5
12559 sed 's/^/| /' conftest.$ac_ext >&5
12561 ac_header_compiler=no
12564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12566 echo "${ECHO_T}$ac_header_compiler" >&6; }
12568 # Is the header present?
12569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12571 cat >conftest.$ac_ext <<_ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 #include <$ac_header>
12579 if { (ac_try="$ac_cpp conftest.$ac_ext"
12580 case "(($ac_try" in
12581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12582 *) ac_try_echo
=$ac_try;;
12584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12587 grep -v '^ *+' conftest.er1
>conftest.err
12589 cat conftest.err
>&5
12590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } >/dev
/null
; then
12592 if test -s conftest.err
; then
12593 ac_cpp_err
=$ac_c_preproc_warn_flag
12594 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12601 if test -z "$ac_cpp_err"; then
12602 ac_header_preproc
=yes
12604 echo "$as_me: failed program was:" >&5
12605 sed 's/^/| /' conftest.
$ac_ext >&5
12607 ac_header_preproc
=no
12610 rm -f conftest.err conftest.
$ac_ext
12611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12612 echo "${ECHO_T}$ac_header_preproc" >&6; }
12614 # So? What about this header?
12615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12621 ac_header_preproc
=yes
12624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12637 ## ----------------------------------- ##
12638 ## Report this to llvmbugs@cs.uiuc.edu ##
12639 ## ----------------------------------- ##
12641 ) |
sed "s/^/$as_me: WARNING: /" >&2
12644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12646 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12647 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 eval "$as_ac_Header=\$ac_header_preproc"
12651 ac_res
=`eval echo '${'$as_ac_Header'}'`
12652 { echo "$as_me:$LINENO: result: $ac_res" >&5
12653 echo "${ECHO_T}$ac_res" >&6; }
12656 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12657 cat >>confdefs.h
<<_ACEOF
12658 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12668 for ac_func
in strchr index
12670 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12673 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12674 echo $ECHO_N "(cached) $ECHO_C" >&6
12676 cat >conftest.
$ac_ext <<_ACEOF
12679 cat confdefs.h
>>conftest.
$ac_ext
12680 cat >>conftest.
$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12684 #define $ac_func innocuous_$ac_func
12686 /* System header to define __stub macros and hopefully few prototypes,
12687 which can conflict with char $ac_func (); below.
12688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12689 <limits.h> exists even on freestanding compilers. */
12692 # include <limits.h>
12694 # include <assert.h>
12699 /* Override any GCC internal prototype to avoid an error.
12700 Use char because int might match the return type of a GCC
12701 builtin and then its argument prototype would still apply. */
12706 /* The GNU C library defines this for functions which it implements
12707 to always fail with ENOSYS. Some functions are actually named
12708 something starting with __ and the normal name is an alias. */
12709 #if defined __stub_$ac_func || defined __stub___$ac_func
12716 return $ac_func ();
12721 rm -f conftest.
$ac_objext conftest
$ac_exeext
12722 if { (ac_try
="$ac_link"
12723 case "(($ac_try" in
12724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12725 *) ac_try_echo=$ac_try;;
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728 (eval "$ac_link") 2>conftest.er1
12730 grep -v '^ *+' conftest.er1 >conftest.err
12732 cat conftest.err >&5
12733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734 (exit $ac_status); } &&
12735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736 { (case "(($ac_try" in
12737 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12738 *) ac_try_echo
=$ac_try;;
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741 (eval "$ac_try") 2>&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); }; } &&
12745 { ac_try
='test -s conftest$ac_exeext'
12746 { (case "(($ac_try" in
12747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12748 *) ac_try_echo=$ac_try;;
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751 (eval "$ac_try") 2>&5
12753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754 (exit $ac_status); }; }; then
12755 eval "$as_ac_var=yes"
12757 echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12760 eval "$as_ac_var=no"
12763 rm -f core conftest.err conftest.$ac_objext \
12764 conftest$ac_exeext conftest.$ac_ext
12766 ac_res=`eval echo '${'$as_ac_var'}'`
12767 { echo "$as_me:$LINENO: result: $ac_res" >&5
12768 echo "${ECHO_T}$ac_res" >&6; }
12769 if test `eval echo '${'$as_ac_var'}'` = yes; then
12770 cat >>confdefs.h <<_ACEOF
12771 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12779 for ac_func in strrchr rindex
12781 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12785 echo $ECHO_N "(cached) $ECHO_C" >&6
12787 cat >conftest.$ac_ext <<_ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h. */
12793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12795 #define $ac_func innocuous_$ac_func
12797 /* System header to define __stub macros and hopefully few prototypes,
12798 which can conflict with char $ac_func (); below.
12799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800 <limits.h> exists even on freestanding compilers. */
12803 # include <limits.h>
12805 # include <assert.h>
12810 /* Override any GCC internal prototype to avoid an error.
12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12817 /* The GNU C library defines this for functions which it implements
12818 to always fail with ENOSYS. Some functions are actually named
12819 something starting with __ and the normal name is an alias. */
12820 #if defined __stub_$ac_func || defined __stub___$ac_func
12827 return $ac_func ();
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (ac_try="$ac_link"
12834 case "(($ac_try" in
12835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12836 *) ac_try_echo
=$ac_try;;
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_link") 2>conftest.er1
12841 grep -v '^ *+' conftest.er1
>conftest.err
12843 cat conftest.err
>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } &&
12846 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847 { (case "(($ac_try" in
12848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12849 *) ac_try_echo=$ac_try;;
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852 (eval "$ac_try") 2>&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); }; } &&
12856 { ac_try='test -s conftest$ac_exeext'
12857 { (case "(($ac_try" in
12858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12859 *) ac_try_echo
=$ac_try;;
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862 (eval "$ac_try") 2>&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); }; }; then
12866 eval "$as_ac_var=yes"
12868 echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.
$ac_ext >&5
12871 eval "$as_ac_var=no"
12874 rm -f core conftest.err conftest.
$ac_objext \
12875 conftest
$ac_exeext conftest.
$ac_ext
12877 ac_res
=`eval echo '${'$as_ac_var'}'`
12878 { echo "$as_me:$LINENO: result: $ac_res" >&5
12879 echo "${ECHO_T}$ac_res" >&6; }
12880 if test `eval echo '${'$as_ac_var'}'` = yes; then
12881 cat >>confdefs.h
<<_ACEOF
12882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12890 for ac_func
in memcpy bcopy
12892 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12895 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 cat >conftest.
$ac_ext <<_ACEOF
12901 cat confdefs.h
>>conftest.
$ac_ext
12902 cat >>conftest.
$ac_ext <<_ACEOF
12903 /* end confdefs.h. */
12904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12906 #define $ac_func innocuous_$ac_func
12908 /* System header to define __stub macros and hopefully few prototypes,
12909 which can conflict with char $ac_func (); below.
12910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911 <limits.h> exists even on freestanding compilers. */
12914 # include <limits.h>
12916 # include <assert.h>
12921 /* Override any GCC internal prototype to avoid an error.
12922 Use char because int might match the return type of a GCC
12923 builtin and then its argument prototype would still apply. */
12928 /* The GNU C library defines this for functions which it implements
12929 to always fail with ENOSYS. Some functions are actually named
12930 something starting with __ and the normal name is an alias. */
12931 #if defined __stub_$ac_func || defined __stub___$ac_func
12938 return $ac_func ();
12943 rm -f conftest.
$ac_objext conftest
$ac_exeext
12944 if { (ac_try
="$ac_link"
12945 case "(($ac_try" in
12946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12947 *) ac_try_echo=$ac_try;;
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950 (eval "$ac_link") 2>conftest.er1
12952 grep -v '^ *+' conftest.er1 >conftest.err
12954 cat conftest.err >&5
12955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956 (exit $ac_status); } &&
12957 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12958 { (case "(($ac_try" in
12959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12960 *) ac_try_echo
=$ac_try;;
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963 (eval "$ac_try") 2>&5
12965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966 (exit $ac_status); }; } &&
12967 { ac_try
='test -s conftest$ac_exeext'
12968 { (case "(($ac_try" in
12969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12970 *) ac_try_echo=$ac_try;;
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973 (eval "$ac_try") 2>&5
12975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976 (exit $ac_status); }; }; then
12977 eval "$as_ac_var=yes"
12979 echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12982 eval "$as_ac_var=no"
12985 rm -f core conftest.err conftest.$ac_objext \
12986 conftest$ac_exeext conftest.$ac_ext
12988 ac_res=`eval echo '${'$as_ac_var'}'`
12989 { echo "$as_me:$LINENO: result: $ac_res" >&5
12990 echo "${ECHO_T}$ac_res" >&6; }
12991 if test `eval echo '${'$as_ac_var'}'` = yes; then
12992 cat >>confdefs.h <<_ACEOF
12993 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13001 for ac_func in memmove strcmp
13003 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
13004 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13005 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13006 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 cat >conftest.$ac_ext <<_ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13015 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13017 #define $ac_func innocuous_$ac_func
13019 /* System header to define __stub macros and hopefully few prototypes,
13020 which can conflict with char $ac_func (); below.
13021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13022 <limits.h> exists even on freestanding compilers. */
13025 # include <limits.h>
13027 # include <assert.h>
13032 /* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13039 /* The GNU C library defines this for functions which it implements
13040 to always fail with ENOSYS. Some functions are actually named
13041 something starting with __ and the normal name is an alias. */
13042 #if defined __stub_$ac_func || defined __stub___$ac_func
13049 return $ac_func ();
13054 rm -f conftest.$ac_objext conftest$ac_exeext
13055 if { (ac_try="$ac_link"
13056 case "(($ac_try" in
13057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13058 *) ac_try_echo
=$ac_try;;
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_link") 2>conftest.er1
13063 grep -v '^ *+' conftest.er1
>conftest.err
13065 cat conftest.err
>&5
13066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13067 (exit $ac_status); } &&
13068 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13069 { (case "(($ac_try" in
13070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13071 *) ac_try_echo=$ac_try;;
13073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13074 (eval "$ac_try") 2>&5
13076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13077 (exit $ac_status); }; } &&
13078 { ac_try='test -s conftest$ac_exeext'
13079 { (case "(($ac_try" in
13080 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13081 *) ac_try_echo
=$ac_try;;
13083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13084 (eval "$ac_try") 2>&5
13086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13087 (exit $ac_status); }; }; then
13088 eval "$as_ac_var=yes"
13090 echo "$as_me: failed program was:" >&5
13091 sed 's/^/| /' conftest.
$ac_ext >&5
13093 eval "$as_ac_var=no"
13096 rm -f core conftest.err conftest.
$ac_objext \
13097 conftest
$ac_exeext conftest.
$ac_ext
13099 ac_res
=`eval echo '${'$as_ac_var'}'`
13100 { echo "$as_me:$LINENO: result: $ac_res" >&5
13101 echo "${ECHO_T}$ac_res" >&6; }
13102 if test `eval echo '${'$as_ac_var'}'` = yes; then
13103 cat >>confdefs.h
<<_ACEOF
13104 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13113 for ac_func
in closedir opendir readdir
13115 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13118 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13119 echo $ECHO_N "(cached) $ECHO_C" >&6
13121 cat >conftest.
$ac_ext <<_ACEOF
13124 cat confdefs.h
>>conftest.
$ac_ext
13125 cat >>conftest.
$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13129 #define $ac_func innocuous_$ac_func
13131 /* System header to define __stub macros and hopefully few prototypes,
13132 which can conflict with char $ac_func (); below.
13133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13134 <limits.h> exists even on freestanding compilers. */
13137 # include <limits.h>
13139 # include <assert.h>
13144 /* Override any GCC internal prototype to avoid an error.
13145 Use char because int might match the return type of a GCC
13146 builtin and then its argument prototype would still apply. */
13151 /* The GNU C library defines this for functions which it implements
13152 to always fail with ENOSYS. Some functions are actually named
13153 something starting with __ and the normal name is an alias. */
13154 #if defined __stub_$ac_func || defined __stub___$ac_func
13161 return $ac_func ();
13166 rm -f conftest.
$ac_objext conftest
$ac_exeext
13167 if { (ac_try
="$ac_link"
13168 case "(($ac_try" in
13169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13170 *) ac_try_echo=$ac_try;;
13172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13173 (eval "$ac_link") 2>conftest.er1
13175 grep -v '^ *+' conftest.er1 >conftest.err
13177 cat conftest.err >&5
13178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13179 (exit $ac_status); } &&
13180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13181 { (case "(($ac_try" in
13182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13183 *) ac_try_echo
=$ac_try;;
13185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_try") 2>&5
13188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13189 (exit $ac_status); }; } &&
13190 { ac_try
='test -s conftest$ac_exeext'
13191 { (case "(($ac_try" in
13192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13193 *) ac_try_echo=$ac_try;;
13195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13196 (eval "$ac_try") 2>&5
13198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13199 (exit $ac_status); }; }; then
13200 eval "$as_ac_var=yes"
13202 echo "$as_me: failed program was:" >&5
13203 sed 's/^/| /' conftest.$ac_ext >&5
13205 eval "$as_ac_var=no"
13208 rm -f core conftest.err conftest.$ac_objext \
13209 conftest$ac_exeext conftest.$ac_ext
13211 ac_res=`eval echo '${'$as_ac_var'}'`
13212 { echo "$as_me:$LINENO: result: $ac_res" >&5
13213 echo "${ECHO_T}$ac_res" >&6; }
13214 if test `eval echo '${'$as_ac_var'}'` = yes; then
13215 cat >>confdefs.h <<_ACEOF
13216 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13224 if test "$WITH_LLVMGCCDIR" = "default" ; then
13225 LLVMGCC="llvm-gcc${EXEEXT}"
13226 LLVMGXX="llvm-g++${EXEEXT}"
13227 LLVMGCCCOMMAND="$LLVMGCC"
13228 LLVMGXXCOMMAND="$LLVMGXX"
13229 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13231 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13233 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13234 set dummy $LLVMGCC; ac_word=$2
13235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13237 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13242 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13246 for as_dir in $PATH
13249 test -z "$as_dir" && as_dir=.
13250 for ac_exec_ext in '' $ac_executable_extensions; do
13251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13252 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13253 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 LLVMGCC=$ac_cv_path_LLVMGCC
13264 if test -n "$LLVMGCC"; then
13265 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13266 echo "${ECHO_T}$LLVMGCC" >&6; }
13268 { echo "$as_me:$LINENO: result: no" >&5
13269 echo "${ECHO_T}no" >&6; }
13273 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13274 set dummy $LLVMGXX; ac_word=$2
13275 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13277 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13278 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13286 for as_dir in $PATH
13289 test -z "$as_dir" && as_dir=.
13290 for ac_exec_ext in '' $ac_executable_extensions; do
13291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13292 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13293 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13303 LLVMGXX=$ac_cv_path_LLVMGXX
13304 if test -n "$LLVMGXX"; then
13305 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13306 echo "${ECHO_T}$LLVMGXX" >&6; }
13308 { echo "$as_me:$LINENO: result: no" >&5
13309 echo "${ECHO_T}no" >&6; }
13314 if test -z "$LLVMGCC"; then
13315 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13316 LLVMGCCCOMMAND="$LLVMGCC"
13318 if test -z "$LLVMGXX"; then
13319 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13320 LLVMGXXCOMMAND="$LLVMGXX"
13327 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13329 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13334 # Check whether --with-llvmcc was given.
13335 if test "${with_llvmcc+set}" = set; then
13336 withval=$with_llvmcc;
13341 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13342 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13343 if test "$with_llvmcc" != "check"; then
13344 if (test "$with_llvmcc" != "llvm-gcc" &&
13345 test "$with_llvmcc" != "clang" &&
13346 test "$with_llvmcc" != "none"); then
13347 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13348 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13349 { (exit 1); exit 1; }; }
13351 WITH_LLVMCC="$with_llvmcc"
13352 elif test -n "$LLVMGCC"; then
13353 WITH_LLVMCC=llvm-gcc
13354 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13359 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13360 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13361 LLVMCC_OPTION=$WITH_LLVMCC
13364 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13365 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13378 if test "$GCC" != "yes" && test "$ICC" != "yes"
13380 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13381 echo "$as_me: error: gcc|icc required but not found" >&2;}
13382 { (exit 1); exit 1; }; }
13385 if test "$GXX" != "yes" && test "$IXX" != "yes"
13387 { { echo "$as_me:$LINENO: error: g++|clang++|icc required but not found" >&5
13388 echo "$as_me: error: g++|clang++|icc required but not found" >&2;}
13389 { (exit 1); exit 1; }; }
13392 if test "$GCC" = "yes"
13394 cat >conftest.$ac_ext <<_ACEOF
13395 #if !defined(__GNUC__) || __GNUC__ < 3
13396 #error Unsupported GCC version
13400 rm -f conftest.$ac_objext
13401 if { (ac_try="$ac_compile"
13402 case "(($ac_try" in
13403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13404 *) ac_try_echo
=$ac_try;;
13406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13407 (eval "$ac_compile") 2>conftest.er1
13409 grep -v '^ *+' conftest.er1
>conftest.err
13411 cat conftest.err
>&5
13412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13413 (exit $ac_status); } &&
13414 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13415 { (case "(($ac_try" in
13416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_try") 2>&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); }; } &&
13424 { ac_try='test -s conftest.$ac_objext'
13425 { (case "(($ac_try" in
13426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13427 *) ac_try_echo
=$ac_try;;
13429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13430 (eval "$ac_try") 2>&5
13432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13433 (exit $ac_status); }; }; then
13436 echo "$as_me: failed program was:" >&5
13437 sed 's/^/| /' conftest.
$ac_ext >&5
13439 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13440 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13441 { (exit 1); exit 1; }; }
13444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13447 if test -z "$llvm_cv_gnu_make_command"
13449 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13450 echo "$as_me: error: GNU Make required but not found" >&2;}
13451 { (exit 1); exit 1; }; }
13454 { echo "$as_me:$LINENO: result: ok" >&5
13455 echo "${ECHO_T}ok" >&6; }
13457 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13458 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13459 NO_VARIADIC_MACROS
=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13461 NO_MISSING_FIELD_INITIALIZERS
=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13463 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13464 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13468 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13469 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13470 if test "${ac_cv_lib_m_sin+set}" = set; then
13471 echo $ECHO_N "(cached) $ECHO_C" >&6
13473 ac_check_lib_save_LIBS
=$LIBS
13475 cat >conftest.
$ac_ext <<_ACEOF
13478 cat confdefs.h
>>conftest.
$ac_ext
13479 cat >>conftest.
$ac_ext <<_ACEOF
13480 /* end confdefs.h. */
13482 /* Override any GCC internal prototype to avoid an error.
13483 Use char because int might match the return type of a GCC
13484 builtin and then its argument prototype would still apply. */
13497 rm -f conftest.
$ac_objext conftest
$ac_exeext
13498 if { (ac_try
="$ac_link"
13499 case "(($ac_try" in
13500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13501 *) ac_try_echo=$ac_try;;
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_link") 2>conftest.er1
13506 grep -v '^ *+' conftest.er1 >conftest.err
13508 cat conftest.err >&5
13509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13510 (exit $ac_status); } &&
13511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13512 { (case "(($ac_try" in
13513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13514 *) ac_try_echo
=$ac_try;;
13516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13517 (eval "$ac_try") 2>&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); }; } &&
13521 { ac_try
='test -s conftest$ac_exeext'
13522 { (case "(($ac_try" in
13523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13524 *) ac_try_echo=$ac_try;;
13526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13527 (eval "$ac_try") 2>&5
13529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13530 (exit $ac_status); }; }; then
13531 ac_cv_lib_m_sin=yes
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13539 rm -f core conftest.err conftest.$ac_objext \
13540 conftest$ac_exeext conftest.$ac_ext
13541 LIBS=$ac_check_lib_save_LIBS
13543 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13544 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13545 if test $ac_cv_lib_m_sin = yes; then
13546 cat >>confdefs.h <<_ACEOF
13547 #define HAVE_LIBM 1
13554 if test "$llvm_cv_os_type" = "MingW" ; then
13556 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13557 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13558 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13559 echo $ECHO_N "(cached) $ECHO_C" >&6
13561 ac_check_lib_save_LIBS=$LIBS
13562 LIBS="-limagehlp $LIBS"
13563 cat >conftest.$ac_ext <<_ACEOF
13566 cat confdefs.h >>conftest.$ac_ext
13567 cat >>conftest.$ac_ext <<_ACEOF
13568 /* end confdefs.h. */
13579 rm -f conftest.$ac_objext conftest$ac_exeext
13580 if { (ac_try="$ac_link"
13581 case "(($ac_try" in
13582 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13583 *) ac_try_echo
=$ac_try;;
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586 (eval "$ac_link") 2>conftest.er1
13588 grep -v '^ *+' conftest.er1
>conftest.err
13590 cat conftest.err
>&5
13591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13592 (exit $ac_status); } &&
13593 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13594 { (case "(($ac_try" in
13595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13596 *) ac_try_echo=$ac_try;;
13598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13599 (eval "$ac_try") 2>&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); }; } &&
13603 { ac_try='test -s conftest$ac_exeext'
13604 { (case "(($ac_try" in
13605 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13606 *) ac_try_echo
=$ac_try;;
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_try") 2>&5
13611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13612 (exit $ac_status); }; }; then
13613 ac_cv_lib_imagehlp_main
=yes
13615 echo "$as_me: failed program was:" >&5
13616 sed 's/^/| /' conftest.
$ac_ext >&5
13618 ac_cv_lib_imagehlp_main
=no
13621 rm -f core conftest.err conftest.
$ac_objext \
13622 conftest
$ac_exeext conftest.
$ac_ext
13623 LIBS
=$ac_check_lib_save_LIBS
13625 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13626 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13627 if test $ac_cv_lib_imagehlp_main = yes; then
13628 cat >>confdefs.h
<<_ACEOF
13629 #define HAVE_LIBIMAGEHLP 1
13632 LIBS
="-limagehlp $LIBS"
13637 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13638 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13639 if test "${ac_cv_lib_psapi_main+set}" = set; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13642 ac_check_lib_save_LIBS
=$LIBS
13643 LIBS
="-lpsapi $LIBS"
13644 cat >conftest.
$ac_ext <<_ACEOF
13647 cat confdefs.h
>>conftest.
$ac_ext
13648 cat >>conftest.
$ac_ext <<_ACEOF
13649 /* end confdefs.h. */
13660 rm -f conftest.
$ac_objext conftest
$ac_exeext
13661 if { (ac_try
="$ac_link"
13662 case "(($ac_try" in
13663 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13664 *) ac_try_echo=$ac_try;;
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667 (eval "$ac_link") 2>conftest.er1
13669 grep -v '^ *+' conftest.er1 >conftest.err
13671 cat conftest.err >&5
13672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673 (exit $ac_status); } &&
13674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13675 { (case "(($ac_try" in
13676 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13677 *) ac_try_echo
=$ac_try;;
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_try") 2>&5
13682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683 (exit $ac_status); }; } &&
13684 { ac_try
='test -s conftest$ac_exeext'
13685 { (case "(($ac_try" in
13686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_try") 2>&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); }; }; then
13694 ac_cv_lib_psapi_main=yes
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13699 ac_cv_lib_psapi_main=no
13702 rm -f core conftest.err conftest.$ac_objext \
13703 conftest$ac_exeext conftest.$ac_ext
13704 LIBS=$ac_check_lib_save_LIBS
13706 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13707 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13708 if test $ac_cv_lib_psapi_main = yes; then
13709 cat >>confdefs.h <<_ACEOF
13710 #define HAVE_LIBPSAPI 1
13713 LIBS="-lpsapi $LIBS"
13719 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13720 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13721 if test "${ac_cv_search_dlopen+set}" = set; then
13722 echo $ECHO_N "(cached) $ECHO_C" >&6
13724 ac_func_search_save_LIBS=$LIBS
13725 cat >conftest.$ac_ext <<_ACEOF
13728 cat confdefs.h >>conftest.$ac_ext
13729 cat >>conftest.$ac_ext <<_ACEOF
13730 /* end confdefs.h. */
13732 /* Override any GCC internal prototype to avoid an error.
13733 Use char because int might match the return type of a GCC
13734 builtin and then its argument prototype would still apply. */
13747 for ac_lib in '' dl; do
13748 if test -z "$ac_lib"; then
13749 ac_res="none required"
13752 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13754 rm -f conftest.$ac_objext conftest$ac_exeext
13755 if { (ac_try="$ac_link"
13756 case "(($ac_try" in
13757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13758 *) ac_try_echo
=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_link") 2>conftest.er1
13763 grep -v '^ *+' conftest.er1
>conftest.err
13765 cat conftest.err
>&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } &&
13768 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13769 { (case "(($ac_try" in
13770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13771 *) ac_try_echo=$ac_try;;
13773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13774 (eval "$ac_try") 2>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); }; } &&
13778 { ac_try='test -s conftest$ac_exeext'
13779 { (case "(($ac_try" in
13780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13781 *) ac_try_echo
=$ac_try;;
13783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13784 (eval "$ac_try") 2>&5
13786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13787 (exit $ac_status); }; }; then
13788 ac_cv_search_dlopen
=$ac_res
13790 echo "$as_me: failed program was:" >&5
13791 sed 's/^/| /' conftest.
$ac_ext >&5
13796 rm -f core conftest.err conftest.
$ac_objext \
13798 if test "${ac_cv_search_dlopen+set}" = set; then
13802 if test "${ac_cv_search_dlopen+set}" = set; then
13805 ac_cv_search_dlopen
=no
13807 rm conftest.
$ac_ext
13808 LIBS
=$ac_func_search_save_LIBS
13810 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13811 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13812 ac_res
=$ac_cv_search_dlopen
13813 if test "$ac_res" != no
; then
13814 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13816 cat >>confdefs.h
<<\_ACEOF
13817 #define HAVE_DLOPEN 1
13821 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13822 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13826 if test "$llvm_cv_enable_libffi" = "yes" ; then
13827 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13828 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13829 if test "${ac_cv_search_ffi_call+set}" = set; then
13830 echo $ECHO_N "(cached) $ECHO_C" >&6
13832 ac_func_search_save_LIBS
=$LIBS
13833 cat >conftest.
$ac_ext <<_ACEOF
13836 cat confdefs.h
>>conftest.
$ac_ext
13837 cat >>conftest.
$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13840 /* Override any GCC internal prototype to avoid an error.
13841 Use char because int might match the return type of a GCC
13842 builtin and then its argument prototype would still apply. */
13850 return ffi_call ();
13855 for ac_lib
in '' ffi
; do
13856 if test -z "$ac_lib"; then
13857 ac_res
="none required"
13860 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13862 rm -f conftest.
$ac_objext conftest
$ac_exeext
13863 if { (ac_try
="$ac_link"
13864 case "(($ac_try" in
13865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13866 *) ac_try_echo=$ac_try;;
13868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13869 (eval "$ac_link") 2>conftest.er1
13871 grep -v '^ *+' conftest.er1 >conftest.err
13873 cat conftest.err >&5
13874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13875 (exit $ac_status); } &&
13876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13877 { (case "(($ac_try" in
13878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13879 *) ac_try_echo
=$ac_try;;
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_try") 2>&5
13884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); }; } &&
13886 { ac_try
='test -s conftest$ac_exeext'
13887 { (case "(($ac_try" in
13888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13889 *) ac_try_echo=$ac_try;;
13891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13892 (eval "$ac_try") 2>&5
13894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13895 (exit $ac_status); }; }; then
13896 ac_cv_search_ffi_call=$ac_res
13898 echo "$as_me: failed program was:" >&5
13899 sed 's/^/| /' conftest.$ac_ext >&5
13904 rm -f core conftest.err conftest.$ac_objext \
13906 if test "${ac_cv_search_ffi_call+set}" = set; then
13910 if test "${ac_cv_search_ffi_call+set}" = set; then
13913 ac_cv_search_ffi_call=no
13915 rm conftest.$ac_ext
13916 LIBS=$ac_func_search_save_LIBS
13918 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13919 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13920 ac_res=$ac_cv_search_ffi_call
13921 if test "$ac_res" != no; then
13922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13924 cat >>confdefs.h <<\_ACEOF
13925 #define HAVE_FFI_CALL 1
13929 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13930 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13931 { (exit 1); exit 1; }; }
13936 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13937 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13938 if test "${ac_cv_search_mallinfo+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 ac_func_search_save_LIBS=$LIBS
13942 cat >conftest.$ac_ext <<_ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13959 return mallinfo ();
13964 for ac_lib in '' malloc; do
13965 if test -z "$ac_lib"; then
13966 ac_res="none required"
13969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13971 rm -f conftest.$ac_objext conftest$ac_exeext
13972 if { (ac_try="$ac_link"
13973 case "(($ac_try" in
13974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13975 *) ac_try_echo
=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_link") 2>conftest.er1
13980 grep -v '^ *+' conftest.er1
>conftest.err
13982 cat conftest.err
>&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13986 { (case "(($ac_try" in
13987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest$ac_exeext'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13998 *) ac_try_echo
=$ac_try;;
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
14005 ac_cv_search_mallinfo
=$ac_res
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.
$ac_ext >&5
14013 rm -f core conftest.err conftest.
$ac_objext \
14015 if test "${ac_cv_search_mallinfo+set}" = set; then
14019 if test "${ac_cv_search_mallinfo+set}" = set; then
14022 ac_cv_search_mallinfo
=no
14024 rm conftest.
$ac_ext
14025 LIBS
=$ac_func_search_save_LIBS
14027 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
14028 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
14029 ac_res
=$ac_cv_search_mallinfo
14030 if test "$ac_res" != no
; then
14031 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14033 cat >>confdefs.h
<<\_ACEOF
14034 #define HAVE_MALLINFO 1
14040 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
14042 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
14043 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
14044 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 ac_check_lib_save_LIBS
=$LIBS
14048 LIBS
="-lpthread $LIBS"
14049 cat >conftest.
$ac_ext <<_ACEOF
14052 cat confdefs.h
>>conftest.
$ac_ext
14053 cat >>conftest.
$ac_ext <<_ACEOF
14054 /* end confdefs.h. */
14056 /* Override any GCC internal prototype to avoid an error.
14057 Use char because int might match the return type of a GCC
14058 builtin and then its argument prototype would still apply. */
14062 char pthread_mutex_init ();
14066 return pthread_mutex_init ();
14071 rm -f conftest.
$ac_objext conftest
$ac_exeext
14072 if { (ac_try
="$ac_link"
14073 case "(($ac_try" in
14074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_link") 2>conftest.er1
14080 grep -v '^ *+' conftest.er1 >conftest.err
14082 cat conftest.err >&5
14083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14084 (exit $ac_status); } &&
14085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14086 { (case "(($ac_try" in
14087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14088 *) ac_try_echo
=$ac_try;;
14090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14091 (eval "$ac_try") 2>&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); }; } &&
14095 { ac_try
='test -s conftest$ac_exeext'
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_try") 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; }; then
14105 ac_cv_lib_pthread_pthread_mutex_init=yes
14107 echo "$as_me: failed program was:" >&5
14108 sed 's/^/| /' conftest.$ac_ext >&5
14110 ac_cv_lib_pthread_pthread_mutex_init=no
14113 rm -f core conftest.err conftest.$ac_objext \
14114 conftest$ac_exeext conftest.$ac_ext
14115 LIBS=$ac_check_lib_save_LIBS
14117 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14118 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14119 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14120 cat >>confdefs.h <<_ACEOF
14121 #define HAVE_LIBPTHREAD 1
14124 LIBS="-lpthread $LIBS"
14128 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14129 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14130 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 ac_func_search_save_LIBS=$LIBS
14134 cat >conftest.$ac_ext <<_ACEOF
14137 cat confdefs.h >>conftest.$ac_ext
14138 cat >>conftest.$ac_ext <<_ACEOF
14139 /* end confdefs.h. */
14141 /* Override any GCC internal prototype to avoid an error.
14142 Use char because int might match the return type of a GCC
14143 builtin and then its argument prototype would still apply. */
14147 char pthread_mutex_lock ();
14151 return pthread_mutex_lock ();
14156 for ac_lib in '' pthread; do
14157 if test -z "$ac_lib"; then
14158 ac_res="none required"
14161 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14163 rm -f conftest.$ac_objext conftest$ac_exeext
14164 if { (ac_try="$ac_link"
14165 case "(($ac_try" in
14166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14167 *) ac_try_echo
=$ac_try;;
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_link") 2>conftest.er1
14172 grep -v '^ *+' conftest.er1
>conftest.err
14174 cat conftest.err
>&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } &&
14177 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14178 { (case "(($ac_try" in
14179 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_try") 2>&5
14185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14186 (exit $ac_status); }; } &&
14187 { ac_try='test -s conftest$ac_exeext'
14188 { (case "(($ac_try" in
14189 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14190 *) ac_try_echo
=$ac_try;;
14192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14193 (eval "$ac_try") 2>&5
14195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14196 (exit $ac_status); }; }; then
14197 ac_cv_search_pthread_mutex_lock
=$ac_res
14199 echo "$as_me: failed program was:" >&5
14200 sed 's/^/| /' conftest.
$ac_ext >&5
14205 rm -f core conftest.err conftest.
$ac_objext \
14207 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14211 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14214 ac_cv_search_pthread_mutex_lock
=no
14216 rm conftest.
$ac_ext
14217 LIBS
=$ac_func_search_save_LIBS
14219 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14220 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14221 ac_res
=$ac_cv_search_pthread_mutex_lock
14222 if test "$ac_res" != no
; then
14223 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14225 cat >>confdefs.h
<<\_ACEOF
14226 #define HAVE_PTHREAD_MUTEX_LOCK 1
14231 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14232 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14233 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14234 echo $ECHO_N "(cached) $ECHO_C" >&6
14236 ac_func_search_save_LIBS
=$LIBS
14237 cat >conftest.
$ac_ext <<_ACEOF
14240 cat confdefs.h
>>conftest.
$ac_ext
14241 cat >>conftest.
$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14244 /* Override any GCC internal prototype to avoid an error.
14245 Use char because int might match the return type of a GCC
14246 builtin and then its argument prototype would still apply. */
14250 char pthread_rwlock_init ();
14254 return pthread_rwlock_init ();
14259 for ac_lib
in '' pthread
; do
14260 if test -z "$ac_lib"; then
14261 ac_res
="none required"
14264 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14266 rm -f conftest.
$ac_objext conftest
$ac_exeext
14267 if { (ac_try
="$ac_link"
14268 case "(($ac_try" in
14269 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14270 *) ac_try_echo=$ac_try;;
14272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273 (eval "$ac_link") 2>conftest.er1
14275 grep -v '^ *+' conftest.er1 >conftest.err
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } &&
14280 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14281 { (case "(($ac_try" in
14282 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14283 *) ac_try_echo
=$ac_try;;
14285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14286 (eval "$ac_try") 2>&5
14288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14289 (exit $ac_status); }; } &&
14290 { ac_try
='test -s conftest$ac_exeext'
14291 { (case "(($ac_try" in
14292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_try") 2>&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); }; }; then
14300 ac_cv_search_pthread_rwlock_init=$ac_res
14302 echo "$as_me: failed program was:" >&5
14303 sed 's/^/| /' conftest.$ac_ext >&5
14308 rm -f core conftest.err conftest.$ac_objext \
14310 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14314 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14317 ac_cv_search_pthread_rwlock_init=no
14319 rm conftest.$ac_ext
14320 LIBS=$ac_func_search_save_LIBS
14322 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14323 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14324 ac_res=$ac_cv_search_pthread_rwlock_init
14325 if test "$ac_res" != no; then
14326 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14328 cat >>confdefs.h <<\_ACEOF
14329 #define HAVE_PTHREAD_RWLOCK_INIT 1
14334 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14335 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14336 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 ac_func_search_save_LIBS=$LIBS
14340 cat >conftest.$ac_ext <<_ACEOF
14343 cat confdefs.h >>conftest.$ac_ext
14344 cat >>conftest.$ac_ext <<_ACEOF
14345 /* end confdefs.h. */
14347 /* Override any GCC internal prototype to avoid an error.
14348 Use char because int might match the return type of a GCC
14349 builtin and then its argument prototype would still apply. */
14353 char pthread_getspecific ();
14357 return pthread_getspecific ();
14362 for ac_lib in '' pthread; do
14363 if test -z "$ac_lib"; then
14364 ac_res="none required"
14367 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14369 rm -f conftest.$ac_objext conftest$ac_exeext
14370 if { (ac_try="$ac_link"
14371 case "(($ac_try" in
14372 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14373 *) ac_try_echo
=$ac_try;;
14375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14376 (eval "$ac_link") 2>conftest.er1
14378 grep -v '^ *+' conftest.er1
>conftest.err
14380 cat conftest.err
>&5
14381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14382 (exit $ac_status); } &&
14383 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14384 { (case "(($ac_try" in
14385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14386 *) ac_try_echo=$ac_try;;
14388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14389 (eval "$ac_try") 2>&5
14391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14392 (exit $ac_status); }; } &&
14393 { ac_try='test -s conftest$ac_exeext'
14394 { (case "(($ac_try" in
14395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14396 *) ac_try_echo
=$ac_try;;
14398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14399 (eval "$ac_try") 2>&5
14401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14402 (exit $ac_status); }; }; then
14403 ac_cv_search_pthread_getspecific
=$ac_res
14405 echo "$as_me: failed program was:" >&5
14406 sed 's/^/| /' conftest.
$ac_ext >&5
14411 rm -f core conftest.err conftest.
$ac_objext \
14413 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14417 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14420 ac_cv_search_pthread_getspecific
=no
14422 rm conftest.
$ac_ext
14423 LIBS
=$ac_func_search_save_LIBS
14425 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14426 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14427 ac_res
=$ac_cv_search_pthread_getspecific
14428 if test "$ac_res" != no
; then
14429 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14431 cat >>confdefs.h
<<\_ACEOF
14432 #define HAVE_PTHREAD_GETSPECIFIC 1
14440 # Check whether --with-udis86 was given.
14441 if test "${with_udis86+set}" = set; then
14442 withval
=$with_udis86;
14447 *) LDFLAGS
="$LDFLAGS -L${withval}" ;;
14450 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14451 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14452 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14453 echo $ECHO_N "(cached) $ECHO_C" >&6
14455 ac_check_lib_save_LIBS
=$LIBS
14456 LIBS
="-ludis86 $LIBS"
14457 cat >conftest.
$ac_ext <<_ACEOF
14460 cat confdefs.h
>>conftest.
$ac_ext
14461 cat >>conftest.
$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14464 /* Override any GCC internal prototype to avoid an error.
14465 Use char because int might match the return type of a GCC
14466 builtin and then its argument prototype would still apply. */
14479 rm -f conftest.
$ac_objext conftest
$ac_exeext
14480 if { (ac_try
="$ac_link"
14481 case "(($ac_try" in
14482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14486 (eval "$ac_link") 2>conftest.er1
14488 grep -v '^ *+' conftest.er1 >conftest.err
14490 cat conftest.err >&5
14491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14492 (exit $ac_status); } &&
14493 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14494 { (case "(($ac_try" in
14495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14496 *) ac_try_echo
=$ac_try;;
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_try") 2>&5
14501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14502 (exit $ac_status); }; } &&
14503 { ac_try
='test -s conftest$ac_exeext'
14504 { (case "(($ac_try" in
14505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14506 *) ac_try_echo=$ac_try;;
14508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14509 (eval "$ac_try") 2>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); }; }; then
14513 ac_cv_lib_udis86_ud_init=yes
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.$ac_ext >&5
14518 ac_cv_lib_udis86_ud_init=no
14521 rm -f core conftest.err conftest.$ac_objext \
14522 conftest$ac_exeext conftest.$ac_ext
14523 LIBS=$ac_check_lib_save_LIBS
14525 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14526 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14527 if test $ac_cv_lib_udis86_ud_init = yes; then
14528 cat >>confdefs.h <<_ACEOF
14529 #define HAVE_LIBUDIS86 1
14532 LIBS="-ludis86 $LIBS"
14536 echo "Error! You need to have libudis86 around."
14548 cat >>confdefs.h <<_ACEOF
14549 #define USE_UDIS86 $USE_UDIS86
14554 # Check whether --with-oprofile was given.
14555 if test "${with_oprofile+set}" = set; then
14556 withval=$with_oprofile;
14560 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14561 no) llvm_cv_oppath=
14564 *) llvm_cv_oppath="${withval}/lib/oprofile"
14565 CPPFLAGS="-I${withval}/include";;
14567 if test -n "$llvm_cv_oppath" ; then
14568 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14569 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14570 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14571 if test "${ac_cv_search_bfd_init+set}" = set; then
14572 echo $ECHO_N "(cached) $ECHO_C" >&6
14574 ac_func_search_save_LIBS=$LIBS
14575 cat >conftest.$ac_ext <<_ACEOF
14578 cat confdefs.h >>conftest.$ac_ext
14579 cat >>conftest.$ac_ext <<_ACEOF
14580 /* end confdefs.h. */
14582 /* Override any GCC internal prototype to avoid an error.
14583 Use char because int might match the return type of a GCC
14584 builtin and then its argument prototype would still apply. */
14592 return bfd_init ();
14597 for ac_lib in '' bfd; do
14598 if test -z "$ac_lib"; then
14599 ac_res="none required"
14602 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14604 rm -f conftest.$ac_objext conftest$ac_exeext
14605 if { (ac_try="$ac_link"
14606 case "(($ac_try" in
14607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14608 *) ac_try_echo
=$ac_try;;
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_link") 2>conftest.er1
14613 grep -v '^ *+' conftest.er1
>conftest.err
14615 cat conftest.err
>&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14619 { (case "(($ac_try" in
14620 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest$ac_exeext'
14629 { (case "(($ac_try" in
14630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14631 *) ac_try_echo
=$ac_try;;
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_try") 2>&5
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_cv_search_bfd_init
=$ac_res
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.
$ac_ext >&5
14646 rm -f core conftest.err conftest.
$ac_objext \
14648 if test "${ac_cv_search_bfd_init+set}" = set; then
14652 if test "${ac_cv_search_bfd_init+set}" = set; then
14655 ac_cv_search_bfd_init
=no
14657 rm conftest.
$ac_ext
14658 LIBS
=$ac_func_search_save_LIBS
14660 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14661 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14662 ac_res
=$ac_cv_search_bfd_init
14663 if test "$ac_res" != no
; then
14664 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14668 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14669 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14670 if test "${ac_cv_search_op_open_agent+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 ac_func_search_save_LIBS
=$LIBS
14674 cat >conftest.
$ac_ext <<_ACEOF
14677 cat confdefs.h
>>conftest.
$ac_ext
14678 cat >>conftest.
$ac_ext <<_ACEOF
14679 /* end confdefs.h. */
14681 /* Override any GCC internal prototype to avoid an error.
14682 Use char because int might match the return type of a GCC
14683 builtin and then its argument prototype would still apply. */
14687 char op_open_agent ();
14691 return op_open_agent ();
14696 for ac_lib
in '' opagent
; do
14697 if test -z "$ac_lib"; then
14698 ac_res
="none required"
14701 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14703 rm -f conftest.
$ac_objext conftest
$ac_exeext
14704 if { (ac_try
="$ac_link"
14705 case "(($ac_try" in
14706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14707 *) ac_try_echo=$ac_try;;
14709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14710 (eval "$ac_link") 2>conftest.er1
14712 grep -v '^ *+' conftest.er1 >conftest.err
14714 cat conftest.err >&5
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); } &&
14717 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14718 { (case "(($ac_try" in
14719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14720 *) ac_try_echo
=$ac_try;;
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_try") 2>&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; } &&
14727 { ac_try
='test -s conftest$ac_exeext'
14728 { (case "(($ac_try" in
14729 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14730 *) ac_try_echo=$ac_try;;
14732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14733 (eval "$ac_try") 2>&5
14735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14736 (exit $ac_status); }; }; then
14737 ac_cv_search_op_open_agent=$ac_res
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14745 rm -f core conftest.err conftest.$ac_objext \
14747 if test "${ac_cv_search_op_open_agent+set}" = set; then
14751 if test "${ac_cv_search_op_open_agent+set}" = set; then
14754 ac_cv_search_op_open_agent=no
14756 rm conftest.$ac_ext
14757 LIBS=$ac_func_search_save_LIBS
14759 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14760 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14761 ac_res=$ac_cv_search_op_open_agent
14762 if test "$ac_res" != no; then
14763 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14767 echo "Error! You need to have libopagent around."
14772 if test "${ac_cv_header_opagent_h+set}" = set; then
14773 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14774 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14775 if test "${ac_cv_header_opagent_h+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14778 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14779 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14781 # Is the header compilable?
14782 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14783 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14784 cat >conftest.$ac_ext <<_ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 $ac_includes_default
14791 #include <opagent.h>
14793 rm -f conftest.$ac_objext
14794 if { (ac_try="$ac_compile"
14795 case "(($ac_try" in
14796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14797 *) ac_try_echo
=$ac_try;;
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_compile") 2>conftest.er1
14802 grep -v '^ *+' conftest.er1
>conftest.err
14804 cat conftest.err
>&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } &&
14807 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14808 { (case "(($ac_try" in
14809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14810 *) ac_try_echo=$ac_try;;
14812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14813 (eval "$ac_try") 2>&5
14815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14816 (exit $ac_status); }; } &&
14817 { ac_try='test -s conftest.$ac_objext'
14818 { (case "(($ac_try" in
14819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14820 *) ac_try_echo
=$ac_try;;
14822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14823 (eval "$ac_try") 2>&5
14825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14826 (exit $ac_status); }; }; then
14827 ac_header_compiler
=yes
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.
$ac_ext >&5
14832 ac_header_compiler
=no
14835 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14837 echo "${ECHO_T}$ac_header_compiler" >&6; }
14839 # Is the header present?
14840 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14841 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14842 cat >conftest.
$ac_ext <<_ACEOF
14845 cat confdefs.h
>>conftest.
$ac_ext
14846 cat >>conftest.
$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 #include <opagent.h>
14850 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14851 case "(($ac_try" in
14852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14853 *) ac_try_echo=$ac_try;;
14855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14858 grep -v '^ *+' conftest.er1 >conftest.err
14860 cat conftest.err >&5
14861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14862 (exit $ac_status); } >/dev/null; then
14863 if test -s conftest.err; then
14864 ac_cpp_err=$ac_c_preproc_warn_flag
14865 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14872 if test -z "$ac_cpp_err"; then
14873 ac_header_preproc=yes
14875 echo "$as_me: failed program was:" >&5
14876 sed 's/^/| /' conftest.$ac_ext >&5
14878 ac_header_preproc=no
14881 rm -f conftest.err conftest.$ac_ext
14882 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14883 echo "${ECHO_T}$ac_header_preproc" >&6; }
14885 # So? What about this header?
14886 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14888 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14889 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14890 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14891 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14892 ac_header_preproc=yes
14895 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14896 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14897 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14898 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14899 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14900 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14901 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14902 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14903 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14904 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14905 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14906 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14908 ## ----------------------------------- ##
14909 ## Report this to llvmbugs@cs.uiuc.edu ##
14910 ## ----------------------------------- ##
14912 ) | sed "s/^/$as_me: WARNING: /" >&2
14915 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14916 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14917 if test "${ac_cv_header_opagent_h+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 ac_cv_header_opagent_h=$ac_header_preproc
14922 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14923 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14926 if test $ac_cv_header_opagent_h = yes; then
14930 echo "Error! You need to have opagent.h around."
14946 cat >>confdefs.h <<_ACEOF
14947 #define USE_OPROFILE $USE_OPROFILE
14957 ac_header_dirent=no
14958 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14959 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
14960 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14961 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14963 echo $ECHO_N "(cached) $ECHO_C" >&6
14965 cat >conftest.$ac_ext <<_ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 #include <sys/types.h>
14983 rm -f conftest.$ac_objext
14984 if { (ac_try="$ac_compile"
14985 case "(($ac_try" in
14986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14987 *) ac_try_echo
=$ac_try;;
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_compile") 2>conftest.er1
14992 grep -v '^ *+' conftest.er1
>conftest.err
14994 cat conftest.err
>&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } &&
14997 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14998 { (case "(($ac_try" in
14999 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; } &&
15007 { ac_try='test -s conftest.$ac_objext'
15008 { (case "(($ac_try" in
15009 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15010 *) ac_try_echo
=$ac_try;;
15012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15013 (eval "$ac_try") 2>&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); }; }; then
15017 eval "$as_ac_Header=yes"
15019 echo "$as_me: failed program was:" >&5
15020 sed 's/^/| /' conftest.
$ac_ext >&5
15022 eval "$as_ac_Header=no"
15025 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15027 ac_res
=`eval echo '${'$as_ac_Header'}'`
15028 { echo "$as_me:$LINENO: result: $ac_res" >&5
15029 echo "${ECHO_T}$ac_res" >&6; }
15030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15031 cat >>confdefs.h
<<_ACEOF
15032 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15035 ac_header_dirent
=$ac_hdr; break
15039 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15040 if test $ac_header_dirent = dirent.h
; then
15041 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15042 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15043 if test "${ac_cv_search_opendir+set}" = set; then
15044 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 ac_func_search_save_LIBS
=$LIBS
15047 cat >conftest.
$ac_ext <<_ACEOF
15050 cat confdefs.h
>>conftest.
$ac_ext
15051 cat >>conftest.
$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15054 /* Override any GCC internal prototype to avoid an error.
15055 Use char because int might match the return type of a GCC
15056 builtin and then its argument prototype would still apply. */
15069 for ac_lib
in '' dir
; do
15070 if test -z "$ac_lib"; then
15071 ac_res
="none required"
15074 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
15076 rm -f conftest.
$ac_objext conftest
$ac_exeext
15077 if { (ac_try
="$ac_link"
15078 case "(($ac_try" in
15079 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15080 *) ac_try_echo=$ac_try;;
15082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15083 (eval "$ac_link") 2>conftest.er1
15085 grep -v '^ *+' conftest.er1 >conftest.err
15087 cat conftest.err >&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } &&
15090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15091 { (case "(($ac_try" in
15092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15093 *) ac_try_echo
=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_try") 2>&5
15098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15099 (exit $ac_status); }; } &&
15100 { ac_try
='test -s conftest$ac_exeext'
15101 { (case "(($ac_try" in
15102 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15103 *) ac_try_echo=$ac_try;;
15105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15106 (eval "$ac_try") 2>&5
15108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); }; }; then
15110 ac_cv_search_opendir=$ac_res
15112 echo "$as_me: failed program was:" >&5
15113 sed 's/^/| /' conftest.$ac_ext >&5
15118 rm -f core conftest.err conftest.$ac_objext \
15120 if test "${ac_cv_search_opendir+set}" = set; then
15124 if test "${ac_cv_search_opendir+set}" = set; then
15127 ac_cv_search_opendir=no
15129 rm conftest.$ac_ext
15130 LIBS=$ac_func_search_save_LIBS
15132 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15133 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15134 ac_res=$ac_cv_search_opendir
15135 if test "$ac_res" != no; then
15136 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15141 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15142 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15143 if test "${ac_cv_search_opendir+set}" = set; then
15144 echo $ECHO_N "(cached) $ECHO_C" >&6
15146 ac_func_search_save_LIBS=$LIBS
15147 cat >conftest.$ac_ext <<_ACEOF
15150 cat confdefs.h >>conftest.$ac_ext
15151 cat >>conftest.$ac_ext <<_ACEOF
15152 /* end confdefs.h. */
15154 /* Override any GCC internal prototype to avoid an error.
15155 Use char because int might match the return type of a GCC
15156 builtin and then its argument prototype would still apply. */
15169 for ac_lib in '' x; do
15170 if test -z "$ac_lib"; then
15171 ac_res="none required"
15174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15176 rm -f conftest.$ac_objext conftest$ac_exeext
15177 if { (ac_try="$ac_link"
15178 case "(($ac_try" in
15179 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15180 *) ac_try_echo
=$ac_try;;
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183 (eval "$ac_link") 2>conftest.er1
15185 grep -v '^ *+' conftest.er1
>conftest.err
15187 cat conftest.err
>&5
15188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189 (exit $ac_status); } &&
15190 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15191 { (case "(($ac_try" in
15192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15193 *) ac_try_echo=$ac_try;;
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196 (eval "$ac_try") 2>&5
15198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199 (exit $ac_status); }; } &&
15200 { ac_try='test -s conftest$ac_exeext'
15201 { (case "(($ac_try" in
15202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15203 *) ac_try_echo
=$ac_try;;
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206 (eval "$ac_try") 2>&5
15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209 (exit $ac_status); }; }; then
15210 ac_cv_search_opendir
=$ac_res
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.
$ac_ext >&5
15218 rm -f core conftest.err conftest.
$ac_objext \
15220 if test "${ac_cv_search_opendir+set}" = set; then
15224 if test "${ac_cv_search_opendir+set}" = set; then
15227 ac_cv_search_opendir
=no
15229 rm conftest.
$ac_ext
15230 LIBS
=$ac_func_search_save_LIBS
15232 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15233 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15234 ac_res
=$ac_cv_search_opendir
15235 if test "$ac_res" != no
; then
15236 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15242 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15243 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15244 if test "${ac_cv_header_mmap_anon+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15248 ac_cpp
='$CPP $CPPFLAGS'
15249 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15250 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15251 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15253 cat >conftest.
$ac_ext <<_ACEOF
15256 cat confdefs.h
>>conftest.
$ac_ext
15257 cat >>conftest.
$ac_ext <<_ACEOF
15258 /* end confdefs.h. */
15259 #include <sys/mman.h>
15260 #include <unistd.h>
15265 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15270 rm -f conftest.
$ac_objext
15271 if { (ac_try
="$ac_compile"
15272 case "(($ac_try" in
15273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15274 *) ac_try_echo=$ac_try;;
15276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15277 (eval "$ac_compile") 2>conftest.er1
15279 grep -v '^ *+' conftest.er1 >conftest.err
15281 cat conftest.err >&5
15282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15283 (exit $ac_status); } &&
15284 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15285 { (case "(($ac_try" in
15286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15287 *) ac_try_echo
=$ac_try;;
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_try") 2>&5
15292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15293 (exit $ac_status); }; } &&
15294 { ac_try
='test -s conftest.$ac_objext'
15295 { (case "(($ac_try" in
15296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15297 *) ac_try_echo=$ac_try;;
15299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15300 (eval "$ac_try") 2>&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); }; }; then
15304 ac_cv_header_mmap_anon=yes
15306 echo "$as_me: failed program was:" >&5
15307 sed 's/^/| /' conftest.$ac_ext >&5
15309 ac_cv_header_mmap_anon=no
15312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15314 ac_cpp='$CPP $CPPFLAGS'
15315 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15316 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15317 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15321 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15322 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15323 if test "$ac_cv_header_mmap_anon" = yes; then
15325 cat >>confdefs.h <<\_ACEOF
15326 #define HAVE_MMAP_ANONYMOUS 1
15331 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15332 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15333 if test "${ac_cv_header_stat_broken+set}" = set; then
15334 echo $ECHO_N "(cached) $ECHO_C" >&6
15336 cat >conftest.$ac_ext <<_ACEOF
15339 cat confdefs.h >>conftest.$ac_ext
15340 cat >>conftest.$ac_ext <<_ACEOF
15341 /* end confdefs.h. */
15342 #include <sys/types.h>
15343 #include <sys/stat.h>
15345 #if defined S_ISBLK && defined S_IFDIR
15346 # if S_ISBLK (S_IFDIR)
15351 #if defined S_ISBLK && defined S_IFCHR
15352 # if S_ISBLK (S_IFCHR)
15357 #if defined S_ISLNK && defined S_IFREG
15358 # if S_ISLNK (S_IFREG)
15363 #if defined S_ISSOCK && defined S_IFREG
15364 # if S_ISSOCK (S_IFREG)
15370 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15371 $EGREP "You lose" >/dev/null 2>&1; then
15372 ac_cv_header_stat_broken=yes
15374 ac_cv_header_stat_broken=no
15379 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15380 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15381 if test $ac_cv_header_stat_broken = yes; then
15383 cat >>confdefs.h <<\_ACEOF
15384 #define STAT_MACROS_BROKEN 1
15389 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15390 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15391 if test "${ac_cv_header_stdc+set}" = set; then
15392 echo $ECHO_N "(cached) $ECHO_C" >&6
15394 cat >conftest.$ac_ext <<_ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 #include <stdlib.h>
15401 #include <stdarg.h>
15402 #include <string.h>
15413 rm -f conftest.$ac_objext
15414 if { (ac_try="$ac_compile"
15415 case "(($ac_try" in
15416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15417 *) ac_try_echo
=$ac_try;;
15419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_compile") 2>conftest.er1
15422 grep -v '^ *+' conftest.er1
>conftest.err
15424 cat conftest.err
>&5
15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15426 (exit $ac_status); } &&
15427 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15428 { (case "(($ac_try" in
15429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15430 *) ac_try_echo=$ac_try;;
15432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15433 (eval "$ac_try") 2>&5
15435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15436 (exit $ac_status); }; } &&
15437 { ac_try='test -s conftest.$ac_objext'
15438 { (case "(($ac_try" in
15439 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15440 *) ac_try_echo
=$ac_try;;
15442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15443 (eval "$ac_try") 2>&5
15445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15446 (exit $ac_status); }; }; then
15447 ac_cv_header_stdc
=yes
15449 echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.
$ac_ext >&5
15452 ac_cv_header_stdc
=no
15455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15457 if test $ac_cv_header_stdc = yes; then
15458 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15459 cat >conftest.
$ac_ext <<_ACEOF
15462 cat confdefs.h
>>conftest.
$ac_ext
15463 cat >>conftest.
$ac_ext <<_ACEOF
15464 /* end confdefs.h. */
15465 #include <string.h>
15468 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15469 $EGREP "memchr" >/dev
/null
2>&1; then
15472 ac_cv_header_stdc
=no
15478 if test $ac_cv_header_stdc = yes; then
15479 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15480 cat >conftest.
$ac_ext <<_ACEOF
15483 cat confdefs.h
>>conftest.
$ac_ext
15484 cat >>conftest.
$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 #include <stdlib.h>
15489 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15490 $EGREP "free" >/dev
/null
2>&1; then
15493 ac_cv_header_stdc
=no
15499 if test $ac_cv_header_stdc = yes; then
15500 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15501 if test "$cross_compiling" = yes; then
15504 cat >conftest.
$ac_ext <<_ACEOF
15507 cat confdefs.h
>>conftest.
$ac_ext
15508 cat >>conftest.
$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15511 #include <stdlib.h>
15512 #if ((' ' & 0x0FF) == 0x020)
15513 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15514 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15516 # define ISLOWER(c) \
15517 (('a' <= (c) && (c) <= 'i') \
15518 || ('j' <= (c) && (c) <= 'r') \
15519 || ('s' <= (c) && (c) <= 'z'))
15520 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15523 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15528 for (i = 0; i < 256; i++)
15529 if (XOR (islower (i), ISLOWER (i))
15530 || toupper (i) != TOUPPER (i))
15535 rm -f conftest
$ac_exeext
15536 if { (ac_try
="$ac_link"
15537 case "(($ac_try" in
15538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15539 *) ac_try_echo=$ac_try;;
15541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15542 (eval "$ac_link") 2>&5
15544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15548 *) ac_try_echo
=$ac_try;;
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; }; then
15557 echo "$as_me: program exited with status $ac_status" >&5
15558 echo "$as_me: failed program was:" >&5
15559 sed 's/^/| /' conftest.
$ac_ext >&5
15561 ( exit $ac_status )
15562 ac_cv_header_stdc
=no
15564 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15570 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15571 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15572 if test $ac_cv_header_stdc = yes; then
15574 cat >>confdefs.h
<<\_ACEOF
15575 #define STDC_HEADERS 1
15580 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15581 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15582 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15583 echo $ECHO_N "(cached) $ECHO_C" >&6
15585 cat >conftest.
$ac_ext <<_ACEOF
15588 cat confdefs.h
>>conftest.
$ac_ext
15589 cat >>conftest.
$ac_ext <<_ACEOF
15590 /* end confdefs.h. */
15591 #include <sys/types.h>
15592 #include <sys/wait.h>
15593 #ifndef WEXITSTATUS
15594 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15597 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15605 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15610 rm -f conftest.
$ac_objext
15611 if { (ac_try
="$ac_compile"
15612 case "(($ac_try" in
15613 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15614 *) ac_try_echo=$ac_try;;
15616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15617 (eval "$ac_compile") 2>conftest.er1
15619 grep -v '^ *+' conftest.er1 >conftest.err
15621 cat conftest.err >&5
15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15623 (exit $ac_status); } &&
15624 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15625 { (case "(($ac_try" in
15626 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15627 *) ac_try_echo
=$ac_try;;
15629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15630 (eval "$ac_try") 2>&5
15632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15633 (exit $ac_status); }; } &&
15634 { ac_try
='test -s conftest.$ac_objext'
15635 { (case "(($ac_try" in
15636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15637 *) ac_try_echo=$ac_try;;
15639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15640 (eval "$ac_try") 2>&5
15642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15643 (exit $ac_status); }; }; then
15644 ac_cv_header_sys_wait_h=yes
15646 echo "$as_me: failed program was:" >&5
15647 sed 's/^/| /' conftest.$ac_ext >&5
15649 ac_cv_header_sys_wait_h=no
15652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15654 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15655 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15656 if test $ac_cv_header_sys_wait_h = yes; then
15658 cat >>confdefs.h <<\_ACEOF
15659 #define HAVE_SYS_WAIT_H 1
15664 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15665 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15666 if test "${ac_cv_header_time+set}" = set; then
15667 echo $ECHO_N "(cached) $ECHO_C" >&6
15669 cat >conftest.$ac_ext <<_ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h. */
15675 #include <sys/types.h>
15676 #include <sys/time.h>
15682 if ((struct tm *) 0)
15688 rm -f conftest.$ac_objext
15689 if { (ac_try="$ac_compile"
15690 case "(($ac_try" in
15691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15692 *) ac_try_echo
=$ac_try;;
15694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15695 (eval "$ac_compile") 2>conftest.er1
15697 grep -v '^ *+' conftest.er1
>conftest.err
15699 cat conftest.err
>&5
15700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15701 (exit $ac_status); } &&
15702 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15703 { (case "(($ac_try" in
15704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15708 (eval "$ac_try") 2>&5
15710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15711 (exit $ac_status); }; } &&
15712 { ac_try='test -s conftest.$ac_objext'
15713 { (case "(($ac_try" in
15714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15715 *) ac_try_echo
=$ac_try;;
15717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_try") 2>&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 ac_cv_header_time
=yes
15724 echo "$as_me: failed program was:" >&5
15725 sed 's/^/| /' conftest.
$ac_ext >&5
15727 ac_cv_header_time
=no
15730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15732 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15733 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15734 if test $ac_cv_header_time = yes; then
15736 cat >>confdefs.h
<<\_ACEOF
15737 #define TIME_WITH_SYS_TIME 1
15749 for ac_header
in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15751 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15752 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15755 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15756 echo $ECHO_N "(cached) $ECHO_C" >&6
15758 ac_res
=`eval echo '${'$as_ac_Header'}'`
15759 { echo "$as_me:$LINENO: result: $ac_res" >&5
15760 echo "${ECHO_T}$ac_res" >&6; }
15762 # Is the header compilable?
15763 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15764 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15765 cat >conftest.
$ac_ext <<_ACEOF
15768 cat confdefs.h
>>conftest.
$ac_ext
15769 cat >>conftest.
$ac_ext <<_ACEOF
15770 /* end confdefs.h. */
15771 $ac_includes_default
15772 #include <$ac_header>
15774 rm -f conftest.
$ac_objext
15775 if { (ac_try
="$ac_compile"
15776 case "(($ac_try" in
15777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15778 *) ac_try_echo=$ac_try;;
15780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15781 (eval "$ac_compile") 2>conftest.er1
15783 grep -v '^ *+' conftest.er1 >conftest.err
15785 cat conftest.err >&5
15786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15787 (exit $ac_status); } &&
15788 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15789 { (case "(($ac_try" in
15790 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15791 *) ac_try_echo
=$ac_try;;
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_try") 2>&5
15796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15797 (exit $ac_status); }; } &&
15798 { ac_try
='test -s conftest.$ac_objext'
15799 { (case "(($ac_try" in
15800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15801 *) ac_try_echo=$ac_try;;
15803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15804 (eval "$ac_try") 2>&5
15806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15807 (exit $ac_status); }; }; then
15808 ac_header_compiler=yes
15810 echo "$as_me: failed program was:" >&5
15811 sed 's/^/| /' conftest.$ac_ext >&5
15813 ac_header_compiler=no
15816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15817 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15818 echo "${ECHO_T}$ac_header_compiler" >&6; }
15820 # Is the header present?
15821 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15822 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15823 cat >conftest.$ac_ext <<_ACEOF
15826 cat confdefs.h >>conftest.$ac_ext
15827 cat >>conftest.$ac_ext <<_ACEOF
15828 /* end confdefs.h. */
15829 #include <$ac_header>
15831 if { (ac_try="$ac_cpp conftest.$ac_ext"
15832 case "(($ac_try" in
15833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15834 *) ac_try_echo
=$ac_try;;
15836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15839 grep -v '^ *+' conftest.er1
>conftest.err
15841 cat conftest.err
>&5
15842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15843 (exit $ac_status); } >/dev
/null
; then
15844 if test -s conftest.err
; then
15845 ac_cpp_err
=$ac_c_preproc_warn_flag
15846 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15853 if test -z "$ac_cpp_err"; then
15854 ac_header_preproc
=yes
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.
$ac_ext >&5
15859 ac_header_preproc
=no
15862 rm -f conftest.err conftest.
$ac_ext
15863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15864 echo "${ECHO_T}$ac_header_preproc" >&6; }
15866 # So? What about this header?
15867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15873 ac_header_preproc
=yes
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15889 ## ----------------------------------- ##
15890 ## Report this to llvmbugs@cs.uiuc.edu ##
15891 ## ----------------------------------- ##
15893 ) |
sed "s/^/$as_me: WARNING: /" >&2
15896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15898 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15899 echo $ECHO_N "(cached) $ECHO_C" >&6
15901 eval "$as_ac_Header=\$ac_header_preproc"
15903 ac_res
=`eval echo '${'$as_ac_Header'}'`
15904 { echo "$as_me:$LINENO: result: $ac_res" >&5
15905 echo "${ECHO_T}$ac_res" >&6; }
15908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15909 cat >>confdefs.h
<<_ACEOF
15910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15923 for ac_header
in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15925 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15926 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15927 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15928 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15929 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15930 echo $ECHO_N "(cached) $ECHO_C" >&6
15932 ac_res
=`eval echo '${'$as_ac_Header'}'`
15933 { echo "$as_me:$LINENO: result: $ac_res" >&5
15934 echo "${ECHO_T}$ac_res" >&6; }
15936 # Is the header compilable?
15937 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15938 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15939 cat >conftest.
$ac_ext <<_ACEOF
15942 cat confdefs.h
>>conftest.
$ac_ext
15943 cat >>conftest.
$ac_ext <<_ACEOF
15944 /* end confdefs.h. */
15945 $ac_includes_default
15946 #include <$ac_header>
15948 rm -f conftest.
$ac_objext
15949 if { (ac_try
="$ac_compile"
15950 case "(($ac_try" in
15951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_compile") 2>conftest.er1
15957 grep -v '^ *+' conftest.er1 >conftest.err
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } &&
15962 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15963 { (case "(($ac_try" in
15964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15965 *) ac_try_echo
=$ac_try;;
15967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15968 (eval "$ac_try") 2>&5
15970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15971 (exit $ac_status); }; } &&
15972 { ac_try
='test -s conftest.$ac_objext'
15973 { (case "(($ac_try" in
15974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15975 *) ac_try_echo=$ac_try;;
15977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15978 (eval "$ac_try") 2>&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); }; }; then
15982 ac_header_compiler=yes
15984 echo "$as_me: failed program was:" >&5
15985 sed 's/^/| /' conftest.$ac_ext >&5
15987 ac_header_compiler=no
15990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15992 echo "${ECHO_T}$ac_header_compiler" >&6; }
15994 # Is the header present?
15995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15997 cat >conftest.$ac_ext <<_ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 #include <$ac_header>
16005 if { (ac_try="$ac_cpp conftest.$ac_ext"
16006 case "(($ac_try" in
16007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16008 *) ac_try_echo
=$ac_try;;
16010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16013 grep -v '^ *+' conftest.er1
>conftest.err
16015 cat conftest.err
>&5
16016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16017 (exit $ac_status); } >/dev
/null
; then
16018 if test -s conftest.err
; then
16019 ac_cpp_err
=$ac_c_preproc_warn_flag
16020 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16027 if test -z "$ac_cpp_err"; then
16028 ac_header_preproc
=yes
16030 echo "$as_me: failed program was:" >&5
16031 sed 's/^/| /' conftest.
$ac_ext >&5
16033 ac_header_preproc
=no
16036 rm -f conftest.err conftest.
$ac_ext
16037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16038 echo "${ECHO_T}$ac_header_preproc" >&6; }
16040 # So? What about this header?
16041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16043 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16044 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16046 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16047 ac_header_preproc
=yes
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16051 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16053 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16055 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16057 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16059 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16060 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16061 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16063 ## ----------------------------------- ##
16064 ## Report this to llvmbugs@cs.uiuc.edu ##
16065 ## ----------------------------------- ##
16067 ) |
sed "s/^/$as_me: WARNING: /" >&2
16070 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16071 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16072 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16073 echo $ECHO_N "(cached) $ECHO_C" >&6
16075 eval "$as_ac_Header=\$ac_header_preproc"
16077 ac_res
=`eval echo '${'$as_ac_Header'}'`
16078 { echo "$as_me:$LINENO: result: $ac_res" >&5
16079 echo "${ECHO_T}$ac_res" >&6; }
16082 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16083 cat >>confdefs.h
<<_ACEOF
16084 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16093 for ac_header
in utime.h windows.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
/mman.h sys
/param.h sys
/resource.h sys
/time.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
16437 for ac_header
in sys
/types.h sys
/ioctl.h malloc
/malloc.h mach
/mach.h
16439 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16440 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16441 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16442 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16443 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16444 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 ac_res
=`eval echo '${'$as_ac_Header'}'`
16447 { echo "$as_me:$LINENO: result: $ac_res" >&5
16448 echo "${ECHO_T}$ac_res" >&6; }
16450 # Is the header compilable?
16451 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16452 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16453 cat >conftest.
$ac_ext <<_ACEOF
16456 cat confdefs.h
>>conftest.
$ac_ext
16457 cat >>conftest.
$ac_ext <<_ACEOF
16458 /* end confdefs.h. */
16459 $ac_includes_default
16460 #include <$ac_header>
16462 rm -f conftest.
$ac_objext
16463 if { (ac_try
="$ac_compile"
16464 case "(($ac_try" in
16465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16466 *) ac_try_echo=$ac_try;;
16468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16469 (eval "$ac_compile") 2>conftest.er1
16471 grep -v '^ *+' conftest.er1 >conftest.err
16473 cat conftest.err >&5
16474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16475 (exit $ac_status); } &&
16476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16477 { (case "(($ac_try" in
16478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16479 *) ac_try_echo
=$ac_try;;
16481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16482 (eval "$ac_try") 2>&5
16484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16485 (exit $ac_status); }; } &&
16486 { ac_try
='test -s conftest.$ac_objext'
16487 { (case "(($ac_try" in
16488 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16489 *) ac_try_echo=$ac_try;;
16491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16492 (eval "$ac_try") 2>&5
16494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16495 (exit $ac_status); }; }; then
16496 ac_header_compiler=yes
16498 echo "$as_me: failed program was:" >&5
16499 sed 's/^/| /' conftest.$ac_ext >&5
16501 ac_header_compiler=no
16504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16505 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16506 echo "${ECHO_T}$ac_header_compiler" >&6; }
16508 # Is the header present?
16509 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16510 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16511 cat >conftest.$ac_ext <<_ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h. */
16517 #include <$ac_header>
16519 if { (ac_try="$ac_cpp conftest.$ac_ext"
16520 case "(($ac_try" in
16521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16522 *) ac_try_echo
=$ac_try;;
16524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16525 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16527 grep -v '^ *+' conftest.er1
>conftest.err
16529 cat conftest.err
>&5
16530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } >/dev
/null
; then
16532 if test -s conftest.err
; then
16533 ac_cpp_err
=$ac_c_preproc_warn_flag
16534 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16541 if test -z "$ac_cpp_err"; then
16542 ac_header_preproc
=yes
16544 echo "$as_me: failed program was:" >&5
16545 sed 's/^/| /' conftest.
$ac_ext >&5
16547 ac_header_preproc
=no
16550 rm -f conftest.err conftest.
$ac_ext
16551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16552 echo "${ECHO_T}$ac_header_preproc" >&6; }
16554 # So? What about this header?
16555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16557 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16558 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16559 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16560 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16561 ac_header_preproc
=yes
16564 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16565 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16566 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16567 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16568 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16569 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16570 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16571 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16573 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16574 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16575 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16577 ## ----------------------------------- ##
16578 ## Report this to llvmbugs@cs.uiuc.edu ##
16579 ## ----------------------------------- ##
16581 ) |
sed "s/^/$as_me: WARNING: /" >&2
16584 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16585 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16586 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16587 echo $ECHO_N "(cached) $ECHO_C" >&6
16589 eval "$as_ac_Header=\$ac_header_preproc"
16591 ac_res
=`eval echo '${'$as_ac_Header'}'`
16592 { echo "$as_me:$LINENO: result: $ac_res" >&5
16593 echo "${ECHO_T}$ac_res" >&6; }
16596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16597 cat >>confdefs.h
<<_ACEOF
16598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16606 for ac_header
in valgrind
/valgrind.h
16608 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16609 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16610 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16611 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16612 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16615 ac_res
=`eval echo '${'$as_ac_Header'}'`
16616 { echo "$as_me:$LINENO: result: $ac_res" >&5
16617 echo "${ECHO_T}$ac_res" >&6; }
16619 # Is the header compilable?
16620 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16621 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16622 cat >conftest.
$ac_ext <<_ACEOF
16625 cat confdefs.h
>>conftest.
$ac_ext
16626 cat >>conftest.
$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628 $ac_includes_default
16629 #include <$ac_header>
16631 rm -f conftest.
$ac_objext
16632 if { (ac_try
="$ac_compile"
16633 case "(($ac_try" in
16634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16635 *) ac_try_echo=$ac_try;;
16637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16638 (eval "$ac_compile") 2>conftest.er1
16640 grep -v '^ *+' conftest.er1 >conftest.err
16642 cat conftest.err >&5
16643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16644 (exit $ac_status); } &&
16645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16646 { (case "(($ac_try" in
16647 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16648 *) ac_try_echo
=$ac_try;;
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_try") 2>&5
16653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16654 (exit $ac_status); }; } &&
16655 { ac_try
='test -s conftest.$ac_objext'
16656 { (case "(($ac_try" in
16657 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16661 (eval "$ac_try") 2>&5
16663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16664 (exit $ac_status); }; }; then
16665 ac_header_compiler=yes
16667 echo "$as_me: failed program was:" >&5
16668 sed 's/^/| /' conftest.$ac_ext >&5
16670 ac_header_compiler=no
16673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16674 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16675 echo "${ECHO_T}$ac_header_compiler" >&6; }
16677 # Is the header present?
16678 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16680 cat >conftest.$ac_ext <<_ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h. */
16686 #include <$ac_header>
16688 if { (ac_try="$ac_cpp conftest.$ac_ext"
16689 case "(($ac_try" in
16690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16691 *) ac_try_echo
=$ac_try;;
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16696 grep -v '^ *+' conftest.er1
>conftest.err
16698 cat conftest.err
>&5
16699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16700 (exit $ac_status); } >/dev
/null
; then
16701 if test -s conftest.err
; then
16702 ac_cpp_err
=$ac_c_preproc_warn_flag
16703 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16710 if test -z "$ac_cpp_err"; then
16711 ac_header_preproc
=yes
16713 echo "$as_me: failed program was:" >&5
16714 sed 's/^/| /' conftest.
$ac_ext >&5
16716 ac_header_preproc
=no
16719 rm -f conftest.err conftest.
$ac_ext
16720 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16721 echo "${ECHO_T}$ac_header_preproc" >&6; }
16723 # So? What about this header?
16724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16726 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16727 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16728 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16729 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16730 ac_header_preproc
=yes
16733 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16734 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16735 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16736 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16738 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16740 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16742 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16744 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16746 ## ----------------------------------- ##
16747 ## Report this to llvmbugs@cs.uiuc.edu ##
16748 ## ----------------------------------- ##
16750 ) |
sed "s/^/$as_me: WARNING: /" >&2
16753 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16754 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16755 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16758 eval "$as_ac_Header=\$ac_header_preproc"
16760 ac_res
=`eval echo '${'$as_ac_Header'}'`
16761 { echo "$as_me:$LINENO: result: $ac_res" >&5
16762 echo "${ECHO_T}$ac_res" >&6; }
16765 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16766 cat >>confdefs.h
<<_ACEOF
16767 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16775 for ac_header
in fenv.h
16777 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16778 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16779 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16780 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16781 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16782 echo $ECHO_N "(cached) $ECHO_C" >&6
16784 ac_res
=`eval echo '${'$as_ac_Header'}'`
16785 { echo "$as_me:$LINENO: result: $ac_res" >&5
16786 echo "${ECHO_T}$ac_res" >&6; }
16788 # Is the header compilable?
16789 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16790 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16791 cat >conftest.
$ac_ext <<_ACEOF
16794 cat confdefs.h
>>conftest.
$ac_ext
16795 cat >>conftest.
$ac_ext <<_ACEOF
16796 /* end confdefs.h. */
16797 $ac_includes_default
16798 #include <$ac_header>
16800 rm -f conftest.
$ac_objext
16801 if { (ac_try
="$ac_compile"
16802 case "(($ac_try" in
16803 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16804 *) ac_try_echo=$ac_try;;
16806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16807 (eval "$ac_compile") 2>conftest.er1
16809 grep -v '^ *+' conftest.er1 >conftest.err
16811 cat conftest.err >&5
16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16813 (exit $ac_status); } &&
16814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16815 { (case "(($ac_try" in
16816 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16817 *) ac_try_echo
=$ac_try;;
16819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16820 (eval "$ac_try") 2>&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); }; } &&
16824 { ac_try
='test -s conftest.$ac_objext'
16825 { (case "(($ac_try" in
16826 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16827 *) ac_try_echo=$ac_try;;
16829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16830 (eval "$ac_try") 2>&5
16832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16833 (exit $ac_status); }; }; then
16834 ac_header_compiler=yes
16836 echo "$as_me: failed program was:" >&5
16837 sed 's/^/| /' conftest.$ac_ext >&5
16839 ac_header_compiler=no
16842 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16843 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16844 echo "${ECHO_T}$ac_header_compiler" >&6; }
16846 # Is the header present?
16847 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16848 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16849 cat >conftest.$ac_ext <<_ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 #include <$ac_header>
16857 if { (ac_try="$ac_cpp conftest.$ac_ext"
16858 case "(($ac_try" in
16859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16860 *) ac_try_echo
=$ac_try;;
16862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16863 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16865 grep -v '^ *+' conftest.er1
>conftest.err
16867 cat conftest.err
>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); } >/dev
/null
; then
16870 if test -s conftest.err
; then
16871 ac_cpp_err
=$ac_c_preproc_warn_flag
16872 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16879 if test -z "$ac_cpp_err"; then
16880 ac_header_preproc
=yes
16882 echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.
$ac_ext >&5
16885 ac_header_preproc
=no
16888 rm -f conftest.err conftest.
$ac_ext
16889 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16890 echo "${ECHO_T}$ac_header_preproc" >&6; }
16892 # So? What about this header?
16893 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16895 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16896 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16898 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16899 ac_header_preproc
=yes
16902 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16903 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16904 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16905 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16906 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16907 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16908 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16909 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16910 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16911 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16912 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16913 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16915 ## ----------------------------------- ##
16916 ## Report this to llvmbugs@cs.uiuc.edu ##
16917 ## ----------------------------------- ##
16919 ) |
sed "s/^/$as_me: WARNING: /" >&2
16922 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16923 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16924 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16925 echo $ECHO_N "(cached) $ECHO_C" >&6
16927 eval "$as_ac_Header=\$ac_header_preproc"
16929 ac_res
=`eval echo '${'$as_ac_Header'}'`
16930 { echo "$as_me:$LINENO: result: $ac_res" >&5
16931 echo "${ECHO_T}$ac_res" >&6; }
16934 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16935 cat >>confdefs.h
<<_ACEOF
16936 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16943 if test "$ENABLE_THREADS" -eq 1 && test "$ENABLE_PTHREADS" -eq 1 ; then
16945 for ac_header
in pthread.h
16947 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16948 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16949 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16951 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16952 echo $ECHO_N "(cached) $ECHO_C" >&6
16954 ac_res
=`eval echo '${'$as_ac_Header'}'`
16955 { echo "$as_me:$LINENO: result: $ac_res" >&5
16956 echo "${ECHO_T}$ac_res" >&6; }
16958 # Is the header compilable?
16959 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16960 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16961 cat >conftest.
$ac_ext <<_ACEOF
16964 cat confdefs.h
>>conftest.
$ac_ext
16965 cat >>conftest.
$ac_ext <<_ACEOF
16966 /* end confdefs.h. */
16967 $ac_includes_default
16968 #include <$ac_header>
16970 rm -f conftest.
$ac_objext
16971 if { (ac_try
="$ac_compile"
16972 case "(($ac_try" in
16973 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16974 *) ac_try_echo=$ac_try;;
16976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16977 (eval "$ac_compile") 2>conftest.er1
16979 grep -v '^ *+' conftest.er1 >conftest.err
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } &&
16984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16987 *) ac_try_echo
=$ac_try;;
16989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16990 (eval "$ac_try") 2>&5
16992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16993 (exit $ac_status); }; } &&
16994 { ac_try
='test -s conftest.$ac_objext'
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); }; }; then
17004 ac_header_compiler=yes
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 ac_header_compiler=no
17012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17013 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17014 echo "${ECHO_T}$ac_header_compiler" >&6; }
17016 # Is the header present?
17017 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17018 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17019 cat >conftest.$ac_ext <<_ACEOF
17022 cat confdefs.h >>conftest.$ac_ext
17023 cat >>conftest.$ac_ext <<_ACEOF
17024 /* end confdefs.h. */
17025 #include <$ac_header>
17027 if { (ac_try="$ac_cpp conftest.$ac_ext"
17028 case "(($ac_try" in
17029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17030 *) ac_try_echo
=$ac_try;;
17032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17033 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17035 grep -v '^ *+' conftest.er1
>conftest.err
17037 cat conftest.err
>&5
17038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17039 (exit $ac_status); } >/dev
/null
; then
17040 if test -s conftest.err
; then
17041 ac_cpp_err
=$ac_c_preproc_warn_flag
17042 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17049 if test -z "$ac_cpp_err"; then
17050 ac_header_preproc
=yes
17052 echo "$as_me: failed program was:" >&5
17053 sed 's/^/| /' conftest.
$ac_ext >&5
17055 ac_header_preproc
=no
17058 rm -f conftest.err conftest.
$ac_ext
17059 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17060 echo "${ECHO_T}$ac_header_preproc" >&6; }
17062 # So? What about this header?
17063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17065 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17066 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17067 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17069 ac_header_preproc
=yes
17072 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17073 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17074 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17075 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17076 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17077 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17078 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17079 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17082 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17083 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17085 ## ----------------------------------- ##
17086 ## Report this to llvmbugs@cs.uiuc.edu ##
17087 ## ----------------------------------- ##
17089 ) |
sed "s/^/$as_me: WARNING: /" >&2
17092 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17093 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17094 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17095 echo $ECHO_N "(cached) $ECHO_C" >&6
17097 eval "$as_ac_Header=\$ac_header_preproc"
17099 ac_res
=`eval echo '${'$as_ac_Header'}'`
17100 { echo "$as_me:$LINENO: result: $ac_res" >&5
17101 echo "${ECHO_T}$ac_res" >&6; }
17104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17105 cat >>confdefs.h
<<_ACEOF
17106 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17122 if test "$llvm_cv_enable_libffi" = "yes" ; then
17125 for ac_header
in ffi.h ffi
/ffi.h
17127 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17128 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17131 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17134 ac_res
=`eval echo '${'$as_ac_Header'}'`
17135 { echo "$as_me:$LINENO: result: $ac_res" >&5
17136 echo "${ECHO_T}$ac_res" >&6; }
17138 # Is the header compilable?
17139 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17140 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17141 cat >conftest.
$ac_ext <<_ACEOF
17144 cat confdefs.h
>>conftest.
$ac_ext
17145 cat >>conftest.
$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17147 $ac_includes_default
17148 #include <$ac_header>
17150 rm -f conftest.
$ac_objext
17151 if { (ac_try
="$ac_compile"
17152 case "(($ac_try" in
17153 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_compile") 2>conftest.er1
17159 grep -v '^ *+' conftest.er1 >conftest.err
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } &&
17164 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17165 { (case "(($ac_try" in
17166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17167 *) ac_try_echo
=$ac_try;;
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_try") 2>&5
17172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17173 (exit $ac_status); }; } &&
17174 { ac_try
='test -s conftest.$ac_objext'
17175 { (case "(($ac_try" in
17176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17177 *) ac_try_echo=$ac_try;;
17179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17180 (eval "$ac_try") 2>&5
17182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); }; }; then
17184 ac_header_compiler=yes
17186 echo "$as_me: failed program was:" >&5
17187 sed 's/^/| /' conftest.$ac_ext >&5
17189 ac_header_compiler=no
17192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17193 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17194 echo "${ECHO_T}$ac_header_compiler" >&6; }
17196 # Is the header present?
17197 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17198 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17199 cat >conftest.$ac_ext <<_ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17205 #include <$ac_header>
17207 if { (ac_try="$ac_cpp conftest.$ac_ext"
17208 case "(($ac_try" in
17209 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17210 *) ac_try_echo
=$ac_try;;
17212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17213 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17215 grep -v '^ *+' conftest.er1
>conftest.err
17217 cat conftest.err
>&5
17218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17219 (exit $ac_status); } >/dev
/null
; then
17220 if test -s conftest.err
; then
17221 ac_cpp_err
=$ac_c_preproc_warn_flag
17222 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17229 if test -z "$ac_cpp_err"; then
17230 ac_header_preproc
=yes
17232 echo "$as_me: failed program was:" >&5
17233 sed 's/^/| /' conftest.
$ac_ext >&5
17235 ac_header_preproc
=no
17238 rm -f conftest.err conftest.
$ac_ext
17239 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17240 echo "${ECHO_T}$ac_header_preproc" >&6; }
17242 # So? What about this header?
17243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17245 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17246 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17247 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17249 ac_header_preproc
=yes
17252 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17253 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17254 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17255 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17256 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17257 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17258 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17259 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17260 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17262 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17263 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17265 ## ----------------------------------- ##
17266 ## Report this to llvmbugs@cs.uiuc.edu ##
17267 ## ----------------------------------- ##
17269 ) |
sed "s/^/$as_me: WARNING: /" >&2
17272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17274 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17275 echo $ECHO_N "(cached) $ECHO_C" >&6
17277 eval "$as_ac_Header=\$ac_header_preproc"
17279 ac_res
=`eval echo '${'$as_ac_Header'}'`
17280 { echo "$as_me:$LINENO: result: $ac_res" >&5
17281 echo "${ECHO_T}$ac_res" >&6; }
17284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17285 cat >>confdefs.h
<<_ACEOF
17286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17296 for ac_header
in CrashReporterClient.h
17298 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17299 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17300 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17302 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 ac_res
=`eval echo '${'$as_ac_Header'}'`
17306 { echo "$as_me:$LINENO: result: $ac_res" >&5
17307 echo "${ECHO_T}$ac_res" >&6; }
17309 # Is the header compilable?
17310 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17311 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17312 cat >conftest.
$ac_ext <<_ACEOF
17315 cat confdefs.h
>>conftest.
$ac_ext
17316 cat >>conftest.
$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17318 $ac_includes_default
17319 #include <$ac_header>
17321 rm -f conftest.
$ac_objext
17322 if { (ac_try
="$ac_compile"
17323 case "(($ac_try" in
17324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17325 *) ac_try_echo=$ac_try;;
17327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17328 (eval "$ac_compile") 2>conftest.er1
17330 grep -v '^ *+' conftest.er1 >conftest.err
17332 cat conftest.err >&5
17333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17334 (exit $ac_status); } &&
17335 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17336 { (case "(($ac_try" in
17337 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17338 *) ac_try_echo
=$ac_try;;
17340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17341 (eval "$ac_try") 2>&5
17343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17344 (exit $ac_status); }; } &&
17345 { ac_try
='test -s conftest.$ac_objext'
17346 { (case "(($ac_try" in
17347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_try") 2>&5
17353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17354 (exit $ac_status); }; }; then
17355 ac_header_compiler=yes
17357 echo "$as_me: failed program was:" >&5
17358 sed 's/^/| /' conftest.$ac_ext >&5
17360 ac_header_compiler=no
17363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17365 echo "${ECHO_T}$ac_header_compiler" >&6; }
17367 # Is the header present?
17368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376 #include <$ac_header>
17378 if { (ac_try="$ac_cpp conftest.$ac_ext"
17379 case "(($ac_try" in
17380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17381 *) ac_try_echo
=$ac_try;;
17383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17386 grep -v '^ *+' conftest.er1
>conftest.err
17388 cat conftest.err
>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); } >/dev
/null
; then
17391 if test -s conftest.err
; then
17392 ac_cpp_err
=$ac_c_preproc_warn_flag
17393 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17400 if test -z "$ac_cpp_err"; then
17401 ac_header_preproc
=yes
17403 echo "$as_me: failed program was:" >&5
17404 sed 's/^/| /' conftest.
$ac_ext >&5
17406 ac_header_preproc
=no
17409 rm -f conftest.err conftest.
$ac_ext
17410 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17411 echo "${ECHO_T}$ac_header_preproc" >&6; }
17413 # So? What about this header?
17414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17416 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17417 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17420 ac_header_preproc
=yes
17423 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17424 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17425 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17426 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17427 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17428 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17429 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17430 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17433 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17434 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17436 ## ----------------------------------- ##
17437 ## Report this to llvmbugs@cs.uiuc.edu ##
17438 ## ----------------------------------- ##
17440 ) |
sed "s/^/$as_me: WARNING: /" >&2
17443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17445 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17446 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 eval "$as_ac_Header=\$ac_header_preproc"
17450 ac_res
=`eval echo '${'$as_ac_Header'}'`
17451 { echo "$as_me:$LINENO: result: $ac_res" >&5
17452 echo "${ECHO_T}$ac_res" >&6; }
17455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17456 cat >>confdefs.h
<<_ACEOF
17457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17465 { echo "$as_me:$LINENO: checking __crashreporter_info__" >&5
17466 echo $ECHO_N "checking __crashreporter_info__... $ECHO_C" >&6; }
17467 cat >conftest.
$ac_ext <<_ACEOF
17470 cat confdefs.h
>>conftest.
$ac_ext
17471 cat >>conftest.
$ac_ext <<_ACEOF
17472 /* end confdefs.h. */
17473 extern const char *__crashreporter_info__;
17475 __crashreporter_info__ = "test";
17480 rm -f conftest.
$ac_objext conftest
$ac_exeext
17481 if { (ac_try
="$ac_link"
17482 case "(($ac_try" in
17483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17484 *) ac_try_echo=$ac_try;;
17486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17487 (eval "$ac_link") 2>conftest.er1
17489 grep -v '^ *+' conftest.er1 >conftest.err
17491 cat conftest.err >&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); } &&
17494 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17495 { (case "(($ac_try" in
17496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17497 *) ac_try_echo
=$ac_try;;
17499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17500 (eval "$ac_try") 2>&5
17502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17503 (exit $ac_status); }; } &&
17504 { ac_try
='test -s conftest$ac_exeext'
17505 { (case "(($ac_try" in
17506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_try") 2>&5
17512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17513 (exit $ac_status); }; }; then
17514 { echo "$as_me:$LINENO: result: yes" >&5
17515 echo "${ECHO_T}yes" >&6; }
17517 cat >>confdefs.h <<\_ACEOF
17518 #define HAVE_CRASHREPORTER_INFO 1
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17525 { echo "$as_me:$LINENO: result: no" >&5
17526 echo "${ECHO_T}no" >&6; }
17528 cat >>confdefs.h <<\_ACEOF
17529 #define HAVE_CRASHREPORTER_INFO 0
17534 rm -f core conftest.err conftest.$ac_objext \
17535 conftest$ac_exeext conftest.$ac_ext
17540 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17541 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17542 if test "${ac_cv_huge_val_sanity+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17547 ac_cpp='$CXXCPP $CPPFLAGS'
17548 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17549 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17550 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17552 ac_save_CXXFLAGS=$CXXFLAGS
17554 if test "$cross_compiling" = yes; then
17555 ac_cv_huge_val_sanity=yes
17557 cat >conftest.$ac_ext <<_ACEOF
17560 cat confdefs.h >>conftest.$ac_ext
17561 cat >>conftest.$ac_ext <<_ACEOF
17562 /* end confdefs.h. */
17567 double x = HUGE_VAL; return x != x;
17572 rm -f conftest$ac_exeext
17573 if { (ac_try="$ac_link"
17574 case "(($ac_try" in
17575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17576 *) ac_try_echo
=$ac_try;;
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_link") 2>&5
17581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17582 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
17583 { (case "(($ac_try" in
17584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17588 (eval "$ac_try") 2>&5
17590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17591 (exit $ac_status); }; }; then
17592 ac_cv_huge_val_sanity=yes
17594 echo "$as_me: program exited with status $ac_status" >&5
17595 echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17598 ( exit $ac_status )
17599 ac_cv_huge_val_sanity=no
17601 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17605 CXXFLAGS=$ac_save_CXXFLAGS
17607 ac_cpp='$CPP $CPPFLAGS'
17608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17614 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17615 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17616 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17619 { echo "$as_me:$LINENO: checking for pid_t" >&5
17620 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17621 if test "${ac_cv_type_pid_t+set}" = set; then
17622 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 cat >conftest.$ac_ext <<_ACEOF
17627 cat confdefs.h >>conftest.$ac_ext
17628 cat >>conftest.$ac_ext <<_ACEOF
17629 /* end confdefs.h. */
17630 $ac_includes_default
17631 typedef pid_t ac__type_new_;
17635 if ((ac__type_new_ *) 0)
17637 if (sizeof (ac__type_new_))
17643 rm -f conftest.$ac_objext
17644 if { (ac_try="$ac_compile"
17645 case "(($ac_try" in
17646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17647 *) ac_try_echo
=$ac_try;;
17649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17650 (eval "$ac_compile") 2>conftest.er1
17652 grep -v '^ *+' conftest.er1
>conftest.err
17654 cat conftest.err
>&5
17655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656 (exit $ac_status); } &&
17657 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17658 { (case "(($ac_try" in
17659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17660 *) ac_try_echo=$ac_try;;
17662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17663 (eval "$ac_try") 2>&5
17665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17666 (exit $ac_status); }; } &&
17667 { ac_try='test -s conftest.$ac_objext'
17668 { (case "(($ac_try" in
17669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17670 *) ac_try_echo
=$ac_try;;
17672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17673 (eval "$ac_try") 2>&5
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }; }; then
17677 ac_cv_type_pid_t
=yes
17679 echo "$as_me: failed program was:" >&5
17680 sed 's/^/| /' conftest.
$ac_ext >&5
17682 ac_cv_type_pid_t
=no
17685 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17687 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17688 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17689 if test $ac_cv_type_pid_t = yes; then
17693 cat >>confdefs.h
<<_ACEOF
17699 { echo "$as_me:$LINENO: checking for size_t" >&5
17700 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17701 if test "${ac_cv_type_size_t+set}" = set; then
17702 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 cat >conftest.
$ac_ext <<_ACEOF
17707 cat confdefs.h
>>conftest.
$ac_ext
17708 cat >>conftest.
$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 $ac_includes_default
17711 typedef size_t ac__type_new_;
17715 if ((ac__type_new_ *) 0)
17717 if (sizeof (ac__type_new_))
17723 rm -f conftest.
$ac_objext
17724 if { (ac_try
="$ac_compile"
17725 case "(($ac_try" in
17726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17727 *) ac_try_echo=$ac_try;;
17729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17730 (eval "$ac_compile") 2>conftest.er1
17732 grep -v '^ *+' conftest.er1 >conftest.err
17734 cat conftest.err >&5
17735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17736 (exit $ac_status); } &&
17737 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17738 { (case "(($ac_try" in
17739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17740 *) ac_try_echo
=$ac_try;;
17742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17743 (eval "$ac_try") 2>&5
17745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17746 (exit $ac_status); }; } &&
17747 { ac_try
='test -s conftest.$ac_objext'
17748 { (case "(($ac_try" in
17749 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17750 *) ac_try_echo=$ac_try;;
17752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17753 (eval "$ac_try") 2>&5
17755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17756 (exit $ac_status); }; }; then
17757 ac_cv_type_size_t=yes
17759 echo "$as_me: failed program was:" >&5
17760 sed 's/^/| /' conftest.$ac_ext >&5
17762 ac_cv_type_size_t=no
17765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17767 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17768 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17769 if test $ac_cv_type_size_t = yes; then
17773 cat >>confdefs.h <<_ACEOF
17774 #define size_t unsigned int
17780 cat >>confdefs.h <<_ACEOF
17781 #define RETSIGTYPE void
17784 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17785 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17786 if test "${ac_cv_struct_tm+set}" = set; then
17787 echo $ECHO_N "(cached) $ECHO_C" >&6
17789 cat >conftest.$ac_ext <<_ACEOF
17792 cat confdefs.h >>conftest.$ac_ext
17793 cat >>conftest.$ac_ext <<_ACEOF
17794 /* end confdefs.h. */
17795 #include <sys/types.h>
17801 struct tm *tp; tp->tm_sec;
17806 rm -f conftest.$ac_objext
17807 if { (ac_try="$ac_compile"
17808 case "(($ac_try" in
17809 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17810 *) ac_try_echo
=$ac_try;;
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_compile") 2>conftest.er1
17815 grep -v '^ *+' conftest.er1
>conftest.err
17817 cat conftest.err
>&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } &&
17820 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17821 { (case "(($ac_try" in
17822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17823 *) ac_try_echo=$ac_try;;
17825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17826 (eval "$ac_try") 2>&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); }; } &&
17830 { ac_try='test -s conftest.$ac_objext'
17831 { (case "(($ac_try" in
17832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17833 *) ac_try_echo
=$ac_try;;
17835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17836 (eval "$ac_try") 2>&5
17838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17839 (exit $ac_status); }; }; then
17840 ac_cv_struct_tm
=time.h
17842 echo "$as_me: failed program was:" >&5
17843 sed 's/^/| /' conftest.
$ac_ext >&5
17845 ac_cv_struct_tm
=sys
/time.h
17848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17850 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17851 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17852 if test $ac_cv_struct_tm = sys
/time.h
; then
17854 cat >>confdefs.h
<<\_ACEOF
17855 #define TM_IN_SYS_TIME 1
17860 { echo "$as_me:$LINENO: checking for int64_t" >&5
17861 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17862 if test "${ac_cv_type_int64_t+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17865 cat >conftest.
$ac_ext <<_ACEOF
17868 cat confdefs.h
>>conftest.
$ac_ext
17869 cat >>conftest.
$ac_ext <<_ACEOF
17870 /* end confdefs.h. */
17871 $ac_includes_default
17872 typedef int64_t ac__type_new_;
17876 if ((ac__type_new_ *) 0)
17878 if (sizeof (ac__type_new_))
17884 rm -f conftest.
$ac_objext
17885 if { (ac_try
="$ac_compile"
17886 case "(($ac_try" in
17887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17888 *) ac_try_echo=$ac_try;;
17890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17891 (eval "$ac_compile") 2>conftest.er1
17893 grep -v '^ *+' conftest.er1 >conftest.err
17895 cat conftest.err >&5
17896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17897 (exit $ac_status); } &&
17898 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17899 { (case "(($ac_try" in
17900 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17901 *) ac_try_echo
=$ac_try;;
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_try") 2>&5
17906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17907 (exit $ac_status); }; } &&
17908 { ac_try
='test -s conftest.$ac_objext'
17909 { (case "(($ac_try" in
17910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_try") 2>&5
17916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17917 (exit $ac_status); }; }; then
17918 ac_cv_type_int64_t=yes
17920 echo "$as_me: failed program was:" >&5
17921 sed 's/^/| /' conftest.$ac_ext >&5
17923 ac_cv_type_int64_t=no
17926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17928 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17929 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17930 if test $ac_cv_type_int64_t = yes; then
17932 cat >>confdefs.h <<_ACEOF
17933 #define HAVE_INT64_T 1
17938 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17939 echo "$as_me: error: Type int64_t required but not found" >&2;}
17940 { (exit 1); exit 1; }; }
17943 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17944 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17945 if test "${ac_cv_type_uint64_t+set}" = set; then
17946 echo $ECHO_N "(cached) $ECHO_C" >&6
17948 cat >conftest.$ac_ext <<_ACEOF
17951 cat confdefs.h >>conftest.$ac_ext
17952 cat >>conftest.$ac_ext <<_ACEOF
17953 /* end confdefs.h. */
17954 $ac_includes_default
17955 typedef uint64_t ac__type_new_;
17959 if ((ac__type_new_ *) 0)
17961 if (sizeof (ac__type_new_))
17967 rm -f conftest.$ac_objext
17968 if { (ac_try="$ac_compile"
17969 case "(($ac_try" in
17970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17971 *) ac_try_echo
=$ac_try;;
17973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17974 (eval "$ac_compile") 2>conftest.er1
17976 grep -v '^ *+' conftest.er1
>conftest.err
17978 cat conftest.err
>&5
17979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } &&
17981 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17982 { (case "(($ac_try" in
17983 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17984 *) ac_try_echo=$ac_try;;
17986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17987 (eval "$ac_try") 2>&5
17989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17990 (exit $ac_status); }; } &&
17991 { ac_try='test -s conftest.$ac_objext'
17992 { (case "(($ac_try" in
17993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17994 *) ac_try_echo
=$ac_try;;
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_try") 2>&5
17999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18000 (exit $ac_status); }; }; then
18001 ac_cv_type_uint64_t
=yes
18003 echo "$as_me: failed program was:" >&5
18004 sed 's/^/| /' conftest.
$ac_ext >&5
18006 ac_cv_type_uint64_t
=no
18009 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
18011 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
18012 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
18013 if test $ac_cv_type_uint64_t = yes; then
18015 cat >>confdefs.h
<<_ACEOF
18016 #define HAVE_UINT64_T 1
18021 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
18022 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
18023 if test "${ac_cv_type_u_int64_t+set}" = set; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 cat >conftest.
$ac_ext <<_ACEOF
18029 cat confdefs.h
>>conftest.
$ac_ext
18030 cat >>conftest.
$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 $ac_includes_default
18033 typedef u_int64_t ac__type_new_;
18037 if ((ac__type_new_ *) 0)
18039 if (sizeof (ac__type_new_))
18045 rm -f conftest.
$ac_objext
18046 if { (ac_try
="$ac_compile"
18047 case "(($ac_try" in
18048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18049 *) ac_try_echo=$ac_try;;
18051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18052 (eval "$ac_compile") 2>conftest.er1
18054 grep -v '^ *+' conftest.er1 >conftest.err
18056 cat conftest.err >&5
18057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18058 (exit $ac_status); } &&
18059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18060 { (case "(($ac_try" in
18061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18062 *) ac_try_echo
=$ac_try;;
18064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18065 (eval "$ac_try") 2>&5
18067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18068 (exit $ac_status); }; } &&
18069 { ac_try
='test -s conftest.$ac_objext'
18070 { (case "(($ac_try" in
18071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18072 *) ac_try_echo=$ac_try;;
18074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18075 (eval "$ac_try") 2>&5
18077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18078 (exit $ac_status); }; }; then
18079 ac_cv_type_u_int64_t=yes
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18084 ac_cv_type_u_int64_t=no
18087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
18090 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
18091 if test $ac_cv_type_u_int64_t = yes; then
18093 cat >>confdefs.h <<_ACEOF
18094 #define HAVE_U_INT64_T 1
18099 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
18100 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
18101 { (exit 1); exit 1; }; }
18115 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
18117 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18118 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18119 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18120 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18121 echo $ECHO_N "(cached) $ECHO_C" >&6
18123 cat >conftest.$ac_ext <<_ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18129 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18130 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18131 #define $ac_func innocuous_$ac_func
18133 /* System header to define __stub macros and hopefully few prototypes,
18134 which can conflict with char $ac_func (); below.
18135 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18136 <limits.h> exists even on freestanding compilers. */
18139 # include <limits.h>
18141 # include <assert.h>
18146 /* Override any GCC internal prototype to avoid an error.
18147 Use char because int might match the return type of a GCC
18148 builtin and then its argument prototype would still apply. */
18153 /* The GNU C library defines this for functions which it implements
18154 to always fail with ENOSYS. Some functions are actually named
18155 something starting with __ and the normal name is an alias. */
18156 #if defined __stub_$ac_func || defined __stub___$ac_func
18163 return $ac_func ();
18168 rm -f conftest.$ac_objext conftest$ac_exeext
18169 if { (ac_try="$ac_link"
18170 case "(($ac_try" in
18171 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18172 *) ac_try_echo
=$ac_try;;
18174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18175 (eval "$ac_link") 2>conftest.er1
18177 grep -v '^ *+' conftest.er1
>conftest.err
18179 cat conftest.err
>&5
18180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18181 (exit $ac_status); } &&
18182 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18183 { (case "(($ac_try" in
18184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_try") 2>&5
18190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18191 (exit $ac_status); }; } &&
18192 { ac_try='test -s conftest$ac_exeext'
18193 { (case "(($ac_try" in
18194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18195 *) ac_try_echo
=$ac_try;;
18197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_try") 2>&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
18202 eval "$as_ac_var=yes"
18204 echo "$as_me: failed program was:" >&5
18205 sed 's/^/| /' conftest.
$ac_ext >&5
18207 eval "$as_ac_var=no"
18210 rm -f core conftest.err conftest.
$ac_objext \
18211 conftest
$ac_exeext conftest.
$ac_ext
18213 ac_res
=`eval echo '${'$as_ac_var'}'`
18214 { echo "$as_me:$LINENO: result: $ac_res" >&5
18215 echo "${ECHO_T}$ac_res" >&6; }
18216 if test `eval echo '${'$as_ac_var'}'` = yes; then
18217 cat >>confdefs.h
<<_ACEOF
18218 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18228 for ac_func
in powf fmodf strtof round
18230 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18231 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18232 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18233 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18234 echo $ECHO_N "(cached) $ECHO_C" >&6
18236 cat >conftest.
$ac_ext <<_ACEOF
18239 cat confdefs.h
>>conftest.
$ac_ext
18240 cat >>conftest.
$ac_ext <<_ACEOF
18241 /* end confdefs.h. */
18242 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18243 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18244 #define $ac_func innocuous_$ac_func
18246 /* System header to define __stub macros and hopefully few prototypes,
18247 which can conflict with char $ac_func (); below.
18248 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18249 <limits.h> exists even on freestanding compilers. */
18252 # include <limits.h>
18254 # include <assert.h>
18259 /* Override any GCC internal prototype to avoid an error.
18260 Use char because int might match the return type of a GCC
18261 builtin and then its argument prototype would still apply. */
18266 /* The GNU C library defines this for functions which it implements
18267 to always fail with ENOSYS. Some functions are actually named
18268 something starting with __ and the normal name is an alias. */
18269 #if defined __stub_$ac_func || defined __stub___$ac_func
18276 return $ac_func ();
18281 rm -f conftest.
$ac_objext conftest
$ac_exeext
18282 if { (ac_try
="$ac_link"
18283 case "(($ac_try" in
18284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_link") 2>conftest.er1
18290 grep -v '^ *+' conftest.er1 >conftest.err
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } &&
18295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18296 { (case "(($ac_try" in
18297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18298 *) ac_try_echo
=$ac_try;;
18300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18301 (eval "$ac_try") 2>&5
18303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18304 (exit $ac_status); }; } &&
18305 { ac_try
='test -s conftest$ac_exeext'
18306 { (case "(($ac_try" in
18307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18308 *) ac_try_echo=$ac_try;;
18310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18311 (eval "$ac_try") 2>&5
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }; }; then
18315 eval "$as_ac_var=yes"
18317 echo "$as_me: failed program was:" >&5
18318 sed 's/^/| /' conftest.$ac_ext >&5
18320 eval "$as_ac_var=no"
18323 rm -f core conftest.err conftest.$ac_objext \
18324 conftest$ac_exeext conftest.$ac_ext
18326 ac_res=`eval echo '${'$as_ac_var'}'`
18327 { echo "$as_me:$LINENO: result: $ac_res" >&5
18328 echo "${ECHO_T}$ac_res" >&6; }
18329 if test `eval echo '${'$as_ac_var'}'` = yes; then
18330 cat >>confdefs.h <<_ACEOF
18331 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18342 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18344 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18345 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18346 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18347 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18348 echo $ECHO_N "(cached) $ECHO_C" >&6
18350 cat >conftest.$ac_ext <<_ACEOF
18353 cat confdefs.h >>conftest.$ac_ext
18354 cat >>conftest.$ac_ext <<_ACEOF
18355 /* end confdefs.h. */
18356 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18358 #define $ac_func innocuous_$ac_func
18360 /* System header to define __stub macros and hopefully few prototypes,
18361 which can conflict with char $ac_func (); below.
18362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18363 <limits.h> exists even on freestanding compilers. */
18366 # include <limits.h>
18368 # include <assert.h>
18373 /* Override any GCC internal prototype to avoid an error.
18374 Use char because int might match the return type of a GCC
18375 builtin and then its argument prototype would still apply. */
18380 /* The GNU C library defines this for functions which it implements
18381 to always fail with ENOSYS. Some functions are actually named
18382 something starting with __ and the normal name is an alias. */
18383 #if defined __stub_$ac_func || defined __stub___$ac_func
18390 return $ac_func ();
18395 rm -f conftest.$ac_objext conftest$ac_exeext
18396 if { (ac_try="$ac_link"
18397 case "(($ac_try" in
18398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18399 *) ac_try_echo
=$ac_try;;
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_link") 2>conftest.er1
18404 grep -v '^ *+' conftest.er1
>conftest.err
18406 cat conftest.err
>&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } &&
18409 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18410 { (case "(($ac_try" in
18411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18412 *) ac_try_echo=$ac_try;;
18414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18415 (eval "$ac_try") 2>&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); }; } &&
18419 { ac_try='test -s conftest$ac_exeext'
18420 { (case "(($ac_try" in
18421 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18422 *) ac_try_echo
=$ac_try;;
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_try") 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; }; then
18429 eval "$as_ac_var=yes"
18431 echo "$as_me: failed program was:" >&5
18432 sed 's/^/| /' conftest.
$ac_ext >&5
18434 eval "$as_ac_var=no"
18437 rm -f core conftest.err conftest.
$ac_objext \
18438 conftest
$ac_exeext conftest.
$ac_ext
18440 ac_res
=`eval echo '${'$as_ac_var'}'`
18441 { echo "$as_me:$LINENO: result: $ac_res" >&5
18442 echo "${ECHO_T}$ac_res" >&6; }
18443 if test `eval echo '${'$as_ac_var'}'` = yes; then
18444 cat >>confdefs.h
<<_ACEOF
18445 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18454 for ac_func
in isatty mkdtemp mkstemp
18456 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18459 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18460 echo $ECHO_N "(cached) $ECHO_C" >&6
18462 cat >conftest.
$ac_ext <<_ACEOF
18465 cat confdefs.h
>>conftest.
$ac_ext
18466 cat >>conftest.
$ac_ext <<_ACEOF
18467 /* end confdefs.h. */
18468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18470 #define $ac_func innocuous_$ac_func
18472 /* System header to define __stub macros and hopefully few prototypes,
18473 which can conflict with char $ac_func (); below.
18474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18475 <limits.h> exists even on freestanding compilers. */
18478 # include <limits.h>
18480 # include <assert.h>
18485 /* Override any GCC internal prototype to avoid an error.
18486 Use char because int might match the return type of a GCC
18487 builtin and then its argument prototype would still apply. */
18492 /* The GNU C library defines this for functions which it implements
18493 to always fail with ENOSYS. Some functions are actually named
18494 something starting with __ and the normal name is an alias. */
18495 #if defined __stub_$ac_func || defined __stub___$ac_func
18502 return $ac_func ();
18507 rm -f conftest.
$ac_objext conftest
$ac_exeext
18508 if { (ac_try
="$ac_link"
18509 case "(($ac_try" in
18510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_link") 2>conftest.er1
18516 grep -v '^ *+' conftest.er1 >conftest.err
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } &&
18521 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18522 { (case "(($ac_try" in
18523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18524 *) ac_try_echo
=$ac_try;;
18526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18527 (eval "$ac_try") 2>&5
18529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18530 (exit $ac_status); }; } &&
18531 { ac_try
='test -s conftest$ac_exeext'
18532 { (case "(($ac_try" in
18533 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18534 *) ac_try_echo=$ac_try;;
18536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18537 (eval "$ac_try") 2>&5
18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18540 (exit $ac_status); }; }; then
18541 eval "$as_ac_var=yes"
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18546 eval "$as_ac_var=no"
18549 rm -f core conftest.err conftest.$ac_objext \
18550 conftest$ac_exeext conftest.$ac_ext
18552 ac_res=`eval echo '${'$as_ac_var'}'`
18553 { echo "$as_me:$LINENO: result: $ac_res" >&5
18554 echo "${ECHO_T}$ac_res" >&6; }
18555 if test `eval echo '${'$as_ac_var'}'` = yes; then
18556 cat >>confdefs.h <<_ACEOF
18557 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18569 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18571 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18572 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18573 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18574 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18575 echo $ECHO_N "(cached) $ECHO_C" >&6
18577 cat >conftest.$ac_ext <<_ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18585 #define $ac_func innocuous_$ac_func
18587 /* System header to define __stub macros and hopefully few prototypes,
18588 which can conflict with char $ac_func (); below.
18589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18590 <limits.h> exists even on freestanding compilers. */
18593 # include <limits.h>
18595 # include <assert.h>
18600 /* Override any GCC internal prototype to avoid an error.
18601 Use char because int might match the return type of a GCC
18602 builtin and then its argument prototype would still apply. */
18607 /* The GNU C library defines this for functions which it implements
18608 to always fail with ENOSYS. Some functions are actually named
18609 something starting with __ and the normal name is an alias. */
18610 #if defined __stub_$ac_func || defined __stub___$ac_func
18617 return $ac_func ();
18622 rm -f conftest.$ac_objext conftest$ac_exeext
18623 if { (ac_try="$ac_link"
18624 case "(($ac_try" in
18625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18626 *) ac_try_echo
=$ac_try;;
18628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18629 (eval "$ac_link") 2>conftest.er1
18631 grep -v '^ *+' conftest.er1
>conftest.err
18633 cat conftest.err
>&5
18634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18635 (exit $ac_status); } &&
18636 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18637 { (case "(($ac_try" in
18638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18639 *) ac_try_echo=$ac_try;;
18641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18642 (eval "$ac_try") 2>&5
18644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18645 (exit $ac_status); }; } &&
18646 { ac_try='test -s conftest$ac_exeext'
18647 { (case "(($ac_try" in
18648 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18649 *) ac_try_echo
=$ac_try;;
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_try") 2>&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); }; }; then
18656 eval "$as_ac_var=yes"
18658 echo "$as_me: failed program was:" >&5
18659 sed 's/^/| /' conftest.
$ac_ext >&5
18661 eval "$as_ac_var=no"
18664 rm -f core conftest.err conftest.
$ac_objext \
18665 conftest
$ac_exeext conftest.
$ac_ext
18667 ac_res
=`eval echo '${'$as_ac_var'}'`
18668 { echo "$as_me:$LINENO: result: $ac_res" >&5
18669 echo "${ECHO_T}$ac_res" >&6; }
18670 if test `eval echo '${'$as_ac_var'}'` = yes; then
18671 cat >>confdefs.h
<<_ACEOF
18672 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18682 for ac_func
in strerror strerror_r strerror_s setenv
18684 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18685 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18686 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18687 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18688 echo $ECHO_N "(cached) $ECHO_C" >&6
18690 cat >conftest.
$ac_ext <<_ACEOF
18693 cat confdefs.h
>>conftest.
$ac_ext
18694 cat >>conftest.
$ac_ext <<_ACEOF
18695 /* end confdefs.h. */
18696 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18697 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18698 #define $ac_func innocuous_$ac_func
18700 /* System header to define __stub macros and hopefully few prototypes,
18701 which can conflict with char $ac_func (); below.
18702 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18703 <limits.h> exists even on freestanding compilers. */
18706 # include <limits.h>
18708 # include <assert.h>
18713 /* Override any GCC internal prototype to avoid an error.
18714 Use char because int might match the return type of a GCC
18715 builtin and then its argument prototype would still apply. */
18720 /* The GNU C library defines this for functions which it implements
18721 to always fail with ENOSYS. Some functions are actually named
18722 something starting with __ and the normal name is an alias. */
18723 #if defined __stub_$ac_func || defined __stub___$ac_func
18730 return $ac_func ();
18735 rm -f conftest.
$ac_objext conftest
$ac_exeext
18736 if { (ac_try
="$ac_link"
18737 case "(($ac_try" in
18738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_link") 2>conftest.er1
18744 grep -v '^ *+' conftest.er1 >conftest.err
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } &&
18749 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
18759 { ac_try
='test -s conftest$ac_exeext'
18760 { (case "(($ac_try" in
18761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18762 *) ac_try_echo=$ac_try;;
18764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18765 (eval "$ac_try") 2>&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); }; }; then
18769 eval "$as_ac_var=yes"
18771 echo "$as_me: failed program was:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18774 eval "$as_ac_var=no"
18777 rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18780 ac_res=`eval echo '${'$as_ac_var'}'`
18781 { echo "$as_me:$LINENO: result: $ac_res" >&5
18782 echo "${ECHO_T}$ac_res" >&6; }
18783 if test `eval echo '${'$as_ac_var'}'` = yes; then
18784 cat >>confdefs.h <<_ACEOF
18785 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18795 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18797 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18798 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18799 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18800 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18801 echo $ECHO_N "(cached) $ECHO_C" >&6
18803 cat >conftest.$ac_ext <<_ACEOF
18806 cat confdefs.h >>conftest.$ac_ext
18807 cat >>conftest.$ac_ext <<_ACEOF
18808 /* end confdefs.h. */
18809 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18810 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18811 #define $ac_func innocuous_$ac_func
18813 /* System header to define __stub macros and hopefully few prototypes,
18814 which can conflict with char $ac_func (); below.
18815 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18816 <limits.h> exists even on freestanding compilers. */
18819 # include <limits.h>
18821 # include <assert.h>
18826 /* Override any GCC internal prototype to avoid an error.
18827 Use char because int might match the return type of a GCC
18828 builtin and then its argument prototype would still apply. */
18833 /* The GNU C library defines this for functions which it implements
18834 to always fail with ENOSYS. Some functions are actually named
18835 something starting with __ and the normal name is an alias. */
18836 #if defined __stub_$ac_func || defined __stub___$ac_func
18843 return $ac_func ();
18848 rm -f conftest.$ac_objext conftest$ac_exeext
18849 if { (ac_try="$ac_link"
18850 case "(($ac_try" in
18851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18852 *) ac_try_echo
=$ac_try;;
18854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18855 (eval "$ac_link") 2>conftest.er1
18857 grep -v '^ *+' conftest.er1
>conftest.err
18859 cat conftest.err
>&5
18860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18861 (exit $ac_status); } &&
18862 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18863 { (case "(($ac_try" in
18864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_try") 2>&5
18870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18871 (exit $ac_status); }; } &&
18872 { ac_try='test -s conftest$ac_exeext'
18873 { (case "(($ac_try" in
18874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18875 *) ac_try_echo
=$ac_try;;
18877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18878 (eval "$ac_try") 2>&5
18880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18881 (exit $ac_status); }; }; then
18882 eval "$as_ac_var=yes"
18884 echo "$as_me: failed program was:" >&5
18885 sed 's/^/| /' conftest.
$ac_ext >&5
18887 eval "$as_ac_var=no"
18890 rm -f core conftest.err conftest.
$ac_objext \
18891 conftest
$ac_exeext conftest.
$ac_ext
18893 ac_res
=`eval echo '${'$as_ac_var'}'`
18894 { echo "$as_me:$LINENO: result: $ac_res" >&5
18895 echo "${ECHO_T}$ac_res" >&6; }
18896 if test `eval echo '${'$as_ac_var'}'` = yes; then
18897 cat >>confdefs.h
<<_ACEOF
18898 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18908 for ac_func
in setjmp longjmp sigsetjmp siglongjmp
18910 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18913 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18914 echo $ECHO_N "(cached) $ECHO_C" >&6
18916 cat >conftest.
$ac_ext <<_ACEOF
18919 cat confdefs.h
>>conftest.
$ac_ext
18920 cat >>conftest.
$ac_ext <<_ACEOF
18921 /* end confdefs.h. */
18922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18924 #define $ac_func innocuous_$ac_func
18926 /* System header to define __stub macros and hopefully few prototypes,
18927 which can conflict with char $ac_func (); below.
18928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18929 <limits.h> exists even on freestanding compilers. */
18932 # include <limits.h>
18934 # include <assert.h>
18939 /* Override any GCC internal prototype to avoid an error.
18940 Use char because int might match the return type of a GCC
18941 builtin and then its argument prototype would still apply. */
18946 /* The GNU C library defines this for functions which it implements
18947 to always fail with ENOSYS. Some functions are actually named
18948 something starting with __ and the normal name is an alias. */
18949 #if defined __stub_$ac_func || defined __stub___$ac_func
18956 return $ac_func ();
18961 rm -f conftest.
$ac_objext conftest
$ac_exeext
18962 if { (ac_try
="$ac_link"
18963 case "(($ac_try" in
18964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_link") 2>conftest.er1
18970 grep -v '^ *+' conftest.er1 >conftest.err
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
18975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18976 { (case "(($ac_try" in
18977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18978 *) ac_try_echo
=$ac_try;;
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_try") 2>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; } &&
18985 { ac_try
='test -s conftest$ac_exeext'
18986 { (case "(($ac_try" in
18987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_try") 2>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18995 eval "$as_ac_var=yes"
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 eval "$as_ac_var=no"
19003 rm -f core conftest.err conftest.$ac_objext \
19004 conftest$ac_exeext conftest.$ac_ext
19006 ac_res=`eval echo '${'$as_ac_var'}'`
19007 { echo "$as_me:$LINENO: result: $ac_res" >&5
19008 echo "${ECHO_T}$ac_res" >&6; }
19009 if test `eval echo '${'$as_ac_var'}'` = yes; then
19010 cat >>confdefs.h <<_ACEOF
19011 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19017 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
19018 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
19019 if test "${llvm_cv_c_printf_a+set}" = set; then
19020 echo $ECHO_N "(cached) $ECHO_C" >&6
19023 ac_cpp='$CPP $CPPFLAGS'
19024 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19025 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19026 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19028 if test "$cross_compiling" = yes; then
19029 llvmac_cv_c_printf_a=no
19031 cat >conftest.$ac_ext <<_ACEOF
19035 cat confdefs.h >>conftest.$ac_ext
19036 cat >>conftest.$ac_ext <<_ACEOF
19037 /* end confdefs.h. */
19040 #include <stdlib.h>
19046 volatile double A, B;
19050 sprintf(Buffer, "%a", A);
19054 if (A != 0x1.999999999999ap-4)
19061 rm -f conftest$ac_exeext
19062 if { (ac_try="$ac_link"
19063 case "(($ac_try" in
19064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19065 *) ac_try_echo
=$ac_try;;
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068 (eval "$ac_link") 2>&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
19072 { (case "(($ac_try" in
19073 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_try") 2>&5
19079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); }; }; then
19081 llvm_cv_c_printf_a=yes
19083 echo "$as_me: program exited with status $ac_status" >&5
19084 echo "$as_me: failed program was:" >&5
19085 sed 's/^/| /' conftest.$ac_ext >&5
19087 ( exit $ac_status )
19088 llvmac_cv_c_printf_a=no
19090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19095 ac_cpp='$CPP $CPPFLAGS'
19096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19101 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
19102 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
19103 if test "$llvm_cv_c_printf_a" = "yes"; then
19105 cat >>confdefs.h <<\_ACEOF
19106 #define HAVE_PRINTF_A 1
19112 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
19113 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
19114 if test "${ac_cv_func_rand48+set}" = set; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
19118 ac_cpp='$CXXCPP $CPPFLAGS'
19119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19123 cat >conftest.$ac_ext <<_ACEOF
19126 cat confdefs.h >>conftest.$ac_ext
19127 cat >>conftest.$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19129 #include <stdlib.h>
19133 srand48(0);lrand48();drand48();
19138 rm -f conftest.$ac_objext
19139 if { (ac_try="$ac_compile"
19140 case "(($ac_try" in
19141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19142 *) ac_try_echo
=$ac_try;;
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_compile") 2>conftest.er1
19147 grep -v '^ *+' conftest.er1
>conftest.err
19149 cat conftest.err
>&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
19152 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19153 { (case "(($ac_try" in
19154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19155 *) ac_try_echo=$ac_try;;
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_try") 2>&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; } &&
19162 { ac_try='test -s conftest.$ac_objext'
19163 { (case "(($ac_try" in
19164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19165 *) ac_try_echo
=$ac_try;;
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_try") 2>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19172 ac_cv_func_rand48
=yes
19174 echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.
$ac_ext >&5
19177 ac_cv_func_rand48
=no
19180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19182 ac_cpp
='$CPP $CPPFLAGS'
19183 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19188 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19189 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19191 if test "$ac_cv_func_rand48" = "yes" ; then
19193 cat >>confdefs.h
<<\_ACEOF
19194 #define HAVE_RAND48 1
19201 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19202 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19203 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19204 echo $ECHO_N "(cached) $ECHO_C" >&6
19207 ac_cpp
='$CXXCPP $CPPFLAGS'
19208 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19209 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19210 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19212 cat >conftest.
$ac_ext <<_ACEOF
19215 cat confdefs.h
>>conftest.
$ac_ext
19216 cat >>conftest.
$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19227 rm -f conftest.
$ac_objext
19228 if { (ac_try
="$ac_compile"
19229 case "(($ac_try" in
19230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19231 *) ac_try_echo=$ac_try;;
19233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19234 (eval "$ac_compile") 2>conftest.er1
19236 grep -v '^ *+' conftest.er1 >conftest.err
19238 cat conftest.err >&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); } &&
19241 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19242 { (case "(($ac_try" in
19243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19244 *) ac_try_echo
=$ac_try;;
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_try") 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; } &&
19251 { ac_try
='test -s conftest.$ac_objext'
19252 { (case "(($ac_try" in
19253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19254 *) ac_try_echo=$ac_try;;
19256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19257 (eval "$ac_try") 2>&5
19259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19260 (exit $ac_status); }; }; then
19261 ac_cv_func_isnan_in_math_h=yes
19263 echo "$as_me: failed program was:" >&5
19264 sed 's/^/| /' conftest.$ac_ext >&5
19266 ac_cv_func_isnan_in_math_h=no
19269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19271 ac_cpp='$CPP $CPPFLAGS'
19272 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19273 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19274 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19277 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19278 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19281 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19283 cat >>confdefs.h <<\_ACEOF
19284 #define HAVE_ISNAN_IN_MATH_H 1
19289 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19290 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19291 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19292 echo $ECHO_N "(cached) $ECHO_C" >&6
19295 ac_cpp='$CXXCPP $CPPFLAGS'
19296 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19297 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19298 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19300 cat >conftest.$ac_ext <<_ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19315 rm -f conftest.$ac_objext
19316 if { (ac_try="$ac_compile"
19317 case "(($ac_try" in
19318 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19319 *) ac_try_echo
=$ac_try;;
19321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19322 (eval "$ac_compile") 2>conftest.er1
19324 grep -v '^ *+' conftest.er1
>conftest.err
19326 cat conftest.err
>&5
19327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19328 (exit $ac_status); } &&
19329 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19330 { (case "(($ac_try" in
19331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19332 *) ac_try_echo=$ac_try;;
19334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19335 (eval "$ac_try") 2>&5
19337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19338 (exit $ac_status); }; } &&
19339 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
19347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19348 (exit $ac_status); }; }; then
19349 ac_cv_func_isnan_in_cmath
=yes
19351 echo "$as_me: failed program was:" >&5
19352 sed 's/^/| /' conftest.
$ac_ext >&5
19354 ac_cv_func_isnan_in_cmath
=no
19357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19359 ac_cpp
='$CPP $CPPFLAGS'
19360 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19361 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19362 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19365 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19366 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19368 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19370 cat >>confdefs.h
<<\_ACEOF
19371 #define HAVE_ISNAN_IN_CMATH 1
19376 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19377 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19378 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19382 ac_cpp
='$CXXCPP $CPPFLAGS'
19383 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19384 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19385 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19387 cat >conftest.
$ac_ext <<_ACEOF
19390 cat confdefs.h
>>conftest.
$ac_ext
19391 cat >>conftest.
$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19397 float f; std::isnan(f);
19402 rm -f conftest.
$ac_objext
19403 if { (ac_try
="$ac_compile"
19404 case "(($ac_try" in
19405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19409 (eval "$ac_compile") 2>conftest.er1
19411 grep -v '^ *+' conftest.er1 >conftest.err
19413 cat conftest.err >&5
19414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19415 (exit $ac_status); } &&
19416 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19417 { (case "(($ac_try" in
19418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19419 *) ac_try_echo
=$ac_try;;
19421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_try") 2>&5
19424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19425 (exit $ac_status); }; } &&
19426 { ac_try
='test -s conftest.$ac_objext'
19427 { (case "(($ac_try" in
19428 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19429 *) ac_try_echo=$ac_try;;
19431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19432 (eval "$ac_try") 2>&5
19434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19435 (exit $ac_status); }; }; then
19436 ac_cv_func_std_isnan_in_cmath=yes
19438 echo "$as_me: failed program was:" >&5
19439 sed 's/^/| /' conftest.$ac_ext >&5
19441 ac_cv_func_std_isnan_in_cmath=no
19444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19446 ac_cpp='$CPP $CPPFLAGS'
19447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19452 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19453 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19455 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19457 cat >>confdefs.h <<\_ACEOF
19458 #define HAVE_STD_ISNAN_IN_CMATH 1
19464 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19465 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19466 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19467 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 ac_cpp='$CXXCPP $CPPFLAGS'
19471 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19472 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19473 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19475 cat >conftest.$ac_ext <<_ACEOF
19478 cat confdefs.h >>conftest.$ac_ext
19479 cat >>conftest.$ac_ext <<_ACEOF
19480 /* end confdefs.h. */
19490 rm -f conftest.$ac_objext
19491 if { (ac_try="$ac_compile"
19492 case "(($ac_try" in
19493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19494 *) ac_try_echo
=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_compile") 2>conftest.er1
19499 grep -v '^ *+' conftest.er1
>conftest.err
19501 cat conftest.err
>&5
19502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19503 (exit $ac_status); } &&
19504 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19505 { (case "(($ac_try" in
19506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_try") 2>&5
19512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19513 (exit $ac_status); }; } &&
19514 { ac_try='test -s conftest.$ac_objext'
19515 { (case "(($ac_try" in
19516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19517 *) ac_try_echo
=$ac_try;;
19519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19520 (eval "$ac_try") 2>&5
19522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); }; }; then
19524 ac_cv_func_isinf_in_math_h
=yes
19526 echo "$as_me: failed program was:" >&5
19527 sed 's/^/| /' conftest.
$ac_ext >&5
19529 ac_cv_func_isinf_in_math_h
=no
19532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19534 ac_cpp
='$CPP $CPPFLAGS'
19535 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19536 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19537 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19540 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19541 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19543 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19545 cat >>confdefs.h
<<\_ACEOF
19546 #define HAVE_ISINF_IN_MATH_H 1
19551 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19552 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19553 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19557 ac_cpp
='$CXXCPP $CPPFLAGS'
19558 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19559 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19560 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19562 cat >conftest.
$ac_ext <<_ACEOF
19565 cat confdefs.h
>>conftest.
$ac_ext
19566 cat >>conftest.
$ac_ext <<_ACEOF
19567 /* end confdefs.h. */
19577 rm -f conftest.
$ac_objext
19578 if { (ac_try
="$ac_compile"
19579 case "(($ac_try" in
19580 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19581 *) ac_try_echo=$ac_try;;
19583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19584 (eval "$ac_compile") 2>conftest.er1
19586 grep -v '^ *+' conftest.er1 >conftest.err
19588 cat conftest.err >&5
19589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19590 (exit $ac_status); } &&
19591 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19592 { (case "(($ac_try" in
19593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19594 *) ac_try_echo
=$ac_try;;
19596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19597 (eval "$ac_try") 2>&5
19599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); }; } &&
19601 { ac_try
='test -s conftest.$ac_objext'
19602 { (case "(($ac_try" in
19603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19607 (eval "$ac_try") 2>&5
19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); }; }; then
19611 ac_cv_func_isinf_in_cmath=yes
19613 echo "$as_me: failed program was:" >&5
19614 sed 's/^/| /' conftest.$ac_ext >&5
19616 ac_cv_func_isinf_in_cmath=no
19619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19621 ac_cpp='$CPP $CPPFLAGS'
19622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19627 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19628 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19630 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19632 cat >>confdefs.h <<\_ACEOF
19633 #define HAVE_ISINF_IN_CMATH 1
19638 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19639 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19640 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19641 echo $ECHO_N "(cached) $ECHO_C" >&6
19644 ac_cpp='$CXXCPP $CPPFLAGS'
19645 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19646 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19647 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19649 cat >conftest.$ac_ext <<_ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19659 float f; std::isinf(f)}
19664 rm -f conftest.$ac_objext
19665 if { (ac_try="$ac_compile"
19666 case "(($ac_try" in
19667 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19668 *) ac_try_echo
=$ac_try;;
19670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19671 (eval "$ac_compile") 2>conftest.er1
19673 grep -v '^ *+' conftest.er1
>conftest.err
19675 cat conftest.err
>&5
19676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19677 (exit $ac_status); } &&
19678 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19679 { (case "(($ac_try" in
19680 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19681 *) ac_try_echo=$ac_try;;
19683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19684 (eval "$ac_try") 2>&5
19686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19687 (exit $ac_status); }; } &&
19688 { ac_try='test -s conftest.$ac_objext'
19689 { (case "(($ac_try" in
19690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19691 *) ac_try_echo
=$ac_try;;
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_try") 2>&5
19696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19697 (exit $ac_status); }; }; then
19698 ac_cv_func_std_isinf_in_cmath
=yes
19700 echo "$as_me: failed program was:" >&5
19701 sed 's/^/| /' conftest.
$ac_ext >&5
19703 ac_cv_func_std_isinf_in_cmath
=no
19706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19708 ac_cpp
='$CPP $CPPFLAGS'
19709 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19710 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19711 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19714 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19715 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19717 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19719 cat >>confdefs.h
<<\_ACEOF
19720 #define HAVE_STD_ISINF_IN_CMATH 1
19725 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19726 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19727 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19728 echo $ECHO_N "(cached) $ECHO_C" >&6
19731 ac_cpp
='$CXXCPP $CPPFLAGS'
19732 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19733 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19734 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19736 cat >conftest.
$ac_ext <<_ACEOF
19739 cat confdefs.h
>>conftest.
$ac_ext
19740 cat >>conftest.
$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742 #include <ieeefp.h>
19746 float f; finite(f);
19751 rm -f conftest.
$ac_objext
19752 if { (ac_try
="$ac_compile"
19753 case "(($ac_try" in
19754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19755 *) ac_try_echo=$ac_try;;
19757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19758 (eval "$ac_compile") 2>conftest.er1
19760 grep -v '^ *+' conftest.er1 >conftest.err
19762 cat conftest.err >&5
19763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19764 (exit $ac_status); } &&
19765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19766 { (case "(($ac_try" in
19767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19768 *) ac_try_echo
=$ac_try;;
19770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19771 (eval "$ac_try") 2>&5
19773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19774 (exit $ac_status); }; } &&
19775 { ac_try
='test -s conftest.$ac_objext'
19776 { (case "(($ac_try" in
19777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19778 *) ac_try_echo=$ac_try;;
19780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19781 (eval "$ac_try") 2>&5
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; }; then
19785 ac_cv_func_finite_in_ieeefp_h=yes
19787 echo "$as_me: failed program was:" >&5
19788 sed 's/^/| /' conftest.$ac_ext >&5
19790 ac_cv_func_finite_in_ieeefp_h=no
19793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19795 ac_cpp='$CPP $CPPFLAGS'
19796 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19797 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19798 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19801 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19802 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19804 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19806 cat >>confdefs.h <<\_ACEOF
19807 #define HAVE_FINITE_IN_IEEEFP_H 1
19814 if test "$llvm_cv_platform_type" = "Unix" ; then
19817 for ac_header in stdlib.h unistd.h
19819 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
19820 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19823 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19824 echo $ECHO_N "(cached) $ECHO_C" >&6
19826 ac_res=`eval echo '${'$as_ac_Header'}'`
19827 { echo "$as_me:$LINENO: result: $ac_res" >&5
19828 echo "${ECHO_T}$ac_res" >&6; }
19830 # Is the header compilable?
19831 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19832 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19833 cat >conftest.$ac_ext <<_ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 $ac_includes_default
19840 #include <$ac_header>
19842 rm -f conftest.$ac_objext
19843 if { (ac_try="$ac_compile"
19844 case "(($ac_try" in
19845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19846 *) ac_try_echo
=$ac_try;;
19848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19849 (eval "$ac_compile") 2>conftest.er1
19851 grep -v '^ *+' conftest.er1
>conftest.err
19853 cat conftest.err
>&5
19854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19855 (exit $ac_status); } &&
19856 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19857 { (case "(($ac_try" in
19858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_try") 2>&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); }; } &&
19866 { ac_try='test -s conftest.$ac_objext'
19867 { (case "(($ac_try" in
19868 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19869 *) ac_try_echo
=$ac_try;;
19871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19872 (eval "$ac_try") 2>&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); }; }; then
19876 ac_header_compiler
=yes
19878 echo "$as_me: failed program was:" >&5
19879 sed 's/^/| /' conftest.
$ac_ext >&5
19881 ac_header_compiler
=no
19884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19886 echo "${ECHO_T}$ac_header_compiler" >&6; }
19888 # Is the header present?
19889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19891 cat >conftest.
$ac_ext <<_ACEOF
19894 cat confdefs.h
>>conftest.
$ac_ext
19895 cat >>conftest.
$ac_ext <<_ACEOF
19896 /* end confdefs.h. */
19897 #include <$ac_header>
19899 if { (ac_try
="$ac_cpp conftest.$ac_ext"
19900 case "(($ac_try" in
19901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19902 *) ac_try_echo=$ac_try;;
19904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19907 grep -v '^ *+' conftest.er1 >conftest.err
19909 cat conftest.err >&5
19910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19911 (exit $ac_status); } >/dev/null; then
19912 if test -s conftest.err; then
19913 ac_cpp_err=$ac_c_preproc_warn_flag
19914 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19921 if test -z "$ac_cpp_err"; then
19922 ac_header_preproc=yes
19924 echo "$as_me: failed program was:" >&5
19925 sed 's/^/| /' conftest.$ac_ext >&5
19927 ac_header_preproc=no
19930 rm -f conftest.err conftest.$ac_ext
19931 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19932 echo "${ECHO_T}$ac_header_preproc" >&6; }
19934 # So? What about this header?
19935 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19937 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19938 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19939 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19940 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19941 ac_header_preproc=yes
19944 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19945 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19946 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19947 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19948 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19949 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19950 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19951 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19952 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19953 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19954 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19955 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19957 ## ----------------------------------- ##
19958 ## Report this to llvmbugs@cs.uiuc.edu ##
19959 ## ----------------------------------- ##
19961 ) | sed "s/^/$as_me: WARNING: /" >&2
19964 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19965 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19967 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 eval "$as_ac_Header=\$ac_header_preproc"
19971 ac_res=`eval echo '${'$as_ac_Header'}'`
19972 { echo "$as_me:$LINENO: result: $ac_res" >&5
19973 echo "${ECHO_T}$ac_res" >&6; }
19976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19977 cat >>confdefs.h <<_ACEOF
19978 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
19986 for ac_func in getpagesize
19988 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
19989 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19990 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19991 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19992 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 cat >conftest.$ac_ext <<_ACEOF
19997 cat confdefs.h >>conftest.$ac_ext
19998 cat >>conftest.$ac_ext <<_ACEOF
19999 /* end confdefs.h. */
20000 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20002 #define $ac_func innocuous_$ac_func
20004 /* System header to define __stub macros and hopefully few prototypes,
20005 which can conflict with char $ac_func (); below.
20006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20007 <limits.h> exists even on freestanding compilers. */
20010 # include <limits.h>
20012 # include <assert.h>
20017 /* Override any GCC internal prototype to avoid an error.
20018 Use char because int might match the return type of a GCC
20019 builtin and then its argument prototype would still apply. */
20024 /* The GNU C library defines this for functions which it implements
20025 to always fail with ENOSYS. Some functions are actually named
20026 something starting with __ and the normal name is an alias. */
20027 #if defined __stub_$ac_func || defined __stub___$ac_func
20034 return $ac_func ();
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (ac_try="$ac_link"
20041 case "(($ac_try" in
20042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20043 *) ac_try_echo
=$ac_try;;
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_link") 2>conftest.er1
20048 grep -v '^ *+' conftest.er1
>conftest.err
20050 cat conftest.err
>&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } &&
20053 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20054 { (case "(($ac_try" in
20055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_try") 2>&5
20061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20062 (exit $ac_status); }; } &&
20063 { ac_try='test -s conftest$ac_exeext'
20064 { (case "(($ac_try" in
20065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20066 *) ac_try_echo
=$ac_try;;
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_try") 2>&5
20071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072 (exit $ac_status); }; }; then
20073 eval "$as_ac_var=yes"
20075 echo "$as_me: failed program was:" >&5
20076 sed 's/^/| /' conftest.
$ac_ext >&5
20078 eval "$as_ac_var=no"
20081 rm -f core conftest.err conftest.
$ac_objext \
20082 conftest
$ac_exeext conftest.
$ac_ext
20084 ac_res
=`eval echo '${'$as_ac_var'}'`
20085 { echo "$as_me:$LINENO: result: $ac_res" >&5
20086 echo "${ECHO_T}$ac_res" >&6; }
20087 if test `eval echo '${'$as_ac_var'}'` = yes; then
20088 cat >>confdefs.h
<<_ACEOF
20089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20095 { echo "$as_me:$LINENO: checking for working mmap" >&5
20096 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
20097 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
20098 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 if test "$cross_compiling" = yes; then
20101 ac_cv_func_mmap_fixed_mapped
=no
20103 cat >conftest.
$ac_ext <<_ACEOF
20106 cat confdefs.h
>>conftest.
$ac_ext
20107 cat >>conftest.
$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109 $ac_includes_default
20110 /* malloc might have been renamed as rpl_malloc. */
20113 /* Thanks to Mike Haertel and Jim Avera for this test.
20114 Here is a matrix of mmap possibilities:
20115 mmap private not fixed
20116 mmap private fixed at somewhere currently unmapped
20117 mmap private fixed at somewhere already mapped
20118 mmap shared not fixed
20119 mmap shared fixed at somewhere currently unmapped
20120 mmap shared fixed at somewhere already mapped
20121 For private mappings, we should verify that changes cannot be read()
20122 back from the file, nor mmap's back from the file at a different
20123 address. (There have been systems where private was not correctly
20124 implemented like the infamous i386 svr4.0, and systems where the
20125 VM page cache was not coherent with the file system buffer cache
20126 like early versions of FreeBSD and possibly contemporary NetBSD.)
20127 For shared mappings, we should conversely verify that changes get
20128 propagated back to all the places they're supposed to be.
20130 Grep wants private fixed already mapped.
20131 The main things grep needs to know about mmap are:
20132 * does it exist and is it safe to write into the mmap'd area
20133 * how to use it (BSD variants) */
20136 #include <sys/mman.h>
20138 #if !STDC_HEADERS && !HAVE_STDLIB_H
20142 /* This mess was copied from the GNU getpagesize.h. */
20143 #if !HAVE_GETPAGESIZE
20144 /* Assume that all systems that can run configure have sys/param.h. */
20145 # if !HAVE_SYS_PARAM_H
20146 # define HAVE_SYS_PARAM_H 1
20149 # ifdef _SC_PAGESIZE
20150 # define getpagesize() sysconf(_SC_PAGESIZE)
20151 # else /* no _SC_PAGESIZE */
20152 # if HAVE_SYS_PARAM_H
20153 # include <sys/param.h>
20154 # ifdef EXEC_PAGESIZE
20155 # define getpagesize() EXEC_PAGESIZE
20156 # else /* no EXEC_PAGESIZE */
20158 # define getpagesize() NBPG * CLSIZE
20161 # endif /* no CLSIZE */
20162 # else /* no NBPG */
20164 # define getpagesize() NBPC
20165 # else /* no NBPC */
20167 # define getpagesize() PAGESIZE
20168 # endif /* PAGESIZE */
20169 # endif /* no NBPC */
20170 # endif /* no NBPG */
20171 # endif /* no EXEC_PAGESIZE */
20172 # else /* no HAVE_SYS_PARAM_H */
20173 # define getpagesize() 8192 /* punt totally */
20174 # endif /* no HAVE_SYS_PARAM_H */
20175 # endif /* no _SC_PAGESIZE */
20177 #endif /* no HAVE_GETPAGESIZE */
20182 char *data, *data2, *data3;
20186 pagesize = getpagesize ();
20188 /* First, make a file with some known garbage in it. */
20189 data = (char *) malloc (pagesize);
20192 for (i = 0; i < pagesize; ++i)
20193 *(data + i) = rand ();
20195 fd = creat ("conftest.mmap", 0600);
20198 if (write (fd, data, pagesize) != pagesize)
20202 /* Next, try to mmap the file at a fixed address which already has
20203 something else allocated at it. If we can, also make sure that
20204 we see the same garbage. */
20205 fd = open ("conftest.mmap", O_RDWR);
20208 data2 = (char *) malloc (2 * pagesize);
20211 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20212 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20213 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20215 for (i = 0; i < pagesize; ++i)
20216 if (*(data + i) != *(data2 + i))
20219 /* Finally, make sure that changes to the mapped area do not
20220 percolate back to the file as seen by read(). (This is a bug on
20221 some variants of i386 svr4.0.) */
20222 for (i = 0; i < pagesize; ++i)
20223 *(data2 + i) = *(data2 + i) + 1;
20224 data3 = (char *) malloc (pagesize);
20227 if (read (fd, data3, pagesize) != pagesize)
20229 for (i = 0; i < pagesize; ++i)
20230 if (*(data + i) != *(data3 + i))
20236 rm -f conftest
$ac_exeext
20237 if { (ac_try
="$ac_link"
20238 case "(($ac_try" in
20239 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_link") 2>&5
20245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20246 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20247 { (case "(($ac_try" in
20248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20249 *) ac_try_echo
=$ac_try;;
20251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20252 (eval "$ac_try") 2>&5
20254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20255 (exit $ac_status); }; }; then
20256 ac_cv_func_mmap_fixed_mapped
=yes
20258 echo "$as_me: program exited with status $ac_status" >&5
20259 echo "$as_me: failed program was:" >&5
20260 sed 's/^/| /' conftest.
$ac_ext >&5
20262 ( exit $ac_status )
20263 ac_cv_func_mmap_fixed_mapped
=no
20265 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20270 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20271 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20272 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20274 cat >>confdefs.h
<<\_ACEOF
20275 #define HAVE_MMAP 1
20279 rm -f conftest.mmap
20281 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20282 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20283 if test "${ac_cv_func_mmap_file+set}" = set; then
20284 echo $ECHO_N "(cached) $ECHO_C" >&6
20287 ac_cpp
='$CPP $CPPFLAGS'
20288 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20289 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20290 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20292 if test "$cross_compiling" = yes; then
20293 ac_cv_func_mmap_file
=no
20295 cat >conftest.
$ac_ext <<_ACEOF
20299 cat confdefs.h
>>conftest.
$ac_ext
20300 cat >>conftest.
$ac_ext <<_ACEOF
20301 /* end confdefs.h. */
20303 #include <sys/types.h>
20304 #include <sys/mman.h>
20312 fd = creat ("foo",0777);
20313 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20315 return (fd != (int) MAP_FAILED);
20320 rm -f conftest
$ac_exeext
20321 if { (ac_try
="$ac_link"
20322 case "(($ac_try" in
20323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20324 *) ac_try_echo=$ac_try;;
20326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20327 (eval "$ac_link") 2>&5
20329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20330 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20331 { (case "(($ac_try" in
20332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20333 *) ac_try_echo
=$ac_try;;
20335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20336 (eval "$ac_try") 2>&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); }; }; then
20340 ac_cv_func_mmap_file
=yes
20342 echo "$as_me: program exited with status $ac_status" >&5
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.
$ac_ext >&5
20346 ( exit $ac_status )
20347 ac_cv_func_mmap_file
=no
20349 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
20354 ac_cpp
='$CPP $CPPFLAGS'
20355 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20356 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20357 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20361 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20362 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20363 if test "$ac_cv_func_mmap_file" = yes; then
20365 cat >>confdefs.h
<<\_ACEOF
20366 #define HAVE_MMAP_FILE
20373 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20374 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20375 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20376 echo $ECHO_N "(cached) $ECHO_C" >&6
20378 if test "$llvm_cv_os_type" = "Interix" ; then
20379 ac_cv_need_dev_zero_for_mmap
=yes
20381 ac_cv_need_dev_zero_for_mmap
=no
20385 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20386 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20387 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20389 cat >>confdefs.h
<<\_ACEOF
20390 #define NEED_DEV_ZERO_FOR_MMAP 1
20395 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20397 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20398 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20400 if test "$ac_cv_func_mmap_file" = "no"
20402 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20403 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20407 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20408 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20410 ac_cpp
='$CXXCPP $CPPFLAGS'
20411 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20412 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20413 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20415 cat >conftest.
$ac_ext <<_ACEOF
20418 cat confdefs.h
>>conftest.
$ac_ext
20419 cat >>conftest.
$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20422 volatile unsigned long val = 1;
20423 __sync_synchronize();
20424 __sync_val_compare_and_swap(&val, 1, 0);
20425 __sync_add_and_fetch(&val, 1);
20426 __sync_sub_and_fetch(&val, 1);
20431 rm -f conftest.
$ac_objext conftest
$ac_exeext
20432 if { (ac_try
="$ac_link"
20433 case "(($ac_try" in
20434 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20435 *) ac_try_echo=$ac_try;;
20437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20438 (eval "$ac_link") 2>conftest.er1
20440 grep -v '^ *+' conftest.er1 >conftest.err
20442 cat conftest.err >&5
20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20444 (exit $ac_status); } &&
20445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20446 { (case "(($ac_try" in
20447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20448 *) ac_try_echo
=$ac_try;;
20450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_try") 2>&5
20453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20454 (exit $ac_status); }; } &&
20455 { ac_try
='test -s conftest$ac_exeext'
20456 { (case "(($ac_try" in
20457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20458 *) ac_try_echo=$ac_try;;
20460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20461 (eval "$ac_try") 2>&5
20463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20464 (exit $ac_status); }; }; then
20466 ac_cpp='$CPP $CPPFLAGS'
20467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20469 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20471 { echo "$as_me:$LINENO: result: yes" >&5
20472 echo "${ECHO_T}yes" >&6; }
20474 cat >>confdefs.h <<\_ACEOF
20475 #define LLVM_MULTITHREADED 1
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20482 { echo "$as_me:$LINENO: result: no" >&5
20483 echo "${ECHO_T}no" >&6; }
20485 cat >>confdefs.h <<\_ACEOF
20486 #define LLVM_MULTITHREADED 0
20489 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20490 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20493 rm -f core conftest.err conftest.$ac_objext \
20494 conftest$ac_exeext conftest.$ac_ext
20497 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20498 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20499 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20500 if test "${llvm_cv_linux_mixed+set}" = set; then
20501 echo $ECHO_N "(cached) $ECHO_C" >&6
20504 ac_cpp='$CPP $CPPFLAGS'
20505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20509 cat >conftest.$ac_ext <<_ACEOF
20512 cat confdefs.h >>conftest.$ac_ext
20513 cat >>conftest.$ac_ext <<_ACEOF
20514 /* end confdefs.h. */
20516 error: Not x86-64 even if uname says so!
20527 rm -f conftest.$ac_objext
20528 if { (ac_try="$ac_compile"
20529 case "(($ac_try" in
20530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20531 *) ac_try_echo
=$ac_try;;
20533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20534 (eval "$ac_compile") 2>conftest.er1
20536 grep -v '^ *+' conftest.er1
>conftest.err
20538 cat conftest.err
>&5
20539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20540 (exit $ac_status); } &&
20541 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20542 { (case "(($ac_try" in
20543 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20544 *) ac_try_echo=$ac_try;;
20546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20547 (eval "$ac_try") 2>&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); }; } &&
20551 { ac_try='test -s conftest.$ac_objext'
20552 { (case "(($ac_try" in
20553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20554 *) ac_try_echo
=$ac_try;;
20556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_try") 2>&5
20559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20560 (exit $ac_status); }; }; then
20561 llvm_cv_linux_mixed
=no
20563 echo "$as_me: failed program was:" >&5
20564 sed 's/^/| /' conftest.
$ac_ext >&5
20566 llvm_cv_linux_mixed
=yes
20569 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20571 ac_cpp
='$CPP $CPPFLAGS'
20572 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20573 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20574 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20578 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20579 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20581 if test "$llvm_cv_linux_mixed" = "yes"; then
20582 llvm_cv_target_arch
="x86"
20588 for ac_func
in __dso_handle
20590 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20591 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20592 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20593 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20594 echo $ECHO_N "(cached) $ECHO_C" >&6
20596 cat >conftest.
$ac_ext <<_ACEOF
20599 cat confdefs.h
>>conftest.
$ac_ext
20600 cat >>conftest.
$ac_ext <<_ACEOF
20601 /* end confdefs.h. */
20602 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20603 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20604 #define $ac_func innocuous_$ac_func
20606 /* System header to define __stub macros and hopefully few prototypes,
20607 which can conflict with char $ac_func (); below.
20608 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20609 <limits.h> exists even on freestanding compilers. */
20612 # include <limits.h>
20614 # include <assert.h>
20619 /* Override any GCC internal prototype to avoid an error.
20620 Use char because int might match the return type of a GCC
20621 builtin and then its argument prototype would still apply. */
20626 /* The GNU C library defines this for functions which it implements
20627 to always fail with ENOSYS. Some functions are actually named
20628 something starting with __ and the normal name is an alias. */
20629 #if defined __stub_$ac_func || defined __stub___$ac_func
20636 return $ac_func ();
20641 rm -f conftest.
$ac_objext conftest
$ac_exeext
20642 if { (ac_try
="$ac_link"
20643 case "(($ac_try" in
20644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20645 *) ac_try_echo=$ac_try;;
20647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20648 (eval "$ac_link") 2>conftest.er1
20650 grep -v '^ *+' conftest.er1 >conftest.err
20652 cat conftest.err >&5
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); } &&
20655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20656 { (case "(($ac_try" in
20657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20658 *) ac_try_echo
=$ac_try;;
20660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20661 (eval "$ac_try") 2>&5
20663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20664 (exit $ac_status); }; } &&
20665 { ac_try
='test -s conftest$ac_exeext'
20666 { (case "(($ac_try" in
20667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20668 *) ac_try_echo=$ac_try;;
20670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20671 (eval "$ac_try") 2>&5
20673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20674 (exit $ac_status); }; }; then
20675 eval "$as_ac_var=yes"
20677 echo "$as_me: failed program was:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 eval "$as_ac_var=no"
20683 rm -f core conftest.err conftest.$ac_objext \
20684 conftest$ac_exeext conftest.$ac_ext
20686 ac_res=`eval echo '${'$as_ac_var'}'`
20687 { echo "$as_me:$LINENO: result: $ac_res" >&5
20688 echo "${ECHO_T}$ac_res" >&6; }
20689 if test `eval echo '${'$as_ac_var'}'` = yes; then
20690 cat >>confdefs.h <<_ACEOF
20691 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
20698 { echo "$as_me:$LINENO: checking whether llvm-gcc is dragonegg" >&5
20699 echo $ECHO_N "checking whether llvm-gcc is dragonegg... $ECHO_C" >&6; }
20700 if test "${llvm_cv_llvmgcc_dragonegg+set}" = set; then
20701 echo $ECHO_N "(cached) $ECHO_C" >&6
20703 llvm_cv_llvmgcc_dragonegg="no"
20704 if test -n "$LLVMGCC" ; then
20705 cp /dev/null conftest.c
20706 $LLVMGCC -fplugin-arg-dragonegg-emit-ir -S -o - conftest.c > /dev/null 2>&1
20707 if test $? -eq 0 ; then
20708 llvm_cv_llvmgcc_dragonegg="yes"
20713 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_dragonegg" >&5
20714 echo "${ECHO_T}$llvm_cv_llvmgcc_dragonegg" >&6; }
20716 if test "$llvm_cv_llvmgcc_dragonegg" = "yes" ; then
20717 LLVMCC_EMITIR_FLAG="-fplugin-arg-dragonegg-emit-ir"
20718 LLVMCC_DISABLEOPT_FLAGS="-fplugin-arg-dragonegg-disable-llvm-optzns"
20720 LLVMCC_EMITIR_FLAG="-emit-llvm"
20721 LLVMCC_DISABLEOPT_FLAGS="-mllvm -disable-llvm-optzns"
20726 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20727 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20728 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20729 echo $ECHO_N "(cached) $ECHO_C" >&6
20731 llvm_cv_llvmgcc_sanity="no"
20732 if test -n "$LLVMGCC" ; then
20733 cp /dev/null conftest.c
20734 $LLVMGCC "$LLVMCC_EMITIR_FLAG" -S -o - conftest.c | \
20735 grep 'target datalayout =' > /dev/null 2>&1
20736 if test $? -eq 0 ; then
20737 llvm_cv_llvmgcc_sanity="yes"
20742 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20743 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20745 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20746 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20747 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20748 llvmcc1path=`$LLVMGCC --print-prog-name=cc1
`
20749 LLVMCC1=$llvmcc1path
20751 llvmcc1pluspath=`$LLVMGCC --print-prog-name=cc1plus
`
20752 LLVMCC1PLUS=$llvmcc1pluspath
20754 llvmgccdir=`echo "$llvmcc1path" |
sed 's,/libexec/.*,,'`
20755 LLVMGCCDIR=$llvmgccdir
20757 llvmgcclangs=`$LLVMGCC -v --help 2>&1 |
grep '^Configured with:' |
sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20758 LLVMGCC_LANGS=$llvmgcclangs
20760 LLVMGCC_DRAGONEGG=$llvm_cv_llvmgcc_dragonegg
20763 { echo "$as_me:$LINENO: result: ok" >&5
20764 echo "${ECHO_T}ok" >&6; }
20767 SHLIBEXT=$libltdl_cv_shlibext
20770 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20773 # Translate the various configuration directories and other basic
20774 # information into substitutions that will end up in Makefile.config.in
20775 # that these configured values can be used by the makefiles
20776 if test "${prefix}" = "NONE" ; then
20777 prefix="/usr/local"
20779 eval LLVM_PREFIX="${prefix}";
20780 eval LLVM_BINDIR="${prefix}/bin";
20781 eval LLVM_LIBDIR="${prefix}/lib";
20782 eval LLVM_DATADIR="${prefix}/share/llvm";
20783 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20784 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20785 eval LLVM_INCLUDEDIR="${prefix}/include";
20786 eval LLVM_INFODIR="${prefix}/info";
20787 eval LLVM_MANDIR="${prefix}/man";
20788 LLVM_CONFIGTIME=`date`
20800 # Place the various directores into the config.h file as #defines so that we
20801 # can know about the installation paths within LLVM.
20803 cat >>confdefs.h <<_ACEOF
20804 #define LLVM_PREFIX "$LLVM_PREFIX"
20808 cat >>confdefs.h <<_ACEOF
20809 #define LLVM_BINDIR "$LLVM_BINDIR"
20813 cat >>confdefs.h <<_ACEOF
20814 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20818 cat >>confdefs.h <<_ACEOF
20819 #define LLVM_DATADIR "$LLVM_DATADIR"
20823 cat >>confdefs.h <<_ACEOF
20824 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20828 cat >>confdefs.h <<_ACEOF
20829 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20833 cat >>confdefs.h <<_ACEOF
20834 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20838 cat >>confdefs.h <<_ACEOF
20839 #define LLVM_INFODIR "$LLVM_INFODIR"
20843 cat >>confdefs.h <<_ACEOF
20844 #define LLVM_MANDIR "$LLVM_MANDIR"
20848 cat >>confdefs.h <<_ACEOF
20849 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20853 cat >>confdefs.h <<_ACEOF
20854 #define LLVM_HOSTTRIPLE "$host"
20858 # Determine which bindings to build.
20859 if test "$BINDINGS_TO_BUILD" = auto ; then
20860 BINDINGS_TO_BUILD=""
20861 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20862 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20865 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20868 # This isn't really configurey, but it avoids having to repeat the list in
20873 # Do any work necessary to ensure that bindings have what they need.
20874 binding_prereqs_failed=0
20875 for a_binding in $BINDINGS_TO_BUILD ; do
20876 case "$a_binding" in
20878 if test "x$OCAMLC" = x ; then
20879 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20880 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20881 binding_prereqs_failed=1
20883 if test "x$OCAMLDEP" = x ; then
20884 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20885 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20886 binding_prereqs_failed=1
20888 if test "x$OCAMLOPT" = x ; then
20889 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20890 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20892 if test "x$with_ocaml_libdir" != xauto ; then
20893 OCAML_LIBDIR=$with_ocaml_libdir
20896 ocaml_stdlib="`"$OCAMLC" -where`"
20897 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20899 # ocaml stdlib is beneath our prefix; use stdlib
20900 OCAML_LIBDIR=$ocaml_stdlib
20903 # ocaml stdlib is outside our prefix; use libdir/ocaml
20904 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20911 if test "$binding_prereqs_failed" = 1 ; then
20912 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20913 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20914 { (exit 1); exit 1; }; }
20917 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20918 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20919 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20920 echo $ECHO_N "(cached) $ECHO_C" >&6
20923 ac_cpp='$CXXCPP $CPPFLAGS'
20924 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20925 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20926 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20928 oldcxxflags="$CXXFLAGS"
20929 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20930 cat >conftest.$ac_ext <<_ACEOF
20933 cat confdefs.h >>conftest.$ac_ext
20934 cat >>conftest.$ac_ext <<_ACEOF
20935 /* end confdefs.h. */
20945 rm -f conftest.$ac_objext
20946 if { (ac_try="$ac_compile"
20947 case "(($ac_try" in
20948 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20949 *) ac_try_echo
=$ac_try;;
20951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20952 (eval "$ac_compile") 2>conftest.er1
20954 grep -v '^ *+' conftest.er1
>conftest.err
20956 cat conftest.err
>&5
20957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20958 (exit $ac_status); } &&
20959 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20960 { (case "(($ac_try" in
20961 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20962 *) ac_try_echo=$ac_try;;
20964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20965 (eval "$ac_try") 2>&5
20967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20968 (exit $ac_status); }; } &&
20969 { ac_try='test -s conftest.$ac_objext'
20970 { (case "(($ac_try" in
20971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20972 *) ac_try_echo
=$ac_try;;
20974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20975 (eval "$ac_try") 2>&5
20977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20978 (exit $ac_status); }; }; then
20979 llvm_cv_cxx_visibility_inlines_hidden
=yes
20981 echo "$as_me: failed program was:" >&5
20982 sed 's/^/| /' conftest.
$ac_ext >&5
20984 llvm_cv_cxx_visibility_inlines_hidden
=no
20987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
20988 CXXFLAGS
="$oldcxxflags"
20990 ac_cpp
='$CPP $CPPFLAGS'
20991 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20992 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20993 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20997 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20998 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20999 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
21000 ENABLE_VISIBILITY_INLINES_HIDDEN
=1
21003 ENABLE_VISIBILITY_INLINES_HIDDEN
=0
21008 if test "$llvm_cv_link_use_r" = "yes" ; then
21015 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
21016 RDYNAMIC
="-Wl,-export-dynamic"
21023 ac_config_headers
="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
21030 ac_config_files
="$ac_config_files include/llvm/Config/Targets.def"
21032 ac_config_files
="$ac_config_files include/llvm/Config/AsmPrinters.def"
21034 ac_config_files
="$ac_config_files include/llvm/Config/AsmParsers.def"
21036 ac_config_files
="$ac_config_files include/llvm/Config/Disassemblers.def"
21038 ac_config_headers
="$ac_config_headers include/llvm/Support/DataTypes.h"
21041 ac_config_files
="$ac_config_files Makefile.config"
21044 ac_config_files
="$ac_config_files llvm.spec"
21047 ac_config_files
="$ac_config_files tools/llvmc/src/Base.td"
21050 ac_config_files
="$ac_config_files tools/llvm-config/llvm-config.in"
21053 ac_config_commands
="$ac_config_commands setup"
21055 ac_config_commands
="$ac_config_commands Makefile"
21058 ac_config_commands
="$ac_config_commands Makefile.common"
21061 ac_config_commands
="$ac_config_commands examples/Makefile"
21064 ac_config_commands
="$ac_config_commands lib/Makefile"
21067 ac_config_commands
="$ac_config_commands runtime/Makefile"
21070 ac_config_commands
="$ac_config_commands test/Makefile"
21073 ac_config_commands
="$ac_config_commands test/Makefile.tests"
21076 ac_config_commands
="$ac_config_commands unittests/Makefile"
21079 ac_config_commands
="$ac_config_commands tools/Makefile"
21082 ac_config_commands
="$ac_config_commands utils/Makefile"
21085 ac_config_commands
="$ac_config_commands projects/Makefile"
21088 ac_config_commands
="$ac_config_commands bindings/Makefile"
21091 ac_config_commands
="$ac_config_commands bindings/ocaml/Makefile.ocaml"
21095 cat >confcache
<<\_ACEOF
21096 # This file is a shell script that caches the results of configure
21097 # tests run on this system so they can be shared between configure
21098 # scripts and configure runs, see configure's option --config-cache.
21099 # It is not useful on other systems. If it contains results you don't
21100 # want to keep, you may remove or edit it.
21102 # config.status only pays attention to the cache file if you give it
21103 # the --recheck option to rerun configure.
21105 # `ac_cv_env_foo' variables (set or unset) will be overridden when
21106 # loading this file, other *unset* `ac_cv_foo' will be assigned the
21107 # following values.
21111 # The following way of writing the cache mishandles newlines in values,
21112 # but we know of no workaround that is simple, portable, and efficient.
21113 # So, we kill variables containing newlines.
21114 # Ultrix sh set writes to stderr and can't be redirected directly,
21115 # and sets the high bit in the cache file unless we assign to the vars.
21117 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
21118 eval ac_val
=\$
$ac_var
21122 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
21123 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
21126 _ | IFS | as_nl
) ;; #(
21127 *) $as_unset $ac_var ;;
21133 case $as_nl`(ac_space=' '; set) 2>&1` in #(
21134 *${as_nl}ac_space
=\
*)
21135 # `set' does not quote correctly, so add quotes (double-quote
21136 # substitution turns \\\\ into \\, and sed turns \\ into \).
21139 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
21142 # `set' quotes correctly as required by POSIX, so do not add quotes.
21143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
21152 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
21154 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
21156 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
21157 if test -w "$cache_file"; then
21158 test "x$cache_file" != "x/dev/null" &&
21159 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
21160 echo "$as_me: updating cache $cache_file" >&6;}
21161 cat confcache
>$cache_file
21163 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
21164 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
21169 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
21170 # Let make expand exec_prefix.
21171 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
21173 DEFS
=-DHAVE_CONFIG_H
21177 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
21178 # 1. Remove the extension, and $U if already installed.
21179 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
21180 ac_i
=`echo "$ac_i" | sed "$ac_script"`
21181 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
21182 # will be set to the directory where LIBOBJS objects are built.
21183 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
21184 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
21186 LIBOBJS
=$ac_libobjs
21188 LTLIBOBJS
=$ac_ltlibobjs
21191 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
21192 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
21193 Usually this means the macro was only invoked conditionally." >&5
21194 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
21195 Usually this means the macro was only invoked conditionally." >&2;}
21196 { (exit 1); exit 1; }; }
21198 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21199 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21200 Usually this means the macro was only invoked conditionally." >&5
21201 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21202 Usually this means the macro was only invoked conditionally." >&2;}
21203 { (exit 1); exit 1; }; }
21206 : ${CONFIG_STATUS=./config.status}
21207 ac_clean_files_save
=$ac_clean_files
21208 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21209 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21210 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21211 cat >$CONFIG_STATUS <<_ACEOF
21213 # Generated by $as_me.
21214 # Run this file to recreate the current configuration.
21215 # Compiler output produced by configure, useful for debugging
21216 # configure, is in config.log if it exists.
21219 ac_cs_recheck=false
21221 SHELL=\${CONFIG_SHELL-$SHELL}
21224 cat >>$CONFIG_STATUS <<\_ACEOF
21225 ## --------------------- ##
21226 ## M4sh Initialization. ##
21227 ## --------------------- ##
21229 # Be Bourne compatible
21230 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21233 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21234 # is contrary to our usage. Disable this feature.
21235 alias -g '${1+"$@"}'='"$@"'
21236 setopt NO_GLOB_SUBST
21238 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
21240 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
21241 DUALCASE
=1; export DUALCASE
# for MKS sh
21245 # Avoid depending upon Character Ranges.
21246 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21247 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21248 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21249 as_cr_digits
='0123456789'
21250 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21252 # The user is always right.
21253 if test "${PATH_SEPARATOR+set}" != set; then
21254 echo "#! /bin/sh" >conf$$.sh
21255 echo "exit 0" >>conf$$.sh
21257 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21265 # Support unset when possible.
21266 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21274 # We need space, tab and new line, in precisely that order. Quoting is
21275 # there to prevent editors from complaining about space-tab.
21276 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21277 # splitting by setting IFS to empty value.)
21282 # Find who we are. Look in the path if we contain no directory separator.
21284 *[\\/]* ) as_myself
=$0 ;;
21285 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21286 for as_dir
in $PATH
21289 test -z "$as_dir" && as_dir
=.
21290 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21296 # We did not find ourselves, most probably we were run as `sh COMMAND'
21297 # in which case we are not to be found in the path.
21298 if test "x$as_myself" = x
; then
21301 if test ! -f "$as_myself"; then
21302 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21303 { (exit 1); exit 1; }
21306 # Work around bugs in pre-3.0 UWIN ksh.
21307 for as_var
in ENV MAIL MAILPATH
21308 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
21316 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21317 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21318 LC_TELEPHONE LC_TIME
21320 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21321 eval $as_var=C
; export $as_var
21323 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
21327 # Required to use basename.
21328 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21329 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21335 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21336 as_basename
=basename
21342 # Name of the executable.
21343 as_me
=`$as_basename -- "$0" ||
21344 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21345 X"$0" : 'X\(//\)$' \| \
21346 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21348 sed '/^.*\/\([^/][^/]*\)\/*$/{
21367 as_lineno_1
=$LINENO
21368 as_lineno_2
=$LINENO
21369 test "x$as_lineno_1" != "x$as_lineno_2" &&
21370 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
21372 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21373 # uniformly replaced by the line number. The first 'sed' inserts a
21374 # line-number line after each line using $LINENO; the second 'sed'
21375 # does the real work. The second script uses 'N' to pair each
21376 # line-number line with the line containing $LINENO, and appends
21377 # trailing '-' during substitution so that $LINENO is not a special
21378 # case at line end.
21379 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21380 # scripts with optimization help from Paolo Bonzini. Blame Lee
21381 # E. McMahon (1931-1989) for sed's syntax. :-)
21393 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21396 ' >$as_me.lineno
&&
21397 chmod +x
"$as_me.lineno" ||
21398 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21399 { (exit 1); exit 1; }; }
21401 # Don't try to exec as it changes $[0], causing all sort of problems
21402 # (the dirname of $[0] is not the place where we might find the
21403 # original and so on. Autoconf is especially sensitive to this).
21404 .
"./$as_me.lineno"
21405 # Exit status is that of the last command.
21410 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
21416 ECHO_C
= ECHO_N
= ECHO_T
=
21417 case `echo -n x` in
21419 case `echo 'x\c'` in
21420 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
21427 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21428 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21434 rm -f conf$$ conf$$.exe conf$$.
file
21435 if test -d conf$$.dir
; then
21436 rm -f conf$$.dir
/conf$$.
file
21442 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21444 # ... but there are two gotchas:
21445 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21446 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21447 # In both cases, we have to default to `cp -p'.
21448 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
21450 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21455 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
21456 rmdir conf$$.dir
2>/dev
/null
21458 if mkdir
-p .
2>/dev
/null
; then
21461 test -d .
/-p && rmdir .
/-p
21465 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21466 # systems may use methods other than mode bits to determine executability.
21467 cat >conf$$.
file <<_ASEOF
21471 chmod +x conf$$.
file
21472 if test -x conf$$.
file >/dev
/null
2>&1; then
21473 as_executable_p
="test -x"
21479 # Sed expression to map a string onto a valid CPP name.
21480 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21482 # Sed expression to map a string onto a valid variable name.
21483 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21488 # Save the log message, to keep $[0] and so on meaningful, and to
21489 # report actual input values of CONFIG_FILES etc. instead of their
21490 # values after options handling.
21492 This file was extended by llvm $as_me 2.9svn, which was
21493 generated by GNU Autoconf 2.60. Invocation command line was
21495 CONFIG_FILES = $CONFIG_FILES
21496 CONFIG_HEADERS = $CONFIG_HEADERS
21497 CONFIG_LINKS = $CONFIG_LINKS
21498 CONFIG_COMMANDS = $CONFIG_COMMANDS
21501 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21506 cat >>$CONFIG_STATUS <<_ACEOF
21507 # Files that config.status was made for.
21508 config_files="$ac_config_files"
21509 config_headers="$ac_config_headers"
21510 config_commands="$ac_config_commands"
21514 cat >>$CONFIG_STATUS <<\_ACEOF
21516 \`$as_me' instantiates files from templates according to the
21517 current configuration.
21519 Usage: $0 [OPTIONS] [FILE]...
21521 -h, --help print this help, then exit
21522 -V, --version print version number, then exit
21523 -q, --quiet do not print progress messages
21524 -d, --debug don't remove temporary files
21525 --recheck update $as_me by reconfiguring in the same conditions
21526 --file=FILE[:TEMPLATE]
21527 instantiate the configuration file FILE
21528 --header=FILE[:TEMPLATE]
21529 instantiate the configuration header FILE
21531 Configuration files:
21534 Configuration headers:
21537 Configuration commands:
21540 Report bugs to <bug-autoconf@gnu.org>."
21543 cat >>$CONFIG_STATUS <<_ACEOF
21545 llvm config.status 2.9svn
21546 configured by $0, generated by GNU Autoconf 2.60,
21547 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21549 Copyright (C) 2006 Free Software Foundation, Inc.
21550 This config.status script is free software; the Free Software Foundation
21551 gives unlimited permission to copy, distribute and modify it."
21558 cat >>$CONFIG_STATUS <<\_ACEOF
21559 # If no file are specified by the user, then we need to provide default
21560 # value. By we need to know if files were specified by the user.
21566 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
21567 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
21578 # Handling of the options.
21579 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21581 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
21582 echo "$ac_cs_version"; exit ;;
21583 --debug |
--debu |
--deb |
--de |
--d |
-d )
21585 --file |
--fil |
--fi |
--f )
21587 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21588 ac_need_defaults
=false
;;
21589 --header |
--heade |
--head |
--hea )
21591 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21592 ac_need_defaults
=false
;;
21594 # Conflict between --help and --header
21595 { echo "$as_me: error: ambiguous option: $1
21596 Try \`$0 --help' for more information." >&2
21597 { (exit 1); exit 1; }; };;
21598 --help |
--hel |
-h )
21599 echo "$ac_cs_usage"; exit ;;
21600 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21601 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21604 # This is an error.
21605 -*) { echo "$as_me: error: unrecognized option: $1
21606 Try \`$0 --help' for more information." >&2
21607 { (exit 1); exit 1; }; } ;;
21609 *) ac_config_targets
="$ac_config_targets $1"
21610 ac_need_defaults
=false
;;
21616 ac_configure_extra_args
=
21618 if $ac_cs_silent; then
21620 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21624 cat >>$CONFIG_STATUS <<_ACEOF
21625 if \$ac_cs_recheck; then
21626 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21627 CONFIG_SHELL=$SHELL
21628 export CONFIG_SHELL
21629 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21633 cat >>$CONFIG_STATUS <<\_ACEOF
21637 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21638 ## Running $as_me. ##
21644 cat >>$CONFIG_STATUS <<_ACEOF
21648 llvm_src="${srcdir}"
21652 cat >>$CONFIG_STATUS <<\_ACEOF
21654 # Handling of arguments.
21655 for ac_config_target
in $ac_config_targets
21657 case $ac_config_target in
21658 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21659 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21660 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21661 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21662 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21663 "include/llvm/Config/Disassemblers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21664 "include/llvm/Support/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Support/DataTypes.h" ;;
21665 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
21666 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
21667 "tools/llvmc/src/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21668 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21669 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
21670 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
21671 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
21672 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
21673 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
21674 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
21675 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
21676 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
21677 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
21678 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
21679 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
21680 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
21681 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
21682 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21684 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21685 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21686 { (exit 1); exit 1; }; };;
21691 # If the user did not use the arguments to specify the items to instantiate,
21692 # then the envvar interface is used. Set only those that are not.
21693 # We use the long form for the default assignment because of an extremely
21694 # bizarre bug on SunOS 4.1.3.
21695 if $ac_need_defaults; then
21696 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21697 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21698 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21701 # Have a temporary directory for convenience. Make it in the build tree
21702 # simply because there is no reason against having it here, and in addition,
21703 # creating and moving files from /tmp can sometimes cause problems.
21704 # Hook for its removal unless debugging.
21705 # Note that there is a small window in which the directory will not be cleaned:
21706 # after its creation but before its name has been assigned to `$tmp'.
21710 trap 'exit_status=$?
21711 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21713 trap '{ (exit 1); exit 1; }' 1 2 13 15
21715 # Create a (secure) tmp directory for tmp files.
21718 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21719 test -n "$tmp" && test -d "$tmp"
21722 tmp
=.
/conf$$
-$RANDOM
21723 (umask 077 && mkdir
"$tmp")
21726 echo "$me: cannot create a temporary directory in ." >&2
21727 { (exit 1); exit 1; }
21731 # Set up the sed scripts for CONFIG_FILES section.
21734 # No need to generate the scripts if there are no CONFIG_FILES.
21735 # This happens for instance when ./config.status config.h
21736 if test -n "$CONFIG_FILES"; then
21743 for ac_last_try
in false false false false false
:; do
21744 cat >conf$
$subs.
sed <<_ACEOF
21745 SHELL!$SHELL$ac_delim
21746 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21747 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21748 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21749 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21750 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21751 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21752 exec_prefix!$exec_prefix$ac_delim
21753 prefix!$prefix$ac_delim
21754 program_transform_name!$program_transform_name$ac_delim
21755 bindir!$bindir$ac_delim
21756 sbindir!$sbindir$ac_delim
21757 libexecdir!$libexecdir$ac_delim
21758 datarootdir!$datarootdir$ac_delim
21759 datadir!$datadir$ac_delim
21760 sysconfdir!$sysconfdir$ac_delim
21761 sharedstatedir!$sharedstatedir$ac_delim
21762 localstatedir!$localstatedir$ac_delim
21763 includedir!$includedir$ac_delim
21764 oldincludedir!$oldincludedir$ac_delim
21765 docdir!$docdir$ac_delim
21766 infodir!$infodir$ac_delim
21767 htmldir!$htmldir$ac_delim
21768 dvidir!$dvidir$ac_delim
21769 pdfdir!$pdfdir$ac_delim
21770 psdir!$psdir$ac_delim
21771 libdir!$libdir$ac_delim
21772 localedir!$localedir$ac_delim
21773 mandir!$mandir$ac_delim
21774 DEFS!$DEFS$ac_delim
21775 ECHO_C!$ECHO_C$ac_delim
21776 ECHO_N!$ECHO_N$ac_delim
21777 ECHO_T!$ECHO_T$ac_delim
21778 LIBS!$LIBS$ac_delim
21779 build_alias!$build_alias$ac_delim
21780 host_alias!$host_alias$ac_delim
21781 target_alias!$target_alias$ac_delim
21782 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21783 subdirs!$subdirs$ac_delim
21784 ENABLE_POLLY!$ENABLE_POLLY$ac_delim
21785 LLVM_HAS_POLLY!$LLVM_HAS_POLLY$ac_delim
21786 build!$build$ac_delim
21787 build_cpu!$build_cpu$ac_delim
21788 build_vendor!$build_vendor$ac_delim
21789 build_os!$build_os$ac_delim
21790 host!$host$ac_delim
21791 host_cpu!$host_cpu$ac_delim
21792 host_vendor!$host_vendor$ac_delim
21793 host_os!$host_os$ac_delim
21794 target!$target$ac_delim
21795 target_cpu!$target_cpu$ac_delim
21796 target_vendor!$target_vendor$ac_delim
21797 target_os!$target_os$ac_delim
21799 HOST_OS!$HOST_OS$ac_delim
21800 TARGET_OS!$TARGET_OS$ac_delim
21801 LINKALL!$LINKALL$ac_delim
21802 NOLINKALL!$NOLINKALL$ac_delim
21803 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21804 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21805 ARCH!$ARCH$ac_delim
21806 ENDIAN!$ENDIAN$ac_delim
21808 CFLAGS!$CFLAGS$ac_delim
21809 LDFLAGS!$LDFLAGS$ac_delim
21810 CPPFLAGS!$CPPFLAGS$ac_delim
21811 ac_ct_CC!$ac_ct_CC$ac_delim
21812 EXEEXT!$EXEEXT$ac_delim
21813 OBJEXT!$OBJEXT$ac_delim
21815 GREP!$GREP$ac_delim
21816 EGREP!$EGREP$ac_delim
21817 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21818 BUILD_CC!$BUILD_CC$ac_delim
21819 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21820 BUILD_CXX!$BUILD_CXX$ac_delim
21821 CVSBUILD!$CVSBUILD$ac_delim
21822 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21823 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21824 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21825 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21826 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21827 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21828 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21830 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21831 ENABLE_DOCS!$ENABLE_DOCS$ac_delim
21832 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21833 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21834 ENABLE_PTHREADS!$ENABLE_PTHREADS$ac_delim
21835 ENABLE_PIC!$ENABLE_PIC$ac_delim
21836 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21837 ENABLE_EMBED_STDCXX!$ENABLE_EMBED_STDCXX$ac_delim
21838 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21839 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21840 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21841 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21844 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21846 elif $ac_last_try; then
21847 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21848 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21849 { (exit 1); exit 1; }; }
21851 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21855 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21856 if test -n "$ac_eof"; then
21857 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21858 ac_eof
=`expr $ac_eof + 1`
21861 cat >>$CONFIG_STATUS <<_ACEOF
21862 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21863 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21866 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21867 s/^/s,@/; s/!/@,|#_!!_#|/
21870 s/'"$ac_delim"'$/,g/; t
21872 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21873 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21874 rm -f conf$
$subs.
sed
21875 cat >>$CONFIG_STATUS <<_ACEOF
21881 for ac_last_try
in false false false false false
:; do
21882 cat >conf$
$subs.
sed <<_ACEOF
21883 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21884 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21885 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21886 CLANGPATH!$CLANGPATH$ac_delim
21887 CLANGXXPATH!$CLANGXXPATH$ac_delim
21888 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21889 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21890 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21891 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21893 CXXFLAGS!$CXXFLAGS$ac_delim
21894 ac_ct_CXX!$ac_ct_CXX$ac_delim
21896 ifGNUmake!$ifGNUmake$ac_delim
21897 LN_S!$LN_S$ac_delim
21900 DATE!$DATE$ac_delim
21901 FIND!$FIND$ac_delim
21902 MKDIR!$MKDIR$ac_delim
21904 RANLIB!$RANLIB$ac_delim
21909 BINPWD!$BINPWD$ac_delim
21910 GRAPHVIZ!$GRAPHVIZ$ac_delim
21913 NEATO!$NEATO$ac_delim
21914 TWOPI!$TWOPI$ac_delim
21915 CIRCO!$CIRCO$ac_delim
21917 DOTTY!$DOTTY$ac_delim
21918 XDOT_PY!$XDOT_PY$ac_delim
21919 PERL!$PERL$ac_delim
21920 HAVE_PERL!$HAVE_PERL$ac_delim
21921 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21922 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21923 INSTALL_DATA!$INSTALL_DATA$ac_delim
21924 BZIP2!$BZIP2$ac_delim
21926 DOXYGEN!$DOXYGEN$ac_delim
21927 GROFF!$GROFF$ac_delim
21928 GZIPBIN!$GZIPBIN$ac_delim
21929 POD2HTML!$POD2HTML$ac_delim
21930 POD2MAN!$POD2MAN$ac_delim
21931 PDFROFF!$PDFROFF$ac_delim
21932 RUNTEST!$RUNTEST$ac_delim
21933 TCLSH!$TCLSH$ac_delim
21935 OCAMLC!$OCAMLC$ac_delim
21936 OCAMLOPT!$OCAMLOPT$ac_delim
21937 OCAMLDEP!$OCAMLDEP$ac_delim
21938 OCAMLDOC!$OCAMLDOC$ac_delim
21940 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21941 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21942 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21943 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21944 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21945 LIBADD_DL!$LIBADD_DL$ac_delim
21946 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21947 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21948 LLVMGCC!$LLVMGCC$ac_delim
21949 LLVMGXX!$LLVMGXX$ac_delim
21950 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21951 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21952 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21953 USE_UDIS86!$USE_UDIS86$ac_delim
21954 USE_OPROFILE!$USE_OPROFILE$ac_delim
21955 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21956 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21957 MMAP_FILE!$MMAP_FILE$ac_delim
21958 LLVMCC_EMITIR_FLAG!$LLVMCC_EMITIR_FLAG$ac_delim
21959 LLVMCC1!$LLVMCC1$ac_delim
21960 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21961 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21962 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21963 LLVMGCC_DRAGONEGG!$LLVMGCC_DRAGONEGG$ac_delim
21964 LLVMCC_DISABLEOPT_FLAGS!$LLVMCC_DISABLEOPT_FLAGS$ac_delim
21965 SHLIBEXT!$SHLIBEXT$ac_delim
21966 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21967 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21968 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21969 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21970 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21971 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21972 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21973 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21974 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21975 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21976 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21977 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21978 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21979 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21982 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21984 elif $ac_last_try; then
21985 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21986 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21987 { (exit 1); exit 1; }; }
21989 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21993 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21994 if test -n "$ac_eof"; then
21995 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21996 ac_eof
=`expr $ac_eof + 1`
21999 cat >>$CONFIG_STATUS <<_ACEOF
22000 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
22001 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22004 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22005 s/^/s,@/; s/!/@,|#_!!_#|/
22008 s/'"$ac_delim"'$/,g/; t
22010 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22011 ' >>$CONFIG_STATUS <conf$
$subs.
sed
22012 rm -f conf$
$subs.
sed
22013 cat >>$CONFIG_STATUS <<_ACEOF
22019 for ac_last_try
in false false false false false
:; do
22020 cat >conf$
$subs.
sed <<_ACEOF
22021 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
22022 RPATH!$RPATH$ac_delim
22023 RDYNAMIC!$RDYNAMIC$ac_delim
22024 LIBOBJS!$LIBOBJS$ac_delim
22025 LTLIBOBJS!$LTLIBOBJS$ac_delim
22028 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 5; then
22030 elif $ac_last_try; then
22031 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
22032 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
22033 { (exit 1); exit 1; }; }
22035 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
22039 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
22040 if test -n "$ac_eof"; then
22041 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
22042 ac_eof
=`expr $ac_eof + 1`
22045 cat >>$CONFIG_STATUS <<_ACEOF
22046 cat >"\$tmp/subs-3.sed" <<\CEOF$ac_eof
22047 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
22050 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
22051 s/^/s,@/; s/!/@,|#_!!_#|/
22054 s/'"$ac_delim"'$/,g/; t
22056 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
22057 ' >>$CONFIG_STATUS <conf$
$subs.
sed
22058 rm -f conf$
$subs.
sed
22059 cat >>$CONFIG_STATUS <<_ACEOF
22066 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22067 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22068 # trailing colons and then remove the whole line if VPATH becomes empty
22069 # (actually we leave an empty line to preserve line numbers).
22070 if test "x$srcdir" = x.
; then
22071 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
22072 s/:*\$(srcdir):*/:/
22073 s/:*\${srcdir}:*/:/
22075 s/^\([^=]*=[ ]*\):*/\1/
22081 cat >>$CONFIG_STATUS <<\_ACEOF
22082 fi # test -n "$CONFIG_FILES"
22085 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
22088 :[FHLC
]) ac_mode
=$ac_tag; continue;;
22090 case $ac_mode$ac_tag in
22092 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
22093 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
22094 { (exit 1); exit 1; }; };;
22095 :[FH
]-) ac_tag
=-:-;;
22096 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
22113 -) ac_f
="$tmp/stdin";;
22114 *) # Look for the file first in the build tree, then in the source tree
22115 # (if the path is not absolute). The absolute path cannot be DOS-style,
22116 # because $ac_f cannot contain `:'.
22120 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
22122 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
22123 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
22124 { (exit 1); exit 1; }; };;
22126 ac_file_inputs
="$ac_file_inputs $ac_f"
22129 # Let's still pretend it is `configure' which instantiates (i.e., don't
22130 # use $as_me), people would be surprised to read:
22131 # /* config.h. Generated by config.status. */
22132 configure_input
="Generated from "`IFS=:
22133 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
22134 if test x
"$ac_file" != x-
; then
22135 configure_input
="$ac_file. $configure_input"
22136 { echo "$as_me:$LINENO: creating $ac_file" >&5
22137 echo "$as_me: creating $ac_file" >&6;}
22141 *:-:* |
*:-) cat >"$tmp/stdin";;
22146 ac_dir
=`$as_dirname -- "$ac_file" ||
22147 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22148 X"$ac_file" : 'X\(//\)[^/]' \| \
22149 X"$ac_file" : 'X\(//\)$' \| \
22150 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22152 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22156 /^X\(\/\/\)[^/].*/{
22171 -*) as_dir
=.
/$as_dir;;
22173 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
22177 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22178 *) as_qdir
=$as_dir;;
22180 as_dirs
="'$as_qdir' $as_dirs"
22181 as_dir
=`$as_dirname -- "$as_dir" ||
22182 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22183 X"$as_dir" : 'X\(//\)[^/]' \| \
22184 X"$as_dir" : 'X\(//\)$' \| \
22185 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22191 /^X\(\/\/\)[^/].*/{
22204 test -d "$as_dir" && break
22206 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22207 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22208 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22209 { (exit 1); exit 1; }; }; }
22213 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22215 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22216 # A ".." for each directory in $ac_dir_suffix.
22217 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22218 case $ac_top_builddir_sub in
22219 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22220 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
22223 ac_abs_top_builddir
=$ac_pwd
22224 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
22225 # for backward compatibility:
22226 ac_top_builddir
=$ac_top_build_prefix
22229 .
) # We are building in place.
22231 ac_top_srcdir
=$ac_top_builddir_sub
22232 ac_abs_top_srcdir
=$ac_pwd ;;
22233 [\\/]* | ?
:[\\/]* ) # Absolute name.
22234 ac_srcdir
=$srcdir$ac_dir_suffix;
22235 ac_top_srcdir
=$srcdir
22236 ac_abs_top_srcdir
=$srcdir ;;
22237 *) # Relative name.
22238 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
22239 ac_top_srcdir
=$ac_top_build_prefix$srcdir
22240 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
22242 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
22252 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22253 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
22257 cat >>$CONFIG_STATUS <<\_ACEOF
22258 # If the template does not know about datarootdir, expand it.
22259 # FIXME: This hack should be removed a few years after 2.60.
22260 ac_datarootdir_hack
=; ac_datarootdir_seen
=
22262 case `sed -n '/datarootdir/ {
22271 ' $ac_file_inputs` in
22272 *datarootdir
*) ac_datarootdir_seen
=yes;;
22273 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
22274 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22275 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22277 cat >>$CONFIG_STATUS <<_ACEOF
22278 ac_datarootdir_hack='
22279 s&@datadir@&$datadir&g
22280 s&@docdir@&$docdir&g
22281 s&@infodir@&$infodir&g
22282 s&@localedir@&$localedir&g
22283 s&@mandir@&$mandir&g
22284 s&\\\${datarootdir}&$datarootdir&g' ;;
22288 # Neutralize VPATH when `$srcdir' = `.'.
22289 # Shell code in configure.ac might set extrasub.
22290 # FIXME: do we really want to maintain this feature?
22291 cat >>$CONFIG_STATUS <<_ACEOF
22295 cat >>$CONFIG_STATUS <<\_ACEOF
22297 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22298 s
&@configure_input@
&$configure_input&;t t
22299 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
22300 s
&@srcdir@
&$ac_srcdir&;t t
22301 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
22302 s
&@top_srcdir@
&$ac_top_srcdir&;t t
22303 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
22304 s
&@builddir@
&$ac_builddir&;t t
22305 s
&@abs_builddir@
&$ac_abs_builddir&;t t
22306 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
22307 s
&@INSTALL@
&$ac_INSTALL&;t t
22308 $ac_datarootdir_hack
22309 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" | sed -f "$tmp/subs-3.
sed" >$tmp/out
22311 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22312 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
22313 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
22314 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
22315 which seems to be undefined. Please make sure it is defined." >&5
22316 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
22317 which seems to be undefined. Please make sure it is defined." >&2;}
22321 -) cat "$tmp/out"; rm -f "$tmp/out";;
22322 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22331 # Transform confdefs.h into a sed script `conftest.defines', that
22332 # substitutes the proper values into config.h.in to produce config.h.
22333 rm -f conftest.defines conftest.
tail
22334 # First, append a space to every undef/define line, to ease matching.
22335 echo 's/$/ /' >conftest.defines
22336 # Then, protect against being on the right side of a sed subst, or in
22337 # an unquoted here document, in config.status. If some macros were
22338 # called several times there might be several #defines for the same
22339 # symbol, which is useless. But do not sort them, since the last
22340 # AC_DEFINE must be honored.
22341 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
22342 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22343 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22344 # PARAMS is the parameter list in the macro definition--in most cases, it's
22345 # just an empty string.
22346 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22347 ac_dB
='\\)[ (].*,\\1define\\2'
22355 s/^[ ]*#[ ]*define[ ][ ]*//
22360 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22361 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22362 ' >>conftest.defines
22364 # Remove the space that was appended to ease matching.
22365 # Then replace #undef with comments. This is necessary, for
22366 # example, in the case of _POSIX_SOURCE, which is predefined and required
22367 # on some systems where configure will not decide to define it.
22368 # (The regexp can be short, since the line contains either #define or #undef.)
22370 s,^[ #]*u.*,/* & */,' >>conftest.defines
22372 # Break up conftest.defines:
22373 ac_max_sed_lines
=50
22375 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22376 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22377 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22379 ac_in
='$ac_file_inputs'
22380 ac_out
='"$tmp/out1"'
22381 ac_nxt
='"$tmp/out2"'
22385 # Write a here document:
22386 cat >>$CONFIG_STATUS <<_ACEOF
22387 # First, check the format of the line:
22388 cat >"\$tmp/defines.sed" <<\\CEOF
22389 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22390 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22394 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
22396 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22397 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
22398 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
22399 grep . conftest.
tail >/dev
/null ||
break
22400 rm -f conftest.defines
22401 mv conftest.
tail conftest.defines
22403 rm -f conftest.defines conftest.
tail
22405 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22406 cat >>$CONFIG_STATUS <<\_ACEOF
22407 if test x
"$ac_file" != x-
; then
22408 echo "/* $configure_input */" >"$tmp/config.h"
22409 cat "$ac_result" >>"$tmp/config.h"
22410 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
22411 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22412 echo "$as_me: $ac_file is unchanged" >&6;}
22415 mv "$tmp/config.h" $ac_file
22418 echo "/* $configure_input */"
22424 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22425 echo "$as_me: executing $ac_file commands" >&6;}
22430 case $ac_file$ac_mode in
22431 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
22432 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile
;;
22433 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
22434 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common
;;
22435 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
22436 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
22437 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
22438 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
22439 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
22440 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
22441 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
22442 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile test
/Makefile
;;
22443 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
22444 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
22445 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
22446 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
22447 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
22448 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
22449 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
22450 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
22451 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
22452 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
22453 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
22454 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
22455 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
22456 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
22462 { (exit 0); exit 0; }
22464 chmod +x
$CONFIG_STATUS
22465 ac_clean_files
=$ac_clean_files_save
22468 # configure is writing to config.log, and then calls config.status.
22469 # config.status does its own redirection, appending to config.log.
22470 # Unfortunately, on DOS this fails, as config.log is still kept open
22471 # by configure, so config.status won't be able to write to it; its
22472 # output is simply discarded. So we exec the FD to /dev/null,
22473 # effectively closing config.log, so it can be properly (re)opened and
22474 # appended to by config.status. When coming back to configure, we
22475 # need to make the FD available again.
22476 if test "$no_create" != yes; then
22478 ac_config_status_args
=
22479 test "$silent" = yes &&
22480 ac_config_status_args
="$ac_config_status_args --quiet"
22482 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22484 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22485 # would make configure fail if this is the last instruction.
22486 $ac_cs_success ||
{ (exit 1); exit 1; }
22490 # CONFIG_SUBDIRS section.
22492 if test "$no_recursion" != yes; then
22494 # Remove --cache-file and --srcdir arguments so they do not pile up.
22495 ac_sub_configure_args
=
22497 eval "set x $ac_configure_args"
22501 if test -n "$ac_prev"; then
22506 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
22507 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
22508 ac_prev
=cache_file
;;
22509 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
22510 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
22513 --config-cache |
-C)
22515 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
22517 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
22519 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
22521 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
22525 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22527 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
22531 # Always prepend --prefix to ensure using the same prefix
22532 # in subdir configurations.
22533 ac_arg
="--prefix=$prefix"
22535 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22537 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
22540 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
22542 # Do not complain, so a configure script can configure whichever
22543 # parts of a large source tree are present.
22544 test -d "$srcdir/$ac_dir" ||
continue
22546 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22547 echo "$as_me:$LINENO: $ac_msg" >&5
22551 -*) as_dir
=.
/$as_dir;;
22553 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
22557 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22558 *) as_qdir
=$as_dir;;
22560 as_dirs
="'$as_qdir' $as_dirs"
22561 as_dir
=`$as_dirname -- "$as_dir" ||
22562 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22563 X"$as_dir" : 'X\(//\)[^/]' \| \
22564 X"$as_dir" : 'X\(//\)$' \| \
22565 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22567 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22571 /^X\(\/\/\)[^/].*/{
22584 test -d "$as_dir" && break
22586 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22587 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22588 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22589 { (exit 1); exit 1; }; }; }
22593 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22595 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22596 # A ".." for each directory in $ac_dir_suffix.
22597 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22598 case $ac_top_builddir_sub in
22599 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22600 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
22603 ac_abs_top_builddir
=$ac_pwd
22604 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
22605 # for backward compatibility:
22606 ac_top_builddir
=$ac_top_build_prefix
22609 .
) # We are building in place.
22611 ac_top_srcdir
=$ac_top_builddir_sub
22612 ac_abs_top_srcdir
=$ac_pwd ;;
22613 [\\/]* | ?
:[\\/]* ) # Absolute name.
22614 ac_srcdir
=$srcdir$ac_dir_suffix;
22615 ac_top_srcdir
=$srcdir
22616 ac_abs_top_srcdir
=$srcdir ;;
22617 *) # Relative name.
22618 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
22619 ac_top_srcdir
=$ac_top_build_prefix$srcdir
22620 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
22622 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
22627 # Check for guested configure; otherwise get Cygnus style configure.
22628 if test -f "$ac_srcdir/configure.gnu"; then
22629 ac_sub_configure
=$ac_srcdir/configure.gnu
22630 elif test -f "$ac_srcdir/configure"; then
22631 ac_sub_configure
=$ac_srcdir/configure
22632 elif test -f "$ac_srcdir/configure.in"; then
22633 # This should be Cygnus configure.
22634 ac_sub_configure
=$ac_aux_dir/configure
22636 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22637 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22641 # The recursion is here.
22642 if test -n "$ac_sub_configure"; then
22643 # Make the cache file name correct relative to the subdirectory.
22644 case $cache_file in
22645 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
22646 *) # Relative name.
22647 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
22650 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22651 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22652 # The eval makes quoting arguments work.
22653 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22654 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22655 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22656 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22657 { (exit 1); exit 1; }; }