2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.9svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
28 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
29 DUALCASE
=1; export DUALCASE
# for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits
='0123456789'
38 as_cr_alnum
=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
53 # Support unset when possible.
54 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself
=$0 ;;
73 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir
=.
78 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x
; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var
in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C
; export $as_var
111 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
123 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me
=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x
; then
155 if (eval ":") 2>/dev
/null
; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev
/null
; then
221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
222 for as_dir
in /usr
/bin
/posix
$PATH_SEPARATOR/bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir
=.
228 for as_base
in sh bash ksh sh5
; do
229 as_candidate_shells
="$as_candidate_shells $as_dir/$as_base"
236 for as_shell
in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev
/null
<<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
251 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
252 DUALCASE
=1; export DUALCASE
# for MKS sh
257 CONFIG_SHELL
=$as_shell
259 if { "$as_shell" 2> /dev
/null
<<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
271 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
272 DUALCASE
=1; export DUALCASE
# for MKS sh
284 as_func_ret_success
() {
287 as_func_ret_failure
() {
292 if as_func_success
; then
296 echo as_func_success failed.
299 if as_func_failure
; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success
; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure
; then
313 echo as_func_ret_failure succeeded.
316 if ( set x
; as_func_ret_success y
&& test x
= "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) ||
{ (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") ||
{ (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x
; then
341 for as_var
in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no
; then
350 echo This
script requires a shell
more modern than all the
351 echo shells that I found on your system. Please
install a
352 echo modern shell
, or manually run the
script under such a
353 echo shell
if you
do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") ||
{
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system
,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x
"$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
470 ECHO_C
= ECHO_N
= ECHO_T
=
474 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
481 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
488 rm -f conf$$ conf$$.exe conf$$.
file
489 if test -d conf$$.dir
; then
490 rm -f conf$$.dir
/conf$$.
file
496 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
504 elif ln conf$$.
file conf$$
2>/dev
/null
; then
509 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
510 rmdir conf$$.dir
2>/dev
/null
512 if mkdir
-p .
2>/dev
/null
; then
515 test -d .
/-p && rmdir .
/-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.
file <<_ASEOF
526 if test -x conf$$.
file >/dev
/null
2>&1; then
527 as_executable_p
="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev
/null
6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix
=/usr
/local
553 ac_config_libobj_dir
=.
559 SHELL
=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME
='-llvm-'
564 PACKAGE_VERSION
='2.9svn'
565 PACKAGE_STRING
='llvm 2.9svn'
566 PACKAGE_BUGREPORT
='llvmbugs@cs.uiuc.edu'
568 ac_unique_file
="lib/VMCore/Module.cpp"
569 # Factoring default headers for most tests.
570 ac_includes_default
="\
573 # include <sys/types.h>
576 # include <sys/stat.h>
587 # if !STDC_HEADERS && HAVE_MEMORY_H
593 # include <strings.h>
596 # include <inttypes.h>
614 program_transform_name
683 ENABLE_EXPENSIVE_CHECKS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
754 HAVE_LINK_VERSION_SCRIPT
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
766 NO_MISSING_FIELD_INITIALIZERS
791 ENABLE_VISIBILITY_INLINES_HIDDEN
797 ac_precious_vars
='build_alias
808 ac_subdirs_all
='projects/llvm-gcc
812 projects/llvm-poolalloc
815 projects/llvm-stacker
820 projects/llvm-kernel'
822 # Initialize some variables set by options.
824 ac_init_version
=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
834 program_transform_name
=s
,x
,x
,
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir
='${exec_prefix}/bin'
849 sbindir
='${exec_prefix}/sbin'
850 libexecdir
='${exec_prefix}/libexec'
851 datarootdir
='${prefix}/share'
852 datadir
='${datarootdir}'
853 sysconfdir
='${prefix}/etc'
854 sharedstatedir
='${prefix}/com'
855 localstatedir
='${prefix}/var'
856 includedir
='${prefix}/include'
857 oldincludedir
='/usr/include'
858 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir
='${datarootdir}/info'
864 libdir
='${exec_prefix}/lib'
865 localedir
='${datarootdir}/locale'
866 mandir
='${datarootdir}/man'
872 # If the previous option needs an argument, assign it.
873 if test -n "$ac_prev"; then
874 eval $ac_prev=\
$ac_option
880 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
884 # Accept the important Cygnus configure options, so we can diagnose typos.
886 case $ac_dashdash$ac_option in
890 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
892 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
895 -build |
--build |
--buil |
--bui |
--bu)
896 ac_prev
=build_alias
;;
897 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
898 build_alias
=$ac_optarg ;;
900 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
901 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
902 ac_prev
=cache_file
;;
903 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
904 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
905 cache_file
=$ac_optarg ;;
908 cache_file
=config.cache
;;
910 -datadir |
--datadir |
--datadi |
--datad)
912 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
913 datadir
=$ac_optarg ;;
915 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
916 |
--dataroo |
--dataro |
--datar)
917 ac_prev
=datarootdir
;;
918 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
919 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
920 datarootdir
=$ac_optarg ;;
922 -disable-* |
--disable-*)
923 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924 # Reject names that are not valid shell variable names.
925 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
926 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927 { (exit 1); exit 1; }; }
928 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
929 eval enable_
$ac_feature=no
;;
931 -docdir |
--docdir |
--docdi |
--doc |
--do)
933 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
936 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
938 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
941 -enable-* |
--enable-*)
942 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943 # Reject names that are not valid shell variable names.
944 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
945 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946 { (exit 1); exit 1; }; }
947 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
948 eval enable_
$ac_feature=\
$ac_optarg ;;
950 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
951 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
952 |
--exec |
--exe |
--ex)
953 ac_prev
=exec_prefix
;;
954 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
955 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
956 |
--exec=* |
--exe=* |
--ex=*)
957 exec_prefix
=$ac_optarg ;;
959 -gas |
--gas |
--ga |
--g)
960 # Obsolete; use --with-gas.
963 -help |
--help |
--hel |
--he |
-h)
965 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
966 ac_init_help
=recursive
;;
967 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
968 ac_init_help
=short
;;
970 -host |
--host |
--hos |
--ho)
971 ac_prev
=host_alias
;;
972 -host=* |
--host=* |
--hos=* |
--ho=*)
973 host_alias
=$ac_optarg ;;
975 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
977 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
979 htmldir
=$ac_optarg ;;
981 -includedir |
--includedir |
--includedi |
--included |
--include \
982 |
--includ |
--inclu |
--incl |
--inc)
983 ac_prev
=includedir
;;
984 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
985 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
986 includedir
=$ac_optarg ;;
988 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
990 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
991 infodir
=$ac_optarg ;;
993 -libdir |
--libdir |
--libdi |
--libd)
995 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
998 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
999 |
--libexe |
--libex |
--libe)
1000 ac_prev
=libexecdir
;;
1001 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1002 |
--libexe=* |
--libex=* |
--libe=*)
1003 libexecdir
=$ac_optarg ;;
1005 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1006 ac_prev
=localedir
;;
1007 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1008 localedir
=$ac_optarg ;;
1010 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1011 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1012 ac_prev
=localstatedir
;;
1013 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1014 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1015 localstatedir
=$ac_optarg ;;
1017 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1019 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1020 mandir
=$ac_optarg ;;
1022 -nfp |
--nfp |
--nf)
1023 # Obsolete; use --without-fp.
1026 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1027 |
--no-cr |
--no-c |
-n)
1030 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1031 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1034 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1035 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1036 |
--oldin |
--oldi |
--old |
--ol |
--o)
1037 ac_prev
=oldincludedir
;;
1038 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1039 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1040 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1041 oldincludedir
=$ac_optarg ;;
1043 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1045 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1046 prefix
=$ac_optarg ;;
1048 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1049 |
--program-pre |
--program-pr |
--program-p)
1050 ac_prev
=program_prefix
;;
1051 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1052 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1053 program_prefix
=$ac_optarg ;;
1055 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1056 |
--program-suf |
--program-su |
--program-s)
1057 ac_prev
=program_suffix
;;
1058 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1059 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1060 program_suffix
=$ac_optarg ;;
1062 -program-transform-name |
--program-transform-name \
1063 |
--program-transform-nam |
--program-transform-na \
1064 |
--program-transform-n |
--program-transform- \
1065 |
--program-transform |
--program-transfor \
1066 |
--program-transfo |
--program-transf \
1067 |
--program-trans |
--program-tran \
1068 |
--progr-tra |
--program-tr |
--program-t)
1069 ac_prev
=program_transform_name
;;
1070 -program-transform-name=* |
--program-transform-name=* \
1071 |
--program-transform-nam=* |
--program-transform-na=* \
1072 |
--program-transform-n=* |
--program-transform-=* \
1073 |
--program-transform=* |
--program-transfor=* \
1074 |
--program-transfo=* |
--program-transf=* \
1075 |
--program-trans=* |
--program-tran=* \
1076 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1077 program_transform_name
=$ac_optarg ;;
1079 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1081 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1082 pdfdir
=$ac_optarg ;;
1084 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1086 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1089 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1090 |
-silent |
--silent |
--silen |
--sile |
--sil)
1093 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1095 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1097 sbindir
=$ac_optarg ;;
1099 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1100 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1101 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1103 ac_prev
=sharedstatedir
;;
1104 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1105 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1106 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1108 sharedstatedir
=$ac_optarg ;;
1110 -site |
--site |
--sit)
1112 -site=* |
--site=* |
--sit=*)
1115 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1117 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1118 srcdir
=$ac_optarg ;;
1120 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1121 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1122 ac_prev
=sysconfdir
;;
1123 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1124 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1125 sysconfdir
=$ac_optarg ;;
1127 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1128 ac_prev
=target_alias
;;
1129 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1130 target_alias
=$ac_optarg ;;
1132 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1135 -version |
--version |
--versio |
--versi |
--vers |
-V)
1136 ac_init_version
=: ;;
1139 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1142 { echo "$as_me: error: invalid package name: $ac_package" >&2
1143 { (exit 1); exit 1; }; }
1144 ac_package
=`echo $ac_package| sed 's/-/_/g'`
1145 eval with_
$ac_package=\
$ac_optarg ;;
1147 -without-* |
--without-*)
1148 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149 # Reject names that are not valid shell variable names.
1150 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
1151 { echo "$as_me: error: invalid package name: $ac_package" >&2
1152 { (exit 1); exit 1; }; }
1153 ac_package
=`echo $ac_package | sed 's/-/_/g'`
1154 eval with_
$ac_package=no
;;
1157 # Obsolete; use --with-x.
1160 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1161 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1162 ac_prev
=x_includes
;;
1163 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1164 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1165 x_includes
=$ac_optarg ;;
1167 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1168 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1169 ac_prev
=x_libraries
;;
1170 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1171 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1172 x_libraries
=$ac_optarg ;;
1174 -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176 { (exit 1); exit 1; }; }
1180 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1181 # Reject names that are not valid shell variable names.
1182 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1183 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184 { (exit 1); exit 1; }; }
1185 eval $ac_envvar=\
$ac_optarg
1186 export $ac_envvar ;;
1189 # FIXME: should be removed in autoconf 3.0.
1190 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1192 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1199 if test -n "$ac_prev"; then
1200 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1201 { echo "$as_me: error: missing argument to $ac_option" >&2
1202 { (exit 1); exit 1; }; }
1205 # Be sure to have absolute directory names.
1206 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207 datadir sysconfdir sharedstatedir localstatedir includedir \
1208 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209 libdir localedir mandir
1211 eval ac_val
=\$
$ac_var
1213 [\\/$
]* | ?
:[\\/]* ) continue;;
1214 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1216 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217 { (exit 1); exit 1; }; }
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1225 target
=$target_alias
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x
; then
1229 if test "x$build_alias" = x
; then
1230 cross_compiling
=maybe
1231 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232 If a cross compiler is detected then cross compile mode will be used." >&2
1233 elif test "x$build_alias" != "x$host_alias"; then
1239 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1241 test "$silent" = yes && exec 6>/dev
/null
1244 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di
=`ls -di .` &&
1246 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1247 { echo "$as_me: error: Working directory cannot be determined" >&2
1248 { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250 { echo "$as_me: error: pwd does not report name of working directory" >&2
1251 { (exit 1); exit 1; }; }
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256 ac_srcdir_defaulted
=yes
1257 # Try the directory containing this script, then the parent directory.
1258 ac_confdir
=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260 X"$0" : 'X\(//\)[^/]' \| \
1261 X"$0" : 'X\(//\)$' \| \
1262 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1286 ac_srcdir_defaulted
=no
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1290 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291 { (exit 1); exit 1; }; }
1293 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296 { (exit 1); exit 1; }; }
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1306 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1308 for ac_var
in $ac_precious_vars; do
1309 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1311 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1322 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1380 --build=BUILD configure
for building on BUILD
[guessed
]
1381 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1382 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1386 if test -n "$ac_init_help"; then
1387 case $ac_init_help in
1388 short | recursive
) echo "Configuration of llvm 2.9svn:";;
1393 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1394 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1395 --enable-optimized Compile with optimizations enabled
(default is NO
)
1396 --enable-profiling Compile with profiling enabled
(default is NO
)
1397 --enable-assertions Compile with assertion checks enabled
(default is
1399 --enable-expensive-checks
1400 Compile with expensive debug checks enabled
(default
1402 --enable-debug-runtime Build runtime libs with debug symbols
(default is
1404 --enable-debug-symbols Build compiler with debug symbols
(default is NO
if
1405 optimization is on and YES
if it
's off)
1406 --enable-jit Enable Just In Time Compiling (default is YES)
1407 --enable-doxygen Build doxygen documentation (default is NO)
1408 --enable-threads Use threads if available (default is YES)
1409 --enable-pic Build LLVM with Position Independent Code (default
1411 --enable-shared Build a shared library and link tools against it
1413 --enable-timestamps Enable embedding timestamp information in build
1415 --enable-targets Build specific host targets: all or
1416 target1,target2,... Valid targets are: host, x86,
1417 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1418 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1420 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1422 --enable-bindings Build specific language bindings:
1423 all,auto,none,{binding-name} (default=auto)
1424 --enable-libffi Check for the presence of libffi (default is NO)
1425 --enable-ltdl-install install libltdl
1428 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1429 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1430 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1432 --with-llvmgcc Specify location of llvm-gcc driver (default
1434 --with-llvmgxx Specify location of llvm-g++ driver (default
1436 --with-clang Specify location of clang compiler (default is
1438 --with-built-clang Use the compiled Clang as the LLVM compiler
1440 --with-optimize-option Select the compiler options to use for optimized
1442 --with-extra-options Specify additional options to compile LLVM with
1443 --with-ocaml-libdir Specify install location for ocaml bindings (default
1445 --with-clang-resource-dir
1446 Relative directory from the Clang binary for
1448 --with-c-include-dirs Colon separated list of directories clang will
1450 --with-cxx-include-root Directory with the libstdc++ headers.
1451 --with-cxx-include-arch Architecture of the libstdc++ headers.
1452 --with-cxx-include-32bit-dir
1453 32 bit multilib dir.
1454 --with-cxx-include-64bit-dir
1455 64 bit multilib directory.
1456 --with-binutils-include Specify path to binutils/include/ containing
1457 plugin-api.h file for gold plugin.
1458 --with-tclinclude directory where tcl headers are
1459 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1460 clang, or none; default=check)
1461 --with-udis86=<path> Use udis86 external x86 disassembler library
1462 --with-oprofile=<prefix>
1463 Tell OProfile >= 0.9.4 how to symbolize JIT output
1465 Some influential environment variables:
1466 CC C compiler command
1467 CFLAGS C compiler flags
1468 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1469 nonstandard directory <lib dir>
1470 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471 you have headers in a nonstandard directory <include dir>
1473 CXX C++ compiler command
1474 CXXFLAGS C++ compiler flags
1476 Use these variables to override the choices made by `configure' or to
help
1477 it to
find libraries and programs with nonstandard names
/locations.
1479 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1487 test -d "$ac_dir" ||
continue
1491 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1493 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1498 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1501 ac_abs_top_builddir
=$ac_pwd
1502 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir
=$ac_top_build_prefix
1507 .
) # We are building in place.
1509 ac_top_srcdir
=$ac_top_builddir_sub
1510 ac_abs_top_srcdir
=$ac_pwd ;;
1511 [\\/]* | ?
:[\\/]* ) # Absolute name.
1512 ac_srcdir
=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir
=$srcdir
1514 ac_abs_top_srcdir
=$srcdir ;;
1516 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1520 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1531 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1533 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1540 llvm configure
2.9svn
1541 generated by GNU Autoconf
2.60
1543 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1544 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1545 This configure
script is free software
; the Free Software Foundation
1546 gives unlimited permission to copy
, distribute and modify it.
1548 Copyright
(c
) 2003-2010 University of Illinois
at Urbana-Champaign.
1552 cat >config.log
<<_ACEOF
1553 This file contains any messages produced by compilers while
1554 running configure, to aid debugging if configure makes a mistake.
1556 It was created by llvm $as_me 2.9svn, which was
1557 generated by GNU Autoconf 2.60. Invocation command line was
1569 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1570 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1571 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1572 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1573 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1575 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1576 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1578 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1579 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1580 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1581 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1582 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1583 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1584 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1588 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1592 test -z "$as_dir" && as_dir
=.
1593 echo "PATH: $as_dir"
1609 # Keep a trace of the command line.
1610 # Strip out --no-create and --no-recursion so they do not pile up.
1611 # Strip out --silent because we don't want to record it for future runs.
1612 # Also quote any args containing shell meta-characters.
1613 # Make two passes to allow for proper duplicate-argument suppression.
1617 ac_must_keep_next
=false
1623 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1624 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1625 |
-silent |
--silent |
--silen |
--sile |
--sil)
1628 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1631 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1633 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1634 if test $ac_must_keep_next = true
; then
1635 ac_must_keep_next
=false
# Got value, back to normal.
1638 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1639 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1640 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1641 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1642 case "$ac_configure_args0 " in
1643 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1646 -* ) ac_must_keep_next
=true
;;
1649 ac_configure_args
="$ac_configure_args '$ac_arg'"
1654 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1655 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1657 # When interrupted or exit'd, cleanup temporary files, and complete
1658 # config.log. We remove comments because anyway the quotes in there
1659 # would cause problems or look ugly.
1660 # WARNING: Use '\'' to represent an apostrophe within the trap.
1661 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1662 trap 'exit_status=$?
1663 # Save into config.log some information that might help in debugging.
1668 ## ---------------- ##
1669 ## Cache variables. ##
1670 ## ---------------- ##
1673 # The following way of writing the cache mishandles newlines in values,
1675 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1676 eval ac_val=\$$ac_var
1680 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1681 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1684 _ | IFS | as_nl) ;; #(
1685 *) $as_unset $ac_var ;;
1690 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1691 *${as_nl}ac_space=\ *)
1693 "s/'\''/'\''\\\\'\'''\''/g;
1694 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1705 ## ----------------- ##
1706 ## Output variables. ##
1707 ## ----------------- ##
1710 for ac_var in $ac_subst_vars
1712 eval ac_val=\$$ac_var
1714 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1716 echo "$ac_var='\''$ac_val'\''"
1720 if test -n "$ac_subst_files"; then
1722 ## ------------------- ##
1723 ## File substitutions. ##
1724 ## ------------------- ##
1727 for ac_var
in $ac_subst_files
1729 eval ac_val
=\$
$ac_var
1731 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1733 echo "$ac_var='\''$ac_val'\''"
1738 if test -s confdefs.h; then
1748 test "$ac_signal" != 0 &&
1749 echo "$as_me: caught signal $ac_signal"
1750 echo "$as_me: exit $exit_status"
1752 rm -f core *.core core.conftest.* &&
1753 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1756 for ac_signal
in 1 2 13 15; do
1757 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1761 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1762 rm -f -r conftest
* confdefs.h
1764 # Predefined preprocessor variables.
1766 cat >>confdefs.h
<<_ACEOF
1767 #define PACKAGE_NAME "$PACKAGE_NAME"
1771 cat >>confdefs.h
<<_ACEOF
1772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1776 cat >>confdefs.h
<<_ACEOF
1777 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1781 cat >>confdefs.h
<<_ACEOF
1782 #define PACKAGE_STRING "$PACKAGE_STRING"
1786 cat >>confdefs.h
<<_ACEOF
1787 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1791 # Let the site file select an alternate cache file if it wants to.
1792 # Prefer explicitly selected file to automatically selected ones.
1793 if test -n "$CONFIG_SITE"; then
1794 set x
"$CONFIG_SITE"
1795 elif test "x$prefix" != xNONE
; then
1796 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1798 set x
"$ac_default_prefix/share/config.site" \
1799 "$ac_default_prefix/etc/config.site"
1804 if test -r "$ac_site_file"; then
1805 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1806 echo "$as_me: loading site script $ac_site_file" >&6;}
1807 sed 's/^/| /' "$ac_site_file" >&5
1812 if test -r "$cache_file"; then
1813 # Some versions of bash will fail to source /dev/null (special
1814 # files actually), so we avoid doing that.
1815 if test -f "$cache_file"; then
1816 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1817 echo "$as_me: loading cache $cache_file" >&6;}
1819 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1820 *) .
"./$cache_file";;
1824 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1825 echo "$as_me: creating cache $cache_file" >&6;}
1829 # Check that the precious variables saved in the cache have kept the same
1831 ac_cache_corrupted
=false
1832 for ac_var
in $ac_precious_vars; do
1833 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1834 eval ac_new_set
=\
$ac_env_${ac_var}_set
1835 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1836 eval ac_new_val
=\
$ac_env_${ac_var}_value
1837 case $ac_old_set,$ac_new_set in
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1841 ac_cache_corrupted
=: ;;
1843 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1844 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1845 ac_cache_corrupted
=: ;;
1848 if test "x$ac_old_val" != "x$ac_new_val"; then
1849 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1850 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1851 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1852 echo "$as_me: former value: $ac_old_val" >&2;}
1853 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1854 echo "$as_me: current value: $ac_new_val" >&2;}
1855 ac_cache_corrupted
=:
1858 # Pass precious variables to config.status.
1859 if test "$ac_new_set" = set; then
1861 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1862 *) ac_arg
=$ac_var=$ac_new_val ;;
1864 case " $ac_configure_args " in
1865 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1866 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1870 if $ac_cache_corrupted; then
1871 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1872 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1873 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1874 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1875 { (exit 1); exit 1; }; }
1903 ac_cpp
='$CPP $CPPFLAGS'
1904 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1905 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1906 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1910 LLVM_COPYRIGHT
="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1919 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
1920 if test -f "$ac_dir/install-sh"; then
1922 ac_install_sh
="$ac_aux_dir/install-sh -c"
1924 elif test -f "$ac_dir/install.sh"; then
1926 ac_install_sh
="$ac_aux_dir/install.sh -c"
1928 elif test -f "$ac_dir/shtool"; then
1930 ac_install_sh
="$ac_aux_dir/shtool install -c"
1934 if test -z "$ac_aux_dir"; then
1935 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1936 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1937 { (exit 1); exit 1; }; }
1940 # These three variables are undocumented and unsupported,
1941 # and are intended to be withdrawn in a future Autoconf release.
1942 # They can cause serious problems if a builder's source tree is in a directory
1943 # whose full name contains unusual characters.
1944 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1945 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1946 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1950 if test ${srcdir} != "." ; then
1951 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
1952 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1953 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1954 { (exit 1); exit 1; }; }
1960 if test -d ${srcdir}/projects
/llvm-gcc
; then
1961 subdirs
="$subdirs projects/llvm-gcc"
1965 if test -d ${srcdir}/projects
/test-suite
; then
1966 subdirs
="$subdirs projects/test-suite"
1970 if test -d ${srcdir}/projects
/llvm-test
; then
1971 subdirs
="$subdirs projects/llvm-test"
1975 if test -d ${srcdir}/projects
/poolalloc
; then
1976 subdirs
="$subdirs projects/poolalloc"
1980 if test -d ${srcdir}/projects
/llvm-poolalloc
; then
1981 subdirs
="$subdirs projects/llvm-poolalloc"
1985 for i
in `ls ${srcdir}/projects`
1987 if test -d ${srcdir}/projects
/${i} ; then
1989 sample
) subdirs
="$subdirs projects/sample"
1991 privbracket
) subdirs
="$subdirs projects/privbracket"
1993 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
1995 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
1997 llvm-java
) subdirs
="$subdirs projects/llvm-java"
1999 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
2001 safecode
) subdirs
="$subdirs projects/safecode"
2003 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2011 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2012 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2019 # Make sure we can run config.sub.
2020 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2021 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2022 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2023 { (exit 1); exit 1; }; }
2025 { echo "$as_me:$LINENO: checking build system type" >&5
2026 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2027 if test "${ac_cv_build+set}" = set; then
2028 echo $ECHO_N "(cached) $ECHO_C" >&6
2030 ac_build_alias
=$build_alias
2031 test "x$ac_build_alias" = x
&&
2032 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2033 test "x$ac_build_alias" = x
&&
2034 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2035 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2036 { (exit 1); exit 1; }; }
2037 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2038 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2039 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2040 { (exit 1); exit 1; }; }
2043 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2044 echo "${ECHO_T}$ac_cv_build" >&6; }
2045 case $ac_cv_build in
2047 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2048 echo "$as_me: error: invalid value of canonical build" >&2;}
2049 { (exit 1); exit 1; }; };;
2052 ac_save_IFS
=$IFS; IFS
='-'
2058 # Remember, the first character of IFS is used to create $*,
2059 # except with old shells:
2062 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2065 { echo "$as_me:$LINENO: checking host system type" >&5
2066 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2067 if test "${ac_cv_host+set}" = set; then
2068 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 if test "x$host_alias" = x
; then
2071 ac_cv_host
=$ac_cv_build
2073 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2074 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2076 { (exit 1); exit 1; }; }
2080 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2081 echo "${ECHO_T}$ac_cv_host" >&6; }
2084 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2085 echo "$as_me: error: invalid value of canonical host" >&2;}
2086 { (exit 1); exit 1; }; };;
2089 ac_save_IFS
=$IFS; IFS
='-'
2095 # Remember, the first character of IFS is used to create $*,
2096 # except with old shells:
2099 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2102 { echo "$as_me:$LINENO: checking target system type" >&5
2103 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_target+set}" = set; then
2105 echo $ECHO_N "(cached) $ECHO_C" >&6
2107 if test "x$target_alias" = x
; then
2108 ac_cv_target
=$ac_cv_host
2110 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2111 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2112 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2113 { (exit 1); exit 1; }; }
2117 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2118 echo "${ECHO_T}$ac_cv_target" >&6; }
2119 case $ac_cv_target in
2121 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2122 echo "$as_me: error: invalid value of canonical target" >&2;}
2123 { (exit 1); exit 1; }; };;
2125 target
=$ac_cv_target
2126 ac_save_IFS
=$IFS; IFS
='-'
2132 # Remember, the first character of IFS is used to create $*,
2133 # except with old shells:
2136 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2139 # The aliases save the names the user supplied, while $host etc.
2140 # will get canonicalized.
2141 test -n "$target_alias" &&
2142 test "$program_prefix$program_suffix$program_transform_name" = \
2144 program_prefix
=${target_alias}-
2146 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2147 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2148 if test "${llvm_cv_os_type+set}" = set; then
2149 echo $ECHO_N "(cached) $ECHO_C" >&6
2153 llvm_cv_link_all_option
="-Wl,--whole-archive"
2154 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2155 llvm_cv_os_type
="AIX"
2156 llvm_cv_platform_type
="Unix" ;;
2158 llvm_cv_link_all_option
="-Wl,--whole-archive"
2159 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2160 llvm_cv_os_type
="IRIX"
2161 llvm_cv_platform_type
="Unix" ;;
2163 llvm_cv_link_all_option
="-Wl,--whole-archive"
2164 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2165 llvm_cv_os_type
="Cygwin"
2166 llvm_cv_platform_type
="Unix" ;;
2168 llvm_cv_link_all_option
="-Wl,-all_load"
2169 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2170 llvm_cv_os_type
="Darwin"
2171 llvm_cv_platform_type
="Unix" ;;
2173 llvm_cv_link_all_option
="-Wl,-all_load"
2174 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2175 llvm_cv_os_type
="Minix"
2176 llvm_cv_platform_type
="Unix" ;;
2178 llvm_cv_link_all_option
="-Wl,--whole-archive"
2179 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2180 llvm_cv_os_type
="FreeBSD"
2181 llvm_cv_platform_type
="Unix" ;;
2183 llvm_cv_link_all_option
="-Wl,--whole-archive"
2184 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2185 llvm_cv_os_type
="OpenBSD"
2186 llvm_cv_platform_type
="Unix" ;;
2188 llvm_cv_link_all_option
="-Wl,--whole-archive"
2189 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2190 llvm_cv_os_type
="NetBSD"
2191 llvm_cv_platform_type
="Unix" ;;
2193 llvm_cv_link_all_option
="-Wl,--whole-archive"
2194 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2195 llvm_cv_os_type
="DragonFly"
2196 llvm_cv_platform_type
="Unix" ;;
2198 llvm_cv_link_all_option
="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2200 llvm_cv_os_type
="HP-UX"
2201 llvm_cv_platform_type
="Unix" ;;
2203 llvm_cv_link_all_option
="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2205 llvm_cv_os_type
="Interix"
2206 llvm_cv_platform_type
="Unix" ;;
2208 llvm_cv_link_all_option
="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2210 llvm_cv_os_type
="Linux"
2211 llvm_cv_platform_type
="Unix" ;;
2213 llvm_cv_link_all_option
="-Wl,-z,allextract"
2214 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2215 llvm_cv_os_type
="SunOS"
2216 llvm_cv_platform_type
="Unix" ;;
2218 llvm_cv_link_all_option
="-Wl,-z,allextract"
2219 llvm_cv_link_all_option
="-Wl,-z,defaultextract"
2220 llvm_cv_os_type
="AuroraUX"
2221 llvm_cv_platform_type
="Unix" ;;
2223 llvm_cv_link_all_option
="-Wl,--whole-archive"
2224 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2225 llvm_cv_os_type
="Win32"
2226 llvm_cv_platform_type
="Win32" ;;
2228 llvm_cv_link_all_option
="-Wl,--whole-archive"
2229 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2230 llvm_cv_os_type
="MingW"
2231 llvm_cv_platform_type
="Win32" ;;
2233 llvm_cv_link_all_option
="-Wl,--whole-archive"
2234 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2235 llvm_cv_os_type
="Haiku"
2236 llvm_cv_platform_type
="Unix" ;;
2238 llvm_cv_link_all_option
="-Wl,--whole-archive"
2239 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2240 llvm_cv_os_type
="Freestanding"
2241 llvm_cv_platform_type
="Unix" ;;
2243 llvm_cv_link_all_option
="-Wl,--whole-archive"
2244 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2245 llvm_cv_os_type
="Freestanding"
2246 llvm_cv_platform_type
="Unix" ;;
2248 llvm_cv_link_all_option
=""
2249 llvm_cv_no_link_all_option
=""
2250 llvm_cv_os_type
="Unknown"
2251 llvm_cv_platform_type
="Unknown" ;;
2254 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2255 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2257 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2258 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2259 if test "${llvm_cv_target_os_type+set}" = set; then
2260 echo $ECHO_N "(cached) $ECHO_C" >&6
2264 llvm_cv_target_os_type
="AIX" ;;
2266 llvm_cv_target_os_type
="IRIX" ;;
2268 llvm_cv_target_os_type
="Cygwin" ;;
2270 llvm_cv_target_os_type
="Darwin" ;;
2272 llvm_cv_target_os_type
="Minix" ;;
2274 llvm_cv_target_os_type
="FreeBSD" ;;
2276 llvm_cv_target_os_type
="OpenBSD" ;;
2278 llvm_cv_target_os_type
="NetBSD" ;;
2280 llvm_cv_target_os_type
="DragonFly" ;;
2282 llvm_cv_target_os_type
="HP-UX" ;;
2284 llvm_cv_target_os_type
="Interix" ;;
2286 llvm_cv_target_os_type
="Linux" ;;
2288 llvm_cv_target_os_type
="SunOS" ;;
2290 llvm_cv_target_os_type
="AuroraUX" ;;
2292 llvm_cv_target_os_type
="Win32" ;;
2294 llvm_cv_target_os_type
="MingW" ;;
2296 llvm_cv_target_os_type
="Haiku" ;;
2298 llvm_cv_target_os_type
="Freestanding" ;;
2300 llvm_cv_target_os_type
="Unknown" ;;
2303 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2304 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2306 if test "$llvm_cv_os_type" = "Unknown" ; then
2307 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2308 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2309 { (exit 1); exit 1; }; }
2314 HOST_OS
=$llvm_cv_os_type
2316 TARGET_OS
=$llvm_cv_target_os_type
2319 LINKALL
=$llvm_cv_link_all_option
2321 NOLINKALL
=$llvm_cv_no_link_all_option
2324 case $llvm_cv_platform_type in
2327 cat >>confdefs.h
<<\_ACEOF
2328 #define LLVM_ON_UNIX 1
2338 cat >>confdefs.h
<<\_ACEOF
2339 #define LLVM_ON_WIN32 1
2349 { echo "$as_me:$LINENO: checking target architecture" >&5
2350 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2351 if test "${llvm_cv_target_arch+set}" = set; then
2352 echo $ECHO_N "(cached) $ECHO_C" >&6
2355 i?
86-*) llvm_cv_target_arch
="x86" ;;
2356 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2357 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2358 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2359 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2360 arm
*-*) llvm_cv_target_arch
="ARM" ;;
2361 mips-
*) llvm_cv_target_arch
="Mips" ;;
2362 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2363 msp430-
*) llvm_cv_target_arch
="MSP430" ;;
2364 s390x-
*) llvm_cv_target_arch
="SystemZ" ;;
2365 bfin-
*) llvm_cv_target_arch
="Blackfin" ;;
2366 mblaze-
*) llvm_cv_target_arch
="MBlaze" ;;
2367 ptx-
*) llvm_cv_target_arch
="PTX" ;;
2368 *) llvm_cv_target_arch
="Unknown" ;;
2371 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2372 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2374 if test "$llvm_cv_target_arch" = "Unknown" ; then
2375 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2376 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2379 # Determine the LLVM native architecture for the target
2380 case "$llvm_cv_target_arch" in
2381 x86
) LLVM_NATIVE_ARCH
="X86" ;;
2382 x86_64
) LLVM_NATIVE_ARCH
="X86" ;;
2383 *) LLVM_NATIVE_ARCH
="$llvm_cv_target_arch" ;;
2386 ARCH
=$llvm_cv_target_arch
2390 ac_cpp
='$CPP $CPPFLAGS'
2391 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2394 if test -n "$ac_tool_prefix"; then
2395 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2396 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_CC+set}" = set; then
2400 echo $ECHO_N "(cached) $ECHO_C" >&6
2402 if test -n "$CC"; then
2403 ac_cv_prog_CC
="$CC" # Let the user override the test.
2405 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2409 test -z "$as_dir" && as_dir
=.
2410 for ac_exec_ext
in '' $ac_executable_extensions; do
2411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2412 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2423 if test -n "$CC"; then
2424 { echo "$as_me:$LINENO: result: $CC" >&5
2425 echo "${ECHO_T}$CC" >&6; }
2427 { echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6; }
2433 if test -z "$ac_cv_prog_CC"; then
2435 # Extract the first word of "gcc", so it can be a program name with args.
2436 set dummy gcc
; ac_word
=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2440 echo $ECHO_N "(cached) $ECHO_C" >&6
2442 if test -n "$ac_ct_CC"; then
2443 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2445 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2449 test -z "$as_dir" && as_dir
=.
2450 for ac_exec_ext
in '' $ac_executable_extensions; do
2451 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2452 ac_cv_prog_ac_ct_CC
="gcc"
2453 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2462 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2463 if test -n "$ac_ct_CC"; then
2464 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2465 echo "${ECHO_T}$ac_ct_CC" >&6; }
2467 { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2471 if test "x$ac_ct_CC" = x
; then
2474 case $cross_compiling:$ac_tool_warned in
2476 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet. If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&5
2479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet. If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2482 ac_tool_warned
=yes ;;
2490 if test -z "$CC"; then
2491 if test -n "$ac_tool_prefix"; then
2492 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2493 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2496 if test "${ac_cv_prog_CC+set}" = set; then
2497 echo $ECHO_N "(cached) $ECHO_C" >&6
2499 if test -n "$CC"; then
2500 ac_cv_prog_CC
="$CC" # Let the user override the test.
2502 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2506 test -z "$as_dir" && as_dir
=.
2507 for ac_exec_ext
in '' $ac_executable_extensions; do
2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2509 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2520 if test -n "$CC"; then
2521 { echo "$as_me:$LINENO: result: $CC" >&5
2522 echo "${ECHO_T}$CC" >&6; }
2524 { echo "$as_me:$LINENO: result: no" >&5
2525 echo "${ECHO_T}no" >&6; }
2531 if test -z "$CC"; then
2532 # Extract the first word of "cc", so it can be a program name with args.
2533 set dummy cc
; ac_word
=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537 echo $ECHO_N "(cached) $ECHO_C" >&6
2539 if test -n "$CC"; then
2540 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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2551 ac_prog_rejected
=yes
2555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2562 if test $ac_prog_rejected = yes; then
2563 # We found a bogon in the path, so make sure we never use it.
2564 set dummy
$ac_cv_prog_CC
2566 if test $# != 0; then
2567 # We chose a different compiler from the bogus one.
2568 # However, it has the same basename, so the bogon will be chosen
2569 # first if we set CC to just the basename; use the full file name.
2571 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2577 if test -n "$CC"; then
2578 { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2581 { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2587 if test -z "$CC"; then
2588 if test -n "$ac_tool_prefix"; then
2589 for ac_prog
in cl.exe
2591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2592 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2595 if test "${ac_cv_prog_CC+set}" = set; then
2596 echo $ECHO_N "(cached) $ECHO_C" >&6
2598 if test -n "$CC"; then
2599 ac_cv_prog_CC
="$CC" # Let the user override the test.
2601 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2605 test -z "$as_dir" && as_dir
=.
2606 for ac_exec_ext
in '' $ac_executable_extensions; do
2607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2608 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 if test -n "$CC"; then
2620 { echo "$as_me:$LINENO: result: $CC" >&5
2621 echo "${ECHO_T}$CC" >&6; }
2623 { echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6; }
2628 test -n "$CC" && break
2631 if test -z "$CC"; then
2633 for ac_prog
in cl.exe
2635 # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy
$ac_prog; ac_word
=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2640 echo $ECHO_N "(cached) $ECHO_C" >&6
2642 if test -n "$ac_ct_CC"; then
2643 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2645 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2649 test -z "$as_dir" && as_dir
=.
2650 for ac_exec_ext
in '' $ac_executable_extensions; do
2651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2652 ac_cv_prog_ac_ct_CC
="$ac_prog"
2653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2662 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2665 echo "${ECHO_T}$ac_ct_CC" >&6; }
2667 { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2672 test -n "$ac_ct_CC" && break
2675 if test "x$ac_ct_CC" = x
; then
2678 case $cross_compiling:$ac_tool_warned in
2680 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet. If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&5
2683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet. If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2686 ac_tool_warned
=yes ;;
2695 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&5
2697 echo "$as_me: error: no acceptable C compiler found in \$PATH
2698 See \`config.log' for more details." >&2;}
2699 { (exit 1); exit 1; }; }
2701 # Provide some information about the compiler.
2702 echo "$as_me:$LINENO: checking for C compiler version" >&5
2703 ac_compiler
=`set X $ac_compile; echo $2`
2704 { (ac_try
="$ac_compiler --version >&5"
2706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710 (eval "$ac_compiler --version >&5") 2>&5
2712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713 (exit $ac_status); }
2714 { (ac_try="$ac_compiler -v >&5"
2716 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2717 *) ac_try_echo
=$ac_try;;
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720 (eval "$ac_compiler -v >&5") 2>&5
2722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723 (exit $ac_status); }
2724 { (ac_try
="$ac_compiler -V >&5"
2726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2727 *) ac_try_echo=$ac_try;;
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730 (eval "$ac_compiler -V >&5") 2>&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); }
2735 cat >conftest.$ac_ext <<_ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h. */
2750 ac_clean_files_save=$ac_clean_files
2751 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2752 # Try to create an executable without -o first, disregard a.out.
2753 # It will help us diagnose broken compilers, and finding out an intuition
2755 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2756 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2757 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2759 # List of possible output files, starting from the most likely.
2760 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2761 # only as a last resort. b.out is created by i960 compilers.
2762 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2764 # The IRIX 6 linker writes into existing files which may not be
2765 # executable, retaining their permissions. Remove them first so a
2766 # subsequent execution test works.
2768 for ac_file in $ac_files
2771 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2772 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2777 if { (ac_try="$ac_link_default"
2779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780 *) ac_try_echo=$ac_try;;
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783 (eval "$ac_link_default") 2>&5
2785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786 (exit $ac_status); }; then
2787 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2788 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2789 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2790 # so that the user can short-circuit this test for compilers unknown to
2792 for ac_file
in $ac_files
2794 test -f "$ac_file" ||
continue
2796 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2799 # We found the default executable, but exeext='' is most
2803 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2805 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2807 # We set ac_cv_exeext here because the later test for it is not
2808 # safe: cross compilers may not add the suffix if given an `-o'
2809 # argument, so we may need to know it at that point already.
2810 # Even if this section looks crufty: it has the advantage of
2817 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2820 echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.
$ac_ext >&5
2823 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&2;}
2827 { (exit 77); exit 77; }; }
2830 ac_exeext
=$ac_cv_exeext
2831 { echo "$as_me:$LINENO: result: $ac_file" >&5
2832 echo "${ECHO_T}$ac_file" >&6; }
2834 # Check that the compiler produces executables we can run. If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2839 # If not cross compiling, check that we can run a simple program.
2840 if test "$cross_compiling" != yes; then
2841 if { ac_try
='./$ac_file'
2842 { (case "(($ac_try" in
2843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2844 *) ac_try_echo=$ac_try;;
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847 (eval "$ac_try") 2>&5
2849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850 (exit $ac_status); }; }; then
2853 if test "$cross_compiling" = maybe; then
2856 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details.
" >&5
2859 echo "$as_me: error
: cannot run C compiled programs.
2860 If you meant to cross compile
, use \
`--host'.
2861 See \`config.log
' for more details." >&2;}
2862 { (exit 1); exit 1; }; }
2866 { echo "$as_me:$LINENO: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6; }
2869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2870 ac_clean_files=$ac_clean_files_save
2871 # Check that the compiler produces executables we can run. If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2875 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2876 echo "${ECHO_T}$cross_compiling" >&6; }
2878 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2880 if { (ac_try="$ac_link"
2882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883 *) ac_try_echo=$ac_try;;
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886 (eval "$ac_link") 2>&5
2888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889 (exit $ac_status); }; then
2890 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2891 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2894 for ac_file
in conftest.exe conftest conftest.
*; do
2895 test -f "$ac_file" ||
continue
2897 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2898 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2904 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&2;}
2908 { (exit 1); exit 1; }; }
2911 rm -f conftest
$ac_cv_exeext
2912 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2913 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2915 rm -f conftest.
$ac_ext
2916 EXEEXT
=$ac_cv_exeext
2918 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2919 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2920 if test "${ac_cv_objext+set}" = set; then
2921 echo $ECHO_N "(cached) $ECHO_C" >&6
2923 cat >conftest.
$ac_ext <<_ACEOF
2926 cat confdefs.h
>>conftest.
$ac_ext
2927 cat >>conftest.
$ac_ext <<_ACEOF
2928 /* end confdefs.h. */
2938 rm -f conftest.o conftest.obj
2939 if { (ac_try
="$ac_compile"
2941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2942 *) ac_try_echo=$ac_try;;
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945 (eval "$ac_compile") 2>&5
2947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948 (exit $ac_status); }; then
2949 for ac_file in conftest.o conftest.obj conftest.*; do
2950 test -f "$ac_file" || continue;
2952 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2953 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2958 echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2961 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log
' for more details." >&5
2963 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details.
" >&2;}
2965 { (exit 1); exit 1; }; }
2968 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2970 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2971 echo "${ECHO_T}$ac_cv_objext" >&6; }
2972 OBJEXT=$ac_cv_objext
2974 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2975 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2976 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2977 echo $ECHO_N "(cached
) $ECHO_C" >&6
2979 cat >conftest.$ac_ext <<_ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h. */
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
3000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001 *) ac_try_echo=$ac_try;;
3003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3004 (eval "$ac_compile") 2>conftest.er1
3006 grep -v '^ *+' conftest.er1 >conftest.err
3008 cat conftest.err >&5
3009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3010 (exit $ac_status); } &&
3011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3012 { (case "(($ac_try" in
3013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014 *) ac_try_echo=$ac_try;;
3016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3017 (eval "$ac_try") 2>&5
3019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3020 (exit $ac_status); }; } &&
3021 { ac_try='test -s conftest.$ac_objext'
3022 { (case "(($ac_try" in
3023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024 *) ac_try_echo=$ac_try;;
3026 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3027 (eval "$ac_try") 2>&5
3029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3030 (exit $ac_status); }; }; then
3033 echo "$as_me: failed program was
:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3043 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3045 GCC=`test $ac_compiler_gnu = yes && echo yes`
3046 ac_test_CFLAGS=${CFLAGS+set}
3047 ac_save_CFLAGS=$CFLAGS
3048 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3049 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3050 if test "${ac_cv_prog_cc_g+set}" = set; then
3051 echo $ECHO_N "(cached
) $ECHO_C" >&6
3053 ac_save_c_werror_flag=$ac_c_werror_flag
3054 ac_c_werror_flag=yes
3057 cat >conftest.$ac_ext <<_ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h. */
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076 *) ac_try_echo=$ac_try;;
3078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3079 (eval "$ac_compile") 2>conftest.er1
3081 grep -v '^ *+' conftest.er1 >conftest.err
3083 cat conftest.err >&5
3084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3085 (exit $ac_status); } &&
3086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3087 { (case "(($ac_try" in
3088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089 *) ac_try_echo=$ac_try;;
3091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3092 (eval "$ac_try") 2>&5
3094 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3095 (exit $ac_status); }; } &&
3096 { ac_try='test -s conftest.$ac_objext'
3097 { (case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3102 (eval "$ac_try") 2>&5
3104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3105 (exit $ac_status); }; }; then
3108 echo "$as_me: failed program was
:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3112 cat >conftest.$ac_ext <<_ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h. */
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131 *) ac_try_echo=$ac_try;;
3133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3134 (eval "$ac_compile") 2>conftest.er1
3136 grep -v '^ *+' conftest.er1 >conftest.err
3138 cat conftest.err >&5
3139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3140 (exit $ac_status); } &&
3141 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3142 { (case "(($ac_try" in
3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144 *) ac_try_echo=$ac_try;;
3146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3147 (eval "$ac_try") 2>&5
3149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3150 (exit $ac_status); }; } &&
3151 { ac_try='test -s conftest.$ac_objext'
3152 { (case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3157 (eval "$ac_try") 2>&5
3159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3160 (exit $ac_status); }; }; then
3163 echo "$as_me: failed program was
:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3166 ac_c_werror_flag=$ac_save_c_werror_flag
3168 cat >conftest.$ac_ext <<_ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h. */
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187 *) ac_try_echo=$ac_try;;
3189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3190 (eval "$ac_compile") 2>conftest.er1
3192 grep -v '^ *+' conftest.er1 >conftest.err
3194 cat conftest.err >&5
3195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3196 (exit $ac_status); } &&
3197 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3198 { (case "(($ac_try" in
3199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200 *) ac_try_echo=$ac_try;;
3202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3203 (eval "$ac_try") 2>&5
3205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3206 (exit $ac_status); }; } &&
3207 { ac_try='test -s conftest.$ac_objext'
3208 { (case "(($ac_try" in
3209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210 *) ac_try_echo=$ac_try;;
3212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3213 (eval "$ac_try") 2>&5
3215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3216 (exit $ac_status); }; }; then
3219 echo "$as_me: failed program was
:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 ac_c_werror_flag=$ac_save_c_werror_flag
3234 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3235 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3236 if test "$ac_test_CFLAGS" = set; then
3237 CFLAGS=$ac_save_CFLAGS
3238 elif test $ac_cv_prog_cc_g = yes; then
3239 if test "$GCC" = yes; then
3245 if test "$GCC" = yes; then
3251 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3252 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3253 if test "${ac_cv_prog_cc_c89+set}" = set; then
3254 echo $ECHO_N "(cached
) $ECHO_C" >&6
3256 ac_cv_prog_cc_c89=no
3258 cat >conftest.$ac_ext <<_ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h. */
3266 #include <sys/types.h>
3267 #include <sys/stat.h>
3268 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3269 struct buf { int x; };
3270 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3271 static char *e (p, i)
3277 static char *f (char * (*g) (char **, int), char **p, ...)
3282 s = g (p, va_arg (v,int));
3287 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3288 function prototypes and stuff, but not '\xHH' hex character constants.
3289 These don't provoke an error unfortunately, instead are silently treated
3290 as 'x'. The following induces an error, until -std is added to get
3291 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3292 array size at least. It's necessary to write '\x00'==0 to get something
3293 that's true only with -std. */
3294 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3296 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3297 inside strings and character constants. */
3299 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3301 int test (int i, double x);
3302 struct s1 {int (*f) (int a);};
3303 struct s2 {int (*f) (double a);};
3304 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3310 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3315 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3316 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3318 CC="$ac_save_CC $ac_arg"
3319 rm -f conftest.$ac_objext
3320 if { (ac_try="$ac_compile"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_compile") 2>conftest.er1
3328 grep -v '^ *+' conftest.er1 >conftest.err
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3332 (exit $ac_status); } &&
3333 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3334 { (case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3342 (exit $ac_status); }; } &&
3343 { ac_try='test -s conftest.$ac_objext'
3344 { (case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_try") 2>&5
3351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3352 (exit $ac_status); }; }; then
3353 ac_cv_prog_cc_c89=$ac_arg
3355 echo "$as_me: failed program was
:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3361 rm -f core conftest.err conftest.$ac_objext
3362 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3364 rm -f conftest.$ac_ext
3369 case "x
$ac_cv_prog_cc_c89" in
3371 { echo "$as_me:$LINENO: result
: none needed
" >&5
3372 echo "${ECHO_T}none needed
" >&6; } ;;
3374 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3375 echo "${ECHO_T}unsupported
" >&6; } ;;
3377 CC="$CC $ac_cv_prog_cc_c89"
3378 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3379 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3384 ac_cpp='$CPP $CPPFLAGS'
3385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3396 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3397 # On Suns, sometimes $CPP names a directory.
3398 if test -n "$CPP" && test -d "$CPP"; then
3401 if test -z "$CPP"; then
3402 if test "${ac_cv_prog_CPP+set}" = set; then
3403 echo $ECHO_N "(cached
) $ECHO_C" >&6
3405 # Double quotes because CPP needs to be expanded
3406 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3409 for ac_c_preproc_warn_flag in '' yes
3411 # Use a header file that comes with gcc, so configuring glibc
3412 # with a fresh cross-compiler works.
3413 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414 # <limits.h> exists even on freestanding compilers.
3415 # On the NeXT, cc -E runs the code through the compiler's parser,
3416 # not just through cpp. "Syntax error
" is here to catch this case.
3417 cat >conftest.$ac_ext <<_ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h. */
3424 # include <limits.h>
3426 # include <assert.h>
3430 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3438 grep -v '^ *+' conftest.er1 >conftest.err
3440 cat conftest.err >&5
3441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3442 (exit $ac_status); } >/dev/null; then
3443 if test -s conftest.err; then
3444 ac_cpp_err=$ac_c_preproc_warn_flag
3445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3452 if test -z "$ac_cpp_err"; then
3455 echo "$as_me: failed program was
:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3458 # Broken: fails on valid input.
3462 rm -f conftest.err conftest.$ac_ext
3464 # OK, works on sane cases. Now check whether nonexistent headers
3465 # can be detected and how.
3466 cat >conftest.$ac_ext <<_ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h. */
3472 #include <ac_nonexistent.h>
3474 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3480 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3482 grep -v '^ *+' conftest.er1 >conftest.err
3484 cat conftest.err >&5
3485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3486 (exit $ac_status); } >/dev/null; then
3487 if test -s conftest.err; then
3488 ac_cpp_err=$ac_c_preproc_warn_flag
3489 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3496 if test -z "$ac_cpp_err"; then
3497 # Broken: success on invalid input.
3500 echo "$as_me: failed program was
:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3503 # Passes both tests.
3508 rm -f conftest.err conftest.$ac_ext
3511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512 rm -f conftest.err conftest.$ac_ext
3513 if $ac_preproc_ok; then
3525 { echo "$as_me:$LINENO: result
: $CPP" >&5
3526 echo "${ECHO_T}$CPP" >&6; }
3528 for ac_c_preproc_warn_flag in '' yes
3530 # Use a header file that comes with gcc, so configuring glibc
3531 # with a fresh cross-compiler works.
3532 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533 # <limits.h> exists even on freestanding compilers.
3534 # On the NeXT, cc -E runs the code through the compiler's parser,
3535 # not just through cpp. "Syntax error
" is here to catch this case.
3536 cat >conftest.$ac_ext <<_ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h. */
3543 # include <limits.h>
3545 # include <assert.h>
3549 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552 *) ac_try_echo=$ac_try;;
3554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3555 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3557 grep -v '^ *+' conftest.er1 >conftest.err
3559 cat conftest.err >&5
3560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3561 (exit $ac_status); } >/dev/null; then
3562 if test -s conftest.err; then
3563 ac_cpp_err=$ac_c_preproc_warn_flag
3564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3571 if test -z "$ac_cpp_err"; then
3574 echo "$as_me: failed program was
:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3577 # Broken: fails on valid input.
3581 rm -f conftest.err conftest.$ac_ext
3583 # OK, works on sane cases. Now check whether nonexistent headers
3584 # can be detected and how.
3585 cat >conftest.$ac_ext <<_ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h. */
3591 #include <ac_nonexistent.h>
3593 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596 *) ac_try_echo=$ac_try;;
3598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3599 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3601 grep -v '^ *+' conftest.er1 >conftest.err
3603 cat conftest.err >&5
3604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3605 (exit $ac_status); } >/dev/null; then
3606 if test -s conftest.err; then
3607 ac_cpp_err=$ac_c_preproc_warn_flag
3608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3615 if test -z "$ac_cpp_err"; then
3616 # Broken: success on invalid input.
3619 echo "$as_me: failed program was
:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3622 # Passes both tests.
3627 rm -f conftest.err conftest.$ac_ext
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.$ac_ext
3632 if $ac_preproc_ok; then
3635 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3636 See \
`config.log' for more details." >&5
3637 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log
' for more details." >&2;}
3639 { (exit 1); exit 1; }; }
3643 ac_cpp='$CPP $CPPFLAGS'
3644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3645 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3649 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3650 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3651 if test "${ac_cv_path_GREP+set}" = set; then
3652 echo $ECHO_N "(cached) $ECHO_C" >&6
3654 # Extract the first word of "grep ggrep" to use in msg output
3655 if test -z "$GREP"; then
3656 set dummy grep ggrep; ac_prog_name=$2
3657 if test "${ac_cv_path_GREP+set}" = set; then
3658 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 ac_path_GREP_found=false
3661 # Loop through the user's path and
test for each of PROGNAME-LIST
3662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3663 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3666 test -z "$as_dir" && as_dir
=.
3667 for ac_prog
in grep ggrep
; do
3668 for ac_exec_ext
in '' $ac_executable_extensions; do
3669 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3670 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3671 # Check for GNU ac_path_GREP and select it if it is found.
3672 # Check for GNU $ac_path_GREP
3673 case `"$ac_path_GREP" --version 2>&1` in
3675 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3678 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3681 cat "conftest.in" "conftest.in" >"conftest.tmp"
3682 mv "conftest.tmp" "conftest.in"
3683 cp "conftest.in" "conftest.nl"
3684 echo 'GREP' >> "conftest.nl"
3685 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3686 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3687 ac_count
=`expr $ac_count + 1`
3688 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3689 # Best one so far, save it but keep looking for a better one
3690 ac_cv_path_GREP
="$ac_path_GREP"
3691 ac_path_GREP_max
=$ac_count
3693 # 10*(2^10) chars as input seems more than enough
3694 test $ac_count -gt 10 && break
3696 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3700 $ac_path_GREP_found && break 3
3710 GREP
="$ac_cv_path_GREP"
3711 if test -z "$GREP"; then
3712 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3713 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3714 { (exit 1); exit 1; }; }
3718 ac_cv_path_GREP
=$GREP
3723 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3724 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3725 GREP
="$ac_cv_path_GREP"
3728 { echo "$as_me:$LINENO: checking for egrep" >&5
3729 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3730 if test "${ac_cv_path_EGREP+set}" = set; then
3731 echo $ECHO_N "(cached) $ECHO_C" >&6
3733 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3734 then ac_cv_path_EGREP
="$GREP -E"
3736 # Extract the first word of "egrep" to use in msg output
3737 if test -z "$EGREP"; then
3738 set dummy
egrep; ac_prog_name
=$2
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3742 ac_path_EGREP_found
=false
3743 # Loop through the user's path and test for each of PROGNAME-LIST
3744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3745 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3748 test -z "$as_dir" && as_dir
=.
3749 for ac_prog
in egrep; do
3750 for ac_exec_ext
in '' $ac_executable_extensions; do
3751 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3752 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3753 # Check for GNU ac_path_EGREP and select it if it is found.
3754 # Check for GNU $ac_path_EGREP
3755 case `"$ac_path_EGREP" --version 2>&1` in
3757 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3760 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3763 cat "conftest.in" "conftest.in" >"conftest.tmp"
3764 mv "conftest.tmp" "conftest.in"
3765 cp "conftest.in" "conftest.nl"
3766 echo 'EGREP' >> "conftest.nl"
3767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3768 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3769 ac_count
=`expr $ac_count + 1`
3770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3771 # Best one so far, save it but keep looking for a better one
3772 ac_cv_path_EGREP
="$ac_path_EGREP"
3773 ac_path_EGREP_max
=$ac_count
3775 # 10*(2^10) chars as input seems more than enough
3776 test $ac_count -gt 10 && break
3778 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3782 $ac_path_EGREP_found && break 3
3792 EGREP
="$ac_cv_path_EGREP"
3793 if test -z "$EGREP"; then
3794 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3795 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3796 { (exit 1); exit 1; }; }
3800 ac_cv_path_EGREP
=$EGREP
3806 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3807 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3808 EGREP
="$ac_cv_path_EGREP"
3811 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3812 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3813 if test "${ac_cv_header_stdc+set}" = set; then
3814 echo $ECHO_N "(cached) $ECHO_C" >&6
3816 cat >conftest.
$ac_ext <<_ACEOF
3819 cat confdefs.h
>>conftest.
$ac_ext
3820 cat >>conftest.
$ac_ext <<_ACEOF
3821 /* end confdefs.h. */
3835 rm -f conftest.
$ac_objext
3836 if { (ac_try
="$ac_compile"
3838 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842 (eval "$ac_compile") 2>conftest.er1
3844 grep -v '^ *+' conftest.er1 >conftest.err
3846 cat conftest.err >&5
3847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848 (exit $ac_status); } &&
3849 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3850 { (case "(($ac_try" in
3851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3852 *) ac_try_echo
=$ac_try;;
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855 (eval "$ac_try") 2>&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); }; } &&
3859 { ac_try
='test -s conftest.$ac_objext'
3860 { (case "(($ac_try" in
3861 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865 (eval "$ac_try") 2>&5
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; }; then
3869 ac_cv_header_stdc=yes
3871 echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3874 ac_cv_header_stdc=no
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3879 if test $ac_cv_header_stdc = yes; then
3880 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3881 cat >conftest.$ac_ext <<_ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h. */
3890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891 $EGREP "memchr" >/dev/null 2>&1; then
3894 ac_cv_header_stdc=no
3900 if test $ac_cv_header_stdc = yes; then
3901 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3902 cat >conftest.$ac_ext <<_ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912 $EGREP "free" >/dev/null 2>&1; then
3915 ac_cv_header_stdc=no
3921 if test $ac_cv_header_stdc = yes; then
3922 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3923 if test "$cross_compiling" = yes; then
3926 cat >conftest.$ac_ext <<_ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h. */
3934 #if ((' ' & 0x0FF) == 0x020)
3935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3938 # define ISLOWER(c) \
3939 (('a' <= (c) && (c) <= 'i') \
3940 || ('j' <= (c) && (c) <= 'r') \
3941 || ('s' <= (c) && (c) <= 'z'))
3942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3950 for (i = 0; i < 256; i++)
3951 if (XOR (islower (i), ISLOWER (i))
3952 || toupper (i) != TOUPPER (i))
3957 rm -f conftest$ac_exeext
3958 if { (ac_try="$ac_link"
3960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3961 *) ac_try_echo
=$ac_try;;
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_link") 2>&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3968 { (case "(($ac_try" in
3969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973 (eval "$ac_try") 2>&5
3975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976 (exit $ac_status); }; }; then
3979 echo "$as_me: program exited with status $ac_status" >&5
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3984 ac_cv_header_stdc=no
3986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3992 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3993 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3994 if test $ac_cv_header_stdc = yes; then
3996 cat >>confdefs.h <<\_ACEOF
3997 #define STDC_HEADERS 1
4002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013 inttypes.h stdint.h unistd.h
4015 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4019 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 cat >conftest.$ac_ext <<_ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h. */
4027 $ac_includes_default
4029 #include <$ac_header>
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4035 *) ac_try_echo
=$ac_try;;
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038 (eval "$ac_compile") 2>conftest.er1
4040 grep -v '^ *+' conftest.er1
>conftest.err
4042 cat conftest.err
>&5
4043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044 (exit $ac_status); } &&
4045 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046 { (case "(($ac_try" in
4047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4048 *) ac_try_echo=$ac_try;;
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051 (eval "$ac_try") 2>&5
4053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054 (exit $ac_status); }; } &&
4055 { ac_try='test -s conftest.$ac_objext'
4056 { (case "(($ac_try" in
4057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4058 *) ac_try_echo
=$ac_try;;
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061 (eval "$ac_try") 2>&5
4063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064 (exit $ac_status); }; }; then
4065 eval "$as_ac_Header=yes"
4067 echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.
$ac_ext >&5
4070 eval "$as_ac_Header=no"
4073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4075 ac_res
=`eval echo '${'$as_ac_Header'}'`
4076 { echo "$as_me:$LINENO: result: $ac_res" >&5
4077 echo "${ECHO_T}$ac_res" >&6; }
4078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4079 cat >>confdefs.h
<<_ACEOF
4080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4088 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4089 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4090 if test "${ac_cv_c_bigendian+set}" = set; then
4091 echo $ECHO_N "(cached) $ECHO_C" >&6
4093 # See if sys/param.h defines the BYTE_ORDER macro.
4094 cat >conftest.
$ac_ext <<_ACEOF
4097 cat confdefs.h
>>conftest.
$ac_ext
4098 cat >>conftest.
$ac_ext <<_ACEOF
4099 /* end confdefs.h. */
4100 #include <sys/types.h>
4101 #include <sys/param.h>
4106 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4114 rm -f conftest.
$ac_objext
4115 if { (ac_try
="$ac_compile"
4117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4118 *) ac_try_echo=$ac_try;;
4120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121 (eval "$ac_compile") 2>conftest.er1
4123 grep -v '^ *+' conftest.er1 >conftest.err
4125 cat conftest.err >&5
4126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127 (exit $ac_status); } &&
4128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129 { (case "(($ac_try" in
4130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4131 *) ac_try_echo
=$ac_try;;
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134 (eval "$ac_try") 2>&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; } &&
4138 { ac_try
='test -s conftest.$ac_objext'
4139 { (case "(($ac_try" in
4140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4141 *) ac_try_echo=$ac_try;;
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144 (eval "$ac_try") 2>&5
4146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147 (exit $ac_status); }; }; then
4148 # It does; now see whether it defined to BIG_ENDIAN or not.
4149 cat >conftest.$ac_ext <<_ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h. */
4155 #include <sys/types.h>
4156 #include <sys/param.h>
4161 #if BYTE_ORDER != BIG_ENDIAN
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4173 *) ac_try_echo
=$ac_try;;
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176 (eval "$ac_compile") 2>conftest.er1
4178 grep -v '^ *+' conftest.er1
>conftest.err
4180 cat conftest.err
>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); } &&
4183 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4184 { (case "(($ac_try" in
4185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4186 *) ac_try_echo=$ac_try;;
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189 (eval "$ac_try") 2>&5
4191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192 (exit $ac_status); }; } &&
4193 { ac_try='test -s conftest.$ac_objext'
4194 { (case "(($ac_try" in
4195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4196 *) ac_try_echo
=$ac_try;;
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199 (eval "$ac_try") 2>&5
4201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202 (exit $ac_status); }; }; then
4203 ac_cv_c_bigendian
=yes
4205 echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.
$ac_ext >&5
4208 ac_cv_c_bigendian
=no
4211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4213 echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.
$ac_ext >&5
4216 # It does not; compile a test program.
4217 if test "$cross_compiling" = yes; then
4218 # try to guess the endianness by grepping values into an object file
4219 ac_cv_c_bigendian
=unknown
4220 cat >conftest.
$ac_ext <<_ACEOF
4223 cat confdefs.h
>>conftest.
$ac_ext
4224 cat >>conftest.
$ac_ext <<_ACEOF
4225 /* end confdefs.h. */
4226 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4227 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4228 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4229 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4230 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4231 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4235 _ascii (); _ebcdic ();
4240 rm -f conftest.
$ac_objext
4241 if { (ac_try
="$ac_compile"
4243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4244 *) ac_try_echo=$ac_try;;
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247 (eval "$ac_compile") 2>conftest.er1
4249 grep -v '^ *+' conftest.er1 >conftest.err
4251 cat conftest.err >&5
4252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253 (exit $ac_status); } &&
4254 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4255 { (case "(($ac_try" in
4256 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4257 *) ac_try_echo
=$ac_try;;
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260 (eval "$ac_try") 2>&5
4262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263 (exit $ac_status); }; } &&
4264 { ac_try
='test -s conftest.$ac_objext'
4265 { (case "(($ac_try" in
4266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4267 *) ac_try_echo=$ac_try;;
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270 (eval "$ac_try") 2>&5
4272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273 (exit $ac_status); }; }; then
4274 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4275 ac_cv_c_bigendian=yes
4277 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4278 if test "$ac_cv_c_bigendian" = unknown; then
4279 ac_cv_c_bigendian=no
4281 # finding both strings is unlikely to happen, but who knows?
4282 ac_cv_c_bigendian=unknown
4286 echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4294 cat >conftest.$ac_ext <<_ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h. */
4300 $ac_includes_default
4305 /* Are we little or big endian? From Harbison&Steele. */
4309 char c[sizeof (long int)];
4312 return u.c[sizeof (long int) - 1] == 1;
4318 rm -f conftest$ac_exeext
4319 if { (ac_try="$ac_link"
4321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4322 *) ac_try_echo
=$ac_try;;
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325 (eval "$ac_link") 2>&5
4327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4329 { (case "(($ac_try" in
4330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_try") 2>&5
4336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337 (exit $ac_status); }; }; then
4338 ac_cv_c_bigendian=no
4340 echo "$as_me: program exited with status $ac_status" >&5
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4345 ac_cv_c_bigendian=yes
4347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4355 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4356 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4357 case $ac_cv_c_bigendian in
4365 { { echo "$as_me:$LINENO: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4367 echo "$as_me: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4369 { (exit 1); exit 1; }; } ;;
4373 if test "$cross_compiling" = yes; then
4374 LLVM_CROSS_COMPILING=1
4377 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4378 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4379 if test "${ac_cv_build_exeext+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4383 ac_cv_build_exeext=.exe
4385 ac_build_prefix=${build_alias}-
4387 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4388 set dummy ${ac_build_prefix}gcc; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 if test -n "$BUILD_CC"; then
4395 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 BUILD_CC=$ac_cv_prog_BUILD_CC
4415 if test -n "$BUILD_CC"; then
4416 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4417 echo "${ECHO_T}$BUILD_CC" >&6; }
4419 { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4424 if test -z "$BUILD_CC"; then
4425 # Extract the first word of "gcc", so it can be a program name with args.
4426 set dummy gcc; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$BUILD_CC"; then
4433 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4439 test -z "$as_dir" && as_dir=.
4440 for ac_exec_ext in '' $ac_executable_extensions; do
4441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442 ac_cv_prog_BUILD_CC="gcc"
4443 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 BUILD_CC=$ac_cv_prog_BUILD_CC
4453 if test -n "$BUILD_CC"; then
4454 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4455 echo "${ECHO_T}$BUILD_CC" >&6; }
4457 { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4462 if test -z "$BUILD_CC"; then
4463 # Extract the first word of "cc", so it can be a program name with args.
4464 set dummy cc; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4468 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 if test -n "$BUILD_CC"; then
4471 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4481 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4482 ac_prog_rejected=yes
4485 ac_cv_prog_BUILD_CC="cc"
4486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4493 if test $ac_prog_rejected = yes; then
4494 # We found a bogon in the path, so make sure we never use it.
4495 set dummy $ac_cv_prog_BUILD_CC
4497 if test $# != 0; then
4498 # We chose a different compiler from the bogus one.
4499 # However, it has the same basename, so the bogon will be chosen
4500 # first if we set BUILD_CC to just the basename; use the full file name.
4502 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4507 BUILD_CC=$ac_cv_prog_BUILD_CC
4508 if test -n "$BUILD_CC"; then
4509 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4510 echo "${ECHO_T}$BUILD_CC" >&6; }
4512 { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4519 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4520 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4521 { (exit 1); exit 1; }; }
4522 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4524 echo 'int main () { return 0; }' > conftest.$ac_ext
4526 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4527 (eval $ac_build_link) 2>&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); }; then
4531 for file in conftest.*; do
4533 *.c | *.o | *.obj | *.dSYM) ;;
4534 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4538 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4539 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4540 { (exit 1); exit 1; }; }
4543 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4548 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4549 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4550 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4551 ac_build_exeext=$BUILD_EXEEXT
4553 ac_build_prefix=${build_alias}-
4554 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4555 set dummy ${ac_build_prefix}g++; ac_word=$2
4556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 if test -n "$BUILD_CXX"; then
4562 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4582 if test -n "$BUILD_CXX"; then
4583 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4584 echo "${ECHO_T}$BUILD_CXX" >&6; }
4586 { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4591 if test -z "$BUILD_CXX"; then
4592 # Extract the first word of "g++", so it can be a program name with args.
4593 set dummy g++; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 if test -n "$BUILD_CXX"; then
4600 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4606 test -z "$as_dir" && as_dir=.
4607 for ac_exec_ext in '' $ac_executable_extensions; do
4608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4609 ac_cv_prog_BUILD_CXX="g++"
4610 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4619 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4620 if test -n "$BUILD_CXX"; then
4621 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4622 echo "${ECHO_T}$BUILD_CXX" >&6; }
4624 { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4629 if test -z "$BUILD_CXX"; then
4630 # Extract the first word of "c++", so it can be a program name with args.
4631 set dummy c++; ac_word=$2
4632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4635 echo $ECHO_N "(cached) $ECHO_C" >&6
4637 if test -n "$BUILD_CXX"; then
4638 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir=.
4646 for ac_exec_ext in '' $ac_executable_extensions; do
4647 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4648 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4649 ac_prog_rejected=yes
4652 ac_cv_prog_BUILD_CXX="c++"
4653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4660 if test $ac_prog_rejected = yes; then
4661 # We found a bogon in the path, so make sure we never use it.
4662 set dummy $ac_cv_prog_BUILD_CXX
4664 if test $# != 0; then
4665 # We chose a different compiler from the bogus one.
4666 # However, it has the same basename, so the bogon will be chosen
4667 # first if we set BUILD_CXX to just the basename; use the full file name.
4669 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4674 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4675 if test -n "$BUILD_CXX"; then
4676 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4677 echo "${ECHO_T}$BUILD_CXX" >&6; }
4679 { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4687 LLVM_CROSS_COMPILING=0
4691 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4702 # Check whether --enable-optimized was given.
4703 if test "${enable_optimized+set}" = set; then
4704 enableval=$enable_optimized;
4709 if test ${enableval} = "no" ; then
4713 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4717 # Check whether --enable-profiling was given.
4718 if test "${enable_profiling+set}" = set; then
4719 enableval=$enable_profiling;
4724 if test ${enableval} = "no" ; then
4728 ENABLE_PROFILING=ENABLE_PROFILING=1
4732 # Check whether --enable-assertions was given.
4733 if test "${enable_assertions+set}" = set; then
4734 enableval=$enable_assertions;
4739 if test ${enableval} = "yes" ; then
4743 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4747 # Check whether --enable-expensive-checks was given.
4748 if test "${enable_expensive_checks+set}" = set; then
4749 enableval=$enable_expensive_checks;
4754 if test ${enableval} = "yes" ; then
4755 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4757 EXPENSIVE_CHECKS=yes
4760 ENABLE_EXPENSIVE_CHECKS=
4766 # Check whether --enable-debug-runtime was given.
4767 if test "${enable_debug_runtime+set}" = set; then
4768 enableval=$enable_debug_runtime;
4773 if test ${enableval} = "no" ; then
4777 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4781 # Check whether --enable-debug-symbols was given.
4782 if test "${enable_debug_symbols+set}" = set; then
4783 enableval=$enable_debug_symbols;
4788 if test ${enableval} = "no" ; then
4792 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4796 # Check whether --enable-jit was given.
4797 if test "${enable_jit+set}" = set; then
4798 enableval=$enable_jit;
4803 if test ${enableval} = "no"
4808 case "$llvm_cv_target_arch" in
4809 x86) TARGET_HAS_JIT=1
4811 Sparc) TARGET_HAS_JIT=0
4813 PowerPC) TARGET_HAS_JIT=1
4815 x86_64) TARGET_HAS_JIT=1
4817 Alpha) TARGET_HAS_JIT=1
4819 ARM) TARGET_HAS_JIT=1
4821 Mips) TARGET_HAS_JIT=0
4823 XCore) TARGET_HAS_JIT=0
4825 MSP430) TARGET_HAS_JIT=0
4827 SystemZ) TARGET_HAS_JIT=0
4829 Blackfin) TARGET_HAS_JIT=0
4831 MBlaze) TARGET_HAS_JIT=0
4833 PTX) TARGET_HAS_JIT=0
4840 # Check whether --enable-doxygen was given.
4841 if test "${enable_doxygen+set}" = set; then
4842 enableval=$enable_doxygen;
4847 case "$enableval" in
4848 yes) ENABLE_DOXYGEN=1
4850 no) ENABLE_DOXYGEN=0
4852 default) ENABLE_DOXYGEN=0
4854 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4855 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4856 { (exit 1); exit 1; }; } ;;
4859 # Check whether --enable-threads was given.
4860 if test "${enable_threads+set}" = set; then
4861 enableval=$enable_threads;
4866 case "$enableval" in
4867 yes) ENABLE_THREADS=1
4869 no) ENABLE_THREADS=0
4871 default) ENABLE_THREADS=1
4873 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4875 { (exit 1); exit 1; }; } ;;
4878 cat >>confdefs.h <<_ACEOF
4879 #define ENABLE_THREADS $ENABLE_THREADS
4883 # Check whether --enable-pic was given.
4884 if test "${enable_pic+set}" = set; then
4885 enableval=$enable_pic;
4890 case "$enableval" in
4895 default) ENABLE_PIC=1
4897 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4899 { (exit 1); exit 1; }; } ;;
4902 cat >>confdefs.h <<_ACEOF
4903 #define ENABLE_PIC $ENABLE_PIC
4907 # Check whether --enable-shared was given.
4908 if test "${enable_shared+set}" = set; then
4909 enableval=$enable_shared;
4914 case "$enableval" in
4915 yes) ENABLE_SHARED=1
4919 default) ENABLE_SHARED=0
4921 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4922 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4923 { (exit 1); exit 1; }; } ;;
4926 # Check whether --enable-timestamps was given.
4927 if test "${enable_timestamps+set}" = set; then
4928 enableval=$enable_timestamps;
4933 case "$enableval" in
4934 yes) ENABLE_TIMESTAMPS=1
4936 no) ENABLE_TIMESTAMPS=0
4938 default) ENABLE_TIMESTAMPS=1
4940 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4941 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4942 { (exit 1); exit 1; }; } ;;
4945 cat >>confdefs.h <<_ACEOF
4946 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4951 # Check whether --enable-targets was given.
4952 if test "${enable_targets+set}" = set; then
4953 enableval=$enable_targets;
4958 if test "$enableval" = host-only ; then
4961 case "$enableval" in
4962 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4963 *)for a_target in `echo $enableval|
sed -e 's/,/ /g' ` ; do
4965 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4967 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4968 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4969 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4970 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4971 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4972 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4973 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4974 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4975 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4976 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4977 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4978 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4979 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4980 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4981 host) case "$llvm_cv_target_arch" in
4982 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4983 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4985 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4986 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4987 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4988 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4989 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4990 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4991 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4992 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4993 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4994 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4995 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4996 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4997 echo "$as_me: error: Can not set target to build" >&2;}
4998 { (exit 1); exit 1; }; } ;;
5000 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5001 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5002 { (exit 1); exit 1; }; } ;;
5007 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5010 # Determine whether we are building LLVM support for the native architecture.
5011 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5012 for a_target in $TARGETS_TO_BUILD; do
5013 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5015 cat >>confdefs.h <<_ACEOF
5016 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5019 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5020 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5021 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5023 cat >>confdefs.h <<_ACEOF
5024 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5028 cat >>confdefs.h <<_ACEOF
5029 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5033 cat >>confdefs.h <<_ACEOF
5034 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5040 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5041 # target feature def files.
5042 LLVM_ENUM_TARGETS=""
5043 LLVM_ENUM_ASM_PRINTERS=""
5044 LLVM_ENUM_ASM_PARSERS=""
5045 LLVM_ENUM_DISASSEMBLERS=""
5046 for target_to_build in $TARGETS_TO_BUILD; do
5047 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5048 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5049 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5051 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5052 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5053 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5055 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5056 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5058 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5059 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5067 # Check whether --enable-cbe-printf-a was given.
5068 if test "${enable_cbe_printf_a+set}" = set; then
5069 enableval=$enable_cbe_printf_a;
5074 case "$enableval" in
5075 yes) ENABLE_CBE_PRINTF_A=1
5077 no) ENABLE_CBE_PRINTF_A=0
5079 default) ENABLE_CBE_PRINTF_A=1
5081 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5082 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5083 { (exit 1); exit 1; }; } ;;
5086 cat >>confdefs.h <<_ACEOF
5087 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5092 # Check whether --with-llvmgccdir was given.
5093 if test "${with_llvmgccdir+set}" = set; then
5094 withval=$with_llvmgccdir;
5100 default) WITH_LLVMGCCDIR=default ;;
5101 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5102 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5103 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5104 { (exit 1); exit 1; }; } ;;
5108 # Check whether --with-llvmgcc was given.
5109 if test "${with_llvmgcc+set}" = set; then
5110 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5116 # Check whether --with-llvmgxx was given.
5117 if test "${with_llvmgxx+set}" = set; then
5118 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5123 if test -n "$LLVMGCC"; then
5124 LLVMGCCCOMMAND="$LLVMGCC"
5127 if test -n "$LLVMGXX"; then
5128 LLVMGXXCOMMAND="$LLVMGXX"
5131 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5132 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5133 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5134 { (exit 1); exit 1; }; };
5137 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5138 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5139 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5140 { (exit 1); exit 1; }; };
5144 # Check whether --with-clang was given.
5145 if test "${with_clang+set}" = set; then
5146 withval=$with_clang;
5153 # Check whether --with-built-clang was given.
5154 if test "${with_built_clang+set}" = set; then
5155 withval=$with_built_clang;
5157 with_built_clang=check
5161 { echo "$as_me:$LINENO: checking clang compiler" >&5
5162 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5165 if test "$with_clang" != "default"; then
5166 WITH_CLANGPATH="$with_clang"
5167 if ! test -x "$WITH_CLANGPATH"; then
5168 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5169 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5170 { (exit 1); exit 1; }; }
5172 elif test "$with_built_clang" = "yes"; then
5174 elif test "$with_built_clang" = "no"; then
5177 if test "$with_built_clang" != "check"; then
5178 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5179 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5180 { (exit 1); exit 1; }; }
5183 if test -f ${srcdir}/tools/clang/README.txt; then
5188 if ! test -z "$WITH_CLANGPATH"; then
5189 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5190 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5191 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang
++`
5192 elif test "$WITH_BUILT_CLANG" = "1"; then
5193 { echo "$as_me:$LINENO: result: built" >&5
5194 echo "${ECHO_T}built" >&6; }
5196 { echo "$as_me:$LINENO: result: none" >&5
5197 echo "${ECHO_T}none" >&6; }
5199 CLANGPATH=$WITH_CLANGPATH
5201 CLANGXXPATH=$WITH_CLANGXXPATH
5203 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5207 # Check whether --with-optimize-option was given.
5208 if test "${with_optimize_option+set}" = set; then
5209 withval=$with_optimize_option;
5214 { echo "$as_me:$LINENO: checking optimization flags" >&5
5215 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5218 case "$llvm_cv_os_type" in
5219 FreeBSD) optimize_option=-O2 ;;
5220 MingW) optimize_option=-O2 ;;
5221 *) optimize_option=-O3 ;;
5223 *) optimize_option="$withval" ;;
5225 OPTIMIZE_OPTION=$optimize_option
5227 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5228 echo "${ECHO_T}$optimize_option" >&6; }
5231 # Check whether --with-extra-options was given.
5232 if test "${with_extra_options+set}" = set; then
5233 withval=$with_extra_options;
5239 default) EXTRA_OPTIONS= ;;
5240 *) EXTRA_OPTIONS=$withval ;;
5242 EXTRA_OPTIONS=$EXTRA_OPTIONS
5245 # Check whether --enable-bindings was given.
5246 if test "${enable_bindings+set}" = set; then
5247 enableval=$enable_bindings;
5252 BINDINGS_TO_BUILD=""
5253 case "$enableval" in
5254 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5255 all ) BINDINGS_TO_BUILD="ocaml" ;;
5256 none | no) BINDINGS_TO_BUILD="" ;;
5257 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5258 case "$a_binding" in
5259 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5260 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5261 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5262 { (exit 1); exit 1; }; } ;;
5269 # Check whether --with-ocaml-libdir was given.
5270 if test "${with_ocaml_libdir+set}" = set; then
5271 withval=$with_ocaml_libdir;
5277 auto) with_ocaml_libdir="$withval" ;;
5278 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5279 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5280 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5281 { (exit 1); exit 1; }; } ;;
5285 # Check whether --with-clang-resource-dir was given.
5286 if test "${with_clang_resource_dir+set}" = set; then
5287 withval=$with_clang_resource_dir;
5293 cat >>confdefs.h <<_ACEOF
5294 #define CLANG_RESOURCE_DIR "$withval"
5299 # Check whether --with-c-include-dirs was given.
5300 if test "${with_c_include_dirs+set}" = set; then
5301 withval=$with_c_include_dirs;
5307 cat >>confdefs.h <<_ACEOF
5308 #define C_INCLUDE_DIRS "$withval"
5313 # Check whether --with-cxx-include-root was given.
5314 if test "${with_cxx_include_root+set}" = set; then
5315 withval=$with_cxx_include_root;
5321 cat >>confdefs.h <<_ACEOF
5322 #define CXX_INCLUDE_ROOT "$withval"
5327 # Check whether --with-cxx-include-arch was given.
5328 if test "${with_cxx_include_arch+set}" = set; then
5329 withval=$with_cxx_include_arch;
5335 cat >>confdefs.h <<_ACEOF
5336 #define CXX_INCLUDE_ARCH "$withval"
5341 # Check whether --with-cxx-include-32bit-dir was given.
5342 if test "${with_cxx_include_32bit_dir+set}" = set; then
5343 withval=$with_cxx_include_32bit_dir;
5349 cat >>confdefs.h <<_ACEOF
5350 #define CXX_INCLUDE_32BIT_DIR "$withval"
5355 # Check whether --with-cxx-include-64bit-dir was given.
5356 if test "${with_cxx_include_64bit_dir+set}" = set; then
5357 withval=$with_cxx_include_64bit_dir;
5363 cat >>confdefs.h <<_ACEOF
5364 #define CXX_INCLUDE_64BIT_DIR "$withval"
5369 # Check whether --with-binutils-include was given.
5370 if test "${with_binutils_include+set}" = set; then
5371 withval=$with_binutils_include;
5377 default) WITH_BINUTILS_INCDIR=default ;;
5378 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5379 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5380 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5381 { (exit 1); exit 1; }; } ;;
5383 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5384 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5386 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5387 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5388 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5389 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5390 { (exit 1); exit 1; }; };
5394 # Check whether --enable-libffi was given.
5395 if test "${enable_libffi+set}" = set; then
5396 enableval=$enable_libffi; case "$enableval" in
5397 yes) llvm_cv_enable_libffi="yes" ;;
5398 no) llvm_cv_enable_libffi="no" ;;
5399 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5400 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5401 { (exit 1); exit 1; }; } ;;
5404 llvm_cv_enable_libffi=no
5410 ac_cpp='$CPP $CPPFLAGS'
5411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5415 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5416 # On Suns, sometimes $CPP names a directory.
5417 if test -n "$CPP" && test -d "$CPP"; then
5420 if test -z "$CPP"; then
5421 if test "${ac_cv_prog_CPP+set}" = set; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5424 # Double quotes because CPP needs to be expanded
5425 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5428 for ac_c_preproc_warn_flag in '' yes
5430 # Use a header file that comes with gcc, so configuring glibc
5431 # with a fresh cross-compiler works.
5432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5433 # <limits.h> exists even on freestanding compilers.
5434 # On the NeXT, cc -E runs the code through the compiler's parser,
5435 # not just through cpp. "Syntax error" is here to catch this case.
5436 cat >conftest.$ac_ext <<_ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5443 # include <limits.h>
5445 # include <assert.h>
5449 if { (ac_try="$ac_cpp conftest.$ac_ext"
5451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5452 *) ac_try_echo
=$ac_try;;
5454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5457 grep -v '^ *+' conftest.er1
>conftest.err
5459 cat conftest.err
>&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); } >/dev
/null
; then
5462 if test -s conftest.err
; then
5463 ac_cpp_err
=$ac_c_preproc_warn_flag
5464 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5471 if test -z "$ac_cpp_err"; then
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.
$ac_ext >&5
5477 # Broken: fails on valid input.
5481 rm -f conftest.err conftest.
$ac_ext
5483 # OK, works on sane cases. Now check whether nonexistent headers
5484 # can be detected and how.
5485 cat >conftest.
$ac_ext <<_ACEOF
5488 cat confdefs.h
>>conftest.
$ac_ext
5489 cat >>conftest.
$ac_ext <<_ACEOF
5490 /* end confdefs.h. */
5491 #include <ac_nonexistent.h>
5493 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5495 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5496 *) ac_try_echo=$ac_try;;
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5501 grep -v '^ *+' conftest.er1 >conftest.err
5503 cat conftest.err >&5
5504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505 (exit $ac_status); } >/dev/null; then
5506 if test -s conftest.err; then
5507 ac_cpp_err=$ac_c_preproc_warn_flag
5508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5515 if test -z "$ac_cpp_err"; then
5516 # Broken: success on invalid input.
5519 echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5522 # Passes both tests.
5527 rm -f conftest.err conftest.$ac_ext
5530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5531 rm -f conftest.err conftest.
$ac_ext
5532 if $ac_preproc_ok; then
5544 { echo "$as_me:$LINENO: result: $CPP" >&5
5545 echo "${ECHO_T}$CPP" >&6; }
5547 for ac_c_preproc_warn_flag
in '' yes
5549 # Use a header file that comes with gcc, so configuring glibc
5550 # with a fresh cross-compiler works.
5551 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5552 # <limits.h> exists even on freestanding compilers.
5553 # On the NeXT, cc -E runs the code through the compiler's parser,
5554 # not just through cpp. "Syntax error" is here to catch this case.
5555 cat >conftest.
$ac_ext <<_ACEOF
5558 cat confdefs.h
>>conftest.
$ac_ext
5559 cat >>conftest.
$ac_ext <<_ACEOF
5560 /* end confdefs.h. */
5562 # include <limits.h>
5564 # include <assert.h>
5568 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5571 *) ac_try_echo=$ac_try;;
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5576 grep -v '^ *+' conftest.er1 >conftest.err
5578 cat conftest.err >&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); } >/dev/null; then
5581 if test -s conftest.err; then
5582 ac_cpp_err=$ac_c_preproc_warn_flag
5583 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5590 if test -z "$ac_cpp_err"; then
5593 echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5596 # Broken: fails on valid input.
5600 rm -f conftest.err conftest.$ac_ext
5602 # OK, works on sane cases. Now check whether nonexistent headers
5603 # can be detected and how.
5604 cat >conftest.$ac_ext <<_ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 #include <ac_nonexistent.h>
5612 if { (ac_try="$ac_cpp conftest.$ac_ext"
5614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5615 *) ac_try_echo
=$ac_try;;
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5620 grep -v '^ *+' conftest.er1
>conftest.err
5622 cat conftest.err
>&5
5623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624 (exit $ac_status); } >/dev
/null
; then
5625 if test -s conftest.err
; then
5626 ac_cpp_err
=$ac_c_preproc_warn_flag
5627 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5634 if test -z "$ac_cpp_err"; then
5635 # Broken: success on invalid input.
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.
$ac_ext >&5
5641 # Passes both tests.
5646 rm -f conftest.err conftest.
$ac_ext
5649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5650 rm -f conftest.err conftest.
$ac_ext
5651 if $ac_preproc_ok; then
5654 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5655 See \`config.log' for more details." >&5
5656 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5657 See \`config.log' for more details." >&2;}
5658 { (exit 1); exit 1; }; }
5662 ac_cpp
='$CPP $CPPFLAGS'
5663 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5668 ac_cpp
='$CPP $CPPFLAGS'
5669 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5672 if test -n "$ac_tool_prefix"; then
5675 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5676 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5679 if test "${ac_cv_prog_CC+set}" = set; then
5680 echo $ECHO_N "(cached) $ECHO_C" >&6
5682 if test -n "$CC"; then
5683 ac_cv_prog_CC
="$CC" # Let the user override the test.
5685 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5689 test -z "$as_dir" && as_dir
=.
5690 for ac_exec_ext
in '' $ac_executable_extensions; do
5691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5692 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5703 if test -n "$CC"; then
5704 { echo "$as_me:$LINENO: result: $CC" >&5
5705 echo "${ECHO_T}$CC" >&6; }
5707 { echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6; }
5712 test -n "$CC" && break
5715 if test -z "$CC"; then
5719 # Extract the first word of "$ac_prog", so it can be a program name with args.
5720 set dummy
$ac_prog; ac_word
=$2
5721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5724 echo $ECHO_N "(cached) $ECHO_C" >&6
5726 if test -n "$ac_ct_CC"; then
5727 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5733 test -z "$as_dir" && as_dir
=.
5734 for ac_exec_ext
in '' $ac_executable_extensions; do
5735 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5736 ac_cv_prog_ac_ct_CC
="$ac_prog"
5737 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5746 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5747 if test -n "$ac_ct_CC"; then
5748 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5749 echo "${ECHO_T}$ac_ct_CC" >&6; }
5751 { echo "$as_me:$LINENO: result: no" >&5
5752 echo "${ECHO_T}no" >&6; }
5756 test -n "$ac_ct_CC" && break
5759 if test "x$ac_ct_CC" = x
; then
5762 case $cross_compiling:$ac_tool_warned in
5764 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5765 whose name does not start with the host triplet. If you think this
5766 configuration is useful to you, please write to autoconf@gnu.org." >&5
5767 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5768 whose name does not start with the host triplet. If you think this
5769 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5770 ac_tool_warned
=yes ;;
5777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5778 See \`config.log' for more details." >&5
5779 echo "$as_me: error: no acceptable C compiler found in \$PATH
5780 See \`config.log' for more details." >&2;}
5781 { (exit 1); exit 1; }; }
5783 # Provide some information about the compiler.
5784 echo "$as_me:$LINENO: checking for C compiler version" >&5
5785 ac_compiler
=`set X $ac_compile; echo $2`
5786 { (ac_try
="$ac_compiler --version >&5"
5788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5789 *) ac_try_echo=$ac_try;;
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792 (eval "$ac_compiler --version >&5") 2>&5
5794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795 (exit $ac_status); }
5796 { (ac_try="$ac_compiler -v >&5"
5798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5799 *) ac_try_echo
=$ac_try;;
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_compiler -v >&5") 2>&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); }
5806 { (ac_try
="$ac_compiler -V >&5"
5808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_compiler -V >&5") 2>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); }
5817 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5818 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5819 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5820 echo $ECHO_N "(cached) $ECHO_C" >&6
5822 cat >conftest.$ac_ext <<_ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h. */
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5844 *) ac_try_echo
=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5849 grep -v '^ *+' conftest.er1
>conftest.err
5851 cat conftest.err
>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } &&
5854 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5855 { (case "(($ac_try" in
5856 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5857 *) ac_try_echo=$ac_try;;
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860 (eval "$ac_try") 2>&5
5862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863 (exit $ac_status); }; } &&
5864 { ac_try='test -s conftest.$ac_objext'
5865 { (case "(($ac_try" in
5866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5867 *) ac_try_echo
=$ac_try;;
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870 (eval "$ac_try") 2>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; }; then
5876 echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.
$ac_ext >&5
5882 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5883 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5886 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5887 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5888 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5889 ac_test_CFLAGS
=${CFLAGS+set}
5890 ac_save_CFLAGS
=$CFLAGS
5891 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5892 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5893 if test "${ac_cv_prog_cc_g+set}" = set; then
5894 echo $ECHO_N "(cached) $ECHO_C" >&6
5896 ac_save_c_werror_flag
=$ac_c_werror_flag
5897 ac_c_werror_flag
=yes
5900 cat >conftest.
$ac_ext <<_ACEOF
5903 cat confdefs.h
>>conftest.
$ac_ext
5904 cat >>conftest.
$ac_ext <<_ACEOF
5905 /* end confdefs.h. */
5915 rm -f conftest.
$ac_objext
5916 if { (ac_try
="$ac_compile"
5918 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_compile") 2>conftest.er1
5924 grep -v '^ *+' conftest.er1 >conftest.err
5926 cat conftest.err >&5
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } &&
5929 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5930 { (case "(($ac_try" in
5931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5932 *) ac_try_echo
=$ac_try;;
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935 (eval "$ac_try") 2>&5
5937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938 (exit $ac_status); }; } &&
5939 { ac_try
='test -s conftest.$ac_objext'
5940 { (case "(($ac_try" in
5941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_try") 2>&5
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5955 cat >conftest.$ac_ext <<_ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h. */
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5973 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5974 *) ac_try_echo
=$ac_try;;
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_compile") 2>conftest.er1
5979 grep -v '^ *+' conftest.er1
>conftest.err
5981 cat conftest.err
>&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } &&
5984 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985 { (case "(($ac_try" in
5986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_try") 2>&5
5992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); }; } &&
5994 { ac_try='test -s conftest.$ac_objext'
5995 { (case "(($ac_try" in
5996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5997 *) ac_try_echo
=$ac_try;;
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000 (eval "$ac_try") 2>&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); }; }; then
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.
$ac_ext >&5
6009 ac_c_werror_flag
=$ac_save_c_werror_flag
6011 cat >conftest.
$ac_ext <<_ACEOF
6014 cat confdefs.h
>>conftest.
$ac_ext
6015 cat >>conftest.
$ac_ext <<_ACEOF
6016 /* end confdefs.h. */
6026 rm -f conftest.
$ac_objext
6027 if { (ac_try
="$ac_compile"
6029 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6030 *) ac_try_echo=$ac_try;;
6032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033 (eval "$ac_compile") 2>conftest.er1
6035 grep -v '^ *+' conftest.er1 >conftest.err
6037 cat conftest.err >&5
6038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039 (exit $ac_status); } &&
6040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6041 { (case "(($ac_try" in
6042 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6043 *) ac_try_echo
=$ac_try;;
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_try") 2>&5
6048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049 (exit $ac_status); }; } &&
6050 { ac_try
='test -s conftest.$ac_objext'
6051 { (case "(($ac_try" in
6052 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6053 *) ac_try_echo=$ac_try;;
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056 (eval "$ac_try") 2>&5
6058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059 (exit $ac_status); }; }; then
6062 echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075 ac_c_werror_flag=$ac_save_c_werror_flag
6077 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6078 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6079 if test "$ac_test_CFLAGS" = set; then
6080 CFLAGS=$ac_save_CFLAGS
6081 elif test $ac_cv_prog_cc_g = yes; then
6082 if test "$GCC" = yes; then
6088 if test "$GCC" = yes; then
6094 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6095 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6096 if test "${ac_cv_prog_cc_c89+set}" = set; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 ac_cv_prog_cc_c89=no
6101 cat >conftest.$ac_ext <<_ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6109 #include <sys/types.h>
6110 #include <sys/stat.h>
6111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6112 struct buf { int x; };
6113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6114 static char *e (p, i)
6120 static char *f (char * (*g) (char **, int), char **p, ...)
6125 s = g (p, va_arg (v,int));
6130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6131 function prototypes and stuff, but not '\xHH' hex character constants.
6132 These don't provoke an error unfortunately, instead are silently treated
6133 as 'x'. The following induces an error, until -std is added to get
6134 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6135 array size at least. It's necessary to write '\x00'==0 to get something
6136 that's true only with -std. */
6137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6139 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6140 inside strings and character constants. */
6142 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6144 int test (int i, double x);
6145 struct s1 {int (*f) (int a);};
6146 struct s2 {int (*f) (double a);};
6147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6153 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6158 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6159 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6161 CC="$ac_save_CC $ac_arg"
6162 rm -f conftest.$ac_objext
6163 if { (ac_try="$ac_compile"
6165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6166 *) ac_try_echo
=$ac_try;;
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169 (eval "$ac_compile") 2>conftest.er1
6171 grep -v '^ *+' conftest.er1
>conftest.err
6173 cat conftest.err
>&5
6174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } &&
6176 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6177 { (case "(($ac_try" in
6178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6179 *) ac_try_echo=$ac_try;;
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182 (eval "$ac_try") 2>&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); }; } &&
6186 { ac_try='test -s conftest.$ac_objext'
6187 { (case "(($ac_try" in
6188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6189 *) ac_try_echo
=$ac_try;;
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192 (eval "$ac_try") 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; }; then
6196 ac_cv_prog_cc_c89
=$ac_arg
6198 echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.
$ac_ext >&5
6204 rm -f core conftest.err conftest.
$ac_objext
6205 test "x$ac_cv_prog_cc_c89" != "xno" && break
6207 rm -f conftest.
$ac_ext
6212 case "x$ac_cv_prog_cc_c89" in
6214 { echo "$as_me:$LINENO: result: none needed" >&5
6215 echo "${ECHO_T}none needed" >&6; } ;;
6217 { echo "$as_me:$LINENO: result: unsupported" >&5
6218 echo "${ECHO_T}unsupported" >&6; } ;;
6220 CC
="$CC $ac_cv_prog_cc_c89"
6221 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6222 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6227 ac_cpp
='$CPP $CPPFLAGS'
6228 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6229 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6230 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6233 ac_cpp
='$CXXCPP $CPPFLAGS'
6234 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6235 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6236 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6237 if test -z "$CXX"; then
6238 if test -n "$CCC"; then
6241 if test -n "$ac_tool_prefix"; then
6244 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6245 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6248 if test "${ac_cv_prog_CXX+set}" = set; then
6249 echo $ECHO_N "(cached) $ECHO_C" >&6
6251 if test -n "$CXX"; then
6252 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6254 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6258 test -z "$as_dir" && as_dir
=.
6259 for ac_exec_ext
in '' $ac_executable_extensions; do
6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6261 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6262 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6272 if test -n "$CXX"; then
6273 { echo "$as_me:$LINENO: result: $CXX" >&5
6274 echo "${ECHO_T}$CXX" >&6; }
6276 { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6281 test -n "$CXX" && break
6284 if test -z "$CXX"; then
6288 # Extract the first word of "$ac_prog", so it can be a program name with args.
6289 set dummy
$ac_prog; ac_word
=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6293 echo $ECHO_N "(cached) $ECHO_C" >&6
6295 if test -n "$ac_ct_CXX"; then
6296 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6302 test -z "$as_dir" && as_dir
=.
6303 for ac_exec_ext
in '' $ac_executable_extensions; do
6304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6305 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6306 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6315 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6316 if test -n "$ac_ct_CXX"; then
6317 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6318 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6320 { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6325 test -n "$ac_ct_CXX" && break
6328 if test "x$ac_ct_CXX" = x
; then
6331 case $cross_compiling:$ac_tool_warned in
6333 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet. If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&5
6336 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6337 whose name does not start with the host triplet. If you think this
6338 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6339 ac_tool_warned
=yes ;;
6347 # Provide some information about the compiler.
6348 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6349 ac_compiler
=`set X $ac_compile; echo $2`
6350 { (ac_try
="$ac_compiler --version >&5"
6352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compiler --version >&5") 2>&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); }
6360 { (ac_try="$ac_compiler -v >&5"
6362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6363 *) ac_try_echo
=$ac_try;;
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366 (eval "$ac_compiler -v >&5") 2>&5
6368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369 (exit $ac_status); }
6370 { (ac_try
="$ac_compiler -V >&5"
6372 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6373 *) ac_try_echo=$ac_try;;
6375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6376 (eval "$ac_compiler -V >&5") 2>&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); }
6381 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6382 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6383 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6384 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6404 rm -f conftest.$ac_objext
6405 if { (ac_try="$ac_compile"
6407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6408 *) ac_try_echo
=$ac_try;;
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411 (eval "$ac_compile") 2>conftest.er1
6413 grep -v '^ *+' conftest.er1
>conftest.err
6415 cat conftest.err
>&5
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); } &&
6418 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6419 { (case "(($ac_try" in
6420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_try") 2>&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); }; } &&
6428 { ac_try='test -s conftest.$ac_objext'
6429 { (case "(($ac_try" in
6430 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6431 *) ac_try_echo
=$ac_try;;
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434 (eval "$ac_try") 2>&5
6436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437 (exit $ac_status); }; }; then
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.
$ac_ext >&5
6446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6447 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6450 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6451 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6452 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6453 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6454 ac_save_CXXFLAGS
=$CXXFLAGS
6455 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6456 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6457 if test "${ac_cv_prog_cxx_g+set}" = set; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6460 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6461 ac_cxx_werror_flag
=yes
6464 cat >conftest.
$ac_ext <<_ACEOF
6467 cat confdefs.h
>>conftest.
$ac_ext
6468 cat >>conftest.
$ac_ext <<_ACEOF
6469 /* end confdefs.h. */
6479 rm -f conftest.
$ac_objext
6480 if { (ac_try
="$ac_compile"
6482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6483 *) ac_try_echo=$ac_try;;
6485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6486 (eval "$ac_compile") 2>conftest.er1
6488 grep -v '^ *+' conftest.er1 >conftest.err
6490 cat conftest.err >&5
6491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492 (exit $ac_status); } &&
6493 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6494 { (case "(($ac_try" in
6495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6496 *) ac_try_echo
=$ac_try;;
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499 (eval "$ac_try") 2>&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); }; } &&
6503 { ac_try
='test -s conftest.$ac_objext'
6504 { (case "(($ac_try" in
6505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6506 *) ac_try_echo=$ac_try;;
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509 (eval "$ac_try") 2>&5
6511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512 (exit $ac_status); }; }; then
6513 ac_cv_prog_cxx_g=yes
6515 echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6519 cat >conftest.$ac_ext <<_ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h. */
6534 rm -f conftest.$ac_objext
6535 if { (ac_try="$ac_compile"
6537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6538 *) ac_try_echo
=$ac_try;;
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541 (eval "$ac_compile") 2>conftest.er1
6543 grep -v '^ *+' conftest.er1
>conftest.err
6545 cat conftest.err
>&5
6546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547 (exit $ac_status); } &&
6548 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6549 { (case "(($ac_try" in
6550 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6551 *) ac_try_echo=$ac_try;;
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_try") 2>&5
6556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557 (exit $ac_status); }; } &&
6558 { ac_try='test -s conftest.$ac_objext'
6559 { (case "(($ac_try" in
6560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6561 *) ac_try_echo
=$ac_try;;
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_try") 2>&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); }; }; then
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.
$ac_ext >&5
6573 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6575 cat >conftest.
$ac_ext <<_ACEOF
6578 cat confdefs.h
>>conftest.
$ac_ext
6579 cat >>conftest.
$ac_ext <<_ACEOF
6580 /* end confdefs.h. */
6590 rm -f conftest.
$ac_objext
6591 if { (ac_try
="$ac_compile"
6593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597 (eval "$ac_compile") 2>conftest.er1
6599 grep -v '^ *+' conftest.er1 >conftest.err
6601 cat conftest.err >&5
6602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603 (exit $ac_status); } &&
6604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6605 { (case "(($ac_try" in
6606 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6607 *) ac_try_echo
=$ac_try;;
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610 (eval "$ac_try") 2>&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); }; } &&
6614 { ac_try
='test -s conftest.$ac_objext'
6615 { (case "(($ac_try" in
6616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6617 *) ac_try_echo=$ac_try;;
6619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620 (eval "$ac_try") 2>&5
6622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623 (exit $ac_status); }; }; then
6624 ac_cv_prog_cxx_g=yes
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6641 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6642 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6643 if test "$ac_test_CXXFLAGS" = set; then
6644 CXXFLAGS=$ac_save_CXXFLAGS
6645 elif test $ac_cv_prog_cxx_g = yes; then
6646 if test "$GXX" = yes; then
6652 if test "$GXX" = yes; then
6659 ac_cpp='$CPP $CPPFLAGS'
6660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6665 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6666 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6667 if test "${lt_cv_path_NM+set}" = set; then
6668 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 if test -n "$NM"; then
6671 # Let the user override the test.
6674 lt_nm_to_check="${ac_tool_prefix}nm"
6675 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6676 lt_nm_to_check="$lt_nm_to_check nm"
6678 for lt_tmp_nm in $lt_nm_to_check; do
6679 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6680 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6682 test -z "$ac_dir" && ac_dir=.
6683 tmp_nm="$ac_dir/$lt_tmp_nm"
6684 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6685 # Check to see if the nm accepts a BSD-compat flag.
6686 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6687 # nm: unknown option "B" ignored
6688 # Tru64's nm complains that
/dev
/null is an invalid object
file
6689 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6690 */dev
/null
* |
*'Invalid file or object type'*)
6691 lt_cv_path_NM
="$tmp_nm -B"
6695 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6697 lt_cv_path_NM
="$tmp_nm -p"
6701 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6702 continue # so that we can try to find one that supports BSD flags
6711 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6714 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6715 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6720 { echo "$as_me:$LINENO: checking for GNU make" >&5
6721 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6722 if test "${llvm_cv_gnu_make_command+set}" = set; then
6723 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 llvm_cv_gnu_make_command
=''
6726 for a
in "$MAKE" make gmake gnumake
; do
6727 if test -z "$a" ; then continue ; fi ;
6728 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6730 llvm_cv_gnu_make_command
=$a ;
6735 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6736 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6737 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6741 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6742 echo "${ECHO_T}\"Not found\"" >&6; };
6746 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6747 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6749 if test "$LN_S" = "ln -s"; then
6750 { echo "$as_me:$LINENO: result: yes" >&5
6751 echo "${ECHO_T}yes" >&6; }
6753 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6754 echo "${ECHO_T}no, using $LN_S" >&6; }
6757 # Extract the first word of "cmp", so it can be a program name with args.
6758 set dummy
cmp; ac_word
=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_path_CMP+set}" = set; then
6762 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6769 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6773 test -z "$as_dir" && as_dir
=.
6774 for ac_exec_ext
in '' $ac_executable_extensions; do
6775 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6777 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6784 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6789 if test -n "$CMP"; then
6790 { echo "$as_me:$LINENO: result: $CMP" >&5
6791 echo "${ECHO_T}$CMP" >&6; }
6793 { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6798 # Extract the first word of "cp", so it can be a program name with args.
6799 set dummy
cp; ac_word
=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_CP+set}" = set; then
6803 echo $ECHO_N "(cached) $ECHO_C" >&6
6807 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6814 test -z "$as_dir" && as_dir
=.
6815 for ac_exec_ext
in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6825 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6830 if test -n "$CP"; then
6831 { echo "$as_me:$LINENO: result: $CP" >&5
6832 echo "${ECHO_T}$CP" >&6; }
6834 { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6839 # Extract the first word of "date", so it can be a program name with args.
6840 set dummy
date; ac_word
=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_path_DATE+set}" = set; then
6844 echo $ECHO_N "(cached) $ECHO_C" >&6
6848 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6855 test -z "$as_dir" && as_dir
=.
6856 for ac_exec_ext
in '' $ac_executable_extensions; do
6857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6858 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6866 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6870 DATE
=$ac_cv_path_DATE
6871 if test -n "$DATE"; then
6872 { echo "$as_me:$LINENO: result: $DATE" >&5
6873 echo "${ECHO_T}$DATE" >&6; }
6875 { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6880 # Extract the first word of "find", so it can be a program name with args.
6881 set dummy
find; ac_word
=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_FIND+set}" = set; then
6885 echo $ECHO_N "(cached) $ECHO_C" >&6
6889 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6896 test -z "$as_dir" && as_dir
=.
6897 for ac_exec_ext
in '' $ac_executable_extensions; do
6898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6907 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6911 FIND
=$ac_cv_path_FIND
6912 if test -n "$FIND"; then
6913 { echo "$as_me:$LINENO: result: $FIND" >&5
6914 echo "${ECHO_T}$FIND" >&6; }
6916 { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6921 # Extract the first word of "grep", so it can be a program name with args.
6922 set dummy
grep; ac_word
=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_GREP+set}" = set; then
6926 echo $ECHO_N "(cached) $ECHO_C" >&6
6930 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6937 test -z "$as_dir" && as_dir
=.
6938 for ac_exec_ext
in '' $ac_executable_extensions; do
6939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6948 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6952 GREP
=$ac_cv_path_GREP
6953 if test -n "$GREP"; then
6954 { echo "$as_me:$LINENO: result: $GREP" >&5
6955 echo "${ECHO_T}$GREP" >&6; }
6957 { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6962 # Extract the first word of "mkdir", so it can be a program name with args.
6963 set dummy mkdir
; ac_word
=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_path_MKDIR+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6971 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6978 test -z "$as_dir" && as_dir
=.
6979 for ac_exec_ext
in '' $ac_executable_extensions; do
6980 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6989 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6993 MKDIR
=$ac_cv_path_MKDIR
6994 if test -n "$MKDIR"; then
6995 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6996 echo "${ECHO_T}$MKDIR" >&6; }
6998 { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7003 # Extract the first word of "mv", so it can be a program name with args.
7004 set dummy
mv; ac_word
=$2
7005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007 if test "${ac_cv_path_MV+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7012 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
7015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7019 test -z "$as_dir" && as_dir
=.
7020 for ac_exec_ext
in '' $ac_executable_extensions; do
7021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7022 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
7023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7030 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
7035 if test -n "$MV"; then
7036 { echo "$as_me:$LINENO: result: $MV" >&5
7037 echo "${ECHO_T}$MV" >&6; }
7039 { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7044 if test -n "$ac_tool_prefix"; then
7045 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7046 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049 if test "${ac_cv_prog_RANLIB+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 if test -n "$RANLIB"; then
7053 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7059 test -z "$as_dir" && as_dir
=.
7060 for ac_exec_ext
in '' $ac_executable_extensions; do
7061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7063 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7072 RANLIB
=$ac_cv_prog_RANLIB
7073 if test -n "$RANLIB"; then
7074 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7075 echo "${ECHO_T}$RANLIB" >&6; }
7077 { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7083 if test -z "$ac_cv_prog_RANLIB"; then
7084 ac_ct_RANLIB
=$RANLIB
7085 # Extract the first word of "ranlib", so it can be a program name with args.
7086 set dummy ranlib
; ac_word
=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7092 if test -n "$ac_ct_RANLIB"; then
7093 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7095 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7099 test -z "$as_dir" && as_dir
=.
7100 for ac_exec_ext
in '' $ac_executable_extensions; do
7101 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7112 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7113 if test -n "$ac_ct_RANLIB"; then
7114 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7115 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7117 { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7121 if test "x$ac_ct_RANLIB" = x
; then
7124 case $cross_compiling:$ac_tool_warned in
7126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7127 whose name does not start with the host triplet. If you think this
7128 configuration is useful to you, please write to autoconf@gnu.org." >&5
7129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7130 whose name does not start with the host triplet. If you think this
7131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7132 ac_tool_warned
=yes ;;
7134 RANLIB
=$ac_ct_RANLIB
7137 RANLIB
="$ac_cv_prog_RANLIB"
7140 if test -n "$ac_tool_prefix"; then
7141 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7142 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_prog_AR+set}" = set; then
7146 echo $ECHO_N "(cached) $ECHO_C" >&6
7148 if test -n "$AR"; then
7149 ac_cv_prog_AR
="$AR" # Let the user override the test.
7151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7155 test -z "$as_dir" && as_dir
=.
7156 for ac_exec_ext
in '' $ac_executable_extensions; do
7157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7158 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7169 if test -n "$AR"; then
7170 { echo "$as_me:$LINENO: result: $AR" >&5
7171 echo "${ECHO_T}$AR" >&6; }
7173 { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7179 if test -z "$ac_cv_prog_AR"; then
7181 # Extract the first word of "ar", so it can be a program name with args.
7182 set dummy
ar; ac_word
=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7186 echo $ECHO_N "(cached) $ECHO_C" >&6
7188 if test -n "$ac_ct_AR"; then
7189 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7195 test -z "$as_dir" && as_dir
=.
7196 for ac_exec_ext
in '' $ac_executable_extensions; do
7197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198 ac_cv_prog_ac_ct_AR
="ar"
7199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7208 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7209 if test -n "$ac_ct_AR"; then
7210 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7211 echo "${ECHO_T}$ac_ct_AR" >&6; }
7213 { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7217 if test "x$ac_ct_AR" = x
; then
7220 case $cross_compiling:$ac_tool_warned in
7222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7223 whose name does not start with the host triplet. If you think this
7224 configuration is useful to you, please write to autoconf@gnu.org." >&5
7225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7226 whose name does not start with the host triplet. If you think this
7227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7228 ac_tool_warned
=yes ;;
7236 # Extract the first word of "rm", so it can be a program name with args.
7237 set dummy
rm; ac_word
=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_path_RM+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7245 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7248 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7252 test -z "$as_dir" && as_dir
=.
7253 for ac_exec_ext
in '' $ac_executable_extensions; do
7254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7256 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7263 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7268 if test -n "$RM"; then
7269 { echo "$as_me:$LINENO: result: $RM" >&5
7270 echo "${ECHO_T}$RM" >&6; }
7272 { echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6; }
7277 # Extract the first word of "sed", so it can be a program name with args.
7278 set dummy
sed; ac_word
=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_SED+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7289 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7293 test -z "$as_dir" && as_dir
=.
7294 for ac_exec_ext
in '' $ac_executable_extensions; do
7295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7309 if test -n "$SED"; then
7310 { echo "$as_me:$LINENO: result: $SED" >&5
7311 echo "${ECHO_T}$SED" >&6; }
7313 { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7318 # Extract the first word of "tar", so it can be a program name with args.
7319 set dummy
tar; ac_word
=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_TAR+set}" = set; then
7323 echo $ECHO_N "(cached) $ECHO_C" >&6
7327 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7330 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7334 test -z "$as_dir" && as_dir
=.
7335 for ac_exec_ext
in '' $ac_executable_extensions; do
7336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7338 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7345 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7350 if test -n "$TAR"; then
7351 { echo "$as_me:$LINENO: result: $TAR" >&5
7352 echo "${ECHO_T}$TAR" >&6; }
7354 { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7359 # Extract the first word of "pwd", so it can be a program name with args.
7360 set dummy
pwd; ac_word
=$2
7361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363 if test "${ac_cv_path_BINPWD+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7368 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7371 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7375 test -z "$as_dir" && as_dir
=.
7376 for ac_exec_ext
in '' $ac_executable_extensions; do
7377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7378 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7379 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7390 BINPWD
=$ac_cv_path_BINPWD
7391 if test -n "$BINPWD"; then
7392 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7393 echo "${ECHO_T}$BINPWD" >&6; }
7395 { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7401 # Extract the first word of "Graphviz", so it can be a program name with args.
7402 set dummy Graphviz
; ac_word
=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7417 test -z "$as_dir" && as_dir
=.
7418 for ac_exec_ext
in '' $ac_executable_extensions; do
7419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7428 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7432 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7433 if test -n "$GRAPHVIZ"; then
7434 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7435 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7437 { echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6; }
7442 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7444 cat >>confdefs.h
<<\_ACEOF
7445 #define HAVE_GRAPHVIZ 1
7448 if test "$llvm_cv_os_type" = "MingW" ; then
7449 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7452 cat >>confdefs.h
<<_ACEOF
7453 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7457 # Extract the first word of "dot", so it can be a program name with args.
7458 set dummy dot
; ac_word
=$2
7459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461 if test "${ac_cv_path_DOT+set}" = set; then
7462 echo $ECHO_N "(cached) $ECHO_C" >&6
7466 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7469 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7473 test -z "$as_dir" && as_dir
=.
7474 for ac_exec_ext
in '' $ac_executable_extensions; do
7475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7476 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7477 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7484 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7489 if test -n "$DOT"; then
7490 { echo "$as_me:$LINENO: result: $DOT" >&5
7491 echo "${ECHO_T}$DOT" >&6; }
7493 { echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6; }
7498 if test "$DOT" != "echo dot" ; then
7500 cat >>confdefs.h
<<\_ACEOF
7504 if test "$llvm_cv_os_type" = "MingW" ; then
7505 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7508 cat >>confdefs.h
<<_ACEOF
7509 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7513 # Extract the first word of "fdp", so it can be a program name with args.
7514 set dummy fdp
; ac_word
=$2
7515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7517 if test "${ac_cv_path_FDP+set}" = set; then
7518 echo $ECHO_N "(cached) $ECHO_C" >&6
7522 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7525 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7529 test -z "$as_dir" && as_dir
=.
7530 for ac_exec_ext
in '' $ac_executable_extensions; do
7531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7532 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7533 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7540 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7545 if test -n "$FDP"; then
7546 { echo "$as_me:$LINENO: result: $FDP" >&5
7547 echo "${ECHO_T}$FDP" >&6; }
7549 { echo "$as_me:$LINENO: result: no" >&5
7550 echo "${ECHO_T}no" >&6; }
7554 if test "$FDP" != "echo fdp" ; then
7556 cat >>confdefs.h
<<\_ACEOF
7560 if test "$llvm_cv_os_type" = "MingW" ; then
7561 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7564 cat >>confdefs.h
<<_ACEOF
7565 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7569 # Extract the first word of "neato", so it can be a program name with args.
7570 set dummy neato
; ac_word
=$2
7571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573 if test "${ac_cv_path_NEATO+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7578 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7581 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7585 test -z "$as_dir" && as_dir
=.
7586 for ac_exec_ext
in '' $ac_executable_extensions; do
7587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7588 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7600 NEATO
=$ac_cv_path_NEATO
7601 if test -n "$NEATO"; then
7602 { echo "$as_me:$LINENO: result: $NEATO" >&5
7603 echo "${ECHO_T}$NEATO" >&6; }
7605 { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7610 if test "$NEATO" != "echo neato" ; then
7612 cat >>confdefs.h
<<\_ACEOF
7613 #define HAVE_NEATO 1
7616 if test "$llvm_cv_os_type" = "MingW" ; then
7617 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7620 cat >>confdefs.h
<<_ACEOF
7621 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7625 # Extract the first word of "twopi", so it can be a program name with args.
7626 set dummy twopi
; ac_word
=$2
7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629 if test "${ac_cv_path_TWOPI+set}" = set; then
7630 echo $ECHO_N "(cached) $ECHO_C" >&6
7634 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7637 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7641 test -z "$as_dir" && as_dir
=.
7642 for ac_exec_ext
in '' $ac_executable_extensions; do
7643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7644 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7645 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7652 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7656 TWOPI
=$ac_cv_path_TWOPI
7657 if test -n "$TWOPI"; then
7658 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7659 echo "${ECHO_T}$TWOPI" >&6; }
7661 { echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6; }
7666 if test "$TWOPI" != "echo twopi" ; then
7668 cat >>confdefs.h
<<\_ACEOF
7669 #define HAVE_TWOPI 1
7672 if test "$llvm_cv_os_type" = "MingW" ; then
7673 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7676 cat >>confdefs.h
<<_ACEOF
7677 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7681 # Extract the first word of "circo", so it can be a program name with args.
7682 set dummy circo
; ac_word
=$2
7683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7685 if test "${ac_cv_path_CIRCO+set}" = set; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7690 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7693 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7697 test -z "$as_dir" && as_dir
=.
7698 for ac_exec_ext
in '' $ac_executable_extensions; do
7699 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7700 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7701 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7708 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7712 CIRCO
=$ac_cv_path_CIRCO
7713 if test -n "$CIRCO"; then
7714 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7715 echo "${ECHO_T}$CIRCO" >&6; }
7717 { echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6; }
7722 if test "$CIRCO" != "echo circo" ; then
7724 cat >>confdefs.h
<<\_ACEOF
7725 #define HAVE_CIRCO 1
7728 if test "$llvm_cv_os_type" = "MingW" ; then
7729 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7732 cat >>confdefs.h
<<_ACEOF
7733 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7737 for ac_prog
in gv gsview32
7739 # Extract the first word of "$ac_prog", so it can be a program name with args.
7740 set dummy
$ac_prog; ac_word
=$2
7741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7743 if test "${ac_cv_path_GV+set}" = set; then
7744 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7751 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7755 test -z "$as_dir" && as_dir
=.
7756 for ac_exec_ext
in '' $ac_executable_extensions; do
7757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7758 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7759 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7770 if test -n "$GV"; then
7771 { echo "$as_me:$LINENO: result: $GV" >&5
7772 echo "${ECHO_T}$GV" >&6; }
7774 { echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6; }
7779 test -n "$GV" && break
7781 test -n "$GV" || GV
="echo gv"
7783 if test "$GV" != "echo gv" ; then
7785 cat >>confdefs.h
<<\_ACEOF
7789 if test "$llvm_cv_os_type" = "MingW" ; then
7790 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7793 cat >>confdefs.h
<<_ACEOF
7794 #define LLVM_PATH_GV "$GV${EXEEXT}"
7798 # Extract the first word of "dotty", so it can be a program name with args.
7799 set dummy dotty
; ac_word
=$2
7800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802 if test "${ac_cv_path_DOTTY+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7810 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7814 test -z "$as_dir" && as_dir
=.
7815 for ac_exec_ext
in '' $ac_executable_extensions; do
7816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7817 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7825 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7829 DOTTY
=$ac_cv_path_DOTTY
7830 if test -n "$DOTTY"; then
7831 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7832 echo "${ECHO_T}$DOTTY" >&6; }
7834 { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7839 if test "$DOTTY" != "echo dotty" ; then
7841 cat >>confdefs.h
<<\_ACEOF
7842 #define HAVE_DOTTY 1
7845 if test "$llvm_cv_os_type" = "MingW" ; then
7846 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7849 cat >>confdefs.h
<<_ACEOF
7850 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7854 # Extract the first word of "xdot.py", so it can be a program name with args.
7855 set dummy xdot.py
; ac_word
=$2
7856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7858 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7859 echo $ECHO_N "(cached) $ECHO_C" >&6
7863 ac_cv_path_XDOT_PY
="$XDOT_PY" # Let the user override the test with a path.
7866 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7870 test -z "$as_dir" && as_dir
=.
7871 for ac_exec_ext
in '' $ac_executable_extensions; do
7872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7873 ac_cv_path_XDOT_PY
="$as_dir/$ac_word$ac_exec_ext"
7874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY
="echo xdot.py"
7885 XDOT_PY
=$ac_cv_path_XDOT_PY
7886 if test -n "$XDOT_PY"; then
7887 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7888 echo "${ECHO_T}$XDOT_PY" >&6; }
7890 { echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6; }
7895 if test "$XDOT_PY" != "echo xdot.py" ; then
7897 cat >>confdefs.h
<<\_ACEOF
7898 #define HAVE_XDOT_PY 1
7901 if test "$llvm_cv_os_type" = "MingW" ; then
7902 XDOT_PY
=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7905 cat >>confdefs.h
<<_ACEOF
7906 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7912 # Extract the first word of "perl", so it can be a program name with args.
7913 set dummy perl
; ac_word
=$2
7914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7916 if test "${ac_cv_path_PERL+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7924 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7928 test -z "$as_dir" && as_dir
=.
7929 for ac_exec_ext
in '' $ac_executable_extensions; do
7930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7931 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7939 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7943 PERL
=$ac_cv_path_PERL
7944 if test -n "$PERL"; then
7945 { echo "$as_me:$LINENO: result: $PERL" >&5
7946 echo "${ECHO_T}$PERL" >&6; }
7948 { echo "$as_me:$LINENO: result: no" >&5
7949 echo "${ECHO_T}no" >&6; }
7953 if test "$PERL" != "none"; then
7954 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7955 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7956 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7957 { echo "$as_me:$LINENO: result: yes" >&5
7958 echo "${ECHO_T}yes" >&6; }
7961 { echo "$as_me:$LINENO: result: not found" >&5
7962 echo "${ECHO_T}not found" >&6; }
7967 if test x
"$PERL" = xnone
; then
7970 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7971 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7972 { (exit 1); exit 1; }; }
7978 # Find a good install program. We prefer a C program (faster),
7979 # so one script is as good as another. But avoid the broken or
7980 # incompatible versions:
7981 # SysV /etc/install, /usr/sbin/install
7982 # SunOS /usr/etc/install
7983 # IRIX /sbin/install
7985 # AmigaOS /C/install, which installs bootblocks on floppy discs
7986 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7989 # OS/2's system install, which has a completely different semantic
7990 # ./install, which can be erroneously created by make from ./install.sh.
7991 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7992 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7993 if test -z "$INSTALL"; then
7994 if test "${ac_cv_path_install+set}" = set; then
7995 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8001 test -z "$as_dir" && as_dir
=.
8002 # Account for people who put trailing slashes in PATH elements.
8004 .
/ | .
// |
/cC
/* | \
8005 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
8006 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
8009 # OSF1 and SCO ODT 3.0 have their own names for install.
8010 # Don't use installbsd from OSF since it installs stuff as root
8012 for ac_prog
in ginstall scoinst
install; do
8013 for ac_exec_ext
in '' $ac_executable_extensions; do
8014 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8015 if test $ac_prog = install &&
8016 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8017 # AIX install. It has an incompatible calling convention.
8019 elif test $ac_prog = install &&
8020 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8021 # program-specific install script used by HP pwplus--don't use.
8024 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
8037 if test "${ac_cv_path_install+set}" = set; then
8038 INSTALL
=$ac_cv_path_install
8040 # As a last resort, use the slow shell script. Don't cache a
8041 # value for INSTALL within a source directory, because that will
8042 # break other packages using the cache if that directory is
8043 # removed, or if the value is a relative name.
8044 INSTALL
=$ac_install_sh
8047 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8048 echo "${ECHO_T}$INSTALL" >&6; }
8050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8051 # It thinks the first close brace ends the variable substitution.
8052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8056 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8059 [\\/$
]* | ?
:[\\/]* ) ;;
8060 *) INSTALL
="\\\$(TOPSRCDIR)/$INSTALL" ;;
8063 # Extract the first word of "bzip2", so it can be a program name with args.
8064 set dummy
bzip2; ac_word
=$2
8065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8067 if test "${ac_cv_path_BZIP2+set}" = set; then
8068 echo $ECHO_N "(cached) $ECHO_C" >&6
8072 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
8075 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8079 test -z "$as_dir" && as_dir
=.
8080 for ac_exec_ext
in '' $ac_executable_extensions; do
8081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8082 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
8083 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8093 BZIP2
=$ac_cv_path_BZIP2
8094 if test -n "$BZIP2"; then
8095 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8096 echo "${ECHO_T}$BZIP2" >&6; }
8098 { echo "$as_me:$LINENO: result: no" >&5
8099 echo "${ECHO_T}no" >&6; }
8103 # Extract the first word of "cat", so it can be a program name with args.
8104 set dummy
cat; ac_word
=$2
8105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8107 if test "${ac_cv_path_CAT+set}" = set; then
8108 echo $ECHO_N "(cached) $ECHO_C" >&6
8112 ac_cv_path_CAT
="$CAT" # Let the user override the test with a path.
8115 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8119 test -z "$as_dir" && as_dir
=.
8120 for ac_exec_ext
in '' $ac_executable_extensions; do
8121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8122 ac_cv_path_CAT
="$as_dir/$ac_word$ac_exec_ext"
8123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8134 if test -n "$CAT"; then
8135 { echo "$as_me:$LINENO: result: $CAT" >&5
8136 echo "${ECHO_T}$CAT" >&6; }
8138 { echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6; }
8143 # Extract the first word of "doxygen", so it can be a program name with args.
8144 set dummy doxygen
; ac_word
=$2
8145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8147 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8148 echo $ECHO_N "(cached) $ECHO_C" >&6
8152 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
8155 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8159 test -z "$as_dir" && as_dir
=.
8160 for ac_exec_ext
in '' $ac_executable_extensions; do
8161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8162 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
8163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 DOXYGEN
=$ac_cv_path_DOXYGEN
8174 if test -n "$DOXYGEN"; then
8175 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8176 echo "${ECHO_T}$DOXYGEN" >&6; }
8178 { echo "$as_me:$LINENO: result: no" >&5
8179 echo "${ECHO_T}no" >&6; }
8183 # Extract the first word of "groff", so it can be a program name with args.
8184 set dummy
groff; ac_word
=$2
8185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8187 if test "${ac_cv_path_GROFF+set}" = set; then
8188 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
8195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8199 test -z "$as_dir" && as_dir
=.
8200 for ac_exec_ext
in '' $ac_executable_extensions; do
8201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8202 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
8203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8213 GROFF
=$ac_cv_path_GROFF
8214 if test -n "$GROFF"; then
8215 { echo "$as_me:$LINENO: result: $GROFF" >&5
8216 echo "${ECHO_T}$GROFF" >&6; }
8218 { echo "$as_me:$LINENO: result: no" >&5
8219 echo "${ECHO_T}no" >&6; }
8223 # Extract the first word of "gzip", so it can be a program name with args.
8224 set dummy
gzip; ac_word
=$2
8225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8227 if test "${ac_cv_path_GZIP+set}" = set; then
8228 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
8235 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8239 test -z "$as_dir" && as_dir
=.
8240 for ac_exec_ext
in '' $ac_executable_extensions; do
8241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8242 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
8243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8253 GZIP
=$ac_cv_path_GZIP
8254 if test -n "$GZIP"; then
8255 { echo "$as_me:$LINENO: result: $GZIP" >&5
8256 echo "${ECHO_T}$GZIP" >&6; }
8258 { echo "$as_me:$LINENO: result: no" >&5
8259 echo "${ECHO_T}no" >&6; }
8263 # Extract the first word of "pod2html", so it can be a program name with args.
8264 set dummy pod2html
; ac_word
=$2
8265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8267 if test "${ac_cv_path_POD2HTML+set}" = set; then
8268 echo $ECHO_N "(cached) $ECHO_C" >&6
8272 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
8275 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8279 test -z "$as_dir" && as_dir
=.
8280 for ac_exec_ext
in '' $ac_executable_extensions; do
8281 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8282 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
8283 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8293 POD2HTML
=$ac_cv_path_POD2HTML
8294 if test -n "$POD2HTML"; then
8295 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8296 echo "${ECHO_T}$POD2HTML" >&6; }
8298 { echo "$as_me:$LINENO: result: no" >&5
8299 echo "${ECHO_T}no" >&6; }
8303 # Extract the first word of "pod2man", so it can be a program name with args.
8304 set dummy pod2man
; ac_word
=$2
8305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8307 if test "${ac_cv_path_POD2MAN+set}" = set; then
8308 echo $ECHO_N "(cached) $ECHO_C" >&6
8312 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8315 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8319 test -z "$as_dir" && as_dir
=.
8320 for ac_exec_ext
in '' $ac_executable_extensions; do
8321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8322 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 POD2MAN
=$ac_cv_path_POD2MAN
8334 if test -n "$POD2MAN"; then
8335 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8336 echo "${ECHO_T}$POD2MAN" >&6; }
8338 { echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6; }
8343 # Extract the first word of "pdfroff", so it can be a program name with args.
8344 set dummy pdfroff
; ac_word
=$2
8345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8347 if test "${ac_cv_path_PDFROFF+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8352 ac_cv_path_PDFROFF
="$PDFROFF" # Let the user override the test with a path.
8355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8359 test -z "$as_dir" && as_dir
=.
8360 for ac_exec_ext
in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 ac_cv_path_PDFROFF
="$as_dir/$ac_word$ac_exec_ext"
8363 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 PDFROFF
=$ac_cv_path_PDFROFF
8374 if test -n "$PDFROFF"; then
8375 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8376 echo "${ECHO_T}$PDFROFF" >&6; }
8378 { echo "$as_me:$LINENO: result: no" >&5
8379 echo "${ECHO_T}no" >&6; }
8383 # Extract the first word of "runtest", so it can be a program name with args.
8384 set dummy runtest
; ac_word
=$2
8385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8387 if test "${ac_cv_path_RUNTEST+set}" = set; then
8388 echo $ECHO_N "(cached) $ECHO_C" >&6
8392 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
8395 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8399 test -z "$as_dir" && as_dir
=.
8400 for ac_exec_ext
in '' $ac_executable_extensions; do
8401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8402 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 RUNTEST
=$ac_cv_path_RUNTEST
8414 if test -n "$RUNTEST"; then
8415 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8416 echo "${ECHO_T}$RUNTEST" >&6; }
8418 { echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6; }
8425 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8426 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8428 # Check whether --with-tclinclude was given.
8429 if test "${with_tclinclude+set}" = set; then
8430 withval
=$with_tclinclude; with_tclinclude
=${withval}
8435 if test "${ac_cv_path_tclsh+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8439 if test x
"${with_tclinclude}" != x
; then
8440 if test -f ${with_tclinclude}/tclsh
; then
8441 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8442 elif test -f ${with_tclinclude}/src
/tclsh
; then
8443 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8445 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8446 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8447 { (exit 1); exit 1; }; }
8453 if test x
"${ac_cv_path_tclsh}" = x
; then
8454 { echo "$as_me:$LINENO: result: none" >&5
8455 echo "${ECHO_T}none" >&6; }
8456 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
8458 # Extract the first word of "$ac_prog", so it can be a program name with args.
8459 set dummy
$ac_prog; ac_word
=$2
8460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8462 if test "${ac_cv_path_TCLSH+set}" = set; then
8463 echo $ECHO_N "(cached) $ECHO_C" >&6
8467 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8474 test -z "$as_dir" && as_dir
=.
8475 for ac_exec_ext
in '' $ac_executable_extensions; do
8476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8477 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8478 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8488 TCLSH
=$ac_cv_path_TCLSH
8489 if test -n "$TCLSH"; then
8490 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8491 echo "${ECHO_T}$TCLSH" >&6; }
8493 { echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6; }
8498 test -n "$TCLSH" && break
8501 if test x
"${TCLSH}" = x
; then
8502 ac_cv_path_tclsh
='';
8504 ac_cv_path_tclsh
="${TCLSH}";
8507 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8508 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8509 TCLSH="${ac_cv_path_tclsh}"
8513 # Extract the first word of "zip", so it can be a program name with args.
8514 set dummy zip; ac_word=$2
8515 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8516 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8517 if test "${ac_cv_path_ZIP+set}" = set; then
8518 echo $ECHO_N "(cached
) $ECHO_C" >&6
8522 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8529 test -z "$as_dir" && as_dir=.
8530 for ac_exec_ext in '' $ac_executable_extensions; do
8531 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8532 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8533 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8544 if test -n "$ZIP"; then
8545 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8546 echo "${ECHO_T}$ZIP" >&6; }
8548 { echo "$as_me:$LINENO: result
: no
" >&5
8549 echo "${ECHO_T}no
" >&6; }
8553 for ac_prog in ocamlc
8555 # Extract the first word of "$ac_prog", so it can be a program name with args.
8556 set dummy $ac_prog; ac_word=$2
8557 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8558 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8559 if test "${ac_cv_path_OCAMLC+set}" = set; then
8560 echo $ECHO_N "(cached
) $ECHO_C" >&6
8564 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8571 test -z "$as_dir" && as_dir=.
8572 for ac_exec_ext in '' $ac_executable_extensions; do
8573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8574 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8575 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8585 OCAMLC=$ac_cv_path_OCAMLC
8586 if test -n "$OCAMLC"; then
8587 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8588 echo "${ECHO_T}$OCAMLC" >&6; }
8590 { echo "$as_me:$LINENO: result
: no
" >&5
8591 echo "${ECHO_T}no
" >&6; }
8595 test -n "$OCAMLC" && break
8598 for ac_prog in ocamlopt
8600 # Extract the first word of "$ac_prog", so it can be a program name with args.
8601 set dummy $ac_prog; ac_word=$2
8602 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8603 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8604 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8605 echo $ECHO_N "(cached
) $ECHO_C" >&6
8609 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8616 test -z "$as_dir" && as_dir=.
8617 for ac_exec_ext in '' $ac_executable_extensions; do
8618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8619 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8620 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8630 OCAMLOPT=$ac_cv_path_OCAMLOPT
8631 if test -n "$OCAMLOPT"; then
8632 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8633 echo "${ECHO_T}$OCAMLOPT" >&6; }
8635 { echo "$as_me:$LINENO: result
: no
" >&5
8636 echo "${ECHO_T}no
" >&6; }
8640 test -n "$OCAMLOPT" && break
8643 for ac_prog in ocamldep
8645 # Extract the first word of "$ac_prog", so it can be a program name with args.
8646 set dummy $ac_prog; ac_word=$2
8647 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8648 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8649 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8650 echo $ECHO_N "(cached
) $ECHO_C" >&6
8654 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 test -z "$as_dir" && as_dir=.
8662 for ac_exec_ext in '' $ac_executable_extensions; do
8663 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8664 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8665 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8675 OCAMLDEP=$ac_cv_path_OCAMLDEP
8676 if test -n "$OCAMLDEP"; then
8677 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8678 echo "${ECHO_T}$OCAMLDEP" >&6; }
8680 { echo "$as_me:$LINENO: result
: no
" >&5
8681 echo "${ECHO_T}no
" >&6; }
8685 test -n "$OCAMLDEP" && break
8688 for ac_prog in ocamldoc
8690 # Extract the first word of "$ac_prog", so it can be a program name with args.
8691 set dummy $ac_prog; ac_word=$2
8692 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8693 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8694 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8695 echo $ECHO_N "(cached
) $ECHO_C" >&6
8699 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8709 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8710 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8720 OCAMLDOC=$ac_cv_path_OCAMLDOC
8721 if test -n "$OCAMLDOC"; then
8722 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8723 echo "${ECHO_T}$OCAMLDOC" >&6; }
8725 { echo "$as_me:$LINENO: result
: no
" >&5
8726 echo "${ECHO_T}no
" >&6; }
8730 test -n "$OCAMLDOC" && break
8733 for ac_prog in gas as
8735 # Extract the first word of "$ac_prog", so it can be a program name with args.
8736 set dummy $ac_prog; ac_word=$2
8737 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8738 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8739 if test "${ac_cv_path_GAS+set}" = set; then
8740 echo $ECHO_N "(cached
) $ECHO_C" >&6
8744 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8754 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8755 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8766 if test -n "$GAS"; then
8767 { echo "$as_me:$LINENO: result
: $GAS" >&5
8768 echo "${ECHO_T}$GAS" >&6; }
8770 { echo "$as_me:$LINENO: result
: no
" >&5
8771 echo "${ECHO_T}no
" >&6; }
8775 test -n "$GAS" && break
8779 { echo "$as_me:$LINENO: checking
for linker version
" >&5
8780 echo $ECHO_N "checking
for linker version...
$ECHO_C" >&6; }
8781 if test "${llvm_cv_link_version+set}" = set; then
8782 echo $ECHO_N "(cached
) $ECHO_C" >&6
8785 version_string="$
(ld
-v 2>&1 |
head -1)"
8788 if (echo "$version_string" | grep -q "ld64
"); then
8789 llvm_cv_link_version=$(echo "$version_string" | sed -e "s
#.*ld64-\([^ ]*\)#\1#")
8791 llvm_cv_link_version
=$
(echo "$version_string" |
sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8795 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8796 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8798 cat >>confdefs.h
<<_ACEOF
8799 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8804 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8805 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8806 if test "${llvm_cv_link_use_r+set}" = set; then
8807 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 ac_cpp
='$CPP $CPPFLAGS'
8811 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8812 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8813 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8816 CFLAGS
="$CFLAGS -Wl,-R."
8817 cat >conftest.
$ac_ext <<_ACEOF
8820 cat confdefs.h
>>conftest.
$ac_ext
8821 cat >>conftest.
$ac_ext <<_ACEOF
8822 /* end confdefs.h. */
8832 rm -f conftest.
$ac_objext conftest
$ac_exeext
8833 if { (ac_try
="$ac_link"
8835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_link") 2>conftest.er1
8841 grep -v '^ *+' conftest.er1 >conftest.err
8843 cat conftest.err >&5
8844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845 (exit $ac_status); } &&
8846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8847 { (case "(($ac_try" in
8848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8849 *) ac_try_echo
=$ac_try;;
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_try") 2>&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 (exit $ac_status); }; } &&
8856 { ac_try
='test -s conftest$ac_exeext'
8857 { (case "(($ac_try" in
8858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8859 *) ac_try_echo=$ac_try;;
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862 (eval "$ac_try") 2>&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); }; }; then
8866 llvm_cv_link_use_r=yes
8868 echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8871 llvm_cv_link_use_r=no
8874 rm -f core conftest.err conftest.$ac_objext \
8875 conftest$ac_exeext conftest.$ac_ext
8878 ac_cpp='$CPP $CPPFLAGS'
8879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8885 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8886 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8887 if test "$llvm_cv_link_use_r" = yes ; then
8889 cat >>confdefs.h <<\_ACEOF
8890 #define HAVE_LINK_R 1
8896 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8897 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8898 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8899 echo $ECHO_N "(cached) $ECHO_C" >&6
8902 ac_cpp='$CPP $CPPFLAGS'
8903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8908 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8909 cat >conftest.$ac_ext <<_ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h. */
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (ac_try="$ac_link"
8927 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8928 *) ac_try_echo
=$ac_try;;
8930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8931 (eval "$ac_link") 2>conftest.er1
8933 grep -v '^ *+' conftest.er1
>conftest.err
8935 cat conftest.err
>&5
8936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937 (exit $ac_status); } &&
8938 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8939 { (case "(($ac_try" in
8940 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8941 *) ac_try_echo=$ac_try;;
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944 (eval "$ac_try") 2>&5
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; } &&
8948 { ac_try='test -s conftest$ac_exeext'
8949 { (case "(($ac_try" in
8950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8951 *) ac_try_echo
=$ac_try;;
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954 (eval "$ac_try") 2>&5
8956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957 (exit $ac_status); }; }; then
8958 llvm_cv_link_use_export_dynamic
=yes
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.
$ac_ext >&5
8963 llvm_cv_link_use_export_dynamic
=no
8966 rm -f core conftest.err conftest.
$ac_objext \
8967 conftest
$ac_exeext conftest.
$ac_ext
8970 ac_cpp
='$CPP $CPPFLAGS'
8971 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8977 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8978 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8979 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8981 cat >>confdefs.h
<<\_ACEOF
8982 #define HAVE_LINK_EXPORT_DYNAMIC 1
8988 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8989 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8990 if test "${llvm_cv_link_use_version_script+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8994 ac_cpp
='$CPP $CPPFLAGS'
8995 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
9001 # The following code is from the autoconf manual,
9002 # "11.13: Limitations of Usual Tools".
9003 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9004 # Use mktemp if possible; otherwise fall back on mkdir,
9005 # with $RANDOM to make collisions less likely.
9009 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9011 test -n "$tmp" && test -d "$tmp"
9013 tmp
=$TMPDIR/foo$$
-$RANDOM
9014 (umask 077 && mkdir
"$tmp")
9017 echo "{" > "$tmp/export.map"
9018 echo " global: main;" >> "$tmp/export.map"
9019 echo " local: *;" >> "$tmp/export.map"
9020 echo "};" >> "$tmp/export.map"
9022 CFLAGS
="$CFLAGS -Wl,--version-script=$tmp/export.map"
9023 cat >conftest.
$ac_ext <<_ACEOF
9026 cat confdefs.h
>>conftest.
$ac_ext
9027 cat >>conftest.
$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9038 rm -f conftest.
$ac_objext conftest
$ac_exeext
9039 if { (ac_try
="$ac_link"
9041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_link") 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } &&
9052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9053 { (case "(($ac_try" in
9054 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9055 *) ac_try_echo
=$ac_try;;
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058 (eval "$ac_try") 2>&5
9060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061 (exit $ac_status); }; } &&
9062 { ac_try
='test -s conftest$ac_exeext'
9063 { (case "(($ac_try" in
9064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9065 *) ac_try_echo=$ac_try;;
9067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068 (eval "$ac_try") 2>&5
9070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071 (exit $ac_status); }; }; then
9072 llvm_cv_link_use_version_script=yes
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9077 llvm_cv_link_use_version_script=no
9080 rm -f core conftest.err conftest.$ac_objext \
9081 conftest$ac_exeext conftest.$ac_ext
9082 rm "$tmp/export.map"
9086 ac_cpp='$CPP $CPPFLAGS'
9087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9093 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9094 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9095 if test "$llvm_cv_link_use_version_script" = yes ; then
9096 HAVE_LINK_VERSION_SCRIPT=1
9103 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9104 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9105 if test "${ac_cv_c_const+set}" = set; then
9106 echo $ECHO_N "(cached) $ECHO_C" >&6
9108 cat >conftest.$ac_ext <<_ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h. */
9118 /* FIXME: Include the comments suggested by Paul. */
9120 /* Ultrix mips cc rejects this. */
9121 typedef int charset[2];
9123 /* SunOS 4.1.1 cc rejects this. */
9124 char const *const *ccp;
9126 /* NEC SVR4.0.2 mips cc rejects this. */
9127 struct point {int x, y;};
9128 static struct point const zero = {0,0};
9129 /* AIX XL C 1.02.0.0 rejects this.
9130 It does not let you subtract one const X* pointer from another in
9131 an arm of an if-expression whose if-part is not a constant
9133 const char *g = "string";
9134 ccp = &g + (g ? g-g : 0);
9135 /* HPUX 7.0 cc rejects these. */
9138 ccp = (char const *const *) p;
9139 { /* SCO 3.2v4 cc rejects this. */
9141 char const *s = 0 ? (char *) 0 : (char const *) 0;
9146 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9148 const int *foo = &x[0];
9151 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9152 typedef const int *iptr;
9156 { /* AIX XL C 1.02.0.0 rejects this saying
9157 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9158 struct s { int j; const int *ap[3]; };
9159 struct s *b; b->j = 5;
9161 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9165 return !x[0] && !zero.x;
9172 rm -f conftest.$ac_objext
9173 if { (ac_try="$ac_compile"
9175 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9176 *) ac_try_echo
=$ac_try;;
9178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179 (eval "$ac_compile") 2>conftest.er1
9181 grep -v '^ *+' conftest.er1
>conftest.err
9183 cat conftest.err
>&5
9184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185 (exit $ac_status); } &&
9186 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9187 { (case "(($ac_try" in
9188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9189 *) ac_try_echo=$ac_try;;
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192 (eval "$ac_try") 2>&5
9194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195 (exit $ac_status); }; } &&
9196 { ac_try='test -s conftest.$ac_objext'
9197 { (case "(($ac_try" in
9198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9199 *) ac_try_echo
=$ac_try;;
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202 (eval "$ac_try") 2>&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); }; }; then
9208 echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.
$ac_ext >&5
9214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9216 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9217 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9218 if test $ac_cv_c_const = no
; then
9220 cat >>confdefs.h
<<\_ACEOF
9232 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9233 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9234 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9235 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9236 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9237 echo $ECHO_N "(cached) $ECHO_C" >&6
9239 cat >conftest.
$ac_ext <<_ACEOF
9242 cat confdefs.h
>>conftest.
$ac_ext
9243 cat >>conftest.
$ac_ext <<_ACEOF
9244 /* end confdefs.h. */
9245 #include <sys/types.h>
9257 rm -f conftest.
$ac_objext
9258 if { (ac_try
="$ac_compile"
9260 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9261 *) ac_try_echo=$ac_try;;
9263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264 (eval "$ac_compile") 2>conftest.er1
9266 grep -v '^ *+' conftest.er1 >conftest.err
9268 cat conftest.err >&5
9269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270 (exit $ac_status); } &&
9271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272 { (case "(($ac_try" in
9273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9274 *) ac_try_echo
=$ac_try;;
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277 (eval "$ac_try") 2>&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); }; } &&
9281 { ac_try
='test -s conftest.$ac_objext'
9282 { (case "(($ac_try" in
9283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9284 *) ac_try_echo=$ac_try;;
9286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287 (eval "$ac_try") 2>&5
9289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290 (exit $ac_status); }; }; then
9291 eval "$as_ac_Header=yes"
9293 echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9296 eval "$as_ac_Header=no"
9299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9301 ac_res=`eval echo '${'$as_ac_Header'}'`
9302 { echo "$as_me:$LINENO: result: $ac_res" >&5
9303 echo "${ECHO_T}$ac_res" >&6; }
9304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9305 cat >>confdefs.h <<_ACEOF
9306 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
9309 ac_header_dirent=$ac_hdr; break
9313 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9314 if test $ac_header_dirent = dirent.h; then
9315 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9316 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9317 if test "${ac_cv_search_opendir+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 ac_func_search_save_LIBS=$LIBS
9321 cat >conftest.$ac_ext <<_ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9328 /* Override any GCC internal prototype to avoid an error.
9329 Use char because int might match the return type of a GCC
9330 builtin and then its argument prototype would still apply. */
9343 for ac_lib in '' dir; do
9344 if test -z "$ac_lib"; then
9345 ac_res="none required"
9348 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9350 rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (ac_try="$ac_link"
9353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9354 *) ac_try_echo
=$ac_try;;
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357 (eval "$ac_link") 2>conftest.er1
9359 grep -v '^ *+' conftest.er1
>conftest.err
9361 cat conftest.err
>&5
9362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363 (exit $ac_status); } &&
9364 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9365 { (case "(($ac_try" in
9366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9367 *) ac_try_echo=$ac_try;;
9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_try") 2>&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); }; } &&
9374 { ac_try='test -s conftest$ac_exeext'
9375 { (case "(($ac_try" in
9376 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9377 *) ac_try_echo
=$ac_try;;
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_try") 2>&5
9382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383 (exit $ac_status); }; }; then
9384 ac_cv_search_opendir
=$ac_res
9386 echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.
$ac_ext >&5
9392 rm -f core conftest.err conftest.
$ac_objext \
9394 if test "${ac_cv_search_opendir+set}" = set; then
9398 if test "${ac_cv_search_opendir+set}" = set; then
9401 ac_cv_search_opendir
=no
9404 LIBS
=$ac_func_search_save_LIBS
9406 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9407 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9408 ac_res
=$ac_cv_search_opendir
9409 if test "$ac_res" != no
; then
9410 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9415 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9416 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9417 if test "${ac_cv_search_opendir+set}" = set; then
9418 echo $ECHO_N "(cached) $ECHO_C" >&6
9420 ac_func_search_save_LIBS
=$LIBS
9421 cat >conftest.
$ac_ext <<_ACEOF
9424 cat confdefs.h
>>conftest.
$ac_ext
9425 cat >>conftest.
$ac_ext <<_ACEOF
9426 /* end confdefs.h. */
9428 /* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9443 for ac_lib
in '' x
; do
9444 if test -z "$ac_lib"; then
9445 ac_res
="none required"
9448 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9450 rm -f conftest.
$ac_objext conftest
$ac_exeext
9451 if { (ac_try
="$ac_link"
9453 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9454 *) ac_try_echo=$ac_try;;
9456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457 (eval "$ac_link") 2>conftest.er1
9459 grep -v '^ *+' conftest.er1 >conftest.err
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 (exit $ac_status); } &&
9464 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9465 { (case "(($ac_try" in
9466 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9467 *) ac_try_echo
=$ac_try;;
9469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470 (eval "$ac_try") 2>&5
9472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473 (exit $ac_status); }; } &&
9474 { ac_try
='test -s conftest$ac_exeext'
9475 { (case "(($ac_try" in
9476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9477 *) ac_try_echo=$ac_try;;
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480 (eval "$ac_try") 2>&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); }; }; then
9484 ac_cv_search_opendir=$ac_res
9486 echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9492 rm -f core conftest.err conftest.$ac_objext \
9494 if test "${ac_cv_search_opendir+set}" = set; then
9498 if test "${ac_cv_search_opendir+set}" = set; then
9501 ac_cv_search_opendir=no
9504 LIBS=$ac_func_search_save_LIBS
9506 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9507 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9508 ac_res=$ac_cv_search_opendir
9509 if test "$ac_res" != no; then
9510 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9517 for ac_header in dlfcn.h
9519 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9524 echo $ECHO_N "(cached) $ECHO_C" >&6
9526 ac_res=`eval echo '${'$as_ac_Header'}'`
9527 { echo "$as_me:$LINENO: result: $ac_res" >&5
9528 echo "${ECHO_T}$ac_res" >&6; }
9530 # Is the header compilable?
9531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9533 cat >conftest.$ac_ext <<_ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h. */
9539 $ac_includes_default
9540 #include <$ac_header>
9542 rm -f conftest.$ac_objext
9543 if { (ac_try="$ac_compile"
9545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9546 *) ac_try_echo
=$ac_try;;
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549 (eval "$ac_compile") 2>conftest.er1
9551 grep -v '^ *+' conftest.er1
>conftest.err
9553 cat conftest.err
>&5
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); } &&
9556 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9557 { (case "(($ac_try" in
9558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562 (eval "$ac_try") 2>&5
9564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565 (exit $ac_status); }; } &&
9566 { ac_try='test -s conftest.$ac_objext'
9567 { (case "(($ac_try" in
9568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9569 *) ac_try_echo
=$ac_try;;
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572 (eval "$ac_try") 2>&5
9574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575 (exit $ac_status); }; }; then
9576 ac_header_compiler
=yes
9578 echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.
$ac_ext >&5
9581 ac_header_compiler
=no
9584 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9586 echo "${ECHO_T}$ac_header_compiler" >&6; }
9588 # Is the header present?
9589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9591 cat >conftest.
$ac_ext <<_ACEOF
9594 cat confdefs.h
>>conftest.
$ac_ext
9595 cat >>conftest.
$ac_ext <<_ACEOF
9596 /* end confdefs.h. */
9597 #include <$ac_header>
9599 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9602 *) ac_try_echo=$ac_try;;
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9607 grep -v '^ *+' conftest.er1 >conftest.err
9609 cat conftest.err >&5
9610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611 (exit $ac_status); } >/dev/null; then
9612 if test -s conftest.err; then
9613 ac_cpp_err=$ac_c_preproc_warn_flag
9614 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9621 if test -z "$ac_cpp_err"; then
9622 ac_header_preproc=yes
9624 echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9627 ac_header_preproc=no
9630 rm -f conftest.err conftest.$ac_ext
9631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9632 echo "${ECHO_T}$ac_header_preproc" >&6; }
9634 # So? What about this header?
9635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9637 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9639 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9641 ac_header_preproc=yes
9644 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9646 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9647 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9648 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9650 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9651 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9652 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9654 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9657 ## ----------------------------------- ##
9658 ## Report this to llvmbugs@cs.uiuc.edu ##
9659 ## ----------------------------------- ##
9661 ) | sed "s/^/$as_me: WARNING: /" >&2
9664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9667 echo $ECHO_N "(cached) $ECHO_C" >&6
9669 eval "$as_ac_Header=\$ac_header_preproc"
9671 ac_res=`eval echo '${'$as_ac_Header'}'`
9672 { echo "$as_me:$LINENO: result: $ac_res" >&5
9673 echo "${ECHO_T}$ac_res" >&6; }
9676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9677 cat >>confdefs.h <<_ACEOF
9678 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9685 # Check whether --enable-ltdl-install was given.
9686 if test "${enable_ltdl_install+set}" = set; then
9687 enableval=$enable_ltdl_install;
9693 if test x"${enable_ltdl_install-no}" != xno; then
9695 INSTALL_LTDL_FALSE='#'
9697 INSTALL_LTDL_TRUE='#'
9703 if test x"${enable_ltdl_convenience-no}" != xno; then
9704 CONVENIENCE_LTDL_TRUE=
9705 CONVENIENCE_LTDL_FALSE='#'
9707 CONVENIENCE_LTDL_TRUE='#'
9708 CONVENIENCE_LTDL_FALSE=
9712 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9713 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9715 libname_spec='lib$name'
9723 shlibpath_overrides_runpath=unknown
9725 dynamic_linker="$host_os ld.so"
9726 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9727 if test "$GCC" = yes; then
9728 sys_lib_search_path_spec=`$CC -print-search-dirs |
grep "^libraries:" |
$SED -e "s/^libraries://" -e "s,=/,/,g"`
9729 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9730 # if the path contains ";" then we assume it to be the separator
9731 # otherwise default to the standard path separator (i.e. ":") - it is
9732 # assumed that no part of a normal pathname contains ";" but that should
9733 # okay in the real world where ";" in dirpaths is itself problematic.
9734 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e 's/;/ /g'`
9736 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e "s/$PATH_SEPARATOR/ /g"`
9739 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9741 need_lib_prefix=unknown
9742 hardcode_into_libs=no
9744 # when you set need_version to no, make sure it does not cause -set_version
9745 # flags to be left without arguments
9746 need_version=unknown
9751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9752 shlibpath_var=LIBPATH
9754 # AIX 3 has no versioning support, so we append a major version to the name.
9755 soname_spec='${libname}${release}${shared_ext}$major'
9762 hardcode_into_libs=yes
9763 if test "$host_cpu" = ia64; then
9764 # AIX 5 supports IA64
9765 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9766 shlibpath_var=LD_LIBRARY_PATH
9768 # With GCC up to 2.95.x, collect2 would create an import file
9769 # for dependence libraries. The import file would start with
9770 # the line `#! .'. This would cause the generated library to
9771 # depend on `.', always an invalid library. This was fixed in
9772 # development snapshots of GCC prior to 3.0.
9774 aix4 | aix4.
[01] | aix4.
[01].
*)
9775 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9777 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9784 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9785 # soname into executable. Probably we can add versioning support to
9786 # collect2, so additional links can be useful in future.
9787 if test "$aix_use_runtimelinking" = yes; then
9788 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9789 # instead of lib<name>.a to let people know that these are not
9790 # typical AIX shared libraries.
9791 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9793 # We preserve .a as extension for shared libraries through AIX4.2
9794 # and later when we are not doing run time linking.
9795 library_names_spec
='${libname}${release}.a $libname.a'
9796 soname_spec
='${libname}${release}${shared_ext}$major'
9798 shlibpath_var
=LIBPATH
9803 library_names_spec
='$libname.ixlibrary $libname.a'
9804 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9805 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'
9809 library_names_spec
='${libname}${shared_ext}'
9810 dynamic_linker
="$host_os ld.so"
9811 shlibpath_var
=LIBRARY_PATH
9817 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818 soname_spec
='${libname}${release}${shared_ext}$major'
9819 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9820 shlibpath_var
=LD_LIBRARY_PATH
9821 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9822 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9823 # the default ld.so.conf also contains /usr/contrib/lib and
9824 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9825 # libtool to hard-code these into programs
9828 cygwin
* | mingw
* | pw32
*)
9829 version_type
=windows
9834 case $GCC,$host_os in
9835 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9836 library_names_spec
='$libname.dll.a'
9837 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9838 postinstall_cmds
='base_file=`basename \${file}`~
9839 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9840 dldir=$destdir/`dirname \$dlpath`~
9841 test -d \$dldir || mkdir -p \$dldir~
9842 $install_prog $dir/$dlname \$dldir/$dlname~
9843 chmod a+x \$dldir/$dlname'
9844 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9845 dlpath=$dir/\$dldll~
9847 shlibpath_overrides_runpath
=yes
9851 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9852 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9853 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9856 # MinGW DLLs use traditional 'lib' prefix
9857 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9858 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9859 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9860 # It is most probably a Windows format PATH printed by
9861 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9862 # path with ; separators, and with drive letters. We can handle the
9863 # drive letters (cygwin fileutils understands them), so leave them,
9864 # especially as we might pass files found there to a mingw objdump,
9865 # which wouldn't understand a cygwinified path. Ahh.
9866 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9868 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9872 # pw32 DLLs use 'pw' prefix rather than 'lib'
9873 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9879 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9882 dynamic_linker
='Win32 ld.exe'
9883 # FIXME: first we should search . and the directory the executable is in
9887 darwin
* | rhapsody
*)
9888 dynamic_linker
="$host_os dyld"
9892 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9893 soname_spec
='${libname}${release}${major}$shared_ext'
9894 shlibpath_overrides_runpath
=yes
9895 shlibpath_var
=DYLD_LIBRARY_PATH
9896 shrext_cmds
='.dylib'
9897 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9898 if test "$GCC" = yes; then
9899 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"`
9901 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
9903 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9911 soname_spec
='${libname}${release}${shared_ext}$major'
9912 shlibpath_var
=LD_LIBRARY_PATH
9923 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9924 soname_spec
='${libname}${release}${shared_ext}$major'
9925 shlibpath_var
=LD_LIBRARY_PATH
9926 shlibpath_overrides_runpath
=no
9927 hardcode_into_libs
=yes
9928 dynamic_linker
='GNU ld.so'
9931 freebsd
* | dragonfly
*)
9932 # DragonFly does not have aout. When/if they implement a new
9933 # versioning mechanism, adjust this.
9934 if test -x /usr
/bin
/objformat
; then
9935 objformat
=`/usr/bin/objformat`
9938 freebsd
[123]*) objformat
=aout
;;
9942 version_type
=freebsd-
$objformat
9943 case $version_type in
9945 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9950 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9954 shlibpath_var
=LD_LIBRARY_PATH
9957 shlibpath_overrides_runpath
=yes
9959 freebsd3.
[01]* | freebsdelf3.
[01]*)
9960 shlibpath_overrides_runpath
=yes
9961 hardcode_into_libs
=yes
9963 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9964 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9965 shlibpath_overrides_runpath
=no
9966 hardcode_into_libs
=yes
9968 freebsd
*) # from 4.6 on
9969 shlibpath_overrides_runpath
=yes
9970 hardcode_into_libs
=yes
9979 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9980 soname_spec
='${libname}${release}${shared_ext}$major'
9981 shlibpath_var
=LD_LIBRARY_PATH
9982 hardcode_into_libs
=yes
9985 hpux9
* | hpux10
* | hpux11
*)
9986 # Give a soname corresponding to the major version so that dld.sl refuses to
9987 # link against other versions.
9994 hardcode_into_libs
=yes
9995 dynamic_linker
="$host_os dld.so"
9996 shlibpath_var
=LD_LIBRARY_PATH
9997 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9998 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999 soname_spec
='${libname}${release}${shared_ext}$major'
10000 if test "X$HPUX_IA64_MODE" = X32
; then
10001 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10003 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
10005 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10009 hardcode_into_libs
=yes
10010 dynamic_linker
="$host_os dld.sl"
10011 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10012 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10013 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014 soname_spec
='${libname}${release}${shared_ext}$major'
10015 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10016 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10020 dynamic_linker
="$host_os dld.sl"
10021 shlibpath_var
=SHLIB_PATH
10022 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024 soname_spec
='${libname}${release}${shared_ext}$major'
10027 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10028 postinstall_cmds
='chmod 555 $lib'
10035 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036 soname_spec
='${libname}${release}${shared_ext}$major'
10037 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10038 shlibpath_var
=LD_LIBRARY_PATH
10039 shlibpath_overrides_runpath
=no
10040 hardcode_into_libs
=yes
10043 irix5
* | irix6
* | nonstopux
*)
10045 nonstopux
*) version_type
=nonstopux
;;
10047 if test "$lt_cv_prog_gnu_ld" = yes; then
10055 soname_spec
='${libname}${release}${shared_ext}$major'
10056 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10058 irix5
* | nonstopux
*)
10059 libsuff
= shlibsuff
=
10062 case $LD in # libtool.m4 will add one of these switches to LD
10063 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10064 libsuff
= shlibsuff
= libmagic
=32-bit;;
10065 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10066 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10067 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10068 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10069 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10073 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10074 shlibpath_overrides_runpath
=no
10075 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10076 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10077 hardcode_into_libs
=yes
10080 # No shared lib support for Linux oldld, aout, or coff.
10081 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10085 # This must be Linux ELF.
10090 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091 soname_spec
='${libname}${release}${shared_ext}$major'
10092 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10093 shlibpath_var
=LD_LIBRARY_PATH
10094 shlibpath_overrides_runpath
=no
10095 # This implies no fast_install, which is unacceptable.
10096 # Some rework will be needed to allow for fast_install
10097 # before this can be enabled.
10098 hardcode_into_libs
=yes
10100 # Append ld.so.conf contents to the search path
10101 if test -f /etc
/ld.so.conf
; then
10102 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' ' '`
10103 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10106 # We used to test for /lib/ld.so.1 and disable shared libraries on
10107 # powerpc, because MkLinux only supported shared libraries with the
10108 # GNU dynamic linker. Since this was broken with cross compilers,
10109 # most powerpc-linux boxes support dynamic linking these days and
10110 # people can always --disable-shared, the test was removed, and we
10111 # assume the GNU/Linux dynamic linker is in use.
10112 dynamic_linker
='GNU/Linux ld.so'
10119 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10120 soname_spec
='${libname}${release}${shared_ext}$major'
10121 shlibpath_var
=LD_LIBRARY_PATH
10122 shlibpath_overrides_runpath
=no
10123 hardcode_into_libs
=yes
10124 dynamic_linker
='GNU ld.so'
10131 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10132 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10133 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10134 dynamic_linker
='NetBSD (a.out) ld.so'
10136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10137 soname_spec
='${libname}${release}${shared_ext}$major'
10138 dynamic_linker
='NetBSD ld.elf_so'
10140 shlibpath_var
=LD_LIBRARY_PATH
10141 shlibpath_overrides_runpath
=yes
10142 hardcode_into_libs
=yes
10147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148 shlibpath_var
=LD_LIBRARY_PATH
10149 shlibpath_overrides_runpath
=yes
10156 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157 soname_spec
='${libname}${release}${shared_ext}$major'
10158 shlibpath_var
=LD_LIBRARY_PATH
10159 shlibpath_overrides_runpath
=yes
10164 sys_lib_dlsearch_path_spec
="/usr/lib"
10166 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10168 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10169 *) need_version
=no
;;
10171 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10172 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10173 shlibpath_var
=LD_LIBRARY_PATH
10174 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10176 openbsd2.
[89] | openbsd2.
[89].
*)
10177 shlibpath_overrides_runpath
=no
10180 shlibpath_overrides_runpath
=yes
10184 shlibpath_overrides_runpath
=yes
10189 libname_spec
='$name'
10192 library_names_spec
='$libname${shared_ext} $libname.a'
10193 dynamic_linker
='OS/2 ld.exe'
10194 shlibpath_var
=LIBPATH
10197 osf3
* | osf4
* | osf5
*)
10201 soname_spec
='${libname}${release}${shared_ext}$major'
10202 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203 shlibpath_var
=LD_LIBRARY_PATH
10204 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10205 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10212 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213 soname_spec
='${libname}${release}${shared_ext}$major'
10214 shlibpath_var
=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath
=yes
10216 hardcode_into_libs
=yes
10217 # ldd complains unless libraries are executable
10218 postinstall_cmds
='chmod +x $lib'
10223 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10224 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10225 shlibpath_var
=LD_LIBRARY_PATH
10226 shlibpath_overrides_runpath
=yes
10227 if test "$with_gnu_ld" = yes; then
10235 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236 soname_spec
='${libname}${release}${shared_ext}$major'
10237 shlibpath_var
=LD_LIBRARY_PATH
10238 case $host_vendor in
10240 shlibpath_overrides_runpath
=no
10242 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10243 runpath_var
=LD_RUN_PATH
10251 shlibpath_overrides_runpath
=no
10252 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10258 if test -d /usr
/nec
;then
10260 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10261 soname_spec
='$libname${shared_ext}.$major'
10262 shlibpath_var
=LD_LIBRARY_PATH
10266 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10267 version_type
=freebsd-elf
10270 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10271 soname_spec
='${libname}${release}${shared_ext}$major'
10272 shlibpath_var
=LD_LIBRARY_PATH
10273 hardcode_into_libs
=yes
10274 if test "$with_gnu_ld" = yes; then
10275 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10276 shlibpath_overrides_runpath
=no
10278 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10279 shlibpath_overrides_runpath
=yes
10282 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10286 sys_lib_dlsearch_path_spec
='/usr/lib'
10291 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292 soname_spec
='${libname}${release}${shared_ext}$major'
10293 shlibpath_var
=LD_LIBRARY_PATH
10300 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10301 echo "${ECHO_T}$dynamic_linker" >&6; }
10302 test "$dynamic_linker" = no
&& can_build_shared
=no
10304 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10305 if test "$GCC" = yes; then
10306 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10310 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10311 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10312 if test "${libltdl_cv_shlibext+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10317 eval libltdl_cv_shlibext
=$shrext_cmds
10320 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10321 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10322 if test -n "$libltdl_cv_shlibext"; then
10324 cat >>confdefs.h
<<_ACEOF
10325 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10331 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10332 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10333 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10334 echo $ECHO_N "(cached) $ECHO_C" >&6
10336 libltdl_cv_shlibpath_var
="$shlibpath_var"
10338 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10339 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10340 if test -n "$libltdl_cv_shlibpath_var"; then
10342 cat >>confdefs.h
<<_ACEOF
10343 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10349 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10350 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10351 if test "${libltdl_cv_sys_search_path+set}" = set; then
10352 echo $ECHO_N "(cached) $ECHO_C" >&6
10354 libltdl_cv_sys_search_path
="$sys_lib_dlsearch_path_spec"
10356 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10357 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10358 if test -n "$libltdl_cv_sys_search_path"; then
10360 for dir
in $libltdl_cv_sys_search_path; do
10361 if test -z "$sys_search_path"; then
10362 sys_search_path
="$dir"
10364 sys_search_path
="$sys_search_path$PATH_SEPARATOR$dir"
10368 cat >>confdefs.h
<<_ACEOF
10369 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10374 { echo "$as_me:$LINENO: checking for objdir" >&5
10375 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10376 if test "${libltdl_cv_objdir+set}" = set; then
10377 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 libltdl_cv_objdir
="$objdir"
10380 if test -n "$objdir"; then
10383 rm -f .libs
2>/dev
/null
10384 mkdir .libs
2>/dev
/null
10385 if test -d .libs
; then
10386 libltdl_cv_objdir
=.libs
10388 # MS-DOS does not allow filenames that begin with a dot.
10389 libltdl_cv_objdir
=_libs
10391 rmdir .libs
2>/dev
/null
10395 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10396 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10398 cat >>confdefs.h
<<_ACEOF
10399 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10407 # Check for command to grab the raw symbol name followed by C symbol from nm.
10408 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10409 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10410 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10411 echo $ECHO_N "(cached) $ECHO_C" >&6
10414 # These are sane defaults that work on at least a few old systems.
10415 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10417 # Character class describing NM global symbol codes.
10418 symcode
='[BCDEGRST]'
10420 # Regexp to match symbols that can be accessed directly from C.
10421 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
10423 # Transform an extracted symbol line into a proper C declaration
10424 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10426 # Transform an extracted symbol line into symbol name and symbol address
10427 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'"
10429 # Define system-specific variables.
10434 cygwin
* | mingw
* | pw32
*)
10435 symcode
='[ABCDGISTW]'
10437 hpux
*) # Its linker distinguishes data from code symbols
10438 if test "$host_cpu" = ia64
; then
10439 symcode
='[ABCDEGRST]'
10441 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10442 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'"
10445 if test "$host_cpu" = ia64
; then
10446 symcode
='[ABCDGIRSTW]'
10447 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10448 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'"
10451 irix
* | nonstopux
*)
10452 symcode
='[BCDEGRST]'
10455 symcode
='[BCDEGQRST]'
10466 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10474 # Handle CRLF in mingw tool chain
10478 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10482 # If we're using GNU nm, then use its standard symbol codes.
10483 case `$NM -V 2>&1` in
10484 *GNU
* |
*'with BFD'*)
10485 symcode
='[ABCDGIRSTW]' ;;
10488 # Try without a prefix undercore, then with it.
10489 for ac_symprfx
in "" "_"; do
10491 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10492 symxfrm
="\\1 $ac_symprfx\\2 \\2"
10494 # Write the raw and C identifiers.
10495 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10497 # Check to see that the pipe works correctly.
10501 cat > conftest.
$ac_ext <<EOF
10506 void nm_test_func(){}
10510 int main(){nm_test_var='a';nm_test_func();return(0);}
10513 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10514 (eval $ac_compile) 2>&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); }; then
10518 # Now try to grab the symbols.
10520 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10521 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && test -s "$nlist"; then
10525 # Try sorting and uniquifying the output.
10526 if sort "$nlist" |
uniq > "$nlist"T
; then
10527 mv -f "$nlist"T
"$nlist"
10532 # Make sure that we snagged all the symbols we need.
10533 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
10534 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
10535 cat <<EOF > conftest.$ac_ext
10541 # Now generate the symbol file.
10542 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10544 cat <<EOF >> conftest.$ac_ext
10545 #if defined (__STDC__) && __STDC__
10546 # define lt_ptr_t void *
10548 # define lt_ptr_t char *
10552 /* The mapping between symbol names and symbols. */
10557 lt_preloaded_symbols[] =
10560 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
10561 cat <<\EOF
>> conftest.
$ac_ext
10569 # Now try linking the two files.
10570 mv conftest.
$ac_objext conftstm.
$ac_objext
10571 lt_save_LIBS
="$LIBS"
10572 lt_save_CFLAGS
="$CFLAGS"
10573 LIBS
="conftstm.$ac_objext"
10574 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10575 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576 (eval $ac_link) 2>&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
10582 LIBS
="$lt_save_LIBS"
10583 CFLAGS
="$lt_save_CFLAGS"
10585 echo "cannot find nm_test_func in $nlist" >&5
10588 echo "cannot find nm_test_var in $nlist" >&5
10591 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10594 echo "$progname: failed program was:" >&5
10595 cat conftest.
$ac_ext >&5
10597 rm -f conftest
* conftst
*
10599 # Do not use the global_symbol_pipe unless it works.
10600 if test "$pipe_works" = yes; then
10603 lt_cv_sys_global_symbol_pipe
=
10609 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10610 lt_cv_sys_global_symbol_to_cdecl
=
10612 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10613 { echo "$as_me:$LINENO: result: failed" >&5
10614 echo "${ECHO_T}failed" >&6; }
10616 { echo "$as_me:$LINENO: result: ok" >&5
10617 echo "${ECHO_T}ok" >&6; }
10621 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10622 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10623 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10624 echo $ECHO_N "(cached) $ECHO_C" >&6
10626 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10627 libltdl_cv_preloaded_symbols
=yes
10629 libltdl_cv_preloaded_symbols
=no
10633 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10634 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10635 if test x
"$libltdl_cv_preloaded_symbols" = xyes
; then
10637 cat >>confdefs.h
<<\_ACEOF
10638 #define HAVE_PRELOADED_SYMBOLS 1
10646 ac_cpp
='$CPP $CPPFLAGS'
10647 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10648 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10649 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10652 { echo "$as_me:$LINENO: checking for shl_load" >&5
10653 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10654 if test "${ac_cv_func_shl_load+set}" = set; then
10655 echo $ECHO_N "(cached) $ECHO_C" >&6
10657 cat >conftest.
$ac_ext <<_ACEOF
10660 cat confdefs.h
>>conftest.
$ac_ext
10661 cat >>conftest.
$ac_ext <<_ACEOF
10662 /* end confdefs.h. */
10663 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10665 #define shl_load innocuous_shl_load
10667 /* System header to define __stub macros and hopefully few prototypes,
10668 which can conflict with char shl_load (); below.
10669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10670 <limits.h> exists even on freestanding compilers. */
10673 # include <limits.h>
10675 # include <assert.h>
10680 /* Override any GCC internal prototype to avoid an error.
10681 Use char because int might match the return type of a GCC
10682 builtin and then its argument prototype would still apply. */
10687 /* The GNU C library defines this for functions which it implements
10688 to always fail with ENOSYS. Some functions are actually named
10689 something starting with __ and the normal name is an alias. */
10690 #if defined __stub_shl_load || defined __stub___shl_load
10697 return shl_load ();
10702 rm -f conftest.
$ac_objext conftest
$ac_exeext
10703 if { (ac_try
="$ac_link"
10704 case "(($ac_try" in
10705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10706 *) ac_try_echo=$ac_try;;
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709 (eval "$ac_link") 2>conftest.er1
10711 grep -v '^ *+' conftest.er1 >conftest.err
10713 cat conftest.err >&5
10714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } &&
10716 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10717 { (case "(($ac_try" in
10718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10719 *) ac_try_echo
=$ac_try;;
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722 (eval "$ac_try") 2>&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); }; } &&
10726 { ac_try
='test -s conftest$ac_exeext'
10727 { (case "(($ac_try" in
10728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; }; then
10736 ac_cv_func_shl_load=yes
10738 echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10741 ac_cv_func_shl_load=no
10744 rm -f core conftest.err conftest.$ac_objext \
10745 conftest$ac_exeext conftest.$ac_ext
10747 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10748 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10749 if test $ac_cv_func_shl_load = yes; then
10751 cat >>confdefs.h <<\_ACEOF
10752 #define HAVE_SHL_LOAD 1
10756 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10757 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10758 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 ac_check_lib_save_LIBS=$LIBS
10763 cat >conftest.$ac_ext <<_ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10770 /* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
10780 return shl_load ();
10785 rm -f conftest.$ac_objext conftest$ac_exeext
10786 if { (ac_try="$ac_link"
10787 case "(($ac_try" in
10788 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10789 *) ac_try_echo
=$ac_try;;
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_link") 2>conftest.er1
10794 grep -v '^ *+' conftest.er1
>conftest.err
10796 cat conftest.err
>&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10800 { (case "(($ac_try" in
10801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_try") 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest$ac_exeext'
10810 { (case "(($ac_try" in
10811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10812 *) ac_try_echo
=$ac_try;;
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_try") 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_cv_lib_dld_shl_load
=yes
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.
$ac_ext >&5
10824 ac_cv_lib_dld_shl_load
=no
10827 rm -f core conftest.err conftest.
$ac_objext \
10828 conftest
$ac_exeext conftest.
$ac_ext
10829 LIBS
=$ac_check_lib_save_LIBS
10831 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10832 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10833 if test $ac_cv_lib_dld_shl_load = yes; then
10835 cat >>confdefs.h
<<\_ACEOF
10836 #define HAVE_SHL_LOAD 1
10839 LIBADD_DL
="$LIBADD_DL -ldld"
10841 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10842 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10843 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 ac_check_lib_save_LIBS
=$LIBS
10848 cat >conftest.
$ac_ext <<_ACEOF
10851 cat confdefs.h
>>conftest.
$ac_ext
10852 cat >>conftest.
$ac_ext <<_ACEOF
10853 /* end confdefs.h. */
10855 /* Override any GCC internal prototype to avoid an error.
10856 Use char because int might match the return type of a GCC
10857 builtin and then its argument prototype would still apply. */
10870 rm -f conftest.
$ac_objext conftest
$ac_exeext
10871 if { (ac_try
="$ac_link"
10872 case "(($ac_try" in
10873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10874 *) ac_try_echo=$ac_try;;
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877 (eval "$ac_link") 2>conftest.er1
10879 grep -v '^ *+' conftest.er1 >conftest.err
10881 cat conftest.err >&5
10882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883 (exit $ac_status); } &&
10884 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10885 { (case "(($ac_try" in
10886 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10887 *) ac_try_echo
=$ac_try;;
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890 (eval "$ac_try") 2>&5
10892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893 (exit $ac_status); }; } &&
10894 { ac_try
='test -s conftest$ac_exeext'
10895 { (case "(($ac_try" in
10896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10897 *) ac_try_echo=$ac_try;;
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900 (eval "$ac_try") 2>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); }; }; then
10904 ac_cv_lib_dl_dlopen=yes
10906 echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10909 ac_cv_lib_dl_dlopen=no
10912 rm -f core conftest.err conftest.$ac_objext \
10913 conftest$ac_exeext conftest.$ac_ext
10914 LIBS=$ac_check_lib_save_LIBS
10916 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10917 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10918 if test $ac_cv_lib_dl_dlopen = yes; then
10920 cat >>confdefs.h <<\_ACEOF
10921 #define HAVE_LIBDL 1
10924 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10926 cat >conftest.$ac_ext <<_ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h. */
10933 # include <dlfcn.h>
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (ac_try="$ac_link"
10946 case "(($ac_try" in
10947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10948 *) ac_try_echo
=$ac_try;;
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951 (eval "$ac_link") 2>conftest.er1
10953 grep -v '^ *+' conftest.er1
>conftest.err
10955 cat conftest.err
>&5
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); } &&
10958 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10959 { (case "(($ac_try" in
10960 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10961 *) ac_try_echo=$ac_try;;
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964 (eval "$ac_try") 2>&5
10966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967 (exit $ac_status); }; } &&
10968 { ac_try='test -s conftest$ac_exeext'
10969 { (case "(($ac_try" in
10970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10971 *) ac_try_echo
=$ac_try;;
10973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10974 (eval "$ac_try") 2>&5
10976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977 (exit $ac_status); }; }; then
10979 cat >>confdefs.h
<<\_ACEOF
10980 #define HAVE_LIBDL 1
10982 libltdl_cv_func_dlopen
="yes"
10984 echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.
$ac_ext >&5
10987 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10988 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10989 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 ac_check_lib_save_LIBS
=$LIBS
10993 LIBS
="-lsvld $LIBS"
10994 cat >conftest.
$ac_ext <<_ACEOF
10997 cat confdefs.h
>>conftest.
$ac_ext
10998 cat >>conftest.
$ac_ext <<_ACEOF
10999 /* end confdefs.h. */
11001 /* Override any GCC internal prototype to avoid an error.
11002 Use char because int might match the return type of a GCC
11003 builtin and then its argument prototype would still apply. */
11016 rm -f conftest.
$ac_objext conftest
$ac_exeext
11017 if { (ac_try
="$ac_link"
11018 case "(($ac_try" in
11019 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023 (eval "$ac_link") 2>conftest.er1
11025 grep -v '^ *+' conftest.er1 >conftest.err
11027 cat conftest.err >&5
11028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029 (exit $ac_status); } &&
11030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11031 { (case "(($ac_try" in
11032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11033 *) ac_try_echo
=$ac_try;;
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036 (eval "$ac_try") 2>&5
11038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039 (exit $ac_status); }; } &&
11040 { ac_try
='test -s conftest$ac_exeext'
11041 { (case "(($ac_try" in
11042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11043 *) ac_try_echo=$ac_try;;
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046 (eval "$ac_try") 2>&5
11048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049 (exit $ac_status); }; }; then
11050 ac_cv_lib_svld_dlopen=yes
11052 echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11055 ac_cv_lib_svld_dlopen=no
11058 rm -f core conftest.err conftest.$ac_objext \
11059 conftest$ac_exeext conftest.$ac_ext
11060 LIBS=$ac_check_lib_save_LIBS
11062 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11063 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11064 if test $ac_cv_lib_svld_dlopen = yes; then
11066 cat >>confdefs.h <<\_ACEOF
11067 #define HAVE_LIBDL 1
11070 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11072 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11073 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11074 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11075 echo $ECHO_N "(cached) $ECHO_C" >&6
11077 ac_check_lib_save_LIBS=$LIBS
11079 cat >conftest.$ac_ext <<_ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11086 /* Override any GCC internal prototype to avoid an error.
11087 Use char because int might match the return type of a GCC
11088 builtin and then its argument prototype would still apply. */
11096 return dld_link ();
11101 rm -f conftest.$ac_objext conftest$ac_exeext
11102 if { (ac_try="$ac_link"
11103 case "(($ac_try" in
11104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11105 *) ac_try_echo
=$ac_try;;
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108 (eval "$ac_link") 2>conftest.er1
11110 grep -v '^ *+' conftest.er1
>conftest.err
11112 cat conftest.err
>&5
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } &&
11115 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11116 { (case "(($ac_try" in
11117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121 (eval "$ac_try") 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); }; } &&
11125 { ac_try='test -s conftest$ac_exeext'
11126 { (case "(($ac_try" in
11127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11128 *) ac_try_echo
=$ac_try;;
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_try") 2>&5
11133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); }; }; then
11135 ac_cv_lib_dld_dld_link
=yes
11137 echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.
$ac_ext >&5
11140 ac_cv_lib_dld_dld_link
=no
11143 rm -f core conftest.err conftest.
$ac_objext \
11144 conftest
$ac_exeext conftest.
$ac_ext
11145 LIBS
=$ac_check_lib_save_LIBS
11147 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11148 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11149 if test $ac_cv_lib_dld_dld_link = yes; then
11151 cat >>confdefs.h
<<\_ACEOF
11155 LIBADD_DL
="$LIBADD_DL -ldld"
11157 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11158 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11159 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11160 echo $ECHO_N "(cached) $ECHO_C" >&6
11162 cat >conftest.
$ac_ext <<_ACEOF
11165 cat confdefs.h
>>conftest.
$ac_ext
11166 cat >>conftest.
$ac_ext <<_ACEOF
11167 /* end confdefs.h. */
11168 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11170 #define _dyld_func_lookup innocuous__dyld_func_lookup
11172 /* System header to define __stub macros and hopefully few prototypes,
11173 which can conflict with char _dyld_func_lookup (); below.
11174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175 <limits.h> exists even on freestanding compilers. */
11178 # include <limits.h>
11180 # include <assert.h>
11183 #undef _dyld_func_lookup
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11191 char _dyld_func_lookup ();
11192 /* The GNU C library defines this for functions which it implements
11193 to always fail with ENOSYS. Some functions are actually named
11194 something starting with __ and the normal name is an alias. */
11195 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11202 return _dyld_func_lookup ();
11207 rm -f conftest.
$ac_objext conftest
$ac_exeext
11208 if { (ac_try
="$ac_link"
11209 case "(($ac_try" in
11210 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11211 *) ac_try_echo=$ac_try;;
11213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214 (eval "$ac_link") 2>conftest.er1
11216 grep -v '^ *+' conftest.er1 >conftest.err
11218 cat conftest.err >&5
11219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220 (exit $ac_status); } &&
11221 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11222 { (case "(($ac_try" in
11223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11224 *) ac_try_echo
=$ac_try;;
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_try") 2>&5
11229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230 (exit $ac_status); }; } &&
11231 { ac_try
='test -s conftest$ac_exeext'
11232 { (case "(($ac_try" in
11233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11234 *) ac_try_echo=$ac_try;;
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237 (eval "$ac_try") 2>&5
11239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240 (exit $ac_status); }; }; then
11241 ac_cv_func__dyld_func_lookup=yes
11243 echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11246 ac_cv_func__dyld_func_lookup=no
11249 rm -f core conftest.err conftest.$ac_objext \
11250 conftest$ac_exeext conftest.$ac_ext
11252 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11253 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11254 if test $ac_cv_func__dyld_func_lookup = yes; then
11256 cat >>confdefs.h <<\_ACEOF
11257 #define HAVE_DYLD 1
11271 rm -f core conftest.err conftest.$ac_objext \
11272 conftest$ac_exeext conftest.$ac_ext
11283 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11285 lt_save_LIBS="$LIBS"
11286 LIBS="$LIBS $LIBADD_DL"
11288 for ac_func in dlerror
11290 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11294 echo $ECHO_N "(cached) $ECHO_C" >&6
11296 cat >conftest.$ac_ext <<_ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h. */
11302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11304 #define $ac_func innocuous_$ac_func
11306 /* System header to define __stub macros and hopefully few prototypes,
11307 which can conflict with char $ac_func (); below.
11308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11309 <limits.h> exists even on freestanding compilers. */
11312 # include <limits.h>
11314 # include <assert.h>
11319 /* Override any GCC internal prototype to avoid an error.
11320 Use char because int might match the return type of a GCC
11321 builtin and then its argument prototype would still apply. */
11326 /* The GNU C library defines this for functions which it implements
11327 to always fail with ENOSYS. Some functions are actually named
11328 something starting with __ and the normal name is an alias. */
11329 #if defined __stub_$ac_func || defined __stub___$ac_func
11336 return $ac_func ();
11341 rm -f conftest.$ac_objext conftest$ac_exeext
11342 if { (ac_try="$ac_link"
11343 case "(($ac_try" in
11344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11345 *) ac_try_echo
=$ac_try;;
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348 (eval "$ac_link") 2>conftest.er1
11350 grep -v '^ *+' conftest.er1
>conftest.err
11352 cat conftest.err
>&5
11353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354 (exit $ac_status); } &&
11355 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11356 { (case "(($ac_try" in
11357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11358 *) ac_try_echo=$ac_try;;
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361 (eval "$ac_try") 2>&5
11363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364 (exit $ac_status); }; } &&
11365 { ac_try='test -s conftest$ac_exeext'
11366 { (case "(($ac_try" in
11367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11368 *) ac_try_echo
=$ac_try;;
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371 (eval "$ac_try") 2>&5
11373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374 (exit $ac_status); }; }; then
11375 eval "$as_ac_var=yes"
11377 echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.
$ac_ext >&5
11380 eval "$as_ac_var=no"
11383 rm -f core conftest.err conftest.
$ac_objext \
11384 conftest
$ac_exeext conftest.
$ac_ext
11386 ac_res
=`eval echo '${'$as_ac_var'}'`
11387 { echo "$as_me:$LINENO: result: $ac_res" >&5
11388 echo "${ECHO_T}$ac_res" >&6; }
11389 if test `eval echo '${'$as_ac_var'}'` = yes; then
11390 cat >>confdefs.h
<<_ACEOF
11391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11397 LIBS
="$lt_save_LIBS"
11400 ac_cpp
='$CPP $CPPFLAGS'
11401 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11402 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11403 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11407 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11408 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11409 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11410 echo $ECHO_N "(cached) $ECHO_C" >&6
11412 ac_cv_sys_symbol_underscore
=no
11413 cat > conftest.
$ac_ext <<EOF
11414 void nm_test_func(){}
11415 int main(){nm_test_func;return 0;}
11417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11418 (eval $ac_compile) 2>&5
11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421 (exit $ac_status); }; then
11422 # Now try to grab the symbols.
11423 ac_nlist
=conftest.nm
11424 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11425 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5
11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428 (exit $ac_status); } && test -s "$ac_nlist"; then
11429 # See whether the symbols have a leading underscore.
11430 if grep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
11431 ac_cv_sys_symbol_underscore
=yes
11433 if grep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
11436 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11440 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11443 echo "configure: failed program was:" >&5
11449 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11450 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11453 if test x
"$ac_cv_sys_symbol_underscore" = xyes
; then
11454 if test x
"$libltdl_cv_func_dlopen" = xyes ||
11455 test x
"$libltdl_cv_lib_dl_dlopen" = xyes
; then
11456 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11457 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11458 if test "${libltdl_cv_need_uscore+set}" = set; then
11459 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 libltdl_cv_need_uscore
=unknown
11463 LIBS
="$LIBS $LIBADD_DL"
11464 if test "$cross_compiling" = yes; then :
11465 libltdl_cv_need_uscore
=cross
11467 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11468 lt_status
=$lt_dlunknown
11469 cat > conftest.
$ac_ext <<EOF
11470 #line 11470 "configure"
11471 #include "confdefs.h"
11480 # define LT_DLGLOBAL RTLD_GLOBAL
11483 # define LT_DLGLOBAL DL_GLOBAL
11485 # define LT_DLGLOBAL 0
11489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11490 find out it does not work in some platform. */
11491 #ifndef LT_DLLAZY_OR_NOW
11493 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11496 # define LT_DLLAZY_OR_NOW DL_LAZY
11499 # define LT_DLLAZY_OR_NOW RTLD_NOW
11502 # define LT_DLLAZY_OR_NOW DL_NOW
11504 # define LT_DLLAZY_OR_NOW 0
11512 extern "C" void exit (int);
11515 void fnord() { int i=42;}
11518 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11519 int status = $lt_dlunknown;
11523 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11524 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11525 /* dlclose (self); */
11533 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534 (eval $ac_link) 2>&5
11536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11538 (.
/conftest
; exit; ) >&5 2>/dev
/null
11540 case x
$lt_status in
11541 x
$lt_dlno_uscore) libltdl_cv_need_uscore
=no
;;
11542 x
$lt_dlneed_uscore) libltdl_cv_need_uscore
=yes ;;
11543 x
$lt_dlunknown|x
*) ;;
11546 # compilation failed
11555 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11556 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11560 if test x
"$libltdl_cv_need_uscore" = xyes
; then
11562 cat >>confdefs.h
<<\_ACEOF
11563 #define NEED_USCORE 1
11569 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11570 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11571 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 # PORTME does your system automatically load deplibs for dlopen?
11575 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11576 # For now, we just catch OSes we know something about -- in the
11577 # future, we'll try test this programmatically.
11578 libltdl_cv_sys_dlopen_deplibs
=unknown
11580 aix3
*|aix4.1.
*|aix4.2.
*)
11581 # Unknown whether this is true for these versions of AIX, but
11582 # we want this `case' here to explicitly catch those versions.
11583 libltdl_cv_sys_dlopen_deplibs
=unknown
11586 libltdl_cv_sys_dlopen_deplibs
=yes
11589 # Assuming the user has installed a libdl from somewhere, this is true
11590 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11591 libltdl_cv_sys_dlopen_deplibs
=yes
11593 gnu
* | linux
* | kfreebsd
*-gnu | knetbsd
*-gnu)
11594 # GNU and its variants, using gnu ld.so (Glibc)
11595 libltdl_cv_sys_dlopen_deplibs
=yes
11598 libltdl_cv_sys_dlopen_deplibs
=yes
11601 libltdl_cv_sys_dlopen_deplibs
=yes
11603 irix
[12345]*|irix6.
[01]*)
11604 # Catch all versions of IRIX before 6.2, and indicate that we don't
11605 # know how it worked for any of those versions.
11606 libltdl_cv_sys_dlopen_deplibs
=unknown
11609 # The case above catches anything before 6.2, and it's known that
11610 # at 6.2 and later dlopen does load deplibs.
11611 libltdl_cv_sys_dlopen_deplibs
=yes
11614 libltdl_cv_sys_dlopen_deplibs
=yes
11617 libltdl_cv_sys_dlopen_deplibs
=yes
11620 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11621 # it did *not* use an RPATH in a shared library to find objects the
11622 # library depends on, so we explictly say `no'.
11623 libltdl_cv_sys_dlopen_deplibs
=no
11625 osf5.0|osf5.0a|osf5.1
)
11626 # dlopen *does* load deplibs and with the right loader patch applied
11627 # it even uses RPATH in a shared library to search for shared objects
11628 # that the library depends on, but there's no easy way to know if that
11629 # patch is installed. Since this is the case, all we can really
11630 # say is unknown -- it depends on the patch being installed. If
11631 # it is, this changes to `yes'. Without it, it would be `no'.
11632 libltdl_cv_sys_dlopen_deplibs
=unknown
11635 # the two cases above should catch all versions of osf <= 5.1. Read
11636 # the comments above for what we know about them.
11637 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11638 # is used to find them so we can finally say `yes'.
11639 libltdl_cv_sys_dlopen_deplibs
=yes
11642 libltdl_cv_sys_dlopen_deplibs
=yes
11644 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11645 libltdl_cv_sys_dlopen_deplibs
=yes
11650 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11651 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11652 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11654 cat >>confdefs.h
<<\_ACEOF
11655 #define LTDL_DLOPEN_DEPLIBS 1
11661 for ac_header
in argz.h
11663 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11664 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11665 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11667 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 ac_res
=`eval echo '${'$as_ac_Header'}'`
11671 { echo "$as_me:$LINENO: result: $ac_res" >&5
11672 echo "${ECHO_T}$ac_res" >&6; }
11674 # Is the header compilable?
11675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11677 cat >conftest.
$ac_ext <<_ACEOF
11680 cat confdefs.h
>>conftest.
$ac_ext
11681 cat >>conftest.
$ac_ext <<_ACEOF
11682 /* end confdefs.h. */
11683 $ac_includes_default
11684 #include <$ac_header>
11686 rm -f conftest.
$ac_objext
11687 if { (ac_try
="$ac_compile"
11688 case "(($ac_try" in
11689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_compile") 2>conftest.er1
11695 grep -v '^ *+' conftest.er1 >conftest.err
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } &&
11700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701 { (case "(($ac_try" in
11702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11703 *) ac_try_echo
=$ac_try;;
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706 (eval "$ac_try") 2>&5
11708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709 (exit $ac_status); }; } &&
11710 { ac_try
='test -s conftest.$ac_objext'
11711 { (case "(($ac_try" in
11712 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11713 *) ac_try_echo=$ac_try;;
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716 (eval "$ac_try") 2>&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); }; }; then
11720 ac_header_compiler=yes
11722 echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11725 ac_header_compiler=no
11728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11730 echo "${ECHO_T}$ac_header_compiler" >&6; }
11732 # Is the header present?
11733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11735 cat >conftest.$ac_ext <<_ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h. */
11741 #include <$ac_header>
11743 if { (ac_try="$ac_cpp conftest.$ac_ext"
11744 case "(($ac_try" in
11745 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11746 *) ac_try_echo
=$ac_try;;
11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11751 grep -v '^ *+' conftest.er1
>conftest.err
11753 cat conftest.err
>&5
11754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755 (exit $ac_status); } >/dev
/null
; then
11756 if test -s conftest.err
; then
11757 ac_cpp_err
=$ac_c_preproc_warn_flag
11758 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11765 if test -z "$ac_cpp_err"; then
11766 ac_header_preproc
=yes
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.
$ac_ext >&5
11771 ac_header_preproc
=no
11774 rm -f conftest.err conftest.
$ac_ext
11775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11776 echo "${ECHO_T}$ac_header_preproc" >&6; }
11778 # So? What about this header?
11779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11785 ac_header_preproc
=yes
11788 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11790 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11791 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11792 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11794 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11795 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11796 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11798 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11801 ## ----------------------------------- ##
11802 ## Report this to llvmbugs@cs.uiuc.edu ##
11803 ## ----------------------------------- ##
11805 ) |
sed "s/^/$as_me: WARNING: /" >&2
11808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11810 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11811 echo $ECHO_N "(cached) $ECHO_C" >&6
11813 eval "$as_ac_Header=\$ac_header_preproc"
11815 ac_res
=`eval echo '${'$as_ac_Header'}'`
11816 { echo "$as_me:$LINENO: result: $ac_res" >&5
11817 echo "${ECHO_T}$ac_res" >&6; }
11820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11821 cat >>confdefs.h
<<_ACEOF
11822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11830 { echo "$as_me:$LINENO: checking for error_t" >&5
11831 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11832 if test "${ac_cv_type_error_t+set}" = set; then
11833 echo $ECHO_N "(cached) $ECHO_C" >&6
11835 cat >conftest.
$ac_ext <<_ACEOF
11838 cat confdefs.h
>>conftest.
$ac_ext
11839 cat >>conftest.
$ac_ext <<_ACEOF
11840 /* end confdefs.h. */
11845 typedef error_t ac__type_new_;
11849 if ((ac__type_new_ *) 0)
11851 if (sizeof (ac__type_new_))
11857 rm -f conftest.
$ac_objext
11858 if { (ac_try
="$ac_compile"
11859 case "(($ac_try" in
11860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11861 *) ac_try_echo=$ac_try;;
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864 (eval "$ac_compile") 2>conftest.er1
11866 grep -v '^ *+' conftest.er1 >conftest.err
11868 cat conftest.err >&5
11869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870 (exit $ac_status); } &&
11871 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11872 { (case "(($ac_try" in
11873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11874 *) ac_try_echo
=$ac_try;;
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_try") 2>&5
11879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880 (exit $ac_status); }; } &&
11881 { ac_try
='test -s conftest.$ac_objext'
11882 { (case "(($ac_try" in
11883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11884 *) ac_try_echo=$ac_try;;
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887 (eval "$ac_try") 2>&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); }; }; then
11891 ac_cv_type_error_t=yes
11893 echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11896 ac_cv_type_error_t=no
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11901 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11902 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11903 if test $ac_cv_type_error_t = yes; then
11905 cat >>confdefs.h <<_ACEOF
11906 #define HAVE_ERROR_T 1
11912 cat >>confdefs.h <<\_ACEOF
11913 #define error_t int
11924 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11926 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11932 cat >conftest.$ac_ext <<_ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11939 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11940 #define $ac_func innocuous_$ac_func
11942 /* System header to define __stub macros and hopefully few prototypes,
11943 which can conflict with char $ac_func (); below.
11944 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11945 <limits.h> exists even on freestanding compilers. */
11948 # include <limits.h>
11950 # include <assert.h>
11955 /* Override any GCC internal prototype to avoid an error.
11956 Use char because int might match the return type of a GCC
11957 builtin and then its argument prototype would still apply. */
11962 /* The GNU C library defines this for functions which it implements
11963 to always fail with ENOSYS. Some functions are actually named
11964 something starting with __ and the normal name is an alias. */
11965 #if defined __stub_$ac_func || defined __stub___$ac_func
11972 return $ac_func ();
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (ac_try="$ac_link"
11979 case "(($ac_try" in
11980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11981 *) ac_try_echo
=$ac_try;;
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_link") 2>conftest.er1
11986 grep -v '^ *+' conftest.er1
>conftest.err
11988 cat conftest.err
>&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } &&
11991 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11992 { (case "(($ac_try" in
11993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_try") 2>&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); }; } &&
12001 { ac_try='test -s conftest$ac_exeext'
12002 { (case "(($ac_try" in
12003 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12004 *) ac_try_echo
=$ac_try;;
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007 (eval "$ac_try") 2>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); }; }; then
12011 eval "$as_ac_var=yes"
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.
$ac_ext >&5
12016 eval "$as_ac_var=no"
12019 rm -f core conftest.err conftest.
$ac_objext \
12020 conftest
$ac_exeext conftest.
$ac_ext
12022 ac_res
=`eval echo '${'$as_ac_var'}'`
12023 { echo "$as_me:$LINENO: result: $ac_res" >&5
12024 echo "${ECHO_T}$ac_res" >&6; }
12025 if test `eval echo '${'$as_ac_var'}'` = yes; then
12026 cat >>confdefs.h
<<_ACEOF
12027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12060 for ac_header
in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12063 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12064 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12065 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12067 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12068 echo $ECHO_N "(cached) $ECHO_C" >&6
12070 ac_res
=`eval echo '${'$as_ac_Header'}'`
12071 { echo "$as_me:$LINENO: result: $ac_res" >&5
12072 echo "${ECHO_T}$ac_res" >&6; }
12074 # Is the header compilable?
12075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12077 cat >conftest.
$ac_ext <<_ACEOF
12080 cat confdefs.h
>>conftest.
$ac_ext
12081 cat >>conftest.
$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12083 $ac_includes_default
12084 #include <$ac_header>
12086 rm -f conftest.
$ac_objext
12087 if { (ac_try
="$ac_compile"
12088 case "(($ac_try" in
12089 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12090 *) ac_try_echo=$ac_try;;
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093 (eval "$ac_compile") 2>conftest.er1
12095 grep -v '^ *+' conftest.er1 >conftest.err
12097 cat conftest.err >&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); } &&
12100 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12101 { (case "(($ac_try" in
12102 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12103 *) ac_try_echo
=$ac_try;;
12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106 (eval "$ac_try") 2>&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); }; } &&
12110 { ac_try
='test -s conftest.$ac_objext'
12111 { (case "(($ac_try" in
12112 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12113 *) ac_try_echo=$ac_try;;
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_try") 2>&5
12118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119 (exit $ac_status); }; }; then
12120 ac_header_compiler=yes
12122 echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12125 ac_header_compiler=no
12128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12130 echo "${ECHO_T}$ac_header_compiler" >&6; }
12132 # Is the header present?
12133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12135 cat >conftest.$ac_ext <<_ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 #include <$ac_header>
12143 if { (ac_try="$ac_cpp conftest.$ac_ext"
12144 case "(($ac_try" in
12145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12146 *) ac_try_echo
=$ac_try;;
12148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12151 grep -v '^ *+' conftest.er1
>conftest.err
12153 cat conftest.err
>&5
12154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155 (exit $ac_status); } >/dev
/null
; then
12156 if test -s conftest.err
; then
12157 ac_cpp_err
=$ac_c_preproc_warn_flag
12158 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12165 if test -z "$ac_cpp_err"; then
12166 ac_header_preproc
=yes
12168 echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.
$ac_ext >&5
12171 ac_header_preproc
=no
12174 rm -f conftest.err conftest.
$ac_ext
12175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12176 echo "${ECHO_T}$ac_header_preproc" >&6; }
12178 # So? What about this header?
12179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12185 ac_header_preproc
=yes
12188 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12190 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12191 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12195 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12201 ## ----------------------------------- ##
12202 ## Report this to llvmbugs@cs.uiuc.edu ##
12203 ## ----------------------------------- ##
12205 ) |
sed "s/^/$as_me: WARNING: /" >&2
12208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12210 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 eval "$as_ac_Header=\$ac_header_preproc"
12215 ac_res
=`eval echo '${'$as_ac_Header'}'`
12216 { echo "$as_me:$LINENO: result: $ac_res" >&5
12217 echo "${ECHO_T}$ac_res" >&6; }
12220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12221 cat >>confdefs.h
<<_ACEOF
12222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12233 for ac_header
in dl.h sys
/dl.h dld.h mach-o
/dyld.h
12235 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12236 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12239 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12240 echo $ECHO_N "(cached) $ECHO_C" >&6
12242 ac_res
=`eval echo '${'$as_ac_Header'}'`
12243 { echo "$as_me:$LINENO: result: $ac_res" >&5
12244 echo "${ECHO_T}$ac_res" >&6; }
12246 # Is the header compilable?
12247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12249 cat >conftest.
$ac_ext <<_ACEOF
12252 cat confdefs.h
>>conftest.
$ac_ext
12253 cat >>conftest.
$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 $ac_includes_default
12256 #include <$ac_header>
12258 rm -f conftest.
$ac_objext
12259 if { (ac_try
="$ac_compile"
12260 case "(($ac_try" in
12261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12262 *) ac_try_echo=$ac_try;;
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_compile") 2>conftest.er1
12267 grep -v '^ *+' conftest.er1 >conftest.err
12269 cat conftest.err >&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } &&
12272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12273 { (case "(($ac_try" in
12274 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12275 *) ac_try_echo
=$ac_try;;
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278 (eval "$ac_try") 2>&5
12280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281 (exit $ac_status); }; } &&
12282 { ac_try
='test -s conftest.$ac_objext'
12283 { (case "(($ac_try" in
12284 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_try") 2>&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); }; }; then
12292 ac_header_compiler=yes
12294 echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12297 ac_header_compiler=no
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12302 echo "${ECHO_T}$ac_header_compiler" >&6; }
12304 # Is the header present?
12305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12307 cat >conftest.$ac_ext <<_ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12313 #include <$ac_header>
12315 if { (ac_try="$ac_cpp conftest.$ac_ext"
12316 case "(($ac_try" in
12317 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12318 *) ac_try_echo
=$ac_try;;
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12323 grep -v '^ *+' conftest.er1
>conftest.err
12325 cat conftest.err
>&5
12326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327 (exit $ac_status); } >/dev
/null
; then
12328 if test -s conftest.err
; then
12329 ac_cpp_err
=$ac_c_preproc_warn_flag
12330 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12337 if test -z "$ac_cpp_err"; then
12338 ac_header_preproc
=yes
12340 echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.
$ac_ext >&5
12343 ac_header_preproc
=no
12346 rm -f conftest.err conftest.
$ac_ext
12347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12348 echo "${ECHO_T}$ac_header_preproc" >&6; }
12350 # So? What about this header?
12351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12357 ac_header_preproc
=yes
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12373 ## ----------------------------------- ##
12374 ## Report this to llvmbugs@cs.uiuc.edu ##
12375 ## ----------------------------------- ##
12377 ) |
sed "s/^/$as_me: WARNING: /" >&2
12380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12382 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383 echo $ECHO_N "(cached) $ECHO_C" >&6
12385 eval "$as_ac_Header=\$ac_header_preproc"
12387 ac_res
=`eval echo '${'$as_ac_Header'}'`
12388 { echo "$as_me:$LINENO: result: $ac_res" >&5
12389 echo "${ECHO_T}$ac_res" >&6; }
12392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12393 cat >>confdefs.h
<<_ACEOF
12394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12403 for ac_header
in string.h
strings.h
12405 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12406 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12409 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12410 echo $ECHO_N "(cached) $ECHO_C" >&6
12412 ac_res
=`eval echo '${'$as_ac_Header'}'`
12413 { echo "$as_me:$LINENO: result: $ac_res" >&5
12414 echo "${ECHO_T}$ac_res" >&6; }
12416 # Is the header compilable?
12417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12419 cat >conftest.
$ac_ext <<_ACEOF
12422 cat confdefs.h
>>conftest.
$ac_ext
12423 cat >>conftest.
$ac_ext <<_ACEOF
12424 /* end confdefs.h. */
12425 $ac_includes_default
12426 #include <$ac_header>
12428 rm -f conftest.
$ac_objext
12429 if { (ac_try
="$ac_compile"
12430 case "(($ac_try" in
12431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12432 *) ac_try_echo=$ac_try;;
12434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435 (eval "$ac_compile") 2>conftest.er1
12437 grep -v '^ *+' conftest.er1 >conftest.err
12439 cat conftest.err >&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 (exit $ac_status); } &&
12442 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12443 { (case "(($ac_try" in
12444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12445 *) ac_try_echo
=$ac_try;;
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448 (eval "$ac_try") 2>&5
12450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451 (exit $ac_status); }; } &&
12452 { ac_try
='test -s conftest.$ac_objext'
12453 { (case "(($ac_try" in
12454 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_try") 2>&5
12460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461 (exit $ac_status); }; }; then
12462 ac_header_compiler=yes
12464 echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12467 ac_header_compiler=no
12470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12472 echo "${ECHO_T}$ac_header_compiler" >&6; }
12474 # Is the header present?
12475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12477 cat >conftest.$ac_ext <<_ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h. */
12483 #include <$ac_header>
12485 if { (ac_try="$ac_cpp conftest.$ac_ext"
12486 case "(($ac_try" in
12487 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12488 *) ac_try_echo
=$ac_try;;
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12493 grep -v '^ *+' conftest.er1
>conftest.err
12495 cat conftest.err
>&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 (exit $ac_status); } >/dev
/null
; then
12498 if test -s conftest.err
; then
12499 ac_cpp_err
=$ac_c_preproc_warn_flag
12500 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12507 if test -z "$ac_cpp_err"; then
12508 ac_header_preproc
=yes
12510 echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.
$ac_ext >&5
12513 ac_header_preproc
=no
12516 rm -f conftest.err conftest.
$ac_ext
12517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12518 echo "${ECHO_T}$ac_header_preproc" >&6; }
12520 # So? What about this header?
12521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12527 ac_header_preproc
=yes
12530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12543 ## ----------------------------------- ##
12544 ## Report this to llvmbugs@cs.uiuc.edu ##
12545 ## ----------------------------------- ##
12547 ) |
sed "s/^/$as_me: WARNING: /" >&2
12550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12552 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12553 echo $ECHO_N "(cached) $ECHO_C" >&6
12555 eval "$as_ac_Header=\$ac_header_preproc"
12557 ac_res
=`eval echo '${'$as_ac_Header'}'`
12558 { echo "$as_me:$LINENO: result: $ac_res" >&5
12559 echo "${ECHO_T}$ac_res" >&6; }
12562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12563 cat >>confdefs.h
<<_ACEOF
12564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12574 for ac_func
in strchr index
12576 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12579 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12580 echo $ECHO_N "(cached) $ECHO_C" >&6
12582 cat >conftest.
$ac_ext <<_ACEOF
12585 cat confdefs.h
>>conftest.
$ac_ext
12586 cat >>conftest.
$ac_ext <<_ACEOF
12587 /* end confdefs.h. */
12588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12589 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12590 #define $ac_func innocuous_$ac_func
12592 /* System header to define __stub macros and hopefully few prototypes,
12593 which can conflict with char $ac_func (); below.
12594 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12595 <limits.h> exists even on freestanding compilers. */
12598 # include <limits.h>
12600 # include <assert.h>
12605 /* Override any GCC internal prototype to avoid an error.
12606 Use char because int might match the return type of a GCC
12607 builtin and then its argument prototype would still apply. */
12612 /* The GNU C library defines this for functions which it implements
12613 to always fail with ENOSYS. Some functions are actually named
12614 something starting with __ and the normal name is an alias. */
12615 #if defined __stub_$ac_func || defined __stub___$ac_func
12622 return $ac_func ();
12627 rm -f conftest.
$ac_objext conftest
$ac_exeext
12628 if { (ac_try
="$ac_link"
12629 case "(($ac_try" in
12630 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12631 *) ac_try_echo=$ac_try;;
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634 (eval "$ac_link") 2>conftest.er1
12636 grep -v '^ *+' conftest.er1 >conftest.err
12638 cat conftest.err >&5
12639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640 (exit $ac_status); } &&
12641 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642 { (case "(($ac_try" in
12643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12644 *) ac_try_echo
=$ac_try;;
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_try") 2>&5
12649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650 (exit $ac_status); }; } &&
12651 { ac_try
='test -s conftest$ac_exeext'
12652 { (case "(($ac_try" in
12653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12654 *) ac_try_echo=$ac_try;;
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657 (eval "$ac_try") 2>&5
12659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660 (exit $ac_status); }; }; then
12661 eval "$as_ac_var=yes"
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12666 eval "$as_ac_var=no"
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12672 ac_res=`eval echo '${'$as_ac_var'}'`
12673 { echo "$as_me:$LINENO: result: $ac_res" >&5
12674 echo "${ECHO_T}$ac_res" >&6; }
12675 if test `eval echo '${'$as_ac_var'}'` = yes; then
12676 cat >>confdefs.h <<_ACEOF
12677 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12685 for ac_func in strrchr rindex
12687 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12691 echo $ECHO_N "(cached) $ECHO_C" >&6
12693 cat >conftest.$ac_ext <<_ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h. */
12699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12701 #define $ac_func innocuous_$ac_func
12703 /* System header to define __stub macros and hopefully few prototypes,
12704 which can conflict with char $ac_func (); below.
12705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12706 <limits.h> exists even on freestanding compilers. */
12709 # include <limits.h>
12711 # include <assert.h>
12716 /* Override any GCC internal prototype to avoid an error.
12717 Use char because int might match the return type of a GCC
12718 builtin and then its argument prototype would still apply. */
12723 /* The GNU C library defines this for functions which it implements
12724 to always fail with ENOSYS. Some functions are actually named
12725 something starting with __ and the normal name is an alias. */
12726 #if defined __stub_$ac_func || defined __stub___$ac_func
12733 return $ac_func ();
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (ac_try="$ac_link"
12740 case "(($ac_try" in
12741 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12742 *) ac_try_echo
=$ac_try;;
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745 (eval "$ac_link") 2>conftest.er1
12747 grep -v '^ *+' conftest.er1
>conftest.err
12749 cat conftest.err
>&5
12750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751 (exit $ac_status); } &&
12752 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12753 { (case "(($ac_try" in
12754 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12755 *) ac_try_echo=$ac_try;;
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758 (eval "$ac_try") 2>&5
12760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761 (exit $ac_status); }; } &&
12762 { ac_try='test -s conftest$ac_exeext'
12763 { (case "(($ac_try" in
12764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12765 *) ac_try_echo
=$ac_try;;
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768 (eval "$ac_try") 2>&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); }; }; then
12772 eval "$as_ac_var=yes"
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.
$ac_ext >&5
12777 eval "$as_ac_var=no"
12780 rm -f core conftest.err conftest.
$ac_objext \
12781 conftest
$ac_exeext conftest.
$ac_ext
12783 ac_res
=`eval echo '${'$as_ac_var'}'`
12784 { echo "$as_me:$LINENO: result: $ac_res" >&5
12785 echo "${ECHO_T}$ac_res" >&6; }
12786 if test `eval echo '${'$as_ac_var'}'` = yes; then
12787 cat >>confdefs.h
<<_ACEOF
12788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12796 for ac_func
in memcpy bcopy
12798 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12801 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12802 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 cat >conftest.
$ac_ext <<_ACEOF
12807 cat confdefs.h
>>conftest.
$ac_ext
12808 cat >>conftest.
$ac_ext <<_ACEOF
12809 /* end confdefs.h. */
12810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12811 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12812 #define $ac_func innocuous_$ac_func
12814 /* System header to define __stub macros and hopefully few prototypes,
12815 which can conflict with char $ac_func (); below.
12816 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12817 <limits.h> exists even on freestanding compilers. */
12820 # include <limits.h>
12822 # include <assert.h>
12827 /* Override any GCC internal prototype to avoid an error.
12828 Use char because int might match the return type of a GCC
12829 builtin and then its argument prototype would still apply. */
12834 /* The GNU C library defines this for functions which it implements
12835 to always fail with ENOSYS. Some functions are actually named
12836 something starting with __ and the normal name is an alias. */
12837 #if defined __stub_$ac_func || defined __stub___$ac_func
12844 return $ac_func ();
12849 rm -f conftest.
$ac_objext conftest
$ac_exeext
12850 if { (ac_try
="$ac_link"
12851 case "(($ac_try" in
12852 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12853 *) ac_try_echo=$ac_try;;
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856 (eval "$ac_link") 2>conftest.er1
12858 grep -v '^ *+' conftest.er1 >conftest.err
12860 cat conftest.err >&5
12861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862 (exit $ac_status); } &&
12863 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12864 { (case "(($ac_try" in
12865 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12866 *) ac_try_echo
=$ac_try;;
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_try") 2>&5
12871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872 (exit $ac_status); }; } &&
12873 { ac_try
='test -s conftest$ac_exeext'
12874 { (case "(($ac_try" in
12875 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12876 *) ac_try_echo=$ac_try;;
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879 (eval "$ac_try") 2>&5
12881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882 (exit $ac_status); }; }; then
12883 eval "$as_ac_var=yes"
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12888 eval "$as_ac_var=no"
12891 rm -f core conftest.err conftest.$ac_objext \
12892 conftest$ac_exeext conftest.$ac_ext
12894 ac_res=`eval echo '${'$as_ac_var'}'`
12895 { echo "$as_me:$LINENO: result: $ac_res" >&5
12896 echo "${ECHO_T}$ac_res" >&6; }
12897 if test `eval echo '${'$as_ac_var'}'` = yes; then
12898 cat >>confdefs.h <<_ACEOF
12899 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12907 for ac_func in memmove strcmp
12909 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12913 echo $ECHO_N "(cached) $ECHO_C" >&6
12915 cat >conftest.$ac_ext <<_ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h. */
12921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12923 #define $ac_func innocuous_$ac_func
12925 /* System header to define __stub macros and hopefully few prototypes,
12926 which can conflict with char $ac_func (); below.
12927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12928 <limits.h> exists even on freestanding compilers. */
12931 # include <limits.h>
12933 # include <assert.h>
12938 /* Override any GCC internal prototype to avoid an error.
12939 Use char because int might match the return type of a GCC
12940 builtin and then its argument prototype would still apply. */
12945 /* The GNU C library defines this for functions which it implements
12946 to always fail with ENOSYS. Some functions are actually named
12947 something starting with __ and the normal name is an alias. */
12948 #if defined __stub_$ac_func || defined __stub___$ac_func
12955 return $ac_func ();
12960 rm -f conftest.$ac_objext conftest$ac_exeext
12961 if { (ac_try="$ac_link"
12962 case "(($ac_try" in
12963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12964 *) ac_try_echo
=$ac_try;;
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967 (eval "$ac_link") 2>conftest.er1
12969 grep -v '^ *+' conftest.er1
>conftest.err
12971 cat conftest.err
>&5
12972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973 (exit $ac_status); } &&
12974 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12975 { (case "(($ac_try" in
12976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12977 *) ac_try_echo=$ac_try;;
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980 (eval "$ac_try") 2>&5
12982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); }; } &&
12984 { ac_try='test -s conftest$ac_exeext'
12985 { (case "(($ac_try" in
12986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12987 *) ac_try_echo
=$ac_try;;
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990 (eval "$ac_try") 2>&5
12992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993 (exit $ac_status); }; }; then
12994 eval "$as_ac_var=yes"
12996 echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.
$ac_ext >&5
12999 eval "$as_ac_var=no"
13002 rm -f core conftest.err conftest.
$ac_objext \
13003 conftest
$ac_exeext conftest.
$ac_ext
13005 ac_res
=`eval echo '${'$as_ac_var'}'`
13006 { echo "$as_me:$LINENO: result: $ac_res" >&5
13007 echo "${ECHO_T}$ac_res" >&6; }
13008 if test `eval echo '${'$as_ac_var'}'` = yes; then
13009 cat >>confdefs.h
<<_ACEOF
13010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13019 for ac_func
in closedir opendir readdir
13021 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13024 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13025 echo $ECHO_N "(cached) $ECHO_C" >&6
13027 cat >conftest.
$ac_ext <<_ACEOF
13030 cat confdefs.h
>>conftest.
$ac_ext
13031 cat >>conftest.
$ac_ext <<_ACEOF
13032 /* end confdefs.h. */
13033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13035 #define $ac_func innocuous_$ac_func
13037 /* System header to define __stub macros and hopefully few prototypes,
13038 which can conflict with char $ac_func (); below.
13039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13040 <limits.h> exists even on freestanding compilers. */
13043 # include <limits.h>
13045 # include <assert.h>
13050 /* Override any GCC internal prototype to avoid an error.
13051 Use char because int might match the return type of a GCC
13052 builtin and then its argument prototype would still apply. */
13057 /* The GNU C library defines this for functions which it implements
13058 to always fail with ENOSYS. Some functions are actually named
13059 something starting with __ and the normal name is an alias. */
13060 #if defined __stub_$ac_func || defined __stub___$ac_func
13067 return $ac_func ();
13072 rm -f conftest.
$ac_objext conftest
$ac_exeext
13073 if { (ac_try
="$ac_link"
13074 case "(($ac_try" in
13075 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_link") 2>conftest.er1
13081 grep -v '^ *+' conftest.er1 >conftest.err
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } &&
13086 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087 { (case "(($ac_try" in
13088 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13089 *) ac_try_echo
=$ac_try;;
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092 (eval "$ac_try") 2>&5
13094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095 (exit $ac_status); }; } &&
13096 { ac_try
='test -s conftest$ac_exeext'
13097 { (case "(($ac_try" in
13098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13099 *) ac_try_echo=$ac_try;;
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102 (eval "$ac_try") 2>&5
13104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105 (exit $ac_status); }; }; then
13106 eval "$as_ac_var=yes"
13108 echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13111 eval "$as_ac_var=no"
13114 rm -f core conftest.err conftest.$ac_objext \
13115 conftest$ac_exeext conftest.$ac_ext
13117 ac_res=`eval echo '${'$as_ac_var'}'`
13118 { echo "$as_me:$LINENO: result: $ac_res" >&5
13119 echo "${ECHO_T}$ac_res" >&6; }
13120 if test `eval echo '${'$as_ac_var'}'` = yes; then
13121 cat >>confdefs.h <<_ACEOF
13122 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13130 if test "$WITH_LLVMGCCDIR" = "default" ; then
13131 LLVMGCC="llvm-gcc${EXEEXT}"
13132 LLVMGXX="llvm-g++${EXEEXT}"
13133 LLVMGCCCOMMAND="$LLVMGCC"
13134 LLVMGXXCOMMAND="$LLVMGXX"
13135 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13137 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13139 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13140 set dummy $LLVMGCC; ac_word=$2
13141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13143 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13144 echo $ECHO_N "(cached) $ECHO_C" >&6
13148 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152 for as_dir in $PATH
13155 test -z "$as_dir" && as_dir=.
13156 for ac_exec_ext in '' $ac_executable_extensions; do
13157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13158 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13169 LLVMGCC=$ac_cv_path_LLVMGCC
13170 if test -n "$LLVMGCC"; then
13171 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13172 echo "${ECHO_T}$LLVMGCC" >&6; }
13174 { echo "$as_me:$LINENO: result: no" >&5
13175 echo "${ECHO_T}no" >&6; }
13179 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13180 set dummy $LLVMGXX; ac_word=$2
13181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13183 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13195 test -z "$as_dir" && as_dir=.
13196 for ac_exec_ext in '' $ac_executable_extensions; do
13197 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13198 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13199 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13209 LLVMGXX=$ac_cv_path_LLVMGXX
13210 if test -n "$LLVMGXX"; then
13211 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13212 echo "${ECHO_T}$LLVMGXX" >&6; }
13214 { echo "$as_me:$LINENO: result: no" >&5
13215 echo "${ECHO_T}no" >&6; }
13220 if test -z "$LLVMGCC"; then
13221 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13222 LLVMGCCCOMMAND="$LLVMGCC"
13224 if test -z "$LLVMGXX"; then
13225 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13226 LLVMGXXCOMMAND="$LLVMGXX"
13233 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13235 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13240 # Check whether --with-llvmcc was given.
13241 if test "${with_llvmcc+set}" = set; then
13242 withval=$with_llvmcc;
13247 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13248 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13249 if test "$with_llvmcc" != "check"; then
13250 if (test "$with_llvmcc" != "llvm-gcc" &&
13251 test "$with_llvmcc" != "clang" &&
13252 test "$with_llvmcc" != "none"); then
13253 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13254 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13255 { (exit 1); exit 1; }; }
13257 WITH_LLVMCC="$with_llvmcc"
13258 elif test -n "$LLVMGCC"; then
13259 WITH_LLVMCC=llvm-gcc
13260 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13265 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13266 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13267 LLVMCC_OPTION=$WITH_LLVMCC
13270 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13271 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13284 if test "$GCC" != "yes" && test "$ICC" != "yes"
13286 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13287 echo "$as_me: error: gcc|icc required but not found" >&2;}
13288 { (exit 1); exit 1; }; }
13291 if test "$GXX" != "yes" && test "$IXX" != "yes"
13293 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13294 echo "$as_me: error: g++|icc required but not found" >&2;}
13295 { (exit 1); exit 1; }; }
13298 if test "$GCC" = "yes"
13300 cat >conftest.$ac_ext <<_ACEOF
13301 #if !defined(__GNUC__) || __GNUC__ < 3
13302 #error Unsupported GCC version
13306 rm -f conftest.$ac_objext
13307 if { (ac_try="$ac_compile"
13308 case "(($ac_try" in
13309 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13310 *) ac_try_echo
=$ac_try;;
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313 (eval "$ac_compile") 2>conftest.er1
13315 grep -v '^ *+' conftest.er1
>conftest.err
13317 cat conftest.err
>&5
13318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319 (exit $ac_status); } &&
13320 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13321 { (case "(($ac_try" in
13322 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13323 *) ac_try_echo=$ac_try;;
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326 (eval "$ac_try") 2>&5
13328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329 (exit $ac_status); }; } &&
13330 { ac_try='test -s conftest.$ac_objext'
13331 { (case "(($ac_try" in
13332 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13333 *) ac_try_echo
=$ac_try;;
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_try") 2>&5
13338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339 (exit $ac_status); }; }; then
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.
$ac_ext >&5
13345 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13346 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13347 { (exit 1); exit 1; }; }
13350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13353 if test -z "$llvm_cv_gnu_make_command"
13355 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13356 echo "$as_me: error: GNU Make required but not found" >&2;}
13357 { (exit 1); exit 1; }; }
13360 { echo "$as_me:$LINENO: result: ok" >&5
13361 echo "${ECHO_T}ok" >&6; }
13363 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13364 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13365 NO_VARIADIC_MACROS
=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13367 NO_MISSING_FIELD_INITIALIZERS
=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13369 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13370 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13374 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13375 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13376 if test "${ac_cv_lib_m_sin+set}" = set; then
13377 echo $ECHO_N "(cached) $ECHO_C" >&6
13379 ac_check_lib_save_LIBS
=$LIBS
13381 cat >conftest.
$ac_ext <<_ACEOF
13384 cat confdefs.h
>>conftest.
$ac_ext
13385 cat >>conftest.
$ac_ext <<_ACEOF
13386 /* end confdefs.h. */
13388 /* Override any GCC internal prototype to avoid an error.
13389 Use char because int might match the return type of a GCC
13390 builtin and then its argument prototype would still apply. */
13403 rm -f conftest.
$ac_objext conftest
$ac_exeext
13404 if { (ac_try
="$ac_link"
13405 case "(($ac_try" in
13406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13407 *) ac_try_echo=$ac_try;;
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410 (eval "$ac_link") 2>conftest.er1
13412 grep -v '^ *+' conftest.er1 >conftest.err
13414 cat conftest.err >&5
13415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416 (exit $ac_status); } &&
13417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13418 { (case "(($ac_try" in
13419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13420 *) ac_try_echo
=$ac_try;;
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423 (eval "$ac_try") 2>&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); }; } &&
13427 { ac_try
='test -s conftest$ac_exeext'
13428 { (case "(($ac_try" in
13429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_try") 2>&5
13435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436 (exit $ac_status); }; }; then
13437 ac_cv_lib_m_sin=yes
13439 echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13445 rm -f core conftest.err conftest.$ac_objext \
13446 conftest$ac_exeext conftest.$ac_ext
13447 LIBS=$ac_check_lib_save_LIBS
13449 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13450 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13451 if test $ac_cv_lib_m_sin = yes; then
13452 cat >>confdefs.h <<_ACEOF
13453 #define HAVE_LIBM 1
13460 if test "$llvm_cv_os_type" = "MingW" ; then
13462 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13463 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13464 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13465 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 ac_check_lib_save_LIBS=$LIBS
13468 LIBS="-limagehlp $LIBS"
13469 cat >conftest.$ac_ext <<_ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h. */
13485 rm -f conftest.$ac_objext conftest$ac_exeext
13486 if { (ac_try="$ac_link"
13487 case "(($ac_try" in
13488 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13489 *) ac_try_echo
=$ac_try;;
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_link") 2>conftest.er1
13494 grep -v '^ *+' conftest.er1
>conftest.err
13496 cat conftest.err
>&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } &&
13499 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13500 { (case "(($ac_try" in
13501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13502 *) ac_try_echo=$ac_try;;
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505 (eval "$ac_try") 2>&5
13507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508 (exit $ac_status); }; } &&
13509 { ac_try='test -s conftest$ac_exeext'
13510 { (case "(($ac_try" in
13511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13512 *) ac_try_echo
=$ac_try;;
13514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515 (eval "$ac_try") 2>&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); }; }; then
13519 ac_cv_lib_imagehlp_main
=yes
13521 echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.
$ac_ext >&5
13524 ac_cv_lib_imagehlp_main
=no
13527 rm -f core conftest.err conftest.
$ac_objext \
13528 conftest
$ac_exeext conftest.
$ac_ext
13529 LIBS
=$ac_check_lib_save_LIBS
13531 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13532 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13533 if test $ac_cv_lib_imagehlp_main = yes; then
13534 cat >>confdefs.h
<<_ACEOF
13535 #define HAVE_LIBIMAGEHLP 1
13538 LIBS
="-limagehlp $LIBS"
13543 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13544 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13545 if test "${ac_cv_lib_psapi_main+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13548 ac_check_lib_save_LIBS
=$LIBS
13549 LIBS
="-lpsapi $LIBS"
13550 cat >conftest.
$ac_ext <<_ACEOF
13553 cat confdefs.h
>>conftest.
$ac_ext
13554 cat >>conftest.
$ac_ext <<_ACEOF
13555 /* end confdefs.h. */
13566 rm -f conftest.
$ac_objext conftest
$ac_exeext
13567 if { (ac_try
="$ac_link"
13568 case "(($ac_try" in
13569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_link") 2>conftest.er1
13575 grep -v '^ *+' conftest.er1 >conftest.err
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } &&
13580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); }; } &&
13590 { ac_try
='test -s conftest$ac_exeext'
13591 { (case "(($ac_try" in
13592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_try") 2>&5
13598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599 (exit $ac_status); }; }; then
13600 ac_cv_lib_psapi_main=yes
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13605 ac_cv_lib_psapi_main=no
13608 rm -f core conftest.err conftest.$ac_objext \
13609 conftest$ac_exeext conftest.$ac_ext
13610 LIBS=$ac_check_lib_save_LIBS
13612 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13613 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13614 if test $ac_cv_lib_psapi_main = yes; then
13615 cat >>confdefs.h <<_ACEOF
13616 #define HAVE_LIBPSAPI 1
13619 LIBS="-lpsapi $LIBS"
13625 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13626 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13627 if test "${ac_cv_search_dlopen+set}" = set; then
13628 echo $ECHO_N "(cached) $ECHO_C" >&6
13630 ac_func_search_save_LIBS=$LIBS
13631 cat >conftest.$ac_ext <<_ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13638 /* Override any GCC internal prototype to avoid an error.
13639 Use char because int might match the return type of a GCC
13640 builtin and then its argument prototype would still apply. */
13653 for ac_lib in '' dl; do
13654 if test -z "$ac_lib"; then
13655 ac_res="none required"
13658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
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_search_dlopen
=$ac_res
13696 echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.
$ac_ext >&5
13702 rm -f core conftest.err conftest.
$ac_objext \
13704 if test "${ac_cv_search_dlopen+set}" = set; then
13708 if test "${ac_cv_search_dlopen+set}" = set; then
13711 ac_cv_search_dlopen
=no
13713 rm conftest.
$ac_ext
13714 LIBS
=$ac_func_search_save_LIBS
13716 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13717 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13718 ac_res
=$ac_cv_search_dlopen
13719 if test "$ac_res" != no
; then
13720 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13722 cat >>confdefs.h
<<\_ACEOF
13723 #define HAVE_DLOPEN 1
13727 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13728 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13732 if test "$llvm_cv_enable_libffi" = "yes" ; then
13733 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13734 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13735 if test "${ac_cv_search_ffi_call+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 ac_func_search_save_LIBS
=$LIBS
13739 cat >conftest.
$ac_ext <<_ACEOF
13742 cat confdefs.h
>>conftest.
$ac_ext
13743 cat >>conftest.
$ac_ext <<_ACEOF
13744 /* end confdefs.h. */
13746 /* Override any GCC internal prototype to avoid an error.
13747 Use char because int might match the return type of a GCC
13748 builtin and then its argument prototype would still apply. */
13756 return ffi_call ();
13761 for ac_lib
in '' ffi
; do
13762 if test -z "$ac_lib"; then
13763 ac_res
="none required"
13766 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13768 rm -f conftest.
$ac_objext conftest
$ac_exeext
13769 if { (ac_try
="$ac_link"
13770 case "(($ac_try" in
13771 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13772 *) ac_try_echo=$ac_try;;
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_link") 2>conftest.er1
13777 grep -v '^ *+' conftest.er1 >conftest.err
13779 cat conftest.err >&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } &&
13782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13783 { (case "(($ac_try" in
13784 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13785 *) ac_try_echo
=$ac_try;;
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788 (eval "$ac_try") 2>&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); }; } &&
13792 { ac_try
='test -s conftest$ac_exeext'
13793 { (case "(($ac_try" in
13794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13795 *) ac_try_echo=$ac_try;;
13797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798 (eval "$ac_try") 2>&5
13800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801 (exit $ac_status); }; }; then
13802 ac_cv_search_ffi_call=$ac_res
13804 echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13810 rm -f core conftest.err conftest.$ac_objext \
13812 if test "${ac_cv_search_ffi_call+set}" = set; then
13816 if test "${ac_cv_search_ffi_call+set}" = set; then
13819 ac_cv_search_ffi_call=no
13821 rm conftest.$ac_ext
13822 LIBS=$ac_func_search_save_LIBS
13824 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13825 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13826 ac_res=$ac_cv_search_ffi_call
13827 if test "$ac_res" != no; then
13828 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13830 cat >>confdefs.h <<\_ACEOF
13831 #define HAVE_FFI_CALL 1
13835 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13836 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13837 { (exit 1); exit 1; }; }
13842 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13843 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13844 if test "${ac_cv_search_mallinfo+set}" = set; then
13845 echo $ECHO_N "(cached) $ECHO_C" >&6
13847 ac_func_search_save_LIBS=$LIBS
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13855 /* Override any GCC internal prototype to avoid an error.
13856 Use char because int might match the return type of a GCC
13857 builtin and then its argument prototype would still apply. */
13865 return mallinfo ();
13870 for ac_lib in '' malloc; do
13871 if test -z "$ac_lib"; then
13872 ac_res="none required"
13875 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13877 rm -f conftest.$ac_objext conftest$ac_exeext
13878 if { (ac_try="$ac_link"
13879 case "(($ac_try" in
13880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13881 *) ac_try_echo
=$ac_try;;
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884 (eval "$ac_link") 2>conftest.er1
13886 grep -v '^ *+' conftest.er1
>conftest.err
13888 cat conftest.err
>&5
13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890 (exit $ac_status); } &&
13891 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13892 { (case "(($ac_try" in
13893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897 (eval "$ac_try") 2>&5
13899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900 (exit $ac_status); }; } &&
13901 { ac_try='test -s conftest$ac_exeext'
13902 { (case "(($ac_try" in
13903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13904 *) ac_try_echo
=$ac_try;;
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907 (eval "$ac_try") 2>&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); }; }; then
13911 ac_cv_search_mallinfo
=$ac_res
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.
$ac_ext >&5
13919 rm -f core conftest.err conftest.
$ac_objext \
13921 if test "${ac_cv_search_mallinfo+set}" = set; then
13925 if test "${ac_cv_search_mallinfo+set}" = set; then
13928 ac_cv_search_mallinfo
=no
13930 rm conftest.
$ac_ext
13931 LIBS
=$ac_func_search_save_LIBS
13933 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13934 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13935 ac_res
=$ac_cv_search_mallinfo
13936 if test "$ac_res" != no
; then
13937 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13939 cat >>confdefs.h
<<\_ACEOF
13940 #define HAVE_MALLINFO 1
13946 if test "$ENABLE_THREADS" -eq 1 ; then
13948 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13949 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13950 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13951 echo $ECHO_N "(cached) $ECHO_C" >&6
13953 ac_check_lib_save_LIBS
=$LIBS
13954 LIBS
="-lpthread $LIBS"
13955 cat >conftest.
$ac_ext <<_ACEOF
13958 cat confdefs.h
>>conftest.
$ac_ext
13959 cat >>conftest.
$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13962 /* Override any GCC internal prototype to avoid an error.
13963 Use char because int might match the return type of a GCC
13964 builtin and then its argument prototype would still apply. */
13968 char pthread_mutex_init ();
13972 return pthread_mutex_init ();
13977 rm -f conftest.
$ac_objext conftest
$ac_exeext
13978 if { (ac_try
="$ac_link"
13979 case "(($ac_try" in
13980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13981 *) ac_try_echo=$ac_try;;
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984 (eval "$ac_link") 2>conftest.er1
13986 grep -v '^ *+' conftest.er1 >conftest.err
13988 cat conftest.err >&5
13989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990 (exit $ac_status); } &&
13991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13992 { (case "(($ac_try" in
13993 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13994 *) ac_try_echo
=$ac_try;;
13996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997 (eval "$ac_try") 2>&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } &&
14001 { ac_try
='test -s conftest$ac_exeext'
14002 { (case "(($ac_try" in
14003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14004 *) ac_try_echo=$ac_try;;
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007 (eval "$ac_try") 2>&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); }; }; then
14011 ac_cv_lib_pthread_pthread_mutex_init=yes
14013 echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14016 ac_cv_lib_pthread_pthread_mutex_init=no
14019 rm -f core conftest.err conftest.$ac_objext \
14020 conftest$ac_exeext conftest.$ac_ext
14021 LIBS=$ac_check_lib_save_LIBS
14023 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14024 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14025 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14026 cat >>confdefs.h <<_ACEOF
14027 #define HAVE_LIBPTHREAD 1
14030 LIBS="-lpthread $LIBS"
14034 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14035 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14036 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14037 echo $ECHO_N "(cached) $ECHO_C" >&6
14039 ac_func_search_save_LIBS=$LIBS
14040 cat >conftest.$ac_ext <<_ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h. */
14047 /* Override any GCC internal prototype to avoid an error.
14048 Use char because int might match the return type of a GCC
14049 builtin and then its argument prototype would still apply. */
14053 char pthread_mutex_lock ();
14057 return pthread_mutex_lock ();
14062 for ac_lib in '' pthread; do
14063 if test -z "$ac_lib"; then
14064 ac_res="none required"
14067 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14069 rm -f conftest.$ac_objext conftest$ac_exeext
14070 if { (ac_try="$ac_link"
14071 case "(($ac_try" in
14072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14073 *) ac_try_echo
=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_link") 2>conftest.er1
14078 grep -v '^ *+' conftest.er1
>conftest.err
14080 cat conftest.err
>&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084 { (case "(($ac_try" in
14085 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest$ac_exeext'
14094 { (case "(($ac_try" in
14095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14096 *) ac_try_echo
=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_try") 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_cv_search_pthread_mutex_lock
=$ac_res
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.
$ac_ext >&5
14111 rm -f core conftest.err conftest.
$ac_objext \
14113 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14117 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14120 ac_cv_search_pthread_mutex_lock
=no
14122 rm conftest.
$ac_ext
14123 LIBS
=$ac_func_search_save_LIBS
14125 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14126 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14127 ac_res
=$ac_cv_search_pthread_mutex_lock
14128 if test "$ac_res" != no
; then
14129 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14131 cat >>confdefs.h
<<\_ACEOF
14132 #define HAVE_PTHREAD_MUTEX_LOCK 1
14137 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14138 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14139 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 ac_func_search_save_LIBS
=$LIBS
14143 cat >conftest.
$ac_ext <<_ACEOF
14146 cat confdefs.h
>>conftest.
$ac_ext
14147 cat >>conftest.
$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14150 /* Override any GCC internal prototype to avoid an error.
14151 Use char because int might match the return type of a GCC
14152 builtin and then its argument prototype would still apply. */
14156 char pthread_rwlock_init ();
14160 return pthread_rwlock_init ();
14165 for ac_lib
in '' pthread
; do
14166 if test -z "$ac_lib"; then
14167 ac_res
="none required"
14170 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14172 rm -f conftest.
$ac_objext conftest
$ac_exeext
14173 if { (ac_try
="$ac_link"
14174 case "(($ac_try" in
14175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14176 *) ac_try_echo=$ac_try;;
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179 (eval "$ac_link") 2>conftest.er1
14181 grep -v '^ *+' conftest.er1 >conftest.err
14183 cat conftest.err >&5
14184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185 (exit $ac_status); } &&
14186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14187 { (case "(($ac_try" in
14188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14189 *) ac_try_echo
=$ac_try;;
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_try") 2>&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); }; } &&
14196 { ac_try
='test -s conftest$ac_exeext'
14197 { (case "(($ac_try" in
14198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14199 *) ac_try_echo=$ac_try;;
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202 (eval "$ac_try") 2>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); }; }; then
14206 ac_cv_search_pthread_rwlock_init=$ac_res
14208 echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14214 rm -f core conftest.err conftest.$ac_objext \
14216 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14220 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14223 ac_cv_search_pthread_rwlock_init=no
14225 rm conftest.$ac_ext
14226 LIBS=$ac_func_search_save_LIBS
14228 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14229 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14230 ac_res=$ac_cv_search_pthread_rwlock_init
14231 if test "$ac_res" != no; then
14232 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14234 cat >>confdefs.h <<\_ACEOF
14235 #define HAVE_PTHREAD_RWLOCK_INIT 1
14240 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14241 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14242 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14243 echo $ECHO_N "(cached) $ECHO_C" >&6
14245 ac_func_search_save_LIBS=$LIBS
14246 cat >conftest.$ac_ext <<_ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h. */
14253 /* Override any GCC internal prototype to avoid an error.
14254 Use char because int might match the return type of a GCC
14255 builtin and then its argument prototype would still apply. */
14259 char pthread_getspecific ();
14263 return pthread_getspecific ();
14268 for ac_lib in '' pthread; do
14269 if test -z "$ac_lib"; then
14270 ac_res="none required"
14273 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14275 rm -f conftest.$ac_objext conftest$ac_exeext
14276 if { (ac_try="$ac_link"
14277 case "(($ac_try" in
14278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14279 *) ac_try_echo
=$ac_try;;
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282 (eval "$ac_link") 2>conftest.er1
14284 grep -v '^ *+' conftest.er1
>conftest.err
14286 cat conftest.err
>&5
14287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288 (exit $ac_status); } &&
14289 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290 { (case "(($ac_try" in
14291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14292 *) ac_try_echo=$ac_try;;
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295 (eval "$ac_try") 2>&5
14297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298 (exit $ac_status); }; } &&
14299 { ac_try='test -s conftest$ac_exeext'
14300 { (case "(($ac_try" in
14301 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14302 *) ac_try_echo
=$ac_try;;
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305 (eval "$ac_try") 2>&5
14307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308 (exit $ac_status); }; }; then
14309 ac_cv_search_pthread_getspecific
=$ac_res
14311 echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.
$ac_ext >&5
14317 rm -f core conftest.err conftest.
$ac_objext \
14319 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14323 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14326 ac_cv_search_pthread_getspecific
=no
14328 rm conftest.
$ac_ext
14329 LIBS
=$ac_func_search_save_LIBS
14331 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14332 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14333 ac_res
=$ac_cv_search_pthread_getspecific
14334 if test "$ac_res" != no
; then
14335 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14337 cat >>confdefs.h
<<\_ACEOF
14338 #define HAVE_PTHREAD_GETSPECIFIC 1
14346 # Check whether --with-udis86 was given.
14347 if test "${with_udis86+set}" = set; then
14348 withval
=$with_udis86;
14353 *) LDFLAGS
="$LDFLAGS -L${withval}" ;;
14356 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14357 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14358 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14359 echo $ECHO_N "(cached) $ECHO_C" >&6
14361 ac_check_lib_save_LIBS
=$LIBS
14362 LIBS
="-ludis86 $LIBS"
14363 cat >conftest.
$ac_ext <<_ACEOF
14366 cat confdefs.h
>>conftest.
$ac_ext
14367 cat >>conftest.
$ac_ext <<_ACEOF
14368 /* end confdefs.h. */
14370 /* Override any GCC internal prototype to avoid an error.
14371 Use char because int might match the return type of a GCC
14372 builtin and then its argument prototype would still apply. */
14385 rm -f conftest.
$ac_objext conftest
$ac_exeext
14386 if { (ac_try
="$ac_link"
14387 case "(($ac_try" in
14388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14389 *) ac_try_echo=$ac_try;;
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392 (eval "$ac_link") 2>conftest.er1
14394 grep -v '^ *+' conftest.er1 >conftest.err
14396 cat conftest.err >&5
14397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398 (exit $ac_status); } &&
14399 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14400 { (case "(($ac_try" in
14401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14402 *) ac_try_echo
=$ac_try;;
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405 (eval "$ac_try") 2>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); }; } &&
14409 { ac_try
='test -s conftest$ac_exeext'
14410 { (case "(($ac_try" in
14411 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_try") 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; }; then
14419 ac_cv_lib_udis86_ud_init=yes
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14424 ac_cv_lib_udis86_ud_init=no
14427 rm -f core conftest.err conftest.$ac_objext \
14428 conftest$ac_exeext conftest.$ac_ext
14429 LIBS=$ac_check_lib_save_LIBS
14431 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14432 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14433 if test $ac_cv_lib_udis86_ud_init = yes; then
14434 cat >>confdefs.h <<_ACEOF
14435 #define HAVE_LIBUDIS86 1
14438 LIBS="-ludis86 $LIBS"
14442 echo "Error! You need to have libudis86 around."
14454 cat >>confdefs.h <<_ACEOF
14455 #define USE_UDIS86 $USE_UDIS86
14460 # Check whether --with-oprofile was given.
14461 if test "${with_oprofile+set}" = set; then
14462 withval=$with_oprofile;
14466 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14467 no) llvm_cv_oppath=
14470 *) llvm_cv_oppath="${withval}/lib/oprofile"
14471 CPPFLAGS="-I${withval}/include";;
14473 if test -n "$llvm_cv_oppath" ; then
14474 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14475 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14476 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14477 if test "${ac_cv_search_bfd_init+set}" = set; then
14478 echo $ECHO_N "(cached) $ECHO_C" >&6
14480 ac_func_search_save_LIBS=$LIBS
14481 cat >conftest.$ac_ext <<_ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14488 /* Override any GCC internal prototype to avoid an error.
14489 Use char because int might match the return type of a GCC
14490 builtin and then its argument prototype would still apply. */
14498 return bfd_init ();
14503 for ac_lib in '' bfd; do
14504 if test -z "$ac_lib"; then
14505 ac_res="none required"
14508 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14510 rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (ac_try="$ac_link"
14512 case "(($ac_try" in
14513 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14514 *) ac_try_echo
=$ac_try;;
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517 (eval "$ac_link") 2>conftest.er1
14519 grep -v '^ *+' conftest.er1
>conftest.err
14521 cat conftest.err
>&5
14522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523 (exit $ac_status); } &&
14524 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14525 { (case "(($ac_try" in
14526 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14527 *) ac_try_echo=$ac_try;;
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530 (eval "$ac_try") 2>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); }; } &&
14534 { ac_try='test -s conftest$ac_exeext'
14535 { (case "(($ac_try" in
14536 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14537 *) ac_try_echo
=$ac_try;;
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_try") 2>&5
14542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543 (exit $ac_status); }; }; then
14544 ac_cv_search_bfd_init
=$ac_res
14546 echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.
$ac_ext >&5
14552 rm -f core conftest.err conftest.
$ac_objext \
14554 if test "${ac_cv_search_bfd_init+set}" = set; then
14558 if test "${ac_cv_search_bfd_init+set}" = set; then
14561 ac_cv_search_bfd_init
=no
14563 rm conftest.
$ac_ext
14564 LIBS
=$ac_func_search_save_LIBS
14566 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14567 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14568 ac_res
=$ac_cv_search_bfd_init
14569 if test "$ac_res" != no
; then
14570 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14574 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14575 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14576 if test "${ac_cv_search_op_open_agent+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 ac_func_search_save_LIBS
=$LIBS
14580 cat >conftest.
$ac_ext <<_ACEOF
14583 cat confdefs.h
>>conftest.
$ac_ext
14584 cat >>conftest.
$ac_ext <<_ACEOF
14585 /* end confdefs.h. */
14587 /* Override any GCC internal prototype to avoid an error.
14588 Use char because int might match the return type of a GCC
14589 builtin and then its argument prototype would still apply. */
14593 char op_open_agent ();
14597 return op_open_agent ();
14602 for ac_lib
in '' opagent
; do
14603 if test -z "$ac_lib"; then
14604 ac_res
="none required"
14607 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14609 rm -f conftest.
$ac_objext conftest
$ac_exeext
14610 if { (ac_try
="$ac_link"
14611 case "(($ac_try" in
14612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14613 *) ac_try_echo=$ac_try;;
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616 (eval "$ac_link") 2>conftest.er1
14618 grep -v '^ *+' conftest.er1 >conftest.err
14620 cat conftest.err >&5
14621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622 (exit $ac_status); } &&
14623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14624 { (case "(($ac_try" in
14625 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14626 *) ac_try_echo
=$ac_try;;
14628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629 (eval "$ac_try") 2>&5
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; } &&
14633 { ac_try
='test -s conftest$ac_exeext'
14634 { (case "(($ac_try" in
14635 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14636 *) ac_try_echo=$ac_try;;
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_try") 2>&5
14641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642 (exit $ac_status); }; }; then
14643 ac_cv_search_op_open_agent=$ac_res
14645 echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14651 rm -f core conftest.err conftest.$ac_objext \
14653 if test "${ac_cv_search_op_open_agent+set}" = set; then
14657 if test "${ac_cv_search_op_open_agent+set}" = set; then
14660 ac_cv_search_op_open_agent=no
14662 rm conftest.$ac_ext
14663 LIBS=$ac_func_search_save_LIBS
14665 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14666 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14667 ac_res=$ac_cv_search_op_open_agent
14668 if test "$ac_res" != no; then
14669 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14673 echo "Error! You need to have libopagent around."
14678 if test "${ac_cv_header_opagent_h+set}" = set; then
14679 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14680 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14681 if test "${ac_cv_header_opagent_h+set}" = set; then
14682 echo $ECHO_N "(cached) $ECHO_C" >&6
14684 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14685 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14687 # Is the header compilable?
14688 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14689 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14690 cat >conftest.$ac_ext <<_ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h. */
14696 $ac_includes_default
14697 #include <opagent.h>
14699 rm -f conftest.$ac_objext
14700 if { (ac_try="$ac_compile"
14701 case "(($ac_try" in
14702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14703 *) ac_try_echo
=$ac_try;;
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706 (eval "$ac_compile") 2>conftest.er1
14708 grep -v '^ *+' conftest.er1
>conftest.err
14710 cat conftest.err
>&5
14711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712 (exit $ac_status); } &&
14713 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14714 { (case "(($ac_try" in
14715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14716 *) ac_try_echo=$ac_try;;
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719 (eval "$ac_try") 2>&5
14721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722 (exit $ac_status); }; } &&
14723 { ac_try='test -s conftest.$ac_objext'
14724 { (case "(($ac_try" in
14725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14726 *) ac_try_echo
=$ac_try;;
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729 (eval "$ac_try") 2>&5
14731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732 (exit $ac_status); }; }; then
14733 ac_header_compiler
=yes
14735 echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.
$ac_ext >&5
14738 ac_header_compiler
=no
14741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14743 echo "${ECHO_T}$ac_header_compiler" >&6; }
14745 # Is the header present?
14746 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14747 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14748 cat >conftest.
$ac_ext <<_ACEOF
14751 cat confdefs.h
>>conftest.
$ac_ext
14752 cat >>conftest.
$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 #include <opagent.h>
14756 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14757 case "(($ac_try" in
14758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14764 grep -v '^ *+' conftest.er1 >conftest.err
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } >/dev/null; then
14769 if test -s conftest.err; then
14770 ac_cpp_err=$ac_c_preproc_warn_flag
14771 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14778 if test -z "$ac_cpp_err"; then
14779 ac_header_preproc=yes
14781 echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14784 ac_header_preproc=no
14787 rm -f conftest.err conftest.$ac_ext
14788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14789 echo "${ECHO_T}$ac_header_preproc" >&6; }
14791 # So? What about this header?
14792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14794 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14795 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14797 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14798 ac_header_preproc=yes
14801 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14802 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14804 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14806 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14807 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14808 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14809 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14810 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14811 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14812 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14814 ## ----------------------------------- ##
14815 ## Report this to llvmbugs@cs.uiuc.edu ##
14816 ## ----------------------------------- ##
14818 ) | sed "s/^/$as_me: WARNING: /" >&2
14821 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14822 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14823 if test "${ac_cv_header_opagent_h+set}" = set; then
14824 echo $ECHO_N "(cached) $ECHO_C" >&6
14826 ac_cv_header_opagent_h=$ac_header_preproc
14828 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14829 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14832 if test $ac_cv_header_opagent_h = yes; then
14836 echo "Error! You need to have opagent.h around."
14852 cat >>confdefs.h <<_ACEOF
14853 #define USE_OPROFILE $USE_OPROFILE
14863 ac_header_dirent=no
14864 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14865 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
14866 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14867 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14869 echo $ECHO_N "(cached) $ECHO_C" >&6
14871 cat >conftest.$ac_ext <<_ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h. */
14877 #include <sys/types.h>
14889 rm -f conftest.$ac_objext
14890 if { (ac_try="$ac_compile"
14891 case "(($ac_try" in
14892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14893 *) ac_try_echo
=$ac_try;;
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_compile") 2>conftest.er1
14898 grep -v '^ *+' conftest.er1
>conftest.err
14900 cat conftest.err
>&5
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); } &&
14903 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14904 { (case "(($ac_try" in
14905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_try") 2>&5
14911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912 (exit $ac_status); }; } &&
14913 { ac_try='test -s conftest.$ac_objext'
14914 { (case "(($ac_try" in
14915 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14916 *) ac_try_echo
=$ac_try;;
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919 (eval "$ac_try") 2>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); }; }; then
14923 eval "$as_ac_Header=yes"
14925 echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.
$ac_ext >&5
14928 eval "$as_ac_Header=no"
14931 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14933 ac_res
=`eval echo '${'$as_ac_Header'}'`
14934 { echo "$as_me:$LINENO: result: $ac_res" >&5
14935 echo "${ECHO_T}$ac_res" >&6; }
14936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14937 cat >>confdefs.h
<<_ACEOF
14938 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14941 ac_header_dirent
=$ac_hdr; break
14945 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14946 if test $ac_header_dirent = dirent.h
; then
14947 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14948 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14949 if test "${ac_cv_search_opendir+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 ac_func_search_save_LIBS
=$LIBS
14953 cat >conftest.
$ac_ext <<_ACEOF
14956 cat confdefs.h
>>conftest.
$ac_ext
14957 cat >>conftest.
$ac_ext <<_ACEOF
14958 /* end confdefs.h. */
14960 /* Override any GCC internal prototype to avoid an error.
14961 Use char because int might match the return type of a GCC
14962 builtin and then its argument prototype would still apply. */
14975 for ac_lib
in '' dir
; do
14976 if test -z "$ac_lib"; then
14977 ac_res
="none required"
14980 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14982 rm -f conftest.
$ac_objext conftest
$ac_exeext
14983 if { (ac_try
="$ac_link"
14984 case "(($ac_try" in
14985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14986 *) ac_try_echo=$ac_try;;
14988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989 (eval "$ac_link") 2>conftest.er1
14991 grep -v '^ *+' conftest.er1 >conftest.err
14993 cat conftest.err >&5
14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } &&
14996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14997 { (case "(($ac_try" in
14998 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14999 *) ac_try_echo
=$ac_try;;
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_try") 2>&5
15004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005 (exit $ac_status); }; } &&
15006 { ac_try
='test -s conftest$ac_exeext'
15007 { (case "(($ac_try" in
15008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_try") 2>&5
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); }; }; then
15016 ac_cv_search_opendir=$ac_res
15018 echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15024 rm -f core conftest.err conftest.$ac_objext \
15026 if test "${ac_cv_search_opendir+set}" = set; then
15030 if test "${ac_cv_search_opendir+set}" = set; then
15033 ac_cv_search_opendir=no
15035 rm conftest.$ac_ext
15036 LIBS=$ac_func_search_save_LIBS
15038 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15039 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15040 ac_res=$ac_cv_search_opendir
15041 if test "$ac_res" != no; then
15042 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15047 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15049 if test "${ac_cv_search_opendir+set}" = set; then
15050 echo $ECHO_N "(cached) $ECHO_C" >&6
15052 ac_func_search_save_LIBS=$LIBS
15053 cat >conftest.$ac_ext <<_ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h. */
15060 /* Override any GCC internal prototype to avoid an error.
15061 Use char because int might match the return type of a GCC
15062 builtin and then its argument prototype would still apply. */
15075 for ac_lib in '' x; do
15076 if test -z "$ac_lib"; then
15077 ac_res="none required"
15080 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15082 rm -f conftest.$ac_objext conftest$ac_exeext
15083 if { (ac_try="$ac_link"
15084 case "(($ac_try" in
15085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15086 *) ac_try_echo
=$ac_try;;
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089 (eval "$ac_link") 2>conftest.er1
15091 grep -v '^ *+' conftest.er1
>conftest.err
15093 cat conftest.err
>&5
15094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095 (exit $ac_status); } &&
15096 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15097 { (case "(($ac_try" in
15098 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102 (eval "$ac_try") 2>&5
15104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105 (exit $ac_status); }; } &&
15106 { ac_try='test -s conftest$ac_exeext'
15107 { (case "(($ac_try" in
15108 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15109 *) ac_try_echo
=$ac_try;;
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_try") 2>&5
15114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115 (exit $ac_status); }; }; then
15116 ac_cv_search_opendir
=$ac_res
15118 echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.
$ac_ext >&5
15124 rm -f core conftest.err conftest.
$ac_objext \
15126 if test "${ac_cv_search_opendir+set}" = set; then
15130 if test "${ac_cv_search_opendir+set}" = set; then
15133 ac_cv_search_opendir
=no
15135 rm conftest.
$ac_ext
15136 LIBS
=$ac_func_search_save_LIBS
15138 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15139 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15140 ac_res
=$ac_cv_search_opendir
15141 if test "$ac_res" != no
; then
15142 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15148 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15149 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15150 if test "${ac_cv_header_mmap_anon+set}" = set; then
15151 echo $ECHO_N "(cached) $ECHO_C" >&6
15154 ac_cpp
='$CPP $CPPFLAGS'
15155 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15156 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15157 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15159 cat >conftest.
$ac_ext <<_ACEOF
15162 cat confdefs.h
>>conftest.
$ac_ext
15163 cat >>conftest.
$ac_ext <<_ACEOF
15164 /* end confdefs.h. */
15165 #include <sys/mman.h>
15166 #include <unistd.h>
15171 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15176 rm -f conftest.
$ac_objext
15177 if { (ac_try
="$ac_compile"
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_compile") 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_objext'
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_header_mmap_anon=yes
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_cv_header_mmap_anon=no
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15220 ac_cpp='$CPP $CPPFLAGS'
15221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15227 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15228 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15229 if test "$ac_cv_header_mmap_anon" = yes; then
15231 cat >>confdefs.h <<\_ACEOF
15232 #define HAVE_MMAP_ANONYMOUS 1
15237 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15238 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15239 if test "${ac_cv_header_stat_broken+set}" = set; then
15240 echo $ECHO_N "(cached) $ECHO_C" >&6
15242 cat >conftest.$ac_ext <<_ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h. */
15248 #include <sys/types.h>
15249 #include <sys/stat.h>
15251 #if defined S_ISBLK && defined S_IFDIR
15252 # if S_ISBLK (S_IFDIR)
15257 #if defined S_ISBLK && defined S_IFCHR
15258 # if S_ISBLK (S_IFCHR)
15263 #if defined S_ISLNK && defined S_IFREG
15264 # if S_ISLNK (S_IFREG)
15269 #if defined S_ISSOCK && defined S_IFREG
15270 # if S_ISSOCK (S_IFREG)
15276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15277 $EGREP "You lose" >/dev/null 2>&1; then
15278 ac_cv_header_stat_broken=yes
15280 ac_cv_header_stat_broken=no
15285 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15286 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15287 if test $ac_cv_header_stat_broken = yes; then
15289 cat >>confdefs.h <<\_ACEOF
15290 #define STAT_MACROS_BROKEN 1
15295 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15296 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15297 if test "${ac_cv_header_stdc+set}" = set; then
15298 echo $ECHO_N "(cached) $ECHO_C" >&6
15300 cat >conftest.$ac_ext <<_ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h. */
15306 #include <stdlib.h>
15307 #include <stdarg.h>
15308 #include <string.h>
15319 rm -f conftest.$ac_objext
15320 if { (ac_try="$ac_compile"
15321 case "(($ac_try" in
15322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15323 *) ac_try_echo
=$ac_try;;
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326 (eval "$ac_compile") 2>conftest.er1
15328 grep -v '^ *+' conftest.er1
>conftest.err
15330 cat conftest.err
>&5
15331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332 (exit $ac_status); } &&
15333 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15334 { (case "(($ac_try" in
15335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_try") 2>&5
15341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342 (exit $ac_status); }; } &&
15343 { ac_try='test -s conftest.$ac_objext'
15344 { (case "(($ac_try" in
15345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15346 *) ac_try_echo
=$ac_try;;
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349 (eval "$ac_try") 2>&5
15351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352 (exit $ac_status); }; }; then
15353 ac_cv_header_stdc
=yes
15355 echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.
$ac_ext >&5
15358 ac_cv_header_stdc
=no
15361 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15363 if test $ac_cv_header_stdc = yes; then
15364 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15365 cat >conftest.
$ac_ext <<_ACEOF
15368 cat confdefs.h
>>conftest.
$ac_ext
15369 cat >>conftest.
$ac_ext <<_ACEOF
15370 /* end confdefs.h. */
15371 #include <string.h>
15374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15375 $EGREP "memchr" >/dev
/null
2>&1; then
15378 ac_cv_header_stdc
=no
15384 if test $ac_cv_header_stdc = yes; then
15385 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15386 cat >conftest.
$ac_ext <<_ACEOF
15389 cat confdefs.h
>>conftest.
$ac_ext
15390 cat >>conftest.
$ac_ext <<_ACEOF
15391 /* end confdefs.h. */
15392 #include <stdlib.h>
15395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15396 $EGREP "free" >/dev
/null
2>&1; then
15399 ac_cv_header_stdc
=no
15405 if test $ac_cv_header_stdc = yes; then
15406 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15407 if test "$cross_compiling" = yes; then
15410 cat >conftest.
$ac_ext <<_ACEOF
15413 cat confdefs.h
>>conftest.
$ac_ext
15414 cat >>conftest.
$ac_ext <<_ACEOF
15415 /* end confdefs.h. */
15417 #include <stdlib.h>
15418 #if ((' ' & 0x0FF) == 0x020)
15419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15422 # define ISLOWER(c) \
15423 (('a' <= (c) && (c) <= 'i') \
15424 || ('j' <= (c) && (c) <= 'r') \
15425 || ('s' <= (c) && (c) <= 'z'))
15426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15434 for (i = 0; i < 256; i++)
15435 if (XOR (islower (i), ISLOWER (i))
15436 || toupper (i) != TOUPPER (i))
15441 rm -f conftest
$ac_exeext
15442 if { (ac_try
="$ac_link"
15443 case "(($ac_try" in
15444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_link") 2>&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15452 { (case "(($ac_try" in
15453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15454 *) ac_try_echo
=$ac_try;;
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457 (eval "$ac_try") 2>&5
15459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460 (exit $ac_status); }; }; then
15463 echo "$as_me: program exited with status $ac_status" >&5
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.
$ac_ext >&5
15467 ( exit $ac_status )
15468 ac_cv_header_stdc
=no
15470 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15476 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15477 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15478 if test $ac_cv_header_stdc = yes; then
15480 cat >>confdefs.h
<<\_ACEOF
15481 #define STDC_HEADERS 1
15486 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15487 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15488 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 cat >conftest.
$ac_ext <<_ACEOF
15494 cat confdefs.h
>>conftest.
$ac_ext
15495 cat >>conftest.
$ac_ext <<_ACEOF
15496 /* end confdefs.h. */
15497 #include <sys/types.h>
15498 #include <sys/wait.h>
15499 #ifndef WEXITSTATUS
15500 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15503 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15511 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15516 rm -f conftest.
$ac_objext
15517 if { (ac_try
="$ac_compile"
15518 case "(($ac_try" in
15519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15520 *) ac_try_echo=$ac_try;;
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523 (eval "$ac_compile") 2>conftest.er1
15525 grep -v '^ *+' conftest.er1 >conftest.err
15527 cat conftest.err >&5
15528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529 (exit $ac_status); } &&
15530 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15531 { (case "(($ac_try" in
15532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15533 *) ac_try_echo
=$ac_try;;
15535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536 (eval "$ac_try") 2>&5
15538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539 (exit $ac_status); }; } &&
15540 { ac_try
='test -s conftest.$ac_objext'
15541 { (case "(($ac_try" in
15542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15543 *) ac_try_echo=$ac_try;;
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546 (eval "$ac_try") 2>&5
15548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549 (exit $ac_status); }; }; then
15550 ac_cv_header_sys_wait_h=yes
15552 echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15555 ac_cv_header_sys_wait_h=no
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15560 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15561 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15562 if test $ac_cv_header_sys_wait_h = yes; then
15564 cat >>confdefs.h <<\_ACEOF
15565 #define HAVE_SYS_WAIT_H 1
15570 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15571 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15572 if test "${ac_cv_header_time+set}" = set; then
15573 echo $ECHO_N "(cached) $ECHO_C" >&6
15575 cat >conftest.$ac_ext <<_ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h. */
15581 #include <sys/types.h>
15582 #include <sys/time.h>
15588 if ((struct tm *) 0)
15594 rm -f conftest.$ac_objext
15595 if { (ac_try="$ac_compile"
15596 case "(($ac_try" in
15597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15598 *) ac_try_echo
=$ac_try;;
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_compile") 2>conftest.er1
15603 grep -v '^ *+' conftest.er1
>conftest.err
15605 cat conftest.err
>&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } &&
15608 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15609 { (case "(($ac_try" in
15610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15611 *) ac_try_echo=$ac_try;;
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614 (eval "$ac_try") 2>&5
15616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617 (exit $ac_status); }; } &&
15618 { ac_try='test -s conftest.$ac_objext'
15619 { (case "(($ac_try" in
15620 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15621 *) ac_try_echo
=$ac_try;;
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624 (eval "$ac_try") 2>&5
15626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627 (exit $ac_status); }; }; then
15628 ac_cv_header_time
=yes
15630 echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.
$ac_ext >&5
15633 ac_cv_header_time
=no
15636 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15638 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15639 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15640 if test $ac_cv_header_time = yes; then
15642 cat >>confdefs.h
<<\_ACEOF
15643 #define TIME_WITH_SYS_TIME 1
15655 for ac_header
in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15657 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15658 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15661 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15662 echo $ECHO_N "(cached) $ECHO_C" >&6
15664 ac_res
=`eval echo '${'$as_ac_Header'}'`
15665 { echo "$as_me:$LINENO: result: $ac_res" >&5
15666 echo "${ECHO_T}$ac_res" >&6; }
15668 # Is the header compilable?
15669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15671 cat >conftest.
$ac_ext <<_ACEOF
15674 cat confdefs.h
>>conftest.
$ac_ext
15675 cat >>conftest.
$ac_ext <<_ACEOF
15676 /* end confdefs.h. */
15677 $ac_includes_default
15678 #include <$ac_header>
15680 rm -f conftest.
$ac_objext
15681 if { (ac_try
="$ac_compile"
15682 case "(($ac_try" in
15683 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_compile") 2>conftest.er1
15689 grep -v '^ *+' conftest.er1 >conftest.err
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } &&
15694 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15695 { (case "(($ac_try" in
15696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15697 *) ac_try_echo
=$ac_try;;
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700 (eval "$ac_try") 2>&5
15702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703 (exit $ac_status); }; } &&
15704 { ac_try
='test -s conftest.$ac_objext'
15705 { (case "(($ac_try" in
15706 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15707 *) ac_try_echo=$ac_try;;
15709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710 (eval "$ac_try") 2>&5
15712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); }; }; then
15714 ac_header_compiler=yes
15716 echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 ac_header_compiler=no
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15724 echo "${ECHO_T}$ac_header_compiler" >&6; }
15726 # Is the header present?
15727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15729 cat >conftest.$ac_ext <<_ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h. */
15735 #include <$ac_header>
15737 if { (ac_try="$ac_cpp conftest.$ac_ext"
15738 case "(($ac_try" in
15739 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15740 *) ac_try_echo
=$ac_try;;
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15745 grep -v '^ *+' conftest.er1
>conftest.err
15747 cat conftest.err
>&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } >/dev
/null
; then
15750 if test -s conftest.err
; then
15751 ac_cpp_err
=$ac_c_preproc_warn_flag
15752 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15759 if test -z "$ac_cpp_err"; then
15760 ac_header_preproc
=yes
15762 echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.
$ac_ext >&5
15765 ac_header_preproc
=no
15768 rm -f conftest.err conftest.
$ac_ext
15769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15770 echo "${ECHO_T}$ac_header_preproc" >&6; }
15772 # So? What about this header?
15773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15779 ac_header_preproc
=yes
15782 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15784 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15785 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15789 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15790 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15792 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15795 ## ----------------------------------- ##
15796 ## Report this to llvmbugs@cs.uiuc.edu ##
15797 ## ----------------------------------- ##
15799 ) |
sed "s/^/$as_me: WARNING: /" >&2
15802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15804 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15805 echo $ECHO_N "(cached) $ECHO_C" >&6
15807 eval "$as_ac_Header=\$ac_header_preproc"
15809 ac_res
=`eval echo '${'$as_ac_Header'}'`
15810 { echo "$as_me:$LINENO: result: $ac_res" >&5
15811 echo "${ECHO_T}$ac_res" >&6; }
15814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15815 cat >>confdefs.h
<<_ACEOF
15816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15829 for ac_header
in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15831 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15832 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15833 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15835 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15836 echo $ECHO_N "(cached) $ECHO_C" >&6
15838 ac_res
=`eval echo '${'$as_ac_Header'}'`
15839 { echo "$as_me:$LINENO: result: $ac_res" >&5
15840 echo "${ECHO_T}$ac_res" >&6; }
15842 # Is the header compilable?
15843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15845 cat >conftest.
$ac_ext <<_ACEOF
15848 cat confdefs.h
>>conftest.
$ac_ext
15849 cat >>conftest.
$ac_ext <<_ACEOF
15850 /* end confdefs.h. */
15851 $ac_includes_default
15852 #include <$ac_header>
15854 rm -f conftest.
$ac_objext
15855 if { (ac_try
="$ac_compile"
15856 case "(($ac_try" in
15857 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15858 *) ac_try_echo=$ac_try;;
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861 (eval "$ac_compile") 2>conftest.er1
15863 grep -v '^ *+' conftest.er1 >conftest.err
15865 cat conftest.err >&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } &&
15868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15869 { (case "(($ac_try" in
15870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15871 *) ac_try_echo
=$ac_try;;
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874 (eval "$ac_try") 2>&5
15876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877 (exit $ac_status); }; } &&
15878 { ac_try
='test -s conftest.$ac_objext'
15879 { (case "(($ac_try" in
15880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15881 *) ac_try_echo=$ac_try;;
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884 (eval "$ac_try") 2>&5
15886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887 (exit $ac_status); }; }; then
15888 ac_header_compiler=yes
15890 echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15893 ac_header_compiler=no
15896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15898 echo "${ECHO_T}$ac_header_compiler" >&6; }
15900 # Is the header present?
15901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15903 cat >conftest.$ac_ext <<_ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h. */
15909 #include <$ac_header>
15911 if { (ac_try="$ac_cpp conftest.$ac_ext"
15912 case "(($ac_try" in
15913 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15914 *) ac_try_echo
=$ac_try;;
15916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15919 grep -v '^ *+' conftest.er1
>conftest.err
15921 cat conftest.err
>&5
15922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923 (exit $ac_status); } >/dev
/null
; then
15924 if test -s conftest.err
; then
15925 ac_cpp_err
=$ac_c_preproc_warn_flag
15926 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15933 if test -z "$ac_cpp_err"; then
15934 ac_header_preproc
=yes
15936 echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.
$ac_ext >&5
15939 ac_header_preproc
=no
15942 rm -f conftest.err conftest.
$ac_ext
15943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15944 echo "${ECHO_T}$ac_header_preproc" >&6; }
15946 # So? What about this header?
15947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15953 ac_header_preproc
=yes
15956 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15959 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15963 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15969 ## ----------------------------------- ##
15970 ## Report this to llvmbugs@cs.uiuc.edu ##
15971 ## ----------------------------------- ##
15973 ) |
sed "s/^/$as_me: WARNING: /" >&2
15976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15978 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15979 echo $ECHO_N "(cached) $ECHO_C" >&6
15981 eval "$as_ac_Header=\$ac_header_preproc"
15983 ac_res
=`eval echo '${'$as_ac_Header'}'`
15984 { echo "$as_me:$LINENO: result: $ac_res" >&5
15985 echo "${ECHO_T}$ac_res" >&6; }
15988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15989 cat >>confdefs.h
<<_ACEOF
15990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15999 for ac_header
in utime.h windows.h
16001 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16002 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16003 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16005 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 ac_res
=`eval echo '${'$as_ac_Header'}'`
16009 { echo "$as_me:$LINENO: result: $ac_res" >&5
16010 echo "${ECHO_T}$ac_res" >&6; }
16012 # Is the header compilable?
16013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16015 cat >conftest.
$ac_ext <<_ACEOF
16018 cat confdefs.h
>>conftest.
$ac_ext
16019 cat >>conftest.
$ac_ext <<_ACEOF
16020 /* end confdefs.h. */
16021 $ac_includes_default
16022 #include <$ac_header>
16024 rm -f conftest.
$ac_objext
16025 if { (ac_try
="$ac_compile"
16026 case "(($ac_try" in
16027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_compile") 2>conftest.er1
16033 grep -v '^ *+' conftest.er1 >conftest.err
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037 (exit $ac_status); } &&
16038 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16039 { (case "(($ac_try" in
16040 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16041 *) ac_try_echo
=$ac_try;;
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044 (eval "$ac_try") 2>&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); }; } &&
16048 { ac_try
='test -s conftest.$ac_objext'
16049 { (case "(($ac_try" in
16050 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16051 *) ac_try_echo=$ac_try;;
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054 (eval "$ac_try") 2>&5
16056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057 (exit $ac_status); }; }; then
16058 ac_header_compiler=yes
16060 echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16063 ac_header_compiler=no
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16068 echo "${ECHO_T}$ac_header_compiler" >&6; }
16070 # Is the header present?
16071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16073 cat >conftest.$ac_ext <<_ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h. */
16079 #include <$ac_header>
16081 if { (ac_try="$ac_cpp conftest.$ac_ext"
16082 case "(($ac_try" in
16083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16084 *) ac_try_echo
=$ac_try;;
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16089 grep -v '^ *+' conftest.er1
>conftest.err
16091 cat conftest.err
>&5
16092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093 (exit $ac_status); } >/dev
/null
; then
16094 if test -s conftest.err
; then
16095 ac_cpp_err
=$ac_c_preproc_warn_flag
16096 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16103 if test -z "$ac_cpp_err"; then
16104 ac_header_preproc
=yes
16106 echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.
$ac_ext >&5
16109 ac_header_preproc
=no
16112 rm -f conftest.err conftest.
$ac_ext
16113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 echo "${ECHO_T}$ac_header_preproc" >&6; }
16116 # So? What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16123 ac_header_preproc
=yes
16126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16139 ## ----------------------------------- ##
16140 ## Report this to llvmbugs@cs.uiuc.edu ##
16141 ## ----------------------------------- ##
16143 ) |
sed "s/^/$as_me: WARNING: /" >&2
16146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149 echo $ECHO_N "(cached) $ECHO_C" >&6
16151 eval "$as_ac_Header=\$ac_header_preproc"
16153 ac_res
=`eval echo '${'$as_ac_Header'}'`
16154 { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16159 cat >>confdefs.h
<<_ACEOF
16160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16171 for ac_header
in sys
/mman.h sys
/param.h sys
/resource.h sys
/time.h
16173 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16174 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16175 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16177 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16178 echo $ECHO_N "(cached) $ECHO_C" >&6
16180 ac_res
=`eval echo '${'$as_ac_Header'}'`
16181 { echo "$as_me:$LINENO: result: $ac_res" >&5
16182 echo "${ECHO_T}$ac_res" >&6; }
16184 # Is the header compilable?
16185 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16187 cat >conftest.
$ac_ext <<_ACEOF
16190 cat confdefs.h
>>conftest.
$ac_ext
16191 cat >>conftest.
$ac_ext <<_ACEOF
16192 /* end confdefs.h. */
16193 $ac_includes_default
16194 #include <$ac_header>
16196 rm -f conftest.
$ac_objext
16197 if { (ac_try
="$ac_compile"
16198 case "(($ac_try" in
16199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16200 *) ac_try_echo=$ac_try;;
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203 (eval "$ac_compile") 2>conftest.er1
16205 grep -v '^ *+' conftest.er1 >conftest.err
16207 cat conftest.err >&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); } &&
16210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16211 { (case "(($ac_try" in
16212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16213 *) ac_try_echo
=$ac_try;;
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216 (eval "$ac_try") 2>&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); }; } &&
16220 { ac_try
='test -s conftest.$ac_objext'
16221 { (case "(($ac_try" in
16222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_try") 2>&5
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; }; then
16230 ac_header_compiler=yes
16232 echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16235 ac_header_compiler=no
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16240 echo "${ECHO_T}$ac_header_compiler" >&6; }
16242 # Is the header present?
16243 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16245 cat >conftest.$ac_ext <<_ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h. */
16251 #include <$ac_header>
16253 if { (ac_try="$ac_cpp conftest.$ac_ext"
16254 case "(($ac_try" in
16255 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16256 *) ac_try_echo
=$ac_try;;
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16261 grep -v '^ *+' conftest.er1
>conftest.err
16263 cat conftest.err
>&5
16264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265 (exit $ac_status); } >/dev
/null
; then
16266 if test -s conftest.err
; then
16267 ac_cpp_err
=$ac_c_preproc_warn_flag
16268 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16275 if test -z "$ac_cpp_err"; then
16276 ac_header_preproc
=yes
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.
$ac_ext >&5
16281 ac_header_preproc
=no
16284 rm -f conftest.err conftest.
$ac_ext
16285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16286 echo "${ECHO_T}$ac_header_preproc" >&6; }
16288 # So? What about this header?
16289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16295 ac_header_preproc
=yes
16298 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16300 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16301 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16302 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16304 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16305 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16308 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16311 ## ----------------------------------- ##
16312 ## Report this to llvmbugs@cs.uiuc.edu ##
16313 ## ----------------------------------- ##
16315 ) |
sed "s/^/$as_me: WARNING: /" >&2
16318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16320 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16321 echo $ECHO_N "(cached) $ECHO_C" >&6
16323 eval "$as_ac_Header=\$ac_header_preproc"
16325 ac_res
=`eval echo '${'$as_ac_Header'}'`
16326 { echo "$as_me:$LINENO: result: $ac_res" >&5
16327 echo "${ECHO_T}$ac_res" >&6; }
16330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16331 cat >>confdefs.h
<<_ACEOF
16332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16343 for ac_header
in sys
/types.h sys
/ioctl.h malloc
/malloc.h mach
/mach.h
16345 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16346 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16347 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16349 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16350 echo $ECHO_N "(cached) $ECHO_C" >&6
16352 ac_res
=`eval echo '${'$as_ac_Header'}'`
16353 { echo "$as_me:$LINENO: result: $ac_res" >&5
16354 echo "${ECHO_T}$ac_res" >&6; }
16356 # Is the header compilable?
16357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16359 cat >conftest.
$ac_ext <<_ACEOF
16362 cat confdefs.h
>>conftest.
$ac_ext
16363 cat >>conftest.
$ac_ext <<_ACEOF
16364 /* end confdefs.h. */
16365 $ac_includes_default
16366 #include <$ac_header>
16368 rm -f conftest.
$ac_objext
16369 if { (ac_try
="$ac_compile"
16370 case "(($ac_try" in
16371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16372 *) ac_try_echo=$ac_try;;
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375 (eval "$ac_compile") 2>conftest.er1
16377 grep -v '^ *+' conftest.er1 >conftest.err
16379 cat conftest.err >&5
16380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } &&
16382 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16383 { (case "(($ac_try" in
16384 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16385 *) ac_try_echo
=$ac_try;;
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388 (eval "$ac_try") 2>&5
16390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391 (exit $ac_status); }; } &&
16392 { ac_try
='test -s conftest.$ac_objext'
16393 { (case "(($ac_try" in
16394 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_try") 2>&5
16400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401 (exit $ac_status); }; }; then
16402 ac_header_compiler=yes
16404 echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16407 ac_header_compiler=no
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16412 echo "${ECHO_T}$ac_header_compiler" >&6; }
16414 # Is the header present?
16415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16417 cat >conftest.$ac_ext <<_ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */
16423 #include <$ac_header>
16425 if { (ac_try="$ac_cpp conftest.$ac_ext"
16426 case "(($ac_try" in
16427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16428 *) ac_try_echo
=$ac_try;;
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16433 grep -v '^ *+' conftest.er1
>conftest.err
16435 cat conftest.err
>&5
16436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } >/dev
/null
; then
16438 if test -s conftest.err
; then
16439 ac_cpp_err
=$ac_c_preproc_warn_flag
16440 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16447 if test -z "$ac_cpp_err"; then
16448 ac_header_preproc
=yes
16450 echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.
$ac_ext >&5
16453 ac_header_preproc
=no
16456 rm -f conftest.err conftest.
$ac_ext
16457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16458 echo "${ECHO_T}$ac_header_preproc" >&6; }
16460 # So? What about this header?
16461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16467 ac_header_preproc
=yes
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16472 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16473 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16474 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16476 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16477 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16480 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16483 ## ----------------------------------- ##
16484 ## Report this to llvmbugs@cs.uiuc.edu ##
16485 ## ----------------------------------- ##
16487 ) |
sed "s/^/$as_me: WARNING: /" >&2
16490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16492 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16495 eval "$as_ac_Header=\$ac_header_preproc"
16497 ac_res
=`eval echo '${'$as_ac_Header'}'`
16498 { echo "$as_me:$LINENO: result: $ac_res" >&5
16499 echo "${ECHO_T}$ac_res" >&6; }
16502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16503 cat >>confdefs.h
<<_ACEOF
16504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16512 for ac_header
in valgrind
/valgrind.h
16514 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16515 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16518 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16519 echo $ECHO_N "(cached) $ECHO_C" >&6
16521 ac_res
=`eval echo '${'$as_ac_Header'}'`
16522 { echo "$as_me:$LINENO: result: $ac_res" >&5
16523 echo "${ECHO_T}$ac_res" >&6; }
16525 # Is the header compilable?
16526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16528 cat >conftest.
$ac_ext <<_ACEOF
16531 cat confdefs.h
>>conftest.
$ac_ext
16532 cat >>conftest.
$ac_ext <<_ACEOF
16533 /* end confdefs.h. */
16534 $ac_includes_default
16535 #include <$ac_header>
16537 rm -f conftest.
$ac_objext
16538 if { (ac_try
="$ac_compile"
16539 case "(($ac_try" in
16540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16541 *) ac_try_echo=$ac_try;;
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544 (eval "$ac_compile") 2>conftest.er1
16546 grep -v '^ *+' conftest.er1 >conftest.err
16548 cat conftest.err >&5
16549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550 (exit $ac_status); } &&
16551 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16552 { (case "(($ac_try" in
16553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16554 *) ac_try_echo
=$ac_try;;
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557 (eval "$ac_try") 2>&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); }; } &&
16561 { ac_try
='test -s conftest.$ac_objext'
16562 { (case "(($ac_try" in
16563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16564 *) ac_try_echo=$ac_try;;
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567 (eval "$ac_try") 2>&5
16569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570 (exit $ac_status); }; }; then
16571 ac_header_compiler=yes
16573 echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16576 ac_header_compiler=no
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16581 echo "${ECHO_T}$ac_header_compiler" >&6; }
16583 # Is the header present?
16584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16586 cat >conftest.$ac_ext <<_ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16592 #include <$ac_header>
16594 if { (ac_try="$ac_cpp conftest.$ac_ext"
16595 case "(($ac_try" in
16596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16597 *) ac_try_echo
=$ac_try;;
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16602 grep -v '^ *+' conftest.er1
>conftest.err
16604 cat conftest.err
>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } >/dev
/null
; then
16607 if test -s conftest.err
; then
16608 ac_cpp_err
=$ac_c_preproc_warn_flag
16609 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16616 if test -z "$ac_cpp_err"; then
16617 ac_header_preproc
=yes
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.
$ac_ext >&5
16622 ac_header_preproc
=no
16625 rm -f conftest.err conftest.
$ac_ext
16626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16627 echo "${ECHO_T}$ac_header_preproc" >&6; }
16629 # So? What about this header?
16630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16636 ac_header_preproc
=yes
16639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16652 ## ----------------------------------- ##
16653 ## Report this to llvmbugs@cs.uiuc.edu ##
16654 ## ----------------------------------- ##
16656 ) |
sed "s/^/$as_me: WARNING: /" >&2
16659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16661 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16662 echo $ECHO_N "(cached) $ECHO_C" >&6
16664 eval "$as_ac_Header=\$ac_header_preproc"
16666 ac_res
=`eval echo '${'$as_ac_Header'}'`
16667 { echo "$as_me:$LINENO: result: $ac_res" >&5
16668 echo "${ECHO_T}$ac_res" >&6; }
16671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16672 cat >>confdefs.h
<<_ACEOF
16673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16681 for ac_header
in fenv.h
16683 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16684 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16687 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16688 echo $ECHO_N "(cached) $ECHO_C" >&6
16690 ac_res
=`eval echo '${'$as_ac_Header'}'`
16691 { echo "$as_me:$LINENO: result: $ac_res" >&5
16692 echo "${ECHO_T}$ac_res" >&6; }
16694 # Is the header compilable?
16695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16697 cat >conftest.
$ac_ext <<_ACEOF
16700 cat confdefs.h
>>conftest.
$ac_ext
16701 cat >>conftest.
$ac_ext <<_ACEOF
16702 /* end confdefs.h. */
16703 $ac_includes_default
16704 #include <$ac_header>
16706 rm -f conftest.
$ac_objext
16707 if { (ac_try
="$ac_compile"
16708 case "(($ac_try" in
16709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16710 *) ac_try_echo=$ac_try;;
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713 (eval "$ac_compile") 2>conftest.er1
16715 grep -v '^ *+' conftest.er1 >conftest.err
16717 cat conftest.err >&5
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); } &&
16720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16721 { (case "(($ac_try" in
16722 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16723 *) ac_try_echo
=$ac_try;;
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_try") 2>&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); }; } &&
16730 { ac_try
='test -s conftest.$ac_objext'
16731 { (case "(($ac_try" in
16732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16733 *) ac_try_echo=$ac_try;;
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736 (eval "$ac_try") 2>&5
16738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739 (exit $ac_status); }; }; then
16740 ac_header_compiler=yes
16742 echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 ac_header_compiler=no
16748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16750 echo "${ECHO_T}$ac_header_compiler" >&6; }
16752 # Is the header present?
16753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16755 cat >conftest.$ac_ext <<_ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h. */
16761 #include <$ac_header>
16763 if { (ac_try="$ac_cpp conftest.$ac_ext"
16764 case "(($ac_try" in
16765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16766 *) ac_try_echo
=$ac_try;;
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16771 grep -v '^ *+' conftest.er1
>conftest.err
16773 cat conftest.err
>&5
16774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775 (exit $ac_status); } >/dev
/null
; then
16776 if test -s conftest.err
; then
16777 ac_cpp_err
=$ac_c_preproc_warn_flag
16778 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16785 if test -z "$ac_cpp_err"; then
16786 ac_header_preproc
=yes
16788 echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.
$ac_ext >&5
16791 ac_header_preproc
=no
16794 rm -f conftest.err conftest.
$ac_ext
16795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16796 echo "${ECHO_T}$ac_header_preproc" >&6; }
16798 # So? What about this header?
16799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16805 ac_header_preproc
=yes
16808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16821 ## ----------------------------------- ##
16822 ## Report this to llvmbugs@cs.uiuc.edu ##
16823 ## ----------------------------------- ##
16825 ) |
sed "s/^/$as_me: WARNING: /" >&2
16828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16830 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16833 eval "$as_ac_Header=\$ac_header_preproc"
16835 ac_res
=`eval echo '${'$as_ac_Header'}'`
16836 { echo "$as_me:$LINENO: result: $ac_res" >&5
16837 echo "${ECHO_T}$ac_res" >&6; }
16840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16841 cat >>confdefs.h
<<_ACEOF
16842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16849 if test "$ENABLE_THREADS" -eq 1 ; then
16851 for ac_header
in pthread.h
16853 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16854 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16857 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16858 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 ac_res
=`eval echo '${'$as_ac_Header'}'`
16861 { echo "$as_me:$LINENO: result: $ac_res" >&5
16862 echo "${ECHO_T}$ac_res" >&6; }
16864 # Is the header compilable?
16865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16867 cat >conftest.
$ac_ext <<_ACEOF
16870 cat confdefs.h
>>conftest.
$ac_ext
16871 cat >>conftest.
$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16873 $ac_includes_default
16874 #include <$ac_header>
16876 rm -f conftest.
$ac_objext
16877 if { (ac_try
="$ac_compile"
16878 case "(($ac_try" in
16879 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_compile") 2>conftest.er1
16885 grep -v '^ *+' conftest.er1 >conftest.err
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } &&
16890 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16891 { (case "(($ac_try" in
16892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16893 *) ac_try_echo
=$ac_try;;
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896 (eval "$ac_try") 2>&5
16898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899 (exit $ac_status); }; } &&
16900 { ac_try
='test -s conftest.$ac_objext'
16901 { (case "(($ac_try" in
16902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16903 *) ac_try_echo=$ac_try;;
16905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16906 (eval "$ac_try") 2>&5
16908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909 (exit $ac_status); }; }; then
16910 ac_header_compiler=yes
16912 echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16915 ac_header_compiler=no
16918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16920 echo "${ECHO_T}$ac_header_compiler" >&6; }
16922 # Is the header present?
16923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16925 cat >conftest.$ac_ext <<_ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h. */
16931 #include <$ac_header>
16933 if { (ac_try="$ac_cpp conftest.$ac_ext"
16934 case "(($ac_try" in
16935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16936 *) ac_try_echo
=$ac_try;;
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16941 grep -v '^ *+' conftest.er1
>conftest.err
16943 cat conftest.err
>&5
16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945 (exit $ac_status); } >/dev
/null
; then
16946 if test -s conftest.err
; then
16947 ac_cpp_err
=$ac_c_preproc_warn_flag
16948 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16955 if test -z "$ac_cpp_err"; then
16956 ac_header_preproc
=yes
16958 echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.
$ac_ext >&5
16961 ac_header_preproc
=no
16964 rm -f conftest.err conftest.
$ac_ext
16965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16966 echo "${ECHO_T}$ac_header_preproc" >&6; }
16968 # So? What about this header?
16969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16975 ac_header_preproc
=yes
16978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16991 ## ----------------------------------- ##
16992 ## Report this to llvmbugs@cs.uiuc.edu ##
16993 ## ----------------------------------- ##
16995 ) |
sed "s/^/$as_me: WARNING: /" >&2
16998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17000 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17001 echo $ECHO_N "(cached) $ECHO_C" >&6
17003 eval "$as_ac_Header=\$ac_header_preproc"
17005 ac_res
=`eval echo '${'$as_ac_Header'}'`
17006 { echo "$as_me:$LINENO: result: $ac_res" >&5
17007 echo "${ECHO_T}$ac_res" >&6; }
17010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17011 cat >>confdefs.h
<<_ACEOF
17012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17028 if test "$llvm_cv_enable_libffi" = "yes" ; then
17031 for ac_header
in ffi.h ffi
/ffi.h
17033 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17034 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17035 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17037 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17038 echo $ECHO_N "(cached) $ECHO_C" >&6
17040 ac_res
=`eval echo '${'$as_ac_Header'}'`
17041 { echo "$as_me:$LINENO: result: $ac_res" >&5
17042 echo "${ECHO_T}$ac_res" >&6; }
17044 # Is the header compilable?
17045 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17047 cat >conftest.
$ac_ext <<_ACEOF
17050 cat confdefs.h
>>conftest.
$ac_ext
17051 cat >>conftest.
$ac_ext <<_ACEOF
17052 /* end confdefs.h. */
17053 $ac_includes_default
17054 #include <$ac_header>
17056 rm -f conftest.
$ac_objext
17057 if { (ac_try
="$ac_compile"
17058 case "(($ac_try" in
17059 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17060 *) ac_try_echo=$ac_try;;
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063 (eval "$ac_compile") 2>conftest.er1
17065 grep -v '^ *+' conftest.er1 >conftest.err
17067 cat conftest.err >&5
17068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069 (exit $ac_status); } &&
17070 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17071 { (case "(($ac_try" in
17072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17073 *) ac_try_echo
=$ac_try;;
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076 (eval "$ac_try") 2>&5
17078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079 (exit $ac_status); }; } &&
17080 { ac_try
='test -s conftest.$ac_objext'
17081 { (case "(($ac_try" in
17082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17083 *) ac_try_echo=$ac_try;;
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086 (eval "$ac_try") 2>&5
17088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089 (exit $ac_status); }; }; then
17090 ac_header_compiler=yes
17092 echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17095 ac_header_compiler=no
17098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17100 echo "${ECHO_T}$ac_header_compiler" >&6; }
17102 # Is the header present?
17103 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17105 cat >conftest.$ac_ext <<_ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h. */
17111 #include <$ac_header>
17113 if { (ac_try="$ac_cpp conftest.$ac_ext"
17114 case "(($ac_try" in
17115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17116 *) ac_try_echo
=$ac_try;;
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17121 grep -v '^ *+' conftest.er1
>conftest.err
17123 cat conftest.err
>&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } >/dev
/null
; then
17126 if test -s conftest.err
; then
17127 ac_cpp_err
=$ac_c_preproc_warn_flag
17128 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17135 if test -z "$ac_cpp_err"; then
17136 ac_header_preproc
=yes
17138 echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.
$ac_ext >&5
17141 ac_header_preproc
=no
17144 rm -f conftest.err conftest.
$ac_ext
17145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17146 echo "${ECHO_T}$ac_header_preproc" >&6; }
17148 # So? What about this header?
17149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17151 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17153 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17155 ac_header_preproc
=yes
17158 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17160 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17161 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17162 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17164 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17165 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17166 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17168 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17171 ## ----------------------------------- ##
17172 ## Report this to llvmbugs@cs.uiuc.edu ##
17173 ## ----------------------------------- ##
17175 ) |
sed "s/^/$as_me: WARNING: /" >&2
17178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17180 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17181 echo $ECHO_N "(cached) $ECHO_C" >&6
17183 eval "$as_ac_Header=\$ac_header_preproc"
17185 ac_res
=`eval echo '${'$as_ac_Header'}'`
17186 { echo "$as_me:$LINENO: result: $ac_res" >&5
17187 echo "${ECHO_T}$ac_res" >&6; }
17190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17191 cat >>confdefs.h
<<_ACEOF
17192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17202 for ac_header
in CrashReporterClient.h
17204 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17205 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17206 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17208 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17211 ac_res
=`eval echo '${'$as_ac_Header'}'`
17212 { echo "$as_me:$LINENO: result: $ac_res" >&5
17213 echo "${ECHO_T}$ac_res" >&6; }
17215 # Is the header compilable?
17216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17218 cat >conftest.
$ac_ext <<_ACEOF
17221 cat confdefs.h
>>conftest.
$ac_ext
17222 cat >>conftest.
$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 $ac_includes_default
17225 #include <$ac_header>
17227 rm -f conftest.
$ac_objext
17228 if { (ac_try
="$ac_compile"
17229 case "(($ac_try" in
17230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_compile") 2>conftest.er1
17236 grep -v '^ *+' conftest.er1 >conftest.err
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240 (exit $ac_status); } &&
17241 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242 { (case "(($ac_try" in
17243 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17244 *) ac_try_echo
=$ac_try;;
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247 (eval "$ac_try") 2>&5
17249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250 (exit $ac_status); }; } &&
17251 { ac_try
='test -s conftest.$ac_objext'
17252 { (case "(($ac_try" in
17253 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_try") 2>&5
17259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260 (exit $ac_status); }; }; then
17261 ac_header_compiler=yes
17263 echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17266 ac_header_compiler=no
17269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17271 echo "${ECHO_T}$ac_header_compiler" >&6; }
17273 # Is the header present?
17274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17276 cat >conftest.$ac_ext <<_ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h. */
17282 #include <$ac_header>
17284 if { (ac_try="$ac_cpp conftest.$ac_ext"
17285 case "(($ac_try" in
17286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17287 *) ac_try_echo
=$ac_try;;
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17292 grep -v '^ *+' conftest.er1
>conftest.err
17294 cat conftest.err
>&5
17295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296 (exit $ac_status); } >/dev
/null
; then
17297 if test -s conftest.err
; then
17298 ac_cpp_err
=$ac_c_preproc_warn_flag
17299 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17306 if test -z "$ac_cpp_err"; then
17307 ac_header_preproc
=yes
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.
$ac_ext >&5
17312 ac_header_preproc
=no
17315 rm -f conftest.err conftest.
$ac_ext
17316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17317 echo "${ECHO_T}$ac_header_preproc" >&6; }
17319 # So? What about this header?
17320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17322 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17326 ac_header_preproc
=yes
17329 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17331 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17332 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17333 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17335 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17336 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17337 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17339 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17342 ## ----------------------------------- ##
17343 ## Report this to llvmbugs@cs.uiuc.edu ##
17344 ## ----------------------------------- ##
17346 ) |
sed "s/^/$as_me: WARNING: /" >&2
17349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17351 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17352 echo $ECHO_N "(cached) $ECHO_C" >&6
17354 eval "$as_ac_Header=\$ac_header_preproc"
17356 ac_res
=`eval echo '${'$as_ac_Header'}'`
17357 { echo "$as_me:$LINENO: result: $ac_res" >&5
17358 echo "${ECHO_T}$ac_res" >&6; }
17361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17362 cat >>confdefs.h
<<_ACEOF
17363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17374 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17375 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17376 if test "${ac_cv_huge_val_sanity+set}" = set; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17381 ac_cpp
='$CXXCPP $CPPFLAGS'
17382 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17383 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17384 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17386 ac_save_CXXFLAGS
=$CXXFLAGS
17388 if test "$cross_compiling" = yes; then
17389 ac_cv_huge_val_sanity
=yes
17391 cat >conftest.
$ac_ext <<_ACEOF
17394 cat confdefs.h
>>conftest.
$ac_ext
17395 cat >>conftest.
$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17401 double x = HUGE_VAL; return x != x;
17406 rm -f conftest
$ac_exeext
17407 if { (ac_try
="$ac_link"
17408 case "(($ac_try" in
17409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_link") 2>&5
17415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17417 { (case "(($ac_try" in
17418 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17419 *) ac_try_echo
=$ac_try;;
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422 (eval "$ac_try") 2>&5
17424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425 (exit $ac_status); }; }; then
17426 ac_cv_huge_val_sanity
=yes
17428 echo "$as_me: program exited with status $ac_status" >&5
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.
$ac_ext >&5
17432 ( exit $ac_status )
17433 ac_cv_huge_val_sanity
=no
17435 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17439 CXXFLAGS
=$ac_save_CXXFLAGS
17441 ac_cpp
='$CPP $CPPFLAGS'
17442 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17443 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17444 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17448 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17449 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17450 HUGE_VAL_SANITY
=$ac_cv_huge_val_sanity
17453 { echo "$as_me:$LINENO: checking for pid_t" >&5
17454 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17455 if test "${ac_cv_type_pid_t+set}" = set; then
17456 echo $ECHO_N "(cached) $ECHO_C" >&6
17458 cat >conftest.
$ac_ext <<_ACEOF
17461 cat confdefs.h
>>conftest.
$ac_ext
17462 cat >>conftest.
$ac_ext <<_ACEOF
17463 /* end confdefs.h. */
17464 $ac_includes_default
17465 typedef pid_t ac__type_new_;
17469 if ((ac__type_new_ *) 0)
17471 if (sizeof (ac__type_new_))
17477 rm -f conftest.
$ac_objext
17478 if { (ac_try
="$ac_compile"
17479 case "(($ac_try" in
17480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17481 *) ac_try_echo=$ac_try;;
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484 (eval "$ac_compile") 2>conftest.er1
17486 grep -v '^ *+' conftest.er1 >conftest.err
17488 cat conftest.err >&5
17489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490 (exit $ac_status); } &&
17491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17492 { (case "(($ac_try" in
17493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17494 *) ac_try_echo
=$ac_try;;
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497 (eval "$ac_try") 2>&5
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; } &&
17501 { ac_try
='test -s conftest.$ac_objext'
17502 { (case "(($ac_try" in
17503 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_try") 2>&5
17509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); }; }; then
17511 ac_cv_type_pid_t=yes
17513 echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17516 ac_cv_type_pid_t=no
17519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17521 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17522 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17523 if test $ac_cv_type_pid_t = yes; then
17527 cat >>confdefs.h <<_ACEOF
17533 { echo "$as_me:$LINENO: checking for size_t" >&5
17534 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17535 if test "${ac_cv_type_size_t+set}" = set; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 cat >conftest.$ac_ext <<_ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17544 $ac_includes_default
17545 typedef size_t ac__type_new_;
17549 if ((ac__type_new_ *) 0)
17551 if (sizeof (ac__type_new_))
17557 rm -f conftest.$ac_objext
17558 if { (ac_try="$ac_compile"
17559 case "(($ac_try" in
17560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17561 *) ac_try_echo
=$ac_try;;
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_compile") 2>conftest.er1
17566 grep -v '^ *+' conftest.er1
>conftest.err
17568 cat conftest.err
>&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } &&
17571 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17572 { (case "(($ac_try" in
17573 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17574 *) ac_try_echo=$ac_try;;
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577 (eval "$ac_try") 2>&5
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; } &&
17581 { ac_try='test -s conftest.$ac_objext'
17582 { (case "(($ac_try" in
17583 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17584 *) ac_try_echo
=$ac_try;;
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587 (eval "$ac_try") 2>&5
17589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590 (exit $ac_status); }; }; then
17591 ac_cv_type_size_t
=yes
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.
$ac_ext >&5
17596 ac_cv_type_size_t
=no
17599 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17601 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17602 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17603 if test $ac_cv_type_size_t = yes; then
17607 cat >>confdefs.h
<<_ACEOF
17608 #define size_t unsigned int
17614 cat >>confdefs.h
<<_ACEOF
17615 #define RETSIGTYPE void
17618 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17619 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17620 if test "${ac_cv_struct_tm+set}" = set; then
17621 echo $ECHO_N "(cached) $ECHO_C" >&6
17623 cat >conftest.
$ac_ext <<_ACEOF
17626 cat confdefs.h
>>conftest.
$ac_ext
17627 cat >>conftest.
$ac_ext <<_ACEOF
17628 /* end confdefs.h. */
17629 #include <sys/types.h>
17635 struct tm *tp; tp->tm_sec;
17640 rm -f conftest.
$ac_objext
17641 if { (ac_try
="$ac_compile"
17642 case "(($ac_try" in
17643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17644 *) ac_try_echo=$ac_try;;
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647 (eval "$ac_compile") 2>conftest.er1
17649 grep -v '^ *+' conftest.er1 >conftest.err
17651 cat conftest.err >&5
17652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653 (exit $ac_status); } &&
17654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17655 { (case "(($ac_try" in
17656 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17657 *) ac_try_echo
=$ac_try;;
17659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660 (eval "$ac_try") 2>&5
17662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663 (exit $ac_status); }; } &&
17664 { ac_try
='test -s conftest.$ac_objext'
17665 { (case "(($ac_try" in
17666 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17667 *) ac_try_echo=$ac_try;;
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670 (eval "$ac_try") 2>&5
17672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673 (exit $ac_status); }; }; then
17674 ac_cv_struct_tm=time.h
17676 echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17679 ac_cv_struct_tm=sys/time.h
17682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17684 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17685 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17686 if test $ac_cv_struct_tm = sys/time.h; then
17688 cat >>confdefs.h <<\_ACEOF
17689 #define TM_IN_SYS_TIME 1
17694 { echo "$as_me:$LINENO: checking for int64_t" >&5
17695 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17696 if test "${ac_cv_type_int64_t+set}" = set; then
17697 echo $ECHO_N "(cached) $ECHO_C" >&6
17699 cat >conftest.$ac_ext <<_ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h. */
17705 $ac_includes_default
17706 typedef int64_t ac__type_new_;
17710 if ((ac__type_new_ *) 0)
17712 if (sizeof (ac__type_new_))
17718 rm -f conftest.$ac_objext
17719 if { (ac_try="$ac_compile"
17720 case "(($ac_try" in
17721 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17722 *) ac_try_echo
=$ac_try;;
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_compile") 2>conftest.er1
17727 grep -v '^ *+' conftest.er1
>conftest.err
17729 cat conftest.err
>&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); } &&
17732 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733 { (case "(($ac_try" in
17734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17735 *) ac_try_echo=$ac_try;;
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738 (eval "$ac_try") 2>&5
17740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741 (exit $ac_status); }; } &&
17742 { ac_try='test -s conftest.$ac_objext'
17743 { (case "(($ac_try" in
17744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17745 *) ac_try_echo
=$ac_try;;
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748 (eval "$ac_try") 2>&5
17750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751 (exit $ac_status); }; }; then
17752 ac_cv_type_int64_t
=yes
17754 echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.
$ac_ext >&5
17757 ac_cv_type_int64_t
=no
17760 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17762 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17763 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17764 if test $ac_cv_type_int64_t = yes; then
17766 cat >>confdefs.h
<<_ACEOF
17767 #define HAVE_INT64_T 1
17772 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17773 echo "$as_me: error: Type int64_t required but not found" >&2;}
17774 { (exit 1); exit 1; }; }
17777 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17778 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17779 if test "${ac_cv_type_uint64_t+set}" = set; then
17780 echo $ECHO_N "(cached) $ECHO_C" >&6
17782 cat >conftest.
$ac_ext <<_ACEOF
17785 cat confdefs.h
>>conftest.
$ac_ext
17786 cat >>conftest.
$ac_ext <<_ACEOF
17787 /* end confdefs.h. */
17788 $ac_includes_default
17789 typedef uint64_t ac__type_new_;
17793 if ((ac__type_new_ *) 0)
17795 if (sizeof (ac__type_new_))
17801 rm -f conftest.
$ac_objext
17802 if { (ac_try
="$ac_compile"
17803 case "(($ac_try" in
17804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17805 *) ac_try_echo=$ac_try;;
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808 (eval "$ac_compile") 2>conftest.er1
17810 grep -v '^ *+' conftest.er1 >conftest.err
17812 cat conftest.err >&5
17813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814 (exit $ac_status); } &&
17815 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17816 { (case "(($ac_try" in
17817 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17818 *) ac_try_echo
=$ac_try;;
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_try") 2>&5
17823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824 (exit $ac_status); }; } &&
17825 { ac_try
='test -s conftest.$ac_objext'
17826 { (case "(($ac_try" in
17827 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831 (eval "$ac_try") 2>&5
17833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834 (exit $ac_status); }; }; then
17835 ac_cv_type_uint64_t=yes
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17840 ac_cv_type_uint64_t=no
17843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17845 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17846 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17847 if test $ac_cv_type_uint64_t = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define HAVE_UINT64_T 1
17855 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17856 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17857 if test "${ac_cv_type_u_int64_t+set}" = set; then
17858 echo $ECHO_N "(cached) $ECHO_C" >&6
17860 cat >conftest.$ac_ext <<_ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h. */
17866 $ac_includes_default
17867 typedef u_int64_t ac__type_new_;
17871 if ((ac__type_new_ *) 0)
17873 if (sizeof (ac__type_new_))
17879 rm -f conftest.$ac_objext
17880 if { (ac_try="$ac_compile"
17881 case "(($ac_try" in
17882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17883 *) ac_try_echo
=$ac_try;;
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_compile") 2>conftest.er1
17888 grep -v '^ *+' conftest.er1
>conftest.err
17890 cat conftest.err
>&5
17891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892 (exit $ac_status); } &&
17893 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17894 { (case "(($ac_try" in
17895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17896 *) ac_try_echo=$ac_try;;
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899 (eval "$ac_try") 2>&5
17901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902 (exit $ac_status); }; } &&
17903 { ac_try='test -s conftest.$ac_objext'
17904 { (case "(($ac_try" in
17905 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17906 *) ac_try_echo
=$ac_try;;
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909 (eval "$ac_try") 2>&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); }; }; then
17913 ac_cv_type_u_int64_t
=yes
17915 echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.
$ac_ext >&5
17918 ac_cv_type_u_int64_t
=no
17921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17923 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17924 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17925 if test $ac_cv_type_u_int64_t = yes; then
17927 cat >>confdefs.h
<<_ACEOF
17928 #define HAVE_U_INT64_T 1
17933 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17934 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17935 { (exit 1); exit 1; }; }
17949 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17951 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17954 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17955 echo $ECHO_N "(cached) $ECHO_C" >&6
17957 cat >conftest.
$ac_ext <<_ACEOF
17960 cat confdefs.h
>>conftest.
$ac_ext
17961 cat >>conftest.
$ac_ext <<_ACEOF
17962 /* end confdefs.h. */
17963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17964 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17965 #define $ac_func innocuous_$ac_func
17967 /* System header to define __stub macros and hopefully few prototypes,
17968 which can conflict with char $ac_func (); below.
17969 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17970 <limits.h> exists even on freestanding compilers. */
17973 # include <limits.h>
17975 # include <assert.h>
17980 /* Override any GCC internal prototype to avoid an error.
17981 Use char because int might match the return type of a GCC
17982 builtin and then its argument prototype would still apply. */
17987 /* The GNU C library defines this for functions which it implements
17988 to always fail with ENOSYS. Some functions are actually named
17989 something starting with __ and the normal name is an alias. */
17990 #if defined __stub_$ac_func || defined __stub___$ac_func
17997 return $ac_func ();
18002 rm -f conftest.
$ac_objext conftest
$ac_exeext
18003 if { (ac_try
="$ac_link"
18004 case "(($ac_try" in
18005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_link") 2>conftest.er1
18011 grep -v '^ *+' conftest.er1 >conftest.err
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } &&
18016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18017 { (case "(($ac_try" in
18018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18019 *) ac_try_echo
=$ac_try;;
18021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18022 (eval "$ac_try") 2>&5
18024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025 (exit $ac_status); }; } &&
18026 { ac_try
='test -s conftest$ac_exeext'
18027 { (case "(($ac_try" in
18028 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18029 *) ac_try_echo=$ac_try;;
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032 (eval "$ac_try") 2>&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); }; }; then
18036 eval "$as_ac_var=yes"
18038 echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18041 eval "$as_ac_var=no"
18044 rm -f core conftest.err conftest.$ac_objext \
18045 conftest$ac_exeext conftest.$ac_ext
18047 ac_res=`eval echo '${'$as_ac_var'}'`
18048 { echo "$as_me:$LINENO: result: $ac_res" >&5
18049 echo "${ECHO_T}$ac_res" >&6; }
18050 if test `eval echo '${'$as_ac_var'}'` = yes; then
18051 cat >>confdefs.h <<_ACEOF
18052 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18062 for ac_func in powf fmodf strtof round
18064 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18068 echo $ECHO_N "(cached) $ECHO_C" >&6
18070 cat >conftest.$ac_ext <<_ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h. */
18076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18077 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18078 #define $ac_func innocuous_$ac_func
18080 /* System header to define __stub macros and hopefully few prototypes,
18081 which can conflict with char $ac_func (); below.
18082 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18083 <limits.h> exists even on freestanding compilers. */
18086 # include <limits.h>
18088 # include <assert.h>
18093 /* Override any GCC internal prototype to avoid an error.
18094 Use char because int might match the return type of a GCC
18095 builtin and then its argument prototype would still apply. */
18100 /* The GNU C library defines this for functions which it implements
18101 to always fail with ENOSYS. Some functions are actually named
18102 something starting with __ and the normal name is an alias. */
18103 #if defined __stub_$ac_func || defined __stub___$ac_func
18110 return $ac_func ();
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (ac_try="$ac_link"
18117 case "(($ac_try" in
18118 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18119 *) ac_try_echo
=$ac_try;;
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122 (eval "$ac_link") 2>conftest.er1
18124 grep -v '^ *+' conftest.er1
>conftest.err
18126 cat conftest.err
>&5
18127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128 (exit $ac_status); } &&
18129 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18130 { (case "(($ac_try" in
18131 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18132 *) ac_try_echo=$ac_try;;
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135 (eval "$ac_try") 2>&5
18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138 (exit $ac_status); }; } &&
18139 { ac_try='test -s conftest$ac_exeext'
18140 { (case "(($ac_try" in
18141 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18142 *) ac_try_echo
=$ac_try;;
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_try") 2>&5
18147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148 (exit $ac_status); }; }; then
18149 eval "$as_ac_var=yes"
18151 echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.
$ac_ext >&5
18154 eval "$as_ac_var=no"
18157 rm -f core conftest.err conftest.
$ac_objext \
18158 conftest
$ac_exeext conftest.
$ac_ext
18160 ac_res
=`eval echo '${'$as_ac_var'}'`
18161 { echo "$as_me:$LINENO: result: $ac_res" >&5
18162 echo "${ECHO_T}$ac_res" >&6; }
18163 if test `eval echo '${'$as_ac_var'}'` = yes; then
18164 cat >>confdefs.h
<<_ACEOF
18165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18176 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
18178 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18181 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18182 echo $ECHO_N "(cached) $ECHO_C" >&6
18184 cat >conftest.
$ac_ext <<_ACEOF
18187 cat confdefs.h
>>conftest.
$ac_ext
18188 cat >>conftest.
$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18192 #define $ac_func innocuous_$ac_func
18194 /* System header to define __stub macros and hopefully few prototypes,
18195 which can conflict with char $ac_func (); below.
18196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18197 <limits.h> exists even on freestanding compilers. */
18200 # include <limits.h>
18202 # include <assert.h>
18207 /* Override any GCC internal prototype to avoid an error.
18208 Use char because int might match the return type of a GCC
18209 builtin and then its argument prototype would still apply. */
18214 /* The GNU C library defines this for functions which it implements
18215 to always fail with ENOSYS. Some functions are actually named
18216 something starting with __ and the normal name is an alias. */
18217 #if defined __stub_$ac_func || defined __stub___$ac_func
18224 return $ac_func ();
18229 rm -f conftest.
$ac_objext conftest
$ac_exeext
18230 if { (ac_try
="$ac_link"
18231 case "(($ac_try" in
18232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18233 *) ac_try_echo=$ac_try;;
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236 (eval "$ac_link") 2>conftest.er1
18238 grep -v '^ *+' conftest.er1 >conftest.err
18240 cat conftest.err >&5
18241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242 (exit $ac_status); } &&
18243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18244 { (case "(($ac_try" in
18245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18246 *) ac_try_echo
=$ac_try;;
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249 (eval "$ac_try") 2>&5
18251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252 (exit $ac_status); }; } &&
18253 { ac_try
='test -s conftest$ac_exeext'
18254 { (case "(($ac_try" in
18255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_try") 2>&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); }; }; then
18263 eval "$as_ac_var=yes"
18265 echo "$as_me: failed program was:" >&5
18266 sed 's/^/| /' conftest.$ac_ext >&5
18268 eval "$as_ac_var=no"
18271 rm -f core conftest.err conftest.$ac_objext \
18272 conftest$ac_exeext conftest.$ac_ext
18274 ac_res=`eval echo '${'$as_ac_var'}'`
18275 { echo "$as_me:$LINENO: result: $ac_res" >&5
18276 echo "${ECHO_T}$ac_res" >&6; }
18277 if test `eval echo '${'$as_ac_var'}'` = yes; then
18278 cat >>confdefs.h <<_ACEOF
18279 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18288 for ac_func in isatty mkdtemp mkstemp
18290 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18294 echo $ECHO_N "(cached) $ECHO_C" >&6
18296 cat >conftest.$ac_ext <<_ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18303 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18304 #define $ac_func innocuous_$ac_func
18306 /* System header to define __stub macros and hopefully few prototypes,
18307 which can conflict with char $ac_func (); below.
18308 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18309 <limits.h> exists even on freestanding compilers. */
18312 # include <limits.h>
18314 # include <assert.h>
18319 /* Override any GCC internal prototype to avoid an error.
18320 Use char because int might match the return type of a GCC
18321 builtin and then its argument prototype would still apply. */
18326 /* The GNU C library defines this for functions which it implements
18327 to always fail with ENOSYS. Some functions are actually named
18328 something starting with __ and the normal name is an alias. */
18329 #if defined __stub_$ac_func || defined __stub___$ac_func
18336 return $ac_func ();
18341 rm -f conftest.$ac_objext conftest$ac_exeext
18342 if { (ac_try="$ac_link"
18343 case "(($ac_try" in
18344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18345 *) ac_try_echo
=$ac_try;;
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_link") 2>conftest.er1
18350 grep -v '^ *+' conftest.er1
>conftest.err
18352 cat conftest.err
>&5
18353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354 (exit $ac_status); } &&
18355 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18356 { (case "(($ac_try" in
18357 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18358 *) ac_try_echo=$ac_try;;
18360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361 (eval "$ac_try") 2>&5
18363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364 (exit $ac_status); }; } &&
18365 { ac_try='test -s conftest$ac_exeext'
18366 { (case "(($ac_try" in
18367 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18368 *) ac_try_echo
=$ac_try;;
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371 (eval "$ac_try") 2>&5
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); }; }; then
18375 eval "$as_ac_var=yes"
18377 echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.
$ac_ext >&5
18380 eval "$as_ac_var=no"
18383 rm -f core conftest.err conftest.
$ac_objext \
18384 conftest
$ac_exeext conftest.
$ac_ext
18386 ac_res
=`eval echo '${'$as_ac_var'}'`
18387 { echo "$as_me:$LINENO: result: $ac_res" >&5
18388 echo "${ECHO_T}$ac_res" >&6; }
18389 if test `eval echo '${'$as_ac_var'}'` = yes; then
18390 cat >>confdefs.h
<<_ACEOF
18391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18403 for ac_func
in mktemp posix_spawn realpath sbrk setrlimit strdup
18405 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18408 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18409 echo $ECHO_N "(cached) $ECHO_C" >&6
18411 cat >conftest.
$ac_ext <<_ACEOF
18414 cat confdefs.h
>>conftest.
$ac_ext
18415 cat >>conftest.
$ac_ext <<_ACEOF
18416 /* end confdefs.h. */
18417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18419 #define $ac_func innocuous_$ac_func
18421 /* System header to define __stub macros and hopefully few prototypes,
18422 which can conflict with char $ac_func (); below.
18423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18424 <limits.h> exists even on freestanding compilers. */
18427 # include <limits.h>
18429 # include <assert.h>
18434 /* Override any GCC internal prototype to avoid an error.
18435 Use char because int might match the return type of a GCC
18436 builtin and then its argument prototype would still apply. */
18441 /* The GNU C library defines this for functions which it implements
18442 to always fail with ENOSYS. Some functions are actually named
18443 something starting with __ and the normal name is an alias. */
18444 #if defined __stub_$ac_func || defined __stub___$ac_func
18451 return $ac_func ();
18456 rm -f conftest.
$ac_objext conftest
$ac_exeext
18457 if { (ac_try
="$ac_link"
18458 case "(($ac_try" in
18459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_link") 2>conftest.er1
18465 grep -v '^ *+' conftest.er1 >conftest.err
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } &&
18470 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18471 { (case "(($ac_try" in
18472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18473 *) ac_try_echo
=$ac_try;;
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476 (eval "$ac_try") 2>&5
18478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479 (exit $ac_status); }; } &&
18480 { ac_try
='test -s conftest$ac_exeext'
18481 { (case "(($ac_try" in
18482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18483 *) ac_try_echo=$ac_try;;
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486 (eval "$ac_try") 2>&5
18488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489 (exit $ac_status); }; }; then
18490 eval "$as_ac_var=yes"
18492 echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18495 eval "$as_ac_var=no"
18498 rm -f core conftest.err conftest.$ac_objext \
18499 conftest$ac_exeext conftest.$ac_ext
18501 ac_res=`eval echo '${'$as_ac_var'}'`
18502 { echo "$as_me:$LINENO: result: $ac_res" >&5
18503 echo "${ECHO_T}$ac_res" >&6; }
18504 if test `eval echo '${'$as_ac_var'}'` = yes; then
18505 cat >>confdefs.h <<_ACEOF
18506 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18516 for ac_func in strerror strerror_r strerror_s setenv
18518 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18522 echo $ECHO_N "(cached) $ECHO_C" >&6
18524 cat >conftest.$ac_ext <<_ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h. */
18530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18531 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18532 #define $ac_func innocuous_$ac_func
18534 /* System header to define __stub macros and hopefully few prototypes,
18535 which can conflict with char $ac_func (); below.
18536 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18537 <limits.h> exists even on freestanding compilers. */
18540 # include <limits.h>
18542 # include <assert.h>
18547 /* Override any GCC internal prototype to avoid an error.
18548 Use char because int might match the return type of a GCC
18549 builtin and then its argument prototype would still apply. */
18554 /* The GNU C library defines this for functions which it implements
18555 to always fail with ENOSYS. Some functions are actually named
18556 something starting with __ and the normal name is an alias. */
18557 #if defined __stub_$ac_func || defined __stub___$ac_func
18564 return $ac_func ();
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (ac_try="$ac_link"
18571 case "(($ac_try" in
18572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18573 *) ac_try_echo
=$ac_try;;
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576 (eval "$ac_link") 2>conftest.er1
18578 grep -v '^ *+' conftest.er1
>conftest.err
18580 cat conftest.err
>&5
18581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582 (exit $ac_status); } &&
18583 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18584 { (case "(($ac_try" in
18585 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18586 *) ac_try_echo=$ac_try;;
18588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589 (eval "$ac_try") 2>&5
18591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592 (exit $ac_status); }; } &&
18593 { ac_try='test -s conftest$ac_exeext'
18594 { (case "(($ac_try" in
18595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18596 *) ac_try_echo
=$ac_try;;
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_try") 2>&5
18601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602 (exit $ac_status); }; }; then
18603 eval "$as_ac_var=yes"
18605 echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.
$ac_ext >&5
18608 eval "$as_ac_var=no"
18611 rm -f core conftest.err conftest.
$ac_objext \
18612 conftest
$ac_exeext conftest.
$ac_ext
18614 ac_res
=`eval echo '${'$as_ac_var'}'`
18615 { echo "$as_me:$LINENO: result: $ac_res" >&5
18616 echo "${ECHO_T}$ac_res" >&6; }
18617 if test `eval echo '${'$as_ac_var'}'` = yes; then
18618 cat >>confdefs.h
<<_ACEOF
18619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18629 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
18631 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18634 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18635 echo $ECHO_N "(cached) $ECHO_C" >&6
18637 cat >conftest.
$ac_ext <<_ACEOF
18640 cat confdefs.h
>>conftest.
$ac_ext
18641 cat >>conftest.
$ac_ext <<_ACEOF
18642 /* end confdefs.h. */
18643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18644 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18645 #define $ac_func innocuous_$ac_func
18647 /* System header to define __stub macros and hopefully few prototypes,
18648 which can conflict with char $ac_func (); below.
18649 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18650 <limits.h> exists even on freestanding compilers. */
18653 # include <limits.h>
18655 # include <assert.h>
18660 /* Override any GCC internal prototype to avoid an error.
18661 Use char because int might match the return type of a GCC
18662 builtin and then its argument prototype would still apply. */
18667 /* The GNU C library defines this for functions which it implements
18668 to always fail with ENOSYS. Some functions are actually named
18669 something starting with __ and the normal name is an alias. */
18670 #if defined __stub_$ac_func || defined __stub___$ac_func
18677 return $ac_func ();
18682 rm -f conftest.
$ac_objext conftest
$ac_exeext
18683 if { (ac_try
="$ac_link"
18684 case "(($ac_try" in
18685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18686 *) ac_try_echo=$ac_try;;
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689 (eval "$ac_link") 2>conftest.er1
18691 grep -v '^ *+' conftest.er1 >conftest.err
18693 cat conftest.err >&5
18694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695 (exit $ac_status); } &&
18696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697 { (case "(($ac_try" in
18698 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18699 *) ac_try_echo
=$ac_try;;
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702 (eval "$ac_try") 2>&5
18704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705 (exit $ac_status); }; } &&
18706 { ac_try
='test -s conftest$ac_exeext'
18707 { (case "(($ac_try" in
18708 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18709 *) ac_try_echo=$ac_try;;
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712 (eval "$ac_try") 2>&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); }; }; then
18716 eval "$as_ac_var=yes"
18718 echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18721 eval "$as_ac_var=no"
18724 rm -f core conftest.err conftest.$ac_objext \
18725 conftest$ac_exeext conftest.$ac_ext
18727 ac_res=`eval echo '${'$as_ac_var'}'`
18728 { echo "$as_me:$LINENO: result: $ac_res" >&5
18729 echo "${ECHO_T}$ac_res" >&6; }
18730 if test `eval echo '${'$as_ac_var'}'` = yes; then
18731 cat >>confdefs.h <<_ACEOF
18732 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18742 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18744 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18748 echo $ECHO_N "(cached) $ECHO_C" >&6
18750 cat >conftest.$ac_ext <<_ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h. */
18756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18758 #define $ac_func innocuous_$ac_func
18760 /* System header to define __stub macros and hopefully few prototypes,
18761 which can conflict with char $ac_func (); below.
18762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18763 <limits.h> exists even on freestanding compilers. */
18766 # include <limits.h>
18768 # include <assert.h>
18773 /* Override any GCC internal prototype to avoid an error.
18774 Use char because int might match the return type of a GCC
18775 builtin and then its argument prototype would still apply. */
18780 /* The GNU C library defines this for functions which it implements
18781 to always fail with ENOSYS. Some functions are actually named
18782 something starting with __ and the normal name is an alias. */
18783 #if defined __stub_$ac_func || defined __stub___$ac_func
18790 return $ac_func ();
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (ac_try="$ac_link"
18797 case "(($ac_try" in
18798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18799 *) ac_try_echo
=$ac_try;;
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_link") 2>conftest.er1
18804 grep -v '^ *+' conftest.er1
>conftest.err
18806 cat conftest.err
>&5
18807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808 (exit $ac_status); } &&
18809 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18810 { (case "(($ac_try" in
18811 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18812 *) ac_try_echo=$ac_try;;
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815 (eval "$ac_try") 2>&5
18817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818 (exit $ac_status); }; } &&
18819 { ac_try='test -s conftest$ac_exeext'
18820 { (case "(($ac_try" in
18821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18822 *) ac_try_echo
=$ac_try;;
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825 (eval "$ac_try") 2>&5
18827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828 (exit $ac_status); }; }; then
18829 eval "$as_ac_var=yes"
18831 echo "$as_me: failed program was:" >&5
18832 sed 's/^/| /' conftest.
$ac_ext >&5
18834 eval "$as_ac_var=no"
18837 rm -f core conftest.err conftest.
$ac_objext \
18838 conftest
$ac_exeext conftest.
$ac_ext
18840 ac_res
=`eval echo '${'$as_ac_var'}'`
18841 { echo "$as_me:$LINENO: result: $ac_res" >&5
18842 echo "${ECHO_T}$ac_res" >&6; }
18843 if test `eval echo '${'$as_ac_var'}'` = yes; then
18844 cat >>confdefs.h
<<_ACEOF
18845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18851 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18852 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18853 if test "${llvm_cv_c_printf_a+set}" = set; then
18854 echo $ECHO_N "(cached) $ECHO_C" >&6
18857 ac_cpp
='$CPP $CPPFLAGS'
18858 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18859 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18860 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18862 if test "$cross_compiling" = yes; then
18863 llvmac_cv_c_printf_a
=no
18865 cat >conftest.
$ac_ext <<_ACEOF
18869 cat confdefs.h
>>conftest.
$ac_ext
18870 cat >>conftest.
$ac_ext <<_ACEOF
18871 /* end confdefs.h. */
18874 #include <stdlib.h>
18880 volatile double A, B;
18884 sprintf(Buffer, "%a", A);
18888 if (A != 0x1.999999999999ap-4)
18895 rm -f conftest
$ac_exeext
18896 if { (ac_try
="$ac_link"
18897 case "(($ac_try" in
18898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_link") 2>&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18906 { (case "(($ac_try" in
18907 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18908 *) ac_try_echo
=$ac_try;;
18910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911 (eval "$ac_try") 2>&5
18913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914 (exit $ac_status); }; }; then
18915 llvm_cv_c_printf_a
=yes
18917 echo "$as_me: program exited with status $ac_status" >&5
18918 echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.
$ac_ext >&5
18921 ( exit $ac_status )
18922 llvmac_cv_c_printf_a
=no
18924 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18929 ac_cpp
='$CPP $CPPFLAGS'
18930 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18931 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18932 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18935 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18936 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18937 if test "$llvm_cv_c_printf_a" = "yes"; then
18939 cat >>confdefs.h
<<\_ACEOF
18940 #define HAVE_PRINTF_A 1
18946 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18947 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18948 if test "${ac_cv_func_rand48+set}" = set; then
18949 echo $ECHO_N "(cached) $ECHO_C" >&6
18952 ac_cpp
='$CXXCPP $CPPFLAGS'
18953 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18954 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18955 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18957 cat >conftest.
$ac_ext <<_ACEOF
18960 cat confdefs.h
>>conftest.
$ac_ext
18961 cat >>conftest.
$ac_ext <<_ACEOF
18962 /* end confdefs.h. */
18963 #include <stdlib.h>
18967 srand48(0);lrand48();drand48();
18972 rm -f conftest.
$ac_objext
18973 if { (ac_try
="$ac_compile"
18974 case "(($ac_try" in
18975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18976 *) ac_try_echo=$ac_try;;
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979 (eval "$ac_compile") 2>conftest.er1
18981 grep -v '^ *+' conftest.er1 >conftest.err
18983 cat conftest.err >&5
18984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985 (exit $ac_status); } &&
18986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18987 { (case "(($ac_try" in
18988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18989 *) ac_try_echo
=$ac_try;;
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_try") 2>&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); }; } &&
18996 { ac_try
='test -s conftest.$ac_objext'
18997 { (case "(($ac_try" in
18998 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18999 *) ac_try_echo=$ac_try;;
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002 (eval "$ac_try") 2>&5
19004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005 (exit $ac_status); }; }; then
19006 ac_cv_func_rand48=yes
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19011 ac_cv_func_rand48=no
19014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19016 ac_cpp='$CPP $CPPFLAGS'
19017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19022 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19023 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19025 if test "$ac_cv_func_rand48" = "yes" ; then
19027 cat >>confdefs.h <<\_ACEOF
19028 #define HAVE_RAND48 1
19035 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19036 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19037 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19038 echo $ECHO_N "(cached) $ECHO_C" >&6
19041 ac_cpp='$CXXCPP $CPPFLAGS'
19042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19046 cat >conftest.$ac_ext <<_ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h. */
19061 rm -f conftest.$ac_objext
19062 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
19070 grep -v '^ *+' conftest.er1
>conftest.err
19072 cat conftest.err
>&5
19073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074 (exit $ac_status); } &&
19075 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19076 { (case "(($ac_try" in
19077 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19078 *) ac_try_echo=$ac_try;;
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081 (eval "$ac_try") 2>&5
19083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084 (exit $ac_status); }; } &&
19085 { ac_try='test -s conftest.$ac_objext'
19086 { (case "(($ac_try" in
19087 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19088 *) ac_try_echo
=$ac_try;;
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_try") 2>&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); }; }; then
19095 ac_cv_func_isnan_in_math_h
=yes
19097 echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.
$ac_ext >&5
19100 ac_cv_func_isnan_in_math_h
=no
19103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19105 ac_cpp
='$CPP $CPPFLAGS'
19106 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19107 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19108 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19111 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19112 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19115 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19117 cat >>confdefs.h
<<\_ACEOF
19118 #define HAVE_ISNAN_IN_MATH_H 1
19123 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19124 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19125 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19126 echo $ECHO_N "(cached) $ECHO_C" >&6
19129 ac_cpp
='$CXXCPP $CPPFLAGS'
19130 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19134 cat >conftest.
$ac_ext <<_ACEOF
19137 cat confdefs.h
>>conftest.
$ac_ext
19138 cat >>conftest.
$ac_ext <<_ACEOF
19139 /* end confdefs.h. */
19149 rm -f conftest.
$ac_objext
19150 if { (ac_try
="$ac_compile"
19151 case "(($ac_try" in
19152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19153 *) ac_try_echo=$ac_try;;
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156 (eval "$ac_compile") 2>conftest.er1
19158 grep -v '^ *+' conftest.er1 >conftest.err
19160 cat conftest.err >&5
19161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162 (exit $ac_status); } &&
19163 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19164 { (case "(($ac_try" in
19165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19166 *) ac_try_echo
=$ac_try;;
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169 (eval "$ac_try") 2>&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); }; } &&
19173 { ac_try
='test -s conftest.$ac_objext'
19174 { (case "(($ac_try" in
19175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19176 *) ac_try_echo=$ac_try;;
19178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19179 (eval "$ac_try") 2>&5
19181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182 (exit $ac_status); }; }; then
19183 ac_cv_func_isnan_in_cmath=yes
19185 echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19188 ac_cv_func_isnan_in_cmath=no
19191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19193 ac_cpp='$CPP $CPPFLAGS'
19194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19199 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19200 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19202 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19204 cat >>confdefs.h <<\_ACEOF
19205 #define HAVE_ISNAN_IN_CMATH 1
19210 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19211 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19212 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19213 echo $ECHO_N "(cached) $ECHO_C" >&6
19216 ac_cpp='$CXXCPP $CPPFLAGS'
19217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19221 cat >conftest.$ac_ext <<_ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h. */
19231 float f; std::isnan(f);
19236 rm -f conftest.$ac_objext
19237 if { (ac_try="$ac_compile"
19238 case "(($ac_try" in
19239 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19240 *) ac_try_echo
=$ac_try;;
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243 (eval "$ac_compile") 2>conftest.er1
19245 grep -v '^ *+' conftest.er1
>conftest.err
19247 cat conftest.err
>&5
19248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249 (exit $ac_status); } &&
19250 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19251 { (case "(($ac_try" in
19252 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_try") 2>&5
19258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259 (exit $ac_status); }; } &&
19260 { ac_try='test -s conftest.$ac_objext'
19261 { (case "(($ac_try" in
19262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19263 *) ac_try_echo
=$ac_try;;
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_try") 2>&5
19268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269 (exit $ac_status); }; }; then
19270 ac_cv_func_std_isnan_in_cmath
=yes
19272 echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.
$ac_ext >&5
19275 ac_cv_func_std_isnan_in_cmath
=no
19278 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19280 ac_cpp
='$CPP $CPPFLAGS'
19281 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19282 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19283 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19286 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19287 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19289 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19291 cat >>confdefs.h
<<\_ACEOF
19292 #define HAVE_STD_ISNAN_IN_CMATH 1
19298 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19299 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19300 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
19304 ac_cpp
='$CXXCPP $CPPFLAGS'
19305 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19306 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19307 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19309 cat >conftest.
$ac_ext <<_ACEOF
19312 cat confdefs.h
>>conftest.
$ac_ext
19313 cat >>conftest.
$ac_ext <<_ACEOF
19314 /* end confdefs.h. */
19324 rm -f conftest.
$ac_objext
19325 if { (ac_try
="$ac_compile"
19326 case "(($ac_try" in
19327 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19328 *) ac_try_echo=$ac_try;;
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331 (eval "$ac_compile") 2>conftest.er1
19333 grep -v '^ *+' conftest.er1 >conftest.err
19335 cat conftest.err >&5
19336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337 (exit $ac_status); } &&
19338 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19339 { (case "(($ac_try" in
19340 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19341 *) ac_try_echo
=$ac_try;;
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_try") 2>&5
19346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347 (exit $ac_status); }; } &&
19348 { ac_try
='test -s conftest.$ac_objext'
19349 { (case "(($ac_try" in
19350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19351 *) ac_try_echo=$ac_try;;
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354 (eval "$ac_try") 2>&5
19356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357 (exit $ac_status); }; }; then
19358 ac_cv_func_isinf_in_math_h=yes
19360 echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19363 ac_cv_func_isinf_in_math_h=no
19366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19368 ac_cpp='$CPP $CPPFLAGS'
19369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19374 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19375 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19377 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19379 cat >>confdefs.h <<\_ACEOF
19380 #define HAVE_ISINF_IN_MATH_H 1
19385 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19386 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19387 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19388 echo $ECHO_N "(cached) $ECHO_C" >&6
19391 ac_cpp='$CXXCPP $CPPFLAGS'
19392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19396 cat >conftest.$ac_ext <<_ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h. */
19411 rm -f conftest.$ac_objext
19412 if { (ac_try="$ac_compile"
19413 case "(($ac_try" in
19414 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19415 *) ac_try_echo
=$ac_try;;
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_compile") 2>conftest.er1
19420 grep -v '^ *+' conftest.er1
>conftest.err
19422 cat conftest.err
>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } &&
19425 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19426 { (case "(($ac_try" in
19427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19428 *) ac_try_echo=$ac_try;;
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431 (eval "$ac_try") 2>&5
19433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434 (exit $ac_status); }; } &&
19435 { ac_try='test -s conftest.$ac_objext'
19436 { (case "(($ac_try" in
19437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19438 *) ac_try_echo
=$ac_try;;
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441 (eval "$ac_try") 2>&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); }; }; then
19445 ac_cv_func_isinf_in_cmath
=yes
19447 echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.
$ac_ext >&5
19450 ac_cv_func_isinf_in_cmath
=no
19453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19455 ac_cpp
='$CPP $CPPFLAGS'
19456 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19457 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19458 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19461 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19462 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19464 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19466 cat >>confdefs.h
<<\_ACEOF
19467 #define HAVE_ISINF_IN_CMATH 1
19472 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19473 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19474 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19475 echo $ECHO_N "(cached) $ECHO_C" >&6
19478 ac_cpp
='$CXXCPP $CPPFLAGS'
19479 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19480 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19481 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19483 cat >conftest.
$ac_ext <<_ACEOF
19486 cat confdefs.h
>>conftest.
$ac_ext
19487 cat >>conftest.
$ac_ext <<_ACEOF
19488 /* end confdefs.h. */
19493 float f; std::isinf(f)}
19498 rm -f conftest.
$ac_objext
19499 if { (ac_try
="$ac_compile"
19500 case "(($ac_try" in
19501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_compile") 2>conftest.er1
19507 grep -v '^ *+' conftest.er1 >conftest.err
19509 cat conftest.err >&5
19510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511 (exit $ac_status); } &&
19512 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19513 { (case "(($ac_try" in
19514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19515 *) ac_try_echo
=$ac_try;;
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518 (eval "$ac_try") 2>&5
19520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521 (exit $ac_status); }; } &&
19522 { ac_try
='test -s conftest.$ac_objext'
19523 { (case "(($ac_try" in
19524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19525 *) ac_try_echo=$ac_try;;
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528 (eval "$ac_try") 2>&5
19530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531 (exit $ac_status); }; }; then
19532 ac_cv_func_std_isinf_in_cmath=yes
19534 echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 ac_cv_func_std_isinf_in_cmath=no
19540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19542 ac_cpp='$CPP $CPPFLAGS'
19543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19548 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19549 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19551 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19553 cat >>confdefs.h <<\_ACEOF
19554 #define HAVE_STD_ISINF_IN_CMATH 1
19559 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19560 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19561 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19562 echo $ECHO_N "(cached) $ECHO_C" >&6
19565 ac_cpp='$CXXCPP $CPPFLAGS'
19566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19570 cat >conftest.$ac_ext <<_ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19576 #include <ieeefp.h>
19580 float f; finite(f);
19585 rm -f conftest.$ac_objext
19586 if { (ac_try="$ac_compile"
19587 case "(($ac_try" in
19588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19589 *) ac_try_echo
=$ac_try;;
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_compile") 2>conftest.er1
19594 grep -v '^ *+' conftest.er1
>conftest.err
19596 cat conftest.err
>&5
19597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598 (exit $ac_status); } &&
19599 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19600 { (case "(($ac_try" in
19601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605 (eval "$ac_try") 2>&5
19607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608 (exit $ac_status); }; } &&
19609 { ac_try='test -s conftest.$ac_objext'
19610 { (case "(($ac_try" in
19611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19612 *) ac_try_echo
=$ac_try;;
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615 (eval "$ac_try") 2>&5
19617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618 (exit $ac_status); }; }; then
19619 ac_cv_func_finite_in_ieeefp_h
=yes
19621 echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.
$ac_ext >&5
19624 ac_cv_func_finite_in_ieeefp_h
=no
19627 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19629 ac_cpp
='$CPP $CPPFLAGS'
19630 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19635 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19636 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19638 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19640 cat >>confdefs.h
<<\_ACEOF
19641 #define HAVE_FINITE_IN_IEEEFP_H 1
19648 if test "$llvm_cv_platform_type" = "Unix" ; then
19651 for ac_header
in stdlib.h unistd.h
19653 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19654 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19657 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19658 echo $ECHO_N "(cached) $ECHO_C" >&6
19660 ac_res
=`eval echo '${'$as_ac_Header'}'`
19661 { echo "$as_me:$LINENO: result: $ac_res" >&5
19662 echo "${ECHO_T}$ac_res" >&6; }
19664 # Is the header compilable?
19665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19667 cat >conftest.
$ac_ext <<_ACEOF
19670 cat confdefs.h
>>conftest.
$ac_ext
19671 cat >>conftest.
$ac_ext <<_ACEOF
19672 /* end confdefs.h. */
19673 $ac_includes_default
19674 #include <$ac_header>
19676 rm -f conftest.
$ac_objext
19677 if { (ac_try
="$ac_compile"
19678 case "(($ac_try" in
19679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19680 *) ac_try_echo=$ac_try;;
19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683 (eval "$ac_compile") 2>conftest.er1
19685 grep -v '^ *+' conftest.er1 >conftest.err
19687 cat conftest.err >&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } &&
19690 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19691 { (case "(($ac_try" in
19692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19693 *) ac_try_echo
=$ac_try;;
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696 (eval "$ac_try") 2>&5
19698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699 (exit $ac_status); }; } &&
19700 { ac_try
='test -s conftest.$ac_objext'
19701 { (case "(($ac_try" in
19702 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19703 *) ac_try_echo=$ac_try;;
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706 (eval "$ac_try") 2>&5
19708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709 (exit $ac_status); }; }; then
19710 ac_header_compiler=yes
19712 echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19715 ac_header_compiler=no
19718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19720 echo "${ECHO_T}$ac_header_compiler" >&6; }
19722 # Is the header present?
19723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19725 cat >conftest.$ac_ext <<_ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h. */
19731 #include <$ac_header>
19733 if { (ac_try="$ac_cpp conftest.$ac_ext"
19734 case "(($ac_try" in
19735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19736 *) ac_try_echo
=$ac_try;;
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19741 grep -v '^ *+' conftest.er1
>conftest.err
19743 cat conftest.err
>&5
19744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745 (exit $ac_status); } >/dev
/null
; then
19746 if test -s conftest.err
; then
19747 ac_cpp_err
=$ac_c_preproc_warn_flag
19748 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19755 if test -z "$ac_cpp_err"; then
19756 ac_header_preproc
=yes
19758 echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.
$ac_ext >&5
19761 ac_header_preproc
=no
19764 rm -f conftest.err conftest.
$ac_ext
19765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19766 echo "${ECHO_T}$ac_header_preproc" >&6; }
19768 # So? What about this header?
19769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19771 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19773 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19775 ac_header_preproc
=yes
19778 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19780 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19781 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19782 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19784 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19785 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19786 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19788 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19791 ## ----------------------------------- ##
19792 ## Report this to llvmbugs@cs.uiuc.edu ##
19793 ## ----------------------------------- ##
19795 ) |
sed "s/^/$as_me: WARNING: /" >&2
19798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19800 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19801 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 eval "$as_ac_Header=\$ac_header_preproc"
19805 ac_res
=`eval echo '${'$as_ac_Header'}'`
19806 { echo "$as_me:$LINENO: result: $ac_res" >&5
19807 echo "${ECHO_T}$ac_res" >&6; }
19810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19811 cat >>confdefs.h
<<_ACEOF
19812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19820 for ac_func
in getpagesize
19822 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19825 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19828 cat >conftest.
$ac_ext <<_ACEOF
19831 cat confdefs.h
>>conftest.
$ac_ext
19832 cat >>conftest.
$ac_ext <<_ACEOF
19833 /* end confdefs.h. */
19834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19836 #define $ac_func innocuous_$ac_func
19838 /* System header to define __stub macros and hopefully few prototypes,
19839 which can conflict with char $ac_func (); below.
19840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19841 <limits.h> exists even on freestanding compilers. */
19844 # include <limits.h>
19846 # include <assert.h>
19851 /* Override any GCC internal prototype to avoid an error.
19852 Use char because int might match the return type of a GCC
19853 builtin and then its argument prototype would still apply. */
19858 /* The GNU C library defines this for functions which it implements
19859 to always fail with ENOSYS. Some functions are actually named
19860 something starting with __ and the normal name is an alias. */
19861 #if defined __stub_$ac_func || defined __stub___$ac_func
19868 return $ac_func ();
19873 rm -f conftest.
$ac_objext conftest
$ac_exeext
19874 if { (ac_try
="$ac_link"
19875 case "(($ac_try" in
19876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_link") 2>conftest.er1
19882 grep -v '^ *+' conftest.er1 >conftest.err
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } &&
19887 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19888 { (case "(($ac_try" in
19889 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19890 *) ac_try_echo
=$ac_try;;
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_try") 2>&5
19895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896 (exit $ac_status); }; } &&
19897 { ac_try
='test -s conftest$ac_exeext'
19898 { (case "(($ac_try" in
19899 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19900 *) ac_try_echo=$ac_try;;
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903 (eval "$ac_try") 2>&5
19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906 (exit $ac_status); }; }; then
19907 eval "$as_ac_var=yes"
19909 echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19912 eval "$as_ac_var=no"
19915 rm -f core conftest.err conftest.$ac_objext \
19916 conftest$ac_exeext conftest.$ac_ext
19918 ac_res=`eval echo '${'$as_ac_var'}'`
19919 { echo "$as_me:$LINENO: result: $ac_res" >&5
19920 echo "${ECHO_T}$ac_res" >&6; }
19921 if test `eval echo '${'$as_ac_var'}'` = yes; then
19922 cat >>confdefs.h <<_ACEOF
19923 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19929 { echo "$as_me:$LINENO: checking for working mmap" >&5
19930 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19931 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19932 echo $ECHO_N "(cached) $ECHO_C" >&6
19934 if test "$cross_compiling" = yes; then
19935 ac_cv_func_mmap_fixed_mapped=no
19937 cat >conftest.$ac_ext <<_ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19943 $ac_includes_default
19944 /* malloc might have been renamed as rpl_malloc. */
19947 /* Thanks to Mike Haertel and Jim Avera for this test.
19948 Here is a matrix of mmap possibilities:
19949 mmap private not fixed
19950 mmap private fixed at somewhere currently unmapped
19951 mmap private fixed at somewhere already mapped
19952 mmap shared not fixed
19953 mmap shared fixed at somewhere currently unmapped
19954 mmap shared fixed at somewhere already mapped
19955 For private mappings, we should verify that changes cannot be read()
19956 back from the file, nor mmap's back from the file at a different
19957 address. (There have been systems where private was not correctly
19958 implemented like the infamous i386 svr4.0, and systems where the
19959 VM page cache was not coherent with the file system buffer cache
19960 like early versions of FreeBSD and possibly contemporary NetBSD.)
19961 For shared mappings, we should conversely verify that changes get
19962 propagated back to all the places they're supposed to be.
19964 Grep wants private fixed already mapped.
19965 The main things grep needs to know about mmap are:
19966 * does it exist and is it safe to write into the mmap'd area
19967 * how to use it (BSD variants) */
19970 #include <sys/mman.h>
19972 #if !STDC_HEADERS && !HAVE_STDLIB_H
19976 /* This mess was copied from the GNU getpagesize.h. */
19977 #if !HAVE_GETPAGESIZE
19978 /* Assume that all systems that can run configure have sys/param.h. */
19979 # if !HAVE_SYS_PARAM_H
19980 # define HAVE_SYS_PARAM_H 1
19983 # ifdef _SC_PAGESIZE
19984 # define getpagesize() sysconf(_SC_PAGESIZE)
19985 # else /* no _SC_PAGESIZE */
19986 # if HAVE_SYS_PARAM_H
19987 # include <sys/param.h>
19988 # ifdef EXEC_PAGESIZE
19989 # define getpagesize() EXEC_PAGESIZE
19990 # else /* no EXEC_PAGESIZE */
19992 # define getpagesize() NBPG * CLSIZE
19995 # endif /* no CLSIZE */
19996 # else /* no NBPG */
19998 # define getpagesize() NBPC
19999 # else /* no NBPC */
20001 # define getpagesize() PAGESIZE
20002 # endif /* PAGESIZE */
20003 # endif /* no NBPC */
20004 # endif /* no NBPG */
20005 # endif /* no EXEC_PAGESIZE */
20006 # else /* no HAVE_SYS_PARAM_H */
20007 # define getpagesize() 8192 /* punt totally */
20008 # endif /* no HAVE_SYS_PARAM_H */
20009 # endif /* no _SC_PAGESIZE */
20011 #endif /* no HAVE_GETPAGESIZE */
20016 char *data, *data2, *data3;
20020 pagesize = getpagesize ();
20022 /* First, make a file with some known garbage in it. */
20023 data = (char *) malloc (pagesize);
20026 for (i = 0; i < pagesize; ++i)
20027 *(data + i) = rand ();
20029 fd = creat ("conftest.mmap", 0600);
20032 if (write (fd, data, pagesize) != pagesize)
20036 /* Next, try to mmap the file at a fixed address which already has
20037 something else allocated at it. If we can, also make sure that
20038 we see the same garbage. */
20039 fd = open ("conftest.mmap", O_RDWR);
20042 data2 = (char *) malloc (2 * pagesize);
20045 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20046 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20047 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20049 for (i = 0; i < pagesize; ++i)
20050 if (*(data + i) != *(data2 + i))
20053 /* Finally, make sure that changes to the mapped area do not
20054 percolate back to the file as seen by read(). (This is a bug on
20055 some variants of i386 svr4.0.) */
20056 for (i = 0; i < pagesize; ++i)
20057 *(data2 + i) = *(data2 + i) + 1;
20058 data3 = (char *) malloc (pagesize);
20061 if (read (fd, data3, pagesize) != pagesize)
20063 for (i = 0; i < pagesize; ++i)
20064 if (*(data + i) != *(data3 + i))
20070 rm -f conftest$ac_exeext
20071 if { (ac_try="$ac_link"
20072 case "(($ac_try" in
20073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20074 *) ac_try_echo
=$ac_try;;
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_link") 2>&5
20079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20081 { (case "(($ac_try" in
20082 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20083 *) ac_try_echo=$ac_try;;
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086 (eval "$ac_try") 2>&5
20088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089 (exit $ac_status); }; }; then
20090 ac_cv_func_mmap_fixed_mapped=yes
20092 echo "$as_me: program exited with status $ac_status" >&5
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20096 ( exit $ac_status )
20097 ac_cv_func_mmap_fixed_mapped=no
20099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20104 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20105 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20106 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20108 cat >>confdefs.h <<\_ACEOF
20109 #define HAVE_MMAP 1
20113 rm -f conftest.mmap
20115 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20116 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20117 if test "${ac_cv_func_mmap_file+set}" = set; then
20118 echo $ECHO_N "(cached) $ECHO_C" >&6
20121 ac_cpp='$CPP $CPPFLAGS'
20122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20126 if test "$cross_compiling" = yes; then
20127 ac_cv_func_mmap_file=no
20129 cat >conftest.$ac_ext <<_ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20137 #include <sys/types.h>
20138 #include <sys/mman.h>
20146 fd = creat ("foo",0777);
20147 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20149 return (fd != (int) MAP_FAILED);
20154 rm -f conftest$ac_exeext
20155 if { (ac_try="$ac_link"
20156 case "(($ac_try" in
20157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20158 *) ac_try_echo
=$ac_try;;
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_link") 2>&5
20163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20165 { (case "(($ac_try" in
20166 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_try") 2>&5
20172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173 (exit $ac_status); }; }; then
20174 ac_cv_func_mmap_file=yes
20176 echo "$as_me: program exited with status $ac_status" >&5
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20180 ( exit $ac_status )
20181 ac_cv_func_mmap_file=no
20183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20188 ac_cpp='$CPP $CPPFLAGS'
20189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20195 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20196 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20197 if test "$ac_cv_func_mmap_file" = yes; then
20199 cat >>confdefs.h <<\_ACEOF
20200 #define HAVE_MMAP_FILE
20207 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20208 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20209 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20210 echo $ECHO_N "(cached) $ECHO_C" >&6
20212 if test "$llvm_cv_os_type" = "Interix" ; then
20213 ac_cv_need_dev_zero_for_mmap=yes
20215 ac_cv_need_dev_zero_for_mmap=no
20219 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20220 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20221 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20223 cat >>confdefs.h <<\_ACEOF
20224 #define NEED_DEV_ZERO_FOR_MMAP 1
20229 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20231 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20232 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20234 if test "$ac_cv_func_mmap_file" = "no"
20236 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20237 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20241 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20242 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20244 ac_cpp='$CXXCPP $CPPFLAGS'
20245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20256 volatile unsigned long val = 1;
20257 __sync_synchronize();
20258 __sync_val_compare_and_swap(&val, 1, 0);
20259 __sync_add_and_fetch(&val, 1);
20260 __sync_sub_and_fetch(&val, 1);
20265 rm -f conftest.$ac_objext conftest$ac_exeext
20266 if { (ac_try="$ac_link"
20267 case "(($ac_try" in
20268 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20269 *) ac_try_echo
=$ac_try;;
20271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272 (eval "$ac_link") 2>conftest.er1
20274 grep -v '^ *+' conftest.er1
>conftest.err
20276 cat conftest.err
>&5
20277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278 (exit $ac_status); } &&
20279 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20280 { (case "(($ac_try" in
20281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285 (eval "$ac_try") 2>&5
20287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288 (exit $ac_status); }; } &&
20289 { ac_try='test -s conftest$ac_exeext'
20290 { (case "(($ac_try" in
20291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20292 *) ac_try_echo
=$ac_try;;
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_try") 2>&5
20297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298 (exit $ac_status); }; }; then
20300 ac_cpp
='$CPP $CPPFLAGS'
20301 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20302 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20303 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20305 { echo "$as_me:$LINENO: result: yes" >&5
20306 echo "${ECHO_T}yes" >&6; }
20308 cat >>confdefs.h
<<\_ACEOF
20309 #define LLVM_MULTITHREADED 1
20313 echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.
$ac_ext >&5
20316 { echo "$as_me:$LINENO: result: no" >&5
20317 echo "${ECHO_T}no" >&6; }
20319 cat >>confdefs.h
<<\_ACEOF
20320 #define LLVM_MULTITHREADED 0
20323 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20324 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20327 rm -f core conftest.err conftest.
$ac_objext \
20328 conftest
$ac_exeext conftest.
$ac_ext
20331 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20332 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20333 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20334 if test "${llvm_cv_linux_mixed+set}" = set; then
20335 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 ac_cpp
='$CPP $CPPFLAGS'
20339 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20340 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20341 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20343 cat >conftest.
$ac_ext <<_ACEOF
20346 cat confdefs.h
>>conftest.
$ac_ext
20347 cat >>conftest.
$ac_ext <<_ACEOF
20348 /* end confdefs.h. */
20350 error: Not x86-64 even if uname says so!
20361 rm -f conftest.
$ac_objext
20362 if { (ac_try
="$ac_compile"
20363 case "(($ac_try" in
20364 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20365 *) ac_try_echo=$ac_try;;
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368 (eval "$ac_compile") 2>conftest.er1
20370 grep -v '^ *+' conftest.er1 >conftest.err
20372 cat conftest.err >&5
20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374 (exit $ac_status); } &&
20375 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20376 { (case "(($ac_try" in
20377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20378 *) ac_try_echo
=$ac_try;;
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381 (eval "$ac_try") 2>&5
20383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384 (exit $ac_status); }; } &&
20385 { ac_try
='test -s conftest.$ac_objext'
20386 { (case "(($ac_try" in
20387 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_try") 2>&5
20393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394 (exit $ac_status); }; }; then
20395 llvm_cv_linux_mixed=no
20397 echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20400 llvm_cv_linux_mixed=yes
20403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20405 ac_cpp='$CPP $CPPFLAGS'
20406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20412 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20413 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20415 if test "$llvm_cv_linux_mixed" = "yes"; then
20416 llvm_cv_target_arch="x86"
20422 for ac_func in __dso_handle
20424 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20428 echo $ECHO_N "(cached) $ECHO_C" >&6
20430 cat >conftest.$ac_ext <<_ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20437 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20438 #define $ac_func innocuous_$ac_func
20440 /* System header to define __stub macros and hopefully few prototypes,
20441 which can conflict with char $ac_func (); below.
20442 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20443 <limits.h> exists even on freestanding compilers. */
20446 # include <limits.h>
20448 # include <assert.h>
20453 /* Override any GCC internal prototype to avoid an error.
20454 Use char because int might match the return type of a GCC
20455 builtin and then its argument prototype would still apply. */
20460 /* The GNU C library defines this for functions which it implements
20461 to always fail with ENOSYS. Some functions are actually named
20462 something starting with __ and the normal name is an alias. */
20463 #if defined __stub_$ac_func || defined __stub___$ac_func
20470 return $ac_func ();
20475 rm -f conftest.$ac_objext conftest$ac_exeext
20476 if { (ac_try="$ac_link"
20477 case "(($ac_try" in
20478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20479 *) ac_try_echo
=$ac_try;;
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482 (eval "$ac_link") 2>conftest.er1
20484 grep -v '^ *+' conftest.er1
>conftest.err
20486 cat conftest.err
>&5
20487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488 (exit $ac_status); } &&
20489 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490 { (case "(($ac_try" in
20491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_try") 2>&5
20497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498 (exit $ac_status); }; } &&
20499 { ac_try='test -s conftest$ac_exeext'
20500 { (case "(($ac_try" in
20501 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20502 *) ac_try_echo
=$ac_try;;
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505 (eval "$ac_try") 2>&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); }; }; then
20509 eval "$as_ac_var=yes"
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.
$ac_ext >&5
20514 eval "$as_ac_var=no"
20517 rm -f core conftest.err conftest.
$ac_objext \
20518 conftest
$ac_exeext conftest.
$ac_ext
20520 ac_res
=`eval echo '${'$as_ac_var'}'`
20521 { echo "$as_me:$LINENO: result: $ac_res" >&5
20522 echo "${ECHO_T}$ac_res" >&6; }
20523 if test `eval echo '${'$as_ac_var'}'` = yes; then
20524 cat >>confdefs.h
<<_ACEOF
20525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20532 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20533 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20534 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20535 echo $ECHO_N "(cached) $ECHO_C" >&6
20537 llvm_cv_llvmgcc_sanity
="no"
20538 if test -x "$LLVMGCC" ; then
20539 cp /dev
/null conftest.c
20540 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20541 grep 'target datalayout =' > /dev
/null
2>&1
20542 if test $?
-eq 0 ; then
20543 llvm_cv_llvmgcc_sanity
="yes"
20548 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20549 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20551 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20552 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20553 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20554 llvmcc1path
=`"$LLVMGCC" --print-prog-name=cc1`
20555 LLVMCC1
=$llvmcc1path
20557 llvmcc1pluspath
=`"$LLVMGCC" --print-prog-name=cc1plus`
20558 LLVMCC1PLUS
=$llvmcc1pluspath
20560 llvmgccdir
=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20561 LLVMGCCDIR
=$llvmgccdir
20563 llvmgcclangs
=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20564 LLVMGCC_LANGS
=$llvmgcclangs
20566 { echo "$as_me:$LINENO: result: ok" >&5
20567 echo "${ECHO_T}ok" >&6; }
20570 SHLIBEXT
=$libltdl_cv_shlibext
20573 SHLIBPATH_VAR
=$libltdl_cv_shlibpath_var
20576 # Translate the various configuration directories and other basic
20577 # information into substitutions that will end up in Makefile.config.in
20578 # that these configured values can be used by the makefiles
20579 if test "${prefix}" = "NONE" ; then
20580 prefix
="/usr/local"
20582 eval LLVM_PREFIX
="${prefix}";
20583 eval LLVM_BINDIR
="${prefix}/bin";
20584 eval LLVM_LIBDIR
="${prefix}/lib";
20585 eval LLVM_DATADIR
="${prefix}/share/llvm";
20586 eval LLVM_DOCSDIR
="${prefix}/share/doc/llvm";
20587 eval LLVM_ETCDIR
="${prefix}/etc/llvm";
20588 eval LLVM_INCLUDEDIR
="${prefix}/include";
20589 eval LLVM_INFODIR
="${prefix}/info";
20590 eval LLVM_MANDIR
="${prefix}/man";
20591 LLVM_CONFIGTIME
=`date`
20603 # Place the various directores into the config.h file as #defines so that we
20604 # can know about the installation paths within LLVM.
20606 cat >>confdefs.h
<<_ACEOF
20607 #define LLVM_PREFIX "$LLVM_PREFIX"
20611 cat >>confdefs.h
<<_ACEOF
20612 #define LLVM_BINDIR "$LLVM_BINDIR"
20616 cat >>confdefs.h
<<_ACEOF
20617 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20621 cat >>confdefs.h
<<_ACEOF
20622 #define LLVM_DATADIR "$LLVM_DATADIR"
20626 cat >>confdefs.h
<<_ACEOF
20627 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20631 cat >>confdefs.h
<<_ACEOF
20632 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20636 cat >>confdefs.h
<<_ACEOF
20637 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20641 cat >>confdefs.h
<<_ACEOF
20642 #define LLVM_INFODIR "$LLVM_INFODIR"
20646 cat >>confdefs.h
<<_ACEOF
20647 #define LLVM_MANDIR "$LLVM_MANDIR"
20651 cat >>confdefs.h
<<_ACEOF
20652 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20656 cat >>confdefs.h
<<_ACEOF
20657 #define LLVM_HOSTTRIPLE "$host"
20661 # Determine which bindings to build.
20662 if test "$BINDINGS_TO_BUILD" = auto
; then
20663 BINDINGS_TO_BUILD
=""
20664 if test "x$OCAMLC" != x
-a "x$OCAMLDEP" != x
; then
20665 BINDINGS_TO_BUILD
="ocaml $BINDINGS_TO_BUILD"
20668 BINDINGS_TO_BUILD
=$BINDINGS_TO_BUILD
20671 # This isn't really configurey, but it avoids having to repeat the list in
20676 # Do any work necessary to ensure that bindings have what they need.
20677 binding_prereqs_failed
=0
20678 for a_binding
in $BINDINGS_TO_BUILD ; do
20679 case "$a_binding" in
20681 if test "x$OCAMLC" = x
; then
20682 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20683 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20684 binding_prereqs_failed
=1
20686 if test "x$OCAMLDEP" = x
; then
20687 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20688 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20689 binding_prereqs_failed
=1
20691 if test "x$OCAMLOPT" = x
; then
20692 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20693 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20695 if test "x$with_ocaml_libdir" != xauto
; then
20696 OCAML_LIBDIR
=$with_ocaml_libdir
20699 ocaml_stdlib
="`"$OCAMLC" -where`"
20700 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20702 # ocaml stdlib is beneath our prefix; use stdlib
20703 OCAML_LIBDIR
=$ocaml_stdlib
20706 # ocaml stdlib is outside our prefix; use libdir/ocaml
20707 OCAML_LIBDIR
=$LLVM_LIBDIR/ocaml
20714 if test "$binding_prereqs_failed" = 1 ; then
20715 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20716 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20717 { (exit 1); exit 1; }; }
20720 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20721 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20722 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20723 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 ac_cpp
='$CXXCPP $CPPFLAGS'
20727 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20728 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20729 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20731 oldcxxflags
="$CXXFLAGS"
20732 CXXFLAGS
="$CXXFLAGS -fvisibility-inlines-hidden"
20733 cat >conftest.
$ac_ext <<_ACEOF
20736 cat confdefs.h
>>conftest.
$ac_ext
20737 cat >>conftest.
$ac_ext <<_ACEOF
20738 /* end confdefs.h. */
20748 rm -f conftest.
$ac_objext
20749 if { (ac_try
="$ac_compile"
20750 case "(($ac_try" in
20751 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20752 *) ac_try_echo=$ac_try;;
20754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755 (eval "$ac_compile") 2>conftest.er1
20757 grep -v '^ *+' conftest.er1 >conftest.err
20759 cat conftest.err >&5
20760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761 (exit $ac_status); } &&
20762 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20763 { (case "(($ac_try" in
20764 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20765 *) ac_try_echo
=$ac_try;;
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768 (eval "$ac_try") 2>&5
20770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771 (exit $ac_status); }; } &&
20772 { ac_try
='test -s conftest.$ac_objext'
20773 { (case "(($ac_try" in
20774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20775 *) ac_try_echo=$ac_try;;
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778 (eval "$ac_try") 2>&5
20780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781 (exit $ac_status); }; }; then
20782 llvm_cv_cxx_visibility_inlines_hidden=yes
20784 echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20787 llvm_cv_cxx_visibility_inlines_hidden=no
20790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20791 CXXFLAGS="$oldcxxflags"
20793 ac_cpp='$CPP $CPPFLAGS'
20794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20800 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20801 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20802 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20803 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20806 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20811 if test "$llvm_cv_link_use_r" = "yes" ; then
20818 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20819 RDYNAMIC="-Wl,-export-dynamic"
20826 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20833 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20835 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20837 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20839 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20841 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20844 ac_config_files="$ac_config_files Makefile.config"
20847 ac_config_files="$ac_config_files llvm.spec"
20850 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20853 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20856 ac_config_commands="$ac_config_commands setup"
20858 ac_config_commands="$ac_config_commands Makefile"
20861 ac_config_commands="$ac_config_commands Makefile.common"
20864 ac_config_commands="$ac_config_commands examples/Makefile"
20867 ac_config_commands="$ac_config_commands lib/Makefile"
20870 ac_config_commands="$ac_config_commands runtime/Makefile"
20873 ac_config_commands="$ac_config_commands test/Makefile"
20876 ac_config_commands="$ac_config_commands test/Makefile.tests"
20879 ac_config_commands="$ac_config_commands unittests/Makefile"
20882 ac_config_commands="$ac_config_commands tools/Makefile"
20885 ac_config_commands="$ac_config_commands utils/Makefile"
20888 ac_config_commands="$ac_config_commands projects/Makefile"
20891 ac_config_commands="$ac_config_commands bindings/Makefile"
20894 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20898 cat >confcache <<\_ACEOF
20899 # This file is a shell script that caches the results of configure
20900 # tests run on this system so they can be shared between configure
20901 # scripts and configure runs, see configure's option --config-cache.
20902 # It is not useful on other systems. If it contains results you don't
20903 # want to keep, you may remove or edit it.
20905 # config.status only pays attention to the cache file if you give it
20906 # the --recheck option to rerun configure.
20908 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
20909 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20910 # following values.
20914 # The following way of writing the cache mishandles newlines in values,
20915 # but we know of no workaround that is simple, portable, and efficient.
20916 # So, we kill variables containing newlines.
20917 # Ultrix sh set writes to stderr and can't be redirected directly,
20918 # and sets the high bit in the cache file unless we assign to the vars.
20920 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20921 eval ac_val
=\$
$ac_var
20925 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20926 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20929 _ | IFS | as_nl
) ;; #(
20930 *) $as_unset $ac_var ;;
20936 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20937 *${as_nl}ac_space
=\
*)
20938 # `set' does not quote correctly, so add quotes (double-quote
20939 # substitution turns \\\\ into \\, and sed turns \\ into \).
20942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20945 # `set' quotes correctly as required by POSIX, so do not add quotes.
20946 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20955 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20957 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20959 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20960 if test -w "$cache_file"; then
20961 test "x$cache_file" != "x/dev/null" &&
20962 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20963 echo "$as_me: updating cache $cache_file" >&6;}
20964 cat confcache
>$cache_file
20966 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20967 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20972 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20973 # Let make expand exec_prefix.
20974 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20976 DEFS
=-DHAVE_CONFIG_H
20980 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20981 # 1. Remove the extension, and $U if already installed.
20982 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20983 ac_i
=`echo "$ac_i" | sed "$ac_script"`
20984 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20985 # will be set to the directory where LIBOBJS objects are built.
20986 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20987 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20989 LIBOBJS
=$ac_libobjs
20991 LTLIBOBJS
=$ac_ltlibobjs
20994 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20995 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20996 Usually this means the macro was only invoked conditionally." >&5
20997 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20998 Usually this means the macro was only invoked conditionally." >&2;}
20999 { (exit 1); exit 1; }; }
21001 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21002 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21003 Usually this means the macro was only invoked conditionally." >&5
21004 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21005 Usually this means the macro was only invoked conditionally." >&2;}
21006 { (exit 1); exit 1; }; }
21009 : ${CONFIG_STATUS=./config.status}
21010 ac_clean_files_save
=$ac_clean_files
21011 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21012 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21013 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21014 cat >$CONFIG_STATUS <<_ACEOF
21016 # Generated by $as_me.
21017 # Run this file to recreate the current configuration.
21018 # Compiler output produced by configure, useful for debugging
21019 # configure, is in config.log if it exists.
21022 ac_cs_recheck=false
21024 SHELL=\${CONFIG_SHELL-$SHELL}
21027 cat >>$CONFIG_STATUS <<\_ACEOF
21028 ## --------------------- ##
21029 ## M4sh Initialization. ##
21030 ## --------------------- ##
21032 # Be Bourne compatible
21033 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21036 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21037 # is contrary to our usage. Disable this feature.
21038 alias -g '${1+"$@"}'='"$@"'
21039 setopt NO_GLOB_SUBST
21041 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
21043 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
21044 DUALCASE
=1; export DUALCASE
# for MKS sh
21048 # Avoid depending upon Character Ranges.
21049 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21050 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21051 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21052 as_cr_digits
='0123456789'
21053 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21055 # The user is always right.
21056 if test "${PATH_SEPARATOR+set}" != set; then
21057 echo "#! /bin/sh" >conf$$.sh
21058 echo "exit 0" >>conf$$.sh
21060 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21068 # Support unset when possible.
21069 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21077 # We need space, tab and new line, in precisely that order. Quoting is
21078 # there to prevent editors from complaining about space-tab.
21079 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21080 # splitting by setting IFS to empty value.)
21085 # Find who we are. Look in the path if we contain no directory separator.
21087 *[\\/]* ) as_myself
=$0 ;;
21088 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21089 for as_dir
in $PATH
21092 test -z "$as_dir" && as_dir
=.
21093 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21099 # We did not find ourselves, most probably we were run as `sh COMMAND'
21100 # in which case we are not to be found in the path.
21101 if test "x$as_myself" = x
; then
21104 if test ! -f "$as_myself"; then
21105 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21106 { (exit 1); exit 1; }
21109 # Work around bugs in pre-3.0 UWIN ksh.
21110 for as_var
in ENV MAIL MAILPATH
21111 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
21119 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21120 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21121 LC_TELEPHONE LC_TIME
21123 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21124 eval $as_var=C
; export $as_var
21126 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
21130 # Required to use basename.
21131 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21132 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21138 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21139 as_basename
=basename
21145 # Name of the executable.
21146 as_me
=`$as_basename -- "$0" ||
21147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21148 X"$0" : 'X\(//\)$' \| \
21149 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21151 sed '/^.*\/\([^/][^/]*\)\/*$/{
21170 as_lineno_1
=$LINENO
21171 as_lineno_2
=$LINENO
21172 test "x$as_lineno_1" != "x$as_lineno_2" &&
21173 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
21175 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21176 # uniformly replaced by the line number. The first 'sed' inserts a
21177 # line-number line after each line using $LINENO; the second 'sed'
21178 # does the real work. The second script uses 'N' to pair each
21179 # line-number line with the line containing $LINENO, and appends
21180 # trailing '-' during substitution so that $LINENO is not a special
21181 # case at line end.
21182 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21183 # scripts with optimization help from Paolo Bonzini. Blame Lee
21184 # E. McMahon (1931-1989) for sed's syntax. :-)
21196 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21199 ' >$as_me.lineno
&&
21200 chmod +x
"$as_me.lineno" ||
21201 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21202 { (exit 1); exit 1; }; }
21204 # Don't try to exec as it changes $[0], causing all sort of problems
21205 # (the dirname of $[0] is not the place where we might find the
21206 # original and so on. Autoconf is especially sensitive to this).
21207 .
"./$as_me.lineno"
21208 # Exit status is that of the last command.
21213 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
21219 ECHO_C
= ECHO_N
= ECHO_T
=
21220 case `echo -n x` in
21222 case `echo 'x\c'` in
21223 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
21230 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21231 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21237 rm -f conf$$ conf$$.exe conf$$.
file
21238 if test -d conf$$.dir
; then
21239 rm -f conf$$.dir
/conf$$.
file
21245 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21247 # ... but there are two gotchas:
21248 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21249 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21250 # In both cases, we have to default to `cp -p'.
21251 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
21253 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21258 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
21259 rmdir conf$$.dir
2>/dev
/null
21261 if mkdir
-p .
2>/dev
/null
; then
21264 test -d .
/-p && rmdir .
/-p
21268 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21269 # systems may use methods other than mode bits to determine executability.
21270 cat >conf$$.
file <<_ASEOF
21274 chmod +x conf$$.
file
21275 if test -x conf$$.
file >/dev
/null
2>&1; then
21276 as_executable_p
="test -x"
21282 # Sed expression to map a string onto a valid CPP name.
21283 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21285 # Sed expression to map a string onto a valid variable name.
21286 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21291 # Save the log message, to keep $[0] and so on meaningful, and to
21292 # report actual input values of CONFIG_FILES etc. instead of their
21293 # values after options handling.
21295 This file was extended by llvm $as_me 2.9svn, which was
21296 generated by GNU Autoconf 2.60. Invocation command line was
21298 CONFIG_FILES = $CONFIG_FILES
21299 CONFIG_HEADERS = $CONFIG_HEADERS
21300 CONFIG_LINKS = $CONFIG_LINKS
21301 CONFIG_COMMANDS = $CONFIG_COMMANDS
21304 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21309 cat >>$CONFIG_STATUS <<_ACEOF
21310 # Files that config.status was made for.
21311 config_files="$ac_config_files"
21312 config_headers="$ac_config_headers"
21313 config_commands="$ac_config_commands"
21317 cat >>$CONFIG_STATUS <<\_ACEOF
21319 \`$as_me' instantiates files from templates according to the
21320 current configuration.
21322 Usage: $0 [OPTIONS] [FILE]...
21324 -h, --help print this help, then exit
21325 -V, --version print version number, then exit
21326 -q, --quiet do not print progress messages
21327 -d, --debug don't remove temporary files
21328 --recheck update $as_me by reconfiguring in the same conditions
21329 --file=FILE[:TEMPLATE]
21330 instantiate the configuration file FILE
21331 --header=FILE[:TEMPLATE]
21332 instantiate the configuration header FILE
21334 Configuration files:
21337 Configuration headers:
21340 Configuration commands:
21343 Report bugs to <bug-autoconf@gnu.org>."
21346 cat >>$CONFIG_STATUS <<_ACEOF
21348 llvm config.status 2.9svn
21349 configured by $0, generated by GNU Autoconf 2.60,
21350 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21352 Copyright (C) 2006 Free Software Foundation, Inc.
21353 This config.status script is free software; the Free Software Foundation
21354 gives unlimited permission to copy, distribute and modify it."
21361 cat >>$CONFIG_STATUS <<\_ACEOF
21362 # If no file are specified by the user, then we need to provide default
21363 # value. By we need to know if files were specified by the user.
21369 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
21370 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
21381 # Handling of the options.
21382 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21384 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
21385 echo "$ac_cs_version"; exit ;;
21386 --debug |
--debu |
--deb |
--de |
--d |
-d )
21388 --file |
--fil |
--fi |
--f )
21390 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21391 ac_need_defaults
=false
;;
21392 --header |
--heade |
--head |
--hea )
21394 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21395 ac_need_defaults
=false
;;
21397 # Conflict between --help and --header
21398 { echo "$as_me: error: ambiguous option: $1
21399 Try \`$0 --help' for more information." >&2
21400 { (exit 1); exit 1; }; };;
21401 --help |
--hel |
-h )
21402 echo "$ac_cs_usage"; exit ;;
21403 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21404 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21407 # This is an error.
21408 -*) { echo "$as_me: error: unrecognized option: $1
21409 Try \`$0 --help' for more information." >&2
21410 { (exit 1); exit 1; }; } ;;
21412 *) ac_config_targets
="$ac_config_targets $1"
21413 ac_need_defaults
=false
;;
21419 ac_configure_extra_args
=
21421 if $ac_cs_silent; then
21423 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21427 cat >>$CONFIG_STATUS <<_ACEOF
21428 if \$ac_cs_recheck; then
21429 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21430 CONFIG_SHELL=$SHELL
21431 export CONFIG_SHELL
21432 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21436 cat >>$CONFIG_STATUS <<\_ACEOF
21440 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21441 ## Running $as_me. ##
21447 cat >>$CONFIG_STATUS <<_ACEOF
21451 llvm_src="${srcdir}"
21455 cat >>$CONFIG_STATUS <<\_ACEOF
21457 # Handling of arguments.
21458 for ac_config_target
in $ac_config_targets
21460 case $ac_config_target in
21461 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21462 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21463 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21464 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21465 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21466 "include/llvm/Config/Disassemblers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21467 "include/llvm/System/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21468 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
21469 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
21470 "tools/llvmc/src/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21471 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21472 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
21473 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
21474 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
21475 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
21476 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
21477 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
21478 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
21479 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
21480 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
21481 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
21482 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
21483 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
21484 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
21485 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21487 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21488 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21489 { (exit 1); exit 1; }; };;
21494 # If the user did not use the arguments to specify the items to instantiate,
21495 # then the envvar interface is used. Set only those that are not.
21496 # We use the long form for the default assignment because of an extremely
21497 # bizarre bug on SunOS 4.1.3.
21498 if $ac_need_defaults; then
21499 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21500 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21501 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21504 # Have a temporary directory for convenience. Make it in the build tree
21505 # simply because there is no reason against having it here, and in addition,
21506 # creating and moving files from /tmp can sometimes cause problems.
21507 # Hook for its removal unless debugging.
21508 # Note that there is a small window in which the directory will not be cleaned:
21509 # after its creation but before its name has been assigned to `$tmp'.
21513 trap 'exit_status=$?
21514 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21516 trap '{ (exit 1); exit 1; }' 1 2 13 15
21518 # Create a (secure) tmp directory for tmp files.
21521 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21522 test -n "$tmp" && test -d "$tmp"
21525 tmp
=.
/conf$$
-$RANDOM
21526 (umask 077 && mkdir
"$tmp")
21529 echo "$me: cannot create a temporary directory in ." >&2
21530 { (exit 1); exit 1; }
21534 # Set up the sed scripts for CONFIG_FILES section.
21537 # No need to generate the scripts if there are no CONFIG_FILES.
21538 # This happens for instance when ./config.status config.h
21539 if test -n "$CONFIG_FILES"; then
21546 for ac_last_try
in false false false false false
:; do
21547 cat >conf$
$subs.
sed <<_ACEOF
21548 SHELL!$SHELL$ac_delim
21549 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21550 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21551 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21552 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21553 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21554 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21555 exec_prefix!$exec_prefix$ac_delim
21556 prefix!$prefix$ac_delim
21557 program_transform_name!$program_transform_name$ac_delim
21558 bindir!$bindir$ac_delim
21559 sbindir!$sbindir$ac_delim
21560 libexecdir!$libexecdir$ac_delim
21561 datarootdir!$datarootdir$ac_delim
21562 datadir!$datadir$ac_delim
21563 sysconfdir!$sysconfdir$ac_delim
21564 sharedstatedir!$sharedstatedir$ac_delim
21565 localstatedir!$localstatedir$ac_delim
21566 includedir!$includedir$ac_delim
21567 oldincludedir!$oldincludedir$ac_delim
21568 docdir!$docdir$ac_delim
21569 infodir!$infodir$ac_delim
21570 htmldir!$htmldir$ac_delim
21571 dvidir!$dvidir$ac_delim
21572 pdfdir!$pdfdir$ac_delim
21573 psdir!$psdir$ac_delim
21574 libdir!$libdir$ac_delim
21575 localedir!$localedir$ac_delim
21576 mandir!$mandir$ac_delim
21577 DEFS!$DEFS$ac_delim
21578 ECHO_C!$ECHO_C$ac_delim
21579 ECHO_N!$ECHO_N$ac_delim
21580 ECHO_T!$ECHO_T$ac_delim
21581 LIBS!$LIBS$ac_delim
21582 build_alias!$build_alias$ac_delim
21583 host_alias!$host_alias$ac_delim
21584 target_alias!$target_alias$ac_delim
21585 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21586 subdirs!$subdirs$ac_delim
21587 build!$build$ac_delim
21588 build_cpu!$build_cpu$ac_delim
21589 build_vendor!$build_vendor$ac_delim
21590 build_os!$build_os$ac_delim
21591 host!$host$ac_delim
21592 host_cpu!$host_cpu$ac_delim
21593 host_vendor!$host_vendor$ac_delim
21594 host_os!$host_os$ac_delim
21595 target!$target$ac_delim
21596 target_cpu!$target_cpu$ac_delim
21597 target_vendor!$target_vendor$ac_delim
21598 target_os!$target_os$ac_delim
21600 HOST_OS!$HOST_OS$ac_delim
21601 TARGET_OS!$TARGET_OS$ac_delim
21602 LINKALL!$LINKALL$ac_delim
21603 NOLINKALL!$NOLINKALL$ac_delim
21604 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21605 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21606 ARCH!$ARCH$ac_delim
21607 ENDIAN!$ENDIAN$ac_delim
21609 CFLAGS!$CFLAGS$ac_delim
21610 LDFLAGS!$LDFLAGS$ac_delim
21611 CPPFLAGS!$CPPFLAGS$ac_delim
21612 ac_ct_CC!$ac_ct_CC$ac_delim
21613 EXEEXT!$EXEEXT$ac_delim
21614 OBJEXT!$OBJEXT$ac_delim
21616 GREP!$GREP$ac_delim
21617 EGREP!$EGREP$ac_delim
21618 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21619 BUILD_CC!$BUILD_CC$ac_delim
21620 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21621 BUILD_CXX!$BUILD_CXX$ac_delim
21622 CVSBUILD!$CVSBUILD$ac_delim
21623 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21624 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21625 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21626 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21627 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21628 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21629 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21631 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21632 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21633 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21634 ENABLE_PIC!$ENABLE_PIC$ac_delim
21635 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21636 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21637 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21638 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21639 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21640 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21641 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21642 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21643 CLANGPATH!$CLANGPATH$ac_delim
21644 CLANGXXPATH!$CLANGXXPATH$ac_delim
21647 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21649 elif $ac_last_try; then
21650 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21651 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21652 { (exit 1); exit 1; }; }
21654 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21658 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21659 if test -n "$ac_eof"; then
21660 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21661 ac_eof
=`expr $ac_eof + 1`
21664 cat >>$CONFIG_STATUS <<_ACEOF
21665 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21669 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21670 s/^/s,@/; s/!/@,|#_!!_#|/
21673 s/'"$ac_delim"'$/,g/; t
21675 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21676 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21677 rm -f conf$
$subs.
sed
21678 cat >>$CONFIG_STATUS <<_ACEOF
21684 for ac_last_try
in false false false false false
:; do
21685 cat >conf$
$subs.
sed <<_ACEOF
21686 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21687 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21688 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21689 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21691 CXXFLAGS!$CXXFLAGS$ac_delim
21692 ac_ct_CXX!$ac_ct_CXX$ac_delim
21694 ifGNUmake!$ifGNUmake$ac_delim
21695 LN_S!$LN_S$ac_delim
21698 DATE!$DATE$ac_delim
21699 FIND!$FIND$ac_delim
21700 MKDIR!$MKDIR$ac_delim
21702 RANLIB!$RANLIB$ac_delim
21707 BINPWD!$BINPWD$ac_delim
21708 GRAPHVIZ!$GRAPHVIZ$ac_delim
21711 NEATO!$NEATO$ac_delim
21712 TWOPI!$TWOPI$ac_delim
21713 CIRCO!$CIRCO$ac_delim
21715 DOTTY!$DOTTY$ac_delim
21716 XDOT_PY!$XDOT_PY$ac_delim
21717 PERL!$PERL$ac_delim
21718 HAVE_PERL!$HAVE_PERL$ac_delim
21719 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21720 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21721 INSTALL_DATA!$INSTALL_DATA$ac_delim
21722 BZIP2!$BZIP2$ac_delim
21724 DOXYGEN!$DOXYGEN$ac_delim
21725 GROFF!$GROFF$ac_delim
21726 GZIP!$GZIP$ac_delim
21727 POD2HTML!$POD2HTML$ac_delim
21728 POD2MAN!$POD2MAN$ac_delim
21729 PDFROFF!$PDFROFF$ac_delim
21730 RUNTEST!$RUNTEST$ac_delim
21731 TCLSH!$TCLSH$ac_delim
21733 OCAMLC!$OCAMLC$ac_delim
21734 OCAMLOPT!$OCAMLOPT$ac_delim
21735 OCAMLDEP!$OCAMLDEP$ac_delim
21736 OCAMLDOC!$OCAMLDOC$ac_delim
21738 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21739 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21740 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21741 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21742 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21743 LIBADD_DL!$LIBADD_DL$ac_delim
21744 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21745 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21746 LLVMGCC!$LLVMGCC$ac_delim
21747 LLVMGXX!$LLVMGXX$ac_delim
21748 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21749 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21750 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21751 USE_UDIS86!$USE_UDIS86$ac_delim
21752 USE_OPROFILE!$USE_OPROFILE$ac_delim
21753 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21754 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21755 MMAP_FILE!$MMAP_FILE$ac_delim
21756 LLVMCC1!$LLVMCC1$ac_delim
21757 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21758 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21759 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21760 SHLIBEXT!$SHLIBEXT$ac_delim
21761 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21762 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21763 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21764 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21765 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21766 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21767 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21768 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21769 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21770 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21771 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21772 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21773 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21774 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21775 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21776 RPATH!$RPATH$ac_delim
21777 RDYNAMIC!$RDYNAMIC$ac_delim
21778 LIBOBJS!$LIBOBJS$ac_delim
21779 LTLIBOBJS!$LTLIBOBJS$ac_delim
21782 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
21784 elif $ac_last_try; then
21785 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21786 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21787 { (exit 1); exit 1; }; }
21789 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21793 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21794 if test -n "$ac_eof"; then
21795 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21796 ac_eof
=`expr $ac_eof + 1`
21799 cat >>$CONFIG_STATUS <<_ACEOF
21800 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21801 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21804 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21805 s/^/s,@/; s/!/@,|#_!!_#|/
21808 s/'"$ac_delim"'$/,g/; t
21810 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21811 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21812 rm -f conf$
$subs.
sed
21813 cat >>$CONFIG_STATUS <<_ACEOF
21820 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21821 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21822 # trailing colons and then remove the whole line if VPATH becomes empty
21823 # (actually we leave an empty line to preserve line numbers).
21824 if test "x$srcdir" = x.
; then
21825 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21826 s/:*\$(srcdir):*/:/
21827 s/:*\${srcdir}:*/:/
21829 s/^\([^=]*=[ ]*\):*/\1/
21835 cat >>$CONFIG_STATUS <<\_ACEOF
21836 fi # test -n "$CONFIG_FILES"
21839 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
21842 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21844 case $ac_mode$ac_tag in
21846 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21847 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21848 { (exit 1); exit 1; }; };;
21849 :[FH
]-) ac_tag
=-:-;;
21850 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21867 -) ac_f
="$tmp/stdin";;
21868 *) # Look for the file first in the build tree, then in the source tree
21869 # (if the path is not absolute). The absolute path cannot be DOS-style,
21870 # because $ac_f cannot contain `:'.
21874 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21876 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21877 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21878 { (exit 1); exit 1; }; };;
21880 ac_file_inputs
="$ac_file_inputs $ac_f"
21883 # Let's still pretend it is `configure' which instantiates (i.e., don't
21884 # use $as_me), people would be surprised to read:
21885 # /* config.h. Generated by config.status. */
21886 configure_input
="Generated from "`IFS=:
21887 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21888 if test x
"$ac_file" != x-
; then
21889 configure_input
="$ac_file. $configure_input"
21890 { echo "$as_me:$LINENO: creating $ac_file" >&5
21891 echo "$as_me: creating $ac_file" >&6;}
21895 *:-:* |
*:-) cat >"$tmp/stdin";;
21900 ac_dir
=`$as_dirname -- "$ac_file" ||
21901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21902 X"$ac_file" : 'X\(//\)[^/]' \| \
21903 X"$ac_file" : 'X\(//\)$' \| \
21904 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21910 /^X\(\/\/\)[^/].*/{
21925 -*) as_dir
=.
/$as_dir;;
21927 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21931 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21932 *) as_qdir
=$as_dir;;
21934 as_dirs
="'$as_qdir' $as_dirs"
21935 as_dir
=`$as_dirname -- "$as_dir" ||
21936 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21937 X"$as_dir" : 'X\(//\)[^/]' \| \
21938 X"$as_dir" : 'X\(//\)$' \| \
21939 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21941 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21945 /^X\(\/\/\)[^/].*/{
21958 test -d "$as_dir" && break
21960 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21961 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21962 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21963 { (exit 1); exit 1; }; }; }
21967 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21969 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21970 # A ".." for each directory in $ac_dir_suffix.
21971 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21972 case $ac_top_builddir_sub in
21973 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21974 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21977 ac_abs_top_builddir
=$ac_pwd
21978 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21979 # for backward compatibility:
21980 ac_top_builddir
=$ac_top_build_prefix
21983 .
) # We are building in place.
21985 ac_top_srcdir
=$ac_top_builddir_sub
21986 ac_abs_top_srcdir
=$ac_pwd ;;
21987 [\\/]* | ?
:[\\/]* ) # Absolute name.
21988 ac_srcdir
=$srcdir$ac_dir_suffix;
21989 ac_top_srcdir
=$srcdir
21990 ac_abs_top_srcdir
=$srcdir ;;
21991 *) # Relative name.
21992 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21993 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21994 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21996 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
22006 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
22007 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
22011 cat >>$CONFIG_STATUS <<\_ACEOF
22012 # If the template does not know about datarootdir, expand it.
22013 # FIXME: This hack should be removed a few years after 2.60.
22014 ac_datarootdir_hack
=; ac_datarootdir_seen
=
22016 case `sed -n '/datarootdir/ {
22025 ' $ac_file_inputs` in
22026 *datarootdir
*) ac_datarootdir_seen
=yes;;
22027 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
22028 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22029 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22031 cat >>$CONFIG_STATUS <<_ACEOF
22032 ac_datarootdir_hack='
22033 s&@datadir@&$datadir&g
22034 s&@docdir@&$docdir&g
22035 s&@infodir@&$infodir&g
22036 s&@localedir@&$localedir&g
22037 s&@mandir@&$mandir&g
22038 s&\\\${datarootdir}&$datarootdir&g' ;;
22042 # Neutralize VPATH when `$srcdir' = `.'.
22043 # Shell code in configure.ac might set extrasub.
22044 # FIXME: do we really want to maintain this feature?
22045 cat >>$CONFIG_STATUS <<_ACEOF
22049 cat >>$CONFIG_STATUS <<\_ACEOF
22051 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22052 s
&@configure_input@
&$configure_input&;t t
22053 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
22054 s
&@srcdir@
&$ac_srcdir&;t t
22055 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
22056 s
&@top_srcdir@
&$ac_top_srcdir&;t t
22057 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
22058 s
&@builddir@
&$ac_builddir&;t t
22059 s
&@abs_builddir@
&$ac_abs_builddir&;t t
22060 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
22061 s
&@INSTALL@
&$ac_INSTALL&;t t
22062 $ac_datarootdir_hack
22063 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
22065 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22066 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
22067 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
22068 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
22069 which seems to be undefined. Please make sure it is defined." >&5
22070 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
22071 which seems to be undefined. Please make sure it is defined." >&2;}
22075 -) cat "$tmp/out"; rm -f "$tmp/out";;
22076 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22085 # Transform confdefs.h into a sed script `conftest.defines', that
22086 # substitutes the proper values into config.h.in to produce config.h.
22087 rm -f conftest.defines conftest.
tail
22088 # First, append a space to every undef/define line, to ease matching.
22089 echo 's/$/ /' >conftest.defines
22090 # Then, protect against being on the right side of a sed subst, or in
22091 # an unquoted here document, in config.status. If some macros were
22092 # called several times there might be several #defines for the same
22093 # symbol, which is useless. But do not sort them, since the last
22094 # AC_DEFINE must be honored.
22095 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
22096 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22097 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22098 # PARAMS is the parameter list in the macro definition--in most cases, it's
22099 # just an empty string.
22100 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22101 ac_dB
='\\)[ (].*,\\1define\\2'
22109 s/^[ ]*#[ ]*define[ ][ ]*//
22114 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22115 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22116 ' >>conftest.defines
22118 # Remove the space that was appended to ease matching.
22119 # Then replace #undef with comments. This is necessary, for
22120 # example, in the case of _POSIX_SOURCE, which is predefined and required
22121 # on some systems where configure will not decide to define it.
22122 # (The regexp can be short, since the line contains either #define or #undef.)
22124 s,^[ #]*u.*,/* & */,' >>conftest.defines
22126 # Break up conftest.defines:
22127 ac_max_sed_lines
=50
22129 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22130 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22131 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22133 ac_in
='$ac_file_inputs'
22134 ac_out
='"$tmp/out1"'
22135 ac_nxt
='"$tmp/out2"'
22139 # Write a here document:
22140 cat >>$CONFIG_STATUS <<_ACEOF
22141 # First, check the format of the line:
22142 cat >"\$tmp/defines.sed" <<\\CEOF
22143 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22144 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22148 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
22150 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22151 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
22152 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
22153 grep . conftest.
tail >/dev
/null ||
break
22154 rm -f conftest.defines
22155 mv conftest.
tail conftest.defines
22157 rm -f conftest.defines conftest.
tail
22159 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22160 cat >>$CONFIG_STATUS <<\_ACEOF
22161 if test x
"$ac_file" != x-
; then
22162 echo "/* $configure_input */" >"$tmp/config.h"
22163 cat "$ac_result" >>"$tmp/config.h"
22164 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
22165 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22166 echo "$as_me: $ac_file is unchanged" >&6;}
22169 mv "$tmp/config.h" $ac_file
22172 echo "/* $configure_input */"
22178 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22179 echo "$as_me: executing $ac_file commands" >&6;}
22184 case $ac_file$ac_mode in
22185 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
22186 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile
;;
22187 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
22188 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common
;;
22189 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
22190 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
22191 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
22192 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
22193 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
22194 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
22195 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
22196 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile test
/Makefile
;;
22197 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
22198 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
22199 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
22200 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
22201 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
22202 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
22203 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
22204 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
22205 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
22206 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
22207 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
22208 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
22209 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
22210 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
22216 { (exit 0); exit 0; }
22218 chmod +x
$CONFIG_STATUS
22219 ac_clean_files
=$ac_clean_files_save
22222 # configure is writing to config.log, and then calls config.status.
22223 # config.status does its own redirection, appending to config.log.
22224 # Unfortunately, on DOS this fails, as config.log is still kept open
22225 # by configure, so config.status won't be able to write to it; its
22226 # output is simply discarded. So we exec the FD to /dev/null,
22227 # effectively closing config.log, so it can be properly (re)opened and
22228 # appended to by config.status. When coming back to configure, we
22229 # need to make the FD available again.
22230 if test "$no_create" != yes; then
22232 ac_config_status_args
=
22233 test "$silent" = yes &&
22234 ac_config_status_args
="$ac_config_status_args --quiet"
22236 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22238 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22239 # would make configure fail if this is the last instruction.
22240 $ac_cs_success ||
{ (exit 1); exit 1; }
22244 # CONFIG_SUBDIRS section.
22246 if test "$no_recursion" != yes; then
22248 # Remove --cache-file and --srcdir arguments so they do not pile up.
22249 ac_sub_configure_args
=
22251 eval "set x $ac_configure_args"
22255 if test -n "$ac_prev"; then
22260 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
22261 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
22262 ac_prev
=cache_file
;;
22263 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
22264 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
22267 --config-cache |
-C)
22269 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
22271 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
22273 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
22275 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
22279 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22281 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
22285 # Always prepend --prefix to ensure using the same prefix
22286 # in subdir configurations.
22287 ac_arg
="--prefix=$prefix"
22289 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22291 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
22294 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
22296 # Do not complain, so a configure script can configure whichever
22297 # parts of a large source tree are present.
22298 test -d "$srcdir/$ac_dir" ||
continue
22300 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22301 echo "$as_me:$LINENO: $ac_msg" >&5
22305 -*) as_dir
=.
/$as_dir;;
22307 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
22311 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22312 *) as_qdir
=$as_dir;;
22314 as_dirs
="'$as_qdir' $as_dirs"
22315 as_dir
=`$as_dirname -- "$as_dir" ||
22316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22317 X"$as_dir" : 'X\(//\)[^/]' \| \
22318 X"$as_dir" : 'X\(//\)$' \| \
22319 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22325 /^X\(\/\/\)[^/].*/{
22338 test -d "$as_dir" && break
22340 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22341 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22342 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22343 { (exit 1); exit 1; }; }; }
22347 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22349 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22350 # A ".." for each directory in $ac_dir_suffix.
22351 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22352 case $ac_top_builddir_sub in
22353 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22354 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
22357 ac_abs_top_builddir
=$ac_pwd
22358 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
22359 # for backward compatibility:
22360 ac_top_builddir
=$ac_top_build_prefix
22363 .
) # We are building in place.
22365 ac_top_srcdir
=$ac_top_builddir_sub
22366 ac_abs_top_srcdir
=$ac_pwd ;;
22367 [\\/]* | ?
:[\\/]* ) # Absolute name.
22368 ac_srcdir
=$srcdir$ac_dir_suffix;
22369 ac_top_srcdir
=$srcdir
22370 ac_abs_top_srcdir
=$srcdir ;;
22371 *) # Relative name.
22372 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
22373 ac_top_srcdir
=$ac_top_build_prefix$srcdir
22374 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
22376 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
22381 # Check for guested configure; otherwise get Cygnus style configure.
22382 if test -f "$ac_srcdir/configure.gnu"; then
22383 ac_sub_configure
=$ac_srcdir/configure.gnu
22384 elif test -f "$ac_srcdir/configure"; then
22385 ac_sub_configure
=$ac_srcdir/configure
22386 elif test -f "$ac_srcdir/configure.in"; then
22387 # This should be Cygnus configure.
22388 ac_sub_configure
=$ac_aux_dir/configure
22390 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22395 # The recursion is here.
22396 if test -n "$ac_sub_configure"; then
22397 # Make the cache file name correct relative to the subdirectory.
22398 case $cache_file in
22399 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
22400 *) # Relative name.
22401 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
22404 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22405 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22406 # The eval makes quoting arguments work.
22407 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22408 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22409 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22410 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22411 { (exit 1); exit 1; }; }