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 pic16, xcore, msp430, systemz, blackfin, ptx, cbe,
1419 and cpp (default=all)
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-c-include-dirs Colon separated list of directories clang will
1447 --with-cxx-include-root Directory with the libstdc++ headers.
1448 --with-cxx-include-arch Architecture of the libstdc++ headers.
1449 --with-cxx-include-32bit-dir
1450 32 bit multilib dir.
1451 --with-cxx-include-64bit-dir
1452 64 bit multilib directory.
1453 --with-binutils-include Specify path to binutils/include/ containing
1454 plugin-api.h file for gold plugin.
1455 --with-tclinclude directory where tcl headers are
1456 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1457 clang, or none; default=check)
1458 --with-udis86=<path> Use udis86 external x86 disassembler library
1459 --with-oprofile=<prefix>
1460 Tell OProfile >= 0.9.4 how to symbolize JIT output
1462 Some influential environment variables:
1463 CC C compiler command
1464 CFLAGS C compiler flags
1465 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1466 nonstandard directory <lib dir>
1467 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468 you have headers in a nonstandard directory <include dir>
1470 CXX C++ compiler command
1471 CXXFLAGS C++ compiler flags
1473 Use these variables to override the choices made by `configure' or to
help
1474 it to
find libraries and programs with nonstandard names
/locations.
1476 Report bugs to
<llvmbugs@cs.uiuc.edu
>.
1481 if test "$ac_init_help" = "recursive"; then
1482 # If there are subdirs, report their specific --help.
1483 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1484 test -d "$ac_dir" ||
continue
1488 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1490 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491 # A ".." for each directory in $ac_dir_suffix.
1492 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493 case $ac_top_builddir_sub in
1494 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1495 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1498 ac_abs_top_builddir
=$ac_pwd
1499 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir
=$ac_top_build_prefix
1504 .
) # We are building in place.
1506 ac_top_srcdir
=$ac_top_builddir_sub
1507 ac_abs_top_srcdir
=$ac_pwd ;;
1508 [\\/]* | ?
:[\\/]* ) # Absolute name.
1509 ac_srcdir
=$srcdir$ac_dir_suffix;
1510 ac_top_srcdir
=$srcdir
1511 ac_abs_top_srcdir
=$srcdir ;;
1513 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1515 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1517 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1519 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1520 # Check for guested configure.
1521 if test -f "$ac_srcdir/configure.gnu"; then
1523 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524 elif test -f "$ac_srcdir/configure"; then
1526 $SHELL "$ac_srcdir/configure" --help=recursive
1528 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1530 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1537 llvm configure
2.9svn
1538 generated by GNU Autoconf
2.60
1540 Copyright
(C
) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation
, Inc.
1542 This configure
script is free software
; the Free Software Foundation
1543 gives unlimited permission to copy
, distribute and modify it.
1545 Copyright
(c
) 2003-2010 University of Illinois
at Urbana-Champaign.
1549 cat >config.log
<<_ACEOF
1550 This file contains any messages produced by compilers while
1551 running configure, to aid debugging if configure makes a mistake.
1553 It was created by llvm $as_me 2.9svn, which was
1554 generated by GNU Autoconf 2.60. Invocation command line was
1566 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1572 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1575 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1576 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1577 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1579 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1580 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1581 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1585 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1589 test -z "$as_dir" && as_dir
=.
1590 echo "PATH: $as_dir"
1606 # Keep a trace of the command line.
1607 # Strip out --no-create and --no-recursion so they do not pile up.
1608 # Strip out --silent because we don't want to record it for future runs.
1609 # Also quote any args containing shell meta-characters.
1610 # Make two passes to allow for proper duplicate-argument suppression.
1614 ac_must_keep_next
=false
1620 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
1621 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1622 |
-silent |
--silent |
--silen |
--sile |
--sil)
1625 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1628 1) ac_configure_args0
="$ac_configure_args0 '$ac_arg'" ;;
1630 ac_configure_args1
="$ac_configure_args1 '$ac_arg'"
1631 if test $ac_must_keep_next = true
; then
1632 ac_must_keep_next
=false
# Got value, back to normal.
1635 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
1636 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
1637 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
1638 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
1639 case "$ac_configure_args0 " in
1640 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1643 -* ) ac_must_keep_next
=true
;;
1646 ac_configure_args
="$ac_configure_args '$ac_arg'"
1651 $as_unset ac_configure_args0 ||
test "${ac_configure_args0+set}" != set ||
{ ac_configure_args0
=; export ac_configure_args0
; }
1652 $as_unset ac_configure_args1 ||
test "${ac_configure_args1+set}" != set ||
{ ac_configure_args1
=; export ac_configure_args1
; }
1654 # When interrupted or exit'd, cleanup temporary files, and complete
1655 # config.log. We remove comments because anyway the quotes in there
1656 # would cause problems or look ugly.
1657 # WARNING: Use '\'' to represent an apostrophe within the trap.
1658 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659 trap 'exit_status=$?
1660 # Save into config.log some information that might help in debugging.
1665 ## ---------------- ##
1666 ## Cache variables. ##
1667 ## ---------------- ##
1670 # The following way of writing the cache mishandles newlines in values,
1672 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673 eval ac_val=\$$ac_var
1677 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1681 _ | IFS | as_nl) ;; #(
1682 *) $as_unset $ac_var ;;
1687 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688 *${as_nl}ac_space=\ *)
1690 "s/'\''/'\''\\\\'\'''\''/g;
1691 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1694 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1707 for ac_var in $ac_subst_vars
1709 eval ac_val=\$$ac_var
1711 *\'\''*) ac_val
=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1713 echo "$ac_var='\''$ac_val'\''"
1717 if test -n "$ac_subst_files"; then
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1724 for ac_var
in $ac_subst_files
1726 eval ac_val
=\$
$ac_var
1728 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1730 echo "$ac_var='\''$ac_val'\''"
1735 if test -s confdefs.h; then
1745 test "$ac_signal" != 0 &&
1746 echo "$as_me: caught signal $ac_signal"
1747 echo "$as_me: exit $exit_status"
1749 rm -f core *.core core.conftest.* &&
1750 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1753 for ac_signal
in 1 2 13 15; do
1754 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest
* confdefs.h
1761 # Predefined preprocessor variables.
1763 cat >>confdefs.h
<<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1768 cat >>confdefs.h
<<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1773 cat >>confdefs.h
<<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1778 cat >>confdefs.h
<<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1783 cat >>confdefs.h
<<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791 set x
"$CONFIG_SITE"
1792 elif test "x$prefix" != xNONE
; then
1793 set x
"$prefix/share/config.site" "$prefix/etc/config.site"
1795 set x
"$ac_default_prefix/share/config.site" \
1796 "$ac_default_prefix/etc/config.site"
1801 if test -r "$ac_site_file"; then
1802 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803 echo "$as_me: loading site script $ac_site_file" >&6;}
1804 sed 's/^/| /' "$ac_site_file" >&5
1809 if test -r "$cache_file"; then
1810 # Some versions of bash will fail to source /dev/null (special
1811 # files actually), so we avoid doing that.
1812 if test -f "$cache_file"; then
1813 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814 echo "$as_me: loading cache $cache_file" >&6;}
1816 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
1817 *) .
"./$cache_file";;
1821 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822 echo "$as_me: creating cache $cache_file" >&6;}
1826 # Check that the precious variables saved in the cache have kept the same
1828 ac_cache_corrupted
=false
1829 for ac_var
in $ac_precious_vars; do
1830 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
1831 eval ac_new_set
=\
$ac_env_${ac_var}_set
1832 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
1833 eval ac_new_val
=\
$ac_env_${ac_var}_value
1834 case $ac_old_set,$ac_new_set in
1836 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838 ac_cache_corrupted
=: ;;
1840 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842 ac_cache_corrupted
=: ;;
1845 if test "x$ac_old_val" != "x$ac_new_val"; then
1846 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1849 echo "$as_me: former value: $ac_old_val" >&2;}
1850 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1851 echo "$as_me: current value: $ac_new_val" >&2;}
1852 ac_cache_corrupted
=:
1855 # Pass precious variables to config.status.
1856 if test "$ac_new_set" = set; then
1858 *\'*) ac_arg
=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859 *) ac_arg
=$ac_var=$ac_new_val ;;
1861 case " $ac_configure_args " in
1862 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1863 *) ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
1867 if $ac_cache_corrupted; then
1868 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872 { (exit 1); exit 1; }; }
1900 ac_cpp
='$CPP $CPPFLAGS'
1901 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
1907 LLVM_COPYRIGHT
="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1916 for ac_dir
in autoconf
"$srcdir"/autoconf
; do
1917 if test -f "$ac_dir/install-sh"; then
1919 ac_install_sh
="$ac_aux_dir/install-sh -c"
1921 elif test -f "$ac_dir/install.sh"; then
1923 ac_install_sh
="$ac_aux_dir/install.sh -c"
1925 elif test -f "$ac_dir/shtool"; then
1927 ac_install_sh
="$ac_aux_dir/shtool install -c"
1931 if test -z "$ac_aux_dir"; then
1932 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934 { (exit 1); exit 1; }; }
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1942 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1943 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1947 if test ${srcdir} != "." ; then
1948 if test -f ${srcdir}/include
/llvm
/Config
/config.h
; then
1949 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951 { (exit 1); exit 1; }; }
1957 if test -d ${srcdir}/projects
/llvm-gcc
; then
1958 subdirs
="$subdirs projects/llvm-gcc"
1962 if test -d ${srcdir}/projects
/test-suite
; then
1963 subdirs
="$subdirs projects/test-suite"
1967 if test -d ${srcdir}/projects
/llvm-test
; then
1968 subdirs
="$subdirs projects/llvm-test"
1972 if test -d ${srcdir}/projects
/poolalloc
; then
1973 subdirs
="$subdirs projects/poolalloc"
1977 if test -d ${srcdir}/projects
/llvm-poolalloc
; then
1978 subdirs
="$subdirs projects/llvm-poolalloc"
1982 for i
in `ls ${srcdir}/projects`
1984 if test -d ${srcdir}/projects
/${i} ; then
1986 sample
) subdirs
="$subdirs projects/sample"
1988 privbracket
) subdirs
="$subdirs projects/privbracket"
1990 llvm-stacker
) subdirs
="$subdirs projects/llvm-stacker"
1992 llvm-reopt
) subdirs
="$subdirs projects/llvm-reopt"
1994 llvm-java
) subdirs
="$subdirs projects/llvm-java"
1996 llvm-tv
) subdirs
="$subdirs projects/llvm-tv"
1998 safecode
) subdirs
="$subdirs projects/safecode"
2000 llvm-kernel
) subdirs
="$subdirs projects/llvm-kernel"
2008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2016 # Make sure we can run config.sub.
2017 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
2022 { echo "$as_me:$LINENO: checking build system type" >&5
2023 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024 if test "${ac_cv_build+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 ac_build_alias
=$build_alias
2028 test "x$ac_build_alias" = x
&&
2029 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2030 test "x$ac_build_alias" = x
&&
2031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
2034 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041 echo "${ECHO_T}$ac_cv_build" >&6; }
2042 case $ac_cv_build in
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045 echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
2049 ac_save_IFS
=$IFS; IFS
='-'
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2059 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2062 { echo "$as_me:$LINENO: checking host system type" >&5
2063 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_host+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 if test "x$host_alias" = x
; then
2068 ac_cv_host
=$ac_cv_build
2070 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078 echo "${ECHO_T}$ac_cv_host" >&6; }
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082 echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
2086 ac_save_IFS
=$IFS; IFS
='-'
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2096 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2099 { echo "$as_me:$LINENO: checking target system type" >&5
2100 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_target+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 if test "x$target_alias" = x
; then
2105 ac_cv_target
=$ac_cv_host
2107 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2114 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115 echo "${ECHO_T}$ac_cv_target" >&6; }
2116 case $ac_cv_target in
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119 echo "$as_me: error: invalid value of canonical target" >&2;}
2120 { (exit 1); exit 1; }; };;
2122 target
=$ac_cv_target
2123 ac_save_IFS
=$IFS; IFS
='-'
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2133 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2136 # The aliases save the names the user supplied, while $host etc.
2137 # will get canonicalized.
2138 test -n "$target_alias" &&
2139 test "$program_prefix$program_suffix$program_transform_name" = \
2141 program_prefix
=${target_alias}-
2143 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145 if test "${llvm_cv_os_type+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 llvm_cv_link_all_option
="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2152 llvm_cv_os_type
="AIX"
2153 llvm_cv_platform_type
="Unix" ;;
2155 llvm_cv_link_all_option
="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2157 llvm_cv_os_type
="IRIX"
2158 llvm_cv_platform_type
="Unix" ;;
2160 llvm_cv_link_all_option
="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2162 llvm_cv_os_type
="Cygwin"
2163 llvm_cv_platform_type
="Unix" ;;
2165 llvm_cv_link_all_option
="-Wl,-all_load"
2166 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2167 llvm_cv_os_type
="Darwin"
2168 llvm_cv_platform_type
="Unix" ;;
2170 llvm_cv_link_all_option
="-Wl,-all_load"
2171 llvm_cv_no_link_all_option
="-Wl,-noall_load"
2172 llvm_cv_os_type
="Minix"
2173 llvm_cv_platform_type
="Unix" ;;
2175 llvm_cv_link_all_option
="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2177 llvm_cv_os_type
="FreeBSD"
2178 llvm_cv_platform_type
="Unix" ;;
2180 llvm_cv_link_all_option
="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2182 llvm_cv_os_type
="OpenBSD"
2183 llvm_cv_platform_type
="Unix" ;;
2185 llvm_cv_link_all_option
="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2187 llvm_cv_os_type
="NetBSD"
2188 llvm_cv_platform_type
="Unix" ;;
2190 llvm_cv_link_all_option
="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2192 llvm_cv_os_type
="DragonFly"
2193 llvm_cv_platform_type
="Unix" ;;
2195 llvm_cv_link_all_option
="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2197 llvm_cv_os_type
="HP-UX"
2198 llvm_cv_platform_type
="Unix" ;;
2200 llvm_cv_link_all_option
="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2202 llvm_cv_os_type
="Interix"
2203 llvm_cv_platform_type
="Unix" ;;
2205 llvm_cv_link_all_option
="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2207 llvm_cv_os_type
="Linux"
2208 llvm_cv_platform_type
="Unix" ;;
2210 llvm_cv_link_all_option
="-Wl,-z,allextract"
2211 llvm_cv_no_link_all_option
="-Wl,-z,defaultextract"
2212 llvm_cv_os_type
="SunOS"
2213 llvm_cv_platform_type
="Unix" ;;
2215 llvm_cv_link_all_option
="-Wl,-z,allextract"
2216 llvm_cv_link_all_option
="-Wl,-z,defaultextract"
2217 llvm_cv_os_type
="AuroraUX"
2218 llvm_cv_platform_type
="Unix" ;;
2220 llvm_cv_link_all_option
="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2222 llvm_cv_os_type
="Win32"
2223 llvm_cv_platform_type
="Win32" ;;
2225 llvm_cv_link_all_option
="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2227 llvm_cv_os_type
="MingW"
2228 llvm_cv_platform_type
="Win32" ;;
2230 llvm_cv_link_all_option
="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2232 llvm_cv_os_type
="Haiku"
2233 llvm_cv_platform_type
="Unix" ;;
2235 llvm_cv_link_all_option
="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2237 llvm_cv_os_type
="Freestanding"
2238 llvm_cv_platform_type
="Unix" ;;
2240 llvm_cv_link_all_option
="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option
="-Wl,--no-whole-archive"
2242 llvm_cv_os_type
="Freestanding"
2243 llvm_cv_platform_type
="Unix" ;;
2245 llvm_cv_link_all_option
=""
2246 llvm_cv_no_link_all_option
=""
2247 llvm_cv_os_type
="Unknown"
2248 llvm_cv_platform_type
="Unknown" ;;
2251 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2254 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256 if test "${llvm_cv_target_os_type+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 llvm_cv_target_os_type
="AIX" ;;
2263 llvm_cv_target_os_type
="IRIX" ;;
2265 llvm_cv_target_os_type
="Cygwin" ;;
2267 llvm_cv_target_os_type
="Darwin" ;;
2269 llvm_cv_target_os_type
="Minix" ;;
2271 llvm_cv_target_os_type
="FreeBSD" ;;
2273 llvm_cv_target_os_type
="OpenBSD" ;;
2275 llvm_cv_target_os_type
="NetBSD" ;;
2277 llvm_cv_target_os_type
="DragonFly" ;;
2279 llvm_cv_target_os_type
="HP-UX" ;;
2281 llvm_cv_target_os_type
="Interix" ;;
2283 llvm_cv_target_os_type
="Linux" ;;
2285 llvm_cv_target_os_type
="SunOS" ;;
2287 llvm_cv_target_os_type
="AuroraUX" ;;
2289 llvm_cv_target_os_type
="Win32" ;;
2291 llvm_cv_target_os_type
="MingW" ;;
2293 llvm_cv_target_os_type
="Haiku" ;;
2295 llvm_cv_target_os_type
="Freestanding" ;;
2297 llvm_cv_target_os_type
="Unknown" ;;
2300 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2303 if test "$llvm_cv_os_type" = "Unknown" ; then
2304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306 { (exit 1); exit 1; }; }
2311 HOST_OS
=$llvm_cv_os_type
2313 TARGET_OS
=$llvm_cv_target_os_type
2316 LINKALL
=$llvm_cv_link_all_option
2318 NOLINKALL
=$llvm_cv_no_link_all_option
2321 case $llvm_cv_platform_type in
2324 cat >>confdefs.h
<<\_ACEOF
2325 #define LLVM_ON_UNIX 1
2335 cat >>confdefs.h
<<\_ACEOF
2336 #define LLVM_ON_WIN32 1
2346 { echo "$as_me:$LINENO: checking target architecture" >&5
2347 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348 if test "${llvm_cv_target_arch+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 i?
86-*) llvm_cv_target_arch
="x86" ;;
2353 amd64-
* | x86_64-
*) llvm_cv_target_arch
="x86_64" ;;
2354 sparc
*-*) llvm_cv_target_arch
="Sparc" ;;
2355 powerpc
*-*) llvm_cv_target_arch
="PowerPC" ;;
2356 alpha
*-*) llvm_cv_target_arch
="Alpha" ;;
2357 arm
*-*) llvm_cv_target_arch
="ARM" ;;
2358 mips-
*) llvm_cv_target_arch
="Mips" ;;
2359 pic16-
*) llvm_cv_target_arch
="PIC16" ;;
2360 xcore-
*) llvm_cv_target_arch
="XCore" ;;
2361 msp430-
*) llvm_cv_target_arch
="MSP430" ;;
2362 s390x-
*) llvm_cv_target_arch
="SystemZ" ;;
2363 bfin-
*) llvm_cv_target_arch
="Blackfin" ;;
2364 mblaze-
*) llvm_cv_target_arch
="MBlaze" ;;
2365 ptx-
*) llvm_cv_target_arch
="PTX" ;;
2366 *) llvm_cv_target_arch
="Unknown" ;;
2369 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2370 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2372 if test "$llvm_cv_target_arch" = "Unknown" ; then
2373 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2374 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2377 # Determine the LLVM native architecture for the target
2378 case "$llvm_cv_target_arch" in
2379 x86
) LLVM_NATIVE_ARCH
="X86" ;;
2380 x86_64
) LLVM_NATIVE_ARCH
="X86" ;;
2381 *) LLVM_NATIVE_ARCH
="$llvm_cv_target_arch" ;;
2384 ARCH
=$llvm_cv_target_arch
2388 ac_cpp
='$CPP $CPPFLAGS'
2389 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2390 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2391 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2392 if test -n "$ac_tool_prefix"; then
2393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2394 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2397 if test "${ac_cv_prog_CC+set}" = set; then
2398 echo $ECHO_N "(cached) $ECHO_C" >&6
2400 if test -n "$CC"; then
2401 ac_cv_prog_CC
="$CC" # Let the user override the test.
2403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2407 test -z "$as_dir" && as_dir
=.
2408 for ac_exec_ext
in '' $ac_executable_extensions; do
2409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2410 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2421 if test -n "$CC"; then
2422 { echo "$as_me:$LINENO: result: $CC" >&5
2423 echo "${ECHO_T}$CC" >&6; }
2425 { echo "$as_me:$LINENO: result: no" >&5
2426 echo "${ECHO_T}no" >&6; }
2431 if test -z "$ac_cv_prog_CC"; then
2433 # Extract the first word of "gcc", so it can be a program name with args.
2434 set dummy gcc
; ac_word
=$2
2435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2438 echo $ECHO_N "(cached) $ECHO_C" >&6
2440 if test -n "$ac_ct_CC"; then
2441 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2447 test -z "$as_dir" && as_dir
=.
2448 for ac_exec_ext
in '' $ac_executable_extensions; do
2449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2450 ac_cv_prog_ac_ct_CC
="gcc"
2451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2461 if test -n "$ac_ct_CC"; then
2462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2463 echo "${ECHO_T}$ac_ct_CC" >&6; }
2465 { echo "$as_me:$LINENO: result: no" >&5
2466 echo "${ECHO_T}no" >&6; }
2469 if test "x$ac_ct_CC" = x
; then
2472 case $cross_compiling:$ac_tool_warned in
2474 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2475 whose name does not start with the host triplet. If you think this
2476 configuration is useful to you, please write to autoconf@gnu.org." >&5
2477 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2478 whose name does not start with the host triplet. If you think this
2479 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2480 ac_tool_warned
=yes ;;
2488 if test -z "$CC"; then
2489 if test -n "$ac_tool_prefix"; then
2490 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2491 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2494 if test "${ac_cv_prog_CC+set}" = set; then
2495 echo $ECHO_N "(cached) $ECHO_C" >&6
2497 if test -n "$CC"; then
2498 ac_cv_prog_CC
="$CC" # Let the user override the test.
2500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2504 test -z "$as_dir" && as_dir
=.
2505 for ac_exec_ext
in '' $ac_executable_extensions; do
2506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2507 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2518 if test -n "$CC"; then
2519 { echo "$as_me:$LINENO: result: $CC" >&5
2520 echo "${ECHO_T}$CC" >&6; }
2522 { echo "$as_me:$LINENO: result: no" >&5
2523 echo "${ECHO_T}no" >&6; }
2529 if test -z "$CC"; then
2530 # Extract the first word of "cc", so it can be a program name with args.
2531 set dummy cc
; ac_word
=$2
2532 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2533 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2534 if test "${ac_cv_prog_CC+set}" = set; then
2535 echo $ECHO_N "(cached) $ECHO_C" >&6
2537 if test -n "$CC"; then
2538 ac_cv_prog_CC
="$CC" # Let the user override the test.
2541 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2545 test -z "$as_dir" && as_dir
=.
2546 for ac_exec_ext
in '' $ac_executable_extensions; do
2547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2548 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2549 ac_prog_rejected
=yes
2553 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2560 if test $ac_prog_rejected = yes; then
2561 # We found a bogon in the path, so make sure we never use it.
2562 set dummy
$ac_cv_prog_CC
2564 if test $# != 0; then
2565 # We chose a different compiler from the bogus one.
2566 # However, it has the same basename, so the bogon will be chosen
2567 # first if we set CC to just the basename; use the full file name.
2569 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2575 if test -n "$CC"; then
2576 { echo "$as_me:$LINENO: result: $CC" >&5
2577 echo "${ECHO_T}$CC" >&6; }
2579 { echo "$as_me:$LINENO: result: no" >&5
2580 echo "${ECHO_T}no" >&6; }
2585 if test -z "$CC"; then
2586 if test -n "$ac_tool_prefix"; then
2587 for ac_prog
in cl.exe
2589 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2590 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2593 if test "${ac_cv_prog_CC+set}" = set; then
2594 echo $ECHO_N "(cached) $ECHO_C" >&6
2596 if test -n "$CC"; then
2597 ac_cv_prog_CC
="$CC" # Let the user override the test.
2599 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2603 test -z "$as_dir" && as_dir
=.
2604 for ac_exec_ext
in '' $ac_executable_extensions; do
2605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2606 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2617 if test -n "$CC"; then
2618 { echo "$as_me:$LINENO: result: $CC" >&5
2619 echo "${ECHO_T}$CC" >&6; }
2621 { echo "$as_me:$LINENO: result: no" >&5
2622 echo "${ECHO_T}no" >&6; }
2626 test -n "$CC" && break
2629 if test -z "$CC"; then
2631 for ac_prog
in cl.exe
2633 # Extract the first word of "$ac_prog", so it can be a program name with args.
2634 set dummy
$ac_prog; ac_word
=$2
2635 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2638 echo $ECHO_N "(cached) $ECHO_C" >&6
2640 if test -n "$ac_ct_CC"; then
2641 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2643 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2647 test -z "$as_dir" && as_dir
=.
2648 for ac_exec_ext
in '' $ac_executable_extensions; do
2649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2650 ac_cv_prog_ac_ct_CC
="$ac_prog"
2651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2661 if test -n "$ac_ct_CC"; then
2662 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2663 echo "${ECHO_T}$ac_ct_CC" >&6; }
2665 { echo "$as_me:$LINENO: result: no" >&5
2666 echo "${ECHO_T}no" >&6; }
2670 test -n "$ac_ct_CC" && break
2673 if test "x$ac_ct_CC" = x
; then
2676 case $cross_compiling:$ac_tool_warned in
2678 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2679 whose name does not start with the host triplet. If you think this
2680 configuration is useful to you, please write to autoconf@gnu.org." >&5
2681 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2682 whose name does not start with the host triplet. If you think this
2683 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2684 ac_tool_warned
=yes ;;
2693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2694 See \`config.log' for more details." >&5
2695 echo "$as_me: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&2;}
2697 { (exit 1); exit 1; }; }
2699 # Provide some information about the compiler.
2700 echo "$as_me:$LINENO: checking for C compiler version" >&5
2701 ac_compiler
=`set X $ac_compile; echo $2`
2702 { (ac_try
="$ac_compiler --version >&5"
2704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2708 (eval "$ac_compiler --version >&5") 2>&5
2710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711 (exit $ac_status); }
2712 { (ac_try="$ac_compiler -v >&5"
2714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2715 *) ac_try_echo
=$ac_try;;
2717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2718 (eval "$ac_compiler -v >&5") 2>&5
2720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2721 (exit $ac_status); }
2722 { (ac_try
="$ac_compiler -V >&5"
2724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2725 *) ac_try_echo=$ac_try;;
2727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2728 (eval "$ac_compiler -V >&5") 2>&5
2730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2731 (exit $ac_status); }
2733 cat >conftest.$ac_ext <<_ACEOF
2736 cat confdefs.h >>conftest.$ac_ext
2737 cat >>conftest.$ac_ext <<_ACEOF
2738 /* end confdefs.h. */
2748 ac_clean_files_save=$ac_clean_files
2749 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2750 # Try to create an executable without -o first, disregard a.out.
2751 # It will help us diagnose broken compilers, and finding out an intuition
2753 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2754 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2755 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
2757 # List of possible output files, starting from the most likely.
2758 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
2759 # only as a last resort. b.out is created by i960 compilers.
2760 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
2762 # The IRIX 6 linker writes into existing files which may not be
2763 # executable, retaining their permissions. Remove them first so a
2764 # subsequent execution test works.
2766 for ac_file in $ac_files
2769 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2770 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2775 if { (ac_try="$ac_link_default"
2777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2778 *) ac_try_echo=$ac_try;;
2780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2781 (eval "$ac_link_default") 2>&5
2783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2784 (exit $ac_status); }; then
2785 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2786 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2787 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2788 # so that the user can short-circuit this test for compilers unknown to
2790 for ac_file
in $ac_files
2792 test -f "$ac_file" ||
continue
2794 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
2797 # We found the default executable, but exeext='' is most
2801 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
2803 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2805 # We set ac_cv_exeext here because the later test for it is not
2806 # safe: cross compilers may not add the suffix if given an `-o'
2807 # argument, so we may need to know it at that point already.
2808 # Even if this section looks crufty: it has the advantage of
2815 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
2818 echo "$as_me: failed program was:" >&5
2819 sed 's/^/| /' conftest.
$ac_ext >&5
2821 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2822 See \`config.log' for more details." >&5
2823 echo "$as_me: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&2;}
2825 { (exit 77); exit 77; }; }
2828 ac_exeext
=$ac_cv_exeext
2829 { echo "$as_me:$LINENO: result: $ac_file" >&5
2830 echo "${ECHO_T}$ac_file" >&6; }
2832 # Check that the compiler produces executables we can run. If not, either
2833 # the compiler is broken, or we cross compile.
2834 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2835 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2836 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2837 # If not cross compiling, check that we can run a simple program.
2838 if test "$cross_compiling" != yes; then
2839 if { ac_try
='./$ac_file'
2840 { (case "(($ac_try" in
2841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2842 *) ac_try_echo=$ac_try;;
2844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2845 (eval "$ac_try") 2>&5
2847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2848 (exit $ac_status); }; }; then
2851 if test "$cross_compiling" = maybe; then
2854 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2855 If you meant to cross compile, use \`--host'.
2856 See \`config.log' for more details.
" >&5
2857 echo "$as_me: error
: cannot run C compiled programs.
2858 If you meant to cross compile
, use \
`--host'.
2859 See \`config.log
' for more details." >&2;}
2860 { (exit 1); exit 1; }; }
2864 { echo "$as_me:$LINENO: result: yes" >&5
2865 echo "${ECHO_T}yes" >&6; }
2867 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2868 ac_clean_files=$ac_clean_files_save
2869 # Check that the compiler produces executables we can run. If not, either
2870 # the compiler is broken, or we cross compile.
2871 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2872 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2873 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2874 echo "${ECHO_T}$cross_compiling" >&6; }
2876 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2877 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2878 if { (ac_try="$ac_link"
2880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2881 *) ac_try_echo=$ac_try;;
2883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2884 (eval "$ac_link") 2>&5
2886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2887 (exit $ac_status); }; then
2888 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
2889 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
2890 # work properly (i.e., refer to `conftest.exe
'), while it won't with
2892 for ac_file
in conftest.exe conftest conftest.
*; do
2893 test -f "$ac_file" ||
continue
2895 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
2896 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
2902 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2903 See \`config.log' for more details." >&5
2904 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&2;}
2906 { (exit 1); exit 1; }; }
2909 rm -f conftest
$ac_cv_exeext
2910 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2911 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2913 rm -f conftest.
$ac_ext
2914 EXEEXT
=$ac_cv_exeext
2916 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2917 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2918 if test "${ac_cv_objext+set}" = set; then
2919 echo $ECHO_N "(cached) $ECHO_C" >&6
2921 cat >conftest.
$ac_ext <<_ACEOF
2924 cat confdefs.h
>>conftest.
$ac_ext
2925 cat >>conftest.
$ac_ext <<_ACEOF
2926 /* end confdefs.h. */
2936 rm -f conftest.o conftest.obj
2937 if { (ac_try
="$ac_compile"
2939 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2940 *) ac_try_echo=$ac_try;;
2942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2943 (eval "$ac_compile") 2>&5
2945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946 (exit $ac_status); }; then
2947 for ac_file in conftest.o conftest.obj conftest.*; do
2948 test -f "$ac_file" || continue;
2950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2951 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2956 echo "$as_me: failed program was:" >&5
2957 sed 's/^/| /' conftest.$ac_ext >&5
2959 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2960 See \`config.log
' for more details." >&5
2961 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details.
" >&2;}
2963 { (exit 1); exit 1; }; }
2966 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2968 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
2969 echo "${ECHO_T}$ac_cv_objext" >&6; }
2970 OBJEXT=$ac_cv_objext
2972 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
2973 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
2974 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2975 echo $ECHO_N "(cached
) $ECHO_C" >&6
2977 cat >conftest.$ac_ext <<_ACEOF
2980 cat confdefs.h >>conftest.$ac_ext
2981 cat >>conftest.$ac_ext <<_ACEOF
2982 /* end confdefs.h. */
2995 rm -f conftest.$ac_objext
2996 if { (ac_try="$ac_compile"
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compile") 2>conftest.er1
3004 grep -v '^ *+' conftest.er1 >conftest.err
3006 cat conftest.err >&5
3007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3008 (exit $ac_status); } &&
3009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3010 { (case "(($ac_try" in
3011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3012 *) ac_try_echo=$ac_try;;
3014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3015 (eval "$ac_try") 2>&5
3017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3018 (exit $ac_status); }; } &&
3019 { ac_try='test -s conftest.$ac_objext'
3020 { (case "(($ac_try" in
3021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3022 *) ac_try_echo=$ac_try;;
3024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3025 (eval "$ac_try") 2>&5
3027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3028 (exit $ac_status); }; }; then
3031 echo "$as_me: failed program was
:" >&5
3032 sed 's/^/| /' conftest.$ac_ext >&5
3037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3038 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3041 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3042 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3043 GCC=`test $ac_compiler_gnu = yes && echo yes`
3044 ac_test_CFLAGS=${CFLAGS+set}
3045 ac_save_CFLAGS=$CFLAGS
3046 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3047 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3048 if test "${ac_cv_prog_cc_g+set}" = set; then
3049 echo $ECHO_N "(cached
) $ECHO_C" >&6
3051 ac_save_c_werror_flag=$ac_c_werror_flag
3052 ac_c_werror_flag=yes
3055 cat >conftest.$ac_ext <<_ACEOF
3058 cat confdefs.h >>conftest.$ac_ext
3059 cat >>conftest.$ac_ext <<_ACEOF
3060 /* end confdefs.h. */
3070 rm -f conftest.$ac_objext
3071 if { (ac_try="$ac_compile"
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_compile") 2>conftest.er1
3079 grep -v '^ *+' conftest.er1 >conftest.err
3081 cat conftest.err >&5
3082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3083 (exit $ac_status); } &&
3084 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3085 { (case "(($ac_try" in
3086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3087 *) ac_try_echo=$ac_try;;
3089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3090 (eval "$ac_try") 2>&5
3092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (case "(($ac_try" in
3096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3097 *) ac_try_echo=$ac_try;;
3099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3100 (eval "$ac_try") 2>&5
3102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3103 (exit $ac_status); }; }; then
3106 echo "$as_me: failed program was
:" >&5
3107 sed 's/^/| /' conftest.$ac_ext >&5
3110 cat >conftest.$ac_ext <<_ACEOF
3113 cat confdefs.h >>conftest.$ac_ext
3114 cat >>conftest.$ac_ext <<_ACEOF
3115 /* end confdefs.h. */
3125 rm -f conftest.$ac_objext
3126 if { (ac_try="$ac_compile"
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_compile") 2>conftest.er1
3134 grep -v '^ *+' conftest.er1 >conftest.err
3136 cat conftest.err >&5
3137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3138 (exit $ac_status); } &&
3139 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3140 { (case "(($ac_try" in
3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3142 *) ac_try_echo=$ac_try;;
3144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3145 (eval "$ac_try") 2>&5
3147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3148 (exit $ac_status); }; } &&
3149 { ac_try='test -s conftest.$ac_objext'
3150 { (case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_try") 2>&5
3157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3158 (exit $ac_status); }; }; then
3161 echo "$as_me: failed program was
:" >&5
3162 sed 's/^/| /' conftest.$ac_ext >&5
3164 ac_c_werror_flag=$ac_save_c_werror_flag
3166 cat >conftest.$ac_ext <<_ACEOF
3169 cat confdefs.h >>conftest.$ac_ext
3170 cat >>conftest.$ac_ext <<_ACEOF
3171 /* end confdefs.h. */
3181 rm -f conftest.$ac_objext
3182 if { (ac_try="$ac_compile"
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_compile") 2>conftest.er1
3190 grep -v '^ *+' conftest.er1 >conftest.err
3192 cat conftest.err >&5
3193 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3194 (exit $ac_status); } &&
3195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3196 { (case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_try") 2>&5
3203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3204 (exit $ac_status); }; } &&
3205 { ac_try='test -s conftest.$ac_objext'
3206 { (case "(($ac_try" in
3207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3208 *) ac_try_echo=$ac_try;;
3210 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3211 (eval "$ac_try") 2>&5
3213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3214 (exit $ac_status); }; }; then
3217 echo "$as_me: failed program was
:" >&5
3218 sed 's/^/| /' conftest.$ac_ext >&5
3223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3230 ac_c_werror_flag=$ac_save_c_werror_flag
3232 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3233 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3234 if test "$ac_test_CFLAGS" = set; then
3235 CFLAGS=$ac_save_CFLAGS
3236 elif test $ac_cv_prog_cc_g = yes; then
3237 if test "$GCC" = yes; then
3243 if test "$GCC" = yes; then
3249 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3250 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3251 if test "${ac_cv_prog_cc_c89+set}" = set; then
3252 echo $ECHO_N "(cached
) $ECHO_C" >&6
3254 ac_cv_prog_cc_c89=no
3256 cat >conftest.$ac_ext <<_ACEOF
3259 cat confdefs.h >>conftest.$ac_ext
3260 cat >>conftest.$ac_ext <<_ACEOF
3261 /* end confdefs.h. */
3264 #include <sys/types.h>
3265 #include <sys/stat.h>
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3280 s = g (p, va_arg (v,int));
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3330 (exit $ac_status); } &&
3331 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3332 { (case "(($ac_try" in
3333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3334 *) ac_try_echo=$ac_try;;
3336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3337 (eval "$ac_try") 2>&5
3339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3340 (exit $ac_status); }; } &&
3341 { ac_try='test -s conftest.$ac_objext'
3342 { (case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3347 (eval "$ac_try") 2>&5
3349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3350 (exit $ac_status); }; }; then
3351 ac_cv_prog_cc_c89=$ac_arg
3353 echo "$as_me: failed program was
:" >&5
3354 sed 's/^/| /' conftest.$ac_ext >&5
3359 rm -f core conftest.err conftest.$ac_objext
3360 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3362 rm -f conftest.$ac_ext
3367 case "x
$ac_cv_prog_cc_c89" in
3369 { echo "$as_me:$LINENO: result
: none needed
" >&5
3370 echo "${ECHO_T}none needed
" >&6; } ;;
3372 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3373 echo "${ECHO_T}unsupported
" >&6; } ;;
3375 CC="$CC $ac_cv_prog_cc_c89"
3376 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3382 ac_cpp='$CPP $CPPFLAGS'
3383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3389 ac_cpp='$CPP $CPPFLAGS'
3390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3393 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3394 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3395 # On Suns, sometimes $CPP names a directory.
3396 if test -n "$CPP" && test -d "$CPP"; then
3399 if test -z "$CPP"; then
3400 if test "${ac_cv_prog_CPP+set}" = set; then
3401 echo $ECHO_N "(cached
) $ECHO_C" >&6
3403 # Double quotes because CPP needs to be expanded
3404 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3407 for ac_c_preproc_warn_flag in '' yes
3409 # Use a header file that comes with gcc, so configuring glibc
3410 # with a fresh cross-compiler works.
3411 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3412 # <limits.h> exists even on freestanding compilers.
3413 # On the NeXT, cc -E runs the code through the compiler's parser,
3414 # not just through cpp. "Syntax error
" is here to catch this case.
3415 cat >conftest.$ac_ext <<_ACEOF
3418 cat confdefs.h >>conftest.$ac_ext
3419 cat >>conftest.$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3422 # include <limits.h>
3424 # include <assert.h>
3428 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3431 *) ac_try_echo=$ac_try;;
3433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3434 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3436 grep -v '^ *+' conftest.er1 >conftest.err
3438 cat conftest.err >&5
3439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3440 (exit $ac_status); } >/dev/null; then
3441 if test -s conftest.err; then
3442 ac_cpp_err=$ac_c_preproc_warn_flag
3443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3450 if test -z "$ac_cpp_err"; then
3453 echo "$as_me: failed program was
:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3456 # Broken: fails on valid input.
3460 rm -f conftest.err conftest.$ac_ext
3462 # OK, works on sane cases. Now check whether nonexistent headers
3463 # can be detected and how.
3464 cat >conftest.$ac_ext <<_ACEOF
3467 cat confdefs.h >>conftest.$ac_ext
3468 cat >>conftest.$ac_ext <<_ACEOF
3469 /* end confdefs.h. */
3470 #include <ac_nonexistent.h>
3472 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3478 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3480 grep -v '^ *+' conftest.er1 >conftest.err
3482 cat conftest.err >&5
3483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3484 (exit $ac_status); } >/dev/null; then
3485 if test -s conftest.err; then
3486 ac_cpp_err=$ac_c_preproc_warn_flag
3487 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3494 if test -z "$ac_cpp_err"; then
3495 # Broken: success on invalid input.
3498 echo "$as_me: failed program was
:" >&5
3499 sed 's/^/| /' conftest.$ac_ext >&5
3501 # Passes both tests.
3506 rm -f conftest.err conftest.$ac_ext
3509 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3510 rm -f conftest.err conftest.$ac_ext
3511 if $ac_preproc_ok; then
3523 { echo "$as_me:$LINENO: result
: $CPP" >&5
3524 echo "${ECHO_T}$CPP" >&6; }
3526 for ac_c_preproc_warn_flag in '' yes
3528 # Use a header file that comes with gcc, so configuring glibc
3529 # with a fresh cross-compiler works.
3530 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3531 # <limits.h> exists even on freestanding compilers.
3532 # On the NeXT, cc -E runs the code through the compiler's parser,
3533 # not just through cpp. "Syntax error
" is here to catch this case.
3534 cat >conftest.$ac_ext <<_ACEOF
3537 cat confdefs.h >>conftest.$ac_ext
3538 cat >>conftest.$ac_ext <<_ACEOF
3539 /* end confdefs.h. */
3541 # include <limits.h>
3543 # include <assert.h>
3547 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3559 (exit $ac_status); } >/dev/null; then
3560 if test -s conftest.err; then
3561 ac_cpp_err=$ac_c_preproc_warn_flag
3562 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3569 if test -z "$ac_cpp_err"; then
3572 echo "$as_me: failed program was
:" >&5
3573 sed 's/^/| /' conftest.$ac_ext >&5
3575 # Broken: fails on valid input.
3579 rm -f conftest.err conftest.$ac_ext
3581 # OK, works on sane cases. Now check whether nonexistent headers
3582 # can be detected and how.
3583 cat >conftest.$ac_ext <<_ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589 #include <ac_nonexistent.h>
3591 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3596 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3599 grep -v '^ *+' conftest.er1 >conftest.err
3601 cat conftest.err >&5
3602 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3603 (exit $ac_status); } >/dev/null; then
3604 if test -s conftest.err; then
3605 ac_cpp_err=$ac_c_preproc_warn_flag
3606 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3613 if test -z "$ac_cpp_err"; then
3614 # Broken: success on invalid input.
3617 echo "$as_me: failed program was
:" >&5
3618 sed 's/^/| /' conftest.$ac_ext >&5
3620 # Passes both tests.
3625 rm -f conftest.err conftest.$ac_ext
3628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3629 rm -f conftest.err conftest.$ac_ext
3630 if $ac_preproc_ok; then
3633 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3634 See \
`config.log' for more details." >&5
3635 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log
' for more details." >&2;}
3637 { (exit 1); exit 1; }; }
3641 ac_cpp='$CPP $CPPFLAGS'
3642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3643 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3648 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3649 if test "${ac_cv_path_GREP+set}" = set; then
3650 echo $ECHO_N "(cached) $ECHO_C" >&6
3652 # Extract the first word of "grep ggrep" to use in msg output
3653 if test -z "$GREP"; then
3654 set dummy grep ggrep; ac_prog_name=$2
3655 if test "${ac_cv_path_GREP+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3658 ac_path_GREP_found=false
3659 # Loop through the user's path and
test for each of PROGNAME-LIST
3660 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3661 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3664 test -z "$as_dir" && as_dir
=.
3665 for ac_prog
in grep ggrep
; do
3666 for ac_exec_ext
in '' $ac_executable_extensions; do
3667 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3668 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } ||
continue
3669 # Check for GNU ac_path_GREP and select it if it is found.
3670 # Check for GNU $ac_path_GREP
3671 case `"$ac_path_GREP" --version 2>&1` in
3673 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3676 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3679 cat "conftest.in" "conftest.in" >"conftest.tmp"
3680 mv "conftest.tmp" "conftest.in"
3681 cp "conftest.in" "conftest.nl"
3682 echo 'GREP' >> "conftest.nl"
3683 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3684 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3685 ac_count
=`expr $ac_count + 1`
3686 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3687 # Best one so far, save it but keep looking for a better one
3688 ac_cv_path_GREP
="$ac_path_GREP"
3689 ac_path_GREP_max
=$ac_count
3691 # 10*(2^10) chars as input seems more than enough
3692 test $ac_count -gt 10 && break
3694 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3698 $ac_path_GREP_found && break 3
3708 GREP
="$ac_cv_path_GREP"
3709 if test -z "$GREP"; then
3710 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3711 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3712 { (exit 1); exit 1; }; }
3716 ac_cv_path_GREP
=$GREP
3721 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3722 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3723 GREP
="$ac_cv_path_GREP"
3726 { echo "$as_me:$LINENO: checking for egrep" >&5
3727 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3728 if test "${ac_cv_path_EGREP+set}" = set; then
3729 echo $ECHO_N "(cached) $ECHO_C" >&6
3731 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
3732 then ac_cv_path_EGREP
="$GREP -E"
3734 # Extract the first word of "egrep" to use in msg output
3735 if test -z "$EGREP"; then
3736 set dummy
egrep; ac_prog_name
=$2
3737 if test "${ac_cv_path_EGREP+set}" = set; then
3738 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 ac_path_EGREP_found
=false
3741 # Loop through the user's path and test for each of PROGNAME-LIST
3742 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3743 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3746 test -z "$as_dir" && as_dir
=.
3747 for ac_prog
in egrep; do
3748 for ac_exec_ext
in '' $ac_executable_extensions; do
3749 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
3750 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } ||
continue
3751 # Check for GNU ac_path_EGREP and select it if it is found.
3752 # Check for GNU $ac_path_EGREP
3753 case `"$ac_path_EGREP" --version 2>&1` in
3755 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
3758 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3761 cat "conftest.in" "conftest.in" >"conftest.tmp"
3762 mv "conftest.tmp" "conftest.in"
3763 cp "conftest.in" "conftest.nl"
3764 echo 'EGREP' >> "conftest.nl"
3765 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3766 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3767 ac_count
=`expr $ac_count + 1`
3768 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3769 # Best one so far, save it but keep looking for a better one
3770 ac_cv_path_EGREP
="$ac_path_EGREP"
3771 ac_path_EGREP_max
=$ac_count
3773 # 10*(2^10) chars as input seems more than enough
3774 test $ac_count -gt 10 && break
3776 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
3780 $ac_path_EGREP_found && break 3
3790 EGREP
="$ac_cv_path_EGREP"
3791 if test -z "$EGREP"; then
3792 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3793 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3794 { (exit 1); exit 1; }; }
3798 ac_cv_path_EGREP
=$EGREP
3804 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3805 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3806 EGREP
="$ac_cv_path_EGREP"
3809 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3810 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3811 if test "${ac_cv_header_stdc+set}" = set; then
3812 echo $ECHO_N "(cached) $ECHO_C" >&6
3814 cat >conftest.
$ac_ext <<_ACEOF
3817 cat confdefs.h
>>conftest.
$ac_ext
3818 cat >>conftest.
$ac_ext <<_ACEOF
3819 /* end confdefs.h. */
3833 rm -f conftest.
$ac_objext
3834 if { (ac_try
="$ac_compile"
3836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_compile") 2>conftest.er1
3842 grep -v '^ *+' conftest.er1 >conftest.err
3844 cat conftest.err >&5
3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3846 (exit $ac_status); } &&
3847 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3848 { (case "(($ac_try" in
3849 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3850 *) ac_try_echo
=$ac_try;;
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_try") 2>&5
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; } &&
3857 { ac_try
='test -s conftest.$ac_objext'
3858 { (case "(($ac_try" in
3859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_try") 2>&5
3865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3866 (exit $ac_status); }; }; then
3867 ac_cv_header_stdc=yes
3869 echo "$as_me: failed program was:" >&5
3870 sed 's/^/| /' conftest.$ac_ext >&5
3872 ac_cv_header_stdc=no
3875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3877 if test $ac_cv_header_stdc = yes; then
3878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3879 cat >conftest.$ac_ext <<_ACEOF
3882 cat confdefs.h >>conftest.$ac_ext
3883 cat >>conftest.$ac_ext <<_ACEOF
3884 /* end confdefs.h. */
3888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3889 $EGREP "memchr" >/dev/null 2>&1; then
3892 ac_cv_header_stdc=no
3898 if test $ac_cv_header_stdc = yes; then
3899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3910 $EGREP "free" >/dev/null 2>&1; then
3913 ac_cv_header_stdc=no
3919 if test $ac_cv_header_stdc = yes; then
3920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3921 if test "$cross_compiling" = yes; then
3924 cat >conftest.$ac_ext <<_ACEOF
3927 cat confdefs.h >>conftest.$ac_ext
3928 cat >>conftest.$ac_ext <<_ACEOF
3929 /* end confdefs.h. */
3932 #if ((' ' & 0x0FF) == 0x020)
3933 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3934 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3936 # define ISLOWER(c) \
3937 (('a' <= (c) && (c) <= 'i') \
3938 || ('j' <= (c) && (c) <= 'r') \
3939 || ('s' <= (c) && (c) <= 'z'))
3940 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3943 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3948 for (i = 0; i < 256; i++)
3949 if (XOR (islower (i), ISLOWER (i))
3950 || toupper (i) != TOUPPER (i))
3955 rm -f conftest$ac_exeext
3956 if { (ac_try="$ac_link"
3958 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3959 *) ac_try_echo
=$ac_try;;
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_link") 2>&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
3966 { (case "(($ac_try" in
3967 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3971 (eval "$ac_try") 2>&5
3973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3974 (exit $ac_status); }; }; then
3977 echo "$as_me: program exited with status $ac_status" >&5
3978 echo "$as_me: failed program was:" >&5
3979 sed 's/^/| /' conftest.$ac_ext >&5
3982 ac_cv_header_stdc=no
3984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3990 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3991 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3992 if test $ac_cv_header_stdc = yes; then
3994 cat >>confdefs.h <<\_ACEOF
3995 #define STDC_HEADERS 1
4000 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4010 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4011 inttypes.h stdint.h unistd.h
4013 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4017 echo $ECHO_N "(cached) $ECHO_C" >&6
4019 cat >conftest.$ac_ext <<_ACEOF
4022 cat confdefs.h >>conftest.$ac_ext
4023 cat >>conftest.$ac_ext <<_ACEOF
4024 /* end confdefs.h. */
4025 $ac_includes_default
4027 #include <$ac_header>
4029 rm -f conftest.$ac_objext
4030 if { (ac_try="$ac_compile"
4032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4033 *) ac_try_echo
=$ac_try;;
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_compile") 2>conftest.er1
4038 grep -v '^ *+' conftest.er1
>conftest.err
4040 cat conftest.err
>&5
4041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4042 (exit $ac_status); } &&
4043 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4044 { (case "(($ac_try" in
4045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_try") 2>&5
4051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4052 (exit $ac_status); }; } &&
4053 { ac_try='test -s conftest.$ac_objext'
4054 { (case "(($ac_try" in
4055 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4056 *) ac_try_echo
=$ac_try;;
4058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4059 (eval "$ac_try") 2>&5
4061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4062 (exit $ac_status); }; }; then
4063 eval "$as_ac_Header=yes"
4065 echo "$as_me: failed program was:" >&5
4066 sed 's/^/| /' conftest.
$ac_ext >&5
4068 eval "$as_ac_Header=no"
4071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4073 ac_res
=`eval echo '${'$as_ac_Header'}'`
4074 { echo "$as_me:$LINENO: result: $ac_res" >&5
4075 echo "${ECHO_T}$ac_res" >&6; }
4076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4077 cat >>confdefs.h
<<_ACEOF
4078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4086 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4087 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4088 if test "${ac_cv_c_bigendian+set}" = set; then
4089 echo $ECHO_N "(cached) $ECHO_C" >&6
4091 # See if sys/param.h defines the BYTE_ORDER macro.
4092 cat >conftest.
$ac_ext <<_ACEOF
4095 cat confdefs.h
>>conftest.
$ac_ext
4096 cat >>conftest.
$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <sys/types.h>
4099 #include <sys/param.h>
4104 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4112 rm -f conftest.
$ac_objext
4113 if { (ac_try
="$ac_compile"
4115 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4121 grep -v '^ *+' conftest.er1 >conftest.err
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4129 *) ac_try_echo
=$ac_try;;
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try
='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 # It does; now see whether it defined to BIG_ENDIAN or not.
4147 cat >conftest.$ac_ext <<_ACEOF
4150 cat confdefs.h >>conftest.$ac_ext
4151 cat >>conftest.$ac_ext <<_ACEOF
4152 /* end confdefs.h. */
4153 #include <sys/types.h>
4154 #include <sys/param.h>
4159 #if BYTE_ORDER != BIG_ENDIAN
4167 rm -f conftest.$ac_objext
4168 if { (ac_try="$ac_compile"
4170 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4171 *) ac_try_echo
=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_compile") 2>conftest.er1
4176 grep -v '^ *+' conftest.er1
>conftest.err
4178 cat conftest.err
>&5
4179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4180 (exit $ac_status); } &&
4181 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4182 { (case "(($ac_try" in
4183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4187 (eval "$ac_try") 2>&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; } &&
4191 { ac_try='test -s conftest.$ac_objext'
4192 { (case "(($ac_try" in
4193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4194 *) ac_try_echo
=$ac_try;;
4196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4197 (eval "$ac_try") 2>&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); }; }; then
4201 ac_cv_c_bigendian
=yes
4203 echo "$as_me: failed program was:" >&5
4204 sed 's/^/| /' conftest.
$ac_ext >&5
4206 ac_cv_c_bigendian
=no
4209 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4211 echo "$as_me: failed program was:" >&5
4212 sed 's/^/| /' conftest.
$ac_ext >&5
4214 # It does not; compile a test program.
4215 if test "$cross_compiling" = yes; then
4216 # try to guess the endianness by grepping values into an object file
4217 ac_cv_c_bigendian
=unknown
4218 cat >conftest.
$ac_ext <<_ACEOF
4221 cat confdefs.h
>>conftest.
$ac_ext
4222 cat >>conftest.
$ac_ext <<_ACEOF
4223 /* end confdefs.h. */
4224 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4225 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4226 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4227 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4228 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4229 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4233 _ascii (); _ebcdic ();
4238 rm -f conftest.
$ac_objext
4239 if { (ac_try
="$ac_compile"
4241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_compile") 2>conftest.er1
4247 grep -v '^ *+' conftest.er1 >conftest.err
4249 cat conftest.err >&5
4250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4251 (exit $ac_status); } &&
4252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4253 { (case "(($ac_try" in
4254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4255 *) ac_try_echo
=$ac_try;;
4257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4258 (eval "$ac_try") 2>&5
4260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); }; } &&
4262 { ac_try
='test -s conftest.$ac_objext'
4263 { (case "(($ac_try" in
4264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4265 *) ac_try_echo=$ac_try;;
4267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4268 (eval "$ac_try") 2>&5
4270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4271 (exit $ac_status); }; }; then
4272 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4273 ac_cv_c_bigendian=yes
4275 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4276 if test "$ac_cv_c_bigendian" = unknown; then
4277 ac_cv_c_bigendian=no
4279 # finding both strings is unlikely to happen, but who knows?
4280 ac_cv_c_bigendian=unknown
4284 echo "$as_me: failed program was:" >&5
4285 sed 's/^/| /' conftest.$ac_ext >&5
4290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 $ac_includes_default
4303 /* Are we little or big endian? From Harbison&Steele. */
4307 char c[sizeof (long int)];
4310 return u.c[sizeof (long int) - 1] == 1;
4316 rm -f conftest$ac_exeext
4317 if { (ac_try="$ac_link"
4319 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4320 *) ac_try_echo
=$ac_try;;
4322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4323 (eval "$ac_link") 2>&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4327 { (case "(($ac_try" in
4328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_try") 2>&5
4334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4335 (exit $ac_status); }; }; then
4336 ac_cv_c_bigendian=no
4338 echo "$as_me: program exited with status $ac_status" >&5
4339 echo "$as_me: failed program was:" >&5
4340 sed 's/^/| /' conftest.$ac_ext >&5
4343 ac_cv_c_bigendian=yes
4345 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4354 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4355 case $ac_cv_c_bigendian in
4363 { { echo "$as_me:$LINENO: error: unknown endianness
4364 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4365 echo "$as_me: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4367 { (exit 1); exit 1; }; } ;;
4371 if test "$cross_compiling" = yes; then
4372 LLVM_CROSS_COMPILING=1
4375 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4376 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4377 if test "${ac_cv_build_exeext+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4381 ac_cv_build_exeext=.exe
4383 ac_build_prefix=${build_alias}-
4385 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4386 set dummy ${ac_build_prefix}gcc; ac_word=$2
4387 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4388 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4389 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4392 if test -n "$BUILD_CC"; then
4393 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4399 test -z "$as_dir" && as_dir=.
4400 for ac_exec_ext in '' $ac_executable_extensions; do
4401 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4402 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 BUILD_CC=$ac_cv_prog_BUILD_CC
4413 if test -n "$BUILD_CC"; then
4414 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4415 echo "${ECHO_T}$BUILD_CC" >&6; }
4417 { echo "$as_me:$LINENO: result: no" >&5
4418 echo "${ECHO_T}no" >&6; }
4422 if test -z "$BUILD_CC"; then
4423 # Extract the first word of "gcc", so it can be a program name with args.
4424 set dummy gcc; ac_word=$2
4425 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4426 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4427 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4428 echo $ECHO_N "(cached) $ECHO_C" >&6
4430 if test -n "$BUILD_CC"; then
4431 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 test -z "$as_dir" && as_dir=.
4438 for ac_exec_ext in '' $ac_executable_extensions; do
4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4440 ac_cv_prog_BUILD_CC="gcc"
4441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4450 BUILD_CC=$ac_cv_prog_BUILD_CC
4451 if test -n "$BUILD_CC"; then
4452 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4453 echo "${ECHO_T}$BUILD_CC" >&6; }
4455 { echo "$as_me:$LINENO: result: no" >&5
4456 echo "${ECHO_T}no" >&6; }
4460 if test -z "$BUILD_CC"; then
4461 # Extract the first word of "cc", so it can be a program name with args.
4462 set dummy cc; ac_word=$2
4463 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4464 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4465 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 if test -n "$BUILD_CC"; then
4469 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4476 test -z "$as_dir" && as_dir=.
4477 for ac_exec_ext in '' $ac_executable_extensions; do
4478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4479 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4480 ac_prog_rejected=yes
4483 ac_cv_prog_BUILD_CC="cc"
4484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 if test $ac_prog_rejected = yes; then
4492 # We found a bogon in the path, so make sure we never use it.
4493 set dummy $ac_cv_prog_BUILD_CC
4495 if test $# != 0; then
4496 # We chose a different compiler from the bogus one.
4497 # However, it has the same basename, so the bogon will be chosen
4498 # first if we set BUILD_CC to just the basename; use the full file name.
4500 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4505 BUILD_CC=$ac_cv_prog_BUILD_CC
4506 if test -n "$BUILD_CC"; then
4507 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4508 echo "${ECHO_T}$BUILD_CC" >&6; }
4510 { echo "$as_me:$LINENO: result: no" >&5
4511 echo "${ECHO_T}no" >&6; }
4517 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4518 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4519 { (exit 1); exit 1; }; }
4520 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4522 echo 'int main () { return 0; }' > conftest.$ac_ext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4525 (eval $ac_build_link) 2>&5
4527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4528 (exit $ac_status); }; then
4529 for file in conftest.*; do
4531 *.c | *.o | *.obj | *.dSYM) ;;
4532 *) ac_cv_build_exeext=`echo $file |
sed -e s
/conftest
//` ;;
4536 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4537 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4538 { (exit 1); exit 1; }; }
4541 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4546 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4547 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4548 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4549 ac_build_exeext=$BUILD_EXEEXT
4551 ac_build_prefix=${build_alias}-
4552 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4553 set dummy ${ac_build_prefix}g++; ac_word=$2
4554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4556 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 if test -n "$BUILD_CXX"; then
4560 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4566 test -z "$as_dir" && as_dir=.
4567 for ac_exec_ext in '' $ac_executable_extensions; do
4568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4569 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4579 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4580 if test -n "$BUILD_CXX"; then
4581 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4582 echo "${ECHO_T}$BUILD_CXX" >&6; }
4584 { echo "$as_me:$LINENO: result: no" >&5
4585 echo "${ECHO_T}no" >&6; }
4589 if test -z "$BUILD_CXX"; then
4590 # Extract the first word of "g++", so it can be a program name with args.
4591 set dummy g++; ac_word=$2
4592 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4594 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4595 echo $ECHO_N "(cached) $ECHO_C" >&6
4597 if test -n "$BUILD_CXX"; then
4598 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4604 test -z "$as_dir" && as_dir=.
4605 for ac_exec_ext in '' $ac_executable_extensions; do
4606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4607 ac_cv_prog_BUILD_CXX="g++"
4608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4617 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4618 if test -n "$BUILD_CXX"; then
4619 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4620 echo "${ECHO_T}$BUILD_CXX" >&6; }
4622 { echo "$as_me:$LINENO: result: no" >&5
4623 echo "${ECHO_T}no" >&6; }
4627 if test -z "$BUILD_CXX"; then
4628 # Extract the first word of "c++", so it can be a program name with args.
4629 set dummy c++; ac_word=$2
4630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4632 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4633 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 if test -n "$BUILD_CXX"; then
4636 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4646 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4647 ac_prog_rejected=yes
4650 ac_cv_prog_BUILD_CXX="c++"
4651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 if test $ac_prog_rejected = yes; then
4659 # We found a bogon in the path, so make sure we never use it.
4660 set dummy $ac_cv_prog_BUILD_CXX
4662 if test $# != 0; then
4663 # We chose a different compiler from the bogus one.
4664 # However, it has the same basename, so the bogon will be chosen
4665 # first if we set BUILD_CXX to just the basename; use the full file name.
4667 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4672 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4673 if test -n "$BUILD_CXX"; then
4674 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4675 echo "${ECHO_T}$BUILD_CXX" >&6; }
4677 { echo "$as_me:$LINENO: result: no" >&5
4678 echo "${ECHO_T}no" >&6; }
4685 LLVM_CROSS_COMPILING=0
4689 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4700 # Check whether --enable-optimized was given.
4701 if test "${enable_optimized+set}" = set; then
4702 enableval=$enable_optimized;
4707 if test ${enableval} = "no" ; then
4711 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4715 # Check whether --enable-profiling was given.
4716 if test "${enable_profiling+set}" = set; then
4717 enableval=$enable_profiling;
4722 if test ${enableval} = "no" ; then
4726 ENABLE_PROFILING=ENABLE_PROFILING=1
4730 # Check whether --enable-assertions was given.
4731 if test "${enable_assertions+set}" = set; then
4732 enableval=$enable_assertions;
4737 if test ${enableval} = "yes" ; then
4741 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4745 # Check whether --enable-expensive-checks was given.
4746 if test "${enable_expensive_checks+set}" = set; then
4747 enableval=$enable_expensive_checks;
4752 if test ${enableval} = "yes" ; then
4753 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4755 EXPENSIVE_CHECKS=yes
4758 ENABLE_EXPENSIVE_CHECKS=
4764 # Check whether --enable-debug-runtime was given.
4765 if test "${enable_debug_runtime+set}" = set; then
4766 enableval=$enable_debug_runtime;
4771 if test ${enableval} = "no" ; then
4775 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4779 # Check whether --enable-debug-symbols was given.
4780 if test "${enable_debug_symbols+set}" = set; then
4781 enableval=$enable_debug_symbols;
4786 if test ${enableval} = "no" ; then
4790 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4794 # Check whether --enable-jit was given.
4795 if test "${enable_jit+set}" = set; then
4796 enableval=$enable_jit;
4801 if test ${enableval} = "no"
4806 case "$llvm_cv_target_arch" in
4807 x86) TARGET_HAS_JIT=1
4809 Sparc) TARGET_HAS_JIT=0
4811 PowerPC) TARGET_HAS_JIT=1
4813 x86_64) TARGET_HAS_JIT=1
4815 Alpha) TARGET_HAS_JIT=1
4817 ARM) TARGET_HAS_JIT=1
4819 Mips) TARGET_HAS_JIT=0
4821 PIC16) 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 PIC16 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 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4974 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4975 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4976 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4977 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4978 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4979 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4980 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4981 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4982 host) case "$llvm_cv_target_arch" in
4983 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4985 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4986 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4987 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4988 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4989 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4990 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4991 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4992 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4993 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4994 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4995 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4996 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4997 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4998 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4999 echo "$as_me: error: Can not set target to build" >&2;}
5000 { (exit 1); exit 1; }; } ;;
5002 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5003 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5004 { (exit 1); exit 1; }; } ;;
5009 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5012 # Determine whether we are building LLVM support for the native architecture.
5013 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5014 for a_target in $TARGETS_TO_BUILD; do
5015 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5017 cat >>confdefs.h <<_ACEOF
5018 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5021 LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5022 LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5023 LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5025 cat >>confdefs.h <<_ACEOF
5026 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5030 cat >>confdefs.h <<_ACEOF
5031 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5035 cat >>confdefs.h <<_ACEOF
5036 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5042 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5043 # target feature def files.
5044 LLVM_ENUM_TARGETS=""
5045 LLVM_ENUM_ASM_PRINTERS=""
5046 LLVM_ENUM_ASM_PARSERS=""
5047 LLVM_ENUM_DISASSEMBLERS=""
5048 for target_to_build in $TARGETS_TO_BUILD; do
5049 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5050 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5051 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5053 # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5054 if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5055 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5058 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5059 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5061 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5062 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5070 # Check whether --enable-cbe-printf-a was given.
5071 if test "${enable_cbe_printf_a+set}" = set; then
5072 enableval=$enable_cbe_printf_a;
5077 case "$enableval" in
5078 yes) ENABLE_CBE_PRINTF_A=1
5080 no) ENABLE_CBE_PRINTF_A=0
5082 default) ENABLE_CBE_PRINTF_A=1
5084 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5085 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5086 { (exit 1); exit 1; }; } ;;
5089 cat >>confdefs.h <<_ACEOF
5090 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5095 # Check whether --with-llvmgccdir was given.
5096 if test "${with_llvmgccdir+set}" = set; then
5097 withval=$with_llvmgccdir;
5103 default) WITH_LLVMGCCDIR=default ;;
5104 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5105 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5106 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5107 { (exit 1); exit 1; }; } ;;
5111 # Check whether --with-llvmgcc was given.
5112 if test "${with_llvmgcc+set}" = set; then
5113 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5119 # Check whether --with-llvmgxx was given.
5120 if test "${with_llvmgxx+set}" = set; then
5121 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5126 if test -n "$LLVMGCC"; then
5127 LLVMGCCCOMMAND="$LLVMGCC"
5130 if test -n "$LLVMGXX"; then
5131 LLVMGXXCOMMAND="$LLVMGXX"
5134 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5135 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5136 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5137 { (exit 1); exit 1; }; };
5140 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5141 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5142 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5143 { (exit 1); exit 1; }; };
5147 # Check whether --with-clang was given.
5148 if test "${with_clang+set}" = set; then
5149 withval=$with_clang;
5156 # Check whether --with-built-clang was given.
5157 if test "${with_built_clang+set}" = set; then
5158 withval=$with_built_clang;
5160 with_built_clang=check
5164 { echo "$as_me:$LINENO: checking clang compiler" >&5
5165 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5168 if test "$with_clang" != "default"; then
5169 WITH_CLANGPATH="$with_clang"
5170 if ! test -x "$WITH_CLANGPATH"; then
5171 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5172 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5173 { (exit 1); exit 1; }; }
5175 elif test "$with_built_clang" = "yes"; then
5177 elif test "$with_built_clang" = "no"; then
5180 if test "$with_built_clang" != "check"; then
5181 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5182 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5183 { (exit 1); exit 1; }; }
5186 if test -f ${srcdir}/tools/clang/README.txt; then
5191 if ! test -z "$WITH_CLANGPATH"; then
5192 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5193 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5194 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang
++`
5195 elif test "$WITH_BUILT_CLANG" = "1"; then
5196 { echo "$as_me:$LINENO: result: built" >&5
5197 echo "${ECHO_T}built" >&6; }
5199 { echo "$as_me:$LINENO: result: none" >&5
5200 echo "${ECHO_T}none" >&6; }
5202 CLANGPATH=$WITH_CLANGPATH
5204 CLANGXXPATH=$WITH_CLANGXXPATH
5206 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5210 # Check whether --with-optimize-option was given.
5211 if test "${with_optimize_option+set}" = set; then
5212 withval=$with_optimize_option;
5217 { echo "$as_me:$LINENO: checking optimization flags" >&5
5218 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5221 case "$llvm_cv_os_type" in
5222 FreeBSD) optimize_option=-O2 ;;
5223 MingW) optimize_option=-O2 ;;
5224 *) optimize_option=-O3 ;;
5226 *) optimize_option="$withval" ;;
5228 OPTIMIZE_OPTION=$optimize_option
5230 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5231 echo "${ECHO_T}$optimize_option" >&6; }
5234 # Check whether --with-extra-options was given.
5235 if test "${with_extra_options+set}" = set; then
5236 withval=$with_extra_options;
5242 default) EXTRA_OPTIONS= ;;
5243 *) EXTRA_OPTIONS=$withval ;;
5245 EXTRA_OPTIONS=$EXTRA_OPTIONS
5248 # Check whether --enable-bindings was given.
5249 if test "${enable_bindings+set}" = set; then
5250 enableval=$enable_bindings;
5255 BINDINGS_TO_BUILD=""
5256 case "$enableval" in
5257 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5258 all ) BINDINGS_TO_BUILD="ocaml" ;;
5259 none | no) BINDINGS_TO_BUILD="" ;;
5260 *)for a_binding in `echo $enableval|
sed -e 's/,/ /g' ` ; do
5261 case "$a_binding" in
5262 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5263 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5264 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5265 { (exit 1); exit 1; }; } ;;
5272 # Check whether --with-ocaml-libdir was given.
5273 if test "${with_ocaml_libdir+set}" = set; then
5274 withval=$with_ocaml_libdir;
5280 auto) with_ocaml_libdir="$withval" ;;
5281 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5282 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5283 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5284 { (exit 1); exit 1; }; } ;;
5288 # Check whether --with-c-include-dirs was given.
5289 if test "${with_c_include_dirs+set}" = set; then
5290 withval=$with_c_include_dirs;
5296 cat >>confdefs.h <<_ACEOF
5297 #define C_INCLUDE_DIRS "$withval"
5302 # Check whether --with-cxx-include-root was given.
5303 if test "${with_cxx_include_root+set}" = set; then
5304 withval=$with_cxx_include_root;
5310 cat >>confdefs.h <<_ACEOF
5311 #define CXX_INCLUDE_ROOT "$withval"
5316 # Check whether --with-cxx-include-arch was given.
5317 if test "${with_cxx_include_arch+set}" = set; then
5318 withval=$with_cxx_include_arch;
5324 cat >>confdefs.h <<_ACEOF
5325 #define CXX_INCLUDE_ARCH "$withval"
5330 # Check whether --with-cxx-include-32bit-dir was given.
5331 if test "${with_cxx_include_32bit_dir+set}" = set; then
5332 withval=$with_cxx_include_32bit_dir;
5338 cat >>confdefs.h <<_ACEOF
5339 #define CXX_INCLUDE_32BIT_DIR "$withval"
5344 # Check whether --with-cxx-include-64bit-dir was given.
5345 if test "${with_cxx_include_64bit_dir+set}" = set; then
5346 withval=$with_cxx_include_64bit_dir;
5352 cat >>confdefs.h <<_ACEOF
5353 #define CXX_INCLUDE_64BIT_DIR "$withval"
5358 # Check whether --with-binutils-include was given.
5359 if test "${with_binutils_include+set}" = set; then
5360 withval=$with_binutils_include;
5366 default) WITH_BINUTILS_INCDIR=default ;;
5367 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5368 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5369 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5370 { (exit 1); exit 1; }; } ;;
5372 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5373 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5375 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5376 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5377 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5378 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5379 { (exit 1); exit 1; }; };
5383 # Check whether --enable-libffi was given.
5384 if test "${enable_libffi+set}" = set; then
5385 enableval=$enable_libffi; case "$enableval" in
5386 yes) llvm_cv_enable_libffi="yes" ;;
5387 no) llvm_cv_enable_libffi="no" ;;
5388 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5389 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5390 { (exit 1); exit 1; }; } ;;
5393 llvm_cv_enable_libffi=no
5399 ac_cpp='$CPP $CPPFLAGS'
5400 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5401 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5402 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5403 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5404 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5405 # On Suns, sometimes $CPP names a directory.
5406 if test -n "$CPP" && test -d "$CPP"; then
5409 if test -z "$CPP"; then
5410 if test "${ac_cv_prog_CPP+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5413 # Double quotes because CPP needs to be expanded
5414 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5417 for ac_c_preproc_warn_flag in '' yes
5419 # Use a header file that comes with gcc, so configuring glibc
5420 # with a fresh cross-compiler works.
5421 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5422 # <limits.h> exists even on freestanding compilers.
5423 # On the NeXT, cc -E runs the code through the compiler's parser,
5424 # not just through cpp. "Syntax error" is here to catch this case.
5425 cat >conftest.$ac_ext <<_ACEOF
5428 cat confdefs.h >>conftest.$ac_ext
5429 cat >>conftest.$ac_ext <<_ACEOF
5430 /* end confdefs.h. */
5432 # include <limits.h>
5434 # include <assert.h>
5438 if { (ac_try="$ac_cpp conftest.$ac_ext"
5440 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5441 *) ac_try_echo
=$ac_try;;
5443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5446 grep -v '^ *+' conftest.er1
>conftest.err
5448 cat conftest.err
>&5
5449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5450 (exit $ac_status); } >/dev
/null
; then
5451 if test -s conftest.err
; then
5452 ac_cpp_err
=$ac_c_preproc_warn_flag
5453 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5460 if test -z "$ac_cpp_err"; then
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.
$ac_ext >&5
5466 # Broken: fails on valid input.
5470 rm -f conftest.err conftest.
$ac_ext
5472 # OK, works on sane cases. Now check whether nonexistent headers
5473 # can be detected and how.
5474 cat >conftest.
$ac_ext <<_ACEOF
5477 cat confdefs.h
>>conftest.
$ac_ext
5478 cat >>conftest.
$ac_ext <<_ACEOF
5479 /* end confdefs.h. */
5480 #include <ac_nonexistent.h>
5482 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5485 *) ac_try_echo=$ac_try;;
5487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5490 grep -v '^ *+' conftest.er1 >conftest.err
5492 cat conftest.err >&5
5493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } >/dev/null; then
5495 if test -s conftest.err; then
5496 ac_cpp_err=$ac_c_preproc_warn_flag
5497 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5504 if test -z "$ac_cpp_err"; then
5505 # Broken: success on invalid input.
5508 echo "$as_me: failed program was:" >&5
5509 sed 's/^/| /' conftest.$ac_ext >&5
5511 # Passes both tests.
5516 rm -f conftest.err conftest.$ac_ext
5519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5520 rm -f conftest.err conftest.
$ac_ext
5521 if $ac_preproc_ok; then
5533 { echo "$as_me:$LINENO: result: $CPP" >&5
5534 echo "${ECHO_T}$CPP" >&6; }
5536 for ac_c_preproc_warn_flag
in '' yes
5538 # Use a header file that comes with gcc, so configuring glibc
5539 # with a fresh cross-compiler works.
5540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5541 # <limits.h> exists even on freestanding compilers.
5542 # On the NeXT, cc -E runs the code through the compiler's parser,
5543 # not just through cpp. "Syntax error" is here to catch this case.
5544 cat >conftest.
$ac_ext <<_ACEOF
5547 cat confdefs.h
>>conftest.
$ac_ext
5548 cat >>conftest.
$ac_ext <<_ACEOF
5549 /* end confdefs.h. */
5551 # include <limits.h>
5553 # include <assert.h>
5557 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5559 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5560 *) ac_try_echo=$ac_try;;
5562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5565 grep -v '^ *+' conftest.er1 >conftest.err
5567 cat conftest.err >&5
5568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5569 (exit $ac_status); } >/dev/null; then
5570 if test -s conftest.err; then
5571 ac_cpp_err=$ac_c_preproc_warn_flag
5572 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5579 if test -z "$ac_cpp_err"; then
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.$ac_ext >&5
5585 # Broken: fails on valid input.
5589 rm -f conftest.err conftest.$ac_ext
5591 # OK, works on sane cases. Now check whether nonexistent headers
5592 # can be detected and how.
5593 cat >conftest.$ac_ext <<_ACEOF
5596 cat confdefs.h >>conftest.$ac_ext
5597 cat >>conftest.$ac_ext <<_ACEOF
5598 /* end confdefs.h. */
5599 #include <ac_nonexistent.h>
5601 if { (ac_try="$ac_cpp conftest.$ac_ext"
5603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5604 *) ac_try_echo
=$ac_try;;
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5609 grep -v '^ *+' conftest.er1
>conftest.err
5611 cat conftest.err
>&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } >/dev
/null
; then
5614 if test -s conftest.err
; then
5615 ac_cpp_err
=$ac_c_preproc_warn_flag
5616 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
5623 if test -z "$ac_cpp_err"; then
5624 # Broken: success on invalid input.
5627 echo "$as_me: failed program was:" >&5
5628 sed 's/^/| /' conftest.
$ac_ext >&5
5630 # Passes both tests.
5635 rm -f conftest.err conftest.
$ac_ext
5638 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5639 rm -f conftest.err conftest.
$ac_ext
5640 if $ac_preproc_ok; then
5643 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5644 See \`config.log' for more details." >&5
5645 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5646 See \`config.log' for more details." >&2;}
5647 { (exit 1); exit 1; }; }
5651 ac_cpp
='$CPP $CPPFLAGS'
5652 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5657 ac_cpp
='$CPP $CPPFLAGS'
5658 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5659 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5660 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5661 if test -n "$ac_tool_prefix"; then
5664 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5665 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
5666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5668 if test "${ac_cv_prog_CC+set}" = set; then
5669 echo $ECHO_N "(cached) $ECHO_C" >&6
5671 if test -n "$CC"; then
5672 ac_cv_prog_CC
="$CC" # Let the user override the test.
5674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5678 test -z "$as_dir" && as_dir
=.
5679 for ac_exec_ext
in '' $ac_executable_extensions; do
5680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5681 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
5682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5692 if test -n "$CC"; then
5693 { echo "$as_me:$LINENO: result: $CC" >&5
5694 echo "${ECHO_T}$CC" >&6; }
5696 { echo "$as_me:$LINENO: result: no" >&5
5697 echo "${ECHO_T}no" >&6; }
5701 test -n "$CC" && break
5704 if test -z "$CC"; then
5708 # Extract the first word of "$ac_prog", so it can be a program name with args.
5709 set dummy
$ac_prog; ac_word
=$2
5710 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5711 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5712 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5713 echo $ECHO_N "(cached) $ECHO_C" >&6
5715 if test -n "$ac_ct_CC"; then
5716 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
5718 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5722 test -z "$as_dir" && as_dir
=.
5723 for ac_exec_ext
in '' $ac_executable_extensions; do
5724 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5725 ac_cv_prog_ac_ct_CC
="$ac_prog"
5726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
5736 if test -n "$ac_ct_CC"; then
5737 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5738 echo "${ECHO_T}$ac_ct_CC" >&6; }
5740 { echo "$as_me:$LINENO: result: no" >&5
5741 echo "${ECHO_T}no" >&6; }
5745 test -n "$ac_ct_CC" && break
5748 if test "x$ac_ct_CC" = x
; then
5751 case $cross_compiling:$ac_tool_warned in
5753 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5754 whose name does not start with the host triplet. If you think this
5755 configuration is useful to you, please write to autoconf@gnu.org." >&5
5756 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5757 whose name does not start with the host triplet. If you think this
5758 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5759 ac_tool_warned
=yes ;;
5766 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5767 See \`config.log' for more details." >&5
5768 echo "$as_me: error: no acceptable C compiler found in \$PATH
5769 See \`config.log' for more details." >&2;}
5770 { (exit 1); exit 1; }; }
5772 # Provide some information about the compiler.
5773 echo "$as_me:$LINENO: checking for C compiler version" >&5
5774 ac_compiler
=`set X $ac_compile; echo $2`
5775 { (ac_try
="$ac_compiler --version >&5"
5777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5778 *) ac_try_echo=$ac_try;;
5780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5781 (eval "$ac_compiler --version >&5") 2>&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }
5785 { (ac_try="$ac_compiler -v >&5"
5787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5788 *) ac_try_echo
=$ac_try;;
5790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5791 (eval "$ac_compiler -v >&5") 2>&5
5793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5794 (exit $ac_status); }
5795 { (ac_try
="$ac_compiler -V >&5"
5797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5798 *) ac_try_echo=$ac_try;;
5800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5801 (eval "$ac_compiler -V >&5") 2>&5
5803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5804 (exit $ac_status); }
5806 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5807 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5808 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5809 echo $ECHO_N "(cached) $ECHO_C" >&6
5811 cat >conftest.$ac_ext <<_ACEOF
5814 cat confdefs.h >>conftest.$ac_ext
5815 cat >>conftest.$ac_ext <<_ACEOF
5816 /* end confdefs.h. */
5829 rm -f conftest.$ac_objext
5830 if { (ac_try="$ac_compile"
5832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5833 *) ac_try_echo
=$ac_try;;
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_compile") 2>conftest.er1
5838 grep -v '^ *+' conftest.er1
>conftest.err
5840 cat conftest.err
>&5
5841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5842 (exit $ac_status); } &&
5843 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5844 { (case "(($ac_try" in
5845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_try") 2>&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); }; } &&
5853 { ac_try='test -s conftest.$ac_objext'
5854 { (case "(($ac_try" in
5855 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5856 *) ac_try_echo
=$ac_try;;
5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859 (eval "$ac_try") 2>&5
5861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5862 (exit $ac_status); }; }; then
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.
$ac_ext >&5
5871 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5872 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
5875 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5876 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5877 GCC
=`test $ac_compiler_gnu = yes && echo yes`
5878 ac_test_CFLAGS
=${CFLAGS+set}
5879 ac_save_CFLAGS
=$CFLAGS
5880 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5881 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5882 if test "${ac_cv_prog_cc_g+set}" = set; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 ac_save_c_werror_flag
=$ac_c_werror_flag
5886 ac_c_werror_flag
=yes
5889 cat >conftest.
$ac_ext <<_ACEOF
5892 cat confdefs.h
>>conftest.
$ac_ext
5893 cat >>conftest.
$ac_ext <<_ACEOF
5894 /* end confdefs.h. */
5904 rm -f conftest.
$ac_objext
5905 if { (ac_try
="$ac_compile"
5907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5908 *) ac_try_echo=$ac_try;;
5910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5911 (eval "$ac_compile") 2>conftest.er1
5913 grep -v '^ *+' conftest.er1 >conftest.err
5915 cat conftest.err >&5
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); } &&
5918 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5919 { (case "(($ac_try" in
5920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5921 *) ac_try_echo
=$ac_try;;
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_try") 2>&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); }; } &&
5928 { ac_try
='test -s conftest.$ac_objext'
5929 { (case "(($ac_try" in
5930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_try") 2>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); }; }; then
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.$ac_ext >&5
5944 cat >conftest.$ac_ext <<_ACEOF
5947 cat confdefs.h >>conftest.$ac_ext
5948 cat >>conftest.$ac_ext <<_ACEOF
5949 /* end confdefs.h. */
5959 rm -f conftest.$ac_objext
5960 if { (ac_try="$ac_compile"
5962 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5963 *) ac_try_echo
=$ac_try;;
5965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5966 (eval "$ac_compile") 2>conftest.er1
5968 grep -v '^ *+' conftest.er1
>conftest.err
5970 cat conftest.err
>&5
5971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5972 (exit $ac_status); } &&
5973 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5974 { (case "(($ac_try" in
5975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_try") 2>&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); }; } &&
5983 { ac_try='test -s conftest.$ac_objext'
5984 { (case "(($ac_try" in
5985 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5986 *) ac_try_echo
=$ac_try;;
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_try") 2>&5
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; }; then
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.
$ac_ext >&5
5998 ac_c_werror_flag
=$ac_save_c_werror_flag
6000 cat >conftest.
$ac_ext <<_ACEOF
6003 cat confdefs.h
>>conftest.
$ac_ext
6004 cat >>conftest.
$ac_ext <<_ACEOF
6005 /* end confdefs.h. */
6015 rm -f conftest.
$ac_objext
6016 if { (ac_try
="$ac_compile"
6018 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6019 *) ac_try_echo=$ac_try;;
6021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6022 (eval "$ac_compile") 2>conftest.er1
6024 grep -v '^ *+' conftest.er1 >conftest.err
6026 cat conftest.err >&5
6027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6028 (exit $ac_status); } &&
6029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6030 { (case "(($ac_try" in
6031 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6032 *) ac_try_echo
=$ac_try;;
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_try") 2>&5
6037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6038 (exit $ac_status); }; } &&
6039 { ac_try
='test -s conftest.$ac_objext'
6040 { (case "(($ac_try" in
6041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_try") 2>&5
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); }; }; then
6051 echo "$as_me: failed program was:" >&5
6052 sed 's/^/| /' conftest.$ac_ext >&5
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6064 ac_c_werror_flag=$ac_save_c_werror_flag
6066 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6067 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6068 if test "$ac_test_CFLAGS" = set; then
6069 CFLAGS=$ac_save_CFLAGS
6070 elif test $ac_cv_prog_cc_g = yes; then
6071 if test "$GCC" = yes; then
6077 if test "$GCC" = yes; then
6083 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6084 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6085 if test "${ac_cv_prog_cc_c89+set}" = set; then
6086 echo $ECHO_N "(cached) $ECHO_C" >&6
6088 ac_cv_prog_cc_c89=no
6090 cat >conftest.$ac_ext <<_ACEOF
6093 cat confdefs.h >>conftest.$ac_ext
6094 cat >>conftest.$ac_ext <<_ACEOF
6095 /* end confdefs.h. */
6098 #include <sys/types.h>
6099 #include <sys/stat.h>
6100 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6101 struct buf { int x; };
6102 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6103 static char *e (p, i)
6109 static char *f (char * (*g) (char **, int), char **p, ...)
6114 s = g (p, va_arg (v,int));
6119 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6120 function prototypes and stuff, but not '\xHH' hex character constants.
6121 These don't provoke an error unfortunately, instead are silently treated
6122 as 'x'. The following induces an error, until -std is added to get
6123 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6124 array size at least. It's necessary to write '\x00'==0 to get something
6125 that's true only with -std. */
6126 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6128 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6129 inside strings and character constants. */
6131 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6133 int test (int i, double x);
6134 struct s1 {int (*f) (int a);};
6135 struct s2 {int (*f) (double a);};
6136 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6142 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6147 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6148 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6150 CC="$ac_save_CC $ac_arg"
6151 rm -f conftest.$ac_objext
6152 if { (ac_try="$ac_compile"
6154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6155 *) ac_try_echo
=$ac_try;;
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_compile") 2>conftest.er1
6160 grep -v '^ *+' conftest.er1
>conftest.err
6162 cat conftest.err
>&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } &&
6165 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6166 { (case "(($ac_try" in
6167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6168 *) ac_try_echo=$ac_try;;
6170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6171 (eval "$ac_try") 2>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; } &&
6175 { ac_try='test -s conftest.$ac_objext'
6176 { (case "(($ac_try" in
6177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6178 *) ac_try_echo
=$ac_try;;
6180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6181 (eval "$ac_try") 2>&5
6183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6184 (exit $ac_status); }; }; then
6185 ac_cv_prog_cc_c89
=$ac_arg
6187 echo "$as_me: failed program was:" >&5
6188 sed 's/^/| /' conftest.
$ac_ext >&5
6193 rm -f core conftest.err conftest.
$ac_objext
6194 test "x$ac_cv_prog_cc_c89" != "xno" && break
6196 rm -f conftest.
$ac_ext
6201 case "x$ac_cv_prog_cc_c89" in
6203 { echo "$as_me:$LINENO: result: none needed" >&5
6204 echo "${ECHO_T}none needed" >&6; } ;;
6206 { echo "$as_me:$LINENO: result: unsupported" >&5
6207 echo "${ECHO_T}unsupported" >&6; } ;;
6209 CC
="$CC $ac_cv_prog_cc_c89"
6210 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6211 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6216 ac_cpp
='$CPP $CPPFLAGS'
6217 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6222 ac_cpp
='$CXXCPP $CPPFLAGS'
6223 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6224 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6225 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6226 if test -z "$CXX"; then
6227 if test -n "$CCC"; then
6230 if test -n "$ac_tool_prefix"; then
6233 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6234 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6237 if test "${ac_cv_prog_CXX+set}" = set; then
6238 echo $ECHO_N "(cached) $ECHO_C" >&6
6240 if test -n "$CXX"; then
6241 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
6243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6247 test -z "$as_dir" && as_dir
=.
6248 for ac_exec_ext
in '' $ac_executable_extensions; do
6249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6250 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
6251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6261 if test -n "$CXX"; then
6262 { echo "$as_me:$LINENO: result: $CXX" >&5
6263 echo "${ECHO_T}$CXX" >&6; }
6265 { echo "$as_me:$LINENO: result: no" >&5
6266 echo "${ECHO_T}no" >&6; }
6270 test -n "$CXX" && break
6273 if test -z "$CXX"; then
6277 # Extract the first word of "$ac_prog", so it can be a program name with args.
6278 set dummy
$ac_prog; ac_word
=$2
6279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6281 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6282 echo $ECHO_N "(cached) $ECHO_C" >&6
6284 if test -n "$ac_ct_CXX"; then
6285 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
6287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6291 test -z "$as_dir" && as_dir
=.
6292 for ac_exec_ext
in '' $ac_executable_extensions; do
6293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6294 ac_cv_prog_ac_ct_CXX
="$ac_prog"
6295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6304 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
6305 if test -n "$ac_ct_CXX"; then
6306 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6307 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6309 { echo "$as_me:$LINENO: result: no" >&5
6310 echo "${ECHO_T}no" >&6; }
6314 test -n "$ac_ct_CXX" && break
6317 if test "x$ac_ct_CXX" = x
; then
6320 case $cross_compiling:$ac_tool_warned in
6322 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6323 whose name does not start with the host triplet. If you think this
6324 configuration is useful to you, please write to autoconf@gnu.org." >&5
6325 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6326 whose name does not start with the host triplet. If you think this
6327 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6328 ac_tool_warned
=yes ;;
6336 # Provide some information about the compiler.
6337 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6338 ac_compiler
=`set X $ac_compile; echo $2`
6339 { (ac_try
="$ac_compiler --version >&5"
6341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6342 *) ac_try_echo=$ac_try;;
6344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6345 (eval "$ac_compiler --version >&5") 2>&5
6347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6348 (exit $ac_status); }
6349 { (ac_try="$ac_compiler -v >&5"
6351 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6352 *) ac_try_echo
=$ac_try;;
6354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6355 (eval "$ac_compiler -v >&5") 2>&5
6357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6358 (exit $ac_status); }
6359 { (ac_try
="$ac_compiler -V >&5"
6361 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6365 (eval "$ac_compiler -V >&5") 2>&5
6367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6368 (exit $ac_status); }
6370 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6371 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6372 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6373 echo $ECHO_N "(cached) $ECHO_C" >&6
6375 cat >conftest.$ac_ext <<_ACEOF
6378 cat confdefs.h >>conftest.$ac_ext
6379 cat >>conftest.$ac_ext <<_ACEOF
6380 /* end confdefs.h. */
6393 rm -f conftest.$ac_objext
6394 if { (ac_try="$ac_compile"
6396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6397 *) ac_try_echo
=$ac_try;;
6399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6400 (eval "$ac_compile") 2>conftest.er1
6402 grep -v '^ *+' conftest.er1
>conftest.err
6404 cat conftest.err
>&5
6405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6406 (exit $ac_status); } &&
6407 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6408 { (case "(($ac_try" in
6409 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6410 *) ac_try_echo=$ac_try;;
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413 (eval "$ac_try") 2>&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); }; } &&
6417 { ac_try='test -s conftest.$ac_objext'
6418 { (case "(($ac_try" in
6419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6420 *) ac_try_echo
=$ac_try;;
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423 (eval "$ac_try") 2>&5
6425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6426 (exit $ac_status); }; }; then
6429 echo "$as_me: failed program was:" >&5
6430 sed 's/^/| /' conftest.
$ac_ext >&5
6435 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6436 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
6439 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6440 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6441 GXX
=`test $ac_compiler_gnu = yes && echo yes`
6442 ac_test_CXXFLAGS
=${CXXFLAGS+set}
6443 ac_save_CXXFLAGS
=$CXXFLAGS
6444 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6445 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6446 if test "${ac_cv_prog_cxx_g+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6449 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
6450 ac_cxx_werror_flag
=yes
6453 cat >conftest.
$ac_ext <<_ACEOF
6456 cat confdefs.h
>>conftest.
$ac_ext
6457 cat >>conftest.
$ac_ext <<_ACEOF
6458 /* end confdefs.h. */
6468 rm -f conftest.
$ac_objext
6469 if { (ac_try
="$ac_compile"
6471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6472 *) ac_try_echo=$ac_try;;
6474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6475 (eval "$ac_compile") 2>conftest.er1
6477 grep -v '^ *+' conftest.er1 >conftest.err
6479 cat conftest.err >&5
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); } &&
6482 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6483 { (case "(($ac_try" in
6484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6485 *) ac_try_echo
=$ac_try;;
6487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6488 (eval "$ac_try") 2>&5
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; } &&
6492 { ac_try
='test -s conftest.$ac_objext'
6493 { (case "(($ac_try" in
6494 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6495 *) ac_try_echo=$ac_try;;
6497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6498 (eval "$ac_try") 2>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); }; }; then
6502 ac_cv_prog_cxx_g=yes
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6508 cat >conftest.$ac_ext <<_ACEOF
6511 cat confdefs.h >>conftest.$ac_ext
6512 cat >>conftest.$ac_ext <<_ACEOF
6513 /* end confdefs.h. */
6523 rm -f conftest.$ac_objext
6524 if { (ac_try="$ac_compile"
6526 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6527 *) ac_try_echo
=$ac_try;;
6529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6530 (eval "$ac_compile") 2>conftest.er1
6532 grep -v '^ *+' conftest.er1
>conftest.err
6534 cat conftest.err
>&5
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); } &&
6537 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6538 { (case "(($ac_try" in
6539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6540 *) ac_try_echo=$ac_try;;
6542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6543 (eval "$ac_try") 2>&5
6545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6546 (exit $ac_status); }; } &&
6547 { ac_try='test -s conftest.$ac_objext'
6548 { (case "(($ac_try" in
6549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6550 *) ac_try_echo
=$ac_try;;
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_try") 2>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); }; }; then
6559 echo "$as_me: failed program was:" >&5
6560 sed 's/^/| /' conftest.
$ac_ext >&5
6562 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
6564 cat >conftest.
$ac_ext <<_ACEOF
6567 cat confdefs.h
>>conftest.
$ac_ext
6568 cat >>conftest.
$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6579 rm -f conftest.
$ac_objext
6580 if { (ac_try
="$ac_compile"
6582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_compile") 2>conftest.er1
6588 grep -v '^ *+' conftest.er1 >conftest.err
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } &&
6593 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6594 { (case "(($ac_try" in
6595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6596 *) ac_try_echo
=$ac_try;;
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_try") 2>&5
6601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6602 (exit $ac_status); }; } &&
6603 { ac_try
='test -s conftest.$ac_objext'
6604 { (case "(($ac_try" in
6605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_try") 2>&5
6611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6612 (exit $ac_status); }; }; then
6613 ac_cv_prog_cxx_g=yes
6615 echo "$as_me: failed program was:" >&5
6616 sed 's/^/| /' conftest.$ac_ext >&5
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6628 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6630 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6631 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6632 if test "$ac_test_CXXFLAGS" = set; then
6633 CXXFLAGS=$ac_save_CXXFLAGS
6634 elif test $ac_cv_prog_cxx_g = yes; then
6635 if test "$GXX" = yes; then
6641 if test "$GXX" = yes; then
6648 ac_cpp='$CPP $CPPFLAGS'
6649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6654 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6655 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6656 if test "${lt_cv_path_NM+set}" = set; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6659 if test -n "$NM"; then
6660 # Let the user override the test.
6663 lt_nm_to_check="${ac_tool_prefix}nm"
6664 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6665 lt_nm_to_check="$lt_nm_to_check nm"
6667 for lt_tmp_nm in $lt_nm_to_check; do
6668 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6669 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6671 test -z "$ac_dir" && ac_dir=.
6672 tmp_nm="$ac_dir/$lt_tmp_nm"
6673 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6674 # Check to see if the nm accepts a BSD-compat flag.
6675 # Adding the `sed 1q
' prevents false positives on HP-UX, which says:
6676 # nm: unknown option "B" ignored
6677 # Tru64's nm complains that
/dev
/null is an invalid object
file
6678 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6679 */dev
/null
* |
*'Invalid file or object type'*)
6680 lt_cv_path_NM
="$tmp_nm -B"
6684 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6686 lt_cv_path_NM
="$tmp_nm -p"
6690 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6691 continue # so that we can try to find one that supports BSD flags
6700 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
6703 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6704 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6709 { echo "$as_me:$LINENO: checking for GNU make" >&5
6710 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6711 if test "${llvm_cv_gnu_make_command+set}" = set; then
6712 echo $ECHO_N "(cached) $ECHO_C" >&6
6714 llvm_cv_gnu_make_command
=''
6715 for a
in "$MAKE" make gmake gnumake
; do
6716 if test -z "$a" ; then continue ; fi ;
6717 if ( sh
-c "$a --version" 2> /dev
/null |
grep GNU
2>&1 > /dev
/null
)
6719 llvm_cv_gnu_make_command
=$a ;
6724 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6725 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6726 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6730 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6731 echo "${ECHO_T}\"Not found\"" >&6; };
6735 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6736 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6738 if test "$LN_S" = "ln -s"; then
6739 { echo "$as_me:$LINENO: result: yes" >&5
6740 echo "${ECHO_T}yes" >&6; }
6742 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6743 echo "${ECHO_T}no, using $LN_S" >&6; }
6746 # Extract the first word of "cmp", so it can be a program name with args.
6747 set dummy
cmp; ac_word
=$2
6748 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6750 if test "${ac_cv_path_CMP+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6755 ac_cv_path_CMP
="$CMP" # Let the user override the test with a path.
6758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6762 test -z "$as_dir" && as_dir
=.
6763 for ac_exec_ext
in '' $ac_executable_extensions; do
6764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6765 ac_cv_path_CMP
="$as_dir/$ac_word$ac_exec_ext"
6766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6773 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP
="cmp"
6778 if test -n "$CMP"; then
6779 { echo "$as_me:$LINENO: result: $CMP" >&5
6780 echo "${ECHO_T}$CMP" >&6; }
6782 { echo "$as_me:$LINENO: result: no" >&5
6783 echo "${ECHO_T}no" >&6; }
6787 # Extract the first word of "cp", so it can be a program name with args.
6788 set dummy
cp; ac_word
=$2
6789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6791 if test "${ac_cv_path_CP+set}" = set; then
6792 echo $ECHO_N "(cached) $ECHO_C" >&6
6796 ac_cv_path_CP
="$CP" # Let the user override the test with a path.
6799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6803 test -z "$as_dir" && as_dir
=.
6804 for ac_exec_ext
in '' $ac_executable_extensions; do
6805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6806 ac_cv_path_CP
="$as_dir/$ac_word$ac_exec_ext"
6807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6814 test -z "$ac_cv_path_CP" && ac_cv_path_CP
="cp"
6819 if test -n "$CP"; then
6820 { echo "$as_me:$LINENO: result: $CP" >&5
6821 echo "${ECHO_T}$CP" >&6; }
6823 { echo "$as_me:$LINENO: result: no" >&5
6824 echo "${ECHO_T}no" >&6; }
6828 # Extract the first word of "date", so it can be a program name with args.
6829 set dummy
date; ac_word
=$2
6830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6832 if test "${ac_cv_path_DATE+set}" = set; then
6833 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 ac_cv_path_DATE
="$DATE" # Let the user override the test with a path.
6840 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6844 test -z "$as_dir" && as_dir
=.
6845 for ac_exec_ext
in '' $ac_executable_extensions; do
6846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6847 ac_cv_path_DATE
="$as_dir/$ac_word$ac_exec_ext"
6848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6855 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE
="date"
6859 DATE
=$ac_cv_path_DATE
6860 if test -n "$DATE"; then
6861 { echo "$as_me:$LINENO: result: $DATE" >&5
6862 echo "${ECHO_T}$DATE" >&6; }
6864 { echo "$as_me:$LINENO: result: no" >&5
6865 echo "${ECHO_T}no" >&6; }
6869 # Extract the first word of "find", so it can be a program name with args.
6870 set dummy
find; ac_word
=$2
6871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6873 if test "${ac_cv_path_FIND+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
6881 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6885 test -z "$as_dir" && as_dir
=.
6886 for ac_exec_ext
in '' $ac_executable_extensions; do
6887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6888 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
6889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6896 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="find"
6900 FIND
=$ac_cv_path_FIND
6901 if test -n "$FIND"; then
6902 { echo "$as_me:$LINENO: result: $FIND" >&5
6903 echo "${ECHO_T}$FIND" >&6; }
6905 { echo "$as_me:$LINENO: result: no" >&5
6906 echo "${ECHO_T}no" >&6; }
6910 # Extract the first word of "grep", so it can be a program name with args.
6911 set dummy
grep; ac_word
=$2
6912 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6913 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6914 if test "${ac_cv_path_GREP+set}" = set; then
6915 echo $ECHO_N "(cached) $ECHO_C" >&6
6919 ac_cv_path_GREP
="$GREP" # Let the user override the test with a path.
6922 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6926 test -z "$as_dir" && as_dir
=.
6927 for ac_exec_ext
in '' $ac_executable_extensions; do
6928 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6929 ac_cv_path_GREP
="$as_dir/$ac_word$ac_exec_ext"
6930 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6937 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP
="grep"
6941 GREP
=$ac_cv_path_GREP
6942 if test -n "$GREP"; then
6943 { echo "$as_me:$LINENO: result: $GREP" >&5
6944 echo "${ECHO_T}$GREP" >&6; }
6946 { echo "$as_me:$LINENO: result: no" >&5
6947 echo "${ECHO_T}no" >&6; }
6951 # Extract the first word of "mkdir", so it can be a program name with args.
6952 set dummy mkdir
; ac_word
=$2
6953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6955 if test "${ac_cv_path_MKDIR+set}" = set; then
6956 echo $ECHO_N "(cached) $ECHO_C" >&6
6960 ac_cv_path_MKDIR
="$MKDIR" # Let the user override the test with a path.
6963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6967 test -z "$as_dir" && as_dir
=.
6968 for ac_exec_ext
in '' $ac_executable_extensions; do
6969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6970 ac_cv_path_MKDIR
="$as_dir/$ac_word$ac_exec_ext"
6971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6978 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR
="mkdir"
6982 MKDIR
=$ac_cv_path_MKDIR
6983 if test -n "$MKDIR"; then
6984 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6985 echo "${ECHO_T}$MKDIR" >&6; }
6987 { echo "$as_me:$LINENO: result: no" >&5
6988 echo "${ECHO_T}no" >&6; }
6992 # Extract the first word of "mv", so it can be a program name with args.
6993 set dummy
mv; ac_word
=$2
6994 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6995 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6996 if test "${ac_cv_path_MV+set}" = set; then
6997 echo $ECHO_N "(cached) $ECHO_C" >&6
7001 ac_cv_path_MV
="$MV" # Let the user override the test with a path.
7004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7008 test -z "$as_dir" && as_dir
=.
7009 for ac_exec_ext
in '' $ac_executable_extensions; do
7010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7011 ac_cv_path_MV
="$as_dir/$ac_word$ac_exec_ext"
7012 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 test -z "$ac_cv_path_MV" && ac_cv_path_MV
="mv"
7024 if test -n "$MV"; then
7025 { echo "$as_me:$LINENO: result: $MV" >&5
7026 echo "${ECHO_T}$MV" >&6; }
7028 { echo "$as_me:$LINENO: result: no" >&5
7029 echo "${ECHO_T}no" >&6; }
7033 if test -n "$ac_tool_prefix"; then
7034 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7035 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
7036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7038 if test "${ac_cv_prog_RANLIB+set}" = set; then
7039 echo $ECHO_N "(cached) $ECHO_C" >&6
7041 if test -n "$RANLIB"; then
7042 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
7044 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7048 test -z "$as_dir" && as_dir
=.
7049 for ac_exec_ext
in '' $ac_executable_extensions; do
7050 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7051 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
7052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7061 RANLIB
=$ac_cv_prog_RANLIB
7062 if test -n "$RANLIB"; then
7063 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7064 echo "${ECHO_T}$RANLIB" >&6; }
7066 { echo "$as_me:$LINENO: result: no" >&5
7067 echo "${ECHO_T}no" >&6; }
7072 if test -z "$ac_cv_prog_RANLIB"; then
7073 ac_ct_RANLIB
=$RANLIB
7074 # Extract the first word of "ranlib", so it can be a program name with args.
7075 set dummy ranlib
; ac_word
=$2
7076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7078 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7079 echo $ECHO_N "(cached) $ECHO_C" >&6
7081 if test -n "$ac_ct_RANLIB"; then
7082 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
7084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7088 test -z "$as_dir" && as_dir
=.
7089 for ac_exec_ext
in '' $ac_executable_extensions; do
7090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7091 ac_cv_prog_ac_ct_RANLIB
="ranlib"
7092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7101 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
7102 if test -n "$ac_ct_RANLIB"; then
7103 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7104 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7106 { echo "$as_me:$LINENO: result: no" >&5
7107 echo "${ECHO_T}no" >&6; }
7110 if test "x$ac_ct_RANLIB" = x
; then
7113 case $cross_compiling:$ac_tool_warned in
7115 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7116 whose name does not start with the host triplet. If you think this
7117 configuration is useful to you, please write to autoconf@gnu.org." >&5
7118 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7119 whose name does not start with the host triplet. If you think this
7120 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7121 ac_tool_warned
=yes ;;
7123 RANLIB
=$ac_ct_RANLIB
7126 RANLIB
="$ac_cv_prog_RANLIB"
7129 if test -n "$ac_tool_prefix"; then
7130 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7131 set dummy
${ac_tool_prefix}ar; ac_word
=$2
7132 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7133 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7134 if test "${ac_cv_prog_AR+set}" = set; then
7135 echo $ECHO_N "(cached) $ECHO_C" >&6
7137 if test -n "$AR"; then
7138 ac_cv_prog_AR
="$AR" # Let the user override the test.
7140 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7144 test -z "$as_dir" && as_dir
=.
7145 for ac_exec_ext
in '' $ac_executable_extensions; do
7146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7147 ac_cv_prog_AR
="${ac_tool_prefix}ar"
7148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7158 if test -n "$AR"; then
7159 { echo "$as_me:$LINENO: result: $AR" >&5
7160 echo "${ECHO_T}$AR" >&6; }
7162 { echo "$as_me:$LINENO: result: no" >&5
7163 echo "${ECHO_T}no" >&6; }
7168 if test -z "$ac_cv_prog_AR"; then
7170 # Extract the first word of "ar", so it can be a program name with args.
7171 set dummy
ar; ac_word
=$2
7172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7174 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7175 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 if test -n "$ac_ct_AR"; then
7178 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
7180 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7184 test -z "$as_dir" && as_dir
=.
7185 for ac_exec_ext
in '' $ac_executable_extensions; do
7186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7187 ac_cv_prog_ac_ct_AR
="ar"
7188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7197 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
7198 if test -n "$ac_ct_AR"; then
7199 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7200 echo "${ECHO_T}$ac_ct_AR" >&6; }
7202 { echo "$as_me:$LINENO: result: no" >&5
7203 echo "${ECHO_T}no" >&6; }
7206 if test "x$ac_ct_AR" = x
; then
7209 case $cross_compiling:$ac_tool_warned in
7211 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7212 whose name does not start with the host triplet. If you think this
7213 configuration is useful to you, please write to autoconf@gnu.org." >&5
7214 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7215 whose name does not start with the host triplet. If you think this
7216 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7217 ac_tool_warned
=yes ;;
7225 # Extract the first word of "rm", so it can be a program name with args.
7226 set dummy
rm; ac_word
=$2
7227 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7228 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7229 if test "${ac_cv_path_RM+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 ac_cv_path_RM
="$RM" # Let the user override the test with a path.
7237 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7241 test -z "$as_dir" && as_dir
=.
7242 for ac_exec_ext
in '' $ac_executable_extensions; do
7243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7244 ac_cv_path_RM
="$as_dir/$ac_word$ac_exec_ext"
7245 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7252 test -z "$ac_cv_path_RM" && ac_cv_path_RM
="rm"
7257 if test -n "$RM"; then
7258 { echo "$as_me:$LINENO: result: $RM" >&5
7259 echo "${ECHO_T}$RM" >&6; }
7261 { echo "$as_me:$LINENO: result: no" >&5
7262 echo "${ECHO_T}no" >&6; }
7266 # Extract the first word of "sed", so it can be a program name with args.
7267 set dummy
sed; ac_word
=$2
7268 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7269 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7270 if test "${ac_cv_path_SED+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7275 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
7278 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7282 test -z "$as_dir" && as_dir
=.
7283 for ac_exec_ext
in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
7286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7293 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="sed"
7298 if test -n "$SED"; then
7299 { echo "$as_me:$LINENO: result: $SED" >&5
7300 echo "${ECHO_T}$SED" >&6; }
7302 { echo "$as_me:$LINENO: result: no" >&5
7303 echo "${ECHO_T}no" >&6; }
7307 # Extract the first word of "tar", so it can be a program name with args.
7308 set dummy
tar; ac_word
=$2
7309 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7310 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7311 if test "${ac_cv_path_TAR+set}" = set; then
7312 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7319 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7323 test -z "$as_dir" && as_dir
=.
7324 for ac_exec_ext
in '' $ac_executable_extensions; do
7325 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7326 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7334 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR
="gtar"
7339 if test -n "$TAR"; then
7340 { echo "$as_me:$LINENO: result: $TAR" >&5
7341 echo "${ECHO_T}$TAR" >&6; }
7343 { echo "$as_me:$LINENO: result: no" >&5
7344 echo "${ECHO_T}no" >&6; }
7348 # Extract the first word of "pwd", so it can be a program name with args.
7349 set dummy
pwd; ac_word
=$2
7350 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7351 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7352 if test "${ac_cv_path_BINPWD+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7357 ac_cv_path_BINPWD
="$BINPWD" # Let the user override the test with a path.
7360 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7364 test -z "$as_dir" && as_dir
=.
7365 for ac_exec_ext
in '' $ac_executable_extensions; do
7366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7367 ac_cv_path_BINPWD
="$as_dir/$ac_word$ac_exec_ext"
7368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7375 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD
="pwd"
7379 BINPWD
=$ac_cv_path_BINPWD
7380 if test -n "$BINPWD"; then
7381 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7382 echo "${ECHO_T}$BINPWD" >&6; }
7384 { echo "$as_me:$LINENO: result: no" >&5
7385 echo "${ECHO_T}no" >&6; }
7390 # Extract the first word of "Graphviz", so it can be a program name with args.
7391 set dummy Graphviz
; ac_word
=$2
7392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7394 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 ac_cv_path_GRAPHVIZ
="$GRAPHVIZ" # Let the user override the test with a path.
7402 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7406 test -z "$as_dir" && as_dir
=.
7407 for ac_exec_ext
in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_path_GRAPHVIZ
="$as_dir/$ac_word$ac_exec_ext"
7410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7417 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ
="echo Graphviz"
7421 GRAPHVIZ
=$ac_cv_path_GRAPHVIZ
7422 if test -n "$GRAPHVIZ"; then
7423 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7424 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7426 { echo "$as_me:$LINENO: result: no" >&5
7427 echo "${ECHO_T}no" >&6; }
7431 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7433 cat >>confdefs.h
<<\_ACEOF
7434 #define HAVE_GRAPHVIZ 1
7437 if test "$llvm_cv_os_type" = "MingW" ; then
7438 GRAPHVIZ
=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7441 cat >>confdefs.h
<<_ACEOF
7442 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7446 # Extract the first word of "dot", so it can be a program name with args.
7447 set dummy dot
; ac_word
=$2
7448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7450 if test "${ac_cv_path_DOT+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7455 ac_cv_path_DOT
="$DOT" # Let the user override the test with a path.
7458 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7462 test -z "$as_dir" && as_dir
=.
7463 for ac_exec_ext
in '' $ac_executable_extensions; do
7464 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7465 ac_cv_path_DOT
="$as_dir/$ac_word$ac_exec_ext"
7466 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7473 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT
="echo dot"
7478 if test -n "$DOT"; then
7479 { echo "$as_me:$LINENO: result: $DOT" >&5
7480 echo "${ECHO_T}$DOT" >&6; }
7482 { echo "$as_me:$LINENO: result: no" >&5
7483 echo "${ECHO_T}no" >&6; }
7487 if test "$DOT" != "echo dot" ; then
7489 cat >>confdefs.h
<<\_ACEOF
7493 if test "$llvm_cv_os_type" = "MingW" ; then
7494 DOT
=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7497 cat >>confdefs.h
<<_ACEOF
7498 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7502 # Extract the first word of "fdp", so it can be a program name with args.
7503 set dummy fdp
; ac_word
=$2
7504 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7506 if test "${ac_cv_path_FDP+set}" = set; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7511 ac_cv_path_FDP
="$FDP" # Let the user override the test with a path.
7514 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7518 test -z "$as_dir" && as_dir
=.
7519 for ac_exec_ext
in '' $ac_executable_extensions; do
7520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7521 ac_cv_path_FDP
="$as_dir/$ac_word$ac_exec_ext"
7522 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7529 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP
="echo fdp"
7534 if test -n "$FDP"; then
7535 { echo "$as_me:$LINENO: result: $FDP" >&5
7536 echo "${ECHO_T}$FDP" >&6; }
7538 { echo "$as_me:$LINENO: result: no" >&5
7539 echo "${ECHO_T}no" >&6; }
7543 if test "$FDP" != "echo fdp" ; then
7545 cat >>confdefs.h
<<\_ACEOF
7549 if test "$llvm_cv_os_type" = "MingW" ; then
7550 FDP
=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7553 cat >>confdefs.h
<<_ACEOF
7554 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7558 # Extract the first word of "neato", so it can be a program name with args.
7559 set dummy neato
; ac_word
=$2
7560 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7562 if test "${ac_cv_path_NEATO+set}" = set; then
7563 echo $ECHO_N "(cached) $ECHO_C" >&6
7567 ac_cv_path_NEATO
="$NEATO" # Let the user override the test with a path.
7570 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7574 test -z "$as_dir" && as_dir
=.
7575 for ac_exec_ext
in '' $ac_executable_extensions; do
7576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7577 ac_cv_path_NEATO
="$as_dir/$ac_word$ac_exec_ext"
7578 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7585 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO
="echo neato"
7589 NEATO
=$ac_cv_path_NEATO
7590 if test -n "$NEATO"; then
7591 { echo "$as_me:$LINENO: result: $NEATO" >&5
7592 echo "${ECHO_T}$NEATO" >&6; }
7594 { echo "$as_me:$LINENO: result: no" >&5
7595 echo "${ECHO_T}no" >&6; }
7599 if test "$NEATO" != "echo neato" ; then
7601 cat >>confdefs.h
<<\_ACEOF
7602 #define HAVE_NEATO 1
7605 if test "$llvm_cv_os_type" = "MingW" ; then
7606 NEATO
=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7609 cat >>confdefs.h
<<_ACEOF
7610 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7614 # Extract the first word of "twopi", so it can be a program name with args.
7615 set dummy twopi
; ac_word
=$2
7616 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7617 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7618 if test "${ac_cv_path_TWOPI+set}" = set; then
7619 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 ac_cv_path_TWOPI
="$TWOPI" # Let the user override the test with a path.
7626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7630 test -z "$as_dir" && as_dir
=.
7631 for ac_exec_ext
in '' $ac_executable_extensions; do
7632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7633 ac_cv_path_TWOPI
="$as_dir/$ac_word$ac_exec_ext"
7634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7641 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI
="echo twopi"
7645 TWOPI
=$ac_cv_path_TWOPI
7646 if test -n "$TWOPI"; then
7647 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7648 echo "${ECHO_T}$TWOPI" >&6; }
7650 { echo "$as_me:$LINENO: result: no" >&5
7651 echo "${ECHO_T}no" >&6; }
7655 if test "$TWOPI" != "echo twopi" ; then
7657 cat >>confdefs.h
<<\_ACEOF
7658 #define HAVE_TWOPI 1
7661 if test "$llvm_cv_os_type" = "MingW" ; then
7662 TWOPI
=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7665 cat >>confdefs.h
<<_ACEOF
7666 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7670 # Extract the first word of "circo", so it can be a program name with args.
7671 set dummy circo
; ac_word
=$2
7672 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7673 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7674 if test "${ac_cv_path_CIRCO+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7679 ac_cv_path_CIRCO
="$CIRCO" # Let the user override the test with a path.
7682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7686 test -z "$as_dir" && as_dir
=.
7687 for ac_exec_ext
in '' $ac_executable_extensions; do
7688 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7689 ac_cv_path_CIRCO
="$as_dir/$ac_word$ac_exec_ext"
7690 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7697 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO
="echo circo"
7701 CIRCO
=$ac_cv_path_CIRCO
7702 if test -n "$CIRCO"; then
7703 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7704 echo "${ECHO_T}$CIRCO" >&6; }
7706 { echo "$as_me:$LINENO: result: no" >&5
7707 echo "${ECHO_T}no" >&6; }
7711 if test "$CIRCO" != "echo circo" ; then
7713 cat >>confdefs.h
<<\_ACEOF
7714 #define HAVE_CIRCO 1
7717 if test "$llvm_cv_os_type" = "MingW" ; then
7718 CIRCO
=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7721 cat >>confdefs.h
<<_ACEOF
7722 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7726 for ac_prog
in gv gsview32
7728 # Extract the first word of "$ac_prog", so it can be a program name with args.
7729 set dummy
$ac_prog; ac_word
=$2
7730 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7731 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7732 if test "${ac_cv_path_GV+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 ac_cv_path_GV
="$GV" # Let the user override the test with a path.
7740 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7744 test -z "$as_dir" && as_dir
=.
7745 for ac_exec_ext
in '' $ac_executable_extensions; do
7746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7747 ac_cv_path_GV
="$as_dir/$ac_word$ac_exec_ext"
7748 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 if test -n "$GV"; then
7760 { echo "$as_me:$LINENO: result: $GV" >&5
7761 echo "${ECHO_T}$GV" >&6; }
7763 { echo "$as_me:$LINENO: result: no" >&5
7764 echo "${ECHO_T}no" >&6; }
7768 test -n "$GV" && break
7770 test -n "$GV" || GV
="echo gv"
7772 if test "$GV" != "echo gv" ; then
7774 cat >>confdefs.h
<<\_ACEOF
7778 if test "$llvm_cv_os_type" = "MingW" ; then
7779 GV
=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7782 cat >>confdefs.h
<<_ACEOF
7783 #define LLVM_PATH_GV "$GV${EXEEXT}"
7787 # Extract the first word of "dotty", so it can be a program name with args.
7788 set dummy dotty
; ac_word
=$2
7789 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7790 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7791 if test "${ac_cv_path_DOTTY+set}" = set; then
7792 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 ac_cv_path_DOTTY
="$DOTTY" # Let the user override the test with a path.
7799 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7803 test -z "$as_dir" && as_dir
=.
7804 for ac_exec_ext
in '' $ac_executable_extensions; do
7805 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7806 ac_cv_path_DOTTY
="$as_dir/$ac_word$ac_exec_ext"
7807 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7814 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY
="echo dotty"
7818 DOTTY
=$ac_cv_path_DOTTY
7819 if test -n "$DOTTY"; then
7820 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7821 echo "${ECHO_T}$DOTTY" >&6; }
7823 { echo "$as_me:$LINENO: result: no" >&5
7824 echo "${ECHO_T}no" >&6; }
7828 if test "$DOTTY" != "echo dotty" ; then
7830 cat >>confdefs.h
<<\_ACEOF
7831 #define HAVE_DOTTY 1
7834 if test "$llvm_cv_os_type" = "MingW" ; then
7835 DOTTY
=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7838 cat >>confdefs.h
<<_ACEOF
7839 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7843 # Extract the first word of "xdot.py", so it can be a program name with args.
7844 set dummy xdot.py
; ac_word
=$2
7845 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7846 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7847 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 ac_cv_path_XDOT_PY
="$XDOT_PY" # Let the user override the test with a path.
7855 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7859 test -z "$as_dir" && as_dir
=.
7860 for ac_exec_ext
in '' $ac_executable_extensions; do
7861 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7862 ac_cv_path_XDOT_PY
="$as_dir/$ac_word$ac_exec_ext"
7863 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7870 test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY
="echo xdot.py"
7874 XDOT_PY
=$ac_cv_path_XDOT_PY
7875 if test -n "$XDOT_PY"; then
7876 { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7877 echo "${ECHO_T}$XDOT_PY" >&6; }
7879 { echo "$as_me:$LINENO: result: no" >&5
7880 echo "${ECHO_T}no" >&6; }
7884 if test "$XDOT_PY" != "echo xdot.py" ; then
7886 cat >>confdefs.h
<<\_ACEOF
7887 #define HAVE_XDOT_PY 1
7890 if test "$llvm_cv_os_type" = "MingW" ; then
7891 XDOT_PY
=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7894 cat >>confdefs.h
<<_ACEOF
7895 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7901 # Extract the first word of "perl", so it can be a program name with args.
7902 set dummy perl
; ac_word
=$2
7903 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7904 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7905 if test "${ac_cv_path_PERL+set}" = set; then
7906 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 ac_cv_path_PERL
="$PERL" # Let the user override the test with a path.
7913 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7917 test -z "$as_dir" && as_dir
=.
7918 for ac_exec_ext
in '' $ac_executable_extensions; do
7919 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7920 ac_cv_path_PERL
="$as_dir/$ac_word$ac_exec_ext"
7921 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7928 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL
="none"
7932 PERL
=$ac_cv_path_PERL
7933 if test -n "$PERL"; then
7934 { echo "$as_me:$LINENO: result: $PERL" >&5
7935 echo "${ECHO_T}$PERL" >&6; }
7937 { echo "$as_me:$LINENO: result: no" >&5
7938 echo "${ECHO_T}no" >&6; }
7942 if test "$PERL" != "none"; then
7943 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7944 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7945 if $PERL -e 'use 5.006;' 2>&1 > /dev
/null
; then
7946 { echo "$as_me:$LINENO: result: yes" >&5
7947 echo "${ECHO_T}yes" >&6; }
7950 { echo "$as_me:$LINENO: result: not found" >&5
7951 echo "${ECHO_T}not found" >&6; }
7956 if test x
"$PERL" = xnone
; then
7959 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7960 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7961 { (exit 1); exit 1; }; }
7967 # Find a good install program. We prefer a C program (faster),
7968 # so one script is as good as another. But avoid the broken or
7969 # incompatible versions:
7970 # SysV /etc/install, /usr/sbin/install
7971 # SunOS /usr/etc/install
7972 # IRIX /sbin/install
7974 # AmigaOS /C/install, which installs bootblocks on floppy discs
7975 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7976 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7977 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7978 # OS/2's system install, which has a completely different semantic
7979 # ./install, which can be erroneously created by make from ./install.sh.
7980 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7981 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7982 if test -z "$INSTALL"; then
7983 if test "${ac_cv_path_install+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7990 test -z "$as_dir" && as_dir
=.
7991 # Account for people who put trailing slashes in PATH elements.
7993 .
/ | .
// |
/cC
/* | \
7994 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
7995 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
7998 # OSF1 and SCO ODT 3.0 have their own names for install.
7999 # Don't use installbsd from OSF since it installs stuff as root
8001 for ac_prog
in ginstall scoinst
install; do
8002 for ac_exec_ext
in '' $ac_executable_extensions; do
8003 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8004 if test $ac_prog = install &&
8005 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8006 # AIX install. It has an incompatible calling convention.
8008 elif test $ac_prog = install &&
8009 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
8010 # program-specific install script used by HP pwplus--don't use.
8013 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
8026 if test "${ac_cv_path_install+set}" = set; then
8027 INSTALL
=$ac_cv_path_install
8029 # As a last resort, use the slow shell script. Don't cache a
8030 # value for INSTALL within a source directory, because that will
8031 # break other packages using the cache if that directory is
8032 # removed, or if the value is a relative name.
8033 INSTALL
=$ac_install_sh
8036 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8037 echo "${ECHO_T}$INSTALL" >&6; }
8039 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8040 # It thinks the first close brace ends the variable substitution.
8041 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
8043 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
8045 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
8048 [\\/$
]* | ?
:[\\/]* ) ;;
8049 *) INSTALL
="\\\$(TOPSRCDIR)/$INSTALL" ;;
8052 # Extract the first word of "bzip2", so it can be a program name with args.
8053 set dummy
bzip2; ac_word
=$2
8054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8056 if test "${ac_cv_path_BZIP2+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
8064 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8068 test -z "$as_dir" && as_dir
=.
8069 for ac_exec_ext
in '' $ac_executable_extensions; do
8070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8071 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
8072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8082 BZIP2
=$ac_cv_path_BZIP2
8083 if test -n "$BZIP2"; then
8084 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8085 echo "${ECHO_T}$BZIP2" >&6; }
8087 { echo "$as_me:$LINENO: result: no" >&5
8088 echo "${ECHO_T}no" >&6; }
8092 # Extract the first word of "cat", so it can be a program name with args.
8093 set dummy
cat; ac_word
=$2
8094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8096 if test "${ac_cv_path_CAT+set}" = set; then
8097 echo $ECHO_N "(cached) $ECHO_C" >&6
8101 ac_cv_path_CAT
="$CAT" # Let the user override the test with a path.
8104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8108 test -z "$as_dir" && as_dir
=.
8109 for ac_exec_ext
in '' $ac_executable_extensions; do
8110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8111 ac_cv_path_CAT
="$as_dir/$ac_word$ac_exec_ext"
8112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 if test -n "$CAT"; then
8124 { echo "$as_me:$LINENO: result: $CAT" >&5
8125 echo "${ECHO_T}$CAT" >&6; }
8127 { echo "$as_me:$LINENO: result: no" >&5
8128 echo "${ECHO_T}no" >&6; }
8132 # Extract the first word of "doxygen", so it can be a program name with args.
8133 set dummy doxygen
; ac_word
=$2
8134 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8135 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8136 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8137 echo $ECHO_N "(cached) $ECHO_C" >&6
8141 ac_cv_path_DOXYGEN
="$DOXYGEN" # Let the user override the test with a path.
8144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8148 test -z "$as_dir" && as_dir
=.
8149 for ac_exec_ext
in '' $ac_executable_extensions; do
8150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8151 ac_cv_path_DOXYGEN
="$as_dir/$ac_word$ac_exec_ext"
8152 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8162 DOXYGEN
=$ac_cv_path_DOXYGEN
8163 if test -n "$DOXYGEN"; then
8164 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8165 echo "${ECHO_T}$DOXYGEN" >&6; }
8167 { echo "$as_me:$LINENO: result: no" >&5
8168 echo "${ECHO_T}no" >&6; }
8172 # Extract the first word of "groff", so it can be a program name with args.
8173 set dummy
groff; ac_word
=$2
8174 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8175 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8176 if test "${ac_cv_path_GROFF+set}" = set; then
8177 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 ac_cv_path_GROFF
="$GROFF" # Let the user override the test with a path.
8184 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8188 test -z "$as_dir" && as_dir
=.
8189 for ac_exec_ext
in '' $ac_executable_extensions; do
8190 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8191 ac_cv_path_GROFF
="$as_dir/$ac_word$ac_exec_ext"
8192 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8202 GROFF
=$ac_cv_path_GROFF
8203 if test -n "$GROFF"; then
8204 { echo "$as_me:$LINENO: result: $GROFF" >&5
8205 echo "${ECHO_T}$GROFF" >&6; }
8207 { echo "$as_me:$LINENO: result: no" >&5
8208 echo "${ECHO_T}no" >&6; }
8212 # Extract the first word of "gzip", so it can be a program name with args.
8213 set dummy
gzip; ac_word
=$2
8214 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8215 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8216 if test "${ac_cv_path_GZIP+set}" = set; then
8217 echo $ECHO_N "(cached) $ECHO_C" >&6
8221 ac_cv_path_GZIP
="$GZIP" # Let the user override the test with a path.
8224 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8228 test -z "$as_dir" && as_dir
=.
8229 for ac_exec_ext
in '' $ac_executable_extensions; do
8230 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8231 ac_cv_path_GZIP
="$as_dir/$ac_word$ac_exec_ext"
8232 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8242 GZIP
=$ac_cv_path_GZIP
8243 if test -n "$GZIP"; then
8244 { echo "$as_me:$LINENO: result: $GZIP" >&5
8245 echo "${ECHO_T}$GZIP" >&6; }
8247 { echo "$as_me:$LINENO: result: no" >&5
8248 echo "${ECHO_T}no" >&6; }
8252 # Extract the first word of "pod2html", so it can be a program name with args.
8253 set dummy pod2html
; ac_word
=$2
8254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8256 if test "${ac_cv_path_POD2HTML+set}" = set; then
8257 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 ac_cv_path_POD2HTML
="$POD2HTML" # Let the user override the test with a path.
8264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8268 test -z "$as_dir" && as_dir
=.
8269 for ac_exec_ext
in '' $ac_executable_extensions; do
8270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8271 ac_cv_path_POD2HTML
="$as_dir/$ac_word$ac_exec_ext"
8272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8282 POD2HTML
=$ac_cv_path_POD2HTML
8283 if test -n "$POD2HTML"; then
8284 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8285 echo "${ECHO_T}$POD2HTML" >&6; }
8287 { echo "$as_me:$LINENO: result: no" >&5
8288 echo "${ECHO_T}no" >&6; }
8292 # Extract the first word of "pod2man", so it can be a program name with args.
8293 set dummy pod2man
; ac_word
=$2
8294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8296 if test "${ac_cv_path_POD2MAN+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir
=.
8309 for ac_exec_ext
in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 POD2MAN
=$ac_cv_path_POD2MAN
8323 if test -n "$POD2MAN"; then
8324 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8325 echo "${ECHO_T}$POD2MAN" >&6; }
8327 { echo "$as_me:$LINENO: result: no" >&5
8328 echo "${ECHO_T}no" >&6; }
8332 # Extract the first word of "pdfroff", so it can be a program name with args.
8333 set dummy pdfroff
; ac_word
=$2
8334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8336 if test "${ac_cv_path_PDFROFF+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8341 ac_cv_path_PDFROFF
="$PDFROFF" # Let the user override the test with a path.
8344 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8348 test -z "$as_dir" && as_dir
=.
8349 for ac_exec_ext
in '' $ac_executable_extensions; do
8350 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8351 ac_cv_path_PDFROFF
="$as_dir/$ac_word$ac_exec_ext"
8352 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8362 PDFROFF
=$ac_cv_path_PDFROFF
8363 if test -n "$PDFROFF"; then
8364 { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8365 echo "${ECHO_T}$PDFROFF" >&6; }
8367 { echo "$as_me:$LINENO: result: no" >&5
8368 echo "${ECHO_T}no" >&6; }
8372 # Extract the first word of "runtest", so it can be a program name with args.
8373 set dummy runtest
; ac_word
=$2
8374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8376 if test "${ac_cv_path_RUNTEST+set}" = set; then
8377 echo $ECHO_N "(cached) $ECHO_C" >&6
8381 ac_cv_path_RUNTEST
="$RUNTEST" # Let the user override the test with a path.
8384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8388 test -z "$as_dir" && as_dir
=.
8389 for ac_exec_ext
in '' $ac_executable_extensions; do
8390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8391 ac_cv_path_RUNTEST
="$as_dir/$ac_word$ac_exec_ext"
8392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8402 RUNTEST
=$ac_cv_path_RUNTEST
8403 if test -n "$RUNTEST"; then
8404 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8405 echo "${ECHO_T}$RUNTEST" >&6; }
8407 { echo "$as_me:$LINENO: result: no" >&5
8408 echo "${ECHO_T}no" >&6; }
8414 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8415 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8417 # Check whether --with-tclinclude was given.
8418 if test "${with_tclinclude+set}" = set; then
8419 withval
=$with_tclinclude; with_tclinclude
=${withval}
8424 if test "${ac_cv_path_tclsh+set}" = set; then
8425 echo $ECHO_N "(cached) $ECHO_C" >&6
8428 if test x
"${with_tclinclude}" != x
; then
8429 if test -f ${with_tclinclude}/tclsh
; then
8430 ac_cv_path_tclsh
=`(cd ${with_tclinclude}; pwd)`
8431 elif test -f ${with_tclinclude}/src
/tclsh
; then
8432 ac_cv_path_tclsh
=`(cd ${with_tclinclude}/src; pwd)`
8434 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8435 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8436 { (exit 1); exit 1; }; }
8442 if test x
"${ac_cv_path_tclsh}" = x
; then
8443 { echo "$as_me:$LINENO: result: none" >&5
8444 echo "${ECHO_T}none" >&6; }
8445 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
8447 # Extract the first word of "$ac_prog", so it can be a program name with args.
8448 set dummy
$ac_prog; ac_word
=$2
8449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8451 if test "${ac_cv_path_TCLSH+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8456 ac_cv_path_TCLSH
="$TCLSH" # Let the user override the test with a path.
8459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8463 test -z "$as_dir" && as_dir
=.
8464 for ac_exec_ext
in '' $ac_executable_extensions; do
8465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8466 ac_cv_path_TCLSH
="$as_dir/$ac_word$ac_exec_ext"
8467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8477 TCLSH
=$ac_cv_path_TCLSH
8478 if test -n "$TCLSH"; then
8479 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8480 echo "${ECHO_T}$TCLSH" >&6; }
8482 { echo "$as_me:$LINENO: result: no" >&5
8483 echo "${ECHO_T}no" >&6; }
8487 test -n "$TCLSH" && break
8490 if test x
"${TCLSH}" = x
; then
8491 ac_cv_path_tclsh
='';
8493 ac_cv_path_tclsh
="${TCLSH}";
8496 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8497 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8498 TCLSH="${ac_cv_path_tclsh}"
8502 # Extract the first word of "zip", so it can be a program name with args.
8503 set dummy zip; ac_word=$2
8504 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8505 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8506 if test "${ac_cv_path_ZIP+set}" = set; then
8507 echo $ECHO_N "(cached
) $ECHO_C" >&6
8511 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8521 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8522 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8533 if test -n "$ZIP"; then
8534 { echo "$as_me:$LINENO: result
: $ZIP" >&5
8535 echo "${ECHO_T}$ZIP" >&6; }
8537 { echo "$as_me:$LINENO: result
: no
" >&5
8538 echo "${ECHO_T}no
" >&6; }
8542 for ac_prog in ocamlc
8544 # Extract the first word of "$ac_prog", so it can be a program name with args.
8545 set dummy $ac_prog; ac_word=$2
8546 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8547 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8548 if test "${ac_cv_path_OCAMLC+set}" = set; then
8549 echo $ECHO_N "(cached
) $ECHO_C" >&6
8553 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8560 test -z "$as_dir" && as_dir=.
8561 for ac_exec_ext in '' $ac_executable_extensions; do
8562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8563 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8564 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8574 OCAMLC=$ac_cv_path_OCAMLC
8575 if test -n "$OCAMLC"; then
8576 { echo "$as_me:$LINENO: result
: $OCAMLC" >&5
8577 echo "${ECHO_T}$OCAMLC" >&6; }
8579 { echo "$as_me:$LINENO: result
: no
" >&5
8580 echo "${ECHO_T}no
" >&6; }
8584 test -n "$OCAMLC" && break
8587 for ac_prog in ocamlopt
8589 # Extract the first word of "$ac_prog", so it can be a program name with args.
8590 set dummy $ac_prog; ac_word=$2
8591 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8592 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8593 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8594 echo $ECHO_N "(cached
) $ECHO_C" >&6
8598 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 test -z "$as_dir" && as_dir=.
8606 for ac_exec_ext in '' $ac_executable_extensions; do
8607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8608 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8609 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8619 OCAMLOPT=$ac_cv_path_OCAMLOPT
8620 if test -n "$OCAMLOPT"; then
8621 { echo "$as_me:$LINENO: result
: $OCAMLOPT" >&5
8622 echo "${ECHO_T}$OCAMLOPT" >&6; }
8624 { echo "$as_me:$LINENO: result
: no
" >&5
8625 echo "${ECHO_T}no
" >&6; }
8629 test -n "$OCAMLOPT" && break
8632 for ac_prog in ocamldep
8634 # Extract the first word of "$ac_prog", so it can be a program name with args.
8635 set dummy $ac_prog; ac_word=$2
8636 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8637 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8638 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8639 echo $ECHO_N "(cached
) $ECHO_C" >&6
8643 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8654 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8664 OCAMLDEP=$ac_cv_path_OCAMLDEP
8665 if test -n "$OCAMLDEP"; then
8666 { echo "$as_me:$LINENO: result
: $OCAMLDEP" >&5
8667 echo "${ECHO_T}$OCAMLDEP" >&6; }
8669 { echo "$as_me:$LINENO: result
: no
" >&5
8670 echo "${ECHO_T}no
" >&6; }
8674 test -n "$OCAMLDEP" && break
8677 for ac_prog in ocamldoc
8679 # Extract the first word of "$ac_prog", so it can be a program name with args.
8680 set dummy $ac_prog; ac_word=$2
8681 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8682 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8683 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8684 echo $ECHO_N "(cached
) $ECHO_C" >&6
8688 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 test -z "$as_dir" && as_dir=.
8696 for ac_exec_ext in '' $ac_executable_extensions; do
8697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8698 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8699 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8709 OCAMLDOC=$ac_cv_path_OCAMLDOC
8710 if test -n "$OCAMLDOC"; then
8711 { echo "$as_me:$LINENO: result
: $OCAMLDOC" >&5
8712 echo "${ECHO_T}$OCAMLDOC" >&6; }
8714 { echo "$as_me:$LINENO: result
: no
" >&5
8715 echo "${ECHO_T}no
" >&6; }
8719 test -n "$OCAMLDOC" && break
8722 for ac_prog in gas as
8724 # Extract the first word of "$ac_prog", so it can be a program name with args.
8725 set dummy $ac_prog; ac_word=$2
8726 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
8727 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
8728 if test "${ac_cv_path_GAS+set}" = set; then
8729 echo $ECHO_N "(cached
) $ECHO_C" >&6
8733 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8743 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8744 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
8755 if test -n "$GAS"; then
8756 { echo "$as_me:$LINENO: result
: $GAS" >&5
8757 echo "${ECHO_T}$GAS" >&6; }
8759 { echo "$as_me:$LINENO: result
: no
" >&5
8760 echo "${ECHO_T}no
" >&6; }
8764 test -n "$GAS" && break
8768 { echo "$as_me:$LINENO: checking
for linker version
" >&5
8769 echo $ECHO_N "checking
for linker version...
$ECHO_C" >&6; }
8770 if test "${llvm_cv_link_version+set}" = set; then
8771 echo $ECHO_N "(cached
) $ECHO_C" >&6
8774 version_string="$
(ld
-v 2>&1 |
head -1)"
8777 if (echo "$version_string" | grep -q "ld64
"); then
8778 llvm_cv_link_version=$(echo "$version_string" | sed -e "s
#.*ld64-\([^ ]*\)#\1#")
8780 llvm_cv_link_version
=$
(echo "$version_string" |
sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8784 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8785 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8787 cat >>confdefs.h
<<_ACEOF
8788 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8793 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8794 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8795 if test "${llvm_cv_link_use_r+set}" = set; then
8796 echo $ECHO_N "(cached) $ECHO_C" >&6
8799 ac_cpp
='$CPP $CPPFLAGS'
8800 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8801 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8802 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8805 CFLAGS
="$CFLAGS -Wl,-R."
8806 cat >conftest.
$ac_ext <<_ACEOF
8809 cat confdefs.h
>>conftest.
$ac_ext
8810 cat >>conftest.
$ac_ext <<_ACEOF
8811 /* end confdefs.h. */
8821 rm -f conftest.
$ac_objext conftest
$ac_exeext
8822 if { (ac_try
="$ac_link"
8824 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8825 *) ac_try_echo=$ac_try;;
8827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8828 (eval "$ac_link") 2>conftest.er1
8830 grep -v '^ *+' conftest.er1 >conftest.err
8832 cat conftest.err >&5
8833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8834 (exit $ac_status); } &&
8835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8836 { (case "(($ac_try" in
8837 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8838 *) ac_try_echo
=$ac_try;;
8840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8841 (eval "$ac_try") 2>&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); }; } &&
8845 { ac_try
='test -s conftest$ac_exeext'
8846 { (case "(($ac_try" in
8847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8851 (eval "$ac_try") 2>&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); }; }; then
8855 llvm_cv_link_use_r=yes
8857 echo "$as_me: failed program was:" >&5
8858 sed 's/^/| /' conftest.$ac_ext >&5
8860 llvm_cv_link_use_r=no
8863 rm -f core conftest.err conftest.$ac_objext \
8864 conftest$ac_exeext conftest.$ac_ext
8867 ac_cpp='$CPP $CPPFLAGS'
8868 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8869 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8870 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8874 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8875 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8876 if test "$llvm_cv_link_use_r" = yes ; then
8878 cat >>confdefs.h <<\_ACEOF
8879 #define HAVE_LINK_R 1
8885 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8886 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8887 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8888 echo $ECHO_N "(cached) $ECHO_C" >&6
8891 ac_cpp='$CPP $CPPFLAGS'
8892 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8893 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8894 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8897 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8898 cat >conftest.$ac_ext <<_ACEOF
8901 cat confdefs.h >>conftest.$ac_ext
8902 cat >>conftest.$ac_ext <<_ACEOF
8903 /* end confdefs.h. */
8913 rm -f conftest.$ac_objext conftest$ac_exeext
8914 if { (ac_try="$ac_link"
8916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8917 *) ac_try_echo
=$ac_try;;
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_link") 2>conftest.er1
8922 grep -v '^ *+' conftest.er1
>conftest.err
8924 cat conftest.err
>&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } &&
8927 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8928 { (case "(($ac_try" in
8929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_try") 2>&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); }; } &&
8937 { ac_try='test -s conftest$ac_exeext'
8938 { (case "(($ac_try" in
8939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8940 *) ac_try_echo
=$ac_try;;
8942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8943 (eval "$ac_try") 2>&5
8945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8946 (exit $ac_status); }; }; then
8947 llvm_cv_link_use_export_dynamic
=yes
8949 echo "$as_me: failed program was:" >&5
8950 sed 's/^/| /' conftest.
$ac_ext >&5
8952 llvm_cv_link_use_export_dynamic
=no
8955 rm -f core conftest.err conftest.
$ac_objext \
8956 conftest
$ac_exeext conftest.
$ac_ext
8959 ac_cpp
='$CPP $CPPFLAGS'
8960 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8961 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8962 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8966 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8967 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8968 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8970 cat >>confdefs.h
<<\_ACEOF
8971 #define HAVE_LINK_EXPORT_DYNAMIC 1
8977 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8978 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8979 if test "${llvm_cv_link_use_version_script+set}" = set; then
8980 echo $ECHO_N "(cached) $ECHO_C" >&6
8983 ac_cpp
='$CPP $CPPFLAGS'
8984 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8985 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8986 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8990 # The following code is from the autoconf manual,
8991 # "11.13: Limitations of Usual Tools".
8992 # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8993 # Use mktemp if possible; otherwise fall back on mkdir,
8994 # with $RANDOM to make collisions less likely.
8998 (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9000 test -n "$tmp" && test -d "$tmp"
9002 tmp
=$TMPDIR/foo$$
-$RANDOM
9003 (umask 077 && mkdir
"$tmp")
9006 echo "{" > "$tmp/export.map"
9007 echo " global: main;" >> "$tmp/export.map"
9008 echo " local: *;" >> "$tmp/export.map"
9009 echo "};" >> "$tmp/export.map"
9011 CFLAGS
="$CFLAGS -Wl,--version-script=$tmp/export.map"
9012 cat >conftest.
$ac_ext <<_ACEOF
9015 cat confdefs.h
>>conftest.
$ac_ext
9016 cat >>conftest.
$ac_ext <<_ACEOF
9017 /* end confdefs.h. */
9027 rm -f conftest.
$ac_objext conftest
$ac_exeext
9028 if { (ac_try
="$ac_link"
9030 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9031 *) ac_try_echo=$ac_try;;
9033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9034 (eval "$ac_link") 2>conftest.er1
9036 grep -v '^ *+' conftest.er1 >conftest.err
9038 cat conftest.err >&5
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); } &&
9041 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9042 { (case "(($ac_try" in
9043 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9044 *) ac_try_echo
=$ac_try;;
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_try") 2>&5
9049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9050 (exit $ac_status); }; } &&
9051 { ac_try
='test -s conftest$ac_exeext'
9052 { (case "(($ac_try" in
9053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9054 *) ac_try_echo=$ac_try;;
9056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9057 (eval "$ac_try") 2>&5
9059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9060 (exit $ac_status); }; }; then
9061 llvm_cv_link_use_version_script=yes
9063 echo "$as_me: failed program was:" >&5
9064 sed 's/^/| /' conftest.$ac_ext >&5
9066 llvm_cv_link_use_version_script=no
9069 rm -f core conftest.err conftest.$ac_objext \
9070 conftest$ac_exeext conftest.$ac_ext
9071 rm "$tmp/export.map"
9075 ac_cpp='$CPP $CPPFLAGS'
9076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9082 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9083 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9084 if test "$llvm_cv_link_use_version_script" = yes ; then
9085 HAVE_LINK_VERSION_SCRIPT=1
9092 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9093 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9094 if test "${ac_cv_c_const+set}" = set; then
9095 echo $ECHO_N "(cached) $ECHO_C" >&6
9097 cat >conftest.$ac_ext <<_ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9107 /* FIXME: Include the comments suggested by Paul. */
9109 /* Ultrix mips cc rejects this. */
9110 typedef int charset[2];
9112 /* SunOS 4.1.1 cc rejects this. */
9113 char const *const *ccp;
9115 /* NEC SVR4.0.2 mips cc rejects this. */
9116 struct point {int x, y;};
9117 static struct point const zero = {0,0};
9118 /* AIX XL C 1.02.0.0 rejects this.
9119 It does not let you subtract one const X* pointer from another in
9120 an arm of an if-expression whose if-part is not a constant
9122 const char *g = "string";
9123 ccp = &g + (g ? g-g : 0);
9124 /* HPUX 7.0 cc rejects these. */
9127 ccp = (char const *const *) p;
9128 { /* SCO 3.2v4 cc rejects this. */
9130 char const *s = 0 ? (char *) 0 : (char const *) 0;
9135 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9137 const int *foo = &x[0];
9140 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9141 typedef const int *iptr;
9145 { /* AIX XL C 1.02.0.0 rejects this saying
9146 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9147 struct s { int j; const int *ap[3]; };
9148 struct s *b; b->j = 5;
9150 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9154 return !x[0] && !zero.x;
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9165 *) ac_try_echo
=$ac_try;;
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_compile") 2>conftest.er1
9170 grep -v '^ *+' conftest.er1
>conftest.err
9172 cat conftest.err
>&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } &&
9175 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9176 { (case "(($ac_try" in
9177 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9178 *) ac_try_echo=$ac_try;;
9180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9181 (eval "$ac_try") 2>&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); }; } &&
9185 { ac_try='test -s conftest.$ac_objext'
9186 { (case "(($ac_try" in
9187 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9188 *) ac_try_echo
=$ac_try;;
9190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9191 (eval "$ac_try") 2>&5
9193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9194 (exit $ac_status); }; }; then
9197 echo "$as_me: failed program was:" >&5
9198 sed 's/^/| /' conftest.
$ac_ext >&5
9203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9205 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9206 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9207 if test $ac_cv_c_const = no
; then
9209 cat >>confdefs.h
<<\_ACEOF
9221 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
9222 as_ac_Header
=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9223 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9224 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9225 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9226 echo $ECHO_N "(cached) $ECHO_C" >&6
9228 cat >conftest.
$ac_ext <<_ACEOF
9231 cat confdefs.h
>>conftest.
$ac_ext
9232 cat >>conftest.
$ac_ext <<_ACEOF
9233 /* end confdefs.h. */
9234 #include <sys/types.h>
9246 rm -f conftest.
$ac_objext
9247 if { (ac_try
="$ac_compile"
9249 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9250 *) ac_try_echo=$ac_try;;
9252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9253 (eval "$ac_compile") 2>conftest.er1
9255 grep -v '^ *+' conftest.er1 >conftest.err
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9261 { (case "(($ac_try" in
9262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9263 *) ac_try_echo
=$ac_try;;
9265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9266 (eval "$ac_try") 2>&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); }; } &&
9270 { ac_try
='test -s conftest.$ac_objext'
9271 { (case "(($ac_try" in
9272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_try") 2>&5
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; }; then
9280 eval "$as_ac_Header=yes"
9282 echo "$as_me: failed program was:" >&5
9283 sed 's/^/| /' conftest.$ac_ext >&5
9285 eval "$as_ac_Header=no"
9288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9290 ac_res=`eval echo '${'$as_ac_Header'}'`
9291 { echo "$as_me:$LINENO: result: $ac_res" >&5
9292 echo "${ECHO_T}$ac_res" >&6; }
9293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9294 cat >>confdefs.h <<_ACEOF
9295 #define `echo "HAVE_$ac_hdr" |
$as_tr_cpp` 1
9298 ac_header_dirent=$ac_hdr; break
9302 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9303 if test $ac_header_dirent = dirent.h; then
9304 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9305 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9306 if test "${ac_cv_search_opendir+set}" = set; then
9307 echo $ECHO_N "(cached) $ECHO_C" >&6
9309 ac_func_search_save_LIBS=$LIBS
9310 cat >conftest.$ac_ext <<_ACEOF
9313 cat confdefs.h >>conftest.$ac_ext
9314 cat >>conftest.$ac_ext <<_ACEOF
9315 /* end confdefs.h. */
9317 /* Override any GCC internal prototype to avoid an error.
9318 Use char because int might match the return type of a GCC
9319 builtin and then its argument prototype would still apply. */
9332 for ac_lib in '' dir; do
9333 if test -z "$ac_lib"; then
9334 ac_res="none required"
9337 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9339 rm -f conftest.$ac_objext conftest$ac_exeext
9340 if { (ac_try="$ac_link"
9342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9343 *) ac_try_echo
=$ac_try;;
9345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9346 (eval "$ac_link") 2>conftest.er1
9348 grep -v '^ *+' conftest.er1
>conftest.err
9350 cat conftest.err
>&5
9351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9352 (exit $ac_status); } &&
9353 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9354 { (case "(($ac_try" in
9355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9356 *) ac_try_echo=$ac_try;;
9358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9359 (eval "$ac_try") 2>&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); }; } &&
9363 { ac_try='test -s conftest$ac_exeext'
9364 { (case "(($ac_try" in
9365 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9366 *) ac_try_echo
=$ac_try;;
9368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9369 (eval "$ac_try") 2>&5
9371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9372 (exit $ac_status); }; }; then
9373 ac_cv_search_opendir
=$ac_res
9375 echo "$as_me: failed program was:" >&5
9376 sed 's/^/| /' conftest.
$ac_ext >&5
9381 rm -f core conftest.err conftest.
$ac_objext \
9383 if test "${ac_cv_search_opendir+set}" = set; then
9387 if test "${ac_cv_search_opendir+set}" = set; then
9390 ac_cv_search_opendir
=no
9393 LIBS
=$ac_func_search_save_LIBS
9395 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9396 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9397 ac_res
=$ac_cv_search_opendir
9398 if test "$ac_res" != no
; then
9399 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9404 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9405 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9406 if test "${ac_cv_search_opendir+set}" = set; then
9407 echo $ECHO_N "(cached) $ECHO_C" >&6
9409 ac_func_search_save_LIBS
=$LIBS
9410 cat >conftest.
$ac_ext <<_ACEOF
9413 cat confdefs.h
>>conftest.
$ac_ext
9414 cat >>conftest.
$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9417 /* Override any GCC internal prototype to avoid an error.
9418 Use char because int might match the return type of a GCC
9419 builtin and then its argument prototype would still apply. */
9432 for ac_lib
in '' x
; do
9433 if test -z "$ac_lib"; then
9434 ac_res
="none required"
9437 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9439 rm -f conftest.
$ac_objext conftest
$ac_exeext
9440 if { (ac_try
="$ac_link"
9442 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9443 *) ac_try_echo=$ac_try;;
9445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9446 (eval "$ac_link") 2>conftest.er1
9448 grep -v '^ *+' conftest.er1 >conftest.err
9450 cat conftest.err >&5
9451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9452 (exit $ac_status); } &&
9453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9454 { (case "(($ac_try" in
9455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9456 *) ac_try_echo
=$ac_try;;
9458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9459 (eval "$ac_try") 2>&5
9461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9462 (exit $ac_status); }; } &&
9463 { ac_try
='test -s conftest$ac_exeext'
9464 { (case "(($ac_try" in
9465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9466 *) ac_try_echo=$ac_try;;
9468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9469 (eval "$ac_try") 2>&5
9471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9472 (exit $ac_status); }; }; then
9473 ac_cv_search_opendir=$ac_res
9475 echo "$as_me: failed program was:" >&5
9476 sed 's/^/| /' conftest.$ac_ext >&5
9481 rm -f core conftest.err conftest.$ac_objext \
9483 if test "${ac_cv_search_opendir+set}" = set; then
9487 if test "${ac_cv_search_opendir+set}" = set; then
9490 ac_cv_search_opendir=no
9493 LIBS=$ac_func_search_save_LIBS
9495 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9496 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9497 ac_res=$ac_cv_search_opendir
9498 if test "$ac_res" != no; then
9499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9506 for ac_header in dlfcn.h
9508 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9509 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9510 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9511 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 ac_res=`eval echo '${'$as_ac_Header'}'`
9516 { echo "$as_me:$LINENO: result: $ac_res" >&5
9517 echo "${ECHO_T}$ac_res" >&6; }
9519 # Is the header compilable?
9520 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9521 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9522 cat >conftest.$ac_ext <<_ACEOF
9525 cat confdefs.h >>conftest.$ac_ext
9526 cat >>conftest.$ac_ext <<_ACEOF
9527 /* end confdefs.h. */
9528 $ac_includes_default
9529 #include <$ac_header>
9531 rm -f conftest.$ac_objext
9532 if { (ac_try="$ac_compile"
9534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9535 *) ac_try_echo
=$ac_try;;
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_compile") 2>conftest.er1
9540 grep -v '^ *+' conftest.er1
>conftest.err
9542 cat conftest.err
>&5
9543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9544 (exit $ac_status); } &&
9545 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9546 { (case "(($ac_try" in
9547 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9548 *) ac_try_echo=$ac_try;;
9550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9551 (eval "$ac_try") 2>&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); }; } &&
9555 { ac_try='test -s conftest.$ac_objext'
9556 { (case "(($ac_try" in
9557 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9558 *) ac_try_echo
=$ac_try;;
9560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9561 (eval "$ac_try") 2>&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }; then
9565 ac_header_compiler
=yes
9567 echo "$as_me: failed program was:" >&5
9568 sed 's/^/| /' conftest.
$ac_ext >&5
9570 ac_header_compiler
=no
9573 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9574 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9575 echo "${ECHO_T}$ac_header_compiler" >&6; }
9577 # Is the header present?
9578 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9579 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9580 cat >conftest.
$ac_ext <<_ACEOF
9583 cat confdefs.h
>>conftest.
$ac_ext
9584 cat >>conftest.
$ac_ext <<_ACEOF
9585 /* end confdefs.h. */
9586 #include <$ac_header>
9588 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9591 *) ac_try_echo=$ac_try;;
9593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9596 grep -v '^ *+' conftest.er1 >conftest.err
9598 cat conftest.err >&5
9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9600 (exit $ac_status); } >/dev/null; then
9601 if test -s conftest.err; then
9602 ac_cpp_err=$ac_c_preproc_warn_flag
9603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9610 if test -z "$ac_cpp_err"; then
9611 ac_header_preproc=yes
9613 echo "$as_me: failed program was:" >&5
9614 sed 's/^/| /' conftest.$ac_ext >&5
9616 ac_header_preproc=no
9619 rm -f conftest.err conftest.$ac_ext
9620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9621 echo "${ECHO_T}$ac_header_preproc" >&6; }
9623 # So? What about this header?
9624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9626 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9627 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9629 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9630 ac_header_preproc=yes
9633 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9634 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9635 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9636 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9637 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9638 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9639 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9640 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9642 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9643 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9644 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9646 ## ----------------------------------- ##
9647 ## Report this to llvmbugs@cs.uiuc.edu ##
9648 ## ----------------------------------- ##
9650 ) | sed "s/^/$as_me: WARNING: /" >&2
9653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9656 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 eval "$as_ac_Header=\$ac_header_preproc"
9660 ac_res=`eval echo '${'$as_ac_Header'}'`
9661 { echo "$as_me:$LINENO: result: $ac_res" >&5
9662 echo "${ECHO_T}$ac_res" >&6; }
9665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9666 cat >>confdefs.h <<_ACEOF
9667 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9674 # Check whether --enable-ltdl-install was given.
9675 if test "${enable_ltdl_install+set}" = set; then
9676 enableval=$enable_ltdl_install;
9682 if test x"${enable_ltdl_install-no}" != xno; then
9684 INSTALL_LTDL_FALSE='#'
9686 INSTALL_LTDL_TRUE='#'
9692 if test x"${enable_ltdl_convenience-no}" != xno; then
9693 CONVENIENCE_LTDL_TRUE=
9694 CONVENIENCE_LTDL_FALSE='#'
9696 CONVENIENCE_LTDL_TRUE='#'
9697 CONVENIENCE_LTDL_FALSE=
9701 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9702 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9704 libname_spec='lib$name'
9712 shlibpath_overrides_runpath=unknown
9714 dynamic_linker="$host_os ld.so"
9715 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9716 if test "$GCC" = yes; then
9717 sys_lib_search_path_spec=`$CC -print-search-dirs |
grep "^libraries:" |
$SED -e "s/^libraries://" -e "s,=/,/,g"`
9718 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9719 # if the path contains ";" then we assume it to be the separator
9720 # otherwise default to the standard path separator (i.e. ":") - it is
9721 # assumed that no part of a normal pathname contains ";" but that should
9722 # okay in the real world where ";" in dirpaths is itself problematic.
9723 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e 's/;/ /g'`
9725 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" |
$SED -e "s/$PATH_SEPARATOR/ /g"`
9728 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9730 need_lib_prefix=unknown
9731 hardcode_into_libs=no
9733 # when you set need_version to no, make sure it does not cause -set_version
9734 # flags to be left without arguments
9735 need_version=unknown
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9741 shlibpath_var=LIBPATH
9743 # AIX 3 has no versioning support, so we append a major version to the name.
9744 soname_spec='${libname}${release}${shared_ext}$major'
9751 hardcode_into_libs=yes
9752 if test "$host_cpu" = ia64; then
9753 # AIX 5 supports IA64
9754 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9755 shlibpath_var=LD_LIBRARY_PATH
9757 # With GCC up to 2.95.x, collect2 would create an import file
9758 # for dependence libraries. The import file would start with
9759 # the line `#! .'. This would cause the generated library to
9760 # depend on `.', always an invalid library. This was fixed in
9761 # development snapshots of GCC prior to 3.0.
9763 aix4 | aix4.
[01] | aix4.
[01].
*)
9764 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9766 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
9773 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9774 # soname into executable. Probably we can add versioning support to
9775 # collect2, so additional links can be useful in future.
9776 if test "$aix_use_runtimelinking" = yes; then
9777 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9778 # instead of lib<name>.a to let people know that these are not
9779 # typical AIX shared libraries.
9780 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9782 # We preserve .a as extension for shared libraries through AIX4.2
9783 # and later when we are not doing run time linking.
9784 library_names_spec
='${libname}${release}.a $libname.a'
9785 soname_spec
='${libname}${release}${shared_ext}$major'
9787 shlibpath_var
=LIBPATH
9792 library_names_spec
='$libname.ixlibrary $libname.a'
9793 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9794 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'
9798 library_names_spec
='${libname}${shared_ext}'
9799 dynamic_linker
="$host_os ld.so"
9800 shlibpath_var
=LIBRARY_PATH
9806 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9807 soname_spec
='${libname}${release}${shared_ext}$major'
9808 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
9809 shlibpath_var
=LD_LIBRARY_PATH
9810 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9811 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
9812 # the default ld.so.conf also contains /usr/contrib/lib and
9813 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9814 # libtool to hard-code these into programs
9817 cygwin
* | mingw
* | pw32
*)
9818 version_type
=windows
9823 case $GCC,$host_os in
9824 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
9825 library_names_spec
='$libname.dll.a'
9826 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9827 postinstall_cmds
='base_file=`basename \${file}`~
9828 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9829 dldir=$destdir/`dirname \$dlpath`~
9830 test -d \$dldir || mkdir -p \$dldir~
9831 $install_prog $dir/$dlname \$dldir/$dlname~
9832 chmod a+x \$dldir/$dlname'
9833 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9834 dlpath=$dir/\$dldll~
9836 shlibpath_overrides_runpath
=yes
9840 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9841 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9842 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
9845 # MinGW DLLs use traditional 'lib' prefix
9846 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9847 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9848 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
9849 # It is most probably a Windows format PATH printed by
9850 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9851 # path with ; separators, and with drive letters. We can handle the
9852 # drive letters (cygwin fileutils understands them), so leave them,
9853 # especially as we might pass files found there to a mingw objdump,
9854 # which wouldn't understand a cygwinified path. Ahh.
9855 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9857 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9861 # pw32 DLLs use 'pw' prefix rather than 'lib'
9862 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9868 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9871 dynamic_linker
='Win32 ld.exe'
9872 # FIXME: first we should search . and the directory the executable is in
9876 darwin
* | rhapsody
*)
9877 dynamic_linker
="$host_os dyld"
9881 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9882 soname_spec
='${libname}${release}${major}$shared_ext'
9883 shlibpath_overrides_runpath
=yes
9884 shlibpath_var
=DYLD_LIBRARY_PATH
9885 shrext_cmds
='.dylib'
9886 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9887 if test "$GCC" = yes; then
9888 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"`
9890 sys_lib_search_path_spec
='/lib /usr/lib /usr/local/lib'
9892 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
9899 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9900 soname_spec
='${libname}${release}${shared_ext}$major'
9901 shlibpath_var
=LD_LIBRARY_PATH
9912 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9913 soname_spec
='${libname}${release}${shared_ext}$major'
9914 shlibpath_var
=LD_LIBRARY_PATH
9915 shlibpath_overrides_runpath
=no
9916 hardcode_into_libs
=yes
9917 dynamic_linker
='GNU ld.so'
9920 freebsd
* | dragonfly
*)
9921 # DragonFly does not have aout. When/if they implement a new
9922 # versioning mechanism, adjust this.
9923 if test -x /usr
/bin
/objformat
; then
9924 objformat
=`/usr/bin/objformat`
9927 freebsd
[123]*) objformat
=aout
;;
9931 version_type
=freebsd-
$objformat
9932 case $version_type in
9934 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9939 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9943 shlibpath_var
=LD_LIBRARY_PATH
9946 shlibpath_overrides_runpath
=yes
9948 freebsd3.
[01]* | freebsdelf3.
[01]*)
9949 shlibpath_overrides_runpath
=yes
9950 hardcode_into_libs
=yes
9952 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
9953 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
9954 shlibpath_overrides_runpath
=no
9955 hardcode_into_libs
=yes
9957 freebsd
*) # from 4.6 on
9958 shlibpath_overrides_runpath
=yes
9959 hardcode_into_libs
=yes
9968 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9969 soname_spec
='${libname}${release}${shared_ext}$major'
9970 shlibpath_var
=LD_LIBRARY_PATH
9971 hardcode_into_libs
=yes
9974 hpux9
* | hpux10
* | hpux11
*)
9975 # Give a soname corresponding to the major version so that dld.sl refuses to
9976 # link against other versions.
9983 hardcode_into_libs
=yes
9984 dynamic_linker
="$host_os dld.so"
9985 shlibpath_var
=LD_LIBRARY_PATH
9986 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
9987 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988 soname_spec
='${libname}${release}${shared_ext}$major'
9989 if test "X$HPUX_IA64_MODE" = X32
; then
9990 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9992 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
9994 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
9998 hardcode_into_libs
=yes
9999 dynamic_linker
="$host_os dld.sl"
10000 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
10001 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
10002 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10003 soname_spec
='${libname}${release}${shared_ext}$major'
10004 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10005 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
10009 dynamic_linker
="$host_os dld.sl"
10010 shlibpath_var
=SHLIB_PATH
10011 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
10012 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10013 soname_spec
='${libname}${release}${shared_ext}$major'
10016 # HP-UX runs *really* slowly unless shared libraries are mode 555.
10017 postinstall_cmds
='chmod 555 $lib'
10024 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10025 soname_spec
='${libname}${release}${shared_ext}$major'
10026 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
10027 shlibpath_var
=LD_LIBRARY_PATH
10028 shlibpath_overrides_runpath
=no
10029 hardcode_into_libs
=yes
10032 irix5
* | irix6
* | nonstopux
*)
10034 nonstopux
*) version_type
=nonstopux
;;
10036 if test "$lt_cv_prog_gnu_ld" = yes; then
10044 soname_spec
='${libname}${release}${shared_ext}$major'
10045 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10047 irix5
* | nonstopux
*)
10048 libsuff
= shlibsuff
=
10051 case $LD in # libtool.m4 will add one of these switches to LD
10052 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
10053 libsuff
= shlibsuff
= libmagic
=32-bit;;
10054 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
10055 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
10056 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
10057 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
10058 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
10062 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
10063 shlibpath_overrides_runpath
=no
10064 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10065 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
10066 hardcode_into_libs
=yes
10069 # No shared lib support for Linux oldld, aout, or coff.
10070 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
10074 # This must be Linux ELF.
10079 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10080 soname_spec
='${libname}${release}${shared_ext}$major'
10081 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10082 shlibpath_var
=LD_LIBRARY_PATH
10083 shlibpath_overrides_runpath
=no
10084 # This implies no fast_install, which is unacceptable.
10085 # Some rework will be needed to allow for fast_install
10086 # before this can be enabled.
10087 hardcode_into_libs
=yes
10089 # Append ld.so.conf contents to the search path
10090 if test -f /etc
/ld.so.conf
; then
10091 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' ' '`
10092 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
10095 # We used to test for /lib/ld.so.1 and disable shared libraries on
10096 # powerpc, because MkLinux only supported shared libraries with the
10097 # GNU dynamic linker. Since this was broken with cross compilers,
10098 # most powerpc-linux boxes support dynamic linking these days and
10099 # people can always --disable-shared, the test was removed, and we
10100 # assume the GNU/Linux dynamic linker is in use.
10101 dynamic_linker
='GNU/Linux ld.so'
10108 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10109 soname_spec
='${libname}${release}${shared_ext}$major'
10110 shlibpath_var
=LD_LIBRARY_PATH
10111 shlibpath_overrides_runpath
=no
10112 hardcode_into_libs
=yes
10113 dynamic_linker
='GNU ld.so'
10120 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
10121 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10122 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10123 dynamic_linker
='NetBSD (a.out) ld.so'
10125 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10126 soname_spec
='${libname}${release}${shared_ext}$major'
10127 dynamic_linker
='NetBSD ld.elf_so'
10129 shlibpath_var
=LD_LIBRARY_PATH
10130 shlibpath_overrides_runpath
=yes
10131 hardcode_into_libs
=yes
10136 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10137 shlibpath_var
=LD_LIBRARY_PATH
10138 shlibpath_overrides_runpath
=yes
10145 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10146 soname_spec
='${libname}${release}${shared_ext}$major'
10147 shlibpath_var
=LD_LIBRARY_PATH
10148 shlibpath_overrides_runpath
=yes
10153 sys_lib_dlsearch_path_spec
="/usr/lib"
10155 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10157 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
10158 *) need_version
=no
;;
10160 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10161 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10162 shlibpath_var
=LD_LIBRARY_PATH
10163 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10165 openbsd2.
[89] | openbsd2.
[89].
*)
10166 shlibpath_overrides_runpath
=no
10169 shlibpath_overrides_runpath
=yes
10173 shlibpath_overrides_runpath
=yes
10178 libname_spec
='$name'
10181 library_names_spec
='$libname${shared_ext} $libname.a'
10182 dynamic_linker
='OS/2 ld.exe'
10183 shlibpath_var
=LIBPATH
10186 osf3
* | osf4
* | osf5
*)
10190 soname_spec
='${libname}${release}${shared_ext}$major'
10191 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10192 shlibpath_var
=LD_LIBRARY_PATH
10193 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10194 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
10201 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10202 soname_spec
='${libname}${release}${shared_ext}$major'
10203 shlibpath_var
=LD_LIBRARY_PATH
10204 shlibpath_overrides_runpath
=yes
10205 hardcode_into_libs
=yes
10206 # ldd complains unless libraries are executable
10207 postinstall_cmds
='chmod +x $lib'
10212 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10213 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10214 shlibpath_var
=LD_LIBRARY_PATH
10215 shlibpath_overrides_runpath
=yes
10216 if test "$with_gnu_ld" = yes; then
10224 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10225 soname_spec
='${libname}${release}${shared_ext}$major'
10226 shlibpath_var
=LD_LIBRARY_PATH
10227 case $host_vendor in
10229 shlibpath_overrides_runpath
=no
10231 export_dynamic_flag_spec
='${wl}-Blargedynsym'
10232 runpath_var
=LD_RUN_PATH
10240 shlibpath_overrides_runpath
=no
10241 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
10247 if test -d /usr
/nec
;then
10249 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10250 soname_spec
='$libname${shared_ext}.$major'
10251 shlibpath_var
=LD_LIBRARY_PATH
10255 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10256 version_type
=freebsd-elf
10259 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10260 soname_spec
='${libname}${release}${shared_ext}$major'
10261 shlibpath_var
=LD_LIBRARY_PATH
10262 hardcode_into_libs
=yes
10263 if test "$with_gnu_ld" = yes; then
10264 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10265 shlibpath_overrides_runpath
=no
10267 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
10268 shlibpath_overrides_runpath
=yes
10271 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
10275 sys_lib_dlsearch_path_spec
='/usr/lib'
10280 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10281 soname_spec
='${libname}${release}${shared_ext}$major'
10282 shlibpath_var
=LD_LIBRARY_PATH
10289 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10290 echo "${ECHO_T}$dynamic_linker" >&6; }
10291 test "$dynamic_linker" = no
&& can_build_shared
=no
10293 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
10294 if test "$GCC" = yes; then
10295 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10299 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10300 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10301 if test "${libltdl_cv_shlibext+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 eval libltdl_cv_shlibext
=$shrext_cmds
10309 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10310 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10311 if test -n "$libltdl_cv_shlibext"; then
10313 cat >>confdefs.h
<<_ACEOF
10314 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10320 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10321 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10322 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 libltdl_cv_shlibpath_var
="$shlibpath_var"
10327 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10328 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10329 if test -n "$libltdl_cv_shlibpath_var"; then
10331 cat >>confdefs.h
<<_ACEOF
10332 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10338 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10339 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10340 if test "${libltdl_cv_sys_search_path+set}" = set; then
10341 echo $ECHO_N "(cached) $ECHO_C" >&6
10343 libltdl_cv_sys_search_path
="$sys_lib_dlsearch_path_spec"
10345 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10346 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10347 if test -n "$libltdl_cv_sys_search_path"; then
10349 for dir
in $libltdl_cv_sys_search_path; do
10350 if test -z "$sys_search_path"; then
10351 sys_search_path
="$dir"
10353 sys_search_path
="$sys_search_path$PATH_SEPARATOR$dir"
10357 cat >>confdefs.h
<<_ACEOF
10358 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10363 { echo "$as_me:$LINENO: checking for objdir" >&5
10364 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10365 if test "${libltdl_cv_objdir+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10368 libltdl_cv_objdir
="$objdir"
10369 if test -n "$objdir"; then
10372 rm -f .libs
2>/dev
/null
10373 mkdir .libs
2>/dev
/null
10374 if test -d .libs
; then
10375 libltdl_cv_objdir
=.libs
10377 # MS-DOS does not allow filenames that begin with a dot.
10378 libltdl_cv_objdir
=_libs
10380 rmdir .libs
2>/dev
/null
10384 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10385 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10387 cat >>confdefs.h
<<_ACEOF
10388 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10396 # Check for command to grab the raw symbol name followed by C symbol from nm.
10397 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10398 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10399 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10400 echo $ECHO_N "(cached) $ECHO_C" >&6
10403 # These are sane defaults that work on at least a few old systems.
10404 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10406 # Character class describing NM global symbol codes.
10407 symcode
='[BCDEGRST]'
10409 # Regexp to match symbols that can be accessed directly from C.
10410 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
10412 # Transform an extracted symbol line into a proper C declaration
10413 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10415 # Transform an extracted symbol line into symbol name and symbol address
10416 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'"
10418 # Define system-specific variables.
10423 cygwin
* | mingw
* | pw32
*)
10424 symcode
='[ABCDGISTW]'
10426 hpux
*) # Its linker distinguishes data from code symbols
10427 if test "$host_cpu" = ia64
; then
10428 symcode
='[ABCDEGRST]'
10430 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10431 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'"
10434 if test "$host_cpu" = ia64
; then
10435 symcode
='[ABCDGIRSTW]'
10436 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10437 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'"
10440 irix
* | nonstopux
*)
10441 symcode
='[BCDEGRST]'
10444 symcode
='[BCDEGQRST]'
10455 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
10463 # Handle CRLF in mingw tool chain
10467 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10471 # If we're using GNU nm, then use its standard symbol codes.
10472 case `$NM -V 2>&1` in
10473 *GNU
* |
*'with BFD'*)
10474 symcode
='[ABCDGIRSTW]' ;;
10477 # Try without a prefix undercore, then with it.
10478 for ac_symprfx
in "" "_"; do
10480 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10481 symxfrm
="\\1 $ac_symprfx\\2 \\2"
10483 # Write the raw and C identifiers.
10484 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10486 # Check to see that the pipe works correctly.
10490 cat > conftest.
$ac_ext <<EOF
10495 void nm_test_func(){}
10499 int main(){nm_test_var='a';nm_test_func();return(0);}
10502 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10503 (eval $ac_compile) 2>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); }; then
10507 # Now try to grab the symbols.
10509 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10510 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
10512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10513 (exit $ac_status); } && test -s "$nlist"; then
10514 # Try sorting and uniquifying the output.
10515 if sort "$nlist" |
uniq > "$nlist"T
; then
10516 mv -f "$nlist"T
"$nlist"
10521 # Make sure that we snagged all the symbols we need.
10522 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
10523 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
10524 cat <<EOF > conftest.$ac_ext
10530 # Now generate the symbol file.
10531 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10533 cat <<EOF >> conftest.$ac_ext
10534 #if defined (__STDC__) && __STDC__
10535 # define lt_ptr_t void *
10537 # define lt_ptr_t char *
10541 /* The mapping between symbol names and symbols. */
10546 lt_preloaded_symbols[] =
10549 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
10550 cat <<\EOF
>> conftest.
$ac_ext
10558 # Now try linking the two files.
10559 mv conftest.
$ac_objext conftstm.
$ac_objext
10560 lt_save_LIBS
="$LIBS"
10561 lt_save_CFLAGS
="$CFLAGS"
10562 LIBS
="conftstm.$ac_objext"
10563 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10565 (eval $ac_link) 2>&5
10567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10568 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
10571 LIBS
="$lt_save_LIBS"
10572 CFLAGS
="$lt_save_CFLAGS"
10574 echo "cannot find nm_test_func in $nlist" >&5
10577 echo "cannot find nm_test_var in $nlist" >&5
10580 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10583 echo "$progname: failed program was:" >&5
10584 cat conftest.
$ac_ext >&5
10586 rm -f conftest
* conftst
*
10588 # Do not use the global_symbol_pipe unless it works.
10589 if test "$pipe_works" = yes; then
10592 lt_cv_sys_global_symbol_pipe
=
10598 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10599 lt_cv_sys_global_symbol_to_cdecl
=
10601 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10602 { echo "$as_me:$LINENO: result: failed" >&5
10603 echo "${ECHO_T}failed" >&6; }
10605 { echo "$as_me:$LINENO: result: ok" >&5
10606 echo "${ECHO_T}ok" >&6; }
10610 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10611 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10612 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10613 echo $ECHO_N "(cached) $ECHO_C" >&6
10615 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10616 libltdl_cv_preloaded_symbols
=yes
10618 libltdl_cv_preloaded_symbols
=no
10622 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10623 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10624 if test x
"$libltdl_cv_preloaded_symbols" = xyes
; then
10626 cat >>confdefs.h
<<\_ACEOF
10627 #define HAVE_PRELOADED_SYMBOLS 1
10635 ac_cpp
='$CPP $CPPFLAGS'
10636 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10637 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10638 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10641 { echo "$as_me:$LINENO: checking for shl_load" >&5
10642 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10643 if test "${ac_cv_func_shl_load+set}" = set; then
10644 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 cat >conftest.
$ac_ext <<_ACEOF
10649 cat confdefs.h
>>conftest.
$ac_ext
10650 cat >>conftest.
$ac_ext <<_ACEOF
10651 /* end confdefs.h. */
10652 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10654 #define shl_load innocuous_shl_load
10656 /* System header to define __stub macros and hopefully few prototypes,
10657 which can conflict with char shl_load (); below.
10658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10659 <limits.h> exists even on freestanding compilers. */
10662 # include <limits.h>
10664 # include <assert.h>
10669 /* Override any GCC internal prototype to avoid an error.
10670 Use char because int might match the return type of a GCC
10671 builtin and then its argument prototype would still apply. */
10676 /* The GNU C library defines this for functions which it implements
10677 to always fail with ENOSYS. Some functions are actually named
10678 something starting with __ and the normal name is an alias. */
10679 #if defined __stub_shl_load || defined __stub___shl_load
10686 return shl_load ();
10691 rm -f conftest.
$ac_objext conftest
$ac_exeext
10692 if { (ac_try
="$ac_link"
10693 case "(($ac_try" in
10694 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10695 *) ac_try_echo=$ac_try;;
10697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10698 (eval "$ac_link") 2>conftest.er1
10700 grep -v '^ *+' conftest.er1 >conftest.err
10702 cat conftest.err >&5
10703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10704 (exit $ac_status); } &&
10705 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10706 { (case "(($ac_try" in
10707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10708 *) ac_try_echo
=$ac_try;;
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_try") 2>&5
10713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10714 (exit $ac_status); }; } &&
10715 { ac_try
='test -s conftest$ac_exeext'
10716 { (case "(($ac_try" in
10717 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10718 *) ac_try_echo=$ac_try;;
10720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10721 (eval "$ac_try") 2>&5
10723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10724 (exit $ac_status); }; }; then
10725 ac_cv_func_shl_load=yes
10727 echo "$as_me: failed program was:" >&5
10728 sed 's/^/| /' conftest.$ac_ext >&5
10730 ac_cv_func_shl_load=no
10733 rm -f core conftest.err conftest.$ac_objext \
10734 conftest$ac_exeext conftest.$ac_ext
10736 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10737 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10738 if test $ac_cv_func_shl_load = yes; then
10740 cat >>confdefs.h <<\_ACEOF
10741 #define HAVE_SHL_LOAD 1
10745 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10746 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10747 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10748 echo $ECHO_N "(cached) $ECHO_C" >&6
10750 ac_check_lib_save_LIBS=$LIBS
10752 cat >conftest.$ac_ext <<_ACEOF
10755 cat confdefs.h >>conftest.$ac_ext
10756 cat >>conftest.$ac_ext <<_ACEOF
10757 /* end confdefs.h. */
10759 /* Override any GCC internal prototype to avoid an error.
10760 Use char because int might match the return type of a GCC
10761 builtin and then its argument prototype would still apply. */
10769 return shl_load ();
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (ac_try="$ac_link"
10776 case "(($ac_try" in
10777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10778 *) ac_try_echo
=$ac_try;;
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_link") 2>conftest.er1
10783 grep -v '^ *+' conftest.er1
>conftest.err
10785 cat conftest.err
>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } &&
10788 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10789 { (case "(($ac_try" in
10790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10791 *) ac_try_echo=$ac_try;;
10793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10794 (eval "$ac_try") 2>&5
10796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10797 (exit $ac_status); }; } &&
10798 { ac_try='test -s conftest$ac_exeext'
10799 { (case "(($ac_try" in
10800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10801 *) ac_try_echo
=$ac_try;;
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_try") 2>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); }; }; then
10808 ac_cv_lib_dld_shl_load
=yes
10810 echo "$as_me: failed program was:" >&5
10811 sed 's/^/| /' conftest.
$ac_ext >&5
10813 ac_cv_lib_dld_shl_load
=no
10816 rm -f core conftest.err conftest.
$ac_objext \
10817 conftest
$ac_exeext conftest.
$ac_ext
10818 LIBS
=$ac_check_lib_save_LIBS
10820 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10821 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10822 if test $ac_cv_lib_dld_shl_load = yes; then
10824 cat >>confdefs.h
<<\_ACEOF
10825 #define HAVE_SHL_LOAD 1
10828 LIBADD_DL
="$LIBADD_DL -ldld"
10830 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10831 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10832 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10833 echo $ECHO_N "(cached) $ECHO_C" >&6
10835 ac_check_lib_save_LIBS
=$LIBS
10837 cat >conftest.
$ac_ext <<_ACEOF
10840 cat confdefs.h
>>conftest.
$ac_ext
10841 cat >>conftest.
$ac_ext <<_ACEOF
10842 /* end confdefs.h. */
10844 /* Override any GCC internal prototype to avoid an error.
10845 Use char because int might match the return type of a GCC
10846 builtin and then its argument prototype would still apply. */
10859 rm -f conftest.
$ac_objext conftest
$ac_exeext
10860 if { (ac_try
="$ac_link"
10861 case "(($ac_try" in
10862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10863 *) ac_try_echo=$ac_try;;
10865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10866 (eval "$ac_link") 2>conftest.er1
10868 grep -v '^ *+' conftest.er1 >conftest.err
10870 cat conftest.err >&5
10871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10872 (exit $ac_status); } &&
10873 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10874 { (case "(($ac_try" in
10875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10876 *) ac_try_echo
=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_try") 2>&5
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; } &&
10883 { ac_try
='test -s conftest$ac_exeext'
10884 { (case "(($ac_try" in
10885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10886 *) ac_try_echo=$ac_try;;
10888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10889 (eval "$ac_try") 2>&5
10891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10892 (exit $ac_status); }; }; then
10893 ac_cv_lib_dl_dlopen=yes
10895 echo "$as_me: failed program was:" >&5
10896 sed 's/^/| /' conftest.$ac_ext >&5
10898 ac_cv_lib_dl_dlopen=no
10901 rm -f core conftest.err conftest.$ac_objext \
10902 conftest$ac_exeext conftest.$ac_ext
10903 LIBS=$ac_check_lib_save_LIBS
10905 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10906 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10907 if test $ac_cv_lib_dl_dlopen = yes; then
10909 cat >>confdefs.h <<\_ACEOF
10910 #define HAVE_LIBDL 1
10913 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10915 cat >conftest.$ac_ext <<_ACEOF
10918 cat confdefs.h >>conftest.$ac_ext
10919 cat >>conftest.$ac_ext <<_ACEOF
10920 /* end confdefs.h. */
10922 # include <dlfcn.h>
10933 rm -f conftest.$ac_objext conftest$ac_exeext
10934 if { (ac_try="$ac_link"
10935 case "(($ac_try" in
10936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10937 *) ac_try_echo
=$ac_try;;
10939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_link") 2>conftest.er1
10942 grep -v '^ *+' conftest.er1
>conftest.err
10944 cat conftest.err
>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } &&
10947 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10948 { (case "(($ac_try" in
10949 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10950 *) ac_try_echo=$ac_try;;
10952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10953 (eval "$ac_try") 2>&5
10955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10956 (exit $ac_status); }; } &&
10957 { ac_try='test -s conftest$ac_exeext'
10958 { (case "(($ac_try" in
10959 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10960 *) ac_try_echo
=$ac_try;;
10962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10963 (eval "$ac_try") 2>&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); }; }; then
10968 cat >>confdefs.h
<<\_ACEOF
10969 #define HAVE_LIBDL 1
10971 libltdl_cv_func_dlopen
="yes"
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.
$ac_ext >&5
10976 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10977 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10978 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10979 echo $ECHO_N "(cached) $ECHO_C" >&6
10981 ac_check_lib_save_LIBS
=$LIBS
10982 LIBS
="-lsvld $LIBS"
10983 cat >conftest.
$ac_ext <<_ACEOF
10986 cat confdefs.h
>>conftest.
$ac_ext
10987 cat >>conftest.
$ac_ext <<_ACEOF
10988 /* end confdefs.h. */
10990 /* Override any GCC internal prototype to avoid an error.
10991 Use char because int might match the return type of a GCC
10992 builtin and then its argument prototype would still apply. */
11005 rm -f conftest.
$ac_objext conftest
$ac_exeext
11006 if { (ac_try
="$ac_link"
11007 case "(($ac_try" in
11008 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11009 *) ac_try_echo=$ac_try;;
11011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11012 (eval "$ac_link") 2>conftest.er1
11014 grep -v '^ *+' conftest.er1 >conftest.err
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11020 { (case "(($ac_try" in
11021 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11022 *) ac_try_echo
=$ac_try;;
11024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11025 (eval "$ac_try") 2>&5
11027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11028 (exit $ac_status); }; } &&
11029 { ac_try
='test -s conftest$ac_exeext'
11030 { (case "(($ac_try" in
11031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11032 *) ac_try_echo=$ac_try;;
11034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11035 (eval "$ac_try") 2>&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); }; }; then
11039 ac_cv_lib_svld_dlopen=yes
11041 echo "$as_me: failed program was:" >&5
11042 sed 's/^/| /' conftest.$ac_ext >&5
11044 ac_cv_lib_svld_dlopen=no
11047 rm -f core conftest.err conftest.$ac_objext \
11048 conftest$ac_exeext conftest.$ac_ext
11049 LIBS=$ac_check_lib_save_LIBS
11051 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11052 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11053 if test $ac_cv_lib_svld_dlopen = yes; then
11055 cat >>confdefs.h <<\_ACEOF
11056 #define HAVE_LIBDL 1
11059 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11061 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11062 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11063 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11064 echo $ECHO_N "(cached) $ECHO_C" >&6
11066 ac_check_lib_save_LIBS=$LIBS
11068 cat >conftest.$ac_ext <<_ACEOF
11071 cat confdefs.h >>conftest.$ac_ext
11072 cat >>conftest.$ac_ext <<_ACEOF
11073 /* end confdefs.h. */
11075 /* Override any GCC internal prototype to avoid an error.
11076 Use char because int might match the return type of a GCC
11077 builtin and then its argument prototype would still apply. */
11085 return dld_link ();
11090 rm -f conftest.$ac_objext conftest$ac_exeext
11091 if { (ac_try="$ac_link"
11092 case "(($ac_try" in
11093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11094 *) ac_try_echo
=$ac_try;;
11096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11097 (eval "$ac_link") 2>conftest.er1
11099 grep -v '^ *+' conftest.er1
>conftest.err
11101 cat conftest.err
>&5
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); } &&
11104 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11105 { (case "(($ac_try" in
11106 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11107 *) ac_try_echo=$ac_try;;
11109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11110 (eval "$ac_try") 2>&5
11112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11113 (exit $ac_status); }; } &&
11114 { ac_try='test -s conftest$ac_exeext'
11115 { (case "(($ac_try" in
11116 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11117 *) ac_try_echo
=$ac_try;;
11119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11120 (eval "$ac_try") 2>&5
11122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11123 (exit $ac_status); }; }; then
11124 ac_cv_lib_dld_dld_link
=yes
11126 echo "$as_me: failed program was:" >&5
11127 sed 's/^/| /' conftest.
$ac_ext >&5
11129 ac_cv_lib_dld_dld_link
=no
11132 rm -f core conftest.err conftest.
$ac_objext \
11133 conftest
$ac_exeext conftest.
$ac_ext
11134 LIBS
=$ac_check_lib_save_LIBS
11136 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11137 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11138 if test $ac_cv_lib_dld_dld_link = yes; then
11140 cat >>confdefs.h
<<\_ACEOF
11144 LIBADD_DL
="$LIBADD_DL -ldld"
11146 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11147 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11148 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11149 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 cat >conftest.
$ac_ext <<_ACEOF
11154 cat confdefs.h
>>conftest.
$ac_ext
11155 cat >>conftest.
$ac_ext <<_ACEOF
11156 /* end confdefs.h. */
11157 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11159 #define _dyld_func_lookup innocuous__dyld_func_lookup
11161 /* System header to define __stub macros and hopefully few prototypes,
11162 which can conflict with char _dyld_func_lookup (); below.
11163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11164 <limits.h> exists even on freestanding compilers. */
11167 # include <limits.h>
11169 # include <assert.h>
11172 #undef _dyld_func_lookup
11174 /* Override any GCC internal prototype to avoid an error.
11175 Use char because int might match the return type of a GCC
11176 builtin and then its argument prototype would still apply. */
11180 char _dyld_func_lookup ();
11181 /* The GNU C library defines this for functions which it implements
11182 to always fail with ENOSYS. Some functions are actually named
11183 something starting with __ and the normal name is an alias. */
11184 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11191 return _dyld_func_lookup ();
11196 rm -f conftest.
$ac_objext conftest
$ac_exeext
11197 if { (ac_try
="$ac_link"
11198 case "(($ac_try" in
11199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11200 *) ac_try_echo=$ac_try;;
11202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11203 (eval "$ac_link") 2>conftest.er1
11205 grep -v '^ *+' conftest.er1 >conftest.err
11207 cat conftest.err >&5
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); } &&
11210 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11211 { (case "(($ac_try" in
11212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11213 *) ac_try_echo
=$ac_try;;
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_try") 2>&5
11218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11219 (exit $ac_status); }; } &&
11220 { ac_try
='test -s conftest$ac_exeext'
11221 { (case "(($ac_try" in
11222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11223 *) ac_try_echo=$ac_try;;
11225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11226 (eval "$ac_try") 2>&5
11228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11229 (exit $ac_status); }; }; then
11230 ac_cv_func__dyld_func_lookup=yes
11232 echo "$as_me: failed program was:" >&5
11233 sed 's/^/| /' conftest.$ac_ext >&5
11235 ac_cv_func__dyld_func_lookup=no
11238 rm -f core conftest.err conftest.$ac_objext \
11239 conftest$ac_exeext conftest.$ac_ext
11241 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11242 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11243 if test $ac_cv_func__dyld_func_lookup = yes; then
11245 cat >>confdefs.h <<\_ACEOF
11246 #define HAVE_DYLD 1
11260 rm -f core conftest.err conftest.$ac_objext \
11261 conftest$ac_exeext conftest.$ac_ext
11272 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11274 lt_save_LIBS="$LIBS"
11275 LIBS="$LIBS $LIBADD_DL"
11277 for ac_func in dlerror
11279 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11283 echo $ECHO_N "(cached) $ECHO_C" >&6
11285 cat >conftest.$ac_ext <<_ACEOF
11288 cat confdefs.h >>conftest.$ac_ext
11289 cat >>conftest.$ac_ext <<_ACEOF
11290 /* end confdefs.h. */
11291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11293 #define $ac_func innocuous_$ac_func
11295 /* System header to define __stub macros and hopefully few prototypes,
11296 which can conflict with char $ac_func (); below.
11297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11298 <limits.h> exists even on freestanding compilers. */
11301 # include <limits.h>
11303 # include <assert.h>
11308 /* Override any GCC internal prototype to avoid an error.
11309 Use char because int might match the return type of a GCC
11310 builtin and then its argument prototype would still apply. */
11315 /* The GNU C library defines this for functions which it implements
11316 to always fail with ENOSYS. Some functions are actually named
11317 something starting with __ and the normal name is an alias. */
11318 #if defined __stub_$ac_func || defined __stub___$ac_func
11325 return $ac_func ();
11330 rm -f conftest.$ac_objext conftest$ac_exeext
11331 if { (ac_try="$ac_link"
11332 case "(($ac_try" in
11333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11334 *) ac_try_echo
=$ac_try;;
11336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11337 (eval "$ac_link") 2>conftest.er1
11339 grep -v '^ *+' conftest.er1
>conftest.err
11341 cat conftest.err
>&5
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); } &&
11344 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11345 { (case "(($ac_try" in
11346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11350 (eval "$ac_try") 2>&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); }; } &&
11354 { ac_try='test -s conftest$ac_exeext'
11355 { (case "(($ac_try" in
11356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11357 *) ac_try_echo
=$ac_try;;
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_try") 2>&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; }; then
11364 eval "$as_ac_var=yes"
11366 echo "$as_me: failed program was:" >&5
11367 sed 's/^/| /' conftest.
$ac_ext >&5
11369 eval "$as_ac_var=no"
11372 rm -f core conftest.err conftest.
$ac_objext \
11373 conftest
$ac_exeext conftest.
$ac_ext
11375 ac_res
=`eval echo '${'$as_ac_var'}'`
11376 { echo "$as_me:$LINENO: result: $ac_res" >&5
11377 echo "${ECHO_T}$ac_res" >&6; }
11378 if test `eval echo '${'$as_ac_var'}'` = yes; then
11379 cat >>confdefs.h
<<_ACEOF
11380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11386 LIBS
="$lt_save_LIBS"
11389 ac_cpp
='$CPP $CPPFLAGS'
11390 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11391 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11392 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
11396 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11397 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11398 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11401 ac_cv_sys_symbol_underscore
=no
11402 cat > conftest.
$ac_ext <<EOF
11403 void nm_test_func(){}
11404 int main(){nm_test_func;return 0;}
11406 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11407 (eval $ac_compile) 2>&5
11409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); }; then
11411 # Now try to grab the symbols.
11412 ac_nlist
=conftest.nm
11413 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11414 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $ac_nlist) 2>&5
11416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11417 (exit $ac_status); } && test -s "$ac_nlist"; then
11418 # See whether the symbols have a leading underscore.
11419 if grep '^. _nm_test_func' "$ac_nlist" >/dev
/null
; then
11420 ac_cv_sys_symbol_underscore
=yes
11422 if grep '^. nm_test_func ' "$ac_nlist" >/dev
/null
; then
11425 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11429 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11432 echo "configure: failed program was:" >&5
11438 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11439 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11442 if test x
"$ac_cv_sys_symbol_underscore" = xyes
; then
11443 if test x
"$libltdl_cv_func_dlopen" = xyes ||
11444 test x
"$libltdl_cv_lib_dl_dlopen" = xyes
; then
11445 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11446 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11447 if test "${libltdl_cv_need_uscore+set}" = set; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 libltdl_cv_need_uscore
=unknown
11452 LIBS
="$LIBS $LIBADD_DL"
11453 if test "$cross_compiling" = yes; then :
11454 libltdl_cv_need_uscore
=cross
11456 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
11457 lt_status
=$lt_dlunknown
11458 cat > conftest.
$ac_ext <<EOF
11459 #line 11454 "configure"
11460 #include "confdefs.h"
11469 # define LT_DLGLOBAL RTLD_GLOBAL
11472 # define LT_DLGLOBAL DL_GLOBAL
11474 # define LT_DLGLOBAL 0
11478 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11479 find out it does not work in some platform. */
11480 #ifndef LT_DLLAZY_OR_NOW
11482 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11485 # define LT_DLLAZY_OR_NOW DL_LAZY
11488 # define LT_DLLAZY_OR_NOW RTLD_NOW
11491 # define LT_DLLAZY_OR_NOW DL_NOW
11493 # define LT_DLLAZY_OR_NOW 0
11501 extern "C" void exit (int);
11504 void fnord() { int i=42;}
11507 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11508 int status = $lt_dlunknown;
11512 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11513 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11514 /* dlclose (self); */
11522 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11523 (eval $ac_link) 2>&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
11527 (.
/conftest
; exit; ) >&5 2>/dev
/null
11529 case x
$lt_status in
11530 x
$lt_dlno_uscore) libltdl_cv_need_uscore
=no
;;
11531 x
$lt_dlneed_uscore) libltdl_cv_need_uscore
=yes ;;
11532 x
$lt_dlunknown|x
*) ;;
11535 # compilation failed
11544 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11545 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11549 if test x
"$libltdl_cv_need_uscore" = xyes
; then
11551 cat >>confdefs.h
<<\_ACEOF
11552 #define NEED_USCORE 1
11558 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11559 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11560 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11561 echo $ECHO_N "(cached) $ECHO_C" >&6
11563 # PORTME does your system automatically load deplibs for dlopen?
11564 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11565 # For now, we just catch OSes we know something about -- in the
11566 # future, we'll try test this programmatically.
11567 libltdl_cv_sys_dlopen_deplibs
=unknown
11569 aix3
*|aix4.1.
*|aix4.2.
*)
11570 # Unknown whether this is true for these versions of AIX, but
11571 # we want this `case' here to explicitly catch those versions.
11572 libltdl_cv_sys_dlopen_deplibs
=unknown
11575 libltdl_cv_sys_dlopen_deplibs
=yes
11578 # Assuming the user has installed a libdl from somewhere, this is true
11579 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11580 libltdl_cv_sys_dlopen_deplibs
=yes
11582 gnu
* | linux
* | kfreebsd
*-gnu | knetbsd
*-gnu)
11583 # GNU and its variants, using gnu ld.so (Glibc)
11584 libltdl_cv_sys_dlopen_deplibs
=yes
11587 libltdl_cv_sys_dlopen_deplibs
=yes
11590 libltdl_cv_sys_dlopen_deplibs
=yes
11592 irix
[12345]*|irix6.
[01]*)
11593 # Catch all versions of IRIX before 6.2, and indicate that we don't
11594 # know how it worked for any of those versions.
11595 libltdl_cv_sys_dlopen_deplibs
=unknown
11598 # The case above catches anything before 6.2, and it's known that
11599 # at 6.2 and later dlopen does load deplibs.
11600 libltdl_cv_sys_dlopen_deplibs
=yes
11603 libltdl_cv_sys_dlopen_deplibs
=yes
11606 libltdl_cv_sys_dlopen_deplibs
=yes
11609 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11610 # it did *not* use an RPATH in a shared library to find objects the
11611 # library depends on, so we explictly say `no'.
11612 libltdl_cv_sys_dlopen_deplibs
=no
11614 osf5.0|osf5.0a|osf5.1
)
11615 # dlopen *does* load deplibs and with the right loader patch applied
11616 # it even uses RPATH in a shared library to search for shared objects
11617 # that the library depends on, but there's no easy way to know if that
11618 # patch is installed. Since this is the case, all we can really
11619 # say is unknown -- it depends on the patch being installed. If
11620 # it is, this changes to `yes'. Without it, it would be `no'.
11621 libltdl_cv_sys_dlopen_deplibs
=unknown
11624 # the two cases above should catch all versions of osf <= 5.1. Read
11625 # the comments above for what we know about them.
11626 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11627 # is used to find them so we can finally say `yes'.
11628 libltdl_cv_sys_dlopen_deplibs
=yes
11631 libltdl_cv_sys_dlopen_deplibs
=yes
11633 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
11634 libltdl_cv_sys_dlopen_deplibs
=yes
11639 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11640 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11641 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11643 cat >>confdefs.h
<<\_ACEOF
11644 #define LTDL_DLOPEN_DEPLIBS 1
11650 for ac_header
in argz.h
11652 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11653 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11656 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 ac_res
=`eval echo '${'$as_ac_Header'}'`
11660 { echo "$as_me:$LINENO: result: $ac_res" >&5
11661 echo "${ECHO_T}$ac_res" >&6; }
11663 # Is the header compilable?
11664 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11665 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11666 cat >conftest.
$ac_ext <<_ACEOF
11669 cat confdefs.h
>>conftest.
$ac_ext
11670 cat >>conftest.
$ac_ext <<_ACEOF
11671 /* end confdefs.h. */
11672 $ac_includes_default
11673 #include <$ac_header>
11675 rm -f conftest.
$ac_objext
11676 if { (ac_try
="$ac_compile"
11677 case "(($ac_try" in
11678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11679 *) ac_try_echo=$ac_try;;
11681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11682 (eval "$ac_compile") 2>conftest.er1
11684 grep -v '^ *+' conftest.er1 >conftest.err
11686 cat conftest.err >&5
11687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11688 (exit $ac_status); } &&
11689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11690 { (case "(($ac_try" in
11691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11692 *) ac_try_echo
=$ac_try;;
11694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11695 (eval "$ac_try") 2>&5
11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11698 (exit $ac_status); }; } &&
11699 { ac_try
='test -s conftest.$ac_objext'
11700 { (case "(($ac_try" in
11701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11702 *) ac_try_echo=$ac_try;;
11704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11705 (eval "$ac_try") 2>&5
11707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11708 (exit $ac_status); }; }; then
11709 ac_header_compiler=yes
11711 echo "$as_me: failed program was:" >&5
11712 sed 's/^/| /' conftest.$ac_ext >&5
11714 ac_header_compiler=no
11717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11718 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11719 echo "${ECHO_T}$ac_header_compiler" >&6; }
11721 # Is the header present?
11722 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11723 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11724 cat >conftest.$ac_ext <<_ACEOF
11727 cat confdefs.h >>conftest.$ac_ext
11728 cat >>conftest.$ac_ext <<_ACEOF
11729 /* end confdefs.h. */
11730 #include <$ac_header>
11732 if { (ac_try="$ac_cpp conftest.$ac_ext"
11733 case "(($ac_try" in
11734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11735 *) ac_try_echo
=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11740 grep -v '^ *+' conftest.er1
>conftest.err
11742 cat conftest.err
>&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } >/dev
/null
; then
11745 if test -s conftest.err
; then
11746 ac_cpp_err
=$ac_c_preproc_warn_flag
11747 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
11754 if test -z "$ac_cpp_err"; then
11755 ac_header_preproc
=yes
11757 echo "$as_me: failed program was:" >&5
11758 sed 's/^/| /' conftest.
$ac_ext >&5
11760 ac_header_preproc
=no
11763 rm -f conftest.err conftest.
$ac_ext
11764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11765 echo "${ECHO_T}$ac_header_preproc" >&6; }
11767 # So? What about this header?
11768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11774 ac_header_preproc
=yes
11777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11790 ## ----------------------------------- ##
11791 ## Report this to llvmbugs@cs.uiuc.edu ##
11792 ## ----------------------------------- ##
11794 ) |
sed "s/^/$as_me: WARNING: /" >&2
11797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11799 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11802 eval "$as_ac_Header=\$ac_header_preproc"
11804 ac_res
=`eval echo '${'$as_ac_Header'}'`
11805 { echo "$as_me:$LINENO: result: $ac_res" >&5
11806 echo "${ECHO_T}$ac_res" >&6; }
11809 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11810 cat >>confdefs.h
<<_ACEOF
11811 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11819 { echo "$as_me:$LINENO: checking for error_t" >&5
11820 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11821 if test "${ac_cv_type_error_t+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11824 cat >conftest.
$ac_ext <<_ACEOF
11827 cat confdefs.h
>>conftest.
$ac_ext
11828 cat >>conftest.
$ac_ext <<_ACEOF
11829 /* end confdefs.h. */
11834 typedef error_t ac__type_new_;
11838 if ((ac__type_new_ *) 0)
11840 if (sizeof (ac__type_new_))
11846 rm -f conftest.
$ac_objext
11847 if { (ac_try
="$ac_compile"
11848 case "(($ac_try" in
11849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11850 *) ac_try_echo=$ac_try;;
11852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11853 (eval "$ac_compile") 2>conftest.er1
11855 grep -v '^ *+' conftest.er1 >conftest.err
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11861 { (case "(($ac_try" in
11862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11863 *) ac_try_echo
=$ac_try;;
11865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11866 (eval "$ac_try") 2>&5
11868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11869 (exit $ac_status); }; } &&
11870 { ac_try
='test -s conftest.$ac_objext'
11871 { (case "(($ac_try" in
11872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11873 *) ac_try_echo=$ac_try;;
11875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11876 (eval "$ac_try") 2>&5
11878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11879 (exit $ac_status); }; }; then
11880 ac_cv_type_error_t=yes
11882 echo "$as_me: failed program was:" >&5
11883 sed 's/^/| /' conftest.$ac_ext >&5
11885 ac_cv_type_error_t=no
11888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11890 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11891 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11892 if test $ac_cv_type_error_t = yes; then
11894 cat >>confdefs.h <<_ACEOF
11895 #define HAVE_ERROR_T 1
11901 cat >>confdefs.h <<\_ACEOF
11902 #define error_t int
11913 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11915 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11916 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11917 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11918 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11919 echo $ECHO_N "(cached) $ECHO_C" >&6
11921 cat >conftest.$ac_ext <<_ACEOF
11924 cat confdefs.h >>conftest.$ac_ext
11925 cat >>conftest.$ac_ext <<_ACEOF
11926 /* end confdefs.h. */
11927 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11929 #define $ac_func innocuous_$ac_func
11931 /* System header to define __stub macros and hopefully few prototypes,
11932 which can conflict with char $ac_func (); below.
11933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11934 <limits.h> exists even on freestanding compilers. */
11937 # include <limits.h>
11939 # include <assert.h>
11944 /* Override any GCC internal prototype to avoid an error.
11945 Use char because int might match the return type of a GCC
11946 builtin and then its argument prototype would still apply. */
11951 /* The GNU C library defines this for functions which it implements
11952 to always fail with ENOSYS. Some functions are actually named
11953 something starting with __ and the normal name is an alias. */
11954 #if defined __stub_$ac_func || defined __stub___$ac_func
11961 return $ac_func ();
11966 rm -f conftest.$ac_objext conftest$ac_exeext
11967 if { (ac_try="$ac_link"
11968 case "(($ac_try" in
11969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11970 *) ac_try_echo
=$ac_try;;
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_link") 2>conftest.er1
11975 grep -v '^ *+' conftest.er1
>conftest.err
11977 cat conftest.err
>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } &&
11980 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11981 { (case "(($ac_try" in
11982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11983 *) ac_try_echo=$ac_try;;
11985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11986 (eval "$ac_try") 2>&5
11988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11989 (exit $ac_status); }; } &&
11990 { ac_try='test -s conftest$ac_exeext'
11991 { (case "(($ac_try" in
11992 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11993 *) ac_try_echo
=$ac_try;;
11995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11996 (eval "$ac_try") 2>&5
11998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11999 (exit $ac_status); }; }; then
12000 eval "$as_ac_var=yes"
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.
$ac_ext >&5
12005 eval "$as_ac_var=no"
12008 rm -f core conftest.err conftest.
$ac_objext \
12009 conftest
$ac_exeext conftest.
$ac_ext
12011 ac_res
=`eval echo '${'$as_ac_var'}'`
12012 { echo "$as_me:$LINENO: result: $ac_res" >&5
12013 echo "${ECHO_T}$ac_res" >&6; }
12014 if test `eval echo '${'$as_ac_var'}'` = yes; then
12015 cat >>confdefs.h
<<_ACEOF
12016 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12049 for ac_header
in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12052 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12053 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12056 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12057 echo $ECHO_N "(cached) $ECHO_C" >&6
12059 ac_res
=`eval echo '${'$as_ac_Header'}'`
12060 { echo "$as_me:$LINENO: result: $ac_res" >&5
12061 echo "${ECHO_T}$ac_res" >&6; }
12063 # Is the header compilable?
12064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12066 cat >conftest.
$ac_ext <<_ACEOF
12069 cat confdefs.h
>>conftest.
$ac_ext
12070 cat >>conftest.
$ac_ext <<_ACEOF
12071 /* end confdefs.h. */
12072 $ac_includes_default
12073 #include <$ac_header>
12075 rm -f conftest.
$ac_objext
12076 if { (ac_try
="$ac_compile"
12077 case "(($ac_try" in
12078 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12079 *) ac_try_echo=$ac_try;;
12081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12082 (eval "$ac_compile") 2>conftest.er1
12084 grep -v '^ *+' conftest.er1 >conftest.err
12086 cat conftest.err >&5
12087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12088 (exit $ac_status); } &&
12089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12090 { (case "(($ac_try" in
12091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12092 *) ac_try_echo
=$ac_try;;
12094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12095 (eval "$ac_try") 2>&5
12097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12098 (exit $ac_status); }; } &&
12099 { ac_try
='test -s conftest.$ac_objext'
12100 { (case "(($ac_try" in
12101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12102 *) ac_try_echo=$ac_try;;
12104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12105 (eval "$ac_try") 2>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); }; }; then
12109 ac_header_compiler=yes
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12114 ac_header_compiler=no
12117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12118 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12119 echo "${ECHO_T}$ac_header_compiler" >&6; }
12121 # Is the header present?
12122 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12123 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12124 cat >conftest.$ac_ext <<_ACEOF
12127 cat confdefs.h >>conftest.$ac_ext
12128 cat >>conftest.$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12130 #include <$ac_header>
12132 if { (ac_try="$ac_cpp conftest.$ac_ext"
12133 case "(($ac_try" in
12134 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12135 *) ac_try_echo
=$ac_try;;
12137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12140 grep -v '^ *+' conftest.er1
>conftest.err
12142 cat conftest.err
>&5
12143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12144 (exit $ac_status); } >/dev
/null
; then
12145 if test -s conftest.err
; then
12146 ac_cpp_err
=$ac_c_preproc_warn_flag
12147 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12154 if test -z "$ac_cpp_err"; then
12155 ac_header_preproc
=yes
12157 echo "$as_me: failed program was:" >&5
12158 sed 's/^/| /' conftest.
$ac_ext >&5
12160 ac_header_preproc
=no
12163 rm -f conftest.err conftest.
$ac_ext
12164 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12165 echo "${ECHO_T}$ac_header_preproc" >&6; }
12167 # So? What about this header?
12168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12171 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12174 ac_header_preproc
=yes
12177 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12178 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12179 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12180 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12181 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12182 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12183 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12184 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12188 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12190 ## ----------------------------------- ##
12191 ## Report this to llvmbugs@cs.uiuc.edu ##
12192 ## ----------------------------------- ##
12194 ) |
sed "s/^/$as_me: WARNING: /" >&2
12197 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12198 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12199 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12200 echo $ECHO_N "(cached) $ECHO_C" >&6
12202 eval "$as_ac_Header=\$ac_header_preproc"
12204 ac_res
=`eval echo '${'$as_ac_Header'}'`
12205 { echo "$as_me:$LINENO: result: $ac_res" >&5
12206 echo "${ECHO_T}$ac_res" >&6; }
12209 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12210 cat >>confdefs.h
<<_ACEOF
12211 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12222 for ac_header
in dl.h sys
/dl.h dld.h mach-o
/dyld.h
12224 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12225 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12228 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12229 echo $ECHO_N "(cached) $ECHO_C" >&6
12231 ac_res
=`eval echo '${'$as_ac_Header'}'`
12232 { echo "$as_me:$LINENO: result: $ac_res" >&5
12233 echo "${ECHO_T}$ac_res" >&6; }
12235 # Is the header compilable?
12236 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12237 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12238 cat >conftest.
$ac_ext <<_ACEOF
12241 cat confdefs.h
>>conftest.
$ac_ext
12242 cat >>conftest.
$ac_ext <<_ACEOF
12243 /* end confdefs.h. */
12244 $ac_includes_default
12245 #include <$ac_header>
12247 rm -f conftest.
$ac_objext
12248 if { (ac_try
="$ac_compile"
12249 case "(($ac_try" in
12250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12251 *) ac_try_echo=$ac_try;;
12253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12254 (eval "$ac_compile") 2>conftest.er1
12256 grep -v '^ *+' conftest.er1 >conftest.err
12258 cat conftest.err >&5
12259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12260 (exit $ac_status); } &&
12261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12262 { (case "(($ac_try" in
12263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12264 *) ac_try_echo
=$ac_try;;
12266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12267 (eval "$ac_try") 2>&5
12269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); }; } &&
12271 { ac_try
='test -s conftest.$ac_objext'
12272 { (case "(($ac_try" in
12273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12274 *) ac_try_echo=$ac_try;;
12276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12277 (eval "$ac_try") 2>&5
12279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12280 (exit $ac_status); }; }; then
12281 ac_header_compiler=yes
12283 echo "$as_me: failed program was:" >&5
12284 sed 's/^/| /' conftest.$ac_ext >&5
12286 ac_header_compiler=no
12289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12290 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12291 echo "${ECHO_T}$ac_header_compiler" >&6; }
12293 # Is the header present?
12294 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12295 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12296 cat >conftest.$ac_ext <<_ACEOF
12299 cat confdefs.h >>conftest.$ac_ext
12300 cat >>conftest.$ac_ext <<_ACEOF
12301 /* end confdefs.h. */
12302 #include <$ac_header>
12304 if { (ac_try="$ac_cpp conftest.$ac_ext"
12305 case "(($ac_try" in
12306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12307 *) ac_try_echo
=$ac_try;;
12309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12310 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12312 grep -v '^ *+' conftest.er1
>conftest.err
12314 cat conftest.err
>&5
12315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12316 (exit $ac_status); } >/dev
/null
; then
12317 if test -s conftest.err
; then
12318 ac_cpp_err
=$ac_c_preproc_warn_flag
12319 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12326 if test -z "$ac_cpp_err"; then
12327 ac_header_preproc
=yes
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.
$ac_ext >&5
12332 ac_header_preproc
=no
12335 rm -f conftest.err conftest.
$ac_ext
12336 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12337 echo "${ECHO_T}$ac_header_preproc" >&6; }
12339 # So? What about this header?
12340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12342 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12343 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12346 ac_header_preproc
=yes
12349 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12350 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12351 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12352 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12353 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12354 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12355 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12356 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12359 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12360 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12362 ## ----------------------------------- ##
12363 ## Report this to llvmbugs@cs.uiuc.edu ##
12364 ## ----------------------------------- ##
12366 ) |
sed "s/^/$as_me: WARNING: /" >&2
12369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12371 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12372 echo $ECHO_N "(cached) $ECHO_C" >&6
12374 eval "$as_ac_Header=\$ac_header_preproc"
12376 ac_res
=`eval echo '${'$as_ac_Header'}'`
12377 { echo "$as_me:$LINENO: result: $ac_res" >&5
12378 echo "${ECHO_T}$ac_res" >&6; }
12381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12382 cat >>confdefs.h
<<_ACEOF
12383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12392 for ac_header
in string.h
strings.h
12394 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12395 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12398 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12399 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 ac_res
=`eval echo '${'$as_ac_Header'}'`
12402 { echo "$as_me:$LINENO: result: $ac_res" >&5
12403 echo "${ECHO_T}$ac_res" >&6; }
12405 # Is the header compilable?
12406 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12407 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12408 cat >conftest.
$ac_ext <<_ACEOF
12411 cat confdefs.h
>>conftest.
$ac_ext
12412 cat >>conftest.
$ac_ext <<_ACEOF
12413 /* end confdefs.h. */
12414 $ac_includes_default
12415 #include <$ac_header>
12417 rm -f conftest.
$ac_objext
12418 if { (ac_try
="$ac_compile"
12419 case "(($ac_try" in
12420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12421 *) ac_try_echo=$ac_try;;
12423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12424 (eval "$ac_compile") 2>conftest.er1
12426 grep -v '^ *+' conftest.er1 >conftest.err
12428 cat conftest.err >&5
12429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } &&
12431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12432 { (case "(($ac_try" in
12433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12434 *) ac_try_echo
=$ac_try;;
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_try") 2>&5
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try
='test -s conftest.$ac_objext'
12442 { (case "(($ac_try" in
12443 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12444 *) ac_try_echo=$ac_try;;
12446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12447 (eval "$ac_try") 2>&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); }; }; then
12451 ac_header_compiler=yes
12453 echo "$as_me: failed program was:" >&5
12454 sed 's/^/| /' conftest.$ac_ext >&5
12456 ac_header_compiler=no
12459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12460 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12461 echo "${ECHO_T}$ac_header_compiler" >&6; }
12463 # Is the header present?
12464 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12465 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12466 cat >conftest.$ac_ext <<_ACEOF
12469 cat confdefs.h >>conftest.$ac_ext
12470 cat >>conftest.$ac_ext <<_ACEOF
12471 /* end confdefs.h. */
12472 #include <$ac_header>
12474 if { (ac_try="$ac_cpp conftest.$ac_ext"
12475 case "(($ac_try" in
12476 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12477 *) ac_try_echo
=$ac_try;;
12479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12480 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12482 grep -v '^ *+' conftest.er1
>conftest.err
12484 cat conftest.err
>&5
12485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12486 (exit $ac_status); } >/dev
/null
; then
12487 if test -s conftest.err
; then
12488 ac_cpp_err
=$ac_c_preproc_warn_flag
12489 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
12496 if test -z "$ac_cpp_err"; then
12497 ac_header_preproc
=yes
12499 echo "$as_me: failed program was:" >&5
12500 sed 's/^/| /' conftest.
$ac_ext >&5
12502 ac_header_preproc
=no
12505 rm -f conftest.err conftest.
$ac_ext
12506 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12507 echo "${ECHO_T}$ac_header_preproc" >&6; }
12509 # So? What about this header?
12510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12512 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12513 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12515 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12516 ac_header_preproc
=yes
12519 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12520 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12521 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12522 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12523 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12524 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12525 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12526 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12528 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12529 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12530 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12532 ## ----------------------------------- ##
12533 ## Report this to llvmbugs@cs.uiuc.edu ##
12534 ## ----------------------------------- ##
12536 ) |
sed "s/^/$as_me: WARNING: /" >&2
12539 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12540 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12541 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12542 echo $ECHO_N "(cached) $ECHO_C" >&6
12544 eval "$as_ac_Header=\$ac_header_preproc"
12546 ac_res
=`eval echo '${'$as_ac_Header'}'`
12547 { echo "$as_me:$LINENO: result: $ac_res" >&5
12548 echo "${ECHO_T}$ac_res" >&6; }
12551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12552 cat >>confdefs.h
<<_ACEOF
12553 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12563 for ac_func
in strchr index
12565 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12566 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12567 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12568 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12569 echo $ECHO_N "(cached) $ECHO_C" >&6
12571 cat >conftest.
$ac_ext <<_ACEOF
12574 cat confdefs.h
>>conftest.
$ac_ext
12575 cat >>conftest.
$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12578 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12579 #define $ac_func innocuous_$ac_func
12581 /* System header to define __stub macros and hopefully few prototypes,
12582 which can conflict with char $ac_func (); below.
12583 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12584 <limits.h> exists even on freestanding compilers. */
12587 # include <limits.h>
12589 # include <assert.h>
12594 /* Override any GCC internal prototype to avoid an error.
12595 Use char because int might match the return type of a GCC
12596 builtin and then its argument prototype would still apply. */
12601 /* The GNU C library defines this for functions which it implements
12602 to always fail with ENOSYS. Some functions are actually named
12603 something starting with __ and the normal name is an alias. */
12604 #if defined __stub_$ac_func || defined __stub___$ac_func
12611 return $ac_func ();
12616 rm -f conftest.
$ac_objext conftest
$ac_exeext
12617 if { (ac_try
="$ac_link"
12618 case "(($ac_try" in
12619 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12620 *) ac_try_echo=$ac_try;;
12622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12623 (eval "$ac_link") 2>conftest.er1
12625 grep -v '^ *+' conftest.er1 >conftest.err
12627 cat conftest.err >&5
12628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12629 (exit $ac_status); } &&
12630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12631 { (case "(($ac_try" in
12632 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12633 *) ac_try_echo
=$ac_try;;
12635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12636 (eval "$ac_try") 2>&5
12638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12639 (exit $ac_status); }; } &&
12640 { ac_try
='test -s conftest$ac_exeext'
12641 { (case "(($ac_try" in
12642 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12643 *) ac_try_echo=$ac_try;;
12645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12646 (eval "$ac_try") 2>&5
12648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12649 (exit $ac_status); }; }; then
12650 eval "$as_ac_var=yes"
12652 echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12655 eval "$as_ac_var=no"
12658 rm -f core conftest.err conftest.$ac_objext \
12659 conftest$ac_exeext conftest.$ac_ext
12661 ac_res=`eval echo '${'$as_ac_var'}'`
12662 { echo "$as_me:$LINENO: result: $ac_res" >&5
12663 echo "${ECHO_T}$ac_res" >&6; }
12664 if test `eval echo '${'$as_ac_var'}'` = yes; then
12665 cat >>confdefs.h <<_ACEOF
12666 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12674 for ac_func in strrchr rindex
12676 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12680 echo $ECHO_N "(cached) $ECHO_C" >&6
12682 cat >conftest.$ac_ext <<_ACEOF
12685 cat confdefs.h >>conftest.$ac_ext
12686 cat >>conftest.$ac_ext <<_ACEOF
12687 /* end confdefs.h. */
12688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12690 #define $ac_func innocuous_$ac_func
12692 /* System header to define __stub macros and hopefully few prototypes,
12693 which can conflict with char $ac_func (); below.
12694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12695 <limits.h> exists even on freestanding compilers. */
12698 # include <limits.h>
12700 # include <assert.h>
12705 /* Override any GCC internal prototype to avoid an error.
12706 Use char because int might match the return type of a GCC
12707 builtin and then its argument prototype would still apply. */
12712 /* The GNU C library defines this for functions which it implements
12713 to always fail with ENOSYS. Some functions are actually named
12714 something starting with __ and the normal name is an alias. */
12715 #if defined __stub_$ac_func || defined __stub___$ac_func
12722 return $ac_func ();
12727 rm -f conftest.$ac_objext conftest$ac_exeext
12728 if { (ac_try="$ac_link"
12729 case "(($ac_try" in
12730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12731 *) ac_try_echo
=$ac_try;;
12733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12734 (eval "$ac_link") 2>conftest.er1
12736 grep -v '^ *+' conftest.er1
>conftest.err
12738 cat conftest.err
>&5
12739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12740 (exit $ac_status); } &&
12741 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12742 { (case "(($ac_try" in
12743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12744 *) ac_try_echo=$ac_try;;
12746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12747 (eval "$ac_try") 2>&5
12749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12750 (exit $ac_status); }; } &&
12751 { ac_try='test -s conftest$ac_exeext'
12752 { (case "(($ac_try" in
12753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12754 *) ac_try_echo
=$ac_try;;
12756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12757 (eval "$ac_try") 2>&5
12759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12760 (exit $ac_status); }; }; then
12761 eval "$as_ac_var=yes"
12763 echo "$as_me: failed program was:" >&5
12764 sed 's/^/| /' conftest.
$ac_ext >&5
12766 eval "$as_ac_var=no"
12769 rm -f core conftest.err conftest.
$ac_objext \
12770 conftest
$ac_exeext conftest.
$ac_ext
12772 ac_res
=`eval echo '${'$as_ac_var'}'`
12773 { echo "$as_me:$LINENO: result: $ac_res" >&5
12774 echo "${ECHO_T}$ac_res" >&6; }
12775 if test `eval echo '${'$as_ac_var'}'` = yes; then
12776 cat >>confdefs.h
<<_ACEOF
12777 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12785 for ac_func
in memcpy bcopy
12787 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12788 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12789 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12790 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12791 echo $ECHO_N "(cached) $ECHO_C" >&6
12793 cat >conftest.
$ac_ext <<_ACEOF
12796 cat confdefs.h
>>conftest.
$ac_ext
12797 cat >>conftest.
$ac_ext <<_ACEOF
12798 /* end confdefs.h. */
12799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12801 #define $ac_func innocuous_$ac_func
12803 /* System header to define __stub macros and hopefully few prototypes,
12804 which can conflict with char $ac_func (); below.
12805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12806 <limits.h> exists even on freestanding compilers. */
12809 # include <limits.h>
12811 # include <assert.h>
12816 /* Override any GCC internal prototype to avoid an error.
12817 Use char because int might match the return type of a GCC
12818 builtin and then its argument prototype would still apply. */
12823 /* The GNU C library defines this for functions which it implements
12824 to always fail with ENOSYS. Some functions are actually named
12825 something starting with __ and the normal name is an alias. */
12826 #if defined __stub_$ac_func || defined __stub___$ac_func
12833 return $ac_func ();
12838 rm -f conftest.
$ac_objext conftest
$ac_exeext
12839 if { (ac_try
="$ac_link"
12840 case "(($ac_try" in
12841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12842 *) ac_try_echo=$ac_try;;
12844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12845 (eval "$ac_link") 2>conftest.er1
12847 grep -v '^ *+' conftest.er1 >conftest.err
12849 cat conftest.err >&5
12850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12851 (exit $ac_status); } &&
12852 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12853 { (case "(($ac_try" in
12854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12855 *) ac_try_echo
=$ac_try;;
12857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12858 (eval "$ac_try") 2>&5
12860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12861 (exit $ac_status); }; } &&
12862 { ac_try
='test -s conftest$ac_exeext'
12863 { (case "(($ac_try" in
12864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12865 *) ac_try_echo=$ac_try;;
12867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12868 (eval "$ac_try") 2>&5
12870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12871 (exit $ac_status); }; }; then
12872 eval "$as_ac_var=yes"
12874 echo "$as_me: failed program was:" >&5
12875 sed 's/^/| /' conftest.$ac_ext >&5
12877 eval "$as_ac_var=no"
12880 rm -f core conftest.err conftest.$ac_objext \
12881 conftest$ac_exeext conftest.$ac_ext
12883 ac_res=`eval echo '${'$as_ac_var'}'`
12884 { echo "$as_me:$LINENO: result: $ac_res" >&5
12885 echo "${ECHO_T}$ac_res" >&6; }
12886 if test `eval echo '${'$as_ac_var'}'` = yes; then
12887 cat >>confdefs.h <<_ACEOF
12888 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
12896 for ac_func in memmove strcmp
12898 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
12899 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12900 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12901 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12902 echo $ECHO_N "(cached) $ECHO_C" >&6
12904 cat >conftest.$ac_ext <<_ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12912 #define $ac_func innocuous_$ac_func
12914 /* System header to define __stub macros and hopefully few prototypes,
12915 which can conflict with char $ac_func (); below.
12916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12917 <limits.h> exists even on freestanding compilers. */
12920 # include <limits.h>
12922 # include <assert.h>
12927 /* Override any GCC internal prototype to avoid an error.
12928 Use char because int might match the return type of a GCC
12929 builtin and then its argument prototype would still apply. */
12934 /* The GNU C library defines this for functions which it implements
12935 to always fail with ENOSYS. Some functions are actually named
12936 something starting with __ and the normal name is an alias. */
12937 #if defined __stub_$ac_func || defined __stub___$ac_func
12944 return $ac_func ();
12949 rm -f conftest.$ac_objext conftest$ac_exeext
12950 if { (ac_try="$ac_link"
12951 case "(($ac_try" in
12952 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12953 *) ac_try_echo
=$ac_try;;
12955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12956 (eval "$ac_link") 2>conftest.er1
12958 grep -v '^ *+' conftest.er1
>conftest.err
12960 cat conftest.err
>&5
12961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12962 (exit $ac_status); } &&
12963 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12964 { (case "(($ac_try" in
12965 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12966 *) ac_try_echo=$ac_try;;
12968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12969 (eval "$ac_try") 2>&5
12971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12972 (exit $ac_status); }; } &&
12973 { ac_try='test -s conftest$ac_exeext'
12974 { (case "(($ac_try" in
12975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12976 *) ac_try_echo
=$ac_try;;
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_try") 2>&5
12981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12982 (exit $ac_status); }; }; then
12983 eval "$as_ac_var=yes"
12985 echo "$as_me: failed program was:" >&5
12986 sed 's/^/| /' conftest.
$ac_ext >&5
12988 eval "$as_ac_var=no"
12991 rm -f core conftest.err conftest.
$ac_objext \
12992 conftest
$ac_exeext conftest.
$ac_ext
12994 ac_res
=`eval echo '${'$as_ac_var'}'`
12995 { echo "$as_me:$LINENO: result: $ac_res" >&5
12996 echo "${ECHO_T}$ac_res" >&6; }
12997 if test `eval echo '${'$as_ac_var'}'` = yes; then
12998 cat >>confdefs.h
<<_ACEOF
12999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13008 for ac_func
in closedir opendir readdir
13010 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13013 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13014 echo $ECHO_N "(cached) $ECHO_C" >&6
13016 cat >conftest.
$ac_ext <<_ACEOF
13019 cat confdefs.h
>>conftest.
$ac_ext
13020 cat >>conftest.
$ac_ext <<_ACEOF
13021 /* end confdefs.h. */
13022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13024 #define $ac_func innocuous_$ac_func
13026 /* System header to define __stub macros and hopefully few prototypes,
13027 which can conflict with char $ac_func (); below.
13028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13029 <limits.h> exists even on freestanding compilers. */
13032 # include <limits.h>
13034 # include <assert.h>
13039 /* Override any GCC internal prototype to avoid an error.
13040 Use char because int might match the return type of a GCC
13041 builtin and then its argument prototype would still apply. */
13046 /* The GNU C library defines this for functions which it implements
13047 to always fail with ENOSYS. Some functions are actually named
13048 something starting with __ and the normal name is an alias. */
13049 #if defined __stub_$ac_func || defined __stub___$ac_func
13056 return $ac_func ();
13061 rm -f conftest.
$ac_objext conftest
$ac_exeext
13062 if { (ac_try
="$ac_link"
13063 case "(($ac_try" in
13064 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13065 *) ac_try_echo=$ac_try;;
13067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13068 (eval "$ac_link") 2>conftest.er1
13070 grep -v '^ *+' conftest.er1 >conftest.err
13072 cat conftest.err >&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); } &&
13075 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13076 { (case "(($ac_try" in
13077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13078 *) ac_try_echo
=$ac_try;;
13080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13081 (eval "$ac_try") 2>&5
13083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13084 (exit $ac_status); }; } &&
13085 { ac_try
='test -s conftest$ac_exeext'
13086 { (case "(($ac_try" in
13087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13088 *) ac_try_echo=$ac_try;;
13090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13091 (eval "$ac_try") 2>&5
13093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13094 (exit $ac_status); }; }; then
13095 eval "$as_ac_var=yes"
13097 echo "$as_me: failed program was:" >&5
13098 sed 's/^/| /' conftest.$ac_ext >&5
13100 eval "$as_ac_var=no"
13103 rm -f core conftest.err conftest.$ac_objext \
13104 conftest$ac_exeext conftest.$ac_ext
13106 ac_res=`eval echo '${'$as_ac_var'}'`
13107 { echo "$as_me:$LINENO: result: $ac_res" >&5
13108 echo "${ECHO_T}$ac_res" >&6; }
13109 if test `eval echo '${'$as_ac_var'}'` = yes; then
13110 cat >>confdefs.h <<_ACEOF
13111 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
13119 if test "$WITH_LLVMGCCDIR" = "default" ; then
13120 LLVMGCC="llvm-gcc${EXEEXT}"
13121 LLVMGXX="llvm-g++${EXEEXT}"
13122 LLVMGCCCOMMAND="$LLVMGCC"
13123 LLVMGXXCOMMAND="$LLVMGXX"
13124 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13126 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13128 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13129 set dummy $LLVMGCC; ac_word=$2
13130 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13131 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13132 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13133 echo $ECHO_N "(cached) $ECHO_C" >&6
13137 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13141 for as_dir in $PATH
13144 test -z "$as_dir" && as_dir=.
13145 for ac_exec_ext in '' $ac_executable_extensions; do
13146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13147 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13148 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13158 LLVMGCC=$ac_cv_path_LLVMGCC
13159 if test -n "$LLVMGCC"; then
13160 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13161 echo "${ECHO_T}$LLVMGCC" >&6; }
13163 { echo "$as_me:$LINENO: result: no" >&5
13164 echo "${ECHO_T}no" >&6; }
13168 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13169 set dummy $LLVMGXX; ac_word=$2
13170 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13171 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13172 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13173 echo $ECHO_N "(cached) $ECHO_C" >&6
13177 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13181 for as_dir in $PATH
13184 test -z "$as_dir" && as_dir=.
13185 for ac_exec_ext in '' $ac_executable_extensions; do
13186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13187 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13188 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13198 LLVMGXX=$ac_cv_path_LLVMGXX
13199 if test -n "$LLVMGXX"; then
13200 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13201 echo "${ECHO_T}$LLVMGXX" >&6; }
13203 { echo "$as_me:$LINENO: result: no" >&5
13204 echo "${ECHO_T}no" >&6; }
13209 if test -z "$LLVMGCC"; then
13210 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13211 LLVMGCCCOMMAND="$LLVMGCC"
13213 if test -z "$LLVMGXX"; then
13214 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13215 LLVMGXXCOMMAND="$LLVMGXX"
13222 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13224 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13229 # Check whether --with-llvmcc was given.
13230 if test "${with_llvmcc+set}" = set; then
13231 withval=$with_llvmcc;
13236 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13237 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13238 if test "$with_llvmcc" != "check"; then
13239 if (test "$with_llvmcc" != "llvm-gcc" &&
13240 test "$with_llvmcc" != "clang" &&
13241 test "$with_llvmcc" != "none"); then
13242 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13243 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13244 { (exit 1); exit 1; }; }
13246 WITH_LLVMCC="$with_llvmcc"
13247 elif test -n "$LLVMGCC"; then
13248 WITH_LLVMCC=llvm-gcc
13249 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13254 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13255 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13256 LLVMCC_OPTION=$WITH_LLVMCC
13259 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13260 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13273 if test "$GCC" != "yes" && test "$ICC" != "yes"
13275 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13276 echo "$as_me: error: gcc|icc required but not found" >&2;}
13277 { (exit 1); exit 1; }; }
13280 if test "$GXX" != "yes" && test "$IXX" != "yes"
13282 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13283 echo "$as_me: error: g++|icc required but not found" >&2;}
13284 { (exit 1); exit 1; }; }
13287 if test "$GCC" = "yes"
13289 cat >conftest.$ac_ext <<_ACEOF
13290 #if !defined(__GNUC__) || __GNUC__ < 3
13291 #error Unsupported GCC version
13295 rm -f conftest.$ac_objext
13296 if { (ac_try="$ac_compile"
13297 case "(($ac_try" in
13298 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13299 *) ac_try_echo
=$ac_try;;
13301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13302 (eval "$ac_compile") 2>conftest.er1
13304 grep -v '^ *+' conftest.er1
>conftest.err
13306 cat conftest.err
>&5
13307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13308 (exit $ac_status); } &&
13309 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13310 { (case "(($ac_try" in
13311 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13312 *) ac_try_echo=$ac_try;;
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_try") 2>&5
13317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13318 (exit $ac_status); }; } &&
13319 { ac_try='test -s conftest.$ac_objext'
13320 { (case "(($ac_try" in
13321 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13322 *) ac_try_echo
=$ac_try;;
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_try") 2>&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); }; }; then
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.
$ac_ext >&5
13334 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13335 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13336 { (exit 1); exit 1; }; }
13339 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13342 if test -z "$llvm_cv_gnu_make_command"
13344 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13345 echo "$as_me: error: GNU Make required but not found" >&2;}
13346 { (exit 1); exit 1; }; }
13349 { echo "$as_me:$LINENO: result: ok" >&5
13350 echo "${ECHO_T}ok" >&6; }
13352 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13353 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13354 NO_VARIADIC_MACROS
=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13356 NO_MISSING_FIELD_INITIALIZERS
=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13358 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13359 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13363 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13364 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13365 if test "${ac_cv_lib_m_sin+set}" = set; then
13366 echo $ECHO_N "(cached) $ECHO_C" >&6
13368 ac_check_lib_save_LIBS
=$LIBS
13370 cat >conftest.
$ac_ext <<_ACEOF
13373 cat confdefs.h
>>conftest.
$ac_ext
13374 cat >>conftest.
$ac_ext <<_ACEOF
13375 /* end confdefs.h. */
13377 /* Override any GCC internal prototype to avoid an error.
13378 Use char because int might match the return type of a GCC
13379 builtin and then its argument prototype would still apply. */
13392 rm -f conftest.
$ac_objext conftest
$ac_exeext
13393 if { (ac_try
="$ac_link"
13394 case "(($ac_try" in
13395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_link") 2>conftest.er1
13401 grep -v '^ *+' conftest.er1 >conftest.err
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } &&
13406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13407 { (case "(($ac_try" in
13408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13409 *) ac_try_echo
=$ac_try;;
13411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13412 (eval "$ac_try") 2>&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; } &&
13416 { ac_try
='test -s conftest$ac_exeext'
13417 { (case "(($ac_try" in
13418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13422 (eval "$ac_try") 2>&5
13424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13425 (exit $ac_status); }; }; then
13426 ac_cv_lib_m_sin=yes
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13434 rm -f core conftest.err conftest.$ac_objext \
13435 conftest$ac_exeext conftest.$ac_ext
13436 LIBS=$ac_check_lib_save_LIBS
13438 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13439 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13440 if test $ac_cv_lib_m_sin = yes; then
13441 cat >>confdefs.h <<_ACEOF
13442 #define HAVE_LIBM 1
13449 if test "$llvm_cv_os_type" = "MingW" ; then
13451 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13452 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13453 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13454 echo $ECHO_N "(cached) $ECHO_C" >&6
13456 ac_check_lib_save_LIBS=$LIBS
13457 LIBS="-limagehlp $LIBS"
13458 cat >conftest.$ac_ext <<_ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13474 rm -f conftest.$ac_objext conftest$ac_exeext
13475 if { (ac_try="$ac_link"
13476 case "(($ac_try" in
13477 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13478 *) ac_try_echo
=$ac_try;;
13480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13481 (eval "$ac_link") 2>conftest.er1
13483 grep -v '^ *+' conftest.er1
>conftest.err
13485 cat conftest.err
>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); } &&
13488 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13489 { (case "(($ac_try" in
13490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; } &&
13498 { ac_try='test -s conftest$ac_exeext'
13499 { (case "(($ac_try" in
13500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13501 *) ac_try_echo
=$ac_try;;
13503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13504 (eval "$ac_try") 2>&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); }; }; then
13508 ac_cv_lib_imagehlp_main
=yes
13510 echo "$as_me: failed program was:" >&5
13511 sed 's/^/| /' conftest.
$ac_ext >&5
13513 ac_cv_lib_imagehlp_main
=no
13516 rm -f core conftest.err conftest.
$ac_objext \
13517 conftest
$ac_exeext conftest.
$ac_ext
13518 LIBS
=$ac_check_lib_save_LIBS
13520 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13521 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13522 if test $ac_cv_lib_imagehlp_main = yes; then
13523 cat >>confdefs.h
<<_ACEOF
13524 #define HAVE_LIBIMAGEHLP 1
13527 LIBS
="-limagehlp $LIBS"
13532 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13533 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13534 if test "${ac_cv_lib_psapi_main+set}" = set; then
13535 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 ac_check_lib_save_LIBS
=$LIBS
13538 LIBS
="-lpsapi $LIBS"
13539 cat >conftest.
$ac_ext <<_ACEOF
13542 cat confdefs.h
>>conftest.
$ac_ext
13543 cat >>conftest.
$ac_ext <<_ACEOF
13544 /* end confdefs.h. */
13555 rm -f conftest.
$ac_objext conftest
$ac_exeext
13556 if { (ac_try
="$ac_link"
13557 case "(($ac_try" in
13558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13559 *) ac_try_echo=$ac_try;;
13561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13562 (eval "$ac_link") 2>conftest.er1
13564 grep -v '^ *+' conftest.er1 >conftest.err
13566 cat conftest.err >&5
13567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13568 (exit $ac_status); } &&
13569 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13570 { (case "(($ac_try" in
13571 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13572 *) ac_try_echo
=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_try") 2>&5
13577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); }; } &&
13579 { ac_try
='test -s conftest$ac_exeext'
13580 { (case "(($ac_try" in
13581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13582 *) ac_try_echo=$ac_try;;
13584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13585 (eval "$ac_try") 2>&5
13587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13588 (exit $ac_status); }; }; then
13589 ac_cv_lib_psapi_main=yes
13591 echo "$as_me: failed program was:" >&5
13592 sed 's/^/| /' conftest.$ac_ext >&5
13594 ac_cv_lib_psapi_main=no
13597 rm -f core conftest.err conftest.$ac_objext \
13598 conftest$ac_exeext conftest.$ac_ext
13599 LIBS=$ac_check_lib_save_LIBS
13601 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13602 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13603 if test $ac_cv_lib_psapi_main = yes; then
13604 cat >>confdefs.h <<_ACEOF
13605 #define HAVE_LIBPSAPI 1
13608 LIBS="-lpsapi $LIBS"
13614 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13615 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13616 if test "${ac_cv_search_dlopen+set}" = set; then
13617 echo $ECHO_N "(cached) $ECHO_C" >&6
13619 ac_func_search_save_LIBS=$LIBS
13620 cat >conftest.$ac_ext <<_ACEOF
13623 cat confdefs.h >>conftest.$ac_ext
13624 cat >>conftest.$ac_ext <<_ACEOF
13625 /* end confdefs.h. */
13627 /* Override any GCC internal prototype to avoid an error.
13628 Use char because int might match the return type of a GCC
13629 builtin and then its argument prototype would still apply. */
13642 for ac_lib in '' dl; do
13643 if test -z "$ac_lib"; then
13644 ac_res="none required"
13647 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13649 rm -f conftest.$ac_objext conftest$ac_exeext
13650 if { (ac_try="$ac_link"
13651 case "(($ac_try" in
13652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13653 *) ac_try_echo
=$ac_try;;
13655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13656 (eval "$ac_link") 2>conftest.er1
13658 grep -v '^ *+' conftest.er1
>conftest.err
13660 cat conftest.err
>&5
13661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13662 (exit $ac_status); } &&
13663 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13664 { (case "(($ac_try" in
13665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_try") 2>&5
13671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13672 (exit $ac_status); }; } &&
13673 { ac_try='test -s conftest$ac_exeext'
13674 { (case "(($ac_try" in
13675 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13676 *) ac_try_echo
=$ac_try;;
13678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13679 (eval "$ac_try") 2>&5
13681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13682 (exit $ac_status); }; }; then
13683 ac_cv_search_dlopen
=$ac_res
13685 echo "$as_me: failed program was:" >&5
13686 sed 's/^/| /' conftest.
$ac_ext >&5
13691 rm -f core conftest.err conftest.
$ac_objext \
13693 if test "${ac_cv_search_dlopen+set}" = set; then
13697 if test "${ac_cv_search_dlopen+set}" = set; then
13700 ac_cv_search_dlopen
=no
13702 rm conftest.
$ac_ext
13703 LIBS
=$ac_func_search_save_LIBS
13705 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13706 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13707 ac_res
=$ac_cv_search_dlopen
13708 if test "$ac_res" != no
; then
13709 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13711 cat >>confdefs.h
<<\_ACEOF
13712 #define HAVE_DLOPEN 1
13716 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13717 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13721 if test "$llvm_cv_enable_libffi" = "yes" ; then
13722 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13723 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13724 if test "${ac_cv_search_ffi_call+set}" = set; then
13725 echo $ECHO_N "(cached) $ECHO_C" >&6
13727 ac_func_search_save_LIBS
=$LIBS
13728 cat >conftest.
$ac_ext <<_ACEOF
13731 cat confdefs.h
>>conftest.
$ac_ext
13732 cat >>conftest.
$ac_ext <<_ACEOF
13733 /* end confdefs.h. */
13735 /* Override any GCC internal prototype to avoid an error.
13736 Use char because int might match the return type of a GCC
13737 builtin and then its argument prototype would still apply. */
13745 return ffi_call ();
13750 for ac_lib
in '' ffi
; do
13751 if test -z "$ac_lib"; then
13752 ac_res
="none required"
13755 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
13757 rm -f conftest.
$ac_objext conftest
$ac_exeext
13758 if { (ac_try
="$ac_link"
13759 case "(($ac_try" in
13760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13761 *) ac_try_echo=$ac_try;;
13763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13764 (eval "$ac_link") 2>conftest.er1
13766 grep -v '^ *+' conftest.er1 >conftest.err
13768 cat conftest.err >&5
13769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13770 (exit $ac_status); } &&
13771 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13772 { (case "(($ac_try" in
13773 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13774 *) ac_try_echo
=$ac_try;;
13776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13777 (eval "$ac_try") 2>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; } &&
13781 { ac_try
='test -s conftest$ac_exeext'
13782 { (case "(($ac_try" in
13783 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13784 *) ac_try_echo=$ac_try;;
13786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13787 (eval "$ac_try") 2>&5
13789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13790 (exit $ac_status); }; }; then
13791 ac_cv_search_ffi_call=$ac_res
13793 echo "$as_me: failed program was:" >&5
13794 sed 's/^/| /' conftest.$ac_ext >&5
13799 rm -f core conftest.err conftest.$ac_objext \
13801 if test "${ac_cv_search_ffi_call+set}" = set; then
13805 if test "${ac_cv_search_ffi_call+set}" = set; then
13808 ac_cv_search_ffi_call=no
13810 rm conftest.$ac_ext
13811 LIBS=$ac_func_search_save_LIBS
13813 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13814 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13815 ac_res=$ac_cv_search_ffi_call
13816 if test "$ac_res" != no; then
13817 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13819 cat >>confdefs.h <<\_ACEOF
13820 #define HAVE_FFI_CALL 1
13824 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13825 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13826 { (exit 1); exit 1; }; }
13831 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13832 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13833 if test "${ac_cv_search_mallinfo+set}" = set; then
13834 echo $ECHO_N "(cached) $ECHO_C" >&6
13836 ac_func_search_save_LIBS=$LIBS
13837 cat >conftest.$ac_ext <<_ACEOF
13840 cat confdefs.h >>conftest.$ac_ext
13841 cat >>conftest.$ac_ext <<_ACEOF
13842 /* end confdefs.h. */
13844 /* Override any GCC internal prototype to avoid an error.
13845 Use char because int might match the return type of a GCC
13846 builtin and then its argument prototype would still apply. */
13854 return mallinfo ();
13859 for ac_lib in '' malloc; do
13860 if test -z "$ac_lib"; then
13861 ac_res="none required"
13864 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13866 rm -f conftest.$ac_objext conftest$ac_exeext
13867 if { (ac_try="$ac_link"
13868 case "(($ac_try" in
13869 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13870 *) ac_try_echo
=$ac_try;;
13872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13873 (eval "$ac_link") 2>conftest.er1
13875 grep -v '^ *+' conftest.er1
>conftest.err
13877 cat conftest.err
>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); } &&
13880 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13881 { (case "(($ac_try" in
13882 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_try") 2>&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; } &&
13890 { ac_try='test -s conftest$ac_exeext'
13891 { (case "(($ac_try" in
13892 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13893 *) ac_try_echo
=$ac_try;;
13895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13896 (eval "$ac_try") 2>&5
13898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13899 (exit $ac_status); }; }; then
13900 ac_cv_search_mallinfo
=$ac_res
13902 echo "$as_me: failed program was:" >&5
13903 sed 's/^/| /' conftest.
$ac_ext >&5
13908 rm -f core conftest.err conftest.
$ac_objext \
13910 if test "${ac_cv_search_mallinfo+set}" = set; then
13914 if test "${ac_cv_search_mallinfo+set}" = set; then
13917 ac_cv_search_mallinfo
=no
13919 rm conftest.
$ac_ext
13920 LIBS
=$ac_func_search_save_LIBS
13922 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13923 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13924 ac_res
=$ac_cv_search_mallinfo
13925 if test "$ac_res" != no
; then
13926 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
13928 cat >>confdefs.h
<<\_ACEOF
13929 #define HAVE_MALLINFO 1
13935 if test "$ENABLE_THREADS" -eq 1 ; then
13937 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13938 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13939 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13940 echo $ECHO_N "(cached) $ECHO_C" >&6
13942 ac_check_lib_save_LIBS
=$LIBS
13943 LIBS
="-lpthread $LIBS"
13944 cat >conftest.
$ac_ext <<_ACEOF
13947 cat confdefs.h
>>conftest.
$ac_ext
13948 cat >>conftest.
$ac_ext <<_ACEOF
13949 /* end confdefs.h. */
13951 /* Override any GCC internal prototype to avoid an error.
13952 Use char because int might match the return type of a GCC
13953 builtin and then its argument prototype would still apply. */
13957 char pthread_mutex_init ();
13961 return pthread_mutex_init ();
13966 rm -f conftest.
$ac_objext conftest
$ac_exeext
13967 if { (ac_try
="$ac_link"
13968 case "(($ac_try" in
13969 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_link") 2>conftest.er1
13975 grep -v '^ *+' conftest.er1 >conftest.err
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } &&
13980 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13981 { (case "(($ac_try" in
13982 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13983 *) ac_try_echo
=$ac_try;;
13985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13986 (eval "$ac_try") 2>&5
13988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); }; } &&
13990 { ac_try
='test -s conftest$ac_exeext'
13991 { (case "(($ac_try" in
13992 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13993 *) ac_try_echo=$ac_try;;
13995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13996 (eval "$ac_try") 2>&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); }; }; then
14000 ac_cv_lib_pthread_pthread_mutex_init=yes
14002 echo "$as_me: failed program was:" >&5
14003 sed 's/^/| /' conftest.$ac_ext >&5
14005 ac_cv_lib_pthread_pthread_mutex_init=no
14008 rm -f core conftest.err conftest.$ac_objext \
14009 conftest$ac_exeext conftest.$ac_ext
14010 LIBS=$ac_check_lib_save_LIBS
14012 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14013 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14014 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14015 cat >>confdefs.h <<_ACEOF
14016 #define HAVE_LIBPTHREAD 1
14019 LIBS="-lpthread $LIBS"
14023 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14024 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14025 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 ac_func_search_save_LIBS=$LIBS
14029 cat >conftest.$ac_ext <<_ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14036 /* Override any GCC internal prototype to avoid an error.
14037 Use char because int might match the return type of a GCC
14038 builtin and then its argument prototype would still apply. */
14042 char pthread_mutex_lock ();
14046 return pthread_mutex_lock ();
14051 for ac_lib in '' pthread; do
14052 if test -z "$ac_lib"; then
14053 ac_res="none required"
14056 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14058 rm -f conftest.$ac_objext conftest$ac_exeext
14059 if { (ac_try="$ac_link"
14060 case "(($ac_try" in
14061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14062 *) ac_try_echo
=$ac_try;;
14064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14065 (eval "$ac_link") 2>conftest.er1
14067 grep -v '^ *+' conftest.er1
>conftest.err
14069 cat conftest.err
>&5
14070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14071 (exit $ac_status); } &&
14072 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14073 { (case "(($ac_try" in
14074 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14078 (eval "$ac_try") 2>&5
14080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14081 (exit $ac_status); }; } &&
14082 { ac_try='test -s conftest$ac_exeext'
14083 { (case "(($ac_try" in
14084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14085 *) ac_try_echo
=$ac_try;;
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_try") 2>&5
14090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14091 (exit $ac_status); }; }; then
14092 ac_cv_search_pthread_mutex_lock
=$ac_res
14094 echo "$as_me: failed program was:" >&5
14095 sed 's/^/| /' conftest.
$ac_ext >&5
14100 rm -f core conftest.err conftest.
$ac_objext \
14102 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14106 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14109 ac_cv_search_pthread_mutex_lock
=no
14111 rm conftest.
$ac_ext
14112 LIBS
=$ac_func_search_save_LIBS
14114 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14115 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14116 ac_res
=$ac_cv_search_pthread_mutex_lock
14117 if test "$ac_res" != no
; then
14118 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14120 cat >>confdefs.h
<<\_ACEOF
14121 #define HAVE_PTHREAD_MUTEX_LOCK 1
14126 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14127 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14128 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 ac_func_search_save_LIBS
=$LIBS
14132 cat >conftest.
$ac_ext <<_ACEOF
14135 cat confdefs.h
>>conftest.
$ac_ext
14136 cat >>conftest.
$ac_ext <<_ACEOF
14137 /* end confdefs.h. */
14139 /* Override any GCC internal prototype to avoid an error.
14140 Use char because int might match the return type of a GCC
14141 builtin and then its argument prototype would still apply. */
14145 char pthread_rwlock_init ();
14149 return pthread_rwlock_init ();
14154 for ac_lib
in '' pthread
; do
14155 if test -z "$ac_lib"; then
14156 ac_res
="none required"
14159 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14161 rm -f conftest.
$ac_objext conftest
$ac_exeext
14162 if { (ac_try
="$ac_link"
14163 case "(($ac_try" in
14164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14165 *) ac_try_echo=$ac_try;;
14167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14168 (eval "$ac_link") 2>conftest.er1
14170 grep -v '^ *+' conftest.er1 >conftest.err
14172 cat conftest.err >&5
14173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14174 (exit $ac_status); } &&
14175 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14176 { (case "(($ac_try" in
14177 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14178 *) ac_try_echo
=$ac_try;;
14180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14181 (eval "$ac_try") 2>&5
14183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14184 (exit $ac_status); }; } &&
14185 { ac_try
='test -s conftest$ac_exeext'
14186 { (case "(($ac_try" in
14187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14188 *) ac_try_echo=$ac_try;;
14190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14191 (eval "$ac_try") 2>&5
14193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14194 (exit $ac_status); }; }; then
14195 ac_cv_search_pthread_rwlock_init=$ac_res
14197 echo "$as_me: failed program was:" >&5
14198 sed 's/^/| /' conftest.$ac_ext >&5
14203 rm -f core conftest.err conftest.$ac_objext \
14205 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14209 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14212 ac_cv_search_pthread_rwlock_init=no
14214 rm conftest.$ac_ext
14215 LIBS=$ac_func_search_save_LIBS
14217 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14218 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14219 ac_res=$ac_cv_search_pthread_rwlock_init
14220 if test "$ac_res" != no; then
14221 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14223 cat >>confdefs.h <<\_ACEOF
14224 #define HAVE_PTHREAD_RWLOCK_INIT 1
14229 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14230 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14231 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14232 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 ac_func_search_save_LIBS=$LIBS
14235 cat >conftest.$ac_ext <<_ACEOF
14238 cat confdefs.h >>conftest.$ac_ext
14239 cat >>conftest.$ac_ext <<_ACEOF
14240 /* end confdefs.h. */
14242 /* Override any GCC internal prototype to avoid an error.
14243 Use char because int might match the return type of a GCC
14244 builtin and then its argument prototype would still apply. */
14248 char pthread_getspecific ();
14252 return pthread_getspecific ();
14257 for ac_lib in '' pthread; do
14258 if test -z "$ac_lib"; then
14259 ac_res="none required"
14262 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14264 rm -f conftest.$ac_objext conftest$ac_exeext
14265 if { (ac_try="$ac_link"
14266 case "(($ac_try" in
14267 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14268 *) ac_try_echo
=$ac_try;;
14270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14271 (eval "$ac_link") 2>conftest.er1
14273 grep -v '^ *+' conftest.er1
>conftest.err
14275 cat conftest.err
>&5
14276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14277 (exit $ac_status); } &&
14278 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14279 { (case "(($ac_try" in
14280 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284 (eval "$ac_try") 2>&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); }; } &&
14288 { ac_try='test -s conftest$ac_exeext'
14289 { (case "(($ac_try" in
14290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14291 *) ac_try_echo
=$ac_try;;
14293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14294 (eval "$ac_try") 2>&5
14296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14297 (exit $ac_status); }; }; then
14298 ac_cv_search_pthread_getspecific
=$ac_res
14300 echo "$as_me: failed program was:" >&5
14301 sed 's/^/| /' conftest.
$ac_ext >&5
14306 rm -f core conftest.err conftest.
$ac_objext \
14308 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14312 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14315 ac_cv_search_pthread_getspecific
=no
14317 rm conftest.
$ac_ext
14318 LIBS
=$ac_func_search_save_LIBS
14320 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14321 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14322 ac_res
=$ac_cv_search_pthread_getspecific
14323 if test "$ac_res" != no
; then
14324 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14326 cat >>confdefs.h
<<\_ACEOF
14327 #define HAVE_PTHREAD_GETSPECIFIC 1
14335 # Check whether --with-udis86 was given.
14336 if test "${with_udis86+set}" = set; then
14337 withval
=$with_udis86;
14342 *) LDFLAGS
="$LDFLAGS -L${withval}" ;;
14345 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14346 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14347 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14348 echo $ECHO_N "(cached) $ECHO_C" >&6
14350 ac_check_lib_save_LIBS
=$LIBS
14351 LIBS
="-ludis86 $LIBS"
14352 cat >conftest.
$ac_ext <<_ACEOF
14355 cat confdefs.h
>>conftest.
$ac_ext
14356 cat >>conftest.
$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14359 /* Override any GCC internal prototype to avoid an error.
14360 Use char because int might match the return type of a GCC
14361 builtin and then its argument prototype would still apply. */
14374 rm -f conftest.
$ac_objext conftest
$ac_exeext
14375 if { (ac_try
="$ac_link"
14376 case "(($ac_try" in
14377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14378 *) ac_try_echo=$ac_try;;
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_link") 2>conftest.er1
14383 grep -v '^ *+' conftest.er1 >conftest.err
14385 cat conftest.err >&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } &&
14388 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14389 { (case "(($ac_try" in
14390 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14391 *) ac_try_echo
=$ac_try;;
14393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14394 (eval "$ac_try") 2>&5
14396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14397 (exit $ac_status); }; } &&
14398 { ac_try
='test -s conftest$ac_exeext'
14399 { (case "(($ac_try" in
14400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14404 (eval "$ac_try") 2>&5
14406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14407 (exit $ac_status); }; }; then
14408 ac_cv_lib_udis86_ud_init=yes
14410 echo "$as_me: failed program was:" >&5
14411 sed 's/^/| /' conftest.$ac_ext >&5
14413 ac_cv_lib_udis86_ud_init=no
14416 rm -f core conftest.err conftest.$ac_objext \
14417 conftest$ac_exeext conftest.$ac_ext
14418 LIBS=$ac_check_lib_save_LIBS
14420 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14421 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14422 if test $ac_cv_lib_udis86_ud_init = yes; then
14423 cat >>confdefs.h <<_ACEOF
14424 #define HAVE_LIBUDIS86 1
14427 LIBS="-ludis86 $LIBS"
14431 echo "Error! You need to have libudis86 around."
14443 cat >>confdefs.h <<_ACEOF
14444 #define USE_UDIS86 $USE_UDIS86
14449 # Check whether --with-oprofile was given.
14450 if test "${with_oprofile+set}" = set; then
14451 withval=$with_oprofile;
14455 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14456 no) llvm_cv_oppath=
14459 *) llvm_cv_oppath="${withval}/lib/oprofile"
14460 CPPFLAGS="-I${withval}/include";;
14462 if test -n "$llvm_cv_oppath" ; then
14463 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14464 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14465 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14466 if test "${ac_cv_search_bfd_init+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14469 ac_func_search_save_LIBS=$LIBS
14470 cat >conftest.$ac_ext <<_ACEOF
14473 cat confdefs.h >>conftest.$ac_ext
14474 cat >>conftest.$ac_ext <<_ACEOF
14475 /* end confdefs.h. */
14477 /* Override any GCC internal prototype to avoid an error.
14478 Use char because int might match the return type of a GCC
14479 builtin and then its argument prototype would still apply. */
14487 return bfd_init ();
14492 for ac_lib in '' bfd; do
14493 if test -z "$ac_lib"; then
14494 ac_res="none required"
14497 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14499 rm -f conftest.$ac_objext conftest$ac_exeext
14500 if { (ac_try="$ac_link"
14501 case "(($ac_try" in
14502 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14503 *) ac_try_echo
=$ac_try;;
14505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14506 (eval "$ac_link") 2>conftest.er1
14508 grep -v '^ *+' conftest.er1
>conftest.err
14510 cat conftest.err
>&5
14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } &&
14513 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14514 { (case "(($ac_try" in
14515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14516 *) ac_try_echo=$ac_try;;
14518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14519 (eval "$ac_try") 2>&5
14521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14522 (exit $ac_status); }; } &&
14523 { ac_try='test -s conftest$ac_exeext'
14524 { (case "(($ac_try" in
14525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14526 *) ac_try_echo
=$ac_try;;
14528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14529 (eval "$ac_try") 2>&5
14531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14532 (exit $ac_status); }; }; then
14533 ac_cv_search_bfd_init
=$ac_res
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.
$ac_ext >&5
14541 rm -f core conftest.err conftest.
$ac_objext \
14543 if test "${ac_cv_search_bfd_init+set}" = set; then
14547 if test "${ac_cv_search_bfd_init+set}" = set; then
14550 ac_cv_search_bfd_init
=no
14552 rm conftest.
$ac_ext
14553 LIBS
=$ac_func_search_save_LIBS
14555 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14556 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14557 ac_res
=$ac_cv_search_bfd_init
14558 if test "$ac_res" != no
; then
14559 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
14563 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14564 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14565 if test "${ac_cv_search_op_open_agent+set}" = set; then
14566 echo $ECHO_N "(cached) $ECHO_C" >&6
14568 ac_func_search_save_LIBS
=$LIBS
14569 cat >conftest.
$ac_ext <<_ACEOF
14572 cat confdefs.h
>>conftest.
$ac_ext
14573 cat >>conftest.
$ac_ext <<_ACEOF
14574 /* end confdefs.h. */
14576 /* Override any GCC internal prototype to avoid an error.
14577 Use char because int might match the return type of a GCC
14578 builtin and then its argument prototype would still apply. */
14582 char op_open_agent ();
14586 return op_open_agent ();
14591 for ac_lib
in '' opagent
; do
14592 if test -z "$ac_lib"; then
14593 ac_res
="none required"
14596 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14598 rm -f conftest.
$ac_objext conftest
$ac_exeext
14599 if { (ac_try
="$ac_link"
14600 case "(($ac_try" in
14601 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_link") 2>conftest.er1
14607 grep -v '^ *+' conftest.er1 >conftest.err
14609 cat conftest.err >&5
14610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14611 (exit $ac_status); } &&
14612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14613 { (case "(($ac_try" in
14614 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14615 *) ac_try_echo
=$ac_try;;
14617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_try") 2>&5
14620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14621 (exit $ac_status); }; } &&
14622 { ac_try
='test -s conftest$ac_exeext'
14623 { (case "(($ac_try" in
14624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14625 *) ac_try_echo=$ac_try;;
14627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14628 (eval "$ac_try") 2>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); }; }; then
14632 ac_cv_search_op_open_agent=$ac_res
14634 echo "$as_me: failed program was:" >&5
14635 sed 's/^/| /' conftest.$ac_ext >&5
14640 rm -f core conftest.err conftest.$ac_objext \
14642 if test "${ac_cv_search_op_open_agent+set}" = set; then
14646 if test "${ac_cv_search_op_open_agent+set}" = set; then
14649 ac_cv_search_op_open_agent=no
14651 rm conftest.$ac_ext
14652 LIBS=$ac_func_search_save_LIBS
14654 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14655 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14656 ac_res=$ac_cv_search_op_open_agent
14657 if test "$ac_res" != no; then
14658 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14662 echo "Error! You need to have libopagent around."
14667 if test "${ac_cv_header_opagent_h+set}" = set; then
14668 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14669 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14670 if test "${ac_cv_header_opagent_h+set}" = set; then
14671 echo $ECHO_N "(cached) $ECHO_C" >&6
14673 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14674 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14676 # Is the header compilable?
14677 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14678 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14679 cat >conftest.$ac_ext <<_ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 $ac_includes_default
14686 #include <opagent.h>
14688 rm -f conftest.$ac_objext
14689 if { (ac_try="$ac_compile"
14690 case "(($ac_try" in
14691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14692 *) ac_try_echo
=$ac_try;;
14694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14695 (eval "$ac_compile") 2>conftest.er1
14697 grep -v '^ *+' conftest.er1
>conftest.err
14699 cat conftest.err
>&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); } &&
14702 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14703 { (case "(($ac_try" in
14704 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_try") 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; } &&
14712 { ac_try='test -s conftest.$ac_objext'
14713 { (case "(($ac_try" in
14714 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14715 *) ac_try_echo
=$ac_try;;
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_try") 2>&5
14720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14721 (exit $ac_status); }; }; then
14722 ac_header_compiler
=yes
14724 echo "$as_me: failed program was:" >&5
14725 sed 's/^/| /' conftest.
$ac_ext >&5
14727 ac_header_compiler
=no
14730 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14731 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14732 echo "${ECHO_T}$ac_header_compiler" >&6; }
14734 # Is the header present?
14735 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14736 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14737 cat >conftest.
$ac_ext <<_ACEOF
14740 cat confdefs.h
>>conftest.
$ac_ext
14741 cat >>conftest.
$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14743 #include <opagent.h>
14745 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14746 case "(($ac_try" in
14747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14748 *) ac_try_echo=$ac_try;;
14750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14751 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14753 grep -v '^ *+' conftest.er1 >conftest.err
14755 cat conftest.err >&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); } >/dev/null; then
14758 if test -s conftest.err; then
14759 ac_cpp_err=$ac_c_preproc_warn_flag
14760 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14767 if test -z "$ac_cpp_err"; then
14768 ac_header_preproc=yes
14770 echo "$as_me: failed program was:" >&5
14771 sed 's/^/| /' conftest.$ac_ext >&5
14773 ac_header_preproc=no
14776 rm -f conftest.err conftest.$ac_ext
14777 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14778 echo "${ECHO_T}$ac_header_preproc" >&6; }
14780 # So? What about this header?
14781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14783 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14784 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14785 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14786 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14787 ac_header_preproc=yes
14790 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14791 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14793 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14795 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14797 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14799 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14800 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14801 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14803 ## ----------------------------------- ##
14804 ## Report this to llvmbugs@cs.uiuc.edu ##
14805 ## ----------------------------------- ##
14807 ) | sed "s/^/$as_me: WARNING: /" >&2
14810 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14811 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14812 if test "${ac_cv_header_opagent_h+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14815 ac_cv_header_opagent_h=$ac_header_preproc
14817 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14818 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14821 if test $ac_cv_header_opagent_h = yes; then
14825 echo "Error! You need to have opagent.h around."
14841 cat >>confdefs.h <<_ACEOF
14842 #define USE_OPROFILE $USE_OPROFILE
14852 ac_header_dirent=no
14853 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14854 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" |
$as_tr_sh`
14855 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14856 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14858 echo $ECHO_N "(cached) $ECHO_C" >&6
14860 cat >conftest.$ac_ext <<_ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 #include <sys/types.h>
14878 rm -f conftest.$ac_objext
14879 if { (ac_try="$ac_compile"
14880 case "(($ac_try" in
14881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14882 *) ac_try_echo
=$ac_try;;
14884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14885 (eval "$ac_compile") 2>conftest.er1
14887 grep -v '^ *+' conftest.er1
>conftest.err
14889 cat conftest.err
>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); } &&
14892 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14893 { (case "(($ac_try" in
14894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14895 *) ac_try_echo=$ac_try;;
14897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14898 (eval "$ac_try") 2>&5
14900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14901 (exit $ac_status); }; } &&
14902 { ac_try='test -s conftest.$ac_objext'
14903 { (case "(($ac_try" in
14904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14905 *) ac_try_echo
=$ac_try;;
14907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14908 (eval "$ac_try") 2>&5
14910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14911 (exit $ac_status); }; }; then
14912 eval "$as_ac_Header=yes"
14914 echo "$as_me: failed program was:" >&5
14915 sed 's/^/| /' conftest.
$ac_ext >&5
14917 eval "$as_ac_Header=no"
14920 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14922 ac_res
=`eval echo '${'$as_ac_Header'}'`
14923 { echo "$as_me:$LINENO: result: $ac_res" >&5
14924 echo "${ECHO_T}$ac_res" >&6; }
14925 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14926 cat >>confdefs.h
<<_ACEOF
14927 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14930 ac_header_dirent
=$ac_hdr; break
14934 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14935 if test $ac_header_dirent = dirent.h
; then
14936 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14937 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14938 if test "${ac_cv_search_opendir+set}" = set; then
14939 echo $ECHO_N "(cached) $ECHO_C" >&6
14941 ac_func_search_save_LIBS
=$LIBS
14942 cat >conftest.
$ac_ext <<_ACEOF
14945 cat confdefs.h
>>conftest.
$ac_ext
14946 cat >>conftest.
$ac_ext <<_ACEOF
14947 /* end confdefs.h. */
14949 /* Override any GCC internal prototype to avoid an error.
14950 Use char because int might match the return type of a GCC
14951 builtin and then its argument prototype would still apply. */
14964 for ac_lib
in '' dir
; do
14965 if test -z "$ac_lib"; then
14966 ac_res
="none required"
14969 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
14971 rm -f conftest.
$ac_objext conftest
$ac_exeext
14972 if { (ac_try
="$ac_link"
14973 case "(($ac_try" in
14974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14975 *) ac_try_echo=$ac_try;;
14977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14978 (eval "$ac_link") 2>conftest.er1
14980 grep -v '^ *+' conftest.er1 >conftest.err
14982 cat conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 (exit $ac_status); } &&
14985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14986 { (case "(($ac_try" in
14987 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14988 *) ac_try_echo
=$ac_try;;
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_try") 2>&5
14993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14994 (exit $ac_status); }; } &&
14995 { ac_try
='test -s conftest$ac_exeext'
14996 { (case "(($ac_try" in
14997 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14998 *) ac_try_echo=$ac_try;;
15000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15001 (eval "$ac_try") 2>&5
15003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15004 (exit $ac_status); }; }; then
15005 ac_cv_search_opendir=$ac_res
15007 echo "$as_me: failed program was:" >&5
15008 sed 's/^/| /' conftest.$ac_ext >&5
15013 rm -f core conftest.err conftest.$ac_objext \
15015 if test "${ac_cv_search_opendir+set}" = set; then
15019 if test "${ac_cv_search_opendir+set}" = set; then
15022 ac_cv_search_opendir=no
15024 rm conftest.$ac_ext
15025 LIBS=$ac_func_search_save_LIBS
15027 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15028 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15029 ac_res=$ac_cv_search_opendir
15030 if test "$ac_res" != no; then
15031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15036 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15037 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15038 if test "${ac_cv_search_opendir+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15041 ac_func_search_save_LIBS=$LIBS
15042 cat >conftest.$ac_ext <<_ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15049 /* Override any GCC internal prototype to avoid an error.
15050 Use char because int might match the return type of a GCC
15051 builtin and then its argument prototype would still apply. */
15064 for ac_lib in '' x; do
15065 if test -z "$ac_lib"; then
15066 ac_res="none required"
15069 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15071 rm -f conftest.$ac_objext conftest$ac_exeext
15072 if { (ac_try="$ac_link"
15073 case "(($ac_try" in
15074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15075 *) ac_try_echo
=$ac_try;;
15077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15078 (eval "$ac_link") 2>conftest.er1
15080 grep -v '^ *+' conftest.er1
>conftest.err
15082 cat conftest.err
>&5
15083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15084 (exit $ac_status); } &&
15085 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15086 { (case "(($ac_try" in
15087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_try") 2>&5
15093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15094 (exit $ac_status); }; } &&
15095 { ac_try='test -s conftest$ac_exeext'
15096 { (case "(($ac_try" in
15097 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15098 *) ac_try_echo
=$ac_try;;
15100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15101 (eval "$ac_try") 2>&5
15103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15104 (exit $ac_status); }; }; then
15105 ac_cv_search_opendir
=$ac_res
15107 echo "$as_me: failed program was:" >&5
15108 sed 's/^/| /' conftest.
$ac_ext >&5
15113 rm -f core conftest.err conftest.
$ac_objext \
15115 if test "${ac_cv_search_opendir+set}" = set; then
15119 if test "${ac_cv_search_opendir+set}" = set; then
15122 ac_cv_search_opendir
=no
15124 rm conftest.
$ac_ext
15125 LIBS
=$ac_func_search_save_LIBS
15127 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15128 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15129 ac_res
=$ac_cv_search_opendir
15130 if test "$ac_res" != no
; then
15131 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
15137 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15138 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15139 if test "${ac_cv_header_mmap_anon+set}" = set; then
15140 echo $ECHO_N "(cached) $ECHO_C" >&6
15143 ac_cpp
='$CPP $CPPFLAGS'
15144 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15145 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15146 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15148 cat >conftest.
$ac_ext <<_ACEOF
15151 cat confdefs.h
>>conftest.
$ac_ext
15152 cat >>conftest.
$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 #include <sys/mman.h>
15155 #include <unistd.h>
15160 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15165 rm -f conftest.
$ac_objext
15166 if { (ac_try
="$ac_compile"
15167 case "(($ac_try" in
15168 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15169 *) ac_try_echo=$ac_try;;
15171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15172 (eval "$ac_compile") 2>conftest.er1
15174 grep -v '^ *+' conftest.er1 >conftest.err
15176 cat conftest.err >&5
15177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15178 (exit $ac_status); } &&
15179 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15180 { (case "(($ac_try" in
15181 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15182 *) ac_try_echo
=$ac_try;;
15184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15185 (eval "$ac_try") 2>&5
15187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15188 (exit $ac_status); }; } &&
15189 { ac_try
='test -s conftest.$ac_objext'
15190 { (case "(($ac_try" in
15191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15192 *) ac_try_echo=$ac_try;;
15194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195 (eval "$ac_try") 2>&5
15197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15198 (exit $ac_status); }; }; then
15199 ac_cv_header_mmap_anon=yes
15201 echo "$as_me: failed program was:" >&5
15202 sed 's/^/| /' conftest.$ac_ext >&5
15204 ac_cv_header_mmap_anon=no
15207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15209 ac_cpp='$CPP $CPPFLAGS'
15210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15216 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15217 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15218 if test "$ac_cv_header_mmap_anon" = yes; then
15220 cat >>confdefs.h <<\_ACEOF
15221 #define HAVE_MMAP_ANONYMOUS 1
15226 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15227 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15228 if test "${ac_cv_header_stat_broken+set}" = set; then
15229 echo $ECHO_N "(cached) $ECHO_C" >&6
15231 cat >conftest.$ac_ext <<_ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 #include <sys/types.h>
15238 #include <sys/stat.h>
15240 #if defined S_ISBLK && defined S_IFDIR
15241 # if S_ISBLK (S_IFDIR)
15246 #if defined S_ISBLK && defined S_IFCHR
15247 # if S_ISBLK (S_IFCHR)
15252 #if defined S_ISLNK && defined S_IFREG
15253 # if S_ISLNK (S_IFREG)
15258 #if defined S_ISSOCK && defined S_IFREG
15259 # if S_ISSOCK (S_IFREG)
15265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15266 $EGREP "You lose" >/dev/null 2>&1; then
15267 ac_cv_header_stat_broken=yes
15269 ac_cv_header_stat_broken=no
15274 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15275 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15276 if test $ac_cv_header_stat_broken = yes; then
15278 cat >>confdefs.h <<\_ACEOF
15279 #define STAT_MACROS_BROKEN 1
15284 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15285 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15286 if test "${ac_cv_header_stdc+set}" = set; then
15287 echo $ECHO_N "(cached) $ECHO_C" >&6
15289 cat >conftest.$ac_ext <<_ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #include <stdlib.h>
15296 #include <stdarg.h>
15297 #include <string.h>
15308 rm -f conftest.$ac_objext
15309 if { (ac_try="$ac_compile"
15310 case "(($ac_try" in
15311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15312 *) ac_try_echo
=$ac_try;;
15314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15315 (eval "$ac_compile") 2>conftest.er1
15317 grep -v '^ *+' conftest.er1
>conftest.err
15319 cat conftest.err
>&5
15320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15321 (exit $ac_status); } &&
15322 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15323 { (case "(($ac_try" in
15324 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_try") 2>&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); }; } &&
15332 { ac_try='test -s conftest.$ac_objext'
15333 { (case "(($ac_try" in
15334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15335 *) ac_try_echo
=$ac_try;;
15337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15338 (eval "$ac_try") 2>&5
15340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15341 (exit $ac_status); }; }; then
15342 ac_cv_header_stdc
=yes
15344 echo "$as_me: failed program was:" >&5
15345 sed 's/^/| /' conftest.
$ac_ext >&5
15347 ac_cv_header_stdc
=no
15350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15352 if test $ac_cv_header_stdc = yes; then
15353 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15354 cat >conftest.
$ac_ext <<_ACEOF
15357 cat confdefs.h
>>conftest.
$ac_ext
15358 cat >>conftest.
$ac_ext <<_ACEOF
15359 /* end confdefs.h. */
15360 #include <string.h>
15363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15364 $EGREP "memchr" >/dev
/null
2>&1; then
15367 ac_cv_header_stdc
=no
15373 if test $ac_cv_header_stdc = yes; then
15374 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15375 cat >conftest.
$ac_ext <<_ACEOF
15378 cat confdefs.h
>>conftest.
$ac_ext
15379 cat >>conftest.
$ac_ext <<_ACEOF
15380 /* end confdefs.h. */
15381 #include <stdlib.h>
15384 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15385 $EGREP "free" >/dev
/null
2>&1; then
15388 ac_cv_header_stdc
=no
15394 if test $ac_cv_header_stdc = yes; then
15395 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15396 if test "$cross_compiling" = yes; then
15399 cat >conftest.
$ac_ext <<_ACEOF
15402 cat confdefs.h
>>conftest.
$ac_ext
15403 cat >>conftest.
$ac_ext <<_ACEOF
15404 /* end confdefs.h. */
15406 #include <stdlib.h>
15407 #if ((' ' & 0x0FF) == 0x020)
15408 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15409 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15411 # define ISLOWER(c) \
15412 (('a' <= (c) && (c) <= 'i') \
15413 || ('j' <= (c) && (c) <= 'r') \
15414 || ('s' <= (c) && (c) <= 'z'))
15415 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15418 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15423 for (i = 0; i < 256; i++)
15424 if (XOR (islower (i), ISLOWER (i))
15425 || toupper (i) != TOUPPER (i))
15430 rm -f conftest
$ac_exeext
15431 if { (ac_try
="$ac_link"
15432 case "(($ac_try" in
15433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15434 *) ac_try_echo=$ac_try;;
15436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15437 (eval "$ac_link") 2>&5
15439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15440 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15441 { (case "(($ac_try" in
15442 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15443 *) ac_try_echo
=$ac_try;;
15445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15446 (eval "$ac_try") 2>&5
15448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15449 (exit $ac_status); }; }; then
15452 echo "$as_me: program exited with status $ac_status" >&5
15453 echo "$as_me: failed program was:" >&5
15454 sed 's/^/| /' conftest.
$ac_ext >&5
15456 ( exit $ac_status )
15457 ac_cv_header_stdc
=no
15459 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
15465 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15466 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15467 if test $ac_cv_header_stdc = yes; then
15469 cat >>confdefs.h
<<\_ACEOF
15470 #define STDC_HEADERS 1
15475 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15476 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15477 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15478 echo $ECHO_N "(cached) $ECHO_C" >&6
15480 cat >conftest.
$ac_ext <<_ACEOF
15483 cat confdefs.h
>>conftest.
$ac_ext
15484 cat >>conftest.
$ac_ext <<_ACEOF
15485 /* end confdefs.h. */
15486 #include <sys/types.h>
15487 #include <sys/wait.h>
15488 #ifndef WEXITSTATUS
15489 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15492 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15500 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15505 rm -f conftest.
$ac_objext
15506 if { (ac_try
="$ac_compile"
15507 case "(($ac_try" in
15508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15509 *) ac_try_echo=$ac_try;;
15511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15512 (eval "$ac_compile") 2>conftest.er1
15514 grep -v '^ *+' conftest.er1 >conftest.err
15516 cat conftest.err >&5
15517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15518 (exit $ac_status); } &&
15519 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15520 { (case "(($ac_try" in
15521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15522 *) ac_try_echo
=$ac_try;;
15524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15525 (eval "$ac_try") 2>&5
15527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15528 (exit $ac_status); }; } &&
15529 { ac_try
='test -s conftest.$ac_objext'
15530 { (case "(($ac_try" in
15531 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15532 *) ac_try_echo=$ac_try;;
15534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15535 (eval "$ac_try") 2>&5
15537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15538 (exit $ac_status); }; }; then
15539 ac_cv_header_sys_wait_h=yes
15541 echo "$as_me: failed program was:" >&5
15542 sed 's/^/| /' conftest.$ac_ext >&5
15544 ac_cv_header_sys_wait_h=no
15547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15549 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15550 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15551 if test $ac_cv_header_sys_wait_h = yes; then
15553 cat >>confdefs.h <<\_ACEOF
15554 #define HAVE_SYS_WAIT_H 1
15559 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15560 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15561 if test "${ac_cv_header_time+set}" = set; then
15562 echo $ECHO_N "(cached) $ECHO_C" >&6
15564 cat >conftest.$ac_ext <<_ACEOF
15567 cat confdefs.h >>conftest.$ac_ext
15568 cat >>conftest.$ac_ext <<_ACEOF
15569 /* end confdefs.h. */
15570 #include <sys/types.h>
15571 #include <sys/time.h>
15577 if ((struct tm *) 0)
15583 rm -f conftest.$ac_objext
15584 if { (ac_try="$ac_compile"
15585 case "(($ac_try" in
15586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15587 *) ac_try_echo
=$ac_try;;
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_compile") 2>conftest.er1
15592 grep -v '^ *+' conftest.er1
>conftest.err
15594 cat conftest.err
>&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } &&
15597 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15598 { (case "(($ac_try" in
15599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15600 *) ac_try_echo=$ac_try;;
15602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15603 (eval "$ac_try") 2>&5
15605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15606 (exit $ac_status); }; } &&
15607 { ac_try='test -s conftest.$ac_objext'
15608 { (case "(($ac_try" in
15609 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15610 *) ac_try_echo
=$ac_try;;
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_try") 2>&5
15615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15616 (exit $ac_status); }; }; then
15617 ac_cv_header_time
=yes
15619 echo "$as_me: failed program was:" >&5
15620 sed 's/^/| /' conftest.
$ac_ext >&5
15622 ac_cv_header_time
=no
15625 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15627 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15628 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15629 if test $ac_cv_header_time = yes; then
15631 cat >>confdefs.h
<<\_ACEOF
15632 #define TIME_WITH_SYS_TIME 1
15644 for ac_header
in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15646 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15647 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15650 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15651 echo $ECHO_N "(cached) $ECHO_C" >&6
15653 ac_res
=`eval echo '${'$as_ac_Header'}'`
15654 { echo "$as_me:$LINENO: result: $ac_res" >&5
15655 echo "${ECHO_T}$ac_res" >&6; }
15657 # Is the header compilable?
15658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15660 cat >conftest.
$ac_ext <<_ACEOF
15663 cat confdefs.h
>>conftest.
$ac_ext
15664 cat >>conftest.
$ac_ext <<_ACEOF
15665 /* end confdefs.h. */
15666 $ac_includes_default
15667 #include <$ac_header>
15669 rm -f conftest.
$ac_objext
15670 if { (ac_try
="$ac_compile"
15671 case "(($ac_try" in
15672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_compile") 2>conftest.er1
15678 grep -v '^ *+' conftest.er1 >conftest.err
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } &&
15683 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15684 { (case "(($ac_try" in
15685 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15686 *) ac_try_echo
=$ac_try;;
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_try") 2>&5
15691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15692 (exit $ac_status); }; } &&
15693 { ac_try
='test -s conftest.$ac_objext'
15694 { (case "(($ac_try" in
15695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_try") 2>&5
15701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15702 (exit $ac_status); }; }; then
15703 ac_header_compiler=yes
15705 echo "$as_me: failed program was:" >&5
15706 sed 's/^/| /' conftest.$ac_ext >&5
15708 ac_header_compiler=no
15711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15713 echo "${ECHO_T}$ac_header_compiler" >&6; }
15715 # Is the header present?
15716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15718 cat >conftest.$ac_ext <<_ACEOF
15721 cat confdefs.h >>conftest.$ac_ext
15722 cat >>conftest.$ac_ext <<_ACEOF
15723 /* end confdefs.h. */
15724 #include <$ac_header>
15726 if { (ac_try="$ac_cpp conftest.$ac_ext"
15727 case "(($ac_try" in
15728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15729 *) ac_try_echo
=$ac_try;;
15731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15734 grep -v '^ *+' conftest.er1
>conftest.err
15736 cat conftest.err
>&5
15737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15738 (exit $ac_status); } >/dev
/null
; then
15739 if test -s conftest.err
; then
15740 ac_cpp_err
=$ac_c_preproc_warn_flag
15741 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15748 if test -z "$ac_cpp_err"; then
15749 ac_header_preproc
=yes
15751 echo "$as_me: failed program was:" >&5
15752 sed 's/^/| /' conftest.
$ac_ext >&5
15754 ac_header_preproc
=no
15757 rm -f conftest.err conftest.
$ac_ext
15758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15759 echo "${ECHO_T}$ac_header_preproc" >&6; }
15761 # So? What about this header?
15762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15768 ac_header_preproc
=yes
15771 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15773 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15774 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15775 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15777 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15778 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15779 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15781 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15784 ## ----------------------------------- ##
15785 ## Report this to llvmbugs@cs.uiuc.edu ##
15786 ## ----------------------------------- ##
15788 ) |
sed "s/^/$as_me: WARNING: /" >&2
15791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15793 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15794 echo $ECHO_N "(cached) $ECHO_C" >&6
15796 eval "$as_ac_Header=\$ac_header_preproc"
15798 ac_res
=`eval echo '${'$as_ac_Header'}'`
15799 { echo "$as_me:$LINENO: result: $ac_res" >&5
15800 echo "${ECHO_T}$ac_res" >&6; }
15803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15804 cat >>confdefs.h
<<_ACEOF
15805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15818 for ac_header
in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15820 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15821 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15824 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15827 ac_res
=`eval echo '${'$as_ac_Header'}'`
15828 { echo "$as_me:$LINENO: result: $ac_res" >&5
15829 echo "${ECHO_T}$ac_res" >&6; }
15831 # Is the header compilable?
15832 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15833 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15834 cat >conftest.
$ac_ext <<_ACEOF
15837 cat confdefs.h
>>conftest.
$ac_ext
15838 cat >>conftest.
$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 $ac_includes_default
15841 #include <$ac_header>
15843 rm -f conftest.
$ac_objext
15844 if { (ac_try
="$ac_compile"
15845 case "(($ac_try" in
15846 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15850 (eval "$ac_compile") 2>conftest.er1
15852 grep -v '^ *+' conftest.er1 >conftest.err
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15856 (exit $ac_status); } &&
15857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15858 { (case "(($ac_try" in
15859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15860 *) ac_try_echo
=$ac_try;;
15862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15863 (eval "$ac_try") 2>&5
15865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15866 (exit $ac_status); }; } &&
15867 { ac_try
='test -s conftest.$ac_objext'
15868 { (case "(($ac_try" in
15869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15870 *) ac_try_echo=$ac_try;;
15872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15873 (eval "$ac_try") 2>&5
15875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15876 (exit $ac_status); }; }; then
15877 ac_header_compiler=yes
15879 echo "$as_me: failed program was:" >&5
15880 sed 's/^/| /' conftest.$ac_ext >&5
15882 ac_header_compiler=no
15885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15887 echo "${ECHO_T}$ac_header_compiler" >&6; }
15889 # Is the header present?
15890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15892 cat >conftest.$ac_ext <<_ACEOF
15895 cat confdefs.h >>conftest.$ac_ext
15896 cat >>conftest.$ac_ext <<_ACEOF
15897 /* end confdefs.h. */
15898 #include <$ac_header>
15900 if { (ac_try="$ac_cpp conftest.$ac_ext"
15901 case "(($ac_try" in
15902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15903 *) ac_try_echo
=$ac_try;;
15905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15908 grep -v '^ *+' conftest.er1
>conftest.err
15910 cat conftest.err
>&5
15911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } >/dev
/null
; then
15913 if test -s conftest.err
; then
15914 ac_cpp_err
=$ac_c_preproc_warn_flag
15915 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
15922 if test -z "$ac_cpp_err"; then
15923 ac_header_preproc
=yes
15925 echo "$as_me: failed program was:" >&5
15926 sed 's/^/| /' conftest.
$ac_ext >&5
15928 ac_header_preproc
=no
15931 rm -f conftest.err conftest.
$ac_ext
15932 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15933 echo "${ECHO_T}$ac_header_preproc" >&6; }
15935 # So? What about this header?
15936 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15939 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15941 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15942 ac_header_preproc
=yes
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15946 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15948 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15949 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15950 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15952 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15954 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15955 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15956 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15958 ## ----------------------------------- ##
15959 ## Report this to llvmbugs@cs.uiuc.edu ##
15960 ## ----------------------------------- ##
15962 ) |
sed "s/^/$as_me: WARNING: /" >&2
15965 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15966 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15967 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15968 echo $ECHO_N "(cached) $ECHO_C" >&6
15970 eval "$as_ac_Header=\$ac_header_preproc"
15972 ac_res
=`eval echo '${'$as_ac_Header'}'`
15973 { echo "$as_me:$LINENO: result: $ac_res" >&5
15974 echo "${ECHO_T}$ac_res" >&6; }
15977 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15978 cat >>confdefs.h
<<_ACEOF
15979 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15988 for ac_header
in utime.h windows.h
15990 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15991 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15994 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15997 ac_res
=`eval echo '${'$as_ac_Header'}'`
15998 { echo "$as_me:$LINENO: result: $ac_res" >&5
15999 echo "${ECHO_T}$ac_res" >&6; }
16001 # Is the header compilable?
16002 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16003 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16004 cat >conftest.
$ac_ext <<_ACEOF
16007 cat confdefs.h
>>conftest.
$ac_ext
16008 cat >>conftest.
$ac_ext <<_ACEOF
16009 /* end confdefs.h. */
16010 $ac_includes_default
16011 #include <$ac_header>
16013 rm -f conftest.
$ac_objext
16014 if { (ac_try
="$ac_compile"
16015 case "(($ac_try" in
16016 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16017 *) ac_try_echo=$ac_try;;
16019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16020 (eval "$ac_compile") 2>conftest.er1
16022 grep -v '^ *+' conftest.er1 >conftest.err
16024 cat conftest.err >&5
16025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16026 (exit $ac_status); } &&
16027 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16028 { (case "(($ac_try" in
16029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16030 *) ac_try_echo
=$ac_try;;
16032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16033 (eval "$ac_try") 2>&5
16035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16036 (exit $ac_status); }; } &&
16037 { ac_try
='test -s conftest.$ac_objext'
16038 { (case "(($ac_try" in
16039 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16040 *) ac_try_echo=$ac_try;;
16042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16043 (eval "$ac_try") 2>&5
16045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16046 (exit $ac_status); }; }; then
16047 ac_header_compiler=yes
16049 echo "$as_me: failed program was:" >&5
16050 sed 's/^/| /' conftest.$ac_ext >&5
16052 ac_header_compiler=no
16055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16056 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16057 echo "${ECHO_T}$ac_header_compiler" >&6; }
16059 # Is the header present?
16060 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16061 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16062 cat >conftest.$ac_ext <<_ACEOF
16065 cat confdefs.h >>conftest.$ac_ext
16066 cat >>conftest.$ac_ext <<_ACEOF
16067 /* end confdefs.h. */
16068 #include <$ac_header>
16070 if { (ac_try="$ac_cpp conftest.$ac_ext"
16071 case "(($ac_try" in
16072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16073 *) ac_try_echo
=$ac_try;;
16075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16078 grep -v '^ *+' conftest.er1
>conftest.err
16080 cat conftest.err
>&5
16081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16082 (exit $ac_status); } >/dev
/null
; then
16083 if test -s conftest.err
; then
16084 ac_cpp_err
=$ac_c_preproc_warn_flag
16085 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16092 if test -z "$ac_cpp_err"; then
16093 ac_header_preproc
=yes
16095 echo "$as_me: failed program was:" >&5
16096 sed 's/^/| /' conftest.
$ac_ext >&5
16098 ac_header_preproc
=no
16101 rm -f conftest.err conftest.
$ac_ext
16102 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16103 echo "${ECHO_T}$ac_header_preproc" >&6; }
16105 # So? What about this header?
16106 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16108 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16109 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16111 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16112 ac_header_preproc
=yes
16115 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16116 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16117 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16118 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16119 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16120 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16121 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16122 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16124 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16125 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16126 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16128 ## ----------------------------------- ##
16129 ## Report this to llvmbugs@cs.uiuc.edu ##
16130 ## ----------------------------------- ##
16132 ) |
sed "s/^/$as_me: WARNING: /" >&2
16135 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16136 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16137 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16138 echo $ECHO_N "(cached) $ECHO_C" >&6
16140 eval "$as_ac_Header=\$ac_header_preproc"
16142 ac_res
=`eval echo '${'$as_ac_Header'}'`
16143 { echo "$as_me:$LINENO: result: $ac_res" >&5
16144 echo "${ECHO_T}$ac_res" >&6; }
16147 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16148 cat >>confdefs.h
<<_ACEOF
16149 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16160 for ac_header
in sys
/mman.h sys
/param.h sys
/resource.h sys
/time.h
16162 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16163 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16166 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16167 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 ac_res
=`eval echo '${'$as_ac_Header'}'`
16170 { echo "$as_me:$LINENO: result: $ac_res" >&5
16171 echo "${ECHO_T}$ac_res" >&6; }
16173 # Is the header compilable?
16174 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16175 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16176 cat >conftest.
$ac_ext <<_ACEOF
16179 cat confdefs.h
>>conftest.
$ac_ext
16180 cat >>conftest.
$ac_ext <<_ACEOF
16181 /* end confdefs.h. */
16182 $ac_includes_default
16183 #include <$ac_header>
16185 rm -f conftest.
$ac_objext
16186 if { (ac_try
="$ac_compile"
16187 case "(($ac_try" in
16188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16189 *) ac_try_echo=$ac_try;;
16191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16192 (eval "$ac_compile") 2>conftest.er1
16194 grep -v '^ *+' conftest.er1 >conftest.err
16196 cat conftest.err >&5
16197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16198 (exit $ac_status); } &&
16199 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16200 { (case "(($ac_try" in
16201 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16202 *) ac_try_echo
=$ac_try;;
16204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16205 (eval "$ac_try") 2>&5
16207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16208 (exit $ac_status); }; } &&
16209 { ac_try
='test -s conftest.$ac_objext'
16210 { (case "(($ac_try" in
16211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16212 *) ac_try_echo=$ac_try;;
16214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16215 (eval "$ac_try") 2>&5
16217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); }; }; then
16219 ac_header_compiler=yes
16221 echo "$as_me: failed program was:" >&5
16222 sed 's/^/| /' conftest.$ac_ext >&5
16224 ac_header_compiler=no
16227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16228 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16229 echo "${ECHO_T}$ac_header_compiler" >&6; }
16231 # Is the header present?
16232 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16233 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16234 cat >conftest.$ac_ext <<_ACEOF
16237 cat confdefs.h >>conftest.$ac_ext
16238 cat >>conftest.$ac_ext <<_ACEOF
16239 /* end confdefs.h. */
16240 #include <$ac_header>
16242 if { (ac_try="$ac_cpp conftest.$ac_ext"
16243 case "(($ac_try" in
16244 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16245 *) ac_try_echo
=$ac_try;;
16247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16248 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16250 grep -v '^ *+' conftest.er1
>conftest.err
16252 cat conftest.err
>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); } >/dev
/null
; then
16255 if test -s conftest.err
; then
16256 ac_cpp_err
=$ac_c_preproc_warn_flag
16257 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16264 if test -z "$ac_cpp_err"; then
16265 ac_header_preproc
=yes
16267 echo "$as_me: failed program was:" >&5
16268 sed 's/^/| /' conftest.
$ac_ext >&5
16270 ac_header_preproc
=no
16273 rm -f conftest.err conftest.
$ac_ext
16274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16275 echo "${ECHO_T}$ac_header_preproc" >&6; }
16277 # So? What about this header?
16278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16284 ac_header_preproc
=yes
16287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16300 ## ----------------------------------- ##
16301 ## Report this to llvmbugs@cs.uiuc.edu ##
16302 ## ----------------------------------- ##
16304 ) |
sed "s/^/$as_me: WARNING: /" >&2
16307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16309 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16310 echo $ECHO_N "(cached) $ECHO_C" >&6
16312 eval "$as_ac_Header=\$ac_header_preproc"
16314 ac_res
=`eval echo '${'$as_ac_Header'}'`
16315 { echo "$as_me:$LINENO: result: $ac_res" >&5
16316 echo "${ECHO_T}$ac_res" >&6; }
16319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16320 cat >>confdefs.h
<<_ACEOF
16321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16332 for ac_header
in sys
/types.h sys
/ioctl.h malloc
/malloc.h mach
/mach.h
16334 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16335 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16336 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16337 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16338 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16339 echo $ECHO_N "(cached) $ECHO_C" >&6
16341 ac_res
=`eval echo '${'$as_ac_Header'}'`
16342 { echo "$as_me:$LINENO: result: $ac_res" >&5
16343 echo "${ECHO_T}$ac_res" >&6; }
16345 # Is the header compilable?
16346 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16347 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16348 cat >conftest.
$ac_ext <<_ACEOF
16351 cat confdefs.h
>>conftest.
$ac_ext
16352 cat >>conftest.
$ac_ext <<_ACEOF
16353 /* end confdefs.h. */
16354 $ac_includes_default
16355 #include <$ac_header>
16357 rm -f conftest.
$ac_objext
16358 if { (ac_try
="$ac_compile"
16359 case "(($ac_try" in
16360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16361 *) ac_try_echo=$ac_try;;
16363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16364 (eval "$ac_compile") 2>conftest.er1
16366 grep -v '^ *+' conftest.er1 >conftest.err
16368 cat conftest.err >&5
16369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16370 (exit $ac_status); } &&
16371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16372 { (case "(($ac_try" in
16373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16374 *) ac_try_echo
=$ac_try;;
16376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16377 (eval "$ac_try") 2>&5
16379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16380 (exit $ac_status); }; } &&
16381 { ac_try
='test -s conftest.$ac_objext'
16382 { (case "(($ac_try" in
16383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16384 *) ac_try_echo=$ac_try;;
16386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16387 (eval "$ac_try") 2>&5
16389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16390 (exit $ac_status); }; }; then
16391 ac_header_compiler=yes
16393 echo "$as_me: failed program was:" >&5
16394 sed 's/^/| /' conftest.$ac_ext >&5
16396 ac_header_compiler=no
16399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16400 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16401 echo "${ECHO_T}$ac_header_compiler" >&6; }
16403 # Is the header present?
16404 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16405 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16406 cat >conftest.$ac_ext <<_ACEOF
16409 cat confdefs.h >>conftest.$ac_ext
16410 cat >>conftest.$ac_ext <<_ACEOF
16411 /* end confdefs.h. */
16412 #include <$ac_header>
16414 if { (ac_try="$ac_cpp conftest.$ac_ext"
16415 case "(($ac_try" in
16416 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16417 *) ac_try_echo
=$ac_try;;
16419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16420 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16422 grep -v '^ *+' conftest.er1
>conftest.err
16424 cat conftest.err
>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); } >/dev
/null
; then
16427 if test -s conftest.err
; then
16428 ac_cpp_err
=$ac_c_preproc_warn_flag
16429 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16436 if test -z "$ac_cpp_err"; then
16437 ac_header_preproc
=yes
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.
$ac_ext >&5
16442 ac_header_preproc
=no
16445 rm -f conftest.err conftest.
$ac_ext
16446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16447 echo "${ECHO_T}$ac_header_preproc" >&6; }
16449 # So? What about this header?
16450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16456 ac_header_preproc
=yes
16459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16472 ## ----------------------------------- ##
16473 ## Report this to llvmbugs@cs.uiuc.edu ##
16474 ## ----------------------------------- ##
16476 ) |
sed "s/^/$as_me: WARNING: /" >&2
16479 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16480 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16481 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16482 echo $ECHO_N "(cached) $ECHO_C" >&6
16484 eval "$as_ac_Header=\$ac_header_preproc"
16486 ac_res
=`eval echo '${'$as_ac_Header'}'`
16487 { echo "$as_me:$LINENO: result: $ac_res" >&5
16488 echo "${ECHO_T}$ac_res" >&6; }
16491 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16492 cat >>confdefs.h
<<_ACEOF
16493 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16501 for ac_header
in valgrind
/valgrind.h
16503 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16504 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16507 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16508 echo $ECHO_N "(cached) $ECHO_C" >&6
16510 ac_res
=`eval echo '${'$as_ac_Header'}'`
16511 { echo "$as_me:$LINENO: result: $ac_res" >&5
16512 echo "${ECHO_T}$ac_res" >&6; }
16514 # Is the header compilable?
16515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16517 cat >conftest.
$ac_ext <<_ACEOF
16520 cat confdefs.h
>>conftest.
$ac_ext
16521 cat >>conftest.
$ac_ext <<_ACEOF
16522 /* end confdefs.h. */
16523 $ac_includes_default
16524 #include <$ac_header>
16526 rm -f conftest.
$ac_objext
16527 if { (ac_try
="$ac_compile"
16528 case "(($ac_try" in
16529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16530 *) ac_try_echo=$ac_try;;
16532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16533 (eval "$ac_compile") 2>conftest.er1
16535 grep -v '^ *+' conftest.er1 >conftest.err
16537 cat conftest.err >&5
16538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16539 (exit $ac_status); } &&
16540 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16541 { (case "(($ac_try" in
16542 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16543 *) ac_try_echo
=$ac_try;;
16545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16546 (eval "$ac_try") 2>&5
16548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16549 (exit $ac_status); }; } &&
16550 { ac_try
='test -s conftest.$ac_objext'
16551 { (case "(($ac_try" in
16552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16553 *) ac_try_echo=$ac_try;;
16555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16556 (eval "$ac_try") 2>&5
16558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16559 (exit $ac_status); }; }; then
16560 ac_header_compiler=yes
16562 echo "$as_me: failed program was:" >&5
16563 sed 's/^/| /' conftest.$ac_ext >&5
16565 ac_header_compiler=no
16568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16570 echo "${ECHO_T}$ac_header_compiler" >&6; }
16572 # Is the header present?
16573 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16574 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16575 cat >conftest.$ac_ext <<_ACEOF
16578 cat confdefs.h >>conftest.$ac_ext
16579 cat >>conftest.$ac_ext <<_ACEOF
16580 /* end confdefs.h. */
16581 #include <$ac_header>
16583 if { (ac_try="$ac_cpp conftest.$ac_ext"
16584 case "(($ac_try" in
16585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16586 *) ac_try_echo
=$ac_try;;
16588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16591 grep -v '^ *+' conftest.er1
>conftest.err
16593 cat conftest.err
>&5
16594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16595 (exit $ac_status); } >/dev
/null
; then
16596 if test -s conftest.err
; then
16597 ac_cpp_err
=$ac_c_preproc_warn_flag
16598 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16605 if test -z "$ac_cpp_err"; then
16606 ac_header_preproc
=yes
16608 echo "$as_me: failed program was:" >&5
16609 sed 's/^/| /' conftest.
$ac_ext >&5
16611 ac_header_preproc
=no
16614 rm -f conftest.err conftest.
$ac_ext
16615 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16616 echo "${ECHO_T}$ac_header_preproc" >&6; }
16618 # So? What about this header?
16619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16621 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16622 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16624 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16625 ac_header_preproc
=yes
16628 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16629 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16631 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16632 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16633 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16634 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16635 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16636 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16637 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16638 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16639 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16641 ## ----------------------------------- ##
16642 ## Report this to llvmbugs@cs.uiuc.edu ##
16643 ## ----------------------------------- ##
16645 ) |
sed "s/^/$as_me: WARNING: /" >&2
16648 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16650 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16651 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 eval "$as_ac_Header=\$ac_header_preproc"
16655 ac_res
=`eval echo '${'$as_ac_Header'}'`
16656 { echo "$as_me:$LINENO: result: $ac_res" >&5
16657 echo "${ECHO_T}$ac_res" >&6; }
16660 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16661 cat >>confdefs.h
<<_ACEOF
16662 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16670 for ac_header
in fenv.h
16672 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16673 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16674 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16675 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16676 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16677 echo $ECHO_N "(cached) $ECHO_C" >&6
16679 ac_res
=`eval echo '${'$as_ac_Header'}'`
16680 { echo "$as_me:$LINENO: result: $ac_res" >&5
16681 echo "${ECHO_T}$ac_res" >&6; }
16683 # Is the header compilable?
16684 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16685 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16686 cat >conftest.
$ac_ext <<_ACEOF
16689 cat confdefs.h
>>conftest.
$ac_ext
16690 cat >>conftest.
$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692 $ac_includes_default
16693 #include <$ac_header>
16695 rm -f conftest.
$ac_objext
16696 if { (ac_try
="$ac_compile"
16697 case "(($ac_try" in
16698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16699 *) ac_try_echo=$ac_try;;
16701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16702 (eval "$ac_compile") 2>conftest.er1
16704 grep -v '^ *+' conftest.er1 >conftest.err
16706 cat conftest.err >&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); } &&
16709 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16710 { (case "(($ac_try" in
16711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16712 *) ac_try_echo
=$ac_try;;
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_try") 2>&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); }; } &&
16719 { ac_try
='test -s conftest.$ac_objext'
16720 { (case "(($ac_try" in
16721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_try") 2>&5
16727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16728 (exit $ac_status); }; }; then
16729 ac_header_compiler=yes
16731 echo "$as_me: failed program was:" >&5
16732 sed 's/^/| /' conftest.$ac_ext >&5
16734 ac_header_compiler=no
16737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16738 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16739 echo "${ECHO_T}$ac_header_compiler" >&6; }
16741 # Is the header present?
16742 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16743 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16744 cat >conftest.$ac_ext <<_ACEOF
16747 cat confdefs.h >>conftest.$ac_ext
16748 cat >>conftest.$ac_ext <<_ACEOF
16749 /* end confdefs.h. */
16750 #include <$ac_header>
16752 if { (ac_try="$ac_cpp conftest.$ac_ext"
16753 case "(($ac_try" in
16754 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16755 *) ac_try_echo
=$ac_try;;
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16760 grep -v '^ *+' conftest.er1
>conftest.err
16762 cat conftest.err
>&5
16763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16764 (exit $ac_status); } >/dev
/null
; then
16765 if test -s conftest.err
; then
16766 ac_cpp_err
=$ac_c_preproc_warn_flag
16767 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16774 if test -z "$ac_cpp_err"; then
16775 ac_header_preproc
=yes
16777 echo "$as_me: failed program was:" >&5
16778 sed 's/^/| /' conftest.
$ac_ext >&5
16780 ac_header_preproc
=no
16783 rm -f conftest.err conftest.
$ac_ext
16784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16785 echo "${ECHO_T}$ac_header_preproc" >&6; }
16787 # So? What about this header?
16788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16794 ac_header_preproc
=yes
16797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16810 ## ----------------------------------- ##
16811 ## Report this to llvmbugs@cs.uiuc.edu ##
16812 ## ----------------------------------- ##
16814 ) |
sed "s/^/$as_me: WARNING: /" >&2
16817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16819 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16820 echo $ECHO_N "(cached) $ECHO_C" >&6
16822 eval "$as_ac_Header=\$ac_header_preproc"
16824 ac_res
=`eval echo '${'$as_ac_Header'}'`
16825 { echo "$as_me:$LINENO: result: $ac_res" >&5
16826 echo "${ECHO_T}$ac_res" >&6; }
16829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16830 cat >>confdefs.h
<<_ACEOF
16831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16838 if test "$ENABLE_THREADS" -eq 1 ; then
16840 for ac_header
in pthread.h
16842 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16843 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16844 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16845 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16846 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16849 ac_res
=`eval echo '${'$as_ac_Header'}'`
16850 { echo "$as_me:$LINENO: result: $ac_res" >&5
16851 echo "${ECHO_T}$ac_res" >&6; }
16853 # Is the header compilable?
16854 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16855 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16856 cat >conftest.
$ac_ext <<_ACEOF
16859 cat confdefs.h
>>conftest.
$ac_ext
16860 cat >>conftest.
$ac_ext <<_ACEOF
16861 /* end confdefs.h. */
16862 $ac_includes_default
16863 #include <$ac_header>
16865 rm -f conftest.
$ac_objext
16866 if { (ac_try
="$ac_compile"
16867 case "(($ac_try" in
16868 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16869 *) ac_try_echo=$ac_try;;
16871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16872 (eval "$ac_compile") 2>conftest.er1
16874 grep -v '^ *+' conftest.er1 >conftest.err
16876 cat conftest.err >&5
16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16878 (exit $ac_status); } &&
16879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16880 { (case "(($ac_try" in
16881 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16882 *) ac_try_echo
=$ac_try;;
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_try") 2>&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); }; } &&
16889 { ac_try
='test -s conftest.$ac_objext'
16890 { (case "(($ac_try" in
16891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16895 (eval "$ac_try") 2>&5
16897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16898 (exit $ac_status); }; }; then
16899 ac_header_compiler=yes
16901 echo "$as_me: failed program was:" >&5
16902 sed 's/^/| /' conftest.$ac_ext >&5
16904 ac_header_compiler=no
16907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16909 echo "${ECHO_T}$ac_header_compiler" >&6; }
16911 # Is the header present?
16912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16914 cat >conftest.$ac_ext <<_ACEOF
16917 cat confdefs.h >>conftest.$ac_ext
16918 cat >>conftest.$ac_ext <<_ACEOF
16919 /* end confdefs.h. */
16920 #include <$ac_header>
16922 if { (ac_try="$ac_cpp conftest.$ac_ext"
16923 case "(($ac_try" in
16924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
16925 *) ac_try_echo
=$ac_try;;
16927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16930 grep -v '^ *+' conftest.er1
>conftest.err
16932 cat conftest.err
>&5
16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16934 (exit $ac_status); } >/dev
/null
; then
16935 if test -s conftest.err
; then
16936 ac_cpp_err
=$ac_c_preproc_warn_flag
16937 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
16944 if test -z "$ac_cpp_err"; then
16945 ac_header_preproc
=yes
16947 echo "$as_me: failed program was:" >&5
16948 sed 's/^/| /' conftest.
$ac_ext >&5
16950 ac_header_preproc
=no
16953 rm -f conftest.err conftest.
$ac_ext
16954 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16955 echo "${ECHO_T}$ac_header_preproc" >&6; }
16957 # So? What about this header?
16958 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16960 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16961 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16963 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16964 ac_header_preproc
=yes
16967 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16968 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16969 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16970 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16971 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16972 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16973 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16974 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16975 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16976 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16977 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16978 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16980 ## ----------------------------------- ##
16981 ## Report this to llvmbugs@cs.uiuc.edu ##
16982 ## ----------------------------------- ##
16984 ) |
sed "s/^/$as_me: WARNING: /" >&2
16987 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16988 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16989 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16990 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 eval "$as_ac_Header=\$ac_header_preproc"
16994 ac_res
=`eval echo '${'$as_ac_Header'}'`
16995 { echo "$as_me:$LINENO: result: $ac_res" >&5
16996 echo "${ECHO_T}$ac_res" >&6; }
16999 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17000 cat >>confdefs.h
<<_ACEOF
17001 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17017 if test "$llvm_cv_enable_libffi" = "yes" ; then
17020 for ac_header
in ffi.h ffi
/ffi.h
17022 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17023 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17024 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17025 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17026 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17027 echo $ECHO_N "(cached) $ECHO_C" >&6
17029 ac_res
=`eval echo '${'$as_ac_Header'}'`
17030 { echo "$as_me:$LINENO: result: $ac_res" >&5
17031 echo "${ECHO_T}$ac_res" >&6; }
17033 # Is the header compilable?
17034 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17035 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17036 cat >conftest.
$ac_ext <<_ACEOF
17039 cat confdefs.h
>>conftest.
$ac_ext
17040 cat >>conftest.
$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17042 $ac_includes_default
17043 #include <$ac_header>
17045 rm -f conftest.
$ac_objext
17046 if { (ac_try
="$ac_compile"
17047 case "(($ac_try" in
17048 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_compile") 2>conftest.er1
17054 grep -v '^ *+' conftest.er1 >conftest.err
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } &&
17059 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17060 { (case "(($ac_try" in
17061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17062 *) ac_try_echo
=$ac_try;;
17064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_try") 2>&5
17067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17068 (exit $ac_status); }; } &&
17069 { ac_try
='test -s conftest.$ac_objext'
17070 { (case "(($ac_try" in
17071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17072 *) ac_try_echo=$ac_try;;
17074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17075 (eval "$ac_try") 2>&5
17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17078 (exit $ac_status); }; }; then
17079 ac_header_compiler=yes
17081 echo "$as_me: failed program was:" >&5
17082 sed 's/^/| /' conftest.$ac_ext >&5
17084 ac_header_compiler=no
17087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17089 echo "${ECHO_T}$ac_header_compiler" >&6; }
17091 # Is the header present?
17092 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17093 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17094 cat >conftest.$ac_ext <<_ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100 #include <$ac_header>
17102 if { (ac_try="$ac_cpp conftest.$ac_ext"
17103 case "(($ac_try" in
17104 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17105 *) ac_try_echo
=$ac_try;;
17107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17110 grep -v '^ *+' conftest.er1
>conftest.err
17112 cat conftest.err
>&5
17113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17114 (exit $ac_status); } >/dev
/null
; then
17115 if test -s conftest.err
; then
17116 ac_cpp_err
=$ac_c_preproc_warn_flag
17117 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17124 if test -z "$ac_cpp_err"; then
17125 ac_header_preproc
=yes
17127 echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.
$ac_ext >&5
17130 ac_header_preproc
=no
17133 rm -f conftest.err conftest.
$ac_ext
17134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17135 echo "${ECHO_T}$ac_header_preproc" >&6; }
17137 # So? What about this header?
17138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17144 ac_header_preproc
=yes
17147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17160 ## ----------------------------------- ##
17161 ## Report this to llvmbugs@cs.uiuc.edu ##
17162 ## ----------------------------------- ##
17164 ) |
sed "s/^/$as_me: WARNING: /" >&2
17167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17169 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17172 eval "$as_ac_Header=\$ac_header_preproc"
17174 ac_res
=`eval echo '${'$as_ac_Header'}'`
17175 { echo "$as_me:$LINENO: result: $ac_res" >&5
17176 echo "${ECHO_T}$ac_res" >&6; }
17179 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17180 cat >>confdefs.h
<<_ACEOF
17181 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17191 for ac_header
in CrashReporterClient.h
17193 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17194 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17195 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17196 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17197 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17198 echo $ECHO_N "(cached) $ECHO_C" >&6
17200 ac_res
=`eval echo '${'$as_ac_Header'}'`
17201 { echo "$as_me:$LINENO: result: $ac_res" >&5
17202 echo "${ECHO_T}$ac_res" >&6; }
17204 # Is the header compilable?
17205 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17206 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17207 cat >conftest.
$ac_ext <<_ACEOF
17210 cat confdefs.h
>>conftest.
$ac_ext
17211 cat >>conftest.
$ac_ext <<_ACEOF
17212 /* end confdefs.h. */
17213 $ac_includes_default
17214 #include <$ac_header>
17216 rm -f conftest.
$ac_objext
17217 if { (ac_try
="$ac_compile"
17218 case "(($ac_try" in
17219 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17223 (eval "$ac_compile") 2>conftest.er1
17225 grep -v '^ *+' conftest.er1 >conftest.err
17227 cat conftest.err >&5
17228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17229 (exit $ac_status); } &&
17230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17231 { (case "(($ac_try" in
17232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17233 *) ac_try_echo
=$ac_try;;
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_try") 2>&5
17238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17239 (exit $ac_status); }; } &&
17240 { ac_try
='test -s conftest.$ac_objext'
17241 { (case "(($ac_try" in
17242 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17243 *) ac_try_echo=$ac_try;;
17245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17246 (eval "$ac_try") 2>&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); }; }; then
17250 ac_header_compiler=yes
17252 echo "$as_me: failed program was:" >&5
17253 sed 's/^/| /' conftest.$ac_ext >&5
17255 ac_header_compiler=no
17258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17260 echo "${ECHO_T}$ac_header_compiler" >&6; }
17262 # Is the header present?
17263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17265 cat >conftest.$ac_ext <<_ACEOF
17268 cat confdefs.h >>conftest.$ac_ext
17269 cat >>conftest.$ac_ext <<_ACEOF
17270 /* end confdefs.h. */
17271 #include <$ac_header>
17273 if { (ac_try="$ac_cpp conftest.$ac_ext"
17274 case "(($ac_try" in
17275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17276 *) ac_try_echo
=$ac_try;;
17278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17281 grep -v '^ *+' conftest.er1
>conftest.err
17283 cat conftest.err
>&5
17284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17285 (exit $ac_status); } >/dev
/null
; then
17286 if test -s conftest.err
; then
17287 ac_cpp_err
=$ac_c_preproc_warn_flag
17288 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
17295 if test -z "$ac_cpp_err"; then
17296 ac_header_preproc
=yes
17298 echo "$as_me: failed program was:" >&5
17299 sed 's/^/| /' conftest.
$ac_ext >&5
17301 ac_header_preproc
=no
17304 rm -f conftest.err conftest.
$ac_ext
17305 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17306 echo "${ECHO_T}$ac_header_preproc" >&6; }
17308 # So? What about this header?
17309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17311 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17312 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17313 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17315 ac_header_preproc
=yes
17318 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17319 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17320 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17321 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17322 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17323 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17324 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17325 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17328 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17329 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17331 ## ----------------------------------- ##
17332 ## Report this to llvmbugs@cs.uiuc.edu ##
17333 ## ----------------------------------- ##
17335 ) |
sed "s/^/$as_me: WARNING: /" >&2
17338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17340 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17341 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 eval "$as_ac_Header=\$ac_header_preproc"
17345 ac_res
=`eval echo '${'$as_ac_Header'}'`
17346 { echo "$as_me:$LINENO: result: $ac_res" >&5
17347 echo "${ECHO_T}$ac_res" >&6; }
17350 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17351 cat >>confdefs.h
<<_ACEOF
17352 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17363 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17364 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17365 if test "${ac_cv_huge_val_sanity+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17370 ac_cpp
='$CXXCPP $CPPFLAGS'
17371 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17372 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17373 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
17375 ac_save_CXXFLAGS
=$CXXFLAGS
17377 if test "$cross_compiling" = yes; then
17378 ac_cv_huge_val_sanity
=yes
17380 cat >conftest.
$ac_ext <<_ACEOF
17383 cat confdefs.h
>>conftest.
$ac_ext
17384 cat >>conftest.
$ac_ext <<_ACEOF
17385 /* end confdefs.h. */
17390 double x = HUGE_VAL; return x != x;
17395 rm -f conftest
$ac_exeext
17396 if { (ac_try
="$ac_link"
17397 case "(($ac_try" in
17398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_link") 2>&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17406 { (case "(($ac_try" in
17407 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17408 *) ac_try_echo
=$ac_try;;
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_try") 2>&5
17413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17414 (exit $ac_status); }; }; then
17415 ac_cv_huge_val_sanity
=yes
17417 echo "$as_me: program exited with status $ac_status" >&5
17418 echo "$as_me: failed program was:" >&5
17419 sed 's/^/| /' conftest.
$ac_ext >&5
17421 ( exit $ac_status )
17422 ac_cv_huge_val_sanity
=no
17424 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
17428 CXXFLAGS
=$ac_save_CXXFLAGS
17430 ac_cpp
='$CPP $CPPFLAGS'
17431 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17432 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17433 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
17437 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17438 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17439 HUGE_VAL_SANITY
=$ac_cv_huge_val_sanity
17442 { echo "$as_me:$LINENO: checking for pid_t" >&5
17443 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17444 if test "${ac_cv_type_pid_t+set}" = set; then
17445 echo $ECHO_N "(cached) $ECHO_C" >&6
17447 cat >conftest.
$ac_ext <<_ACEOF
17450 cat confdefs.h
>>conftest.
$ac_ext
17451 cat >>conftest.
$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17453 $ac_includes_default
17454 typedef pid_t ac__type_new_;
17458 if ((ac__type_new_ *) 0)
17460 if (sizeof (ac__type_new_))
17466 rm -f conftest.
$ac_objext
17467 if { (ac_try
="$ac_compile"
17468 case "(($ac_try" in
17469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17470 *) ac_try_echo=$ac_try;;
17472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17473 (eval "$ac_compile") 2>conftest.er1
17475 grep -v '^ *+' conftest.er1 >conftest.err
17477 cat conftest.err >&5
17478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17479 (exit $ac_status); } &&
17480 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17481 { (case "(($ac_try" in
17482 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17483 *) ac_try_echo
=$ac_try;;
17485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17486 (eval "$ac_try") 2>&5
17488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17489 (exit $ac_status); }; } &&
17490 { ac_try
='test -s conftest.$ac_objext'
17491 { (case "(($ac_try" in
17492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17493 *) ac_try_echo=$ac_try;;
17495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17496 (eval "$ac_try") 2>&5
17498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17499 (exit $ac_status); }; }; then
17500 ac_cv_type_pid_t=yes
17502 echo "$as_me: failed program was:" >&5
17503 sed 's/^/| /' conftest.$ac_ext >&5
17505 ac_cv_type_pid_t=no
17508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17510 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17511 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17512 if test $ac_cv_type_pid_t = yes; then
17516 cat >>confdefs.h <<_ACEOF
17522 { echo "$as_me:$LINENO: checking for size_t" >&5
17523 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17524 if test "${ac_cv_type_size_t+set}" = set; then
17525 echo $ECHO_N "(cached) $ECHO_C" >&6
17527 cat >conftest.$ac_ext <<_ACEOF
17530 cat confdefs.h >>conftest.$ac_ext
17531 cat >>conftest.$ac_ext <<_ACEOF
17532 /* end confdefs.h. */
17533 $ac_includes_default
17534 typedef size_t ac__type_new_;
17538 if ((ac__type_new_ *) 0)
17540 if (sizeof (ac__type_new_))
17546 rm -f conftest.$ac_objext
17547 if { (ac_try="$ac_compile"
17548 case "(($ac_try" in
17549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17550 *) ac_try_echo
=$ac_try;;
17552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17553 (eval "$ac_compile") 2>conftest.er1
17555 grep -v '^ *+' conftest.er1
>conftest.err
17557 cat conftest.err
>&5
17558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17559 (exit $ac_status); } &&
17560 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17561 { (case "(($ac_try" in
17562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17563 *) ac_try_echo=$ac_try;;
17565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17566 (eval "$ac_try") 2>&5
17568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17569 (exit $ac_status); }; } &&
17570 { ac_try='test -s conftest.$ac_objext'
17571 { (case "(($ac_try" in
17572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17573 *) ac_try_echo
=$ac_try;;
17575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17576 (eval "$ac_try") 2>&5
17578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17579 (exit $ac_status); }; }; then
17580 ac_cv_type_size_t
=yes
17582 echo "$as_me: failed program was:" >&5
17583 sed 's/^/| /' conftest.
$ac_ext >&5
17585 ac_cv_type_size_t
=no
17588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17590 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17591 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17592 if test $ac_cv_type_size_t = yes; then
17596 cat >>confdefs.h
<<_ACEOF
17597 #define size_t unsigned int
17603 cat >>confdefs.h
<<_ACEOF
17604 #define RETSIGTYPE void
17607 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17608 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17609 if test "${ac_cv_struct_tm+set}" = set; then
17610 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 cat >conftest.
$ac_ext <<_ACEOF
17615 cat confdefs.h
>>conftest.
$ac_ext
17616 cat >>conftest.
$ac_ext <<_ACEOF
17617 /* end confdefs.h. */
17618 #include <sys/types.h>
17624 struct tm *tp; tp->tm_sec;
17629 rm -f conftest.
$ac_objext
17630 if { (ac_try
="$ac_compile"
17631 case "(($ac_try" in
17632 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17633 *) ac_try_echo=$ac_try;;
17635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17636 (eval "$ac_compile") 2>conftest.er1
17638 grep -v '^ *+' conftest.er1 >conftest.err
17640 cat conftest.err >&5
17641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17642 (exit $ac_status); } &&
17643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17644 { (case "(($ac_try" in
17645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17646 *) ac_try_echo
=$ac_try;;
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_try") 2>&5
17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17652 (exit $ac_status); }; } &&
17653 { ac_try
='test -s conftest.$ac_objext'
17654 { (case "(($ac_try" in
17655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17656 *) ac_try_echo=$ac_try;;
17658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17659 (eval "$ac_try") 2>&5
17661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17662 (exit $ac_status); }; }; then
17663 ac_cv_struct_tm=time.h
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17668 ac_cv_struct_tm=sys/time.h
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17673 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17674 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17675 if test $ac_cv_struct_tm = sys/time.h; then
17677 cat >>confdefs.h <<\_ACEOF
17678 #define TM_IN_SYS_TIME 1
17683 { echo "$as_me:$LINENO: checking for int64_t" >&5
17684 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17685 if test "${ac_cv_type_int64_t+set}" = set; then
17686 echo $ECHO_N "(cached) $ECHO_C" >&6
17688 cat >conftest.$ac_ext <<_ACEOF
17691 cat confdefs.h >>conftest.$ac_ext
17692 cat >>conftest.$ac_ext <<_ACEOF
17693 /* end confdefs.h. */
17694 $ac_includes_default
17695 typedef int64_t ac__type_new_;
17699 if ((ac__type_new_ *) 0)
17701 if (sizeof (ac__type_new_))
17707 rm -f conftest.$ac_objext
17708 if { (ac_try="$ac_compile"
17709 case "(($ac_try" in
17710 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17711 *) ac_try_echo
=$ac_try;;
17713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_compile") 2>conftest.er1
17716 grep -v '^ *+' conftest.er1
>conftest.err
17718 cat conftest.err
>&5
17719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17720 (exit $ac_status); } &&
17721 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17722 { (case "(($ac_try" in
17723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_try") 2>&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); }; } &&
17731 { ac_try='test -s conftest.$ac_objext'
17732 { (case "(($ac_try" in
17733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17734 *) ac_try_echo
=$ac_try;;
17736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17737 (eval "$ac_try") 2>&5
17739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17740 (exit $ac_status); }; }; then
17741 ac_cv_type_int64_t
=yes
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.
$ac_ext >&5
17746 ac_cv_type_int64_t
=no
17749 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17751 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17752 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17753 if test $ac_cv_type_int64_t = yes; then
17755 cat >>confdefs.h
<<_ACEOF
17756 #define HAVE_INT64_T 1
17761 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17762 echo "$as_me: error: Type int64_t required but not found" >&2;}
17763 { (exit 1); exit 1; }; }
17766 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17767 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17768 if test "${ac_cv_type_uint64_t+set}" = set; then
17769 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 cat >conftest.
$ac_ext <<_ACEOF
17774 cat confdefs.h
>>conftest.
$ac_ext
17775 cat >>conftest.
$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17777 $ac_includes_default
17778 typedef uint64_t ac__type_new_;
17782 if ((ac__type_new_ *) 0)
17784 if (sizeof (ac__type_new_))
17790 rm -f conftest.
$ac_objext
17791 if { (ac_try
="$ac_compile"
17792 case "(($ac_try" in
17793 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_compile") 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17803 (exit $ac_status); } &&
17804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17805 { (case "(($ac_try" in
17806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17807 *) ac_try_echo
=$ac_try;;
17809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17810 (eval "$ac_try") 2>&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); }; } &&
17814 { ac_try
='test -s conftest.$ac_objext'
17815 { (case "(($ac_try" in
17816 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; }; then
17824 ac_cv_type_uint64_t=yes
17826 echo "$as_me: failed program was:" >&5
17827 sed 's/^/| /' conftest.$ac_ext >&5
17829 ac_cv_type_uint64_t=no
17832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17834 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17835 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17836 if test $ac_cv_type_uint64_t = yes; then
17838 cat >>confdefs.h <<_ACEOF
17839 #define HAVE_UINT64_T 1
17844 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17845 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17846 if test "${ac_cv_type_u_int64_t+set}" = set; then
17847 echo $ECHO_N "(cached) $ECHO_C" >&6
17849 cat >conftest.$ac_ext <<_ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 $ac_includes_default
17856 typedef u_int64_t ac__type_new_;
17860 if ((ac__type_new_ *) 0)
17862 if (sizeof (ac__type_new_))
17868 rm -f conftest.$ac_objext
17869 if { (ac_try="$ac_compile"
17870 case "(($ac_try" in
17871 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17872 *) ac_try_echo
=$ac_try;;
17874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17875 (eval "$ac_compile") 2>conftest.er1
17877 grep -v '^ *+' conftest.er1
>conftest.err
17879 cat conftest.err
>&5
17880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17881 (exit $ac_status); } &&
17882 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17883 { (case "(($ac_try" in
17884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_try") 2>&5
17890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17891 (exit $ac_status); }; } &&
17892 { ac_try='test -s conftest.$ac_objext'
17893 { (case "(($ac_try" in
17894 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
17895 *) ac_try_echo
=$ac_try;;
17897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17898 (eval "$ac_try") 2>&5
17900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17901 (exit $ac_status); }; }; then
17902 ac_cv_type_u_int64_t
=yes
17904 echo "$as_me: failed program was:" >&5
17905 sed 's/^/| /' conftest.
$ac_ext >&5
17907 ac_cv_type_u_int64_t
=no
17910 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
17912 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17913 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17914 if test $ac_cv_type_u_int64_t = yes; then
17916 cat >>confdefs.h
<<_ACEOF
17917 #define HAVE_U_INT64_T 1
17922 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17923 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17924 { (exit 1); exit 1; }; }
17938 for ac_func
in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17940 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17941 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17942 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17943 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17944 echo $ECHO_N "(cached) $ECHO_C" >&6
17946 cat >conftest.
$ac_ext <<_ACEOF
17949 cat confdefs.h
>>conftest.
$ac_ext
17950 cat >>conftest.
$ac_ext <<_ACEOF
17951 /* end confdefs.h. */
17952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17954 #define $ac_func innocuous_$ac_func
17956 /* System header to define __stub macros and hopefully few prototypes,
17957 which can conflict with char $ac_func (); below.
17958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17959 <limits.h> exists even on freestanding compilers. */
17962 # include <limits.h>
17964 # include <assert.h>
17969 /* Override any GCC internal prototype to avoid an error.
17970 Use char because int might match the return type of a GCC
17971 builtin and then its argument prototype would still apply. */
17976 /* The GNU C library defines this for functions which it implements
17977 to always fail with ENOSYS. Some functions are actually named
17978 something starting with __ and the normal name is an alias. */
17979 #if defined __stub_$ac_func || defined __stub___$ac_func
17986 return $ac_func ();
17991 rm -f conftest.
$ac_objext conftest
$ac_exeext
17992 if { (ac_try
="$ac_link"
17993 case "(($ac_try" in
17994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
17995 *) ac_try_echo=$ac_try;;
17997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17998 (eval "$ac_link") 2>conftest.er1
18000 grep -v '^ *+' conftest.er1 >conftest.err
18002 cat conftest.err >&5
18003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18004 (exit $ac_status); } &&
18005 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18006 { (case "(($ac_try" in
18007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18008 *) ac_try_echo
=$ac_try;;
18010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18011 (eval "$ac_try") 2>&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); }; } &&
18015 { ac_try
='test -s conftest$ac_exeext'
18016 { (case "(($ac_try" in
18017 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18018 *) ac_try_echo=$ac_try;;
18020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18021 (eval "$ac_try") 2>&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); }; }; then
18025 eval "$as_ac_var=yes"
18027 echo "$as_me: failed program was:" >&5
18028 sed 's/^/| /' conftest.$ac_ext >&5
18030 eval "$as_ac_var=no"
18033 rm -f core conftest.err conftest.$ac_objext \
18034 conftest$ac_exeext conftest.$ac_ext
18036 ac_res=`eval echo '${'$as_ac_var'}'`
18037 { echo "$as_me:$LINENO: result: $ac_res" >&5
18038 echo "${ECHO_T}$ac_res" >&6; }
18039 if test `eval echo '${'$as_ac_var'}'` = yes; then
18040 cat >>confdefs.h <<_ACEOF
18041 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18051 for ac_func in powf fmodf strtof round
18053 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18054 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18055 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18056 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18057 echo $ECHO_N "(cached) $ECHO_C" >&6
18059 cat >conftest.$ac_ext <<_ACEOF
18062 cat confdefs.h >>conftest.$ac_ext
18063 cat >>conftest.$ac_ext <<_ACEOF
18064 /* end confdefs.h. */
18065 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18066 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18067 #define $ac_func innocuous_$ac_func
18069 /* System header to define __stub macros and hopefully few prototypes,
18070 which can conflict with char $ac_func (); below.
18071 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18072 <limits.h> exists even on freestanding compilers. */
18075 # include <limits.h>
18077 # include <assert.h>
18082 /* Override any GCC internal prototype to avoid an error.
18083 Use char because int might match the return type of a GCC
18084 builtin and then its argument prototype would still apply. */
18089 /* The GNU C library defines this for functions which it implements
18090 to always fail with ENOSYS. Some functions are actually named
18091 something starting with __ and the normal name is an alias. */
18092 #if defined __stub_$ac_func || defined __stub___$ac_func
18099 return $ac_func ();
18104 rm -f conftest.$ac_objext conftest$ac_exeext
18105 if { (ac_try="$ac_link"
18106 case "(($ac_try" in
18107 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18108 *) ac_try_echo
=$ac_try;;
18110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18111 (eval "$ac_link") 2>conftest.er1
18113 grep -v '^ *+' conftest.er1
>conftest.err
18115 cat conftest.err
>&5
18116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18117 (exit $ac_status); } &&
18118 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18119 { (case "(($ac_try" in
18120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18121 *) ac_try_echo=$ac_try;;
18123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18124 (eval "$ac_try") 2>&5
18126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18127 (exit $ac_status); }; } &&
18128 { ac_try='test -s conftest$ac_exeext'
18129 { (case "(($ac_try" in
18130 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18131 *) ac_try_echo
=$ac_try;;
18133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18134 (eval "$ac_try") 2>&5
18136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18137 (exit $ac_status); }; }; then
18138 eval "$as_ac_var=yes"
18140 echo "$as_me: failed program was:" >&5
18141 sed 's/^/| /' conftest.
$ac_ext >&5
18143 eval "$as_ac_var=no"
18146 rm -f core conftest.err conftest.
$ac_objext \
18147 conftest
$ac_exeext conftest.
$ac_ext
18149 ac_res
=`eval echo '${'$as_ac_var'}'`
18150 { echo "$as_me:$LINENO: result: $ac_res" >&5
18151 echo "${ECHO_T}$ac_res" >&6; }
18152 if test `eval echo '${'$as_ac_var'}'` = yes; then
18153 cat >>confdefs.h
<<_ACEOF
18154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18165 for ac_func
in getpagesize getrusage getrlimit setrlimit gettimeofday
18167 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18168 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18169 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18170 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18171 echo $ECHO_N "(cached) $ECHO_C" >&6
18173 cat >conftest.
$ac_ext <<_ACEOF
18176 cat confdefs.h
>>conftest.
$ac_ext
18177 cat >>conftest.
$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18181 #define $ac_func innocuous_$ac_func
18183 /* System header to define __stub macros and hopefully few prototypes,
18184 which can conflict with char $ac_func (); below.
18185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18186 <limits.h> exists even on freestanding compilers. */
18189 # include <limits.h>
18191 # include <assert.h>
18196 /* Override any GCC internal prototype to avoid an error.
18197 Use char because int might match the return type of a GCC
18198 builtin and then its argument prototype would still apply. */
18203 /* The GNU C library defines this for functions which it implements
18204 to always fail with ENOSYS. Some functions are actually named
18205 something starting with __ and the normal name is an alias. */
18206 #if defined __stub_$ac_func || defined __stub___$ac_func
18213 return $ac_func ();
18218 rm -f conftest.
$ac_objext conftest
$ac_exeext
18219 if { (ac_try
="$ac_link"
18220 case "(($ac_try" in
18221 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18222 *) ac_try_echo=$ac_try;;
18224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18225 (eval "$ac_link") 2>conftest.er1
18227 grep -v '^ *+' conftest.er1 >conftest.err
18229 cat conftest.err >&5
18230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18231 (exit $ac_status); } &&
18232 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18233 { (case "(($ac_try" in
18234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18235 *) ac_try_echo
=$ac_try;;
18237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18238 (eval "$ac_try") 2>&5
18240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18241 (exit $ac_status); }; } &&
18242 { ac_try
='test -s conftest$ac_exeext'
18243 { (case "(($ac_try" in
18244 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18245 *) ac_try_echo=$ac_try;;
18247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18248 (eval "$ac_try") 2>&5
18250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18251 (exit $ac_status); }; }; then
18252 eval "$as_ac_var=yes"
18254 echo "$as_me: failed program was:" >&5
18255 sed 's/^/| /' conftest.$ac_ext >&5
18257 eval "$as_ac_var=no"
18260 rm -f core conftest.err conftest.$ac_objext \
18261 conftest$ac_exeext conftest.$ac_ext
18263 ac_res=`eval echo '${'$as_ac_var'}'`
18264 { echo "$as_me:$LINENO: result: $ac_res" >&5
18265 echo "${ECHO_T}$ac_res" >&6; }
18266 if test `eval echo '${'$as_ac_var'}'` = yes; then
18267 cat >>confdefs.h <<_ACEOF
18268 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18277 for ac_func in isatty mkdtemp mkstemp
18279 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18280 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18281 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18282 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18283 echo $ECHO_N "(cached) $ECHO_C" >&6
18285 cat >conftest.$ac_ext <<_ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18292 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18293 #define $ac_func innocuous_$ac_func
18295 /* System header to define __stub macros and hopefully few prototypes,
18296 which can conflict with char $ac_func (); below.
18297 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18298 <limits.h> exists even on freestanding compilers. */
18301 # include <limits.h>
18303 # include <assert.h>
18308 /* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18315 /* The GNU C library defines this for functions which it implements
18316 to always fail with ENOSYS. Some functions are actually named
18317 something starting with __ and the normal name is an alias. */
18318 #if defined __stub_$ac_func || defined __stub___$ac_func
18325 return $ac_func ();
18330 rm -f conftest.$ac_objext conftest$ac_exeext
18331 if { (ac_try="$ac_link"
18332 case "(($ac_try" in
18333 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18334 *) ac_try_echo
=$ac_try;;
18336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18337 (eval "$ac_link") 2>conftest.er1
18339 grep -v '^ *+' conftest.er1
>conftest.err
18341 cat conftest.err
>&5
18342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18343 (exit $ac_status); } &&
18344 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18345 { (case "(($ac_try" in
18346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18347 *) ac_try_echo=$ac_try;;
18349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18350 (eval "$ac_try") 2>&5
18352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18353 (exit $ac_status); }; } &&
18354 { ac_try='test -s conftest$ac_exeext'
18355 { (case "(($ac_try" in
18356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18357 *) ac_try_echo
=$ac_try;;
18359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18360 (eval "$ac_try") 2>&5
18362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18363 (exit $ac_status); }; }; then
18364 eval "$as_ac_var=yes"
18366 echo "$as_me: failed program was:" >&5
18367 sed 's/^/| /' conftest.
$ac_ext >&5
18369 eval "$as_ac_var=no"
18372 rm -f core conftest.err conftest.
$ac_objext \
18373 conftest
$ac_exeext conftest.
$ac_ext
18375 ac_res
=`eval echo '${'$as_ac_var'}'`
18376 { echo "$as_me:$LINENO: result: $ac_res" >&5
18377 echo "${ECHO_T}$ac_res" >&6; }
18378 if test `eval echo '${'$as_ac_var'}'` = yes; then
18379 cat >>confdefs.h
<<_ACEOF
18380 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18392 for ac_func
in mktemp posix_spawn realpath sbrk setrlimit strdup
18394 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18395 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18396 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18397 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18398 echo $ECHO_N "(cached) $ECHO_C" >&6
18400 cat >conftest.
$ac_ext <<_ACEOF
18403 cat confdefs.h
>>conftest.
$ac_ext
18404 cat >>conftest.
$ac_ext <<_ACEOF
18405 /* end confdefs.h. */
18406 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18407 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18408 #define $ac_func innocuous_$ac_func
18410 /* System header to define __stub macros and hopefully few prototypes,
18411 which can conflict with char $ac_func (); below.
18412 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18413 <limits.h> exists even on freestanding compilers. */
18416 # include <limits.h>
18418 # include <assert.h>
18423 /* Override any GCC internal prototype to avoid an error.
18424 Use char because int might match the return type of a GCC
18425 builtin and then its argument prototype would still apply. */
18430 /* The GNU C library defines this for functions which it implements
18431 to always fail with ENOSYS. Some functions are actually named
18432 something starting with __ and the normal name is an alias. */
18433 #if defined __stub_$ac_func || defined __stub___$ac_func
18440 return $ac_func ();
18445 rm -f conftest.
$ac_objext conftest
$ac_exeext
18446 if { (ac_try
="$ac_link"
18447 case "(($ac_try" in
18448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18449 *) ac_try_echo=$ac_try;;
18451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18452 (eval "$ac_link") 2>conftest.er1
18454 grep -v '^ *+' conftest.er1 >conftest.err
18456 cat conftest.err >&5
18457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18458 (exit $ac_status); } &&
18459 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18460 { (case "(($ac_try" in
18461 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18462 *) ac_try_echo
=$ac_try;;
18464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_try") 2>&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); }; } &&
18469 { ac_try
='test -s conftest$ac_exeext'
18470 { (case "(($ac_try" in
18471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18472 *) ac_try_echo=$ac_try;;
18474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18475 (eval "$ac_try") 2>&5
18477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18478 (exit $ac_status); }; }; then
18479 eval "$as_ac_var=yes"
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 eval "$as_ac_var=no"
18487 rm -f core conftest.err conftest.$ac_objext \
18488 conftest$ac_exeext conftest.$ac_ext
18490 ac_res=`eval echo '${'$as_ac_var'}'`
18491 { echo "$as_me:$LINENO: result: $ac_res" >&5
18492 echo "${ECHO_T}$ac_res" >&6; }
18493 if test `eval echo '${'$as_ac_var'}'` = yes; then
18494 cat >>confdefs.h <<_ACEOF
18495 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18505 for ac_func in strerror strerror_r strerror_s setenv
18507 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18508 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18509 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18510 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18511 echo $ECHO_N "(cached) $ECHO_C" >&6
18513 cat >conftest.$ac_ext <<_ACEOF
18516 cat confdefs.h >>conftest.$ac_ext
18517 cat >>conftest.$ac_ext <<_ACEOF
18518 /* end confdefs.h. */
18519 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18520 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18521 #define $ac_func innocuous_$ac_func
18523 /* System header to define __stub macros and hopefully few prototypes,
18524 which can conflict with char $ac_func (); below.
18525 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18526 <limits.h> exists even on freestanding compilers. */
18529 # include <limits.h>
18531 # include <assert.h>
18536 /* Override any GCC internal prototype to avoid an error.
18537 Use char because int might match the return type of a GCC
18538 builtin and then its argument prototype would still apply. */
18543 /* The GNU C library defines this for functions which it implements
18544 to always fail with ENOSYS. Some functions are actually named
18545 something starting with __ and the normal name is an alias. */
18546 #if defined __stub_$ac_func || defined __stub___$ac_func
18553 return $ac_func ();
18558 rm -f conftest.$ac_objext conftest$ac_exeext
18559 if { (ac_try="$ac_link"
18560 case "(($ac_try" in
18561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18562 *) ac_try_echo
=$ac_try;;
18564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18565 (eval "$ac_link") 2>conftest.er1
18567 grep -v '^ *+' conftest.er1
>conftest.err
18569 cat conftest.err
>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); } &&
18572 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18573 { (case "(($ac_try" in
18574 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18575 *) ac_try_echo=$ac_try;;
18577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18578 (eval "$ac_try") 2>&5
18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18581 (exit $ac_status); }; } &&
18582 { ac_try='test -s conftest$ac_exeext'
18583 { (case "(($ac_try" in
18584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18585 *) ac_try_echo
=$ac_try;;
18587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_try") 2>&5
18590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18591 (exit $ac_status); }; }; then
18592 eval "$as_ac_var=yes"
18594 echo "$as_me: failed program was:" >&5
18595 sed 's/^/| /' conftest.
$ac_ext >&5
18597 eval "$as_ac_var=no"
18600 rm -f core conftest.err conftest.
$ac_objext \
18601 conftest
$ac_exeext conftest.
$ac_ext
18603 ac_res
=`eval echo '${'$as_ac_var'}'`
18604 { echo "$as_me:$LINENO: result: $ac_res" >&5
18605 echo "${ECHO_T}$ac_res" >&6; }
18606 if test `eval echo '${'$as_ac_var'}'` = yes; then
18607 cat >>confdefs.h
<<_ACEOF
18608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18618 for ac_func
in strtoll strtoq sysconf malloc_zone_statistics
18620 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18621 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18622 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18623 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18624 echo $ECHO_N "(cached) $ECHO_C" >&6
18626 cat >conftest.
$ac_ext <<_ACEOF
18629 cat confdefs.h
>>conftest.
$ac_ext
18630 cat >>conftest.
$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18633 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18634 #define $ac_func innocuous_$ac_func
18636 /* System header to define __stub macros and hopefully few prototypes,
18637 which can conflict with char $ac_func (); below.
18638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18639 <limits.h> exists even on freestanding compilers. */
18642 # include <limits.h>
18644 # include <assert.h>
18649 /* Override any GCC internal prototype to avoid an error.
18650 Use char because int might match the return type of a GCC
18651 builtin and then its argument prototype would still apply. */
18656 /* The GNU C library defines this for functions which it implements
18657 to always fail with ENOSYS. Some functions are actually named
18658 something starting with __ and the normal name is an alias. */
18659 #if defined __stub_$ac_func || defined __stub___$ac_func
18666 return $ac_func ();
18671 rm -f conftest.
$ac_objext conftest
$ac_exeext
18672 if { (ac_try
="$ac_link"
18673 case "(($ac_try" in
18674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18675 *) ac_try_echo=$ac_try;;
18677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18678 (eval "$ac_link") 2>conftest.er1
18680 grep -v '^ *+' conftest.er1 >conftest.err
18682 cat conftest.err >&5
18683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18684 (exit $ac_status); } &&
18685 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18686 { (case "(($ac_try" in
18687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18688 *) ac_try_echo
=$ac_try;;
18690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_try") 2>&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); }; } &&
18695 { ac_try
='test -s conftest$ac_exeext'
18696 { (case "(($ac_try" in
18697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18698 *) ac_try_echo=$ac_try;;
18700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18701 (eval "$ac_try") 2>&5
18703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18704 (exit $ac_status); }; }; then
18705 eval "$as_ac_var=yes"
18707 echo "$as_me: failed program was:" >&5
18708 sed 's/^/| /' conftest.$ac_ext >&5
18710 eval "$as_ac_var=no"
18713 rm -f core conftest.err conftest.$ac_objext \
18714 conftest$ac_exeext conftest.$ac_ext
18716 ac_res=`eval echo '${'$as_ac_var'}'`
18717 { echo "$as_me:$LINENO: result: $ac_res" >&5
18718 echo "${ECHO_T}$ac_res" >&6; }
18719 if test `eval echo '${'$as_ac_var'}'` = yes; then
18720 cat >>confdefs.h <<_ACEOF
18721 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
18731 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18733 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
18734 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18735 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18736 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18737 echo $ECHO_N "(cached) $ECHO_C" >&6
18739 cat >conftest.$ac_ext <<_ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18745 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18746 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18747 #define $ac_func innocuous_$ac_func
18749 /* System header to define __stub macros and hopefully few prototypes,
18750 which can conflict with char $ac_func (); below.
18751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18752 <limits.h> exists even on freestanding compilers. */
18755 # include <limits.h>
18757 # include <assert.h>
18762 /* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18769 /* The GNU C library defines this for functions which it implements
18770 to always fail with ENOSYS. Some functions are actually named
18771 something starting with __ and the normal name is an alias. */
18772 #if defined __stub_$ac_func || defined __stub___$ac_func
18779 return $ac_func ();
18784 rm -f conftest.$ac_objext conftest$ac_exeext
18785 if { (ac_try="$ac_link"
18786 case "(($ac_try" in
18787 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18788 *) ac_try_echo
=$ac_try;;
18790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18791 (eval "$ac_link") 2>conftest.er1
18793 grep -v '^ *+' conftest.er1
>conftest.err
18795 cat conftest.err
>&5
18796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18797 (exit $ac_status); } &&
18798 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18799 { (case "(($ac_try" in
18800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18804 (eval "$ac_try") 2>&5
18806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18807 (exit $ac_status); }; } &&
18808 { ac_try='test -s conftest$ac_exeext'
18809 { (case "(($ac_try" in
18810 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18811 *) ac_try_echo
=$ac_try;;
18813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18814 (eval "$ac_try") 2>&5
18816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18817 (exit $ac_status); }; }; then
18818 eval "$as_ac_var=yes"
18820 echo "$as_me: failed program was:" >&5
18821 sed 's/^/| /' conftest.
$ac_ext >&5
18823 eval "$as_ac_var=no"
18826 rm -f core conftest.err conftest.
$ac_objext \
18827 conftest
$ac_exeext conftest.
$ac_ext
18829 ac_res
=`eval echo '${'$as_ac_var'}'`
18830 { echo "$as_me:$LINENO: result: $ac_res" >&5
18831 echo "${ECHO_T}$ac_res" >&6; }
18832 if test `eval echo '${'$as_ac_var'}'` = yes; then
18833 cat >>confdefs.h
<<_ACEOF
18834 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18840 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18841 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18842 if test "${llvm_cv_c_printf_a+set}" = set; then
18843 echo $ECHO_N "(cached) $ECHO_C" >&6
18846 ac_cpp
='$CPP $CPPFLAGS'
18847 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18848 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18849 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18851 if test "$cross_compiling" = yes; then
18852 llvmac_cv_c_printf_a
=no
18854 cat >conftest.
$ac_ext <<_ACEOF
18858 cat confdefs.h
>>conftest.
$ac_ext
18859 cat >>conftest.
$ac_ext <<_ACEOF
18860 /* end confdefs.h. */
18863 #include <stdlib.h>
18869 volatile double A, B;
18873 sprintf(Buffer, "%a", A);
18877 if (A != 0x1.999999999999ap-4)
18884 rm -f conftest
$ac_exeext
18885 if { (ac_try
="$ac_link"
18886 case "(($ac_try" in
18887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_link") 2>&5
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18895 { (case "(($ac_try" in
18896 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18897 *) ac_try_echo
=$ac_try;;
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_try") 2>&5
18902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18903 (exit $ac_status); }; }; then
18904 llvm_cv_c_printf_a
=yes
18906 echo "$as_me: program exited with status $ac_status" >&5
18907 echo "$as_me: failed program was:" >&5
18908 sed 's/^/| /' conftest.
$ac_ext >&5
18910 ( exit $ac_status )
18911 llvmac_cv_c_printf_a
=no
18913 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
18918 ac_cpp
='$CPP $CPPFLAGS'
18919 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18920 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18921 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18924 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18925 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18926 if test "$llvm_cv_c_printf_a" = "yes"; then
18928 cat >>confdefs.h
<<\_ACEOF
18929 #define HAVE_PRINTF_A 1
18935 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18936 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18937 if test "${ac_cv_func_rand48+set}" = set; then
18938 echo $ECHO_N "(cached) $ECHO_C" >&6
18941 ac_cpp
='$CXXCPP $CPPFLAGS'
18942 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18943 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18944 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
18946 cat >conftest.
$ac_ext <<_ACEOF
18949 cat confdefs.h
>>conftest.
$ac_ext
18950 cat >>conftest.
$ac_ext <<_ACEOF
18951 /* end confdefs.h. */
18952 #include <stdlib.h>
18956 srand48(0);lrand48();drand48();
18961 rm -f conftest.
$ac_objext
18962 if { (ac_try
="$ac_compile"
18963 case "(($ac_try" in
18964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_compile") 2>conftest.er1
18970 grep -v '^ *+' conftest.er1 >conftest.err
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } &&
18975 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18976 { (case "(($ac_try" in
18977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
18978 *) ac_try_echo
=$ac_try;;
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_try") 2>&5
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); }; } &&
18985 { ac_try
='test -s conftest.$ac_objext'
18986 { (case "(($ac_try" in
18987 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_try") 2>&5
18993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18994 (exit $ac_status); }; }; then
18995 ac_cv_func_rand48=yes
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
19000 ac_cv_func_rand48=no
19003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19005 ac_cpp='$CPP $CPPFLAGS'
19006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19011 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19012 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19014 if test "$ac_cv_func_rand48" = "yes" ; then
19016 cat >>confdefs.h <<\_ACEOF
19017 #define HAVE_RAND48 1
19024 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19025 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19026 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
19030 ac_cpp='$CXXCPP $CPPFLAGS'
19031 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19032 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19033 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19035 cat >conftest.$ac_ext <<_ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19050 rm -f conftest.$ac_objext
19051 if { (ac_try="$ac_compile"
19052 case "(($ac_try" in
19053 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19054 *) ac_try_echo
=$ac_try;;
19056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_compile") 2>conftest.er1
19059 grep -v '^ *+' conftest.er1
>conftest.err
19061 cat conftest.err
>&5
19062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19063 (exit $ac_status); } &&
19064 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19065 { (case "(($ac_try" in
19066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_try") 2>&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); }; } &&
19074 { ac_try='test -s conftest.$ac_objext'
19075 { (case "(($ac_try" in
19076 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19077 *) ac_try_echo
=$ac_try;;
19079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_try") 2>&5
19082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19083 (exit $ac_status); }; }; then
19084 ac_cv_func_isnan_in_math_h
=yes
19086 echo "$as_me: failed program was:" >&5
19087 sed 's/^/| /' conftest.
$ac_ext >&5
19089 ac_cv_func_isnan_in_math_h
=no
19092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19094 ac_cpp
='$CPP $CPPFLAGS'
19095 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19096 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19097 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19100 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19101 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19104 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19106 cat >>confdefs.h
<<\_ACEOF
19107 #define HAVE_ISNAN_IN_MATH_H 1
19112 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19113 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19114 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19115 echo $ECHO_N "(cached) $ECHO_C" >&6
19118 ac_cpp
='$CXXCPP $CPPFLAGS'
19119 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19120 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19121 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19123 cat >conftest.
$ac_ext <<_ACEOF
19126 cat confdefs.h
>>conftest.
$ac_ext
19127 cat >>conftest.
$ac_ext <<_ACEOF
19128 /* end confdefs.h. */
19138 rm -f conftest.
$ac_objext
19139 if { (ac_try
="$ac_compile"
19140 case "(($ac_try" in
19141 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_compile") 2>conftest.er1
19147 grep -v '^ *+' conftest.er1 >conftest.err
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19151 (exit $ac_status); } &&
19152 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19153 { (case "(($ac_try" in
19154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19155 *) ac_try_echo
=$ac_try;;
19157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19158 (eval "$ac_try") 2>&5
19160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19161 (exit $ac_status); }; } &&
19162 { ac_try
='test -s conftest.$ac_objext'
19163 { (case "(($ac_try" in
19164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_try") 2>&5
19170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19171 (exit $ac_status); }; }; then
19172 ac_cv_func_isnan_in_cmath=yes
19174 echo "$as_me: failed program was:" >&5
19175 sed 's/^/| /' conftest.$ac_ext >&5
19177 ac_cv_func_isnan_in_cmath=no
19180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19182 ac_cpp='$CPP $CPPFLAGS'
19183 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19184 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19185 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19188 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19189 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19191 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19193 cat >>confdefs.h <<\_ACEOF
19194 #define HAVE_ISNAN_IN_CMATH 1
19199 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19200 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19201 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19202 echo $ECHO_N "(cached) $ECHO_C" >&6
19205 ac_cpp='$CXXCPP $CPPFLAGS'
19206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19210 cat >conftest.$ac_ext <<_ACEOF
19213 cat confdefs.h >>conftest.$ac_ext
19214 cat >>conftest.$ac_ext <<_ACEOF
19215 /* end confdefs.h. */
19220 float f; std::isnan(f);
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19229 *) ac_try_echo
=$ac_try;;
19231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_compile") 2>conftest.er1
19234 grep -v '^ *+' conftest.er1
>conftest.err
19236 cat conftest.err
>&5
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); } &&
19239 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19240 { (case "(($ac_try" in
19241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19245 (eval "$ac_try") 2>&5
19247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19248 (exit $ac_status); }; } &&
19249 { ac_try='test -s conftest.$ac_objext'
19250 { (case "(($ac_try" in
19251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19252 *) ac_try_echo
=$ac_try;;
19254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19255 (eval "$ac_try") 2>&5
19257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19258 (exit $ac_status); }; }; then
19259 ac_cv_func_std_isnan_in_cmath
=yes
19261 echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.
$ac_ext >&5
19264 ac_cv_func_std_isnan_in_cmath
=no
19267 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19269 ac_cpp
='$CPP $CPPFLAGS'
19270 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19271 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19272 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19275 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19276 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19278 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19280 cat >>confdefs.h
<<\_ACEOF
19281 #define HAVE_STD_ISNAN_IN_CMATH 1
19287 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19288 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19289 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19290 echo $ECHO_N "(cached) $ECHO_C" >&6
19293 ac_cpp
='$CXXCPP $CPPFLAGS'
19294 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19295 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19296 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19298 cat >conftest.
$ac_ext <<_ACEOF
19301 cat confdefs.h
>>conftest.
$ac_ext
19302 cat >>conftest.
$ac_ext <<_ACEOF
19303 /* end confdefs.h. */
19313 rm -f conftest.
$ac_objext
19314 if { (ac_try
="$ac_compile"
19315 case "(($ac_try" in
19316 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19317 *) ac_try_echo=$ac_try;;
19319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19320 (eval "$ac_compile") 2>conftest.er1
19322 grep -v '^ *+' conftest.er1 >conftest.err
19324 cat conftest.err >&5
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); } &&
19327 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19328 { (case "(($ac_try" in
19329 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19330 *) ac_try_echo
=$ac_try;;
19332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19333 (eval "$ac_try") 2>&5
19335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19336 (exit $ac_status); }; } &&
19337 { ac_try
='test -s conftest.$ac_objext'
19338 { (case "(($ac_try" in
19339 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_try") 2>&5
19345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19346 (exit $ac_status); }; }; then
19347 ac_cv_func_isinf_in_math_h=yes
19349 echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19352 ac_cv_func_isinf_in_math_h=no
19355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19357 ac_cpp='$CPP $CPPFLAGS'
19358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19363 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19364 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19366 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19368 cat >>confdefs.h <<\_ACEOF
19369 #define HAVE_ISINF_IN_MATH_H 1
19374 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19375 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19376 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19377 echo $ECHO_N "(cached) $ECHO_C" >&6
19380 ac_cpp='$CXXCPP $CPPFLAGS'
19381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19385 cat >conftest.$ac_ext <<_ACEOF
19388 cat confdefs.h >>conftest.$ac_ext
19389 cat >>conftest.$ac_ext <<_ACEOF
19390 /* end confdefs.h. */
19400 rm -f conftest.$ac_objext
19401 if { (ac_try="$ac_compile"
19402 case "(($ac_try" in
19403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19404 *) ac_try_echo
=$ac_try;;
19406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_compile") 2>conftest.er1
19409 grep -v '^ *+' conftest.er1
>conftest.err
19411 cat conftest.err
>&5
19412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19413 (exit $ac_status); } &&
19414 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19415 { (case "(($ac_try" in
19416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_try") 2>&5
19422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19423 (exit $ac_status); }; } &&
19424 { ac_try='test -s conftest.$ac_objext'
19425 { (case "(($ac_try" in
19426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19427 *) ac_try_echo
=$ac_try;;
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_try") 2>&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
19434 ac_cv_func_isinf_in_cmath
=yes
19436 echo "$as_me: failed program was:" >&5
19437 sed 's/^/| /' conftest.
$ac_ext >&5
19439 ac_cv_func_isinf_in_cmath
=no
19442 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19444 ac_cpp
='$CPP $CPPFLAGS'
19445 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19446 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19447 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19450 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19451 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19453 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19455 cat >>confdefs.h
<<\_ACEOF
19456 #define HAVE_ISINF_IN_CMATH 1
19461 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19462 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19463 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19464 echo $ECHO_N "(cached) $ECHO_C" >&6
19467 ac_cpp
='$CXXCPP $CPPFLAGS'
19468 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19469 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19470 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
19472 cat >conftest.
$ac_ext <<_ACEOF
19475 cat confdefs.h
>>conftest.
$ac_ext
19476 cat >>conftest.
$ac_ext <<_ACEOF
19477 /* end confdefs.h. */
19482 float f; std::isinf(f)}
19487 rm -f conftest.
$ac_objext
19488 if { (ac_try
="$ac_compile"
19489 case "(($ac_try" in
19490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19491 *) ac_try_echo=$ac_try;;
19493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19494 (eval "$ac_compile") 2>conftest.er1
19496 grep -v '^ *+' conftest.er1 >conftest.err
19498 cat conftest.err >&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); } &&
19501 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19502 { (case "(($ac_try" in
19503 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19504 *) ac_try_echo
=$ac_try;;
19506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19507 (eval "$ac_try") 2>&5
19509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19510 (exit $ac_status); }; } &&
19511 { ac_try
='test -s conftest.$ac_objext'
19512 { (case "(($ac_try" in
19513 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_try") 2>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); }; }; then
19521 ac_cv_func_std_isinf_in_cmath=yes
19523 echo "$as_me: failed program was:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 ac_cv_func_std_isinf_in_cmath=no
19529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19531 ac_cpp='$CPP $CPPFLAGS'
19532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19537 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19538 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19540 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19542 cat >>confdefs.h <<\_ACEOF
19543 #define HAVE_STD_ISINF_IN_CMATH 1
19548 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19549 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19550 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 ac_cpp='$CXXCPP $CPPFLAGS'
19555 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19556 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19557 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565 #include <ieeefp.h>
19569 float f; finite(f);
19574 rm -f conftest.$ac_objext
19575 if { (ac_try="$ac_compile"
19576 case "(($ac_try" in
19577 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19578 *) ac_try_echo
=$ac_try;;
19580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19581 (eval "$ac_compile") 2>conftest.er1
19583 grep -v '^ *+' conftest.er1
>conftest.err
19585 cat conftest.err
>&5
19586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19587 (exit $ac_status); } &&
19588 { ac_try
='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19589 { (case "(($ac_try" in
19590 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19591 *) ac_try_echo=$ac_try;;
19593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19594 (eval "$ac_try") 2>&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); }; } &&
19598 { ac_try='test -s conftest.$ac_objext'
19599 { (case "(($ac_try" in
19600 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19601 *) ac_try_echo
=$ac_try;;
19603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_try") 2>&5
19606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19607 (exit $ac_status); }; }; then
19608 ac_cv_func_finite_in_ieeefp_h
=yes
19610 echo "$as_me: failed program was:" >&5
19611 sed 's/^/| /' conftest.
$ac_ext >&5
19613 ac_cv_func_finite_in_ieeefp_h
=no
19616 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
19618 ac_cpp
='$CPP $CPPFLAGS'
19619 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19620 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19621 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
19624 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19625 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19627 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19629 cat >>confdefs.h
<<\_ACEOF
19630 #define HAVE_FINITE_IN_IEEEFP_H 1
19637 if test "$llvm_cv_platform_type" = "Unix" ; then
19640 for ac_header
in stdlib.h unistd.h
19642 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19643 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19646 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19649 ac_res
=`eval echo '${'$as_ac_Header'}'`
19650 { echo "$as_me:$LINENO: result: $ac_res" >&5
19651 echo "${ECHO_T}$ac_res" >&6; }
19653 # Is the header compilable?
19654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19656 cat >conftest.
$ac_ext <<_ACEOF
19659 cat confdefs.h
>>conftest.
$ac_ext
19660 cat >>conftest.
$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662 $ac_includes_default
19663 #include <$ac_header>
19665 rm -f conftest.
$ac_objext
19666 if { (ac_try
="$ac_compile"
19667 case "(($ac_try" in
19668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19669 *) ac_try_echo=$ac_try;;
19671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19672 (eval "$ac_compile") 2>conftest.er1
19674 grep -v '^ *+' conftest.er1 >conftest.err
19676 cat conftest.err >&5
19677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19678 (exit $ac_status); } &&
19679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19680 { (case "(($ac_try" in
19681 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19682 *) ac_try_echo
=$ac_try;;
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_try") 2>&5
19687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19688 (exit $ac_status); }; } &&
19689 { ac_try
='test -s conftest.$ac_objext'
19690 { (case "(($ac_try" in
19691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19692 *) ac_try_echo=$ac_try;;
19694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19695 (eval "$ac_try") 2>&5
19697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19698 (exit $ac_status); }; }; then
19699 ac_header_compiler=yes
19701 echo "$as_me: failed program was:" >&5
19702 sed 's/^/| /' conftest.$ac_ext >&5
19704 ac_header_compiler=no
19707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19708 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19709 echo "${ECHO_T}$ac_header_compiler" >&6; }
19711 # Is the header present?
19712 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19713 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19714 cat >conftest.$ac_ext <<_ACEOF
19717 cat confdefs.h >>conftest.$ac_ext
19718 cat >>conftest.$ac_ext <<_ACEOF
19719 /* end confdefs.h. */
19720 #include <$ac_header>
19722 if { (ac_try="$ac_cpp conftest.$ac_ext"
19723 case "(($ac_try" in
19724 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19725 *) ac_try_echo
=$ac_try;;
19727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19728 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19730 grep -v '^ *+' conftest.er1
>conftest.err
19732 cat conftest.err
>&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } >/dev
/null
; then
19735 if test -s conftest.err
; then
19736 ac_cpp_err
=$ac_c_preproc_warn_flag
19737 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
19744 if test -z "$ac_cpp_err"; then
19745 ac_header_preproc
=yes
19747 echo "$as_me: failed program was:" >&5
19748 sed 's/^/| /' conftest.
$ac_ext >&5
19750 ac_header_preproc
=no
19753 rm -f conftest.err conftest.
$ac_ext
19754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19755 echo "${ECHO_T}$ac_header_preproc" >&6; }
19757 # So? What about this header?
19758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19764 ac_header_preproc
=yes
19767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19780 ## ----------------------------------- ##
19781 ## Report this to llvmbugs@cs.uiuc.edu ##
19782 ## ----------------------------------- ##
19784 ) |
sed "s/^/$as_me: WARNING: /" >&2
19787 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19788 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19789 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19790 echo $ECHO_N "(cached) $ECHO_C" >&6
19792 eval "$as_ac_Header=\$ac_header_preproc"
19794 ac_res
=`eval echo '${'$as_ac_Header'}'`
19795 { echo "$as_me:$LINENO: result: $ac_res" >&5
19796 echo "${ECHO_T}$ac_res" >&6; }
19799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19800 cat >>confdefs.h
<<_ACEOF
19801 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19809 for ac_func
in getpagesize
19811 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19812 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19813 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19814 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19815 echo $ECHO_N "(cached) $ECHO_C" >&6
19817 cat >conftest.
$ac_ext <<_ACEOF
19820 cat confdefs.h
>>conftest.
$ac_ext
19821 cat >>conftest.
$ac_ext <<_ACEOF
19822 /* end confdefs.h. */
19823 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19824 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19825 #define $ac_func innocuous_$ac_func
19827 /* System header to define __stub macros and hopefully few prototypes,
19828 which can conflict with char $ac_func (); below.
19829 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19830 <limits.h> exists even on freestanding compilers. */
19833 # include <limits.h>
19835 # include <assert.h>
19840 /* Override any GCC internal prototype to avoid an error.
19841 Use char because int might match the return type of a GCC
19842 builtin and then its argument prototype would still apply. */
19847 /* The GNU C library defines this for functions which it implements
19848 to always fail with ENOSYS. Some functions are actually named
19849 something starting with __ and the normal name is an alias. */
19850 #if defined __stub_$ac_func || defined __stub___$ac_func
19857 return $ac_func ();
19862 rm -f conftest.
$ac_objext conftest
$ac_exeext
19863 if { (ac_try
="$ac_link"
19864 case "(($ac_try" in
19865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_link") 2>conftest.er1
19871 grep -v '^ *+' conftest.er1 >conftest.err
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19875 (exit $ac_status); } &&
19876 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19877 { (case "(($ac_try" in
19878 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
19879 *) ac_try_echo
=$ac_try;;
19881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19882 (eval "$ac_try") 2>&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); }; } &&
19886 { ac_try
='test -s conftest$ac_exeext'
19887 { (case "(($ac_try" in
19888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_try") 2>&5
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; }; then
19896 eval "$as_ac_var=yes"
19898 echo "$as_me: failed program was:" >&5
19899 sed 's/^/| /' conftest.$ac_ext >&5
19901 eval "$as_ac_var=no"
19904 rm -f core conftest.err conftest.$ac_objext \
19905 conftest$ac_exeext conftest.$ac_ext
19907 ac_res=`eval echo '${'$as_ac_var'}'`
19908 { echo "$as_me:$LINENO: result: $ac_res" >&5
19909 echo "${ECHO_T}$ac_res" >&6; }
19910 if test `eval echo '${'$as_ac_var'}'` = yes; then
19911 cat >>confdefs.h <<_ACEOF
19912 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
19918 { echo "$as_me:$LINENO: checking for working mmap" >&5
19919 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19920 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19921 echo $ECHO_N "(cached) $ECHO_C" >&6
19923 if test "$cross_compiling" = yes; then
19924 ac_cv_func_mmap_fixed_mapped=no
19926 cat >conftest.$ac_ext <<_ACEOF
19929 cat confdefs.h >>conftest.$ac_ext
19930 cat >>conftest.$ac_ext <<_ACEOF
19931 /* end confdefs.h. */
19932 $ac_includes_default
19933 /* malloc might have been renamed as rpl_malloc. */
19936 /* Thanks to Mike Haertel and Jim Avera for this test.
19937 Here is a matrix of mmap possibilities:
19938 mmap private not fixed
19939 mmap private fixed at somewhere currently unmapped
19940 mmap private fixed at somewhere already mapped
19941 mmap shared not fixed
19942 mmap shared fixed at somewhere currently unmapped
19943 mmap shared fixed at somewhere already mapped
19944 For private mappings, we should verify that changes cannot be read()
19945 back from the file, nor mmap's back from the file at a different
19946 address. (There have been systems where private was not correctly
19947 implemented like the infamous i386 svr4.0, and systems where the
19948 VM page cache was not coherent with the file system buffer cache
19949 like early versions of FreeBSD and possibly contemporary NetBSD.)
19950 For shared mappings, we should conversely verify that changes get
19951 propagated back to all the places they're supposed to be.
19953 Grep wants private fixed already mapped.
19954 The main things grep needs to know about mmap are:
19955 * does it exist and is it safe to write into the mmap'd area
19956 * how to use it (BSD variants) */
19959 #include <sys/mman.h>
19961 #if !STDC_HEADERS && !HAVE_STDLIB_H
19965 /* This mess was copied from the GNU getpagesize.h. */
19966 #if !HAVE_GETPAGESIZE
19967 /* Assume that all systems that can run configure have sys/param.h. */
19968 # if !HAVE_SYS_PARAM_H
19969 # define HAVE_SYS_PARAM_H 1
19972 # ifdef _SC_PAGESIZE
19973 # define getpagesize() sysconf(_SC_PAGESIZE)
19974 # else /* no _SC_PAGESIZE */
19975 # if HAVE_SYS_PARAM_H
19976 # include <sys/param.h>
19977 # ifdef EXEC_PAGESIZE
19978 # define getpagesize() EXEC_PAGESIZE
19979 # else /* no EXEC_PAGESIZE */
19981 # define getpagesize() NBPG * CLSIZE
19984 # endif /* no CLSIZE */
19985 # else /* no NBPG */
19987 # define getpagesize() NBPC
19988 # else /* no NBPC */
19990 # define getpagesize() PAGESIZE
19991 # endif /* PAGESIZE */
19992 # endif /* no NBPC */
19993 # endif /* no NBPG */
19994 # endif /* no EXEC_PAGESIZE */
19995 # else /* no HAVE_SYS_PARAM_H */
19996 # define getpagesize() 8192 /* punt totally */
19997 # endif /* no HAVE_SYS_PARAM_H */
19998 # endif /* no _SC_PAGESIZE */
20000 #endif /* no HAVE_GETPAGESIZE */
20005 char *data, *data2, *data3;
20009 pagesize = getpagesize ();
20011 /* First, make a file with some known garbage in it. */
20012 data = (char *) malloc (pagesize);
20015 for (i = 0; i < pagesize; ++i)
20016 *(data + i) = rand ();
20018 fd = creat ("conftest.mmap", 0600);
20021 if (write (fd, data, pagesize) != pagesize)
20025 /* Next, try to mmap the file at a fixed address which already has
20026 something else allocated at it. If we can, also make sure that
20027 we see the same garbage. */
20028 fd = open ("conftest.mmap", O_RDWR);
20031 data2 = (char *) malloc (2 * pagesize);
20034 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20035 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20036 MAP_PRIVATE | MAP_FIXED, fd, 0L))
20038 for (i = 0; i < pagesize; ++i)
20039 if (*(data + i) != *(data2 + i))
20042 /* Finally, make sure that changes to the mapped area do not
20043 percolate back to the file as seen by read(). (This is a bug on
20044 some variants of i386 svr4.0.) */
20045 for (i = 0; i < pagesize; ++i)
20046 *(data2 + i) = *(data2 + i) + 1;
20047 data3 = (char *) malloc (pagesize);
20050 if (read (fd, data3, pagesize) != pagesize)
20052 for (i = 0; i < pagesize; ++i)
20053 if (*(data + i) != *(data3 + i))
20059 rm -f conftest$ac_exeext
20060 if { (ac_try="$ac_link"
20061 case "(($ac_try" in
20062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20063 *) ac_try_echo
=$ac_try;;
20065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20066 (eval "$ac_link") 2>&5
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20070 { (case "(($ac_try" in
20071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20072 *) ac_try_echo=$ac_try;;
20074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20075 (eval "$ac_try") 2>&5
20077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20078 (exit $ac_status); }; }; then
20079 ac_cv_func_mmap_fixed_mapped=yes
20081 echo "$as_me: program exited with status $ac_status" >&5
20082 echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 ( exit $ac_status )
20086 ac_cv_func_mmap_fixed_mapped=no
20088 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20093 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20094 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20095 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20097 cat >>confdefs.h <<\_ACEOF
20098 #define HAVE_MMAP 1
20102 rm -f conftest.mmap
20104 { echo "$as_me:$LINENO: checking for mmap of files" >&5
20105 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20106 if test "${ac_cv_func_mmap_file+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20110 ac_cpp='$CPP $CPPFLAGS'
20111 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20112 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20113 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20115 if test "$cross_compiling" = yes; then
20116 ac_cv_func_mmap_file=no
20118 cat >conftest.$ac_ext <<_ACEOF
20122 cat confdefs.h >>conftest.$ac_ext
20123 cat >>conftest.$ac_ext <<_ACEOF
20124 /* end confdefs.h. */
20126 #include <sys/types.h>
20127 #include <sys/mman.h>
20135 fd = creat ("foo",0777);
20136 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20138 return (fd != (int) MAP_FAILED);
20143 rm -f conftest$ac_exeext
20144 if { (ac_try="$ac_link"
20145 case "(($ac_try" in
20146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20147 *) ac_try_echo
=$ac_try;;
20149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20150 (eval "$ac_link") 2>&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
20154 { (case "(($ac_try" in
20155 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20156 *) ac_try_echo=$ac_try;;
20158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20159 (eval "$ac_try") 2>&5
20161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20162 (exit $ac_status); }; }; then
20163 ac_cv_func_mmap_file=yes
20165 echo "$as_me: program exited with status $ac_status" >&5
20166 echo "$as_me: failed program was:" >&5
20167 sed 's/^/| /' conftest.$ac_ext >&5
20169 ( exit $ac_status )
20170 ac_cv_func_mmap_file=no
20172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20177 ac_cpp='$CPP $CPPFLAGS'
20178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20184 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20185 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20186 if test "$ac_cv_func_mmap_file" = yes; then
20188 cat >>confdefs.h <<\_ACEOF
20189 #define HAVE_MMAP_FILE
20196 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20197 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20198 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20199 echo $ECHO_N "(cached) $ECHO_C" >&6
20201 if test "$llvm_cv_os_type" = "Interix" ; then
20202 ac_cv_need_dev_zero_for_mmap=yes
20204 ac_cv_need_dev_zero_for_mmap=no
20208 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20209 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20210 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20212 cat >>confdefs.h <<\_ACEOF
20213 #define NEED_DEV_ZERO_FOR_MMAP 1
20218 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20220 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20221 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20223 if test "$ac_cv_func_mmap_file" = "no"
20225 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20226 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20230 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20231 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20233 ac_cpp='$CXXCPP $CPPFLAGS'
20234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20238 cat >conftest.$ac_ext <<_ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20245 volatile unsigned long val = 1;
20246 __sync_synchronize();
20247 __sync_val_compare_and_swap(&val, 1, 0);
20248 __sync_add_and_fetch(&val, 1);
20249 __sync_sub_and_fetch(&val, 1);
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20258 *) ac_try_echo
=$ac_try;;
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_link") 2>conftest.er1
20263 grep -v '^ *+' conftest.er1
>conftest.err
20265 cat conftest.err
>&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } &&
20268 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20269 { (case "(($ac_try" in
20270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20271 *) ac_try_echo=$ac_try;;
20273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20274 (eval "$ac_try") 2>&5
20276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20277 (exit $ac_status); }; } &&
20278 { ac_try='test -s conftest$ac_exeext'
20279 { (case "(($ac_try" in
20280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20281 *) ac_try_echo
=$ac_try;;
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_try") 2>&5
20286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20287 (exit $ac_status); }; }; then
20289 ac_cpp
='$CPP $CPPFLAGS'
20290 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20291 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20292 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20294 { echo "$as_me:$LINENO: result: yes" >&5
20295 echo "${ECHO_T}yes" >&6; }
20297 cat >>confdefs.h
<<\_ACEOF
20298 #define LLVM_MULTITHREADED 1
20302 echo "$as_me: failed program was:" >&5
20303 sed 's/^/| /' conftest.
$ac_ext >&5
20305 { echo "$as_me:$LINENO: result: no" >&5
20306 echo "${ECHO_T}no" >&6; }
20308 cat >>confdefs.h
<<\_ACEOF
20309 #define LLVM_MULTITHREADED 0
20312 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20313 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20316 rm -f core conftest.err conftest.
$ac_objext \
20317 conftest
$ac_exeext conftest.
$ac_ext
20320 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20321 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20322 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20323 if test "${llvm_cv_linux_mixed+set}" = set; then
20324 echo $ECHO_N "(cached) $ECHO_C" >&6
20327 ac_cpp
='$CPP $CPPFLAGS'
20328 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20329 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20330 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
20332 cat >conftest.
$ac_ext <<_ACEOF
20335 cat confdefs.h
>>conftest.
$ac_ext
20336 cat >>conftest.
$ac_ext <<_ACEOF
20337 /* end confdefs.h. */
20339 error: Not x86-64 even if uname says so!
20350 rm -f conftest.
$ac_objext
20351 if { (ac_try
="$ac_compile"
20352 case "(($ac_try" in
20353 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20357 (eval "$ac_compile") 2>conftest.er1
20359 grep -v '^ *+' conftest.er1 >conftest.err
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20363 (exit $ac_status); } &&
20364 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20365 { (case "(($ac_try" in
20366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20367 *) ac_try_echo
=$ac_try;;
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_try") 2>&5
20372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); }; } &&
20374 { ac_try
='test -s conftest.$ac_objext'
20375 { (case "(($ac_try" in
20376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20377 *) ac_try_echo=$ac_try;;
20379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20380 (eval "$ac_try") 2>&5
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; }; then
20384 llvm_cv_linux_mixed=no
20386 echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20389 llvm_cv_linux_mixed=yes
20392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20394 ac_cpp='$CPP $CPPFLAGS'
20395 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20396 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20397 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20401 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20402 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20404 if test "$llvm_cv_linux_mixed" = "yes"; then
20405 llvm_cv_target_arch="x86"
20411 for ac_func in __dso_handle
20413 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
20414 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20415 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20416 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20417 echo $ECHO_N "(cached) $ECHO_C" >&6
20419 cat >conftest.$ac_ext <<_ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20427 #define $ac_func innocuous_$ac_func
20429 /* System header to define __stub macros and hopefully few prototypes,
20430 which can conflict with char $ac_func (); below.
20431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20432 <limits.h> exists even on freestanding compilers. */
20435 # include <limits.h>
20437 # include <assert.h>
20442 /* Override any GCC internal prototype to avoid an error.
20443 Use char because int might match the return type of a GCC
20444 builtin and then its argument prototype would still apply. */
20449 /* The GNU C library defines this for functions which it implements
20450 to always fail with ENOSYS. Some functions are actually named
20451 something starting with __ and the normal name is an alias. */
20452 #if defined __stub_$ac_func || defined __stub___$ac_func
20459 return $ac_func ();
20464 rm -f conftest.$ac_objext conftest$ac_exeext
20465 if { (ac_try="$ac_link"
20466 case "(($ac_try" in
20467 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20468 *) ac_try_echo
=$ac_try;;
20470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20471 (eval "$ac_link") 2>conftest.er1
20473 grep -v '^ *+' conftest.er1
>conftest.err
20475 cat conftest.err
>&5
20476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20477 (exit $ac_status); } &&
20478 { ac_try
='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20479 { (case "(($ac_try" in
20480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_try") 2>&5
20486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20487 (exit $ac_status); }; } &&
20488 { ac_try='test -s conftest$ac_exeext'
20489 { (case "(($ac_try" in
20490 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20491 *) ac_try_echo
=$ac_try;;
20493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_try") 2>&5
20496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20497 (exit $ac_status); }; }; then
20498 eval "$as_ac_var=yes"
20500 echo "$as_me: failed program was:" >&5
20501 sed 's/^/| /' conftest.
$ac_ext >&5
20503 eval "$as_ac_var=no"
20506 rm -f core conftest.err conftest.
$ac_objext \
20507 conftest
$ac_exeext conftest.
$ac_ext
20509 ac_res
=`eval echo '${'$as_ac_var'}'`
20510 { echo "$as_me:$LINENO: result: $ac_res" >&5
20511 echo "${ECHO_T}$ac_res" >&6; }
20512 if test `eval echo '${'$as_ac_var'}'` = yes; then
20513 cat >>confdefs.h
<<_ACEOF
20514 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20521 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20522 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20523 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20524 echo $ECHO_N "(cached) $ECHO_C" >&6
20526 llvm_cv_llvmgcc_sanity
="no"
20527 if test -x "$LLVMGCC" ; then
20528 cp /dev
/null conftest.c
20529 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20530 grep 'target datalayout =' > /dev
/null
2>&1
20531 if test $?
-eq 0 ; then
20532 llvm_cv_llvmgcc_sanity
="yes"
20537 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20538 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20540 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20541 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20542 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20543 llvmcc1path
=`"$LLVMGCC" --print-prog-name=cc1`
20544 LLVMCC1
=$llvmcc1path
20546 llvmcc1pluspath
=`"$LLVMGCC" --print-prog-name=cc1plus`
20547 LLVMCC1PLUS
=$llvmcc1pluspath
20549 llvmgccdir
=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20550 LLVMGCCDIR
=$llvmgccdir
20552 llvmgcclangs
=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20553 LLVMGCC_LANGS
=$llvmgcclangs
20555 { echo "$as_me:$LINENO: result: ok" >&5
20556 echo "${ECHO_T}ok" >&6; }
20559 SHLIBEXT
=$libltdl_cv_shlibext
20562 SHLIBPATH_VAR
=$libltdl_cv_shlibpath_var
20565 # Translate the various configuration directories and other basic
20566 # information into substitutions that will end up in Makefile.config.in
20567 # that these configured values can be used by the makefiles
20568 if test "${prefix}" = "NONE" ; then
20569 prefix
="/usr/local"
20571 eval LLVM_PREFIX
="${prefix}";
20572 eval LLVM_BINDIR
="${prefix}/bin";
20573 eval LLVM_LIBDIR
="${prefix}/lib";
20574 eval LLVM_DATADIR
="${prefix}/share/llvm";
20575 eval LLVM_DOCSDIR
="${prefix}/share/doc/llvm";
20576 eval LLVM_ETCDIR
="${prefix}/etc/llvm";
20577 eval LLVM_INCLUDEDIR
="${prefix}/include";
20578 eval LLVM_INFODIR
="${prefix}/info";
20579 eval LLVM_MANDIR
="${prefix}/man";
20580 LLVM_CONFIGTIME
=`date`
20592 # Place the various directores into the config.h file as #defines so that we
20593 # can know about the installation paths within LLVM.
20595 cat >>confdefs.h
<<_ACEOF
20596 #define LLVM_PREFIX "$LLVM_PREFIX"
20600 cat >>confdefs.h
<<_ACEOF
20601 #define LLVM_BINDIR "$LLVM_BINDIR"
20605 cat >>confdefs.h
<<_ACEOF
20606 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20610 cat >>confdefs.h
<<_ACEOF
20611 #define LLVM_DATADIR "$LLVM_DATADIR"
20615 cat >>confdefs.h
<<_ACEOF
20616 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20620 cat >>confdefs.h
<<_ACEOF
20621 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20625 cat >>confdefs.h
<<_ACEOF
20626 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20630 cat >>confdefs.h
<<_ACEOF
20631 #define LLVM_INFODIR "$LLVM_INFODIR"
20635 cat >>confdefs.h
<<_ACEOF
20636 #define LLVM_MANDIR "$LLVM_MANDIR"
20640 cat >>confdefs.h
<<_ACEOF
20641 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20645 cat >>confdefs.h
<<_ACEOF
20646 #define LLVM_HOSTTRIPLE "$host"
20650 # Determine which bindings to build.
20651 if test "$BINDINGS_TO_BUILD" = auto
; then
20652 BINDINGS_TO_BUILD
=""
20653 if test "x$OCAMLC" != x
-a "x$OCAMLDEP" != x
; then
20654 BINDINGS_TO_BUILD
="ocaml $BINDINGS_TO_BUILD"
20657 BINDINGS_TO_BUILD
=$BINDINGS_TO_BUILD
20660 # This isn't really configurey, but it avoids having to repeat the list in
20665 # Do any work necessary to ensure that bindings have what they need.
20666 binding_prereqs_failed
=0
20667 for a_binding
in $BINDINGS_TO_BUILD ; do
20668 case "$a_binding" in
20670 if test "x$OCAMLC" = x
; then
20671 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20672 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20673 binding_prereqs_failed
=1
20675 if test "x$OCAMLDEP" = x
; then
20676 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20677 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20678 binding_prereqs_failed
=1
20680 if test "x$OCAMLOPT" = x
; then
20681 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20682 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20684 if test "x$with_ocaml_libdir" != xauto
; then
20685 OCAML_LIBDIR
=$with_ocaml_libdir
20688 ocaml_stdlib
="`"$OCAMLC" -where`"
20689 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20691 # ocaml stdlib is beneath our prefix; use stdlib
20692 OCAML_LIBDIR
=$ocaml_stdlib
20695 # ocaml stdlib is outside our prefix; use libdir/ocaml
20696 OCAML_LIBDIR
=$LLVM_LIBDIR/ocaml
20703 if test "$binding_prereqs_failed" = 1 ; then
20704 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20705 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20706 { (exit 1); exit 1; }; }
20709 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20710 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20711 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20712 echo $ECHO_N "(cached) $ECHO_C" >&6
20715 ac_cpp
='$CXXCPP $CPPFLAGS'
20716 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20717 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20718 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
20720 oldcxxflags
="$CXXFLAGS"
20721 CXXFLAGS
="$CXXFLAGS -fvisibility-inlines-hidden"
20722 cat >conftest.
$ac_ext <<_ACEOF
20725 cat confdefs.h
>>conftest.
$ac_ext
20726 cat >>conftest.
$ac_ext <<_ACEOF
20727 /* end confdefs.h. */
20737 rm -f conftest.
$ac_objext
20738 if { (ac_try
="$ac_compile"
20739 case "(($ac_try" in
20740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_compile") 2>conftest.er1
20746 grep -v '^ *+' conftest.er1 >conftest.err
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } &&
20751 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20752 { (case "(($ac_try" in
20753 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
20754 *) ac_try_echo
=$ac_try;;
20756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20757 (eval "$ac_try") 2>&5
20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20760 (exit $ac_status); }; } &&
20761 { ac_try
='test -s conftest.$ac_objext'
20762 { (case "(($ac_try" in
20763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
20764 *) ac_try_echo=$ac_try;;
20766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20767 (eval "$ac_try") 2>&5
20769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20770 (exit $ac_status); }; }; then
20771 llvm_cv_cxx_visibility_inlines_hidden=yes
20773 echo "$as_me: failed program was:" >&5
20774 sed 's/^/| /' conftest.$ac_ext >&5
20776 llvm_cv_cxx_visibility_inlines_hidden=no
20779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20780 CXXFLAGS="$oldcxxflags"
20782 ac_cpp='$CPP $CPPFLAGS'
20783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20789 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20790 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20791 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20792 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20795 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20800 if test "$llvm_cv_link_use_r" = "yes" ; then
20807 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20808 RDYNAMIC="-Wl,-export-dynamic"
20815 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20822 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20824 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20826 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20828 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20830 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20833 ac_config_files="$ac_config_files Makefile.config"
20836 ac_config_files="$ac_config_files llvm.spec"
20839 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20842 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20845 ac_config_commands="$ac_config_commands setup"
20847 ac_config_commands="$ac_config_commands Makefile"
20850 ac_config_commands="$ac_config_commands Makefile.common"
20853 ac_config_commands="$ac_config_commands examples/Makefile"
20856 ac_config_commands="$ac_config_commands lib/Makefile"
20859 ac_config_commands="$ac_config_commands runtime/Makefile"
20862 ac_config_commands="$ac_config_commands test/Makefile"
20865 ac_config_commands="$ac_config_commands test/Makefile.tests"
20868 ac_config_commands="$ac_config_commands unittests/Makefile"
20871 ac_config_commands="$ac_config_commands tools/Makefile"
20874 ac_config_commands="$ac_config_commands utils/Makefile"
20877 ac_config_commands="$ac_config_commands projects/Makefile"
20880 ac_config_commands="$ac_config_commands bindings/Makefile"
20883 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20887 cat >confcache <<\_ACEOF
20888 # This file is a shell script that caches the results of configure
20889 # tests run on this system so they can be shared between configure
20890 # scripts and configure runs, see configure's option --config-cache.
20891 # It is not useful on other systems. If it contains results you don't
20892 # want to keep, you may remove or edit it.
20894 # config.status only pays attention to the cache file if you give it
20895 # the --recheck option to rerun configure.
20897 # `ac_cv_env_foo
' variables (set or unset) will be overridden when
20898 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20899 # following values.
20903 # The following way of writing the cache mishandles newlines in values,
20904 # but we know of no workaround that is simple, portable, and efficient.
20905 # So, we kill variables containing newlines.
20906 # Ultrix sh set writes to stderr and can't be redirected directly,
20907 # and sets the high bit in the cache file unless we assign to the vars.
20909 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20910 eval ac_val
=\$
$ac_var
20914 *_cv_
*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20915 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20918 _ | IFS | as_nl
) ;; #(
20919 *) $as_unset $ac_var ;;
20925 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20926 *${as_nl}ac_space
=\
*)
20927 # `set' does not quote correctly, so add quotes (double-quote
20928 # substitution turns \\\\ into \\, and sed turns \\ into \).
20931 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20934 # `set' quotes correctly as required by POSIX, so do not add quotes.
20935 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20944 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20946 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20948 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
20949 if test -w "$cache_file"; then
20950 test "x$cache_file" != "x/dev/null" &&
20951 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20952 echo "$as_me: updating cache $cache_file" >&6;}
20953 cat confcache
>$cache_file
20955 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20956 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20961 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
20962 # Let make expand exec_prefix.
20963 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
20965 DEFS
=-DHAVE_CONFIG_H
20969 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
20970 # 1. Remove the extension, and $U if already installed.
20971 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
20972 ac_i
=`echo "$ac_i" | sed "$ac_script"`
20973 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20974 # will be set to the directory where LIBOBJS objects are built.
20975 ac_libobjs
="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20976 ac_ltlibobjs
="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20978 LIBOBJS
=$ac_libobjs
20980 LTLIBOBJS
=$ac_ltlibobjs
20983 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20984 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20985 Usually this means the macro was only invoked conditionally." >&5
20986 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20987 Usually this means the macro was only invoked conditionally." >&2;}
20988 { (exit 1); exit 1; }; }
20990 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20991 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20992 Usually this means the macro was only invoked conditionally." >&5
20993 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20994 Usually this means the macro was only invoked conditionally." >&2;}
20995 { (exit 1); exit 1; }; }
20998 : ${CONFIG_STATUS=./config.status}
20999 ac_clean_files_save
=$ac_clean_files
21000 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
21001 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21002 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21003 cat >$CONFIG_STATUS <<_ACEOF
21005 # Generated by $as_me.
21006 # Run this file to recreate the current configuration.
21007 # Compiler output produced by configure, useful for debugging
21008 # configure, is in config.log if it exists.
21011 ac_cs_recheck=false
21013 SHELL=\${CONFIG_SHELL-$SHELL}
21016 cat >>$CONFIG_STATUS <<\_ACEOF
21017 ## --------------------- ##
21018 ## M4sh Initialization. ##
21019 ## --------------------- ##
21021 # Be Bourne compatible
21022 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
21025 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21026 # is contrary to our usage. Disable this feature.
21027 alias -g '${1+"$@"}'='"$@"'
21028 setopt NO_GLOB_SUBST
21030 case `(set -o) 2>/dev/null` in *posix
*) set -o posix
;; esac
21032 BIN_SH
=xpg4
; export BIN_SH
# for Tru64
21033 DUALCASE
=1; export DUALCASE
# for MKS sh
21037 # Avoid depending upon Character Ranges.
21038 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
21039 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21040 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
21041 as_cr_digits
='0123456789'
21042 as_cr_alnum
=$as_cr_Letters$as_cr_digits
21044 # The user is always right.
21045 if test "${PATH_SEPARATOR+set}" != set; then
21046 echo "#! /bin/sh" >conf$$.sh
21047 echo "exit 0" >>conf$$.sh
21049 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
21057 # Support unset when possible.
21058 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
21066 # We need space, tab and new line, in precisely that order. Quoting is
21067 # there to prevent editors from complaining about space-tab.
21068 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21069 # splitting by setting IFS to empty value.)
21074 # Find who we are. Look in the path if we contain no directory separator.
21076 *[\\/]* ) as_myself
=$0 ;;
21077 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
21078 for as_dir
in $PATH
21081 test -z "$as_dir" && as_dir
=.
21082 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
21088 # We did not find ourselves, most probably we were run as `sh COMMAND'
21089 # in which case we are not to be found in the path.
21090 if test "x$as_myself" = x
; then
21093 if test ! -f "$as_myself"; then
21094 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21095 { (exit 1); exit 1; }
21098 # Work around bugs in pre-3.0 UWIN ksh.
21099 for as_var
in ENV MAIL MAILPATH
21100 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
21108 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21109 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21110 LC_TELEPHONE LC_TIME
21112 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21113 eval $as_var=C
; export $as_var
21115 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
21119 # Required to use basename.
21120 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21121 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21127 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21128 as_basename
=basename
21134 # Name of the executable.
21135 as_me
=`$as_basename -- "$0" ||
21136 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21137 X"$0" : 'X\(//\)$' \| \
21138 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21140 sed '/^.*\/\([^/][^/]*\)\/*$/{
21159 as_lineno_1
=$LINENO
21160 as_lineno_2
=$LINENO
21161 test "x$as_lineno_1" != "x$as_lineno_2" &&
21162 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
21164 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21165 # uniformly replaced by the line number. The first 'sed' inserts a
21166 # line-number line after each line using $LINENO; the second 'sed'
21167 # does the real work. The second script uses 'N' to pair each
21168 # line-number line with the line containing $LINENO, and appends
21169 # trailing '-' during substitution so that $LINENO is not a special
21170 # case at line end.
21171 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21172 # scripts with optimization help from Paolo Bonzini. Blame Lee
21173 # E. McMahon (1931-1989) for sed's syntax. :-)
21185 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21188 ' >$as_me.lineno
&&
21189 chmod +x
"$as_me.lineno" ||
21190 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21191 { (exit 1); exit 1; }; }
21193 # Don't try to exec as it changes $[0], causing all sort of problems
21194 # (the dirname of $[0] is not the place where we might find the
21195 # original and so on. Autoconf is especially sensitive to this).
21196 .
"./$as_me.lineno"
21197 # Exit status is that of the last command.
21202 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
21208 ECHO_C
= ECHO_N
= ECHO_T
=
21209 case `echo -n x` in
21211 case `echo 'x\c'` in
21212 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
21219 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
21220 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
21226 rm -f conf$$ conf$$.exe conf$$.
file
21227 if test -d conf$$.dir
; then
21228 rm -f conf$$.dir
/conf$$.
file
21234 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
21236 # ... but there are two gotchas:
21237 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21238 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21239 # In both cases, we have to default to `cp -p'.
21240 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
21242 elif ln conf$$.
file conf$$
2>/dev
/null
; then
21247 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
21248 rmdir conf$$.dir
2>/dev
/null
21250 if mkdir
-p .
2>/dev
/null
; then
21253 test -d .
/-p && rmdir .
/-p
21257 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
21258 # systems may use methods other than mode bits to determine executability.
21259 cat >conf$$.
file <<_ASEOF
21263 chmod +x conf$$.
file
21264 if test -x conf$$.
file >/dev
/null
2>&1; then
21265 as_executable_p
="test -x"
21271 # Sed expression to map a string onto a valid CPP name.
21272 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21274 # Sed expression to map a string onto a valid variable name.
21275 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21280 # Save the log message, to keep $[0] and so on meaningful, and to
21281 # report actual input values of CONFIG_FILES etc. instead of their
21282 # values after options handling.
21284 This file was extended by llvm $as_me 2.9svn, which was
21285 generated by GNU Autoconf 2.60. Invocation command line was
21287 CONFIG_FILES = $CONFIG_FILES
21288 CONFIG_HEADERS = $CONFIG_HEADERS
21289 CONFIG_LINKS = $CONFIG_LINKS
21290 CONFIG_COMMANDS = $CONFIG_COMMANDS
21293 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21298 cat >>$CONFIG_STATUS <<_ACEOF
21299 # Files that config.status was made for.
21300 config_files="$ac_config_files"
21301 config_headers="$ac_config_headers"
21302 config_commands="$ac_config_commands"
21306 cat >>$CONFIG_STATUS <<\_ACEOF
21308 \`$as_me' instantiates files from templates according to the
21309 current configuration.
21311 Usage: $0 [OPTIONS] [FILE]...
21313 -h, --help print this help, then exit
21314 -V, --version print version number, then exit
21315 -q, --quiet do not print progress messages
21316 -d, --debug don't remove temporary files
21317 --recheck update $as_me by reconfiguring in the same conditions
21318 --file=FILE[:TEMPLATE]
21319 instantiate the configuration file FILE
21320 --header=FILE[:TEMPLATE]
21321 instantiate the configuration header FILE
21323 Configuration files:
21326 Configuration headers:
21329 Configuration commands:
21332 Report bugs to <bug-autoconf@gnu.org>."
21335 cat >>$CONFIG_STATUS <<_ACEOF
21337 llvm config.status 2.9svn
21338 configured by $0, generated by GNU Autoconf 2.60,
21339 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21341 Copyright (C) 2006 Free Software Foundation, Inc.
21342 This config.status script is free software; the Free Software Foundation
21343 gives unlimited permission to copy, distribute and modify it."
21350 cat >>$CONFIG_STATUS <<\_ACEOF
21351 # If no file are specified by the user, then we need to provide default
21352 # value. By we need to know if files were specified by the user.
21358 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
21359 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
21370 # Handling of the options.
21371 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
21373 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
21374 echo "$ac_cs_version"; exit ;;
21375 --debug |
--debu |
--deb |
--de |
--d |
-d )
21377 --file |
--fil |
--fi |
--f )
21379 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
21380 ac_need_defaults
=false
;;
21381 --header |
--heade |
--head |
--hea )
21383 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
21384 ac_need_defaults
=false
;;
21386 # Conflict between --help and --header
21387 { echo "$as_me: error: ambiguous option: $1
21388 Try \`$0 --help' for more information." >&2
21389 { (exit 1); exit 1; }; };;
21390 --help |
--hel |
-h )
21391 echo "$ac_cs_usage"; exit ;;
21392 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
21393 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
21396 # This is an error.
21397 -*) { echo "$as_me: error: unrecognized option: $1
21398 Try \`$0 --help' for more information." >&2
21399 { (exit 1); exit 1; }; } ;;
21401 *) ac_config_targets
="$ac_config_targets $1"
21402 ac_need_defaults
=false
;;
21408 ac_configure_extra_args
=
21410 if $ac_cs_silent; then
21412 ac_configure_extra_args
="$ac_configure_extra_args --silent"
21416 cat >>$CONFIG_STATUS <<_ACEOF
21417 if \$ac_cs_recheck; then
21418 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21419 CONFIG_SHELL=$SHELL
21420 export CONFIG_SHELL
21421 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21425 cat >>$CONFIG_STATUS <<\_ACEOF
21429 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21430 ## Running $as_me. ##
21436 cat >>$CONFIG_STATUS <<_ACEOF
21440 llvm_src="${srcdir}"
21444 cat >>$CONFIG_STATUS <<\_ACEOF
21446 # Handling of arguments.
21447 for ac_config_target
in $ac_config_targets
21449 case $ac_config_target in
21450 "include/llvm/Config/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21451 "include/llvm/Config/llvm-config.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21452 "include/llvm/Config/Targets.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21453 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21454 "include/llvm/Config/AsmParsers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21455 "include/llvm/Config/Disassemblers.def") CONFIG_FILES
="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21456 "include/llvm/System/DataTypes.h") CONFIG_HEADERS
="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21457 "Makefile.config") CONFIG_FILES
="$CONFIG_FILES Makefile.config" ;;
21458 "llvm.spec") CONFIG_FILES
="$CONFIG_FILES llvm.spec" ;;
21459 "tools/llvmc/src/Base.td") CONFIG_FILES
="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21460 "tools/llvm-config/llvm-config.in") CONFIG_FILES
="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21461 "setup") CONFIG_COMMANDS
="$CONFIG_COMMANDS setup" ;;
21462 "Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile" ;;
21463 "Makefile.common") CONFIG_COMMANDS
="$CONFIG_COMMANDS Makefile.common" ;;
21464 "examples/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS examples/Makefile" ;;
21465 "lib/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS lib/Makefile" ;;
21466 "runtime/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS runtime/Makefile" ;;
21467 "test/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile" ;;
21468 "test/Makefile.tests") CONFIG_COMMANDS
="$CONFIG_COMMANDS test/Makefile.tests" ;;
21469 "unittests/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS unittests/Makefile" ;;
21470 "tools/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS tools/Makefile" ;;
21471 "utils/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS utils/Makefile" ;;
21472 "projects/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS projects/Makefile" ;;
21473 "bindings/Makefile") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/Makefile" ;;
21474 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS
="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21476 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21477 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21478 { (exit 1); exit 1; }; };;
21483 # If the user did not use the arguments to specify the items to instantiate,
21484 # then the envvar interface is used. Set only those that are not.
21485 # We use the long form for the default assignment because of an extremely
21486 # bizarre bug on SunOS 4.1.3.
21487 if $ac_need_defaults; then
21488 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
21489 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
21490 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
21493 # Have a temporary directory for convenience. Make it in the build tree
21494 # simply because there is no reason against having it here, and in addition,
21495 # creating and moving files from /tmp can sometimes cause problems.
21496 # Hook for its removal unless debugging.
21497 # Note that there is a small window in which the directory will not be cleaned:
21498 # after its creation but before its name has been assigned to `$tmp'.
21502 trap 'exit_status=$?
21503 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21505 trap '{ (exit 1); exit 1; }' 1 2 13 15
21507 # Create a (secure) tmp directory for tmp files.
21510 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21511 test -n "$tmp" && test -d "$tmp"
21514 tmp
=.
/conf$$
-$RANDOM
21515 (umask 077 && mkdir
"$tmp")
21518 echo "$me: cannot create a temporary directory in ." >&2
21519 { (exit 1); exit 1; }
21523 # Set up the sed scripts for CONFIG_FILES section.
21526 # No need to generate the scripts if there are no CONFIG_FILES.
21527 # This happens for instance when ./config.status config.h
21528 if test -n "$CONFIG_FILES"; then
21535 for ac_last_try
in false false false false false
:; do
21536 cat >conf$
$subs.
sed <<_ACEOF
21537 SHELL!$SHELL$ac_delim
21538 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21539 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21540 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21541 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21542 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21543 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21544 exec_prefix!$exec_prefix$ac_delim
21545 prefix!$prefix$ac_delim
21546 program_transform_name!$program_transform_name$ac_delim
21547 bindir!$bindir$ac_delim
21548 sbindir!$sbindir$ac_delim
21549 libexecdir!$libexecdir$ac_delim
21550 datarootdir!$datarootdir$ac_delim
21551 datadir!$datadir$ac_delim
21552 sysconfdir!$sysconfdir$ac_delim
21553 sharedstatedir!$sharedstatedir$ac_delim
21554 localstatedir!$localstatedir$ac_delim
21555 includedir!$includedir$ac_delim
21556 oldincludedir!$oldincludedir$ac_delim
21557 docdir!$docdir$ac_delim
21558 infodir!$infodir$ac_delim
21559 htmldir!$htmldir$ac_delim
21560 dvidir!$dvidir$ac_delim
21561 pdfdir!$pdfdir$ac_delim
21562 psdir!$psdir$ac_delim
21563 libdir!$libdir$ac_delim
21564 localedir!$localedir$ac_delim
21565 mandir!$mandir$ac_delim
21566 DEFS!$DEFS$ac_delim
21567 ECHO_C!$ECHO_C$ac_delim
21568 ECHO_N!$ECHO_N$ac_delim
21569 ECHO_T!$ECHO_T$ac_delim
21570 LIBS!$LIBS$ac_delim
21571 build_alias!$build_alias$ac_delim
21572 host_alias!$host_alias$ac_delim
21573 target_alias!$target_alias$ac_delim
21574 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21575 subdirs!$subdirs$ac_delim
21576 build!$build$ac_delim
21577 build_cpu!$build_cpu$ac_delim
21578 build_vendor!$build_vendor$ac_delim
21579 build_os!$build_os$ac_delim
21580 host!$host$ac_delim
21581 host_cpu!$host_cpu$ac_delim
21582 host_vendor!$host_vendor$ac_delim
21583 host_os!$host_os$ac_delim
21584 target!$target$ac_delim
21585 target_cpu!$target_cpu$ac_delim
21586 target_vendor!$target_vendor$ac_delim
21587 target_os!$target_os$ac_delim
21589 HOST_OS!$HOST_OS$ac_delim
21590 TARGET_OS!$TARGET_OS$ac_delim
21591 LINKALL!$LINKALL$ac_delim
21592 NOLINKALL!$NOLINKALL$ac_delim
21593 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21594 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21595 ARCH!$ARCH$ac_delim
21596 ENDIAN!$ENDIAN$ac_delim
21598 CFLAGS!$CFLAGS$ac_delim
21599 LDFLAGS!$LDFLAGS$ac_delim
21600 CPPFLAGS!$CPPFLAGS$ac_delim
21601 ac_ct_CC!$ac_ct_CC$ac_delim
21602 EXEEXT!$EXEEXT$ac_delim
21603 OBJEXT!$OBJEXT$ac_delim
21605 GREP!$GREP$ac_delim
21606 EGREP!$EGREP$ac_delim
21607 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21608 BUILD_CC!$BUILD_CC$ac_delim
21609 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21610 BUILD_CXX!$BUILD_CXX$ac_delim
21611 CVSBUILD!$CVSBUILD$ac_delim
21612 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21613 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21614 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21615 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21616 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21617 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21618 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21620 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21621 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21622 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21623 ENABLE_PIC!$ENABLE_PIC$ac_delim
21624 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21625 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21626 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21627 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21628 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21629 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21630 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21631 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21632 CLANGPATH!$CLANGPATH$ac_delim
21633 CLANGXXPATH!$CLANGXXPATH$ac_delim
21636 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21638 elif $ac_last_try; then
21639 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21640 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21641 { (exit 1); exit 1; }; }
21643 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21647 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21648 if test -n "$ac_eof"; then
21649 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21650 ac_eof
=`expr $ac_eof + 1`
21653 cat >>$CONFIG_STATUS <<_ACEOF
21654 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21655 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21658 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21659 s/^/s,@/; s/!/@,|#_!!_#|/
21662 s/'"$ac_delim"'$/,g/; t
21664 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21665 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21666 rm -f conf$
$subs.
sed
21667 cat >>$CONFIG_STATUS <<_ACEOF
21673 for ac_last_try
in false false false false false
:; do
21674 cat >conf$
$subs.
sed <<_ACEOF
21675 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21676 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21677 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21678 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21680 CXXFLAGS!$CXXFLAGS$ac_delim
21681 ac_ct_CXX!$ac_ct_CXX$ac_delim
21683 ifGNUmake!$ifGNUmake$ac_delim
21684 LN_S!$LN_S$ac_delim
21687 DATE!$DATE$ac_delim
21688 FIND!$FIND$ac_delim
21689 MKDIR!$MKDIR$ac_delim
21691 RANLIB!$RANLIB$ac_delim
21696 BINPWD!$BINPWD$ac_delim
21697 GRAPHVIZ!$GRAPHVIZ$ac_delim
21700 NEATO!$NEATO$ac_delim
21701 TWOPI!$TWOPI$ac_delim
21702 CIRCO!$CIRCO$ac_delim
21704 DOTTY!$DOTTY$ac_delim
21705 XDOT_PY!$XDOT_PY$ac_delim
21706 PERL!$PERL$ac_delim
21707 HAVE_PERL!$HAVE_PERL$ac_delim
21708 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21709 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21710 INSTALL_DATA!$INSTALL_DATA$ac_delim
21711 BZIP2!$BZIP2$ac_delim
21713 DOXYGEN!$DOXYGEN$ac_delim
21714 GROFF!$GROFF$ac_delim
21715 GZIP!$GZIP$ac_delim
21716 POD2HTML!$POD2HTML$ac_delim
21717 POD2MAN!$POD2MAN$ac_delim
21718 PDFROFF!$PDFROFF$ac_delim
21719 RUNTEST!$RUNTEST$ac_delim
21720 TCLSH!$TCLSH$ac_delim
21722 OCAMLC!$OCAMLC$ac_delim
21723 OCAMLOPT!$OCAMLOPT$ac_delim
21724 OCAMLDEP!$OCAMLDEP$ac_delim
21725 OCAMLDOC!$OCAMLDOC$ac_delim
21727 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21728 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21729 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21730 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21731 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21732 LIBADD_DL!$LIBADD_DL$ac_delim
21733 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21734 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21735 LLVMGCC!$LLVMGCC$ac_delim
21736 LLVMGXX!$LLVMGXX$ac_delim
21737 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21738 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21739 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21740 USE_UDIS86!$USE_UDIS86$ac_delim
21741 USE_OPROFILE!$USE_OPROFILE$ac_delim
21742 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21743 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21744 MMAP_FILE!$MMAP_FILE$ac_delim
21745 LLVMCC1!$LLVMCC1$ac_delim
21746 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21747 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21748 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21749 SHLIBEXT!$SHLIBEXT$ac_delim
21750 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21751 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21752 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21753 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21754 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21755 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21756 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21757 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21758 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21759 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21760 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21761 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21762 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21763 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21764 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21765 RPATH!$RPATH$ac_delim
21766 RDYNAMIC!$RDYNAMIC$ac_delim
21767 LIBOBJS!$LIBOBJS$ac_delim
21768 LTLIBOBJS!$LTLIBOBJS$ac_delim
21771 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
21773 elif $ac_last_try; then
21774 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21775 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21776 { (exit 1); exit 1; }; }
21778 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
21782 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21783 if test -n "$ac_eof"; then
21784 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
21785 ac_eof
=`expr $ac_eof + 1`
21788 cat >>$CONFIG_STATUS <<_ACEOF
21789 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21790 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21793 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21794 s/^/s,@/; s/!/@,|#_!!_#|/
21797 s/'"$ac_delim"'$/,g/; t
21799 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21800 ' >>$CONFIG_STATUS <conf$
$subs.
sed
21801 rm -f conf$
$subs.
sed
21802 cat >>$CONFIG_STATUS <<_ACEOF
21809 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21810 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21811 # trailing colons and then remove the whole line if VPATH becomes empty
21812 # (actually we leave an empty line to preserve line numbers).
21813 if test "x$srcdir" = x.
; then
21814 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
21815 s/:*\$(srcdir):*/:/
21816 s/:*\${srcdir}:*/:/
21818 s/^\([^=]*=[ ]*\):*/\1/
21824 cat >>$CONFIG_STATUS <<\_ACEOF
21825 fi # test -n "$CONFIG_FILES"
21828 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
21831 :[FHLC
]) ac_mode
=$ac_tag; continue;;
21833 case $ac_mode$ac_tag in
21835 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21836 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21837 { (exit 1); exit 1; }; };;
21838 :[FH
]-) ac_tag
=-:-;;
21839 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
21856 -) ac_f
="$tmp/stdin";;
21857 *) # Look for the file first in the build tree, then in the source tree
21858 # (if the path is not absolute). The absolute path cannot be DOS-style,
21859 # because $ac_f cannot contain `:'.
21863 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
21865 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21866 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21867 { (exit 1); exit 1; }; };;
21869 ac_file_inputs
="$ac_file_inputs $ac_f"
21872 # Let's still pretend it is `configure' which instantiates (i.e., don't
21873 # use $as_me), people would be surprised to read:
21874 # /* config.h. Generated by config.status. */
21875 configure_input
="Generated from "`IFS=:
21876 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21877 if test x
"$ac_file" != x-
; then
21878 configure_input
="$ac_file. $configure_input"
21879 { echo "$as_me:$LINENO: creating $ac_file" >&5
21880 echo "$as_me: creating $ac_file" >&6;}
21884 *:-:* |
*:-) cat >"$tmp/stdin";;
21889 ac_dir
=`$as_dirname -- "$ac_file" ||
21890 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21891 X"$ac_file" : 'X\(//\)[^/]' \| \
21892 X"$ac_file" : 'X\(//\)$' \| \
21893 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21895 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21899 /^X\(\/\/\)[^/].*/{
21914 -*) as_dir
=.
/$as_dir;;
21916 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
21920 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21921 *) as_qdir
=$as_dir;;
21923 as_dirs
="'$as_qdir' $as_dirs"
21924 as_dir
=`$as_dirname -- "$as_dir" ||
21925 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21926 X"$as_dir" : 'X\(//\)[^/]' \| \
21927 X"$as_dir" : 'X\(//\)$' \| \
21928 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21930 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21934 /^X\(\/\/\)[^/].*/{
21947 test -d "$as_dir" && break
21949 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
21950 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21951 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21952 { (exit 1); exit 1; }; }; }
21956 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21958 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21959 # A ".." for each directory in $ac_dir_suffix.
21960 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21961 case $ac_top_builddir_sub in
21962 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
21963 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
21966 ac_abs_top_builddir
=$ac_pwd
21967 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
21968 # for backward compatibility:
21969 ac_top_builddir
=$ac_top_build_prefix
21972 .
) # We are building in place.
21974 ac_top_srcdir
=$ac_top_builddir_sub
21975 ac_abs_top_srcdir
=$ac_pwd ;;
21976 [\\/]* | ?
:[\\/]* ) # Absolute name.
21977 ac_srcdir
=$srcdir$ac_dir_suffix;
21978 ac_top_srcdir
=$srcdir
21979 ac_abs_top_srcdir
=$srcdir ;;
21980 *) # Relative name.
21981 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
21982 ac_top_srcdir
=$ac_top_build_prefix$srcdir
21983 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
21985 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
21995 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
21996 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
22000 cat >>$CONFIG_STATUS <<\_ACEOF
22001 # If the template does not know about datarootdir, expand it.
22002 # FIXME: This hack should be removed a few years after 2.60.
22003 ac_datarootdir_hack
=; ac_datarootdir_seen
=
22005 case `sed -n '/datarootdir/ {
22014 ' $ac_file_inputs` in
22015 *datarootdir
*) ac_datarootdir_seen
=yes;;
22016 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
22017 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22018 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22020 cat >>$CONFIG_STATUS <<_ACEOF
22021 ac_datarootdir_hack='
22022 s&@datadir@&$datadir&g
22023 s&@docdir@&$docdir&g
22024 s&@infodir@&$infodir&g
22025 s&@localedir@&$localedir&g
22026 s&@mandir@&$mandir&g
22027 s&\\\${datarootdir}&$datarootdir&g' ;;
22031 # Neutralize VPATH when `$srcdir' = `.'.
22032 # Shell code in configure.ac might set extrasub.
22033 # FIXME: do we really want to maintain this feature?
22034 cat >>$CONFIG_STATUS <<_ACEOF
22038 cat >>$CONFIG_STATUS <<\_ACEOF
22040 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
22041 s
&@configure_input@
&$configure_input&;t t
22042 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
22043 s
&@srcdir@
&$ac_srcdir&;t t
22044 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
22045 s
&@top_srcdir@
&$ac_top_srcdir&;t t
22046 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
22047 s
&@builddir@
&$ac_builddir&;t t
22048 s
&@abs_builddir@
&$ac_abs_builddir&;t t
22049 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
22050 s
&@INSTALL@
&$ac_INSTALL&;t t
22051 $ac_datarootdir_hack
22052 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
22054 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22055 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
22056 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
22057 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
22058 which seems to be undefined. Please make sure it is defined." >&5
22059 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
22060 which seems to be undefined. Please make sure it is defined." >&2;}
22064 -) cat "$tmp/out"; rm -f "$tmp/out";;
22065 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22074 # Transform confdefs.h into a sed script `conftest.defines', that
22075 # substitutes the proper values into config.h.in to produce config.h.
22076 rm -f conftest.defines conftest.
tail
22077 # First, append a space to every undef/define line, to ease matching.
22078 echo 's/$/ /' >conftest.defines
22079 # Then, protect against being on the right side of a sed subst, or in
22080 # an unquoted here document, in config.status. If some macros were
22081 # called several times there might be several #defines for the same
22082 # symbol, which is useless. But do not sort them, since the last
22083 # AC_DEFINE must be honored.
22084 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
22085 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22086 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22087 # PARAMS is the parameter list in the macro definition--in most cases, it's
22088 # just an empty string.
22089 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
22090 ac_dB
='\\)[ (].*,\\1define\\2'
22098 s/^[ ]*#[ ]*define[ ][ ]*//
22103 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22104 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22105 ' >>conftest.defines
22107 # Remove the space that was appended to ease matching.
22108 # Then replace #undef with comments. This is necessary, for
22109 # example, in the case of _POSIX_SOURCE, which is predefined and required
22110 # on some systems where configure will not decide to define it.
22111 # (The regexp can be short, since the line contains either #define or #undef.)
22113 s,^[ #]*u.*,/* & */,' >>conftest.defines
22115 # Break up conftest.defines:
22116 ac_max_sed_lines
=50
22118 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22119 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22120 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22122 ac_in
='$ac_file_inputs'
22123 ac_out
='"$tmp/out1"'
22124 ac_nxt
='"$tmp/out2"'
22128 # Write a here document:
22129 cat >>$CONFIG_STATUS <<_ACEOF
22130 # First, check the format of the line:
22131 cat >"\$tmp/defines.sed" <<\\CEOF
22132 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
22133 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
22137 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
22139 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22140 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
22141 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
22142 grep . conftest.
tail >/dev
/null ||
break
22143 rm -f conftest.defines
22144 mv conftest.
tail conftest.defines
22146 rm -f conftest.defines conftest.
tail
22148 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22149 cat >>$CONFIG_STATUS <<\_ACEOF
22150 if test x
"$ac_file" != x-
; then
22151 echo "/* $configure_input */" >"$tmp/config.h"
22152 cat "$ac_result" >>"$tmp/config.h"
22153 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
22154 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22155 echo "$as_me: $ac_file is unchanged" >&6;}
22158 mv "$tmp/config.h" $ac_file
22161 echo "/* $configure_input */"
22167 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22168 echo "$as_me: executing $ac_file commands" >&6;}
22173 case $ac_file$ac_mode in
22174 "Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile`
22175 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile
;;
22176 "Makefile.common":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname Makefile.common`
22177 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common
;;
22178 "examples/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname examples/Makefile`
22179 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples
/Makefile examples
/Makefile
;;
22180 "lib/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname lib/Makefile`
22181 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib
/Makefile lib
/Makefile
;;
22182 "runtime/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname runtime/Makefile`
22183 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime
/Makefile runtime
/Makefile
;;
22184 "test/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile`
22185 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile test
/Makefile
;;
22186 "test/Makefile.tests":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname test/Makefile.tests`
22187 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test
/Makefile.tests test
/Makefile.tests
;;
22188 "unittests/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname unittests/Makefile`
22189 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests
/Makefile unittests
/Makefile
;;
22190 "tools/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname tools/Makefile`
22191 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools
/Makefile tools
/Makefile
;;
22192 "utils/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname utils/Makefile`
22193 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils
/Makefile utils
/Makefile
;;
22194 "projects/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname projects/Makefile`
22195 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects
/Makefile projects
/Makefile
;;
22196 "bindings/Makefile":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/Makefile`
22197 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/Makefile bindings
/Makefile
;;
22198 "bindings/ocaml/Makefile.ocaml":C
) ${llvm_src}/autoconf
/mkinstalldirs
`dirname bindings/ocaml/Makefile.ocaml`
22199 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings
/ocaml
/Makefile.ocaml bindings
/ocaml
/Makefile.ocaml
;;
22205 { (exit 0); exit 0; }
22207 chmod +x
$CONFIG_STATUS
22208 ac_clean_files
=$ac_clean_files_save
22211 # configure is writing to config.log, and then calls config.status.
22212 # config.status does its own redirection, appending to config.log.
22213 # Unfortunately, on DOS this fails, as config.log is still kept open
22214 # by configure, so config.status won't be able to write to it; its
22215 # output is simply discarded. So we exec the FD to /dev/null,
22216 # effectively closing config.log, so it can be properly (re)opened and
22217 # appended to by config.status. When coming back to configure, we
22218 # need to make the FD available again.
22219 if test "$no_create" != yes; then
22221 ac_config_status_args
=
22222 test "$silent" = yes &&
22223 ac_config_status_args
="$ac_config_status_args --quiet"
22225 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
22227 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22228 # would make configure fail if this is the last instruction.
22229 $ac_cs_success ||
{ (exit 1); exit 1; }
22233 # CONFIG_SUBDIRS section.
22235 if test "$no_recursion" != yes; then
22237 # Remove --cache-file and --srcdir arguments so they do not pile up.
22238 ac_sub_configure_args
=
22240 eval "set x $ac_configure_args"
22244 if test -n "$ac_prev"; then
22249 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
22250 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
22251 ac_prev
=cache_file
;;
22252 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
22253 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* \
22256 --config-cache |
-C)
22258 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
22260 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
22262 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
22264 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
22268 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22270 ac_sub_configure_args
="$ac_sub_configure_args '$ac_arg'" ;;
22274 # Always prepend --prefix to ensure using the same prefix
22275 # in subdir configurations.
22276 ac_arg
="--prefix=$prefix"
22278 *\'*) ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22280 ac_sub_configure_args
="$ac_arg $ac_sub_configure_args"
22283 for ac_dir
in : $subdirs; do test "x$ac_dir" = x
: && continue
22285 # Do not complain, so a configure script can configure whichever
22286 # parts of a large source tree are present.
22287 test -d "$srcdir/$ac_dir" ||
continue
22289 ac_msg
="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22290 echo "$as_me:$LINENO: $ac_msg" >&5
22294 -*) as_dir
=.
/$as_dir;;
22296 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
22300 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22301 *) as_qdir
=$as_dir;;
22303 as_dirs
="'$as_qdir' $as_dirs"
22304 as_dir
=`$as_dirname -- "$as_dir" ||
22305 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22306 X"$as_dir" : 'X\(//\)[^/]' \| \
22307 X"$as_dir" : 'X\(//\)$' \| \
22308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22314 /^X\(\/\/\)[^/].*/{
22327 test -d "$as_dir" && break
22329 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
22330 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22331 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22332 { (exit 1); exit 1; }; }; }
22336 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22338 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22339 # A ".." for each directory in $ac_dir_suffix.
22340 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22341 case $ac_top_builddir_sub in
22342 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
22343 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
22346 ac_abs_top_builddir
=$ac_pwd
22347 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
22348 # for backward compatibility:
22349 ac_top_builddir
=$ac_top_build_prefix
22352 .
) # We are building in place.
22354 ac_top_srcdir
=$ac_top_builddir_sub
22355 ac_abs_top_srcdir
=$ac_pwd ;;
22356 [\\/]* | ?
:[\\/]* ) # Absolute name.
22357 ac_srcdir
=$srcdir$ac_dir_suffix;
22358 ac_top_srcdir
=$srcdir
22359 ac_abs_top_srcdir
=$srcdir ;;
22360 *) # Relative name.
22361 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
22362 ac_top_srcdir
=$ac_top_build_prefix$srcdir
22363 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
22365 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
22370 # Check for guested configure; otherwise get Cygnus style configure.
22371 if test -f "$ac_srcdir/configure.gnu"; then
22372 ac_sub_configure
=$ac_srcdir/configure.gnu
22373 elif test -f "$ac_srcdir/configure"; then
22374 ac_sub_configure
=$ac_srcdir/configure
22375 elif test -f "$ac_srcdir/configure.in"; then
22376 # This should be Cygnus configure.
22377 ac_sub_configure
=$ac_aux_dir/configure
22379 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22380 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22384 # The recursion is here.
22385 if test -n "$ac_sub_configure"; then
22386 # Make the cache file name correct relative to the subdirectory.
22387 case $cache_file in
22388 [\\/]* | ?
:[\\/]* ) ac_sub_cache_file
=$cache_file ;;
22389 *) # Relative name.
22390 ac_sub_cache_file
=$ac_top_build_prefix$cache_file ;;
22393 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22394 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22395 # The eval makes quoting arguments work.
22396 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22397 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22398 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22399 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22400 { (exit 1); exit 1; }; }