2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.7svn.
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-2009 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.7svn'
565 PACKAGE_STRING='llvm 2.7svn'
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
694 LLVM_ENUM_ASM_PRINTERS
695 LLVM_ENUM_ASM_PARSERS
696 LLVM_ENUM_DISASSEMBLERS
705 ENABLE_LLVMC_DYNAMIC_PLUGINS
753 CONVENIENCE_LTDL_TRUE
754 CONVENIENCE_LTDL_FALSE
762 NO_MISSING_FIELD_INITIALIZERS
786 ENABLE_VISIBILITY_INLINES_HIDDEN
792 ac_precious_vars='build_alias
803 ac_subdirs_all='projects/sample
805 projects/llvm-stacker
812 projects/llvm-poolalloc
814 projects/llvm-kernel'
816 # Initialize some variables set by options.
818 ac_init_version=false
819 # The variables have the same names as the options, with
820 # dashes changed to underlines.
828 program_transform_name=s,x,x,
836 # Installation directory options.
837 # These are left unexpanded so users can "make install exec_prefix=/foo"
838 # and all the variables that are supposed to be based on exec_prefix
839 # by default will actually change.
840 # Use braces instead of parens because sh, perl, etc. also accept them.
841 # (The list follows the same order as the GNU Coding Standards.)
842 bindir='${exec_prefix}/bin'
843 sbindir='${exec_prefix}/sbin'
844 libexecdir='${exec_prefix}/libexec'
845 datarootdir='${prefix}/share'
846 datadir='${datarootdir}'
847 sysconfdir='${prefix}/etc'
848 sharedstatedir='${prefix}/com'
849 localstatedir='${prefix}/var'
850 includedir='${prefix}/include'
851 oldincludedir='/usr/include'
852 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
853 infodir='${datarootdir}/info'
858 libdir='${exec_prefix}/lib'
859 localedir='${datarootdir}/locale'
860 mandir='${datarootdir}/man'
866 # If the previous option needs an argument, assign it.
867 if test -n "$ac_prev"; then
868 eval $ac_prev=\$ac_option
874 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
878 # Accept the important Cygnus configure options, so we can diagnose typos.
880 case $ac_dashdash$ac_option in
884 -bindir | --bindir | --bindi | --bind | --bin | --bi)
886 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
889 -build | --build | --buil | --bui | --bu)
890 ac_prev=build_alias ;;
891 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
892 build_alias=$ac_optarg ;;
894 -cache-file | --cache-file | --cache-fil | --cache-fi \
895 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
896 ac_prev=cache_file ;;
897 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
898 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
899 cache_file=$ac_optarg ;;
902 cache_file=config.cache ;;
904 -datadir | --datadir | --datadi | --datad)
906 -datadir=* | --datadir=* | --datadi=* | --datad=*)
907 datadir=$ac_optarg ;;
909 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
910 | --dataroo | --dataro | --datar)
911 ac_prev=datarootdir ;;
912 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
913 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
914 datarootdir=$ac_optarg ;;
916 -disable-* | --disable-*)
917 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
920 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
921 { (exit 1); exit 1; }; }
922 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
923 eval enable_$ac_feature=no ;;
925 -docdir | --docdir | --docdi | --doc | --do)
927 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
930 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
935 -enable-* | --enable-*)
936 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
937 # Reject names that are not valid shell variable names.
938 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
939 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
940 { (exit 1); exit 1; }; }
941 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
942 eval enable_$ac_feature=\$ac_optarg ;;
944 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
945 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
946 | --exec | --exe | --ex)
947 ac_prev=exec_prefix ;;
948 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
949 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
950 | --exec=* | --exe=* | --ex=*)
951 exec_prefix=$ac_optarg ;;
953 -gas | --gas | --ga | --g)
954 # Obsolete; use --with-gas.
957 -help | --help | --hel | --he | -h)
959 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
960 ac_init_help=recursive ;;
961 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
962 ac_init_help=short ;;
964 -host | --host | --hos | --ho)
965 ac_prev=host_alias ;;
966 -host=* | --host=* | --hos=* | --ho=*)
967 host_alias=$ac_optarg ;;
969 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 htmldir=$ac_optarg ;;
975 -includedir | --includedir | --includedi | --included | --include \
976 | --includ | --inclu | --incl | --inc)
977 ac_prev=includedir ;;
978 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
979 | --includ=* | --inclu=* | --incl=* | --inc=*)
980 includedir=$ac_optarg ;;
982 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
985 infodir=$ac_optarg ;;
987 -libdir | --libdir | --libdi | --libd)
989 -libdir=* | --libdir=* | --libdi=* | --libd=*)
992 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
993 | --libexe | --libex | --libe)
994 ac_prev=libexecdir ;;
995 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
996 | --libexe=* | --libex=* | --libe=*)
997 libexecdir=$ac_optarg ;;
999 -localedir | --localedir | --localedi | --localed | --locale)
1000 ac_prev=localedir ;;
1001 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1002 localedir=$ac_optarg ;;
1004 -localstatedir | --localstatedir | --localstatedi | --localstated \
1005 | --localstate | --localstat | --localsta | --localst | --locals)
1006 ac_prev=localstatedir ;;
1007 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1008 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1009 localstatedir=$ac_optarg ;;
1011 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1014 mandir=$ac_optarg ;;
1016 -nfp | --nfp | --nf)
1017 # Obsolete; use --without-fp.
1020 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1021 | --no-cr | --no-c | -n)
1024 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1025 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1028 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1029 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1030 | --oldin | --oldi | --old | --ol | --o)
1031 ac_prev=oldincludedir ;;
1032 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1033 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1034 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1035 oldincludedir=$ac_optarg ;;
1037 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1040 prefix=$ac_optarg ;;
1042 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1043 | --program-pre | --program-pr | --program-p)
1044 ac_prev=program_prefix ;;
1045 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1046 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1047 program_prefix=$ac_optarg ;;
1049 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1050 | --program-suf | --program-su | --program-s)
1051 ac_prev=program_suffix ;;
1052 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1053 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1054 program_suffix=$ac_optarg ;;
1056 -program-transform-name | --program-transform-name \
1057 | --program-transform-nam | --program-transform-na \
1058 | --program-transform-n | --program-transform- \
1059 | --program-transform | --program-transfor \
1060 | --program-transfo | --program-transf \
1061 | --program-trans | --program-tran \
1062 | --progr-tra | --program-tr | --program-t)
1063 ac_prev=program_transform_name ;;
1064 -program-transform-name=* | --program-transform-name=* \
1065 | --program-transform-nam=* | --program-transform-na=* \
1066 | --program-transform-n=* | --program-transform-=* \
1067 | --program-transform=* | --program-transfor=* \
1068 | --program-transfo=* | --program-transf=* \
1069 | --program-trans=* | --program-tran=* \
1070 | --progr-tra=* | --program-tr=* | --program-t=*)
1071 program_transform_name=$ac_optarg ;;
1073 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1076 pdfdir=$ac_optarg ;;
1078 -psdir | --psdir | --psdi | --psd | --ps)
1080 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1084 | -silent | --silent | --silen | --sile | --sil)
1087 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 sbindir=$ac_optarg ;;
1093 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1094 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1095 | --sharedst | --shareds | --shared | --share | --shar \
1097 ac_prev=sharedstatedir ;;
1098 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1099 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1100 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 sharedstatedir=$ac_optarg ;;
1104 -site | --site | --sit)
1106 -site=* | --site=* | --sit=*)
1109 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1112 srcdir=$ac_optarg ;;
1114 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1115 | --syscon | --sysco | --sysc | --sys | --sy)
1116 ac_prev=sysconfdir ;;
1117 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1118 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1119 sysconfdir=$ac_optarg ;;
1121 -target | --target | --targe | --targ | --tar | --ta | --t)
1122 ac_prev=target_alias ;;
1123 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1124 target_alias=$ac_optarg ;;
1126 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1129 -version | --version | --versio | --versi | --vers | -V)
1130 ac_init_version=: ;;
1133 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1134 # Reject names that are not valid shell variable names.
1135 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1136 { echo "$as_me: error: invalid package name: $ac_package" >&2
1137 { (exit 1); exit 1; }; }
1138 ac_package=`echo $ac_package| sed 's/-/_/g'`
1139 eval with_$ac_package=\$ac_optarg ;;
1141 -without-* | --without-*)
1142 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1145 { echo "$as_me: error: invalid package name: $ac_package" >&2
1146 { (exit 1); exit 1; }; }
1147 ac_package=`echo $ac_package | sed 's/-/_/g'`
1148 eval with_$ac_package=no ;;
1151 # Obsolete; use --with-x.
1154 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1155 | --x-incl | --x-inc | --x-in | --x-i)
1156 ac_prev=x_includes ;;
1157 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1158 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1159 x_includes=$ac_optarg ;;
1161 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1162 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1163 ac_prev=x_libraries ;;
1164 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1165 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1166 x_libraries=$ac_optarg ;;
1168 -*) { echo "$as_me: error: unrecognized option: $ac_option
1169 Try \`$0 --help' for more information." >&2
1170 { (exit 1); exit 1; }; }
1174 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1175 # Reject names that are not valid shell variable names.
1176 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1177 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1178 { (exit 1); exit 1; }; }
1179 eval $ac_envvar=\$ac_optarg
1180 export $ac_envvar ;;
1183 # FIXME: should be removed in autoconf 3.0.
1184 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1185 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1186 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1187 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1193 if test -n "$ac_prev"; then
1194 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1195 { echo "$as_me: error: missing argument to $ac_option" >&2
1196 { (exit 1); exit 1; }; }
1199 # Be sure to have absolute directory names.
1200 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1201 datadir sysconfdir sharedstatedir localstatedir includedir \
1202 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1203 libdir localedir mandir
1205 eval ac_val=\$$ac_var
1207 [\\/$]* | ?:[\\/]* ) continue;;
1208 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1210 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1211 { (exit 1); exit 1; }; }
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1219 target=$target_alias
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x; then
1223 if test "x$build_alias" = x; then
1224 cross_compiling=maybe
1225 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235 test "$silent" = yes && exec 6>/dev/null
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 { echo "$as_me: error: Working directory cannot be determined" >&2
1242 { (exit 1); exit 1; }; }
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 { echo "$as_me: error: pwd does not report name of working directory" >&2
1245 { (exit 1); exit 1; }; }
1248 # Find the source files, if location was not specified.
1249 if test -z "$srcdir"; then
1250 ac_srcdir_defaulted=yes
1251 # Try the directory containing this script, then the parent directory.
1252 ac_confdir=`$as_dirname -- "$0" ||
1253 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1254 X"$0" : 'X\(//\)[^/]' \| \
1255 X"$0" : 'X\(//\)$' \| \
1256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1258 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 if test ! -r "$srcdir/$ac_unique_file"; then
1280 ac_srcdir_defaulted=no
1282 if test ! -r "$srcdir/$ac_unique_file"; then
1283 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1284 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1285 { (exit 1); exit 1; }; }
1287 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1289 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1290 { (exit 1); exit 1; }; }
1292 # When building in place, set srcdir=.
1293 if test "$ac_abs_confdir" = "$ac_pwd"; then
1296 # Remove unnecessary trailing slashes from srcdir.
1297 # Double slashes in file names in object file debugging info
1298 # mess up M-x gdb in Emacs.
1300 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1302 for ac_var in $ac_precious_vars; do
1303 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1304 eval ac_env_${ac_var}_value=\$${ac_var}
1305 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1306 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1310 # Report the --help message.
1312 if test "$ac_init_help" = "long"; then
1313 # Omit some internal or obsolete options to make the list less imposing.
1314 # This message is too long to be a string in the A/UX 3.1 sh.
1316 \`configure' configures llvm 2.7svn to adapt to many kinds of systems.
1318 Usage: $0 [OPTION]... [VAR=VALUE]...
1320 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1321 VAR=VALUE. See below for descriptions of some of the useful variables.
1323 Defaults for the options are specified in brackets.
1326 -h, --help display this help and exit
1327 --help=short display options specific to this package
1328 --help=recursive display the short help of all the included packages
1329 -V, --version display version information and exit
1330 -q, --quiet, --silent do not print \`checking...' messages
1331 --cache-file=FILE cache test results in FILE [disabled]
1332 -C, --config-cache alias for \`--cache-file=config.cache'
1333 -n, --no-create do not create output files
1334 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1336 Installation directories:
1337 --prefix=PREFIX install architecture-independent files in PREFIX
1338 [$ac_default_prefix]
1339 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1342 By default, \`make install' will install all the files in
1343 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1344 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1345 for instance \`--prefix=\$HOME'.
1347 For better control, use the options below.
1349 Fine tuning of the installation directories:
1350 --bindir=DIR user executables [EPREFIX/bin]
1351 --sbindir=DIR system admin executables [EPREFIX/sbin]
1352 --libexecdir=DIR program executables [EPREFIX/libexec]
1353 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1354 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1355 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1356 --libdir=DIR object code libraries [EPREFIX/lib]
1357 --includedir=DIR C header files [PREFIX/include]
1358 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1359 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1360 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1361 --infodir=DIR info documentation [DATAROOTDIR/info]
1362 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1363 --mandir=DIR man documentation [DATAROOTDIR/man]
1364 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1365 --htmldir=DIR html documentation [DOCDIR]
1366 --dvidir=DIR dvi documentation [DOCDIR]
1367 --pdfdir=DIR pdf documentation [DOCDIR]
1368 --psdir=DIR ps documentation [DOCDIR]
1374 --build=BUILD configure for building on BUILD [guessed]
1375 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1376 --target=TARGET configure for building compilers for TARGET [HOST]
1380 if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive ) echo "Configuration of llvm 2.7svn:";;
1387 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1388 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1389 --enable-optimized Compile with optimizations enabled (default is NO)
1390 --enable-profiling Compile with profiling enabled (default is NO)
1391 --enable-assertions Compile with assertion checks enabled (default is
1393 --enable-expensive-checks
1394 Compile with expensive debug checks enabled (default
1396 --enable-debug-runtime Build runtime libs with debug symbols (default is
1398 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1399 optimization is on and YES if it's off)
1400 --enable-jit Enable Just In Time Compiling (default is YES)
1401 --enable-doxygen Build doxygen documentation (default is NO)
1402 --enable-threads Use threads if available (default is YES)
1403 --enable-pic Build LLVM with Position Independent Code (default
1405 --enable-targets Build specific host targets: all or
1406 target1,target2,... Valid targets are: host, x86,
1407 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1408 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1409 and cpp (default=all)
1410 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1412 --enable-bindings Build specific language bindings:
1413 all,auto,none,{binding-name} (default=auto)
1414 --enable-libffi Check for the presence of libffi (default is NO)
1415 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1417 --enable-llvmc-dynamic-plugins
1418 Enable dynamic LLVMC plugins (default is YES)
1419 --enable-ltdl-install install libltdl
1422 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1424 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1426 --with-llvmgcc Specify location of llvm-gcc driver (default
1428 --with-llvmgxx Specify location of llvm-g++ driver (default
1430 --with-clang Specify location of clang compiler (default is
1432 --with-built-clang Use the compiled Clang as the LLVM compiler
1434 --with-optimize-option Select the compiler options to use for optimized
1436 --with-extra-options Specify additional options to compile LLVM with
1437 --with-ocaml-libdir Specify install location for ocaml bindings (default
1439 --with-c-include-dirs Colon separated list of directories clang will
1441 --with-cxx-include-root Directory with the libstdc++ headers.
1442 --with-cxx-include-arch Architecture of the libstdc++ headers.
1443 --with-cxx-include-32bit-dir
1444 32 bit multilib dir.
1445 --with-cxx-include-64bit-dir
1446 64 bit multilib directory.
1447 --with-binutils-include Specify path to binutils/include/ containing
1448 plugin-api.h file for gold plugin.
1449 --with-tclinclude directory where tcl headers are
1450 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1451 clang, or none; default=check)
1452 --with-udis86=<path> Use udis86 external x86 disassembler library
1453 --with-oprofile=<prefix>
1454 Tell OProfile >= 0.9.4 how to symbolize JIT output
1456 Some influential environment variables:
1457 CC C compiler command
1458 CFLAGS C compiler flags
1459 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1460 nonstandard directory <lib dir>
1461 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1462 you have headers in a nonstandard directory <include dir>
1464 CXX C++ compiler command
1465 CXXFLAGS C++ compiler flags
1467 Use these variables to override the choices made by `configure' or to help
1468 it to find libraries and programs with nonstandard names/locations.
1470 Report bugs to <llvmbugs@cs.uiuc.edu>.
1475 if test "$ac_init_help" = "recursive"; then
1476 # If there are subdirs, report their specific --help.
1477 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1478 test -d "$ac_dir" || continue
1482 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1484 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1485 # A ".." for each directory in $ac_dir_suffix.
1486 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1487 case $ac_top_builddir_sub in
1488 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1492 ac_abs_top_builddir=$ac_pwd
1493 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1494 # for backward compatibility:
1495 ac_top_builddir=$ac_top_build_prefix
1498 .) # We are building in place.
1500 ac_top_srcdir=$ac_top_builddir_sub
1501 ac_abs_top_srcdir=$ac_pwd ;;
1502 [\\/]* | ?:[\\/]* ) # Absolute name.
1503 ac_srcdir=$srcdir$ac_dir_suffix;
1504 ac_top_srcdir=$srcdir
1505 ac_abs_top_srcdir=$srcdir ;;
1507 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1508 ac_top_srcdir=$ac_top_build_prefix$srcdir
1509 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1511 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1513 cd "$ac_dir" || { ac_status=$?; continue; }
1514 # Check for guested configure.
1515 if test -f "$ac_srcdir/configure.gnu"; then
1517 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1518 elif test -f "$ac_srcdir/configure"; then
1520 $SHELL "$ac_srcdir/configure" --help=recursive
1522 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1524 cd "$ac_pwd" || { ac_status=$?; break; }
1528 test -n "$ac_init_help" && exit $ac_status
1529 if $ac_init_version; then
1531 llvm configure 2.7svn
1532 generated by GNU Autoconf 2.60
1534 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1535 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1536 This configure script is free software; the Free Software Foundation
1537 gives unlimited permission to copy, distribute and modify it.
1539 Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign.
1543 cat >config.log <<_ACEOF
1544 This file contains any messages produced by compilers while
1545 running configure, to aid debugging if configure makes a mistake.
1547 It was created by llvm $as_me 2.7svn, which was
1548 generated by GNU Autoconf 2.60. Invocation command line was
1560 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1561 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1562 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1563 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1564 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1566 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1567 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1569 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1570 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1571 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1572 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1573 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1574 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1575 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1583 test -z "$as_dir" && as_dir=.
1584 echo "PATH: $as_dir"
1600 # Keep a trace of the command line.
1601 # Strip out --no-create and --no-recursion so they do not pile up.
1602 # Strip out --silent because we don't want to record it for future runs.
1603 # Also quote any args containing shell meta-characters.
1604 # Make two passes to allow for proper duplicate-argument suppression.
1608 ac_must_keep_next=false
1614 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1616 | -silent | --silent | --silen | --sile | --sil)
1619 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1622 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1624 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1625 if test $ac_must_keep_next = true; then
1626 ac_must_keep_next=false # Got value, back to normal.
1629 *=* | --config-cache | -C | -disable-* | --disable-* \
1630 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1631 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1632 | -with-* | --with-* | -without-* | --without-* | --x)
1633 case "$ac_configure_args0 " in
1634 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1637 -* ) ac_must_keep_next=true ;;
1640 ac_configure_args="$ac_configure_args '$ac_arg'"
1645 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1646 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1648 # When interrupted or exit'd, cleanup temporary files, and complete
1649 # config.log. We remove comments because anyway the quotes in there
1650 # would cause problems or look ugly.
1651 # WARNING: Use '\'' to represent an apostrophe within the trap.
1652 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1653 trap 'exit_status=$?
1654 # Save into config.log some information that might help in debugging.
1659 ## ---------------- ##
1660 ## Cache variables. ##
1661 ## ---------------- ##
1664 # The following way of writing the cache mishandles newlines in values,
1666 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1667 eval ac_val=\$$ac_var
1671 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1672 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1675 _ | IFS | as_nl) ;; #(
1676 *) $as_unset $ac_var ;;
1681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1682 *${as_nl}ac_space=\ *)
1684 "s/'\''/'\''\\\\'\'''\''/g;
1685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1696 ## ----------------- ##
1697 ## Output variables. ##
1698 ## ----------------- ##
1701 for ac_var in $ac_subst_vars
1703 eval ac_val=\$$ac_var
1705 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1707 echo "$ac_var='\''$ac_val'\''"
1711 if test -n "$ac_subst_files"; then
1713 ## ------------------- ##
1714 ## File substitutions. ##
1715 ## ------------------- ##
1718 for ac_var in $ac_subst_files
1720 eval ac_val=\$$ac_var
1722 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1724 echo "$ac_var='\''$ac_val'\''"
1729 if test -s confdefs.h; then
1739 test "$ac_signal" != 0 &&
1740 echo "$as_me: caught signal $ac_signal"
1741 echo "$as_me: exit $exit_status"
1743 rm -f core *.core core.conftest.* &&
1744 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1747 for ac_signal in 1 2 13 15; do
1748 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1752 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1753 rm -f -r conftest* confdefs.h
1755 # Predefined preprocessor variables.
1757 cat >>confdefs.h <<_ACEOF
1758 #define PACKAGE_NAME "$PACKAGE_NAME"
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_STRING "$PACKAGE_STRING"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1782 # Let the site file select an alternate cache file if it wants to.
1783 # Prefer explicitly selected file to automatically selected ones.
1784 if test -n "$CONFIG_SITE"; then
1785 set x "$CONFIG_SITE"
1786 elif test "x$prefix" != xNONE; then
1787 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1789 set x "$ac_default_prefix/share/config.site" \
1790 "$ac_default_prefix/etc/config.site"
1795 if test -r "$ac_site_file"; then
1796 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1797 echo "$as_me: loading site script $ac_site_file" >&6;}
1798 sed 's/^/| /' "$ac_site_file" >&5
1803 if test -r "$cache_file"; then
1804 # Some versions of bash will fail to source /dev/null (special
1805 # files actually), so we avoid doing that.
1806 if test -f "$cache_file"; then
1807 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1808 echo "$as_me: loading cache $cache_file" >&6;}
1810 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1811 *) . "./$cache_file";;
1815 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1816 echo "$as_me: creating cache $cache_file" >&6;}
1820 # Check that the precious variables saved in the cache have kept the same
1822 ac_cache_corrupted=false
1823 for ac_var in $ac_precious_vars; do
1824 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1825 eval ac_new_set=\$ac_env_${ac_var}_set
1826 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1827 eval ac_new_val=\$ac_env_${ac_var}_value
1828 case $ac_old_set,$ac_new_set in
1830 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1831 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1832 ac_cache_corrupted=: ;;
1834 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1835 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1836 ac_cache_corrupted=: ;;
1839 if test "x$ac_old_val" != "x$ac_new_val"; then
1840 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1841 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1842 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1843 echo "$as_me: former value: $ac_old_val" >&2;}
1844 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1845 echo "$as_me: current value: $ac_new_val" >&2;}
1846 ac_cache_corrupted=:
1849 # Pass precious variables to config.status.
1850 if test "$ac_new_set" = set; then
1852 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1853 *) ac_arg=$ac_var=$ac_new_val ;;
1855 case " $ac_configure_args " in
1856 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1857 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1861 if $ac_cache_corrupted; then
1862 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1863 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1864 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1865 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1866 { (exit 1); exit 1; }; }
1894 ac_cpp='$CPP $CPPFLAGS'
1895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1901 LLVM_COPYRIGHT="Copyright (c) 2003-2009 University of Illinois at Urbana-Champaign."
1910 for ac_dir in autoconf "$srcdir"/autoconf; do
1911 if test -f "$ac_dir/install-sh"; then
1913 ac_install_sh="$ac_aux_dir/install-sh -c"
1915 elif test -f "$ac_dir/install.sh"; then
1917 ac_install_sh="$ac_aux_dir/install.sh -c"
1919 elif test -f "$ac_dir/shtool"; then
1921 ac_install_sh="$ac_aux_dir/shtool install -c"
1925 if test -z "$ac_aux_dir"; then
1926 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1927 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1928 { (exit 1); exit 1; }; }
1931 # These three variables are undocumented and unsupported,
1932 # and are intended to be withdrawn in a future Autoconf release.
1933 # They can cause serious problems if a builder's source tree is in a directory
1934 # whose full name contains unusual characters.
1935 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1936 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1937 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1941 if test ${srcdir} != "." ; then
1942 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1943 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1944 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1945 { (exit 1); exit 1; }; }
1949 for i in `ls ${srcdir}/projects`
1951 if test -d ${srcdir}/projects/${i} ; then
1954 sample) subdirs="$subdirs projects/sample"
1956 privbracket) subdirs="$subdirs projects/privbracket"
1958 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1960 # llvm-test is the old name of the test-suite, kept here for backwards
1962 llvm-test) subdirs="$subdirs projects/llvm-test"
1964 test-suite) subdirs="$subdirs projects/test-suite"
1966 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1968 llvm-gcc) subdirs="$subdirs projects/llvm-gcc"
1970 llvm-java) subdirs="$subdirs projects/llvm-java"
1972 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1974 llvm-poolalloc) subdirs="$subdirs projects/llvm-poolalloc"
1976 poolalloc) subdirs="$subdirs projects/poolalloc"
1978 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
1981 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
1982 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
1989 # Make sure we can run config.sub.
1990 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1991 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1992 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1993 { (exit 1); exit 1; }; }
1995 { echo "$as_me:$LINENO: checking build system type" >&5
1996 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1997 if test "${ac_cv_build+set}" = set; then
1998 echo $ECHO_N "(cached) $ECHO_C" >&6
2000 ac_build_alias=$build_alias
2001 test "x$ac_build_alias" = x &&
2002 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2003 test "x$ac_build_alias" = x &&
2004 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2005 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2006 { (exit 1); exit 1; }; }
2007 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2008 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2009 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2010 { (exit 1); exit 1; }; }
2013 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2014 echo "${ECHO_T}$ac_cv_build" >&6; }
2015 case $ac_cv_build in
2017 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2018 echo "$as_me: error: invalid value of canonical build" >&2;}
2019 { (exit 1); exit 1; }; };;
2022 ac_save_IFS=$IFS; IFS='-'
2028 # Remember, the first character of IFS is used to create $*,
2029 # except with old shells:
2032 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2035 { echo "$as_me:$LINENO: checking host system type" >&5
2036 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2037 if test "${ac_cv_host+set}" = set; then
2038 echo $ECHO_N "(cached) $ECHO_C" >&6
2040 if test "x$host_alias" = x; then
2041 ac_cv_host=$ac_cv_build
2043 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2044 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2045 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2046 { (exit 1); exit 1; }; }
2050 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2051 echo "${ECHO_T}$ac_cv_host" >&6; }
2054 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2055 echo "$as_me: error: invalid value of canonical host" >&2;}
2056 { (exit 1); exit 1; }; };;
2059 ac_save_IFS=$IFS; IFS='-'
2065 # Remember, the first character of IFS is used to create $*,
2066 # except with old shells:
2069 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2072 { echo "$as_me:$LINENO: checking target system type" >&5
2073 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2074 if test "${ac_cv_target+set}" = set; then
2075 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 if test "x$target_alias" = x; then
2078 ac_cv_target=$ac_cv_host
2080 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2081 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2082 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2083 { (exit 1); exit 1; }; }
2087 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2088 echo "${ECHO_T}$ac_cv_target" >&6; }
2089 case $ac_cv_target in
2091 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2092 echo "$as_me: error: invalid value of canonical target" >&2;}
2093 { (exit 1); exit 1; }; };;
2095 target=$ac_cv_target
2096 ac_save_IFS=$IFS; IFS='-'
2102 # Remember, the first character of IFS is used to create $*,
2103 # except with old shells:
2106 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2109 # The aliases save the names the user supplied, while $host etc.
2110 # will get canonicalized.
2111 test -n "$target_alias" &&
2112 test "$program_prefix$program_suffix$program_transform_name" = \
2114 program_prefix=${target_alias}-
2116 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2117 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2118 if test "${llvm_cv_os_type+set}" = set; then
2119 echo $ECHO_N "(cached) $ECHO_C" >&6
2123 llvm_cv_link_all_option="-Wl,--whole-archive"
2124 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2125 llvm_cv_os_type="AIX"
2126 llvm_cv_platform_type="Unix" ;;
2128 llvm_cv_link_all_option="-Wl,--whole-archive"
2129 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2130 llvm_cv_os_type="IRIX"
2131 llvm_cv_platform_type="Unix" ;;
2133 llvm_cv_link_all_option="-Wl,--whole-archive"
2134 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2135 llvm_cv_os_type="Cygwin"
2136 llvm_cv_platform_type="Unix" ;;
2138 llvm_cv_link_all_option="-Wl,-all_load"
2139 llvm_cv_no_link_all_option="-Wl,-noall_load"
2140 llvm_cv_os_type="Darwin"
2141 llvm_cv_platform_type="Unix" ;;
2143 llvm_cv_link_all_option="-Wl,--whole-archive"
2144 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2145 llvm_cv_os_type="FreeBSD"
2146 llvm_cv_platform_type="Unix" ;;
2148 llvm_cv_link_all_option="-Wl,--whole-archive"
2149 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2150 llvm_cv_os_type="OpenBSD"
2151 llvm_cv_platform_type="Unix" ;;
2153 llvm_cv_link_all_option="-Wl,--whole-archive"
2154 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2155 llvm_cv_os_type="NetBSD"
2156 llvm_cv_platform_type="Unix" ;;
2158 llvm_cv_link_all_option="-Wl,--whole-archive"
2159 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2160 llvm_cv_os_type="DragonFly"
2161 llvm_cv_platform_type="Unix" ;;
2163 llvm_cv_link_all_option="-Wl,--whole-archive"
2164 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2165 llvm_cv_os_type="HP-UX"
2166 llvm_cv_platform_type="Unix" ;;
2168 llvm_cv_link_all_option="-Wl,--whole-archive"
2169 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2170 llvm_cv_os_type="Interix"
2171 llvm_cv_platform_type="Unix" ;;
2173 llvm_cv_link_all_option="-Wl,--whole-archive"
2174 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2175 llvm_cv_os_type="Linux"
2176 llvm_cv_platform_type="Unix" ;;
2178 llvm_cv_link_all_option="-Wl,-z,allextract"
2179 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2180 llvm_cv_os_type="SunOS"
2181 llvm_cv_platform_type="Unix" ;;
2183 llvm_cv_link_all_option="-Wl,-z,allextract"
2184 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2185 llvm_cv_os_type="AuroraUX"
2186 llvm_cv_platform_type="Unix" ;;
2188 llvm_cv_link_all_option="-Wl,--whole-archive"
2189 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2190 llvm_cv_os_type="Win32"
2191 llvm_cv_platform_type="Win32" ;;
2193 llvm_cv_link_all_option="-Wl,--whole-archive"
2194 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2195 llvm_cv_os_type="MingW"
2196 llvm_cv_platform_type="Win32" ;;
2198 llvm_cv_link_all_option="-Wl,--whole-archive"
2199 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200 llvm_cv_os_type="Haiku"
2201 llvm_cv_platform_type="Unix" ;;
2203 llvm_cv_link_all_option="-Wl,--whole-archive"
2204 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205 llvm_cv_os_type="Freestanding"
2206 llvm_cv_platform_type="Unix" ;;
2208 llvm_cv_link_all_option="-Wl,--whole-archive"
2209 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2210 llvm_cv_os_type="Freestanding"
2211 llvm_cv_platform_type="Unix" ;;
2213 llvm_cv_link_all_option=""
2214 llvm_cv_no_link_all_option=""
2215 llvm_cv_os_type="Unknown"
2216 llvm_cv_platform_type="Unknown" ;;
2219 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2220 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2222 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2223 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2224 if test "${llvm_cv_target_os_type+set}" = set; then
2225 echo $ECHO_N "(cached) $ECHO_C" >&6
2229 llvm_cv_target_os_type="AIX" ;;
2231 llvm_cv_target_os_type="IRIX" ;;
2233 llvm_cv_target_os_type="Cygwin" ;;
2235 llvm_cv_target_os_type="Darwin" ;;
2237 llvm_cv_target_os_type="FreeBSD" ;;
2239 llvm_cv_target_os_type="OpenBSD" ;;
2241 llvm_cv_target_os_type="NetBSD" ;;
2243 llvm_cv_target_os_type="DragonFly" ;;
2245 llvm_cv_target_os_type="HP-UX" ;;
2247 llvm_cv_target_os_type="Interix" ;;
2249 llvm_cv_target_os_type="Linux" ;;
2251 llvm_cv_target_os_type="SunOS" ;;
2253 llvm_cv_target_os_type="AuroraUX" ;;
2255 llvm_cv_target_os_type="Win32" ;;
2257 llvm_cv_target_os_type="MingW" ;;
2259 llvm_cv_target_os_type="Haiku" ;;
2261 llvm_cv_target_os_type="Freestanding" ;;
2263 llvm_cv_target_os_type="Unknown" ;;
2266 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2267 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2269 if test "$llvm_cv_os_type" = "Unknown" ; then
2270 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2271 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2272 { (exit 1); exit 1; }; }
2277 HOST_OS=$llvm_cv_os_type
2279 TARGET_OS=$llvm_cv_target_os_type
2282 LINKALL=$llvm_cv_link_all_option
2284 NOLINKALL=$llvm_cv_no_link_all_option
2287 case $llvm_cv_platform_type in
2290 cat >>confdefs.h <<\_ACEOF
2291 #define LLVM_ON_UNIX 1
2301 cat >>confdefs.h <<\_ACEOF
2302 #define LLVM_ON_WIN32 1
2312 { echo "$as_me:$LINENO: checking target architecture" >&5
2313 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2314 if test "${llvm_cv_target_arch+set}" = set; then
2315 echo $ECHO_N "(cached) $ECHO_C" >&6
2318 i?86-*) llvm_cv_target_arch="x86" ;;
2319 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2320 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2321 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2322 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2323 arm*-*) llvm_cv_target_arch="ARM" ;;
2324 mips-*) llvm_cv_target_arch="Mips" ;;
2325 pic16-*) llvm_cv_target_arch="PIC16" ;;
2326 xcore-*) llvm_cv_target_arch="XCore" ;;
2327 msp430-*) llvm_cv_target_arch="MSP430" ;;
2328 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2329 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2330 *) llvm_cv_target_arch="Unknown" ;;
2333 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2334 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2336 if test "$llvm_cv_target_arch" = "Unknown" ; then
2337 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2338 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2341 # Determine the LLVM native architecture for the target
2342 case "$llvm_cv_target_arch" in
2343 x86) LLVM_NATIVE_ARCH="X86" ;;
2344 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2345 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2348 ARCH=$llvm_cv_target_arch
2352 ac_cpp='$CPP $CPPFLAGS'
2353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2356 if test -n "$ac_tool_prefix"; then
2357 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2358 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2359 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2360 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2361 if test "${ac_cv_prog_CC+set}" = set; then
2362 echo $ECHO_N "(cached) $ECHO_C" >&6
2364 if test -n "$CC"; then
2365 ac_cv_prog_CC="$CC" # Let the user override the test.
2367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2371 test -z "$as_dir" && as_dir=.
2372 for ac_exec_ext in '' $ac_executable_extensions; do
2373 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2374 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2385 if test -n "$CC"; then
2386 { echo "$as_me:$LINENO: result: $CC" >&5
2387 echo "${ECHO_T}$CC" >&6; }
2389 { echo "$as_me:$LINENO: result: no" >&5
2390 echo "${ECHO_T}no" >&6; }
2395 if test -z "$ac_cv_prog_CC"; then
2397 # Extract the first word of "gcc", so it can be a program name with args.
2398 set dummy gcc; ac_word=$2
2399 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2400 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2401 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2402 echo $ECHO_N "(cached) $ECHO_C" >&6
2404 if test -n "$ac_ct_CC"; then
2405 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2411 test -z "$as_dir" && as_dir=.
2412 for ac_exec_ext in '' $ac_executable_extensions; do
2413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2414 ac_cv_prog_ac_ct_CC="gcc"
2415 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2424 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2425 if test -n "$ac_ct_CC"; then
2426 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2427 echo "${ECHO_T}$ac_ct_CC" >&6; }
2429 { echo "$as_me:$LINENO: result: no" >&5
2430 echo "${ECHO_T}no" >&6; }
2433 if test "x$ac_ct_CC" = x; then
2436 case $cross_compiling:$ac_tool_warned in
2438 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2439 whose name does not start with the host triplet. If you think this
2440 configuration is useful to you, please write to autoconf@gnu.org." >&5
2441 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2442 whose name does not start with the host triplet. If you think this
2443 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2444 ac_tool_warned=yes ;;
2452 if test -z "$CC"; then
2453 if test -n "$ac_tool_prefix"; then
2454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2455 set dummy ${ac_tool_prefix}cc; ac_word=$2
2456 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2458 if test "${ac_cv_prog_CC+set}" = set; then
2459 echo $ECHO_N "(cached) $ECHO_C" >&6
2461 if test -n "$CC"; then
2462 ac_cv_prog_CC="$CC" # Let the user override the test.
2464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2468 test -z "$as_dir" && as_dir=.
2469 for ac_exec_ext in '' $ac_executable_extensions; do
2470 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2471 ac_cv_prog_CC="${ac_tool_prefix}cc"
2472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2482 if test -n "$CC"; then
2483 { echo "$as_me:$LINENO: result: $CC" >&5
2484 echo "${ECHO_T}$CC" >&6; }
2486 { echo "$as_me:$LINENO: result: no" >&5
2487 echo "${ECHO_T}no" >&6; }
2493 if test -z "$CC"; then
2494 # Extract the first word of "cc", so it can be a program name with args.
2495 set dummy cc; ac_word=$2
2496 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2497 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2498 if test "${ac_cv_prog_CC+set}" = set; then
2499 echo $ECHO_N "(cached) $ECHO_C" >&6
2501 if test -n "$CC"; then
2502 ac_cv_prog_CC="$CC" # Let the user override the test.
2505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2509 test -z "$as_dir" && as_dir=.
2510 for ac_exec_ext in '' $ac_executable_extensions; do
2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2512 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2513 ac_prog_rejected=yes
2517 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 if test $ac_prog_rejected = yes; then
2525 # We found a bogon in the path, so make sure we never use it.
2526 set dummy $ac_cv_prog_CC
2528 if test $# != 0; then
2529 # We chose a different compiler from the bogus one.
2530 # However, it has the same basename, so the bogon will be chosen
2531 # first if we set CC to just the basename; use the full file name.
2533 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2539 if test -n "$CC"; then
2540 { echo "$as_me:$LINENO: result: $CC" >&5
2541 echo "${ECHO_T}$CC" >&6; }
2543 { echo "$as_me:$LINENO: result: no" >&5
2544 echo "${ECHO_T}no" >&6; }
2549 if test -z "$CC"; then
2550 if test -n "$ac_tool_prefix"; then
2551 for ac_prog in cl.exe
2553 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2555 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2557 if test "${ac_cv_prog_CC+set}" = set; then
2558 echo $ECHO_N "(cached) $ECHO_C" >&6
2560 if test -n "$CC"; then
2561 ac_cv_prog_CC="$CC" # Let the user override the test.
2563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2567 test -z "$as_dir" && as_dir=.
2568 for ac_exec_ext in '' $ac_executable_extensions; do
2569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2570 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2581 if test -n "$CC"; then
2582 { echo "$as_me:$LINENO: result: $CC" >&5
2583 echo "${ECHO_T}$CC" >&6; }
2585 { echo "$as_me:$LINENO: result: no" >&5
2586 echo "${ECHO_T}no" >&6; }
2590 test -n "$CC" && break
2593 if test -z "$CC"; then
2595 for ac_prog in cl.exe
2597 # Extract the first word of "$ac_prog", so it can be a program name with args.
2598 set dummy $ac_prog; ac_word=$2
2599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2602 echo $ECHO_N "(cached) $ECHO_C" >&6
2604 if test -n "$ac_ct_CC"; then
2605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 test -z "$as_dir" && as_dir=.
2612 for ac_exec_ext in '' $ac_executable_extensions; do
2613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2614 ac_cv_prog_ac_ct_CC="$ac_prog"
2615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2625 if test -n "$ac_ct_CC"; then
2626 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2627 echo "${ECHO_T}$ac_ct_CC" >&6; }
2629 { echo "$as_me:$LINENO: result: no" >&5
2630 echo "${ECHO_T}no" >&6; }
2634 test -n "$ac_ct_CC" && break
2637 if test "x$ac_ct_CC" = x; then
2640 case $cross_compiling:$ac_tool_warned in
2642 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2643 whose name does not start with the host triplet. If you think this
2644 configuration is useful to you, please write to autoconf@gnu.org." >&5
2645 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2646 whose name does not start with the host triplet. If you think this
2647 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2648 ac_tool_warned=yes ;;
2657 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2658 See \`config.log' for more details." >&5
2659 echo "$as_me: error: no acceptable C compiler found in \$PATH
2660 See \`config.log' for more details." >&2;}
2661 { (exit 1); exit 1; }; }
2663 # Provide some information about the compiler.
2664 echo "$as_me:$LINENO: checking for C compiler version" >&5
2665 ac_compiler=`set X $ac_compile; echo $2`
2666 { (ac_try="$ac_compiler --version >&5"
2668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2669 *) ac_try_echo=$ac_try;;
2671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2672 (eval "$ac_compiler --version >&5") 2>&5
2674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2675 (exit $ac_status); }
2676 { (ac_try="$ac_compiler -v >&5"
2678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2679 *) ac_try_echo=$ac_try;;
2681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2682 (eval "$ac_compiler -v >&5") 2>&5
2684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685 (exit $ac_status); }
2686 { (ac_try="$ac_compiler -V >&5"
2688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2689 *) ac_try_echo=$ac_try;;
2691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2692 (eval "$ac_compiler -V >&5") 2>&5
2694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2695 (exit $ac_status); }
2697 cat >conftest.$ac_ext <<_ACEOF
2700 cat confdefs.h >>conftest.$ac_ext
2701 cat >>conftest.$ac_ext <<_ACEOF
2702 /* end confdefs.h. */
2712 ac_clean_files_save=$ac_clean_files
2713 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2714 # Try to create an executable without -o first, disregard a.out.
2715 # It will help us diagnose broken compilers, and finding out an intuition
2717 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2718 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2719 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2721 # List of possible output files, starting from the most likely.
2722 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2723 # only as a last resort. b.out is created by i960 compilers.
2724 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2726 # The IRIX 6 linker writes into existing files which may not be
2727 # executable, retaining their permissions. Remove them first so a
2728 # subsequent execution test works.
2730 for ac_file in $ac_files
2733 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2734 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2739 if { (ac_try="$ac_link_default"
2741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2742 *) ac_try_echo=$ac_try;;
2744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2745 (eval "$ac_link_default") 2>&5
2747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2748 (exit $ac_status); }; then
2749 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2750 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2751 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2752 # so that the user can short-circuit this test for compilers unknown to
2754 for ac_file in $ac_files
2756 test -f "$ac_file" || continue
2758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2761 # We found the default executable, but exeext='' is most
2765 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2767 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2769 # We set ac_cv_exeext here because the later test for it is not
2770 # safe: cross compilers may not add the suffix if given an `-o'
2771 # argument, so we may need to know it at that point already.
2772 # Even if this section looks crufty: it has the advantage of
2779 test "$ac_cv_exeext" = no && ac_cv_exeext=
2782 echo "$as_me: failed program was:" >&5
2783 sed 's/^/| /' conftest.$ac_ext >&5
2785 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2786 See \`config.log' for more details." >&5
2787 echo "$as_me: error: C compiler cannot create executables
2788 See \`config.log' for more details." >&2;}
2789 { (exit 77); exit 77; }; }
2792 ac_exeext=$ac_cv_exeext
2793 { echo "$as_me:$LINENO: result: $ac_file" >&5
2794 echo "${ECHO_T}$ac_file" >&6; }
2796 # Check that the compiler produces executables we can run. If not, either
2797 # the compiler is broken, or we cross compile.
2798 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2799 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2800 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2801 # If not cross compiling, check that we can run a simple program.
2802 if test "$cross_compiling" != yes; then
2803 if { ac_try='./$ac_file'
2804 { (case "(($ac_try" in
2805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2806 *) ac_try_echo=$ac_try;;
2808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2809 (eval "$ac_try") 2>&5
2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2812 (exit $ac_status); }; }; then
2815 if test "$cross_compiling" = maybe; then
2818 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2819 If you meant to cross compile, use \`--host'.
2820 See \`config.log' for more details." >&5
2821 echo "$as_me: error: cannot run C compiled programs.
2822 If you meant to cross compile, use \`--host'.
2823 See \`config.log' for more details." >&2;}
2824 { (exit 1); exit 1; }; }
2828 { echo "$as_me:$LINENO: result: yes" >&5
2829 echo "${ECHO_T}yes" >&6; }
2831 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2832 ac_clean_files=$ac_clean_files_save
2833 # Check that the compiler produces executables we can run. If not, either
2834 # the compiler is broken, or we cross compile.
2835 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2836 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2837 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2838 echo "${ECHO_T}$cross_compiling" >&6; }
2840 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2841 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2842 if { (ac_try="$ac_link"
2844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2845 *) ac_try_echo=$ac_try;;
2847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2848 (eval "$ac_link") 2>&5
2850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2851 (exit $ac_status); }; then
2852 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2853 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2854 # work properly (i.e., refer to `conftest.exe'), while it won't with
2856 for ac_file in conftest.exe conftest conftest.*; do
2857 test -f "$ac_file" || continue
2859 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2860 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2866 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2867 See \`config.log' for more details." >&5
2868 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2869 See \`config.log' for more details." >&2;}
2870 { (exit 1); exit 1; }; }
2873 rm -f conftest$ac_cv_exeext
2874 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2875 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2877 rm -f conftest.$ac_ext
2878 EXEEXT=$ac_cv_exeext
2880 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2881 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2882 if test "${ac_cv_objext+set}" = set; then
2883 echo $ECHO_N "(cached) $ECHO_C" >&6
2885 cat >conftest.$ac_ext <<_ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2900 rm -f conftest.o conftest.obj
2901 if { (ac_try="$ac_compile"
2903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2904 *) ac_try_echo=$ac_try;;
2906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2907 (eval "$ac_compile") 2>&5
2909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2910 (exit $ac_status); }; then
2911 for ac_file in conftest.o conftest.obj conftest.*; do
2912 test -f "$ac_file" || continue;
2914 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2915 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2920 echo "$as_me: failed program was:" >&5
2921 sed 's/^/| /' conftest.$ac_ext >&5
2923 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2924 See \`config.log' for more details." >&5
2925 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2926 See \`config.log' for more details." >&2;}
2927 { (exit 1); exit 1; }; }
2930 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2932 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2933 echo "${ECHO_T}$ac_cv_objext" >&6; }
2934 OBJEXT=$ac_cv_objext
2936 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2937 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2938 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2939 echo $ECHO_N "(cached) $ECHO_C" >&6
2941 cat >conftest.$ac_ext <<_ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2959 rm -f conftest.$ac_objext
2960 if { (ac_try="$ac_compile"
2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2963 *) ac_try_echo=$ac_try;;
2965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2966 (eval "$ac_compile") 2>conftest.er1
2968 grep -v '^ *+' conftest.er1 >conftest.err
2970 cat conftest.err >&5
2971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972 (exit $ac_status); } &&
2973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2974 { (case "(($ac_try" in
2975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2976 *) ac_try_echo=$ac_try;;
2978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2979 (eval "$ac_try") 2>&5
2981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2982 (exit $ac_status); }; } &&
2983 { ac_try='test -s conftest.$ac_objext'
2984 { (case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_try") 2>&5
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; }; then
2995 echo "$as_me: failed program was:" >&5
2996 sed 's/^/| /' conftest.$ac_ext >&5
3001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3002 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3005 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3006 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3007 GCC=`test $ac_compiler_gnu = yes && echo yes`
3008 ac_test_CFLAGS=${CFLAGS+set}
3009 ac_save_CFLAGS=$CFLAGS
3010 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3011 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3012 if test "${ac_cv_prog_cc_g+set}" = set; then
3013 echo $ECHO_N "(cached) $ECHO_C" >&6
3015 ac_save_c_werror_flag=$ac_c_werror_flag
3016 ac_c_werror_flag=yes
3019 cat >conftest.$ac_ext <<_ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h. */
3034 rm -f conftest.$ac_objext
3035 if { (ac_try="$ac_compile"
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3043 grep -v '^ *+' conftest.er1 >conftest.err
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } &&
3048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3049 { (case "(($ac_try" in
3050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3051 *) ac_try_echo=$ac_try;;
3053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3054 (eval "$ac_try") 2>&5
3056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3057 (exit $ac_status); }; } &&
3058 { ac_try='test -s conftest.$ac_objext'
3059 { (case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_try") 2>&5
3066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3067 (exit $ac_status); }; }; then
3070 echo "$as_me: failed program was:" >&5
3071 sed 's/^/| /' conftest.$ac_ext >&5
3074 cat >conftest.$ac_ext <<_ACEOF
3077 cat confdefs.h >>conftest.$ac_ext
3078 cat >>conftest.$ac_ext <<_ACEOF
3079 /* end confdefs.h. */
3089 rm -f conftest.$ac_objext
3090 if { (ac_try="$ac_compile"
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_compile") 2>conftest.er1
3098 grep -v '^ *+' conftest.er1 >conftest.err
3100 cat conftest.err >&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); } &&
3103 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3104 { (case "(($ac_try" in
3105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3106 *) ac_try_echo=$ac_try;;
3108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3109 (eval "$ac_try") 2>&5
3111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3112 (exit $ac_status); }; } &&
3113 { ac_try='test -s conftest.$ac_objext'
3114 { (case "(($ac_try" in
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_try") 2>&5
3121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3122 (exit $ac_status); }; }; then
3125 echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 ac_c_werror_flag=$ac_save_c_werror_flag
3130 cat >conftest.$ac_ext <<_ACEOF
3133 cat confdefs.h >>conftest.$ac_ext
3134 cat >>conftest.$ac_ext <<_ACEOF
3135 /* end confdefs.h. */
3145 rm -f conftest.$ac_objext
3146 if { (ac_try="$ac_compile"
3148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149 *) ac_try_echo=$ac_try;;
3151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3152 (eval "$ac_compile") 2>conftest.er1
3154 grep -v '^ *+' conftest.er1 >conftest.err
3156 cat conftest.err >&5
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); } &&
3159 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; } &&
3169 { ac_try='test -s conftest.$ac_objext'
3170 { (case "(($ac_try" in
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_try") 2>&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); }; }; then
3181 echo "$as_me: failed program was:" >&5
3182 sed 's/^/| /' conftest.$ac_ext >&5
3187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194 ac_c_werror_flag=$ac_save_c_werror_flag
3196 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3197 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3198 if test "$ac_test_CFLAGS" = set; then
3199 CFLAGS=$ac_save_CFLAGS
3200 elif test $ac_cv_prog_cc_g = yes; then
3201 if test "$GCC" = yes; then
3207 if test "$GCC" = yes; then
3213 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3214 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3215 if test "${ac_cv_prog_cc_c89+set}" = set; then
3216 echo $ECHO_N "(cached) $ECHO_C" >&6
3218 ac_cv_prog_cc_c89=no
3220 cat >conftest.$ac_ext <<_ACEOF
3223 cat confdefs.h >>conftest.$ac_ext
3224 cat >>conftest.$ac_ext <<_ACEOF
3225 /* end confdefs.h. */
3228 #include <sys/types.h>
3229 #include <sys/stat.h>
3230 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3231 struct buf { int x; };
3232 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3233 static char *e (p, i)
3239 static char *f (char * (*g) (char **, int), char **p, ...)
3244 s = g (p, va_arg (v,int));
3249 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3250 function prototypes and stuff, but not '\xHH' hex character constants.
3251 These don't provoke an error unfortunately, instead are silently treated
3252 as 'x'. The following induces an error, until -std is added to get
3253 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3254 array size at least. It's necessary to write '\x00'==0 to get something
3255 that's true only with -std. */
3256 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3258 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3259 inside strings and character constants. */
3261 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3263 int test (int i, double x);
3264 struct s1 {int (*f) (int a);};
3265 struct s2 {int (*f) (double a);};
3266 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3272 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3277 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3278 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3280 CC="$ac_save_CC $ac_arg"
3281 rm -f conftest.$ac_objext
3282 if { (ac_try="$ac_compile"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_compile") 2>conftest.er1
3290 grep -v '^ *+' conftest.er1 >conftest.err
3292 cat conftest.err >&5
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); } &&
3295 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3296 { (case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3301 (eval "$ac_try") 2>&5
3303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3304 (exit $ac_status); }; } &&
3305 { ac_try='test -s conftest.$ac_objext'
3306 { (case "(($ac_try" in
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_try") 2>&5
3313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); }; }; then
3315 ac_cv_prog_cc_c89=$ac_arg
3317 echo "$as_me: failed program was:" >&5
3318 sed 's/^/| /' conftest.$ac_ext >&5
3323 rm -f core conftest.err conftest.$ac_objext
3324 test "x$ac_cv_prog_cc_c89" != "xno" && break
3326 rm -f conftest.$ac_ext
3331 case "x$ac_cv_prog_cc_c89" in
3333 { echo "$as_me:$LINENO: result: none needed" >&5
3334 echo "${ECHO_T}none needed" >&6; } ;;
3336 { echo "$as_me:$LINENO: result: unsupported" >&5
3337 echo "${ECHO_T}unsupported" >&6; } ;;
3339 CC="$CC $ac_cv_prog_cc_c89"
3340 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3341 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3346 ac_cpp='$CPP $CPPFLAGS'
3347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3353 ac_cpp='$CPP $CPPFLAGS'
3354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3358 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3359 # On Suns, sometimes $CPP names a directory.
3360 if test -n "$CPP" && test -d "$CPP"; then
3363 if test -z "$CPP"; then
3364 if test "${ac_cv_prog_CPP+set}" = set; then
3365 echo $ECHO_N "(cached) $ECHO_C" >&6
3367 # Double quotes because CPP needs to be expanded
3368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3371 for ac_c_preproc_warn_flag in '' yes
3373 # Use a header file that comes with gcc, so configuring glibc
3374 # with a fresh cross-compiler works.
3375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3376 # <limits.h> exists even on freestanding compilers.
3377 # On the NeXT, cc -E runs the code through the compiler's parser,
3378 # not just through cpp. "Syntax error" is here to catch this case.
3379 cat >conftest.$ac_ext <<_ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3384 /* end confdefs.h. */
3386 # include <limits.h>
3388 # include <assert.h>
3392 if { (ac_try="$ac_cpp conftest.$ac_ext"
3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3395 *) ac_try_echo=$ac_try;;
3397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3400 grep -v '^ *+' conftest.er1 >conftest.err
3402 cat conftest.err >&5
3403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3404 (exit $ac_status); } >/dev/null; then
3405 if test -s conftest.err; then
3406 ac_cpp_err=$ac_c_preproc_warn_flag
3407 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3414 if test -z "$ac_cpp_err"; then
3417 echo "$as_me: failed program was:" >&5
3418 sed 's/^/| /' conftest.$ac_ext >&5
3420 # Broken: fails on valid input.
3424 rm -f conftest.err conftest.$ac_ext
3426 # OK, works on sane cases. Now check whether nonexistent headers
3427 # can be detected and how.
3428 cat >conftest.$ac_ext <<_ACEOF
3431 cat confdefs.h >>conftest.$ac_ext
3432 cat >>conftest.$ac_ext <<_ACEOF
3433 /* end confdefs.h. */
3434 #include <ac_nonexistent.h>
3436 if { (ac_try="$ac_cpp conftest.$ac_ext"
3438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3439 *) ac_try_echo=$ac_try;;
3441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3444 grep -v '^ *+' conftest.er1 >conftest.err
3446 cat conftest.err >&5
3447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3448 (exit $ac_status); } >/dev/null; then
3449 if test -s conftest.err; then
3450 ac_cpp_err=$ac_c_preproc_warn_flag
3451 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3458 if test -z "$ac_cpp_err"; then
3459 # Broken: success on invalid input.
3462 echo "$as_me: failed program was:" >&5
3463 sed 's/^/| /' conftest.$ac_ext >&5
3465 # Passes both tests.
3470 rm -f conftest.err conftest.$ac_ext
3473 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3474 rm -f conftest.err conftest.$ac_ext
3475 if $ac_preproc_ok; then
3487 { echo "$as_me:$LINENO: result: $CPP" >&5
3488 echo "${ECHO_T}$CPP" >&6; }
3490 for ac_c_preproc_warn_flag in '' yes
3492 # Use a header file that comes with gcc, so configuring glibc
3493 # with a fresh cross-compiler works.
3494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3495 # <limits.h> exists even on freestanding compilers.
3496 # On the NeXT, cc -E runs the code through the compiler's parser,
3497 # not just through cpp. "Syntax error" is here to catch this case.
3498 cat >conftest.$ac_ext <<_ACEOF
3501 cat confdefs.h >>conftest.$ac_ext
3502 cat >>conftest.$ac_ext <<_ACEOF
3503 /* end confdefs.h. */
3505 # include <limits.h>
3507 # include <assert.h>
3511 if { (ac_try="$ac_cpp conftest.$ac_ext"
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3519 grep -v '^ *+' conftest.er1 >conftest.err
3521 cat conftest.err >&5
3522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3523 (exit $ac_status); } >/dev/null; then
3524 if test -s conftest.err; then
3525 ac_cpp_err=$ac_c_preproc_warn_flag
3526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3533 if test -z "$ac_cpp_err"; then
3536 echo "$as_me: failed program was:" >&5
3537 sed 's/^/| /' conftest.$ac_ext >&5
3539 # Broken: fails on valid input.
3543 rm -f conftest.err conftest.$ac_ext
3545 # OK, works on sane cases. Now check whether nonexistent headers
3546 # can be detected and how.
3547 cat >conftest.$ac_ext <<_ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3553 #include <ac_nonexistent.h>
3555 if { (ac_try="$ac_cpp conftest.$ac_ext"
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3563 grep -v '^ *+' conftest.er1 >conftest.err
3565 cat conftest.err >&5
3566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3567 (exit $ac_status); } >/dev/null; then
3568 if test -s conftest.err; then
3569 ac_cpp_err=$ac_c_preproc_warn_flag
3570 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3577 if test -z "$ac_cpp_err"; then
3578 # Broken: success on invalid input.
3581 echo "$as_me: failed program was:" >&5
3582 sed 's/^/| /' conftest.$ac_ext >&5
3584 # Passes both tests.
3589 rm -f conftest.err conftest.$ac_ext
3592 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3593 rm -f conftest.err conftest.$ac_ext
3594 if $ac_preproc_ok; then
3597 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3598 See \`config.log' for more details." >&5
3599 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3600 See \`config.log' for more details." >&2;}
3601 { (exit 1); exit 1; }; }
3605 ac_cpp='$CPP $CPPFLAGS'
3606 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3607 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3608 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3611 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3612 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3613 if test "${ac_cv_path_GREP+set}" = set; then
3614 echo $ECHO_N "(cached) $ECHO_C" >&6
3616 # Extract the first word of "grep ggrep" to use in msg output
3617 if test -z "$GREP"; then
3618 set dummy grep ggrep; ac_prog_name=$2
3619 if test "${ac_cv_path_GREP+set}" = set; then
3620 echo $ECHO_N "(cached) $ECHO_C" >&6
3622 ac_path_GREP_found=false
3623 # Loop through the user's path and test for each of PROGNAME-LIST
3624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3625 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3628 test -z "$as_dir" && as_dir=.
3629 for ac_prog in grep ggrep; do
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3632 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3633 # Check for GNU ac_path_GREP and select it if it is found.
3634 # Check for GNU $ac_path_GREP
3635 case `"$ac_path_GREP" --version 2>&1` in
3637 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3640 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3643 cat "conftest.in" "conftest.in" >"conftest.tmp"
3644 mv "conftest.tmp" "conftest.in"
3645 cp "conftest.in" "conftest.nl"
3646 echo 'GREP' >> "conftest.nl"
3647 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3649 ac_count=`expr $ac_count + 1`
3650 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3651 # Best one so far, save it but keep looking for a better one
3652 ac_cv_path_GREP="$ac_path_GREP"
3653 ac_path_GREP_max=$ac_count
3655 # 10*(2^10) chars as input seems more than enough
3656 test $ac_count -gt 10 && break
3658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3662 $ac_path_GREP_found && break 3
3672 GREP="$ac_cv_path_GREP"
3673 if test -z "$GREP"; then
3674 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3675 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3676 { (exit 1); exit 1; }; }
3680 ac_cv_path_GREP=$GREP
3685 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3686 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3687 GREP="$ac_cv_path_GREP"
3690 { echo "$as_me:$LINENO: checking for egrep" >&5
3691 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3692 if test "${ac_cv_path_EGREP+set}" = set; then
3693 echo $ECHO_N "(cached) $ECHO_C" >&6
3695 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3696 then ac_cv_path_EGREP="$GREP -E"
3698 # Extract the first word of "egrep" to use in msg output
3699 if test -z "$EGREP"; then
3700 set dummy egrep; ac_prog_name=$2
3701 if test "${ac_cv_path_EGREP+set}" = set; then
3702 echo $ECHO_N "(cached) $ECHO_C" >&6
3704 ac_path_EGREP_found=false
3705 # Loop through the user's path and test for each of PROGNAME-LIST
3706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3707 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3710 test -z "$as_dir" && as_dir=.
3711 for ac_prog in egrep; do
3712 for ac_exec_ext in '' $ac_executable_extensions; do
3713 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3714 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3715 # Check for GNU ac_path_EGREP and select it if it is found.
3716 # Check for GNU $ac_path_EGREP
3717 case `"$ac_path_EGREP" --version 2>&1` in
3719 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3722 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3725 cat "conftest.in" "conftest.in" >"conftest.tmp"
3726 mv "conftest.tmp" "conftest.in"
3727 cp "conftest.in" "conftest.nl"
3728 echo 'EGREP' >> "conftest.nl"
3729 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3730 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3731 ac_count=`expr $ac_count + 1`
3732 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3733 # Best one so far, save it but keep looking for a better one
3734 ac_cv_path_EGREP="$ac_path_EGREP"
3735 ac_path_EGREP_max=$ac_count
3737 # 10*(2^10) chars as input seems more than enough
3738 test $ac_count -gt 10 && break
3740 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3744 $ac_path_EGREP_found && break 3
3754 EGREP="$ac_cv_path_EGREP"
3755 if test -z "$EGREP"; then
3756 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3757 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3758 { (exit 1); exit 1; }; }
3762 ac_cv_path_EGREP=$EGREP
3768 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3769 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3770 EGREP="$ac_cv_path_EGREP"
3773 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3774 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3775 if test "${ac_cv_header_stdc+set}" = set; then
3776 echo $ECHO_N "(cached) $ECHO_C" >&6
3778 cat >conftest.$ac_ext <<_ACEOF
3781 cat confdefs.h >>conftest.$ac_ext
3782 cat >>conftest.$ac_ext <<_ACEOF
3783 /* end confdefs.h. */
3797 rm -f conftest.$ac_objext
3798 if { (ac_try="$ac_compile"
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_compile") 2>conftest.er1
3806 grep -v '^ *+' conftest.er1 >conftest.err
3808 cat conftest.err >&5
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); } &&
3811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3812 { (case "(($ac_try" in
3813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3814 *) ac_try_echo=$ac_try;;
3816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3817 (eval "$ac_try") 2>&5
3819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3820 (exit $ac_status); }; } &&
3821 { ac_try='test -s conftest.$ac_objext'
3822 { (case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_try") 2>&5
3829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3830 (exit $ac_status); }; }; then
3831 ac_cv_header_stdc=yes
3833 echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3836 ac_cv_header_stdc=no
3839 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 if test $ac_cv_header_stdc = yes; then
3842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3843 cat >conftest.$ac_ext <<_ACEOF
3846 cat confdefs.h >>conftest.$ac_ext
3847 cat >>conftest.$ac_ext <<_ACEOF
3848 /* end confdefs.h. */
3852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3853 $EGREP "memchr" >/dev/null 2>&1; then
3856 ac_cv_header_stdc=no
3862 if test $ac_cv_header_stdc = yes; then
3863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3864 cat >conftest.$ac_ext <<_ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3874 $EGREP "free" >/dev/null 2>&1; then
3877 ac_cv_header_stdc=no
3883 if test $ac_cv_header_stdc = yes; then
3884 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3885 if test "$cross_compiling" = yes; then
3888 cat >conftest.$ac_ext <<_ACEOF
3891 cat confdefs.h >>conftest.$ac_ext
3892 cat >>conftest.$ac_ext <<_ACEOF
3893 /* end confdefs.h. */
3896 #if ((' ' & 0x0FF) == 0x020)
3897 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3898 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3900 # define ISLOWER(c) \
3901 (('a' <= (c) && (c) <= 'i') \
3902 || ('j' <= (c) && (c) <= 'r') \
3903 || ('s' <= (c) && (c) <= 'z'))
3904 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3907 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3912 for (i = 0; i < 256; i++)
3913 if (XOR (islower (i), ISLOWER (i))
3914 || toupper (i) != TOUPPER (i))
3919 rm -f conftest$ac_exeext
3920 if { (ac_try="$ac_link"
3922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3923 *) ac_try_echo=$ac_try;;
3925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3926 (eval "$ac_link") 2>&5
3928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3929 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3930 { (case "(($ac_try" in
3931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3932 *) ac_try_echo=$ac_try;;
3934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3935 (eval "$ac_try") 2>&5
3937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3938 (exit $ac_status); }; }; then
3941 echo "$as_me: program exited with status $ac_status" >&5
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3946 ac_cv_header_stdc=no
3948 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3954 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3955 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3956 if test $ac_cv_header_stdc = yes; then
3958 cat >>confdefs.h <<\_ACEOF
3959 #define STDC_HEADERS 1
3964 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3974 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3975 inttypes.h stdint.h unistd.h
3977 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3978 { echo "$as_me:$LINENO: checking for $ac_header" >&5
3979 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
3980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 cat >conftest.$ac_ext <<_ACEOF
3986 cat confdefs.h >>conftest.$ac_ext
3987 cat >>conftest.$ac_ext <<_ACEOF
3988 /* end confdefs.h. */
3989 $ac_includes_default
3991 #include <$ac_header>
3993 rm -f conftest.$ac_objext
3994 if { (ac_try="$ac_compile"
3996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3997 *) ac_try_echo=$ac_try;;
3999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4000 (eval "$ac_compile") 2>conftest.er1
4002 grep -v '^ *+' conftest.er1 >conftest.err
4004 cat conftest.err >&5
4005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } &&
4007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4008 { (case "(($ac_try" in
4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4010 *) ac_try_echo=$ac_try;;
4012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4013 (eval "$ac_try") 2>&5
4015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4016 (exit $ac_status); }; } &&
4017 { ac_try='test -s conftest.$ac_objext'
4018 { (case "(($ac_try" in
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023 (eval "$ac_try") 2>&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then
4027 eval "$as_ac_Header=yes"
4029 echo "$as_me: failed program was:" >&5
4030 sed 's/^/| /' conftest.$ac_ext >&5
4032 eval "$as_ac_Header=no"
4035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4037 ac_res=`eval echo '${'$as_ac_Header'}'`
4038 { echo "$as_me:$LINENO: result: $ac_res" >&5
4039 echo "${ECHO_T}$ac_res" >&6; }
4040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4041 cat >>confdefs.h <<_ACEOF
4042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4050 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4051 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4052 if test "${ac_cv_c_bigendian+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 # See if sys/param.h defines the BYTE_ORDER macro.
4056 cat >conftest.$ac_ext <<_ACEOF
4059 cat confdefs.h >>conftest.$ac_ext
4060 cat >>conftest.$ac_ext <<_ACEOF
4061 /* end confdefs.h. */
4062 #include <sys/types.h>
4063 #include <sys/param.h>
4068 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4076 rm -f conftest.$ac_objext
4077 if { (ac_try="$ac_compile"
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_compile") 2>conftest.er1
4085 grep -v '^ *+' conftest.er1 >conftest.err
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4089 (exit $ac_status); } &&
4090 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4091 { (case "(($ac_try" in
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4093 *) ac_try_echo=$ac_try;;
4095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4096 (eval "$ac_try") 2>&5
4098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4099 (exit $ac_status); }; } &&
4100 { ac_try='test -s conftest.$ac_objext'
4101 { (case "(($ac_try" in
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_try") 2>&5
4108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4109 (exit $ac_status); }; }; then
4110 # It does; now see whether it defined to BIG_ENDIAN or not.
4111 cat >conftest.$ac_ext <<_ACEOF
4114 cat confdefs.h >>conftest.$ac_ext
4115 cat >>conftest.$ac_ext <<_ACEOF
4116 /* end confdefs.h. */
4117 #include <sys/types.h>
4118 #include <sys/param.h>
4123 #if BYTE_ORDER != BIG_ENDIAN
4131 rm -f conftest.$ac_objext
4132 if { (ac_try="$ac_compile"
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4140 grep -v '^ *+' conftest.er1 >conftest.err
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } &&
4145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4146 { (case "(($ac_try" in
4147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4148 *) ac_try_echo=$ac_try;;
4150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4151 (eval "$ac_try") 2>&5
4153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); }; } &&
4155 { ac_try='test -s conftest.$ac_objext'
4156 { (case "(($ac_try" in
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_try") 2>&5
4163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4164 (exit $ac_status); }; }; then
4165 ac_cv_c_bigendian=yes
4167 echo "$as_me: failed program was:" >&5
4168 sed 's/^/| /' conftest.$ac_ext >&5
4170 ac_cv_c_bigendian=no
4173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4175 echo "$as_me: failed program was:" >&5
4176 sed 's/^/| /' conftest.$ac_ext >&5
4178 # It does not; compile a test program.
4179 if test "$cross_compiling" = yes; then
4180 # try to guess the endianness by grepping values into an object file
4181 ac_cv_c_bigendian=unknown
4182 cat >conftest.$ac_ext <<_ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4189 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4190 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4191 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4192 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4193 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4197 _ascii (); _ebcdic ();
4202 rm -f conftest.$ac_objext
4203 if { (ac_try="$ac_compile"
4205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4206 *) ac_try_echo=$ac_try;;
4208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4209 (eval "$ac_compile") 2>conftest.er1
4211 grep -v '^ *+' conftest.er1 >conftest.err
4213 cat conftest.err >&5
4214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4215 (exit $ac_status); } &&
4216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4217 { (case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4222 (eval "$ac_try") 2>&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); }; } &&
4226 { ac_try='test -s conftest.$ac_objext'
4227 { (case "(($ac_try" in
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_try") 2>&5
4234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4235 (exit $ac_status); }; }; then
4236 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4237 ac_cv_c_bigendian=yes
4239 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4240 if test "$ac_cv_c_bigendian" = unknown; then
4241 ac_cv_c_bigendian=no
4243 # finding both strings is unlikely to happen, but who knows?
4244 ac_cv_c_bigendian=unknown
4248 echo "$as_me: failed program was:" >&5
4249 sed 's/^/| /' conftest.$ac_ext >&5
4254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256 cat >conftest.$ac_ext <<_ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 $ac_includes_default
4267 /* Are we little or big endian? From Harbison&Steele. */
4271 char c[sizeof (long int)];
4274 return u.c[sizeof (long int) - 1] == 1;
4280 rm -f conftest$ac_exeext
4281 if { (ac_try="$ac_link"
4283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4284 *) ac_try_echo=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_link") 2>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4291 { (case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_try") 2>&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4300 ac_cv_c_bigendian=no
4302 echo "$as_me: program exited with status $ac_status" >&5
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4307 ac_cv_c_bigendian=yes
4309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4317 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4318 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4319 case $ac_cv_c_bigendian in
4327 { { echo "$as_me:$LINENO: error: unknown endianness
4328 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4329 echo "$as_me: error: unknown endianness
4330 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4331 { (exit 1); exit 1; }; } ;;
4335 if test "$cross_compiling" = yes; then
4336 LLVM_CROSS_COMPILING=1
4339 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4340 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4341 if test "${ac_cv_build_exeext+set}" = set; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4345 ac_cv_build_exeext=.exe
4347 ac_build_prefix=${build_alias}-
4349 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4350 set dummy ${ac_build_prefix}gcc; ac_word=$2
4351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4353 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 if test -n "$BUILD_CC"; then
4357 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4363 test -z "$as_dir" && as_dir=.
4364 for ac_exec_ext in '' $ac_executable_extensions; do
4365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4366 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 BUILD_CC=$ac_cv_prog_BUILD_CC
4377 if test -n "$BUILD_CC"; then
4378 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4379 echo "${ECHO_T}$BUILD_CC" >&6; }
4381 { echo "$as_me:$LINENO: result: no" >&5
4382 echo "${ECHO_T}no" >&6; }
4386 if test -z "$BUILD_CC"; then
4387 # Extract the first word of "gcc", so it can be a program name with args.
4388 set dummy gcc; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4392 echo $ECHO_N "(cached) $ECHO_C" >&6
4394 if test -n "$BUILD_CC"; then
4395 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir=.
4402 for ac_exec_ext in '' $ac_executable_extensions; do
4403 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4404 ac_cv_prog_BUILD_CC="gcc"
4405 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4414 BUILD_CC=$ac_cv_prog_BUILD_CC
4415 if test -n "$BUILD_CC"; then
4416 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4417 echo "${ECHO_T}$BUILD_CC" >&6; }
4419 { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4424 if test -z "$BUILD_CC"; then
4425 # Extract the first word of "cc", so it can be a program name with args.
4426 set dummy cc; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4430 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 if test -n "$BUILD_CC"; then
4433 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4443 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4444 ac_prog_rejected=yes
4447 ac_cv_prog_BUILD_CC="cc"
4448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4455 if test $ac_prog_rejected = yes; then
4456 # We found a bogon in the path, so make sure we never use it.
4457 set dummy $ac_cv_prog_BUILD_CC
4459 if test $# != 0; then
4460 # We chose a different compiler from the bogus one.
4461 # However, it has the same basename, so the bogon will be chosen
4462 # first if we set BUILD_CC to just the basename; use the full file name.
4464 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4469 BUILD_CC=$ac_cv_prog_BUILD_CC
4470 if test -n "$BUILD_CC"; then
4471 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4472 echo "${ECHO_T}$BUILD_CC" >&6; }
4474 { echo "$as_me:$LINENO: result: no" >&5
4475 echo "${ECHO_T}no" >&6; }
4481 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4482 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4483 { (exit 1); exit 1; }; }
4484 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4486 echo 'int main () { return 0; }' > conftest.$ac_ext
4488 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4489 (eval $ac_build_link) 2>&5
4491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4492 (exit $ac_status); }; then
4493 for file in conftest.*; do
4495 *.c | *.o | *.obj | *.dSYM) ;;
4496 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4500 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4501 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4502 { (exit 1); exit 1; }; }
4505 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4510 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4511 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4512 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4513 ac_build_exeext=$BUILD_EXEEXT
4515 ac_build_prefix=${build_alias}-
4516 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4517 set dummy ${ac_build_prefix}g++; ac_word=$2
4518 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4519 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4520 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4521 echo $ECHO_N "(cached) $ECHO_C" >&6
4523 if test -n "$BUILD_CXX"; then
4524 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4530 test -z "$as_dir" && as_dir=.
4531 for ac_exec_ext in '' $ac_executable_extensions; do
4532 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4533 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4534 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4543 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4544 if test -n "$BUILD_CXX"; then
4545 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4546 echo "${ECHO_T}$BUILD_CXX" >&6; }
4548 { echo "$as_me:$LINENO: result: no" >&5
4549 echo "${ECHO_T}no" >&6; }
4553 if test -z "$BUILD_CXX"; then
4554 # Extract the first word of "g++", so it can be a program name with args.
4555 set dummy g++; ac_word=$2
4556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 if test -n "$BUILD_CXX"; then
4562 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4568 test -z "$as_dir" && as_dir=.
4569 for ac_exec_ext in '' $ac_executable_extensions; do
4570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4571 ac_cv_prog_BUILD_CXX="g++"
4572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4582 if test -n "$BUILD_CXX"; then
4583 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4584 echo "${ECHO_T}$BUILD_CXX" >&6; }
4586 { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4591 if test -z "$BUILD_CXX"; then
4592 # Extract the first word of "c++", so it can be a program name with args.
4593 set dummy c++; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4597 echo $ECHO_N "(cached) $ECHO_C" >&6
4599 if test -n "$BUILD_CXX"; then
4600 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4607 test -z "$as_dir" && as_dir=.
4608 for ac_exec_ext in '' $ac_executable_extensions; do
4609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4610 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4611 ac_prog_rejected=yes
4614 ac_cv_prog_BUILD_CXX="c++"
4615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4622 if test $ac_prog_rejected = yes; then
4623 # We found a bogon in the path, so make sure we never use it.
4624 set dummy $ac_cv_prog_BUILD_CXX
4626 if test $# != 0; then
4627 # We chose a different compiler from the bogus one.
4628 # However, it has the same basename, so the bogon will be chosen
4629 # first if we set BUILD_CXX to just the basename; use the full file name.
4631 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4636 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4637 if test -n "$BUILD_CXX"; then
4638 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4639 echo "${ECHO_T}$BUILD_CXX" >&6; }
4641 { echo "$as_me:$LINENO: result: no" >&5
4642 echo "${ECHO_T}no" >&6; }
4649 LLVM_CROSS_COMPILING=0
4653 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4664 # Check whether --enable-optimized was given.
4665 if test "${enable_optimized+set}" = set; then
4666 enableval=$enable_optimized;
4671 if test ${enableval} = "no" ; then
4675 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4679 # Check whether --enable-profiling was given.
4680 if test "${enable_profiling+set}" = set; then
4681 enableval=$enable_profiling;
4686 if test ${enableval} = "no" ; then
4690 ENABLE_PROFILING=ENABLE_PROFILING=1
4694 # Check whether --enable-assertions was given.
4695 if test "${enable_assertions+set}" = set; then
4696 enableval=$enable_assertions;
4701 if test ${enableval} = "yes" ; then
4705 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4709 # Check whether --enable-expensive-checks was given.
4710 if test "${enable_expensive_checks+set}" = set; then
4711 enableval=$enable_expensive_checks;
4716 if test ${enableval} = "yes" ; then
4717 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4719 EXPENSIVE_CHECKS=yes
4722 ENABLE_EXPENSIVE_CHECKS=
4728 # Check whether --enable-debug-runtime was given.
4729 if test "${enable_debug_runtime+set}" = set; then
4730 enableval=$enable_debug_runtime;
4735 if test ${enableval} = "no" ; then
4739 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4743 # Check whether --enable-debug-symbols was given.
4744 if test "${enable_debug_symbols+set}" = set; then
4745 enableval=$enable_debug_symbols;
4750 if test ${enableval} = "no" ; then
4754 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4758 # Check whether --enable-jit was given.
4759 if test "${enable_jit+set}" = set; then
4760 enableval=$enable_jit;
4765 if test ${enableval} = "no"
4770 case "$llvm_cv_target_arch" in
4771 x86) TARGET_HAS_JIT=1
4773 Sparc) TARGET_HAS_JIT=0
4775 PowerPC) TARGET_HAS_JIT=1
4777 x86_64) TARGET_HAS_JIT=1
4779 Alpha) TARGET_HAS_JIT=1
4781 ARM) TARGET_HAS_JIT=1
4783 Mips) TARGET_HAS_JIT=0
4785 PIC16) TARGET_HAS_JIT=0
4787 XCore) TARGET_HAS_JIT=0
4789 MSP430) TARGET_HAS_JIT=0
4791 SystemZ) TARGET_HAS_JIT=0
4793 Blackfin) TARGET_HAS_JIT=0
4800 # Check whether --enable-doxygen was given.
4801 if test "${enable_doxygen+set}" = set; then
4802 enableval=$enable_doxygen;
4807 case "$enableval" in
4808 yes) ENABLE_DOXYGEN=1
4810 no) ENABLE_DOXYGEN=0
4812 default) ENABLE_DOXYGEN=0
4814 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4815 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4816 { (exit 1); exit 1; }; } ;;
4819 # Check whether --enable-threads was given.
4820 if test "${enable_threads+set}" = set; then
4821 enableval=$enable_threads;
4826 case "$enableval" in
4827 yes) ENABLE_THREADS=1
4829 no) ENABLE_THREADS=0
4831 default) ENABLE_THREADS=1
4833 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4834 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4835 { (exit 1); exit 1; }; } ;;
4838 cat >>confdefs.h <<_ACEOF
4839 #define ENABLE_THREADS $ENABLE_THREADS
4843 # Check whether --enable-pic was given.
4844 if test "${enable_pic+set}" = set; then
4845 enableval=$enable_pic;
4850 case "$enableval" in
4855 default) ENABLE_PIC=1
4857 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4858 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4859 { (exit 1); exit 1; }; } ;;
4862 cat >>confdefs.h <<_ACEOF
4863 #define ENABLE_PIC $ENABLE_PIC
4868 # Check whether --enable-targets was given.
4869 if test "${enable_targets+set}" = set; then
4870 enableval=$enable_targets;
4875 if test "$enableval" = host-only ; then
4878 case "$enableval" in
4879 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend" ;;
4880 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4882 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4883 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4884 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4885 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4886 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4887 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4888 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4889 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4890 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4891 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4892 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4893 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4894 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4895 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4896 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4897 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4898 host) case "$llvm_cv_target_arch" in
4899 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4900 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4901 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4902 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4903 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4904 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4905 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4906 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4907 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4908 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4909 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4910 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4911 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4912 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4913 echo "$as_me: error: Can not set target to build" >&2;}
4914 { (exit 1); exit 1; }; } ;;
4916 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4917 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4918 { (exit 1); exit 1; }; } ;;
4923 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4926 # Determine whether we are building LLVM support for the native architecture.
4927 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4928 for a_target in $TARGETS_TO_BUILD; do
4929 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4930 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4932 cat >>confdefs.h <<_ACEOF
4933 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4939 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4940 # target feature def files.
4941 LLVM_ENUM_TARGETS=""
4942 LLVM_ENUM_ASM_PRINTERS=""
4943 LLVM_ENUM_ASM_PARSERS=""
4944 LLVM_ENUM_DISASSEMBLERS=""
4945 for target_to_build in $TARGETS_TO_BUILD; do
4946 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4947 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4948 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4950 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4951 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4953 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
4954 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
4962 # Check whether --enable-cbe-printf-a was given.
4963 if test "${enable_cbe_printf_a+set}" = set; then
4964 enableval=$enable_cbe_printf_a;
4969 case "$enableval" in
4970 yes) ENABLE_CBE_PRINTF_A=1
4972 no) ENABLE_CBE_PRINTF_A=0
4974 default) ENABLE_CBE_PRINTF_A=1
4976 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
4977 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
4978 { (exit 1); exit 1; }; } ;;
4981 cat >>confdefs.h <<_ACEOF
4982 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
4987 # Check whether --with-llvmgccdir was given.
4988 if test "${with_llvmgccdir+set}" = set; then
4989 withval=$with_llvmgccdir;
4995 default) WITH_LLVMGCCDIR=default ;;
4996 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
4997 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
4998 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
4999 { (exit 1); exit 1; }; } ;;
5003 # Check whether --with-llvmgcc was given.
5004 if test "${with_llvmgcc+set}" = set; then
5005 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5011 # Check whether --with-llvmgxx was given.
5012 if test "${with_llvmgxx+set}" = set; then
5013 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5018 if test -n "$LLVMGCC"; then
5019 LLVMGCCCOMMAND="$LLVMGCC"
5022 if test -n "$LLVMGXX"; then
5023 LLVMGXXCOMMAND="$LLVMGXX"
5026 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5027 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5028 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5029 { (exit 1); exit 1; }; };
5032 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5033 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5034 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5035 { (exit 1); exit 1; }; };
5039 # Check whether --with-clang was given.
5040 if test "${with_clang+set}" = set; then
5041 withval=$with_clang;
5048 # Check whether --with-built-clang was given.
5049 if test "${with_built_clang+set}" = set; then
5050 withval=$with_built_clang;
5052 with_built_clang=check
5056 { echo "$as_me:$LINENO: checking clang compiler" >&5
5057 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5060 if test "$with_clang" != "default"; then
5061 WITH_CLANGPATH="$with_clang"
5062 if ! test -x "$WITH_CLANGPATH"; then
5063 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5064 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5065 { (exit 1); exit 1; }; }
5067 elif test "$with_built_clang" = "yes"; then
5069 elif test "$with_built_clang" = "no"; then
5072 if test "$with_built_clang" != "check"; then
5073 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5074 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5075 { (exit 1); exit 1; }; }
5078 if test -f ${srcdir}/tools/clang/README.txt; then
5083 if ! test -z "$WITH_CLANGPATH"; then
5084 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5085 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5086 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5087 elif test "$WITH_BUILT_CLANG" = "1"; then
5088 { echo "$as_me:$LINENO: result: built" >&5
5089 echo "${ECHO_T}built" >&6; }
5091 { echo "$as_me:$LINENO: result: none" >&5
5092 echo "${ECHO_T}none" >&6; }
5094 CLANGPATH=$WITH_CLANGPATH
5096 CLANGXXPATH=$WITH_CLANGXXPATH
5098 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5102 # Check whether --with-optimize-option was given.
5103 if test "${with_optimize_option+set}" = set; then
5104 withval=$with_optimize_option;
5109 { echo "$as_me:$LINENO: checking optimization flags" >&5
5110 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5113 case "$llvm_cv_os_type" in
5114 MingW) optimize_option=-O3 ;;
5115 *) optimize_option=-O2 ;;
5117 *) optimize_option="$withval" ;;
5119 OPTIMIZE_OPTION=$optimize_option
5121 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5122 echo "${ECHO_T}$optimize_option" >&6; }
5125 # Check whether --with-extra-options was given.
5126 if test "${with_extra_options+set}" = set; then
5127 withval=$with_extra_options;
5133 default) EXTRA_OPTIONS= ;;
5134 *) EXTRA_OPTIONS=$withval ;;
5136 EXTRA_OPTIONS=$EXTRA_OPTIONS
5139 # Check whether --enable-bindings was given.
5140 if test "${enable_bindings+set}" = set; then
5141 enableval=$enable_bindings;
5146 BINDINGS_TO_BUILD=""
5147 case "$enableval" in
5148 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5149 all ) BINDINGS_TO_BUILD="ocaml" ;;
5150 none | no) BINDINGS_TO_BUILD="" ;;
5151 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5152 case "$a_binding" in
5153 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5154 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5155 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5156 { (exit 1); exit 1; }; } ;;
5163 # Check whether --with-ocaml-libdir was given.
5164 if test "${with_ocaml_libdir+set}" = set; then
5165 withval=$with_ocaml_libdir;
5171 auto) with_ocaml_libdir="$withval" ;;
5172 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5173 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5174 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5175 { (exit 1); exit 1; }; } ;;
5179 # Check whether --with-c-include-dirs was given.
5180 if test "${with_c_include_dirs+set}" = set; then
5181 withval=$with_c_include_dirs;
5187 cat >>confdefs.h <<_ACEOF
5188 #define C_INCLUDE_DIRS "$withval"
5193 # Check whether --with-cxx-include-root was given.
5194 if test "${with_cxx_include_root+set}" = set; then
5195 withval=$with_cxx_include_root;
5201 cat >>confdefs.h <<_ACEOF
5202 #define CXX_INCLUDE_ROOT "$withval"
5207 # Check whether --with-cxx-include-arch was given.
5208 if test "${with_cxx_include_arch+set}" = set; then
5209 withval=$with_cxx_include_arch;
5215 cat >>confdefs.h <<_ACEOF
5216 #define CXX_INCLUDE_ARCH "$withval"
5221 # Check whether --with-cxx-include-32bit-dir was given.
5222 if test "${with_cxx_include_32bit_dir+set}" = set; then
5223 withval=$with_cxx_include_32bit_dir;
5229 cat >>confdefs.h <<_ACEOF
5230 #define CXX_INCLUDE_32BIT_DIR "$withval"
5235 # Check whether --with-cxx-include-64bit-dir was given.
5236 if test "${with_cxx_include_64bit_dir+set}" = set; then
5237 withval=$with_cxx_include_64bit_dir;
5243 cat >>confdefs.h <<_ACEOF
5244 #define CXX_INCLUDE_64BIT_DIR "$withval"
5249 # Check whether --with-binutils-include was given.
5250 if test "${with_binutils_include+set}" = set; then
5251 withval=$with_binutils_include;
5257 default) WITH_BINUTILS_INCDIR=default ;;
5258 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5259 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5260 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5261 { (exit 1); exit 1; }; } ;;
5263 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5264 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5266 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5267 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5268 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5269 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5270 { (exit 1); exit 1; }; };
5274 # Check whether --enable-libffi was given.
5275 if test "${enable_libffi+set}" = set; then
5276 enableval=$enable_libffi; case "$enableval" in
5277 yes) llvm_cv_enable_libffi="yes" ;;
5278 no) llvm_cv_enable_libffi="no" ;;
5279 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5280 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5281 { (exit 1); exit 1; }; } ;;
5284 llvm_cv_enable_libffi=no
5288 if test "$llvm_cv_os_type" = "Win32" ; then
5294 # Check whether --enable-llvmc-dynamic was given.
5295 if test "${enable_llvmc_dynamic+set}" = set; then
5296 enableval=$enable_llvmc_dynamic;
5298 enableval=$llvmc_dynamic
5301 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5302 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5305 ENABLE_LLVMC_DYNAMIC=
5309 # Check whether --enable-llvmc-dynamic-plugins was given.
5310 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5311 enableval=$enable_llvmc_dynamic_plugins;
5316 if test ${enableval} = "yes" ; then
5317 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5320 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5326 ac_cpp='$CPP $CPPFLAGS'
5327 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5328 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5329 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5330 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5331 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5332 # On Suns, sometimes $CPP names a directory.
5333 if test -n "$CPP" && test -d "$CPP"; then
5336 if test -z "$CPP"; then
5337 if test "${ac_cv_prog_CPP+set}" = set; then
5338 echo $ECHO_N "(cached) $ECHO_C" >&6
5340 # Double quotes because CPP needs to be expanded
5341 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5344 for ac_c_preproc_warn_flag in '' yes
5346 # Use a header file that comes with gcc, so configuring glibc
5347 # with a fresh cross-compiler works.
5348 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5349 # <limits.h> exists even on freestanding compilers.
5350 # On the NeXT, cc -E runs the code through the compiler's parser,
5351 # not just through cpp. "Syntax error" is here to catch this case.
5352 cat >conftest.$ac_ext <<_ACEOF
5355 cat confdefs.h >>conftest.$ac_ext
5356 cat >>conftest.$ac_ext <<_ACEOF
5357 /* end confdefs.h. */
5359 # include <limits.h>
5361 # include <assert.h>
5365 if { (ac_try="$ac_cpp conftest.$ac_ext"
5367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5368 *) ac_try_echo=$ac_try;;
5370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5373 grep -v '^ *+' conftest.er1 >conftest.err
5375 cat conftest.err >&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); } >/dev/null; then
5378 if test -s conftest.err; then
5379 ac_cpp_err=$ac_c_preproc_warn_flag
5380 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5387 if test -z "$ac_cpp_err"; then
5390 echo "$as_me: failed program was:" >&5
5391 sed 's/^/| /' conftest.$ac_ext >&5
5393 # Broken: fails on valid input.
5397 rm -f conftest.err conftest.$ac_ext
5399 # OK, works on sane cases. Now check whether nonexistent headers
5400 # can be detected and how.
5401 cat >conftest.$ac_ext <<_ACEOF
5404 cat confdefs.h >>conftest.$ac_ext
5405 cat >>conftest.$ac_ext <<_ACEOF
5406 /* end confdefs.h. */
5407 #include <ac_nonexistent.h>
5409 if { (ac_try="$ac_cpp conftest.$ac_ext"
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5417 grep -v '^ *+' conftest.er1 >conftest.err
5419 cat conftest.err >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); } >/dev/null; then
5422 if test -s conftest.err; then
5423 ac_cpp_err=$ac_c_preproc_warn_flag
5424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5431 if test -z "$ac_cpp_err"; then
5432 # Broken: success on invalid input.
5435 echo "$as_me: failed program was:" >&5
5436 sed 's/^/| /' conftest.$ac_ext >&5
5438 # Passes both tests.
5443 rm -f conftest.err conftest.$ac_ext
5446 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5447 rm -f conftest.err conftest.$ac_ext
5448 if $ac_preproc_ok; then
5460 { echo "$as_me:$LINENO: result: $CPP" >&5
5461 echo "${ECHO_T}$CPP" >&6; }
5463 for ac_c_preproc_warn_flag in '' yes
5465 # Use a header file that comes with gcc, so configuring glibc
5466 # with a fresh cross-compiler works.
5467 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5468 # <limits.h> exists even on freestanding compilers.
5469 # On the NeXT, cc -E runs the code through the compiler's parser,
5470 # not just through cpp. "Syntax error" is here to catch this case.
5471 cat >conftest.$ac_ext <<_ACEOF
5474 cat confdefs.h >>conftest.$ac_ext
5475 cat >>conftest.$ac_ext <<_ACEOF
5476 /* end confdefs.h. */
5478 # include <limits.h>
5480 # include <assert.h>
5484 if { (ac_try="$ac_cpp conftest.$ac_ext"
5486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5487 *) ac_try_echo=$ac_try;;
5489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5492 grep -v '^ *+' conftest.er1 >conftest.err
5494 cat conftest.err >&5
5495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5496 (exit $ac_status); } >/dev/null; then
5497 if test -s conftest.err; then
5498 ac_cpp_err=$ac_c_preproc_warn_flag
5499 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5506 if test -z "$ac_cpp_err"; then
5509 echo "$as_me: failed program was:" >&5
5510 sed 's/^/| /' conftest.$ac_ext >&5
5512 # Broken: fails on valid input.
5516 rm -f conftest.err conftest.$ac_ext
5518 # OK, works on sane cases. Now check whether nonexistent headers
5519 # can be detected and how.
5520 cat >conftest.$ac_ext <<_ACEOF
5523 cat confdefs.h >>conftest.$ac_ext
5524 cat >>conftest.$ac_ext <<_ACEOF
5525 /* end confdefs.h. */
5526 #include <ac_nonexistent.h>
5528 if { (ac_try="$ac_cpp conftest.$ac_ext"
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5536 grep -v '^ *+' conftest.er1 >conftest.err
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } >/dev/null; then
5541 if test -s conftest.err; then
5542 ac_cpp_err=$ac_c_preproc_warn_flag
5543 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5550 if test -z "$ac_cpp_err"; then
5551 # Broken: success on invalid input.
5554 echo "$as_me: failed program was:" >&5
5555 sed 's/^/| /' conftest.$ac_ext >&5
5557 # Passes both tests.
5562 rm -f conftest.err conftest.$ac_ext
5565 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5566 rm -f conftest.err conftest.$ac_ext
5567 if $ac_preproc_ok; then
5570 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5571 See \`config.log' for more details." >&5
5572 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5573 See \`config.log' for more details." >&2;}
5574 { (exit 1); exit 1; }; }
5578 ac_cpp='$CPP $CPPFLAGS'
5579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5584 ac_cpp='$CPP $CPPFLAGS'
5585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5588 if test -n "$ac_tool_prefix"; then
5591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5595 if test "${ac_cv_prog_CC+set}" = set; then
5596 echo $ECHO_N "(cached) $ECHO_C" >&6
5598 if test -n "$CC"; then
5599 ac_cv_prog_CC="$CC" # Let the user override the test.
5601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605 test -z "$as_dir" && as_dir=.
5606 for ac_exec_ext in '' $ac_executable_extensions; do
5607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5619 if test -n "$CC"; then
5620 { echo "$as_me:$LINENO: result: $CC" >&5
5621 echo "${ECHO_T}$CC" >&6; }
5623 { echo "$as_me:$LINENO: result: no" >&5
5624 echo "${ECHO_T}no" >&6; }
5628 test -n "$CC" && break
5631 if test -z "$CC"; then
5635 # Extract the first word of "$ac_prog", so it can be a program name with args.
5636 set dummy $ac_prog; ac_word=$2
5637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5640 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 if test -n "$ac_ct_CC"; then
5643 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5652 ac_cv_prog_ac_ct_CC="$ac_prog"
5653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5663 if test -n "$ac_ct_CC"; then
5664 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5665 echo "${ECHO_T}$ac_ct_CC" >&6; }
5667 { echo "$as_me:$LINENO: result: no" >&5
5668 echo "${ECHO_T}no" >&6; }
5672 test -n "$ac_ct_CC" && break
5675 if test "x$ac_ct_CC" = x; then
5678 case $cross_compiling:$ac_tool_warned in
5680 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5681 whose name does not start with the host triplet. If you think this
5682 configuration is useful to you, please write to autoconf@gnu.org." >&5
5683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5684 whose name does not start with the host triplet. If you think this
5685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5686 ac_tool_warned=yes ;;
5693 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5694 See \`config.log' for more details." >&5
5695 echo "$as_me: error: no acceptable C compiler found in \$PATH
5696 See \`config.log' for more details." >&2;}
5697 { (exit 1); exit 1; }; }
5699 # Provide some information about the compiler.
5700 echo "$as_me:$LINENO: checking for C compiler version" >&5
5701 ac_compiler=`set X $ac_compile; echo $2`
5702 { (ac_try="$ac_compiler --version >&5"
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_compiler --version >&5") 2>&5
5710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5711 (exit $ac_status); }
5712 { (ac_try="$ac_compiler -v >&5"
5714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5715 *) ac_try_echo=$ac_try;;
5717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5718 (eval "$ac_compiler -v >&5") 2>&5
5720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5721 (exit $ac_status); }
5722 { (ac_try="$ac_compiler -V >&5"
5724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compiler -V >&5") 2>&5
5730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5731 (exit $ac_status); }
5733 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5736 echo $ECHO_N "(cached) $ECHO_C" >&6
5738 cat >conftest.$ac_ext <<_ACEOF
5741 cat confdefs.h >>conftest.$ac_ext
5742 cat >>conftest.$ac_ext <<_ACEOF
5743 /* end confdefs.h. */
5756 rm -f conftest.$ac_objext
5757 if { (ac_try="$ac_compile"
5759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5760 *) ac_try_echo=$ac_try;;
5762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5763 (eval "$ac_compile") 2>conftest.er1
5765 grep -v '^ *+' conftest.er1 >conftest.err
5767 cat conftest.err >&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } &&
5770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5771 { (case "(($ac_try" in
5772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5773 *) ac_try_echo=$ac_try;;
5775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5776 (eval "$ac_try") 2>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }; } &&
5780 { ac_try='test -s conftest.$ac_objext'
5781 { (case "(($ac_try" in
5782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5783 *) ac_try_echo=$ac_try;;
5785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5786 (eval "$ac_try") 2>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }; }; then
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5802 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5803 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5804 GCC=`test $ac_compiler_gnu = yes && echo yes`
5805 ac_test_CFLAGS=${CFLAGS+set}
5806 ac_save_CFLAGS=$CFLAGS
5807 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5808 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5809 if test "${ac_cv_prog_cc_g+set}" = set; then
5810 echo $ECHO_N "(cached) $ECHO_C" >&6
5812 ac_save_c_werror_flag=$ac_c_werror_flag
5813 ac_c_werror_flag=yes
5816 cat >conftest.$ac_ext <<_ACEOF
5819 cat confdefs.h >>conftest.$ac_ext
5820 cat >>conftest.$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5831 rm -f conftest.$ac_objext
5832 if { (ac_try="$ac_compile"
5834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5835 *) ac_try_echo=$ac_try;;
5837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5838 (eval "$ac_compile") 2>conftest.er1
5840 grep -v '^ *+' conftest.er1 >conftest.err
5842 cat conftest.err >&5
5843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5844 (exit $ac_status); } &&
5845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5846 { (case "(($ac_try" in
5847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5848 *) ac_try_echo=$ac_try;;
5850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5851 (eval "$ac_try") 2>&5
5853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5854 (exit $ac_status); }; } &&
5855 { ac_try='test -s conftest.$ac_objext'
5856 { (case "(($ac_try" in
5857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5858 *) ac_try_echo=$ac_try;;
5860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5861 (eval "$ac_try") 2>&5
5863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5864 (exit $ac_status); }; }; then
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5871 cat >conftest.$ac_ext <<_ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5886 rm -f conftest.$ac_objext
5887 if { (ac_try="$ac_compile"
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compile") 2>conftest.er1
5895 grep -v '^ *+' conftest.er1 >conftest.err
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } &&
5900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5901 { (case "(($ac_try" in
5902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_try") 2>&5
5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5909 (exit $ac_status); }; } &&
5910 { ac_try='test -s conftest.$ac_objext'
5911 { (case "(($ac_try" in
5912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5913 *) ac_try_echo=$ac_try;;
5915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5916 (eval "$ac_try") 2>&5
5918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5919 (exit $ac_status); }; }; then
5922 echo "$as_me: failed program was:" >&5
5923 sed 's/^/| /' conftest.$ac_ext >&5
5925 ac_c_werror_flag=$ac_save_c_werror_flag
5927 cat >conftest.$ac_ext <<_ACEOF
5930 cat confdefs.h >>conftest.$ac_ext
5931 cat >>conftest.$ac_ext <<_ACEOF
5932 /* end confdefs.h. */
5942 rm -f conftest.$ac_objext
5943 if { (ac_try="$ac_compile"
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_compile") 2>conftest.er1
5951 grep -v '^ *+' conftest.er1 >conftest.err
5953 cat conftest.err >&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); } &&
5956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5957 { (case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_try") 2>&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; } &&
5966 { ac_try='test -s conftest.$ac_objext'
5967 { (case "(($ac_try" in
5968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5969 *) ac_try_echo=$ac_try;;
5971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5972 (eval "$ac_try") 2>&5
5974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5975 (exit $ac_status); }; }; then
5978 echo "$as_me: failed program was:" >&5
5979 sed 's/^/| /' conftest.$ac_ext >&5
5984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5991 ac_c_werror_flag=$ac_save_c_werror_flag
5993 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5994 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
5995 if test "$ac_test_CFLAGS" = set; then
5996 CFLAGS=$ac_save_CFLAGS
5997 elif test $ac_cv_prog_cc_g = yes; then
5998 if test "$GCC" = yes; then
6004 if test "$GCC" = yes; then
6010 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6011 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6012 if test "${ac_cv_prog_cc_c89+set}" = set; then
6013 echo $ECHO_N "(cached) $ECHO_C" >&6
6015 ac_cv_prog_cc_c89=no
6017 cat >conftest.$ac_ext <<_ACEOF
6020 cat confdefs.h >>conftest.$ac_ext
6021 cat >>conftest.$ac_ext <<_ACEOF
6022 /* end confdefs.h. */
6025 #include <sys/types.h>
6026 #include <sys/stat.h>
6027 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6028 struct buf { int x; };
6029 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6030 static char *e (p, i)
6036 static char *f (char * (*g) (char **, int), char **p, ...)
6041 s = g (p, va_arg (v,int));
6046 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6047 function prototypes and stuff, but not '\xHH' hex character constants.
6048 These don't provoke an error unfortunately, instead are silently treated
6049 as 'x'. The following induces an error, until -std is added to get
6050 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6051 array size at least. It's necessary to write '\x00'==0 to get something
6052 that's true only with -std. */
6053 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6055 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6056 inside strings and character constants. */
6058 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6060 int test (int i, double x);
6061 struct s1 {int (*f) (int a);};
6062 struct s2 {int (*f) (double a);};
6063 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6069 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6074 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6075 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6077 CC="$ac_save_CC $ac_arg"
6078 rm -f conftest.$ac_objext
6079 if { (ac_try="$ac_compile"
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_compile") 2>conftest.er1
6087 grep -v '^ *+' conftest.er1 >conftest.err
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } &&
6092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6093 { (case "(($ac_try" in
6094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6095 *) ac_try_echo=$ac_try;;
6097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6098 (eval "$ac_try") 2>&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); }; } &&
6102 { ac_try='test -s conftest.$ac_objext'
6103 { (case "(($ac_try" in
6104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6105 *) ac_try_echo=$ac_try;;
6107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6108 (eval "$ac_try") 2>&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); }; }; then
6112 ac_cv_prog_cc_c89=$ac_arg
6114 echo "$as_me: failed program was:" >&5
6115 sed 's/^/| /' conftest.$ac_ext >&5
6120 rm -f core conftest.err conftest.$ac_objext
6121 test "x$ac_cv_prog_cc_c89" != "xno" && break
6123 rm -f conftest.$ac_ext
6128 case "x$ac_cv_prog_cc_c89" in
6130 { echo "$as_me:$LINENO: result: none needed" >&5
6131 echo "${ECHO_T}none needed" >&6; } ;;
6133 { echo "$as_me:$LINENO: result: unsupported" >&5
6134 echo "${ECHO_T}unsupported" >&6; } ;;
6136 CC="$CC $ac_cv_prog_cc_c89"
6137 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6138 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6143 ac_cpp='$CPP $CPPFLAGS'
6144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6149 ac_cpp='$CXXCPP $CPPFLAGS'
6150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6153 if test -z "$CXX"; then
6154 if test -n "$CCC"; then
6157 if test -n "$ac_tool_prefix"; then
6160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6164 if test "${ac_cv_prog_CXX+set}" = set; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 if test -n "$CXX"; then
6168 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 test -z "$as_dir" && as_dir=.
6175 for ac_exec_ext in '' $ac_executable_extensions; do
6176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6177 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 if test -n "$CXX"; then
6189 { echo "$as_me:$LINENO: result: $CXX" >&5
6190 echo "${ECHO_T}$CXX" >&6; }
6192 { echo "$as_me:$LINENO: result: no" >&5
6193 echo "${ECHO_T}no" >&6; }
6197 test -n "$CXX" && break
6200 if test -z "$CXX"; then
6204 # Extract the first word of "$ac_prog", so it can be a program name with args.
6205 set dummy $ac_prog; ac_word=$2
6206 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6207 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6208 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6209 echo $ECHO_N "(cached) $ECHO_C" >&6
6211 if test -n "$ac_ct_CXX"; then
6212 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 test -z "$as_dir" && as_dir=.
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6221 ac_cv_prog_ac_ct_CXX="$ac_prog"
6222 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6231 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6232 if test -n "$ac_ct_CXX"; then
6233 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6234 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6236 { echo "$as_me:$LINENO: result: no" >&5
6237 echo "${ECHO_T}no" >&6; }
6241 test -n "$ac_ct_CXX" && break
6244 if test "x$ac_ct_CXX" = x; then
6247 case $cross_compiling:$ac_tool_warned in
6249 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6250 whose name does not start with the host triplet. If you think this
6251 configuration is useful to you, please write to autoconf@gnu.org." >&5
6252 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6253 whose name does not start with the host triplet. If you think this
6254 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6255 ac_tool_warned=yes ;;
6263 # Provide some information about the compiler.
6264 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6265 ac_compiler=`set X $ac_compile; echo $2`
6266 { (ac_try="$ac_compiler --version >&5"
6268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6269 *) ac_try_echo=$ac_try;;
6271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6272 (eval "$ac_compiler --version >&5") 2>&5
6274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6275 (exit $ac_status); }
6276 { (ac_try="$ac_compiler -v >&5"
6278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6279 *) ac_try_echo=$ac_try;;
6281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6282 (eval "$ac_compiler -v >&5") 2>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); }
6286 { (ac_try="$ac_compiler -V >&5"
6288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6289 *) ac_try_echo=$ac_try;;
6291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6292 (eval "$ac_compiler -V >&5") 2>&5
6294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6295 (exit $ac_status); }
6297 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6298 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6299 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6300 echo $ECHO_N "(cached) $ECHO_C" >&6
6302 cat >conftest.$ac_ext <<_ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6320 rm -f conftest.$ac_objext
6321 if { (ac_try="$ac_compile"
6323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6324 *) ac_try_echo=$ac_try;;
6326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6327 (eval "$ac_compile") 2>conftest.er1
6329 grep -v '^ *+' conftest.er1 >conftest.err
6331 cat conftest.err >&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); } &&
6334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6335 { (case "(($ac_try" in
6336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6337 *) ac_try_echo=$ac_try;;
6339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6340 (eval "$ac_try") 2>&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }; } &&
6344 { ac_try='test -s conftest.$ac_objext'
6345 { (case "(($ac_try" in
6346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6347 *) ac_try_echo=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_try") 2>&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }; }; then
6356 echo "$as_me: failed program was:" >&5
6357 sed 's/^/| /' conftest.$ac_ext >&5
6362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6363 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6366 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6367 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6368 GXX=`test $ac_compiler_gnu = yes && echo yes`
6369 ac_test_CXXFLAGS=${CXXFLAGS+set}
6370 ac_save_CXXFLAGS=$CXXFLAGS
6371 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6372 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6373 if test "${ac_cv_prog_cxx_g+set}" = set; then
6374 echo $ECHO_N "(cached) $ECHO_C" >&6
6376 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6377 ac_cxx_werror_flag=yes
6380 cat >conftest.$ac_ext <<_ACEOF
6383 cat confdefs.h >>conftest.$ac_ext
6384 cat >>conftest.$ac_ext <<_ACEOF
6385 /* end confdefs.h. */
6395 rm -f conftest.$ac_objext
6396 if { (ac_try="$ac_compile"
6398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6399 *) ac_try_echo=$ac_try;;
6401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6402 (eval "$ac_compile") 2>conftest.er1
6404 grep -v '^ *+' conftest.er1 >conftest.err
6406 cat conftest.err >&5
6407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6408 (exit $ac_status); } &&
6409 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6410 { (case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_try") 2>&5
6417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6418 (exit $ac_status); }; } &&
6419 { ac_try='test -s conftest.$ac_objext'
6420 { (case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_try") 2>&5
6427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6428 (exit $ac_status); }; }; then
6429 ac_cv_prog_cxx_g=yes
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6435 cat >conftest.$ac_ext <<_ACEOF
6438 cat confdefs.h >>conftest.$ac_ext
6439 cat >>conftest.$ac_ext <<_ACEOF
6440 /* end confdefs.h. */
6450 rm -f conftest.$ac_objext
6451 if { (ac_try="$ac_compile"
6453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6454 *) ac_try_echo=$ac_try;;
6456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6457 (eval "$ac_compile") 2>conftest.er1
6459 grep -v '^ *+' conftest.er1 >conftest.err
6461 cat conftest.err >&5
6462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6463 (exit $ac_status); } &&
6464 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6465 { (case "(($ac_try" in
6466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6467 *) ac_try_echo=$ac_try;;
6469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6470 (eval "$ac_try") 2>&5
6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6473 (exit $ac_status); }; } &&
6474 { ac_try='test -s conftest.$ac_objext'
6475 { (case "(($ac_try" in
6476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6477 *) ac_try_echo=$ac_try;;
6479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6480 (eval "$ac_try") 2>&5
6482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6483 (exit $ac_status); }; }; then
6486 echo "$as_me: failed program was:" >&5
6487 sed 's/^/| /' conftest.$ac_ext >&5
6489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6491 cat >conftest.$ac_ext <<_ACEOF
6494 cat confdefs.h >>conftest.$ac_ext
6495 cat >>conftest.$ac_ext <<_ACEOF
6496 /* end confdefs.h. */
6506 rm -f conftest.$ac_objext
6507 if { (ac_try="$ac_compile"
6509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6510 *) ac_try_echo=$ac_try;;
6512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6513 (eval "$ac_compile") 2>conftest.er1
6515 grep -v '^ *+' conftest.er1 >conftest.err
6517 cat conftest.err >&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); } &&
6520 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6521 { (case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_try") 2>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; } &&
6530 { ac_try='test -s conftest.$ac_objext'
6531 { (case "(($ac_try" in
6532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6533 *) ac_try_echo=$ac_try;;
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_try") 2>&5
6538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6539 (exit $ac_status); }; }; then
6540 ac_cv_prog_cxx_g=yes
6542 echo "$as_me: failed program was:" >&5
6543 sed 's/^/| /' conftest.$ac_ext >&5
6548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6557 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6558 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6559 if test "$ac_test_CXXFLAGS" = set; then
6560 CXXFLAGS=$ac_save_CXXFLAGS
6561 elif test $ac_cv_prog_cxx_g = yes; then
6562 if test "$GXX" = yes; then
6568 if test "$GXX" = yes; then
6575 ac_cpp='$CPP $CPPFLAGS'
6576 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6577 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6578 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6581 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6582 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6583 if test "${lt_cv_path_NM+set}" = set; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6586 if test -n "$NM"; then
6587 # Let the user override the test.
6590 lt_nm_to_check="${ac_tool_prefix}nm"
6591 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6592 lt_nm_to_check="$lt_nm_to_check nm"
6594 for lt_tmp_nm in $lt_nm_to_check; do
6595 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6596 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6598 test -z "$ac_dir" && ac_dir=.
6599 tmp_nm="$ac_dir/$lt_tmp_nm"
6600 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6601 # Check to see if the nm accepts a BSD-compat flag.
6602 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6603 # nm: unknown option "B" ignored
6604 # Tru64's nm complains that /dev/null is an invalid object file
6605 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6606 */dev/null* | *'Invalid file or object type'*)
6607 lt_cv_path_NM="$tmp_nm -B"
6611 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6613 lt_cv_path_NM="$tmp_nm -p"
6617 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6618 continue # so that we can try to find one that supports BSD flags
6627 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6630 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6631 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6636 { echo "$as_me:$LINENO: checking for GNU make" >&5
6637 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6638 if test "${llvm_cv_gnu_make_command+set}" = set; then
6639 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 llvm_cv_gnu_make_command=''
6642 for a in "$MAKE" make gmake gnumake ; do
6643 if test -z "$a" ; then continue ; fi ;
6644 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6646 llvm_cv_gnu_make_command=$a ;
6651 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6652 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6653 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6657 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6658 echo "${ECHO_T}\"Not found\"" >&6; };
6662 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6663 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6665 if test "$LN_S" = "ln -s"; then
6666 { echo "$as_me:$LINENO: result: yes" >&5
6667 echo "${ECHO_T}yes" >&6; }
6669 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6670 echo "${ECHO_T}no, using $LN_S" >&6; }
6673 # Extract the first word of "cmp", so it can be a program name with args.
6674 set dummy cmp; ac_word=$2
6675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6677 if test "${ac_cv_path_CMP+set}" = set; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6689 test -z "$as_dir" && as_dir=.
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6692 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6693 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6700 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6705 if test -n "$CMP"; then
6706 { echo "$as_me:$LINENO: result: $CMP" >&5
6707 echo "${ECHO_T}$CMP" >&6; }
6709 { echo "$as_me:$LINENO: result: no" >&5
6710 echo "${ECHO_T}no" >&6; }
6714 # Extract the first word of "cp", so it can be a program name with args.
6715 set dummy cp; ac_word=$2
6716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6718 if test "${ac_cv_path_CP+set}" = set; then
6719 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6733 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6741 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6746 if test -n "$CP"; then
6747 { echo "$as_me:$LINENO: result: $CP" >&5
6748 echo "${ECHO_T}$CP" >&6; }
6750 { echo "$as_me:$LINENO: result: no" >&5
6751 echo "${ECHO_T}no" >&6; }
6755 # Extract the first word of "date", so it can be a program name with args.
6756 set dummy date; ac_word=$2
6757 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6758 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6759 if test "${ac_cv_path_DATE+set}" = set; then
6760 echo $ECHO_N "(cached) $ECHO_C" >&6
6764 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 test -z "$as_dir" && as_dir=.
6772 for ac_exec_ext in '' $ac_executable_extensions; do
6773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6774 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6775 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6782 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6786 DATE=$ac_cv_path_DATE
6787 if test -n "$DATE"; then
6788 { echo "$as_me:$LINENO: result: $DATE" >&5
6789 echo "${ECHO_T}$DATE" >&6; }
6791 { echo "$as_me:$LINENO: result: no" >&5
6792 echo "${ECHO_T}no" >&6; }
6796 # Extract the first word of "find", so it can be a program name with args.
6797 set dummy find; ac_word=$2
6798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6800 if test "${ac_cv_path_FIND+set}" = set; then
6801 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6812 test -z "$as_dir" && as_dir=.
6813 for ac_exec_ext in '' $ac_executable_extensions; do
6814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6815 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6823 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6827 FIND=$ac_cv_path_FIND
6828 if test -n "$FIND"; then
6829 { echo "$as_me:$LINENO: result: $FIND" >&5
6830 echo "${ECHO_T}$FIND" >&6; }
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6837 # Extract the first word of "grep", so it can be a program name with args.
6838 set dummy grep; ac_word=$2
6839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6841 if test "${ac_cv_path_GREP+set}" = set; then
6842 echo $ECHO_N "(cached) $ECHO_C" >&6
6846 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6853 test -z "$as_dir" && as_dir=.
6854 for ac_exec_ext in '' $ac_executable_extensions; do
6855 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6856 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6864 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6868 GREP=$ac_cv_path_GREP
6869 if test -n "$GREP"; then
6870 { echo "$as_me:$LINENO: result: $GREP" >&5
6871 echo "${ECHO_T}$GREP" >&6; }
6873 { echo "$as_me:$LINENO: result: no" >&5
6874 echo "${ECHO_T}no" >&6; }
6878 # Extract the first word of "mkdir", so it can be a program name with args.
6879 set dummy mkdir; ac_word=$2
6880 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6882 if test "${ac_cv_path_MKDIR+set}" = set; then
6883 echo $ECHO_N "(cached) $ECHO_C" >&6
6887 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 test -z "$as_dir" && as_dir=.
6895 for ac_exec_ext in '' $ac_executable_extensions; do
6896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6897 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6905 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6909 MKDIR=$ac_cv_path_MKDIR
6910 if test -n "$MKDIR"; then
6911 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6912 echo "${ECHO_T}$MKDIR" >&6; }
6914 { echo "$as_me:$LINENO: result: no" >&5
6915 echo "${ECHO_T}no" >&6; }
6919 # Extract the first word of "mv", so it can be a program name with args.
6920 set dummy mv; ac_word=$2
6921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6923 if test "${ac_cv_path_MV+set}" = set; then
6924 echo $ECHO_N "(cached) $ECHO_C" >&6
6928 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6935 test -z "$as_dir" && as_dir=.
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6938 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6946 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6951 if test -n "$MV"; then
6952 { echo "$as_me:$LINENO: result: $MV" >&5
6953 echo "${ECHO_T}$MV" >&6; }
6955 { echo "$as_me:$LINENO: result: no" >&5
6956 echo "${ECHO_T}no" >&6; }
6960 if test -n "$ac_tool_prefix"; then
6961 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6962 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6965 if test "${ac_cv_prog_RANLIB+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 if test -n "$RANLIB"; then
6969 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 test -z "$as_dir" && as_dir=.
6976 for ac_exec_ext in '' $ac_executable_extensions; do
6977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6978 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6988 RANLIB=$ac_cv_prog_RANLIB
6989 if test -n "$RANLIB"; then
6990 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6991 echo "${ECHO_T}$RANLIB" >&6; }
6993 { echo "$as_me:$LINENO: result: no" >&5
6994 echo "${ECHO_T}no" >&6; }
6999 if test -z "$ac_cv_prog_RANLIB"; then
7000 ac_ct_RANLIB=$RANLIB
7001 # Extract the first word of "ranlib", so it can be a program name with args.
7002 set dummy ranlib; ac_word=$2
7003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7005 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7006 echo $ECHO_N "(cached) $ECHO_C" >&6
7008 if test -n "$ac_ct_RANLIB"; then
7009 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7015 test -z "$as_dir" && as_dir=.
7016 for ac_exec_ext in '' $ac_executable_extensions; do
7017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7018 ac_cv_prog_ac_ct_RANLIB="ranlib"
7019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7028 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7029 if test -n "$ac_ct_RANLIB"; then
7030 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7031 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7033 { echo "$as_me:$LINENO: result: no" >&5
7034 echo "${ECHO_T}no" >&6; }
7037 if test "x$ac_ct_RANLIB" = x; then
7040 case $cross_compiling:$ac_tool_warned in
7042 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7043 whose name does not start with the host triplet. If you think this
7044 configuration is useful to you, please write to autoconf@gnu.org." >&5
7045 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7046 whose name does not start with the host triplet. If you think this
7047 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7048 ac_tool_warned=yes ;;
7050 RANLIB=$ac_ct_RANLIB
7053 RANLIB="$ac_cv_prog_RANLIB"
7056 if test -n "$ac_tool_prefix"; then
7057 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7058 set dummy ${ac_tool_prefix}ar; ac_word=$2
7059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7061 if test "${ac_cv_prog_AR+set}" = set; then
7062 echo $ECHO_N "(cached) $ECHO_C" >&6
7064 if test -n "$AR"; then
7065 ac_cv_prog_AR="$AR" # Let the user override the test.
7067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7071 test -z "$as_dir" && as_dir=.
7072 for ac_exec_ext in '' $ac_executable_extensions; do
7073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7074 ac_cv_prog_AR="${ac_tool_prefix}ar"
7075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 if test -n "$AR"; then
7086 { echo "$as_me:$LINENO: result: $AR" >&5
7087 echo "${ECHO_T}$AR" >&6; }
7089 { echo "$as_me:$LINENO: result: no" >&5
7090 echo "${ECHO_T}no" >&6; }
7095 if test -z "$ac_cv_prog_AR"; then
7097 # Extract the first word of "ar", so it can be a program name with args.
7098 set dummy ar; ac_word=$2
7099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7101 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7102 echo $ECHO_N "(cached) $ECHO_C" >&6
7104 if test -n "$ac_ct_AR"; then
7105 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7114 ac_cv_prog_ac_ct_AR="ar"
7115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7124 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7125 if test -n "$ac_ct_AR"; then
7126 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7127 echo "${ECHO_T}$ac_ct_AR" >&6; }
7129 { echo "$as_me:$LINENO: result: no" >&5
7130 echo "${ECHO_T}no" >&6; }
7133 if test "x$ac_ct_AR" = x; then
7136 case $cross_compiling:$ac_tool_warned in
7138 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7139 whose name does not start with the host triplet. If you think this
7140 configuration is useful to you, please write to autoconf@gnu.org." >&5
7141 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7142 whose name does not start with the host triplet. If you think this
7143 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7144 ac_tool_warned=yes ;;
7152 # Extract the first word of "rm", so it can be a program name with args.
7153 set dummy rm; ac_word=$2
7154 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7155 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7156 if test "${ac_cv_path_RM+set}" = set; then
7157 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7168 test -z "$as_dir" && as_dir=.
7169 for ac_exec_ext in '' $ac_executable_extensions; do
7170 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7171 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7172 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7184 if test -n "$RM"; then
7185 { echo "$as_me:$LINENO: result: $RM" >&5
7186 echo "${ECHO_T}$RM" >&6; }
7188 { echo "$as_me:$LINENO: result: no" >&5
7189 echo "${ECHO_T}no" >&6; }
7193 # Extract the first word of "sed", so it can be a program name with args.
7194 set dummy sed; ac_word=$2
7195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7197 if test "${ac_cv_path_SED+set}" = set; then
7198 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7209 test -z "$as_dir" && as_dir=.
7210 for ac_exec_ext in '' $ac_executable_extensions; do
7211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7212 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7213 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7220 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7225 if test -n "$SED"; then
7226 { echo "$as_me:$LINENO: result: $SED" >&5
7227 echo "${ECHO_T}$SED" >&6; }
7229 { echo "$as_me:$LINENO: result: no" >&5
7230 echo "${ECHO_T}no" >&6; }
7234 # Extract the first word of "tar", so it can be a program name with args.
7235 set dummy tar; ac_word=$2
7236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7238 if test "${ac_cv_path_TAR+set}" = set; then
7239 echo $ECHO_N "(cached) $ECHO_C" >&6
7243 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7261 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7266 if test -n "$TAR"; then
7267 { echo "$as_me:$LINENO: result: $TAR" >&5
7268 echo "${ECHO_T}$TAR" >&6; }
7270 { echo "$as_me:$LINENO: result: no" >&5
7271 echo "${ECHO_T}no" >&6; }
7275 # Extract the first word of "pwd", so it can be a program name with args.
7276 set dummy pwd; ac_word=$2
7277 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7278 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7279 if test "${ac_cv_path_BINPWD+set}" = set; then
7280 echo $ECHO_N "(cached) $ECHO_C" >&6
7284 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 test -z "$as_dir" && as_dir=.
7292 for ac_exec_ext in '' $ac_executable_extensions; do
7293 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7294 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7295 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7302 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7306 BINPWD=$ac_cv_path_BINPWD
7307 if test -n "$BINPWD"; then
7308 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7309 echo "${ECHO_T}$BINPWD" >&6; }
7311 { echo "$as_me:$LINENO: result: no" >&5
7312 echo "${ECHO_T}no" >&6; }
7317 # Extract the first word of "Graphviz", so it can be a program name with args.
7318 set dummy Graphviz; ac_word=$2
7319 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7320 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7321 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7322 echo $ECHO_N "(cached) $ECHO_C" >&6
7326 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7333 test -z "$as_dir" && as_dir=.
7334 for ac_exec_ext in '' $ac_executable_extensions; do
7335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7336 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7344 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7348 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7349 if test -n "$GRAPHVIZ"; then
7350 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7351 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7353 { echo "$as_me:$LINENO: result: no" >&5
7354 echo "${ECHO_T}no" >&6; }
7358 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7360 cat >>confdefs.h <<\_ACEOF
7361 #define HAVE_GRAPHVIZ 1
7364 if test "$llvm_cv_os_type" = "MingW" ; then
7365 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7368 cat >>confdefs.h <<_ACEOF
7369 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7373 # Extract the first word of "dot", so it can be a program name with args.
7374 set dummy dot; ac_word=$2
7375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7377 if test "${ac_cv_path_DOT+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7382 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7389 test -z "$as_dir" && as_dir=.
7390 for ac_exec_ext in '' $ac_executable_extensions; do
7391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7392 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7400 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7405 if test -n "$DOT"; then
7406 { echo "$as_me:$LINENO: result: $DOT" >&5
7407 echo "${ECHO_T}$DOT" >&6; }
7409 { echo "$as_me:$LINENO: result: no" >&5
7410 echo "${ECHO_T}no" >&6; }
7414 if test "$DOT" != "echo dot" ; then
7416 cat >>confdefs.h <<\_ACEOF
7420 if test "$llvm_cv_os_type" = "MingW" ; then
7421 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7424 cat >>confdefs.h <<_ACEOF
7425 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7429 # Extract the first word of "fdp", so it can be a program name with args.
7430 set dummy fdp; ac_word=$2
7431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7433 if test "${ac_cv_path_FDP+set}" = set; then
7434 echo $ECHO_N "(cached) $ECHO_C" >&6
7438 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 test -z "$as_dir" && as_dir=.
7446 for ac_exec_ext in '' $ac_executable_extensions; do
7447 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7448 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7449 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7456 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7461 if test -n "$FDP"; then
7462 { echo "$as_me:$LINENO: result: $FDP" >&5
7463 echo "${ECHO_T}$FDP" >&6; }
7465 { echo "$as_me:$LINENO: result: no" >&5
7466 echo "${ECHO_T}no" >&6; }
7470 if test "$FDP" != "echo fdp" ; then
7472 cat >>confdefs.h <<\_ACEOF
7476 if test "$llvm_cv_os_type" = "MingW" ; then
7477 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7480 cat >>confdefs.h <<_ACEOF
7481 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7485 # Extract the first word of "neato", so it can be a program name with args.
7486 set dummy neato; ac_word=$2
7487 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7488 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7489 if test "${ac_cv_path_NEATO+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7494 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7504 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7512 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7516 NEATO=$ac_cv_path_NEATO
7517 if test -n "$NEATO"; then
7518 { echo "$as_me:$LINENO: result: $NEATO" >&5
7519 echo "${ECHO_T}$NEATO" >&6; }
7521 { echo "$as_me:$LINENO: result: no" >&5
7522 echo "${ECHO_T}no" >&6; }
7526 if test "$NEATO" != "echo neato" ; then
7528 cat >>confdefs.h <<\_ACEOF
7529 #define HAVE_NEATO 1
7532 if test "$llvm_cv_os_type" = "MingW" ; then
7533 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7536 cat >>confdefs.h <<_ACEOF
7537 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7541 # Extract the first word of "twopi", so it can be a program name with args.
7542 set dummy twopi; ac_word=$2
7543 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7544 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7545 if test "${ac_cv_path_TWOPI+set}" = set; then
7546 echo $ECHO_N "(cached) $ECHO_C" >&6
7550 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7557 test -z "$as_dir" && as_dir=.
7558 for ac_exec_ext in '' $ac_executable_extensions; do
7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7560 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7561 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7568 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7572 TWOPI=$ac_cv_path_TWOPI
7573 if test -n "$TWOPI"; then
7574 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7575 echo "${ECHO_T}$TWOPI" >&6; }
7577 { echo "$as_me:$LINENO: result: no" >&5
7578 echo "${ECHO_T}no" >&6; }
7582 if test "$TWOPI" != "echo twopi" ; then
7584 cat >>confdefs.h <<\_ACEOF
7585 #define HAVE_TWOPI 1
7588 if test "$llvm_cv_os_type" = "MingW" ; then
7589 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7592 cat >>confdefs.h <<_ACEOF
7593 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7597 # Extract the first word of "circo", so it can be a program name with args.
7598 set dummy circo; ac_word=$2
7599 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7601 if test "${ac_cv_path_CIRCO+set}" = set; then
7602 echo $ECHO_N "(cached) $ECHO_C" >&6
7606 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 test -z "$as_dir" && as_dir=.
7614 for ac_exec_ext in '' $ac_executable_extensions; do
7615 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7616 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7617 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7624 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7628 CIRCO=$ac_cv_path_CIRCO
7629 if test -n "$CIRCO"; then
7630 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7631 echo "${ECHO_T}$CIRCO" >&6; }
7633 { echo "$as_me:$LINENO: result: no" >&5
7634 echo "${ECHO_T}no" >&6; }
7638 if test "$CIRCO" != "echo circo" ; then
7640 cat >>confdefs.h <<\_ACEOF
7641 #define HAVE_CIRCO 1
7644 if test "$llvm_cv_os_type" = "MingW" ; then
7645 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7648 cat >>confdefs.h <<_ACEOF
7649 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7653 for ac_prog in gv gsview32
7655 # Extract the first word of "$ac_prog", so it can be a program name with args.
7656 set dummy $ac_prog; ac_word=$2
7657 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7658 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7659 if test "${ac_cv_path_GV+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7674 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7686 if test -n "$GV"; then
7687 { echo "$as_me:$LINENO: result: $GV" >&5
7688 echo "${ECHO_T}$GV" >&6; }
7690 { echo "$as_me:$LINENO: result: no" >&5
7691 echo "${ECHO_T}no" >&6; }
7695 test -n "$GV" && break
7697 test -n "$GV" || GV="echo gv"
7699 if test "$GV" != "echo gv" ; then
7701 cat >>confdefs.h <<\_ACEOF
7705 if test "$llvm_cv_os_type" = "MingW" ; then
7706 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7709 cat >>confdefs.h <<_ACEOF
7710 #define LLVM_PATH_GV "$GV${EXEEXT}"
7714 # Extract the first word of "dotty", so it can be a program name with args.
7715 set dummy dotty; ac_word=$2
7716 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7718 if test "${ac_cv_path_DOTTY+set}" = set; then
7719 echo $ECHO_N "(cached) $ECHO_C" >&6
7723 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 test -z "$as_dir" && as_dir=.
7731 for ac_exec_ext in '' $ac_executable_extensions; do
7732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7733 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7741 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7745 DOTTY=$ac_cv_path_DOTTY
7746 if test -n "$DOTTY"; then
7747 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7748 echo "${ECHO_T}$DOTTY" >&6; }
7750 { echo "$as_me:$LINENO: result: no" >&5
7751 echo "${ECHO_T}no" >&6; }
7755 if test "$DOTTY" != "echo dotty" ; then
7757 cat >>confdefs.h <<\_ACEOF
7758 #define HAVE_DOTTY 1
7761 if test "$llvm_cv_os_type" = "MingW" ; then
7762 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7765 cat >>confdefs.h <<_ACEOF
7766 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7772 # Extract the first word of "perl", so it can be a program name with args.
7773 set dummy perl; ac_word=$2
7774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7776 if test "${ac_cv_path_PERL+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7788 test -z "$as_dir" && as_dir=.
7789 for ac_exec_ext in '' $ac_executable_extensions; do
7790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7791 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7803 PERL=$ac_cv_path_PERL
7804 if test -n "$PERL"; then
7805 { echo "$as_me:$LINENO: result: $PERL" >&5
7806 echo "${ECHO_T}$PERL" >&6; }
7808 { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7813 if test "$PERL" != "none"; then
7814 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7815 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7816 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7817 { echo "$as_me:$LINENO: result: yes" >&5
7818 echo "${ECHO_T}yes" >&6; }
7821 { echo "$as_me:$LINENO: result: not found" >&5
7822 echo "${ECHO_T}not found" >&6; }
7827 if test x"$PERL" = xnone; then
7830 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7831 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7832 { (exit 1); exit 1; }; }
7838 # Find a good install program. We prefer a C program (faster),
7839 # so one script is as good as another. But avoid the broken or
7840 # incompatible versions:
7841 # SysV /etc/install, /usr/sbin/install
7842 # SunOS /usr/etc/install
7843 # IRIX /sbin/install
7845 # AmigaOS /C/install, which installs bootblocks on floppy discs
7846 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7847 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7848 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7849 # OS/2's system install, which has a completely different semantic
7850 # ./install, which can be erroneously created by make from ./install.sh.
7851 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7852 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7853 if test -z "$INSTALL"; then
7854 if test "${ac_cv_path_install+set}" = set; then
7855 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7861 test -z "$as_dir" && as_dir=.
7862 # Account for people who put trailing slashes in PATH elements.
7864 ./ | .// | /cC/* | \
7865 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7866 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7869 # OSF1 and SCO ODT 3.0 have their own names for install.
7870 # Don't use installbsd from OSF since it installs stuff as root
7872 for ac_prog in ginstall scoinst install; do
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7875 if test $ac_prog = install &&
7876 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7877 # AIX install. It has an incompatible calling convention.
7879 elif test $ac_prog = install &&
7880 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7881 # program-specific install script used by HP pwplus--don't use.
7884 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7897 if test "${ac_cv_path_install+set}" = set; then
7898 INSTALL=$ac_cv_path_install
7900 # As a last resort, use the slow shell script. Don't cache a
7901 # value for INSTALL within a source directory, because that will
7902 # break other packages using the cache if that directory is
7903 # removed, or if the value is a relative name.
7904 INSTALL=$ac_install_sh
7907 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7908 echo "${ECHO_T}$INSTALL" >&6; }
7910 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7911 # It thinks the first close brace ends the variable substitution.
7912 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7914 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7916 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7919 # Extract the first word of "bzip2", so it can be a program name with args.
7920 set dummy bzip2; ac_word=$2
7921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7923 if test "${ac_cv_path_BZIP2+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7928 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7938 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7939 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 BZIP2=$ac_cv_path_BZIP2
7950 if test -n "$BZIP2"; then
7951 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7952 echo "${ECHO_T}$BZIP2" >&6; }
7954 { echo "$as_me:$LINENO: result: no" >&5
7955 echo "${ECHO_T}no" >&6; }
7959 # Extract the first word of "doxygen", so it can be a program name with args.
7960 set dummy doxygen; ac_word=$2
7961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7963 if test "${ac_cv_path_DOXYGEN+set}" = set; then
7964 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7978 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
7979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7989 DOXYGEN=$ac_cv_path_DOXYGEN
7990 if test -n "$DOXYGEN"; then
7991 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
7992 echo "${ECHO_T}$DOXYGEN" >&6; }
7994 { echo "$as_me:$LINENO: result: no" >&5
7995 echo "${ECHO_T}no" >&6; }
7999 # Extract the first word of "groff", so it can be a program name with args.
8000 set dummy groff; ac_word=$2
8001 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8003 if test "${ac_cv_path_GROFF+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8008 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8018 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8019 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8029 GROFF=$ac_cv_path_GROFF
8030 if test -n "$GROFF"; then
8031 { echo "$as_me:$LINENO: result: $GROFF" >&5
8032 echo "${ECHO_T}$GROFF" >&6; }
8034 { echo "$as_me:$LINENO: result: no" >&5
8035 echo "${ECHO_T}no" >&6; }
8039 # Extract the first word of "gzip", so it can be a program name with args.
8040 set dummy gzip; ac_word=$2
8041 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8042 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8043 if test "${ac_cv_path_GZIP+set}" = set; then
8044 echo $ECHO_N "(cached) $ECHO_C" >&6
8048 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8055 test -z "$as_dir" && as_dir=.
8056 for ac_exec_ext in '' $ac_executable_extensions; do
8057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8058 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8059 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8069 GZIP=$ac_cv_path_GZIP
8070 if test -n "$GZIP"; then
8071 { echo "$as_me:$LINENO: result: $GZIP" >&5
8072 echo "${ECHO_T}$GZIP" >&6; }
8074 { echo "$as_me:$LINENO: result: no" >&5
8075 echo "${ECHO_T}no" >&6; }
8079 # Extract the first word of "pod2html", so it can be a program name with args.
8080 set dummy pod2html; ac_word=$2
8081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8083 if test "${ac_cv_path_POD2HTML+set}" = set; then
8084 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8095 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 POD2HTML=$ac_cv_path_POD2HTML
8110 if test -n "$POD2HTML"; then
8111 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8112 echo "${ECHO_T}$POD2HTML" >&6; }
8114 { echo "$as_me:$LINENO: result: no" >&5
8115 echo "${ECHO_T}no" >&6; }
8119 # Extract the first word of "pod2man", so it can be a program name with args.
8120 set dummy pod2man; ac_word=$2
8121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8123 if test "${ac_cv_path_POD2MAN+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8128 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8138 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8149 POD2MAN=$ac_cv_path_POD2MAN
8150 if test -n "$POD2MAN"; then
8151 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8152 echo "${ECHO_T}$POD2MAN" >&6; }
8154 { echo "$as_me:$LINENO: result: no" >&5
8155 echo "${ECHO_T}no" >&6; }
8159 # Extract the first word of "runtest", so it can be a program name with args.
8160 set dummy runtest; ac_word=$2
8161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8163 if test "${ac_cv_path_RUNTEST+set}" = set; then
8164 echo $ECHO_N "(cached) $ECHO_C" >&6
8168 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8175 test -z "$as_dir" && as_dir=.
8176 for ac_exec_ext in '' $ac_executable_extensions; do
8177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8178 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 RUNTEST=$ac_cv_path_RUNTEST
8190 if test -n "$RUNTEST"; then
8191 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8192 echo "${ECHO_T}$RUNTEST" >&6; }
8194 { echo "$as_me:$LINENO: result: no" >&5
8195 echo "${ECHO_T}no" >&6; }
8201 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8202 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8204 # Check whether --with-tclinclude was given.
8205 if test "${with_tclinclude+set}" = set; then
8206 withval=$with_tclinclude; with_tclinclude=${withval}
8211 if test "${ac_cv_path_tclsh+set}" = set; then
8212 echo $ECHO_N "(cached) $ECHO_C" >&6
8215 if test x"${with_tclinclude}" != x ; then
8216 if test -f ${with_tclinclude}/tclsh ; then
8217 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8218 elif test -f ${with_tclinclude}/src/tclsh ; then
8219 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8221 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8222 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8223 { (exit 1); exit 1; }; }
8229 if test x"${ac_cv_path_tclsh}" = x ; then
8230 { echo "$as_me:$LINENO: result: none" >&5
8231 echo "${ECHO_T}none" >&6; }
8232 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
8234 # Extract the first word of "$ac_prog", so it can be a program name with args.
8235 set dummy $ac_prog; ac_word=$2
8236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8238 if test "${ac_cv_path_TCLSH+set}" = set; then
8239 echo $ECHO_N "(cached) $ECHO_C" >&6
8243 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8250 test -z "$as_dir" && as_dir=.
8251 for ac_exec_ext in '' $ac_executable_extensions; do
8252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8253 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8264 TCLSH=$ac_cv_path_TCLSH
8265 if test -n "$TCLSH"; then
8266 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8267 echo "${ECHO_T}$TCLSH" >&6; }
8269 { echo "$as_me:$LINENO: result: no" >&5
8270 echo "${ECHO_T}no" >&6; }
8274 test -n "$TCLSH" && break
8277 if test x"${TCLSH}" = x ; then
8278 ac_cv_path_tclsh='';
8280 ac_cv_path_tclsh="${TCLSH}";
8283 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8284 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8285 TCLSH="${ac_cv_path_tclsh}"
8289 # Extract the first word of "zip", so it can be a program name with args.
8290 set dummy zip; ac_word=$2
8291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8293 if test "${ac_cv_path_ZIP+set}" = set; then
8294 echo $ECHO_N "(cached) $ECHO_C" >&6
8298 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8308 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8320 if test -n "$ZIP"; then
8321 { echo "$as_me:$LINENO: result: $ZIP" >&5
8322 echo "${ECHO_T}$ZIP" >&6; }
8324 { echo "$as_me:$LINENO: result: no" >&5
8325 echo "${ECHO_T}no" >&6; }
8329 for ac_prog in ocamlc
8331 # Extract the first word of "$ac_prog", so it can be a program name with args.
8332 set dummy $ac_prog; ac_word=$2
8333 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8334 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8335 if test "${ac_cv_path_OCAMLC+set}" = set; then
8336 echo $ECHO_N "(cached) $ECHO_C" >&6
8340 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8350 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8351 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8361 OCAMLC=$ac_cv_path_OCAMLC
8362 if test -n "$OCAMLC"; then
8363 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8364 echo "${ECHO_T}$OCAMLC" >&6; }
8366 { echo "$as_me:$LINENO: result: no" >&5
8367 echo "${ECHO_T}no" >&6; }
8371 test -n "$OCAMLC" && break
8374 for ac_prog in ocamlopt
8376 # Extract the first word of "$ac_prog", so it can be a program name with args.
8377 set dummy $ac_prog; ac_word=$2
8378 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8379 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8380 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8381 echo $ECHO_N "(cached) $ECHO_C" >&6
8385 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8395 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8406 OCAMLOPT=$ac_cv_path_OCAMLOPT
8407 if test -n "$OCAMLOPT"; then
8408 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8409 echo "${ECHO_T}$OCAMLOPT" >&6; }
8411 { echo "$as_me:$LINENO: result: no" >&5
8412 echo "${ECHO_T}no" >&6; }
8416 test -n "$OCAMLOPT" && break
8419 for ac_prog in ocamldep
8421 # Extract the first word of "$ac_prog", so it can be a program name with args.
8422 set dummy $ac_prog; ac_word=$2
8423 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8424 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8425 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8426 echo $ECHO_N "(cached) $ECHO_C" >&6
8430 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8440 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8451 OCAMLDEP=$ac_cv_path_OCAMLDEP
8452 if test -n "$OCAMLDEP"; then
8453 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8454 echo "${ECHO_T}$OCAMLDEP" >&6; }
8456 { echo "$as_me:$LINENO: result: no" >&5
8457 echo "${ECHO_T}no" >&6; }
8461 test -n "$OCAMLDEP" && break
8464 for ac_prog in ocamldoc
8466 # Extract the first word of "$ac_prog", so it can be a program name with args.
8467 set dummy $ac_prog; ac_word=$2
8468 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8470 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8471 echo $ECHO_N "(cached) $ECHO_C" >&6
8475 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8485 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 OCAMLDOC=$ac_cv_path_OCAMLDOC
8497 if test -n "$OCAMLDOC"; then
8498 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8499 echo "${ECHO_T}$OCAMLDOC" >&6; }
8501 { echo "$as_me:$LINENO: result: no" >&5
8502 echo "${ECHO_T}no" >&6; }
8506 test -n "$OCAMLDOC" && break
8509 for ac_prog in gas as
8511 # Extract the first word of "$ac_prog", so it can be a program name with args.
8512 set dummy $ac_prog; ac_word=$2
8513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8515 if test "${ac_cv_path_GAS+set}" = set; then
8516 echo $ECHO_N "(cached) $ECHO_C" >&6
8520 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527 test -z "$as_dir" && as_dir=.
8528 for ac_exec_ext in '' $ac_executable_extensions; do
8529 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8530 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8531 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 if test -n "$GAS"; then
8543 { echo "$as_me:$LINENO: result: $GAS" >&5
8544 echo "${ECHO_T}$GAS" >&6; }
8546 { echo "$as_me:$LINENO: result: no" >&5
8547 echo "${ECHO_T}no" >&6; }
8551 test -n "$GAS" && break
8555 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8556 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8557 if test "${llvm_cv_link_use_r+set}" = set; then
8558 echo $ECHO_N "(cached) $ECHO_C" >&6
8561 ac_cpp='$CPP $CPPFLAGS'
8562 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8563 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8564 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8567 CFLAGS="$CFLAGS -Wl,-R."
8568 cat >conftest.$ac_ext <<_ACEOF
8571 cat confdefs.h >>conftest.$ac_ext
8572 cat >>conftest.$ac_ext <<_ACEOF
8573 /* end confdefs.h. */
8578 int main() { return 0; }
8583 rm -f conftest.$ac_objext conftest$ac_exeext
8584 if { (ac_try="$ac_link"
8586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8587 *) ac_try_echo=$ac_try;;
8589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8590 (eval "$ac_link") 2>conftest.er1
8592 grep -v '^ *+' conftest.er1 >conftest.err
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } &&
8597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8598 { (case "(($ac_try" in
8599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8600 *) ac_try_echo=$ac_try;;
8602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8603 (eval "$ac_try") 2>&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); }; } &&
8607 { ac_try='test -s conftest$ac_exeext'
8608 { (case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_try") 2>&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 llvm_cv_link_use_r=yes
8619 echo "$as_me: failed program was:" >&5
8620 sed 's/^/| /' conftest.$ac_ext >&5
8622 llvm_cv_link_use_r=no
8625 rm -f core conftest.err conftest.$ac_objext \
8626 conftest$ac_exeext conftest.$ac_ext
8629 ac_cpp='$CPP $CPPFLAGS'
8630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8636 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8637 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8638 if test "$llvm_cv_link_use_r" = yes ; then
8640 cat >>confdefs.h <<\_ACEOF
8641 #define HAVE_LINK_R 1
8647 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8648 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8649 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8650 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 ac_cpp='$CPP $CPPFLAGS'
8654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8659 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8660 cat >conftest.$ac_ext <<_ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8670 int main() { return 0; }
8675 rm -f conftest.$ac_objext conftest$ac_exeext
8676 if { (ac_try="$ac_link"
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8682 (eval "$ac_link") 2>conftest.er1
8684 grep -v '^ *+' conftest.er1 >conftest.err
8686 cat conftest.err >&5
8687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8688 (exit $ac_status); } &&
8689 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8690 { (case "(($ac_try" in
8691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8692 *) ac_try_echo=$ac_try;;
8694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8695 (eval "$ac_try") 2>&5
8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); }; } &&
8699 { ac_try='test -s conftest$ac_exeext'
8700 { (case "(($ac_try" in
8701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8702 *) ac_try_echo=$ac_try;;
8704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705 (eval "$ac_try") 2>&5
8707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8708 (exit $ac_status); }; }; then
8709 llvm_cv_link_use_export_dynamic=yes
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8714 llvm_cv_link_use_export_dynamic=no
8717 rm -f core conftest.err conftest.$ac_objext \
8718 conftest$ac_exeext conftest.$ac_ext
8721 ac_cpp='$CPP $CPPFLAGS'
8722 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8723 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8724 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8728 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8729 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8730 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8732 cat >>confdefs.h <<\_ACEOF
8733 #define HAVE_LINK_EXPORT_DYNAMIC 1
8741 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8742 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8743 if test "${ac_cv_c_const+set}" = set; then
8744 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 cat >conftest.$ac_ext <<_ACEOF
8749 cat confdefs.h >>conftest.$ac_ext
8750 cat >>conftest.$ac_ext <<_ACEOF
8751 /* end confdefs.h. */
8756 /* FIXME: Include the comments suggested by Paul. */
8758 /* Ultrix mips cc rejects this. */
8759 typedef int charset[2];
8761 /* SunOS 4.1.1 cc rejects this. */
8762 char const *const *ccp;
8764 /* NEC SVR4.0.2 mips cc rejects this. */
8765 struct point {int x, y;};
8766 static struct point const zero = {0,0};
8767 /* AIX XL C 1.02.0.0 rejects this.
8768 It does not let you subtract one const X* pointer from another in
8769 an arm of an if-expression whose if-part is not a constant
8771 const char *g = "string";
8772 ccp = &g + (g ? g-g : 0);
8773 /* HPUX 7.0 cc rejects these. */
8776 ccp = (char const *const *) p;
8777 { /* SCO 3.2v4 cc rejects this. */
8779 char const *s = 0 ? (char *) 0 : (char const *) 0;
8784 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8786 const int *foo = &x[0];
8789 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8790 typedef const int *iptr;
8794 { /* AIX XL C 1.02.0.0 rejects this saying
8795 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8796 struct s { int j; const int *ap[3]; };
8797 struct s *b; b->j = 5;
8799 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8803 return !x[0] && !zero.x;
8810 rm -f conftest.$ac_objext
8811 if { (ac_try="$ac_compile"
8813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8814 *) ac_try_echo=$ac_try;;
8816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8817 (eval "$ac_compile") 2>conftest.er1
8819 grep -v '^ *+' conftest.er1 >conftest.err
8821 cat conftest.err >&5
8822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8823 (exit $ac_status); } &&
8824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8825 { (case "(($ac_try" in
8826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8827 *) ac_try_echo=$ac_try;;
8829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8830 (eval "$ac_try") 2>&5
8832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8833 (exit $ac_status); }; } &&
8834 { ac_try='test -s conftest.$ac_objext'
8835 { (case "(($ac_try" in
8836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8837 *) ac_try_echo=$ac_try;;
8839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8840 (eval "$ac_try") 2>&5
8842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8843 (exit $ac_status); }; }; then
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.$ac_ext >&5
8852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8855 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8856 if test $ac_cv_c_const = no; then
8858 cat >>confdefs.h <<\_ACEOF
8870 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8871 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8872 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8873 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8875 echo $ECHO_N "(cached) $ECHO_C" >&6
8877 cat >conftest.$ac_ext <<_ACEOF
8880 cat confdefs.h >>conftest.$ac_ext
8881 cat >>conftest.$ac_ext <<_ACEOF
8882 /* end confdefs.h. */
8883 #include <sys/types.h>
8895 rm -f conftest.$ac_objext
8896 if { (ac_try="$ac_compile"
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8904 grep -v '^ *+' conftest.er1 >conftest.err
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8910 { (case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_try") 2>&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try='test -s conftest.$ac_objext'
8920 { (case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_try") 2>&5
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 eval "$as_ac_Header=yes"
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8934 eval "$as_ac_Header=no"
8937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 ac_res=`eval echo '${'$as_ac_Header'}'`
8940 { echo "$as_me:$LINENO: result: $ac_res" >&5
8941 echo "${ECHO_T}$ac_res" >&6; }
8942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8943 cat >>confdefs.h <<_ACEOF
8944 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8947 ac_header_dirent=$ac_hdr; break
8951 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8952 if test $ac_header_dirent = dirent.h; then
8953 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
8954 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
8955 if test "${ac_cv_search_opendir+set}" = set; then
8956 echo $ECHO_N "(cached) $ECHO_C" >&6
8958 ac_func_search_save_LIBS=$LIBS
8959 cat >conftest.$ac_ext <<_ACEOF
8962 cat confdefs.h >>conftest.$ac_ext
8963 cat >>conftest.$ac_ext <<_ACEOF
8964 /* end confdefs.h. */
8966 /* Override any GCC internal prototype to avoid an error.
8967 Use char because int might match the return type of a GCC
8968 builtin and then its argument prototype would still apply. */
8981 for ac_lib in '' dir; do
8982 if test -z "$ac_lib"; then
8983 ac_res="none required"
8986 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8988 rm -f conftest.$ac_objext conftest$ac_exeext
8989 if { (ac_try="$ac_link"
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8995 (eval "$ac_link") 2>conftest.er1
8997 grep -v '^ *+' conftest.er1 >conftest.err
8999 cat conftest.err >&5
9000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9001 (exit $ac_status); } &&
9002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9003 { (case "(($ac_try" in
9004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9005 *) ac_try_echo=$ac_try;;
9007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9008 (eval "$ac_try") 2>&5
9010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9011 (exit $ac_status); }; } &&
9012 { ac_try='test -s conftest$ac_exeext'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_cv_search_opendir=$ac_res
9024 echo "$as_me: failed program was:" >&5
9025 sed 's/^/| /' conftest.$ac_ext >&5
9030 rm -f core conftest.err conftest.$ac_objext \
9032 if test "${ac_cv_search_opendir+set}" = set; then
9036 if test "${ac_cv_search_opendir+set}" = set; then
9039 ac_cv_search_opendir=no
9042 LIBS=$ac_func_search_save_LIBS
9044 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9045 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9046 ac_res=$ac_cv_search_opendir
9047 if test "$ac_res" != no; then
9048 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9053 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9054 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9055 if test "${ac_cv_search_opendir+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 ac_func_search_save_LIBS=$LIBS
9059 cat >conftest.$ac_ext <<_ACEOF
9062 cat confdefs.h >>conftest.$ac_ext
9063 cat >>conftest.$ac_ext <<_ACEOF
9064 /* end confdefs.h. */
9066 /* Override any GCC internal prototype to avoid an error.
9067 Use char because int might match the return type of a GCC
9068 builtin and then its argument prototype would still apply. */
9081 for ac_lib in '' x; do
9082 if test -z "$ac_lib"; then
9083 ac_res="none required"
9086 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9088 rm -f conftest.$ac_objext conftest$ac_exeext
9089 if { (ac_try="$ac_link"
9091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9092 *) ac_try_echo=$ac_try;;
9094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9095 (eval "$ac_link") 2>conftest.er1
9097 grep -v '^ *+' conftest.er1 >conftest.err
9099 cat conftest.err >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); } &&
9102 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9103 { (case "(($ac_try" in
9104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9105 *) ac_try_echo=$ac_try;;
9107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9108 (eval "$ac_try") 2>&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); }; } &&
9112 { ac_try='test -s conftest$ac_exeext'
9113 { (case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_try") 2>&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); }; }; then
9122 ac_cv_search_opendir=$ac_res
9124 echo "$as_me: failed program was:" >&5
9125 sed 's/^/| /' conftest.$ac_ext >&5
9130 rm -f core conftest.err conftest.$ac_objext \
9132 if test "${ac_cv_search_opendir+set}" = set; then
9136 if test "${ac_cv_search_opendir+set}" = set; then
9139 ac_cv_search_opendir=no
9142 LIBS=$ac_func_search_save_LIBS
9144 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9145 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9146 ac_res=$ac_cv_search_opendir
9147 if test "$ac_res" != no; then
9148 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9155 for ac_header in dlfcn.h
9157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9162 echo $ECHO_N "(cached) $ECHO_C" >&6
9164 ac_res=`eval echo '${'$as_ac_Header'}'`
9165 { echo "$as_me:$LINENO: result: $ac_res" >&5
9166 echo "${ECHO_T}$ac_res" >&6; }
9168 # Is the header compilable?
9169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9171 cat >conftest.$ac_ext <<_ACEOF
9174 cat confdefs.h >>conftest.$ac_ext
9175 cat >>conftest.$ac_ext <<_ACEOF
9176 /* end confdefs.h. */
9177 $ac_includes_default
9178 #include <$ac_header>
9180 rm -f conftest.$ac_objext
9181 if { (ac_try="$ac_compile"
9183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9184 *) ac_try_echo=$ac_try;;
9186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9187 (eval "$ac_compile") 2>conftest.er1
9189 grep -v '^ *+' conftest.er1 >conftest.err
9191 cat conftest.err >&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } &&
9194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9195 { (case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_try") 2>&5
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest.$ac_objext'
9205 { (case "(($ac_try" in
9206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9207 *) ac_try_echo=$ac_try;;
9209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9210 (eval "$ac_try") 2>&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); }; }; then
9214 ac_header_compiler=yes
9216 echo "$as_me: failed program was:" >&5
9217 sed 's/^/| /' conftest.$ac_ext >&5
9219 ac_header_compiler=no
9222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9223 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9224 echo "${ECHO_T}$ac_header_compiler" >&6; }
9226 # Is the header present?
9227 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9228 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9229 cat >conftest.$ac_ext <<_ACEOF
9232 cat confdefs.h >>conftest.$ac_ext
9233 cat >>conftest.$ac_ext <<_ACEOF
9234 /* end confdefs.h. */
9235 #include <$ac_header>
9237 if { (ac_try="$ac_cpp conftest.$ac_ext"
9239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9240 *) ac_try_echo=$ac_try;;
9242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9245 grep -v '^ *+' conftest.er1 >conftest.err
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } >/dev/null; then
9250 if test -s conftest.err; then
9251 ac_cpp_err=$ac_c_preproc_warn_flag
9252 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9259 if test -z "$ac_cpp_err"; then
9260 ac_header_preproc=yes
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 ac_header_preproc=no
9268 rm -f conftest.err conftest.$ac_ext
9269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9270 echo "${ECHO_T}$ac_header_preproc" >&6; }
9272 # So? What about this header?
9273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9275 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9276 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9277 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9278 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9279 ac_header_preproc=yes
9282 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9283 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9284 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9285 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9286 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9287 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9288 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9289 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9291 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9292 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9293 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9295 ## ----------------------------------- ##
9296 ## Report this to llvmbugs@cs.uiuc.edu ##
9297 ## ----------------------------------- ##
9299 ) | sed "s/^/$as_me: WARNING: /" >&2
9302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9305 echo $ECHO_N "(cached) $ECHO_C" >&6
9307 eval "$as_ac_Header=\$ac_header_preproc"
9309 ac_res=`eval echo '${'$as_ac_Header'}'`
9310 { echo "$as_me:$LINENO: result: $ac_res" >&5
9311 echo "${ECHO_T}$ac_res" >&6; }
9314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9315 cat >>confdefs.h <<_ACEOF
9316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9323 # Check whether --enable-ltdl-install was given.
9324 if test "${enable_ltdl_install+set}" = set; then
9325 enableval=$enable_ltdl_install;
9331 if test x"${enable_ltdl_install-no}" != xno; then
9333 INSTALL_LTDL_FALSE='#'
9335 INSTALL_LTDL_TRUE='#'
9341 if test x"${enable_ltdl_convenience-no}" != xno; then
9342 CONVENIENCE_LTDL_TRUE=
9343 CONVENIENCE_LTDL_FALSE='#'
9345 CONVENIENCE_LTDL_TRUE='#'
9346 CONVENIENCE_LTDL_FALSE=
9350 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9351 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9353 libname_spec='lib$name'
9361 shlibpath_overrides_runpath=unknown
9363 dynamic_linker="$host_os ld.so"
9364 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9365 if test "$GCC" = yes; then
9366 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9367 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9368 # if the path contains ";" then we assume it to be the separator
9369 # otherwise default to the standard path separator (i.e. ":") - it is
9370 # assumed that no part of a normal pathname contains ";" but that should
9371 # okay in the real world where ";" in dirpaths is itself problematic.
9372 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9374 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9377 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9379 need_lib_prefix=unknown
9380 hardcode_into_libs=no
9382 # when you set need_version to no, make sure it does not cause -set_version
9383 # flags to be left without arguments
9384 need_version=unknown
9389 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9390 shlibpath_var=LIBPATH
9392 # AIX 3 has no versioning support, so we append a major version to the name.
9393 soname_spec='${libname}${release}${shared_ext}$major'
9400 hardcode_into_libs=yes
9401 if test "$host_cpu" = ia64; then
9402 # AIX 5 supports IA64
9403 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9404 shlibpath_var=LD_LIBRARY_PATH
9406 # With GCC up to 2.95.x, collect2 would create an import file
9407 # for dependence libraries. The import file would start with
9408 # the line `#! .'. This would cause the generated library to
9409 # depend on `.', always an invalid library. This was fixed in
9410 # development snapshots of GCC prior to 3.0.
9412 aix4 | aix4.[01] | aix4.[01].*)
9413 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9415 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9422 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9423 # soname into executable. Probably we can add versioning support to
9424 # collect2, so additional links can be useful in future.
9425 if test "$aix_use_runtimelinking" = yes; then
9426 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9427 # instead of lib<name>.a to let people know that these are not
9428 # typical AIX shared libraries.
9429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9431 # We preserve .a as extension for shared libraries through AIX4.2
9432 # and later when we are not doing run time linking.
9433 library_names_spec='${libname}${release}.a $libname.a'
9434 soname_spec='${libname}${release}${shared_ext}$major'
9436 shlibpath_var=LIBPATH
9441 library_names_spec='$libname.ixlibrary $libname.a'
9442 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9443 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'
9447 library_names_spec='${libname}${shared_ext}'
9448 dynamic_linker="$host_os ld.so"
9449 shlibpath_var=LIBRARY_PATH
9455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9456 soname_spec='${libname}${release}${shared_ext}$major'
9457 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9458 shlibpath_var=LD_LIBRARY_PATH
9459 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9460 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9461 # the default ld.so.conf also contains /usr/contrib/lib and
9462 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9463 # libtool to hard-code these into programs
9466 cygwin* | mingw* | pw32*)
9467 version_type=windows
9472 case $GCC,$host_os in
9473 yes,cygwin* | yes,mingw* | yes,pw32*)
9474 library_names_spec='$libname.dll.a'
9475 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9476 postinstall_cmds='base_file=`basename \${file}`~
9477 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9478 dldir=$destdir/`dirname \$dlpath`~
9479 test -d \$dldir || mkdir -p \$dldir~
9480 $install_prog $dir/$dlname \$dldir/$dlname~
9481 chmod a+x \$dldir/$dlname'
9482 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9483 dlpath=$dir/\$dldll~
9485 shlibpath_overrides_runpath=yes
9489 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9490 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9491 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9494 # MinGW DLLs use traditional 'lib' prefix
9495 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9496 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9497 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9498 # It is most probably a Windows format PATH printed by
9499 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9500 # path with ; separators, and with drive letters. We can handle the
9501 # drive letters (cygwin fileutils understands them), so leave them,
9502 # especially as we might pass files found there to a mingw objdump,
9503 # which wouldn't understand a cygwinified path. Ahh.
9504 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9506 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9510 # pw32 DLLs use 'pw' prefix rather than 'lib'
9511 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9517 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9520 dynamic_linker='Win32 ld.exe'
9521 # FIXME: first we should search . and the directory the executable is in
9525 darwin* | rhapsody*)
9526 dynamic_linker="$host_os dyld"
9530 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9531 soname_spec='${libname}${release}${major}$shared_ext'
9532 shlibpath_overrides_runpath=yes
9533 shlibpath_var=DYLD_LIBRARY_PATH
9534 shrext_cmds='.dylib'
9535 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9536 if test "$GCC" = yes; then
9537 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"`
9539 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9541 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9549 soname_spec='${libname}${release}${shared_ext}$major'
9550 shlibpath_var=LD_LIBRARY_PATH
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 shlibpath_var=LD_LIBRARY_PATH
9564 shlibpath_overrides_runpath=no
9565 hardcode_into_libs=yes
9566 dynamic_linker='GNU ld.so'
9569 freebsd* | dragonfly*)
9570 # DragonFly does not have aout. When/if they implement a new
9571 # versioning mechanism, adjust this.
9572 if test -x /usr/bin/objformat; then
9573 objformat=`/usr/bin/objformat`
9576 freebsd[123]*) objformat=aout ;;
9580 version_type=freebsd-$objformat
9581 case $version_type in
9583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9588 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9592 shlibpath_var=LD_LIBRARY_PATH
9595 shlibpath_overrides_runpath=yes
9597 freebsd3.[01]* | freebsdelf3.[01]*)
9598 shlibpath_overrides_runpath=yes
9599 hardcode_into_libs=yes
9601 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9602 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9603 shlibpath_overrides_runpath=no
9604 hardcode_into_libs=yes
9606 freebsd*) # from 4.6 on
9607 shlibpath_overrides_runpath=yes
9608 hardcode_into_libs=yes
9617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9618 soname_spec='${libname}${release}${shared_ext}$major'
9619 shlibpath_var=LD_LIBRARY_PATH
9620 hardcode_into_libs=yes
9623 hpux9* | hpux10* | hpux11*)
9624 # Give a soname corresponding to the major version so that dld.sl refuses to
9625 # link against other versions.
9632 hardcode_into_libs=yes
9633 dynamic_linker="$host_os dld.so"
9634 shlibpath_var=LD_LIBRARY_PATH
9635 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9636 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9637 soname_spec='${libname}${release}${shared_ext}$major'
9638 if test "X$HPUX_IA64_MODE" = X32; then
9639 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9641 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9643 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9647 hardcode_into_libs=yes
9648 dynamic_linker="$host_os dld.sl"
9649 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9652 soname_spec='${libname}${release}${shared_ext}$major'
9653 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9654 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9658 dynamic_linker="$host_os dld.sl"
9659 shlibpath_var=SHLIB_PATH
9660 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9662 soname_spec='${libname}${release}${shared_ext}$major'
9665 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9666 postinstall_cmds='chmod 555 $lib'
9673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9674 soname_spec='${libname}${release}${shared_ext}$major'
9675 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9676 shlibpath_var=LD_LIBRARY_PATH
9677 shlibpath_overrides_runpath=no
9678 hardcode_into_libs=yes
9681 irix5* | irix6* | nonstopux*)
9683 nonstopux*) version_type=nonstopux ;;
9685 if test "$lt_cv_prog_gnu_ld" = yes; then
9693 soname_spec='${libname}${release}${shared_ext}$major'
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9696 irix5* | nonstopux*)
9700 case $LD in # libtool.m4 will add one of these switches to LD
9701 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9702 libsuff= shlibsuff= libmagic=32-bit;;
9703 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9704 libsuff=32 shlibsuff=N32 libmagic=N32;;
9705 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9706 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9707 *) libsuff= shlibsuff= libmagic=never-match;;
9711 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9712 shlibpath_overrides_runpath=no
9713 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9714 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9715 hardcode_into_libs=yes
9718 # No shared lib support for Linux oldld, aout, or coff.
9719 linux*oldld* | linux*aout* | linux*coff*)
9723 # This must be Linux ELF.
9728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9729 soname_spec='${libname}${release}${shared_ext}$major'
9730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9731 shlibpath_var=LD_LIBRARY_PATH
9732 shlibpath_overrides_runpath=no
9733 # This implies no fast_install, which is unacceptable.
9734 # Some rework will be needed to allow for fast_install
9735 # before this can be enabled.
9736 hardcode_into_libs=yes
9738 # Append ld.so.conf contents to the search path
9739 if test -f /etc/ld.so.conf; then
9740 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' ' '`
9741 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9744 # We used to test for /lib/ld.so.1 and disable shared libraries on
9745 # powerpc, because MkLinux only supported shared libraries with the
9746 # GNU dynamic linker. Since this was broken with cross compilers,
9747 # most powerpc-linux boxes support dynamic linking these days and
9748 # people can always --disable-shared, the test was removed, and we
9749 # assume the GNU/Linux dynamic linker is in use.
9750 dynamic_linker='GNU/Linux ld.so'
9757 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9758 soname_spec='${libname}${release}${shared_ext}$major'
9759 shlibpath_var=LD_LIBRARY_PATH
9760 shlibpath_overrides_runpath=no
9761 hardcode_into_libs=yes
9762 dynamic_linker='GNU ld.so'
9769 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9771 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9772 dynamic_linker='NetBSD (a.out) ld.so'
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 dynamic_linker='NetBSD ld.elf_so'
9778 shlibpath_var=LD_LIBRARY_PATH
9779 shlibpath_overrides_runpath=yes
9780 hardcode_into_libs=yes
9785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9786 shlibpath_var=LD_LIBRARY_PATH
9787 shlibpath_overrides_runpath=yes
9794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9795 soname_spec='${libname}${release}${shared_ext}$major'
9796 shlibpath_var=LD_LIBRARY_PATH
9797 shlibpath_overrides_runpath=yes
9802 sys_lib_dlsearch_path_spec="/usr/lib"
9804 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9806 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9807 *) need_version=no ;;
9809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9811 shlibpath_var=LD_LIBRARY_PATH
9812 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9814 openbsd2.[89] | openbsd2.[89].*)
9815 shlibpath_overrides_runpath=no
9818 shlibpath_overrides_runpath=yes
9822 shlibpath_overrides_runpath=yes
9827 libname_spec='$name'
9830 library_names_spec='$libname${shared_ext} $libname.a'
9831 dynamic_linker='OS/2 ld.exe'
9832 shlibpath_var=LIBPATH
9835 osf3* | osf4* | osf5*)
9839 soname_spec='${libname}${release}${shared_ext}$major'
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841 shlibpath_var=LD_LIBRARY_PATH
9842 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9843 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9851 soname_spec='${libname}${release}${shared_ext}$major'
9852 shlibpath_var=LD_LIBRARY_PATH
9853 shlibpath_overrides_runpath=yes
9854 hardcode_into_libs=yes
9855 # ldd complains unless libraries are executable
9856 postinstall_cmds='chmod +x $lib'
9861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9862 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9863 shlibpath_var=LD_LIBRARY_PATH
9864 shlibpath_overrides_runpath=yes
9865 if test "$with_gnu_ld" = yes; then
9873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9874 soname_spec='${libname}${release}${shared_ext}$major'
9875 shlibpath_var=LD_LIBRARY_PATH
9876 case $host_vendor in
9878 shlibpath_overrides_runpath=no
9880 export_dynamic_flag_spec='${wl}-Blargedynsym'
9881 runpath_var=LD_RUN_PATH
9889 shlibpath_overrides_runpath=no
9890 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9896 if test -d /usr/nec ;then
9898 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9899 soname_spec='$libname${shared_ext}.$major'
9900 shlibpath_var=LD_LIBRARY_PATH
9904 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9905 version_type=freebsd-elf
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 hardcode_into_libs=yes
9912 if test "$with_gnu_ld" = yes; then
9913 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9914 shlibpath_overrides_runpath=no
9916 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9917 shlibpath_overrides_runpath=yes
9920 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9924 sys_lib_dlsearch_path_spec='/usr/lib'
9929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9930 soname_spec='${libname}${release}${shared_ext}$major'
9931 shlibpath_var=LD_LIBRARY_PATH
9938 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9939 echo "${ECHO_T}$dynamic_linker" >&6; }
9940 test "$dynamic_linker" = no && can_build_shared=no
9942 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9943 if test "$GCC" = yes; then
9944 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9948 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9949 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9950 if test "${libltdl_cv_shlibext+set}" = set; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9955 eval libltdl_cv_shlibext=$shrext_cmds
9958 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
9959 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
9960 if test -n "$libltdl_cv_shlibext"; then
9962 cat >>confdefs.h <<_ACEOF
9963 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
9969 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
9970 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
9971 if test "${libltdl_cv_shlibpath_var+set}" = set; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 libltdl_cv_shlibpath_var="$shlibpath_var"
9976 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
9977 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
9978 if test -n "$libltdl_cv_shlibpath_var"; then
9980 cat >>confdefs.h <<_ACEOF
9981 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
9987 { echo "$as_me:$LINENO: checking for the default library search path" >&5
9988 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
9989 if test "${libltdl_cv_sys_search_path+set}" = set; then
9990 echo $ECHO_N "(cached) $ECHO_C" >&6
9992 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
9994 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
9995 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
9996 if test -n "$libltdl_cv_sys_search_path"; then
9998 for dir in $libltdl_cv_sys_search_path; do
9999 if test -z "$sys_search_path"; then
10000 sys_search_path="$dir"
10002 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10006 cat >>confdefs.h <<_ACEOF
10007 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10012 { echo "$as_me:$LINENO: checking for objdir" >&5
10013 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10014 if test "${libltdl_cv_objdir+set}" = set; then
10015 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 libltdl_cv_objdir="$objdir"
10018 if test -n "$objdir"; then
10021 rm -f .libs 2>/dev/null
10022 mkdir .libs 2>/dev/null
10023 if test -d .libs; then
10024 libltdl_cv_objdir=.libs
10026 # MS-DOS does not allow filenames that begin with a dot.
10027 libltdl_cv_objdir=_libs
10029 rmdir .libs 2>/dev/null
10033 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10034 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10036 cat >>confdefs.h <<_ACEOF
10037 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10045 # Check for command to grab the raw symbol name followed by C symbol from nm.
10046 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10047 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10048 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10049 echo $ECHO_N "(cached) $ECHO_C" >&6
10052 # These are sane defaults that work on at least a few old systems.
10053 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10055 # Character class describing NM global symbol codes.
10056 symcode='[BCDEGRST]'
10058 # Regexp to match symbols that can be accessed directly from C.
10059 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10061 # Transform an extracted symbol line into a proper C declaration
10062 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10064 # Transform an extracted symbol line into symbol name and symbol address
10065 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'"
10067 # Define system-specific variables.
10072 cygwin* | mingw* | pw32*)
10073 symcode='[ABCDGISTW]'
10075 hpux*) # Its linker distinguishes data from code symbols
10076 if test "$host_cpu" = ia64; then
10077 symcode='[ABCDEGRST]'
10079 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10080 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'"
10083 if test "$host_cpu" = ia64; then
10084 symcode='[ABCDGIRSTW]'
10085 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10086 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'"
10089 irix* | nonstopux*)
10090 symcode='[BCDEGRST]'
10093 symcode='[BCDEGQRST]'
10104 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10112 # Handle CRLF in mingw tool chain
10116 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10120 # If we're using GNU nm, then use its standard symbol codes.
10121 case `$NM -V 2>&1` in
10122 *GNU* | *'with BFD'*)
10123 symcode='[ABCDGIRSTW]' ;;
10126 # Try without a prefix undercore, then with it.
10127 for ac_symprfx in "" "_"; do
10129 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10130 symxfrm="\\1 $ac_symprfx\\2 \\2"
10132 # Write the raw and C identifiers.
10133 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10135 # Check to see that the pipe works correctly.
10139 cat > conftest.$ac_ext <<EOF
10144 void nm_test_func(){}
10148 int main(){nm_test_var='a';nm_test_func();return(0);}
10151 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10152 (eval $ac_compile) 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; then
10156 # Now try to grab the symbols.
10158 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10159 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && test -s "$nlist"; then
10163 # Try sorting and uniquifying the output.
10164 if sort "$nlist" | uniq > "$nlist"T; then
10165 mv -f "$nlist"T "$nlist"
10170 # Make sure that we snagged all the symbols we need.
10171 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10172 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10173 cat <<EOF > conftest.$ac_ext
10179 # Now generate the symbol file.
10180 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10182 cat <<EOF >> conftest.$ac_ext
10183 #if defined (__STDC__) && __STDC__
10184 # define lt_ptr_t void *
10186 # define lt_ptr_t char *
10190 /* The mapping between symbol names and symbols. */
10195 lt_preloaded_symbols[] =
10198 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10199 cat <<\EOF >> conftest.$ac_ext
10207 # Now try linking the two files.
10208 mv conftest.$ac_objext conftstm.$ac_objext
10209 lt_save_LIBS="$LIBS"
10210 lt_save_CFLAGS="$CFLAGS"
10211 LIBS="conftstm.$ac_objext"
10212 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10213 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10214 (eval $ac_link) 2>&5
10216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10217 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10220 LIBS="$lt_save_LIBS"
10221 CFLAGS="$lt_save_CFLAGS"
10223 echo "cannot find nm_test_func in $nlist" >&5
10226 echo "cannot find nm_test_var in $nlist" >&5
10229 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10232 echo "$progname: failed program was:" >&5
10233 cat conftest.$ac_ext >&5
10235 rm -f conftest* conftst*
10237 # Do not use the global_symbol_pipe unless it works.
10238 if test "$pipe_works" = yes; then
10241 lt_cv_sys_global_symbol_pipe=
10247 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10248 lt_cv_sys_global_symbol_to_cdecl=
10250 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10251 { echo "$as_me:$LINENO: result: failed" >&5
10252 echo "${ECHO_T}failed" >&6; }
10254 { echo "$as_me:$LINENO: result: ok" >&5
10255 echo "${ECHO_T}ok" >&6; }
10259 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10260 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10261 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10265 libltdl_cv_preloaded_symbols=yes
10267 libltdl_cv_preloaded_symbols=no
10271 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10272 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10273 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10275 cat >>confdefs.h <<\_ACEOF
10276 #define HAVE_PRELOADED_SYMBOLS 1
10284 ac_cpp='$CPP $CPPFLAGS'
10285 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10286 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10287 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10290 { echo "$as_me:$LINENO: checking for shl_load" >&5
10291 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10292 if test "${ac_cv_func_shl_load+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10295 cat >conftest.$ac_ext <<_ACEOF
10298 cat confdefs.h >>conftest.$ac_ext
10299 cat >>conftest.$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10301 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10303 #define shl_load innocuous_shl_load
10305 /* System header to define __stub macros and hopefully few prototypes,
10306 which can conflict with char shl_load (); below.
10307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10308 <limits.h> exists even on freestanding compilers. */
10311 # include <limits.h>
10313 # include <assert.h>
10318 /* Override any GCC internal prototype to avoid an error.
10319 Use char because int might match the return type of a GCC
10320 builtin and then its argument prototype would still apply. */
10325 /* The GNU C library defines this for functions which it implements
10326 to always fail with ENOSYS. Some functions are actually named
10327 something starting with __ and the normal name is an alias. */
10328 #if defined __stub_shl_load || defined __stub___shl_load
10335 return shl_load ();
10340 rm -f conftest.$ac_objext conftest$ac_exeext
10341 if { (ac_try="$ac_link"
10342 case "(($ac_try" in
10343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10344 *) ac_try_echo=$ac_try;;
10346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10347 (eval "$ac_link") 2>conftest.er1
10349 grep -v '^ *+' conftest.er1 >conftest.err
10351 cat conftest.err >&5
10352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10353 (exit $ac_status); } &&
10354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10355 { (case "(($ac_try" in
10356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_try") 2>&5
10362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10363 (exit $ac_status); }; } &&
10364 { ac_try='test -s conftest$ac_exeext'
10365 { (case "(($ac_try" in
10366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10367 *) ac_try_echo=$ac_try;;
10369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10370 (eval "$ac_try") 2>&5
10372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10373 (exit $ac_status); }; }; then
10374 ac_cv_func_shl_load=yes
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 ac_cv_func_shl_load=no
10382 rm -f core conftest.err conftest.$ac_objext \
10383 conftest$ac_exeext conftest.$ac_ext
10385 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10386 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10387 if test $ac_cv_func_shl_load = yes; then
10389 cat >>confdefs.h <<\_ACEOF
10390 #define HAVE_SHL_LOAD 1
10394 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10395 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10396 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 ac_check_lib_save_LIBS=$LIBS
10401 cat >conftest.$ac_ext <<_ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10408 /* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10418 return shl_load ();
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (ac_try="$ac_link"
10425 case "(($ac_try" in
10426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10427 *) ac_try_echo=$ac_try;;
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_link") 2>conftest.er1
10432 grep -v '^ *+' conftest.er1 >conftest.err
10434 cat conftest.err >&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } &&
10437 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10438 { (case "(($ac_try" in
10439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10440 *) ac_try_echo=$ac_try;;
10442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10443 (eval "$ac_try") 2>&5
10445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10446 (exit $ac_status); }; } &&
10447 { ac_try='test -s conftest$ac_exeext'
10448 { (case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_try") 2>&5
10455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10456 (exit $ac_status); }; }; then
10457 ac_cv_lib_dld_shl_load=yes
10459 echo "$as_me: failed program was:" >&5
10460 sed 's/^/| /' conftest.$ac_ext >&5
10462 ac_cv_lib_dld_shl_load=no
10465 rm -f core conftest.err conftest.$ac_objext \
10466 conftest$ac_exeext conftest.$ac_ext
10467 LIBS=$ac_check_lib_save_LIBS
10469 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10470 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10471 if test $ac_cv_lib_dld_shl_load = yes; then
10473 cat >>confdefs.h <<\_ACEOF
10474 #define HAVE_SHL_LOAD 1
10477 LIBADD_DL="$LIBADD_DL -ldld"
10479 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10480 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10481 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10482 echo $ECHO_N "(cached) $ECHO_C" >&6
10484 ac_check_lib_save_LIBS=$LIBS
10486 cat >conftest.$ac_ext <<_ACEOF
10489 cat confdefs.h >>conftest.$ac_ext
10490 cat >>conftest.$ac_ext <<_ACEOF
10491 /* end confdefs.h. */
10493 /* Override any GCC internal prototype to avoid an error.
10494 Use char because int might match the return type of a GCC
10495 builtin and then its argument prototype would still apply. */
10508 rm -f conftest.$ac_objext conftest$ac_exeext
10509 if { (ac_try="$ac_link"
10510 case "(($ac_try" in
10511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10512 *) ac_try_echo=$ac_try;;
10514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10515 (eval "$ac_link") 2>conftest.er1
10517 grep -v '^ *+' conftest.er1 >conftest.err
10519 cat conftest.err >&5
10520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10521 (exit $ac_status); } &&
10522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10523 { (case "(($ac_try" in
10524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10525 *) ac_try_echo=$ac_try;;
10527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10528 (eval "$ac_try") 2>&5
10530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10531 (exit $ac_status); }; } &&
10532 { ac_try='test -s conftest$ac_exeext'
10533 { (case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10538 (eval "$ac_try") 2>&5
10540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10541 (exit $ac_status); }; }; then
10542 ac_cv_lib_dl_dlopen=yes
10544 echo "$as_me: failed program was:" >&5
10545 sed 's/^/| /' conftest.$ac_ext >&5
10547 ac_cv_lib_dl_dlopen=no
10550 rm -f core conftest.err conftest.$ac_objext \
10551 conftest$ac_exeext conftest.$ac_ext
10552 LIBS=$ac_check_lib_save_LIBS
10554 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10555 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10556 if test $ac_cv_lib_dl_dlopen = yes; then
10558 cat >>confdefs.h <<\_ACEOF
10559 #define HAVE_LIBDL 1
10562 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10564 cat >conftest.$ac_ext <<_ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10571 # include <dlfcn.h>
10582 rm -f conftest.$ac_objext conftest$ac_exeext
10583 if { (ac_try="$ac_link"
10584 case "(($ac_try" in
10585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10586 *) ac_try_echo=$ac_try;;
10588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10589 (eval "$ac_link") 2>conftest.er1
10591 grep -v '^ *+' conftest.er1 >conftest.err
10593 cat conftest.err >&5
10594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10595 (exit $ac_status); } &&
10596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10597 { (case "(($ac_try" in
10598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10599 *) ac_try_echo=$ac_try;;
10601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10602 (eval "$ac_try") 2>&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); }; } &&
10606 { ac_try='test -s conftest$ac_exeext'
10607 { (case "(($ac_try" in
10608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10609 *) ac_try_echo=$ac_try;;
10611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10612 (eval "$ac_try") 2>&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); }; }; then
10617 cat >>confdefs.h <<\_ACEOF
10618 #define HAVE_LIBDL 1
10620 libltdl_cv_func_dlopen="yes"
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10625 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10626 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10627 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10628 echo $ECHO_N "(cached) $ECHO_C" >&6
10630 ac_check_lib_save_LIBS=$LIBS
10631 LIBS="-lsvld $LIBS"
10632 cat >conftest.$ac_ext <<_ACEOF
10635 cat confdefs.h >>conftest.$ac_ext
10636 cat >>conftest.$ac_ext <<_ACEOF
10637 /* end confdefs.h. */
10639 /* Override any GCC internal prototype to avoid an error.
10640 Use char because int might match the return type of a GCC
10641 builtin and then its argument prototype would still apply. */
10654 rm -f conftest.$ac_objext conftest$ac_exeext
10655 if { (ac_try="$ac_link"
10656 case "(($ac_try" in
10657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10658 *) ac_try_echo=$ac_try;;
10660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10661 (eval "$ac_link") 2>conftest.er1
10663 grep -v '^ *+' conftest.er1 >conftest.err
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } &&
10668 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10669 { (case "(($ac_try" in
10670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10671 *) ac_try_echo=$ac_try;;
10673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10674 (eval "$ac_try") 2>&5
10676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10677 (exit $ac_status); }; } &&
10678 { ac_try='test -s conftest$ac_exeext'
10679 { (case "(($ac_try" in
10680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10681 *) ac_try_echo=$ac_try;;
10683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10684 (eval "$ac_try") 2>&5
10686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10687 (exit $ac_status); }; }; then
10688 ac_cv_lib_svld_dlopen=yes
10690 echo "$as_me: failed program was:" >&5
10691 sed 's/^/| /' conftest.$ac_ext >&5
10693 ac_cv_lib_svld_dlopen=no
10696 rm -f core conftest.err conftest.$ac_objext \
10697 conftest$ac_exeext conftest.$ac_ext
10698 LIBS=$ac_check_lib_save_LIBS
10700 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10701 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10702 if test $ac_cv_lib_svld_dlopen = yes; then
10704 cat >>confdefs.h <<\_ACEOF
10705 #define HAVE_LIBDL 1
10708 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10710 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10711 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10712 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10713 echo $ECHO_N "(cached) $ECHO_C" >&6
10715 ac_check_lib_save_LIBS=$LIBS
10717 cat >conftest.$ac_ext <<_ACEOF
10720 cat confdefs.h >>conftest.$ac_ext
10721 cat >>conftest.$ac_ext <<_ACEOF
10722 /* end confdefs.h. */
10724 /* Override any GCC internal prototype to avoid an error.
10725 Use char because int might match the return type of a GCC
10726 builtin and then its argument prototype would still apply. */
10734 return dld_link ();
10739 rm -f conftest.$ac_objext conftest$ac_exeext
10740 if { (ac_try="$ac_link"
10741 case "(($ac_try" in
10742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10743 *) ac_try_echo=$ac_try;;
10745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10746 (eval "$ac_link") 2>conftest.er1
10748 grep -v '^ *+' conftest.er1 >conftest.err
10750 cat conftest.err >&5
10751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10752 (exit $ac_status); } &&
10753 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10754 { (case "(($ac_try" in
10755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10756 *) ac_try_echo=$ac_try;;
10758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10759 (eval "$ac_try") 2>&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); }; } &&
10763 { ac_try='test -s conftest$ac_exeext'
10764 { (case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_try") 2>&5
10771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10772 (exit $ac_status); }; }; then
10773 ac_cv_lib_dld_dld_link=yes
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10778 ac_cv_lib_dld_dld_link=no
10781 rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LIBS=$ac_check_lib_save_LIBS
10785 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10786 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10787 if test $ac_cv_lib_dld_dld_link = yes; then
10789 cat >>confdefs.h <<\_ACEOF
10793 LIBADD_DL="$LIBADD_DL -ldld"
10795 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10796 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10797 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 cat >conftest.$ac_ext <<_ACEOF
10803 cat confdefs.h >>conftest.$ac_ext
10804 cat >>conftest.$ac_ext <<_ACEOF
10805 /* end confdefs.h. */
10806 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10807 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10808 #define _dyld_func_lookup innocuous__dyld_func_lookup
10810 /* System header to define __stub macros and hopefully few prototypes,
10811 which can conflict with char _dyld_func_lookup (); below.
10812 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10813 <limits.h> exists even on freestanding compilers. */
10816 # include <limits.h>
10818 # include <assert.h>
10821 #undef _dyld_func_lookup
10823 /* Override any GCC internal prototype to avoid an error.
10824 Use char because int might match the return type of a GCC
10825 builtin and then its argument prototype would still apply. */
10829 char _dyld_func_lookup ();
10830 /* The GNU C library defines this for functions which it implements
10831 to always fail with ENOSYS. Some functions are actually named
10832 something starting with __ and the normal name is an alias. */
10833 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10840 return _dyld_func_lookup ();
10845 rm -f conftest.$ac_objext conftest$ac_exeext
10846 if { (ac_try="$ac_link"
10847 case "(($ac_try" in
10848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10849 *) ac_try_echo=$ac_try;;
10851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10852 (eval "$ac_link") 2>conftest.er1
10854 grep -v '^ *+' conftest.er1 >conftest.err
10856 cat conftest.err >&5
10857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10858 (exit $ac_status); } &&
10859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10860 { (case "(($ac_try" in
10861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10862 *) ac_try_echo=$ac_try;;
10864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10865 (eval "$ac_try") 2>&5
10867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10868 (exit $ac_status); }; } &&
10869 { ac_try='test -s conftest$ac_exeext'
10870 { (case "(($ac_try" in
10871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10872 *) ac_try_echo=$ac_try;;
10874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10875 (eval "$ac_try") 2>&5
10877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10878 (exit $ac_status); }; }; then
10879 ac_cv_func__dyld_func_lookup=yes
10881 echo "$as_me: failed program was:" >&5
10882 sed 's/^/| /' conftest.$ac_ext >&5
10884 ac_cv_func__dyld_func_lookup=no
10887 rm -f core conftest.err conftest.$ac_objext \
10888 conftest$ac_exeext conftest.$ac_ext
10890 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10891 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10892 if test $ac_cv_func__dyld_func_lookup = yes; then
10894 cat >>confdefs.h <<\_ACEOF
10895 #define HAVE_DYLD 1
10909 rm -f core conftest.err conftest.$ac_objext \
10910 conftest$ac_exeext conftest.$ac_ext
10921 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10923 lt_save_LIBS="$LIBS"
10924 LIBS="$LIBS $LIBADD_DL"
10926 for ac_func in dlerror
10928 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10929 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10930 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10931 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 cat >conftest.$ac_ext <<_ACEOF
10937 cat confdefs.h >>conftest.$ac_ext
10938 cat >>conftest.$ac_ext <<_ACEOF
10939 /* end confdefs.h. */
10940 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10941 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10942 #define $ac_func innocuous_$ac_func
10944 /* System header to define __stub macros and hopefully few prototypes,
10945 which can conflict with char $ac_func (); below.
10946 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10947 <limits.h> exists even on freestanding compilers. */
10950 # include <limits.h>
10952 # include <assert.h>
10957 /* Override any GCC internal prototype to avoid an error.
10958 Use char because int might match the return type of a GCC
10959 builtin and then its argument prototype would still apply. */
10964 /* The GNU C library defines this for functions which it implements
10965 to always fail with ENOSYS. Some functions are actually named
10966 something starting with __ and the normal name is an alias. */
10967 #if defined __stub_$ac_func || defined __stub___$ac_func
10974 return $ac_func ();
10979 rm -f conftest.$ac_objext conftest$ac_exeext
10980 if { (ac_try="$ac_link"
10981 case "(($ac_try" in
10982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10983 *) ac_try_echo=$ac_try;;
10985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10986 (eval "$ac_link") 2>conftest.er1
10988 grep -v '^ *+' conftest.er1 >conftest.err
10990 cat conftest.err >&5
10991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10992 (exit $ac_status); } &&
10993 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10994 { (case "(($ac_try" in
10995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10996 *) ac_try_echo=$ac_try;;
10998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10999 (eval "$ac_try") 2>&5
11001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11002 (exit $ac_status); }; } &&
11003 { ac_try='test -s conftest$ac_exeext'
11004 { (case "(($ac_try" in
11005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11006 *) ac_try_echo=$ac_try;;
11008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11009 (eval "$ac_try") 2>&5
11011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012 (exit $ac_status); }; }; then
11013 eval "$as_ac_var=yes"
11015 echo "$as_me: failed program was:" >&5
11016 sed 's/^/| /' conftest.$ac_ext >&5
11018 eval "$as_ac_var=no"
11021 rm -f core conftest.err conftest.$ac_objext \
11022 conftest$ac_exeext conftest.$ac_ext
11024 ac_res=`eval echo '${'$as_ac_var'}'`
11025 { echo "$as_me:$LINENO: result: $ac_res" >&5
11026 echo "${ECHO_T}$ac_res" >&6; }
11027 if test `eval echo '${'$as_ac_var'}'` = yes; then
11028 cat >>confdefs.h <<_ACEOF
11029 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11035 LIBS="$lt_save_LIBS"
11038 ac_cpp='$CPP $CPPFLAGS'
11039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11045 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11046 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11047 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11048 echo $ECHO_N "(cached) $ECHO_C" >&6
11050 ac_cv_sys_symbol_underscore=no
11051 cat > conftest.$ac_ext <<EOF
11052 void nm_test_func(){}
11053 int main(){nm_test_func;return 0;}
11055 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11056 (eval $ac_compile) 2>&5
11058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11059 (exit $ac_status); }; then
11060 # Now try to grab the symbols.
11061 ac_nlist=conftest.nm
11062 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11063 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11066 (exit $ac_status); } && test -s "$ac_nlist"; then
11067 # See whether the symbols have a leading underscore.
11068 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11069 ac_cv_sys_symbol_underscore=yes
11071 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11074 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11078 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11081 echo "configure: failed program was:" >&5
11087 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11088 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11091 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11092 if test x"$libltdl_cv_func_dlopen" = xyes ||
11093 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11094 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11095 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11096 if test "${libltdl_cv_need_uscore+set}" = set; then
11097 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 libltdl_cv_need_uscore=unknown
11101 LIBS="$LIBS $LIBADD_DL"
11102 if test "$cross_compiling" = yes; then :
11103 libltdl_cv_need_uscore=cross
11105 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11106 lt_status=$lt_dlunknown
11107 cat > conftest.$ac_ext <<EOF
11108 #line 11108 "configure"
11109 #include "confdefs.h"
11118 # define LT_DLGLOBAL RTLD_GLOBAL
11121 # define LT_DLGLOBAL DL_GLOBAL
11123 # define LT_DLGLOBAL 0
11127 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11128 find out it does not work in some platform. */
11129 #ifndef LT_DLLAZY_OR_NOW
11131 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11134 # define LT_DLLAZY_OR_NOW DL_LAZY
11137 # define LT_DLLAZY_OR_NOW RTLD_NOW
11140 # define LT_DLLAZY_OR_NOW DL_NOW
11142 # define LT_DLLAZY_OR_NOW 0
11150 extern "C" void exit (int);
11153 void fnord() { int i=42;}
11156 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11157 int status = $lt_dlunknown;
11161 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11162 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11163 /* dlclose (self); */
11171 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11172 (eval $ac_link) 2>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11176 (./conftest; exit; ) >&5 2>/dev/null
11178 case x$lt_status in
11179 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11180 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11181 x$lt_dlunknown|x*) ;;
11184 # compilation failed
11193 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11194 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11198 if test x"$libltdl_cv_need_uscore" = xyes; then
11200 cat >>confdefs.h <<\_ACEOF
11201 #define NEED_USCORE 1
11207 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11208 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11209 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11210 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 # PORTME does your system automatically load deplibs for dlopen?
11213 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11214 # For now, we just catch OSes we know something about -- in the
11215 # future, we'll try test this programmatically.
11216 libltdl_cv_sys_dlopen_deplibs=unknown
11218 aix3*|aix4.1.*|aix4.2.*)
11219 # Unknown whether this is true for these versions of AIX, but
11220 # we want this `case' here to explicitly catch those versions.
11221 libltdl_cv_sys_dlopen_deplibs=unknown
11224 libltdl_cv_sys_dlopen_deplibs=yes
11227 # Assuming the user has installed a libdl from somewhere, this is true
11228 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11229 libltdl_cv_sys_dlopen_deplibs=yes
11231 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11232 # GNU and its variants, using gnu ld.so (Glibc)
11233 libltdl_cv_sys_dlopen_deplibs=yes
11236 libltdl_cv_sys_dlopen_deplibs=yes
11239 libltdl_cv_sys_dlopen_deplibs=yes
11241 irix[12345]*|irix6.[01]*)
11242 # Catch all versions of IRIX before 6.2, and indicate that we don't
11243 # know how it worked for any of those versions.
11244 libltdl_cv_sys_dlopen_deplibs=unknown
11247 # The case above catches anything before 6.2, and it's known that
11248 # at 6.2 and later dlopen does load deplibs.
11249 libltdl_cv_sys_dlopen_deplibs=yes
11252 libltdl_cv_sys_dlopen_deplibs=yes
11255 libltdl_cv_sys_dlopen_deplibs=yes
11258 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11259 # it did *not* use an RPATH in a shared library to find objects the
11260 # library depends on, so we explictly say `no'.
11261 libltdl_cv_sys_dlopen_deplibs=no
11263 osf5.0|osf5.0a|osf5.1)
11264 # dlopen *does* load deplibs and with the right loader patch applied
11265 # it even uses RPATH in a shared library to search for shared objects
11266 # that the library depends on, but there's no easy way to know if that
11267 # patch is installed. Since this is the case, all we can really
11268 # say is unknown -- it depends on the patch being installed. If
11269 # it is, this changes to `yes'. Without it, it would be `no'.
11270 libltdl_cv_sys_dlopen_deplibs=unknown
11273 # the two cases above should catch all versions of osf <= 5.1. Read
11274 # the comments above for what we know about them.
11275 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11276 # is used to find them so we can finally say `yes'.
11277 libltdl_cv_sys_dlopen_deplibs=yes
11280 libltdl_cv_sys_dlopen_deplibs=yes
11282 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11283 libltdl_cv_sys_dlopen_deplibs=yes
11288 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11289 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11290 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11292 cat >>confdefs.h <<\_ACEOF
11293 #define LTDL_DLOPEN_DEPLIBS 1
11299 for ac_header in argz.h
11301 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11302 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11303 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11304 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11306 echo $ECHO_N "(cached) $ECHO_C" >&6
11308 ac_res=`eval echo '${'$as_ac_Header'}'`
11309 { echo "$as_me:$LINENO: result: $ac_res" >&5
11310 echo "${ECHO_T}$ac_res" >&6; }
11312 # Is the header compilable?
11313 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11314 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11315 cat >conftest.$ac_ext <<_ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 $ac_includes_default
11322 #include <$ac_header>
11324 rm -f conftest.$ac_objext
11325 if { (ac_try="$ac_compile"
11326 case "(($ac_try" in
11327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328 *) ac_try_echo=$ac_try;;
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331 (eval "$ac_compile") 2>conftest.er1
11333 grep -v '^ *+' conftest.er1 >conftest.err
11335 cat conftest.err >&5
11336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } &&
11338 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11339 { (case "(($ac_try" in
11340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341 *) ac_try_echo=$ac_try;;
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344 (eval "$ac_try") 2>&5
11346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347 (exit $ac_status); }; } &&
11348 { ac_try='test -s conftest.$ac_objext'
11349 { (case "(($ac_try" in
11350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351 *) ac_try_echo=$ac_try;;
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354 (eval "$ac_try") 2>&5
11356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); }; }; then
11358 ac_header_compiler=yes
11360 echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11363 ac_header_compiler=no
11366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11368 echo "${ECHO_T}$ac_header_compiler" >&6; }
11370 # Is the header present?
11371 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11372 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11373 cat >conftest.$ac_ext <<_ACEOF
11376 cat confdefs.h >>conftest.$ac_ext
11377 cat >>conftest.$ac_ext <<_ACEOF
11378 /* end confdefs.h. */
11379 #include <$ac_header>
11381 if { (ac_try="$ac_cpp conftest.$ac_ext"
11382 case "(($ac_try" in
11383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11384 *) ac_try_echo=$ac_try;;
11386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11389 grep -v '^ *+' conftest.er1 >conftest.err
11391 cat conftest.err >&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); } >/dev/null; then
11394 if test -s conftest.err; then
11395 ac_cpp_err=$ac_c_preproc_warn_flag
11396 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11403 if test -z "$ac_cpp_err"; then
11404 ac_header_preproc=yes
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11409 ac_header_preproc=no
11412 rm -f conftest.err conftest.$ac_ext
11413 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11414 echo "${ECHO_T}$ac_header_preproc" >&6; }
11416 # So? What about this header?
11417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11419 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11420 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11423 ac_header_preproc=yes
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11427 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11429 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11431 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11433 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11437 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11439 ## ----------------------------------- ##
11440 ## Report this to llvmbugs@cs.uiuc.edu ##
11441 ## ----------------------------------- ##
11443 ) | sed "s/^/$as_me: WARNING: /" >&2
11446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11449 echo $ECHO_N "(cached) $ECHO_C" >&6
11451 eval "$as_ac_Header=\$ac_header_preproc"
11453 ac_res=`eval echo '${'$as_ac_Header'}'`
11454 { echo "$as_me:$LINENO: result: $ac_res" >&5
11455 echo "${ECHO_T}$ac_res" >&6; }
11458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11459 cat >>confdefs.h <<_ACEOF
11460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11468 { echo "$as_me:$LINENO: checking for error_t" >&5
11469 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11470 if test "${ac_cv_type_error_t+set}" = set; then
11471 echo $ECHO_N "(cached) $ECHO_C" >&6
11473 cat >conftest.$ac_ext <<_ACEOF
11476 cat confdefs.h >>conftest.$ac_ext
11477 cat >>conftest.$ac_ext <<_ACEOF
11478 /* end confdefs.h. */
11483 typedef error_t ac__type_new_;
11487 if ((ac__type_new_ *) 0)
11489 if (sizeof (ac__type_new_))
11495 rm -f conftest.$ac_objext
11496 if { (ac_try="$ac_compile"
11497 case "(($ac_try" in
11498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_compile") 2>conftest.er1
11504 grep -v '^ *+' conftest.er1 >conftest.err
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } &&
11509 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11510 { (case "(($ac_try" in
11511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11512 *) ac_try_echo=$ac_try;;
11514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11515 (eval "$ac_try") 2>&5
11517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11518 (exit $ac_status); }; } &&
11519 { ac_try='test -s conftest.$ac_objext'
11520 { (case "(($ac_try" in
11521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11522 *) ac_try_echo=$ac_try;;
11524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11525 (eval "$ac_try") 2>&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); }; }; then
11529 ac_cv_type_error_t=yes
11531 echo "$as_me: failed program was:" >&5
11532 sed 's/^/| /' conftest.$ac_ext >&5
11534 ac_cv_type_error_t=no
11537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11540 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11541 if test $ac_cv_type_error_t = yes; then
11543 cat >>confdefs.h <<_ACEOF
11544 #define HAVE_ERROR_T 1
11550 cat >>confdefs.h <<\_ACEOF
11551 #define error_t int
11562 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11564 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11565 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11566 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11567 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11568 echo $ECHO_N "(cached) $ECHO_C" >&6
11570 cat >conftest.$ac_ext <<_ACEOF
11573 cat confdefs.h >>conftest.$ac_ext
11574 cat >>conftest.$ac_ext <<_ACEOF
11575 /* end confdefs.h. */
11576 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11577 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11578 #define $ac_func innocuous_$ac_func
11580 /* System header to define __stub macros and hopefully few prototypes,
11581 which can conflict with char $ac_func (); below.
11582 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11583 <limits.h> exists even on freestanding compilers. */
11586 # include <limits.h>
11588 # include <assert.h>
11593 /* Override any GCC internal prototype to avoid an error.
11594 Use char because int might match the return type of a GCC
11595 builtin and then its argument prototype would still apply. */
11600 /* The GNU C library defines this for functions which it implements
11601 to always fail with ENOSYS. Some functions are actually named
11602 something starting with __ and the normal name is an alias. */
11603 #if defined __stub_$ac_func || defined __stub___$ac_func
11610 return $ac_func ();
11615 rm -f conftest.$ac_objext conftest$ac_exeext
11616 if { (ac_try="$ac_link"
11617 case "(($ac_try" in
11618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_link") 2>conftest.er1
11624 grep -v '^ *+' conftest.er1 >conftest.err
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } &&
11629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11630 { (case "(($ac_try" in
11631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11632 *) ac_try_echo=$ac_try;;
11634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11635 (eval "$ac_try") 2>&5
11637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11638 (exit $ac_status); }; } &&
11639 { ac_try='test -s conftest$ac_exeext'
11640 { (case "(($ac_try" in
11641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11642 *) ac_try_echo=$ac_try;;
11644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11645 (eval "$ac_try") 2>&5
11647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11648 (exit $ac_status); }; }; then
11649 eval "$as_ac_var=yes"
11651 echo "$as_me: failed program was:" >&5
11652 sed 's/^/| /' conftest.$ac_ext >&5
11654 eval "$as_ac_var=no"
11657 rm -f core conftest.err conftest.$ac_objext \
11658 conftest$ac_exeext conftest.$ac_ext
11660 ac_res=`eval echo '${'$as_ac_var'}'`
11661 { echo "$as_me:$LINENO: result: $ac_res" >&5
11662 echo "${ECHO_T}$ac_res" >&6; }
11663 if test `eval echo '${'$as_ac_var'}'` = yes; then
11664 cat >>confdefs.h <<_ACEOF
11665 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11698 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 ac_res=`eval echo '${'$as_ac_Header'}'`
11709 { echo "$as_me:$LINENO: result: $ac_res" >&5
11710 echo "${ECHO_T}$ac_res" >&6; }
11712 # Is the header compilable?
11713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11715 cat >conftest.$ac_ext <<_ACEOF
11718 cat confdefs.h >>conftest.$ac_ext
11719 cat >>conftest.$ac_ext <<_ACEOF
11720 /* end confdefs.h. */
11721 $ac_includes_default
11722 #include <$ac_header>
11724 rm -f conftest.$ac_objext
11725 if { (ac_try="$ac_compile"
11726 case "(($ac_try" in
11727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11728 *) ac_try_echo=$ac_try;;
11730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11731 (eval "$ac_compile") 2>conftest.er1
11733 grep -v '^ *+' conftest.er1 >conftest.err
11735 cat conftest.err >&5
11736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11737 (exit $ac_status); } &&
11738 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11739 { (case "(($ac_try" in
11740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11741 *) ac_try_echo=$ac_try;;
11743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11744 (eval "$ac_try") 2>&5
11746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11747 (exit $ac_status); }; } &&
11748 { ac_try='test -s conftest.$ac_objext'
11749 { (case "(($ac_try" in
11750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11751 *) ac_try_echo=$ac_try;;
11753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11754 (eval "$ac_try") 2>&5
11756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11757 (exit $ac_status); }; }; then
11758 ac_header_compiler=yes
11760 echo "$as_me: failed program was:" >&5
11761 sed 's/^/| /' conftest.$ac_ext >&5
11763 ac_header_compiler=no
11766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11767 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11768 echo "${ECHO_T}$ac_header_compiler" >&6; }
11770 # Is the header present?
11771 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11772 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11773 cat >conftest.$ac_ext <<_ACEOF
11776 cat confdefs.h >>conftest.$ac_ext
11777 cat >>conftest.$ac_ext <<_ACEOF
11778 /* end confdefs.h. */
11779 #include <$ac_header>
11781 if { (ac_try="$ac_cpp conftest.$ac_ext"
11782 case "(($ac_try" in
11783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11784 *) ac_try_echo=$ac_try;;
11786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11787 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11789 grep -v '^ *+' conftest.er1 >conftest.err
11791 cat conftest.err >&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); } >/dev/null; then
11794 if test -s conftest.err; then
11795 ac_cpp_err=$ac_c_preproc_warn_flag
11796 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11803 if test -z "$ac_cpp_err"; then
11804 ac_header_preproc=yes
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 ac_header_preproc=no
11812 rm -f conftest.err conftest.$ac_ext
11813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11814 echo "${ECHO_T}$ac_header_preproc" >&6; }
11816 # So? What about this header?
11817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11823 ac_header_preproc=yes
11826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11839 ## ----------------------------------- ##
11840 ## Report this to llvmbugs@cs.uiuc.edu ##
11841 ## ----------------------------------- ##
11843 ) | sed "s/^/$as_me: WARNING: /" >&2
11846 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11848 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11849 echo $ECHO_N "(cached) $ECHO_C" >&6
11851 eval "$as_ac_Header=\$ac_header_preproc"
11853 ac_res=`eval echo '${'$as_ac_Header'}'`
11854 { echo "$as_me:$LINENO: result: $ac_res" >&5
11855 echo "${ECHO_T}$ac_res" >&6; }
11858 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11859 cat >>confdefs.h <<_ACEOF
11860 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11871 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11873 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11875 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11877 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11878 echo $ECHO_N "(cached) $ECHO_C" >&6
11880 ac_res=`eval echo '${'$as_ac_Header'}'`
11881 { echo "$as_me:$LINENO: result: $ac_res" >&5
11882 echo "${ECHO_T}$ac_res" >&6; }
11884 # Is the header compilable?
11885 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11886 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11887 cat >conftest.$ac_ext <<_ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893 $ac_includes_default
11894 #include <$ac_header>
11896 rm -f conftest.$ac_objext
11897 if { (ac_try="$ac_compile"
11898 case "(($ac_try" in
11899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11900 *) ac_try_echo=$ac_try;;
11902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11903 (eval "$ac_compile") 2>conftest.er1
11905 grep -v '^ *+' conftest.er1 >conftest.err
11907 cat conftest.err >&5
11908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11909 (exit $ac_status); } &&
11910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11911 { (case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_try") 2>&5
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; } &&
11920 { ac_try='test -s conftest.$ac_objext'
11921 { (case "(($ac_try" in
11922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11923 *) ac_try_echo=$ac_try;;
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_try") 2>&5
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 ac_header_compiler=yes
11932 echo "$as_me: failed program was:" >&5
11933 sed 's/^/| /' conftest.$ac_ext >&5
11935 ac_header_compiler=no
11938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11940 echo "${ECHO_T}$ac_header_compiler" >&6; }
11942 # Is the header present?
11943 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11944 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11945 cat >conftest.$ac_ext <<_ACEOF
11948 cat confdefs.h >>conftest.$ac_ext
11949 cat >>conftest.$ac_ext <<_ACEOF
11950 /* end confdefs.h. */
11951 #include <$ac_header>
11953 if { (ac_try="$ac_cpp conftest.$ac_ext"
11954 case "(($ac_try" in
11955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11956 *) ac_try_echo=$ac_try;;
11958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11961 grep -v '^ *+' conftest.er1 >conftest.err
11963 cat conftest.err >&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); } >/dev/null; then
11966 if test -s conftest.err; then
11967 ac_cpp_err=$ac_c_preproc_warn_flag
11968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11975 if test -z "$ac_cpp_err"; then
11976 ac_header_preproc=yes
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 ac_header_preproc=no
11984 rm -f conftest.err conftest.$ac_ext
11985 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11986 echo "${ECHO_T}$ac_header_preproc" >&6; }
11988 # So? What about this header?
11989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11991 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11992 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11995 ac_header_preproc=yes
11998 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11999 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12000 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12001 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12002 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12003 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12004 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12005 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12006 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12008 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12009 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12011 ## ----------------------------------- ##
12012 ## Report this to llvmbugs@cs.uiuc.edu ##
12013 ## ----------------------------------- ##
12015 ) | sed "s/^/$as_me: WARNING: /" >&2
12018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12021 echo $ECHO_N "(cached) $ECHO_C" >&6
12023 eval "$as_ac_Header=\$ac_header_preproc"
12025 ac_res=`eval echo '${'$as_ac_Header'}'`
12026 { echo "$as_me:$LINENO: result: $ac_res" >&5
12027 echo "${ECHO_T}$ac_res" >&6; }
12030 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12031 cat >>confdefs.h <<_ACEOF
12032 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12041 for ac_header in string.h strings.h
12043 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12044 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12045 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12046 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 ac_res=`eval echo '${'$as_ac_Header'}'`
12051 { echo "$as_me:$LINENO: result: $ac_res" >&5
12052 echo "${ECHO_T}$ac_res" >&6; }
12054 # Is the header compilable?
12055 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12056 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12057 cat >conftest.$ac_ext <<_ACEOF
12060 cat confdefs.h >>conftest.$ac_ext
12061 cat >>conftest.$ac_ext <<_ACEOF
12062 /* end confdefs.h. */
12063 $ac_includes_default
12064 #include <$ac_header>
12066 rm -f conftest.$ac_objext
12067 if { (ac_try="$ac_compile"
12068 case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12073 (eval "$ac_compile") 2>conftest.er1
12075 grep -v '^ *+' conftest.er1 >conftest.err
12077 cat conftest.err >&5
12078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12079 (exit $ac_status); } &&
12080 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12081 { (case "(($ac_try" in
12082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12083 *) ac_try_echo=$ac_try;;
12085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12086 (eval "$ac_try") 2>&5
12088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12089 (exit $ac_status); }; } &&
12090 { ac_try='test -s conftest.$ac_objext'
12091 { (case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12096 (eval "$ac_try") 2>&5
12098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099 (exit $ac_status); }; }; then
12100 ac_header_compiler=yes
12102 echo "$as_me: failed program was:" >&5
12103 sed 's/^/| /' conftest.$ac_ext >&5
12105 ac_header_compiler=no
12108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12109 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12110 echo "${ECHO_T}$ac_header_compiler" >&6; }
12112 # Is the header present?
12113 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12114 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12115 cat >conftest.$ac_ext <<_ACEOF
12118 cat confdefs.h >>conftest.$ac_ext
12119 cat >>conftest.$ac_ext <<_ACEOF
12120 /* end confdefs.h. */
12121 #include <$ac_header>
12123 if { (ac_try="$ac_cpp conftest.$ac_ext"
12124 case "(($ac_try" in
12125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12126 *) ac_try_echo=$ac_try;;
12128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12129 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12131 grep -v '^ *+' conftest.er1 >conftest.err
12133 cat conftest.err >&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); } >/dev/null; then
12136 if test -s conftest.err; then
12137 ac_cpp_err=$ac_c_preproc_warn_flag
12138 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12145 if test -z "$ac_cpp_err"; then
12146 ac_header_preproc=yes
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 ac_header_preproc=no
12154 rm -f conftest.err conftest.$ac_ext
12155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12156 echo "${ECHO_T}$ac_header_preproc" >&6; }
12158 # So? What about this header?
12159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12165 ac_header_preproc=yes
12168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12181 ## ----------------------------------- ##
12182 ## Report this to llvmbugs@cs.uiuc.edu ##
12183 ## ----------------------------------- ##
12185 ) | sed "s/^/$as_me: WARNING: /" >&2
12188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12191 echo $ECHO_N "(cached) $ECHO_C" >&6
12193 eval "$as_ac_Header=\$ac_header_preproc"
12195 ac_res=`eval echo '${'$as_ac_Header'}'`
12196 { echo "$as_me:$LINENO: result: $ac_res" >&5
12197 echo "${ECHO_T}$ac_res" >&6; }
12200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12201 cat >>confdefs.h <<_ACEOF
12202 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12212 for ac_func in strchr index
12214 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12215 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12216 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12217 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 cat >conftest.$ac_ext <<_ACEOF
12223 cat confdefs.h >>conftest.$ac_ext
12224 cat >>conftest.$ac_ext <<_ACEOF
12225 /* end confdefs.h. */
12226 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12227 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12228 #define $ac_func innocuous_$ac_func
12230 /* System header to define __stub macros and hopefully few prototypes,
12231 which can conflict with char $ac_func (); below.
12232 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12233 <limits.h> exists even on freestanding compilers. */
12236 # include <limits.h>
12238 # include <assert.h>
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12250 /* The GNU C library defines this for functions which it implements
12251 to always fail with ENOSYS. Some functions are actually named
12252 something starting with __ and the normal name is an alias. */
12253 #if defined __stub_$ac_func || defined __stub___$ac_func
12260 return $ac_func ();
12265 rm -f conftest.$ac_objext conftest$ac_exeext
12266 if { (ac_try="$ac_link"
12267 case "(($ac_try" in
12268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12269 *) ac_try_echo=$ac_try;;
12271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12272 (eval "$ac_link") 2>conftest.er1
12274 grep -v '^ *+' conftest.er1 >conftest.err
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12280 { (case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_try") 2>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); }; } &&
12289 { ac_try='test -s conftest$ac_exeext'
12290 { (case "(($ac_try" in
12291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12292 *) ac_try_echo=$ac_try;;
12294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12295 (eval "$ac_try") 2>&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); }; }; then
12299 eval "$as_ac_var=yes"
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12304 eval "$as_ac_var=no"
12307 rm -f core conftest.err conftest.$ac_objext \
12308 conftest$ac_exeext conftest.$ac_ext
12310 ac_res=`eval echo '${'$as_ac_var'}'`
12311 { echo "$as_me:$LINENO: result: $ac_res" >&5
12312 echo "${ECHO_T}$ac_res" >&6; }
12313 if test `eval echo '${'$as_ac_var'}'` = yes; then
12314 cat >>confdefs.h <<_ACEOF
12315 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12323 for ac_func in strrchr rindex
12325 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12326 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12327 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12328 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 cat >conftest.$ac_ext <<_ACEOF
12334 cat confdefs.h >>conftest.$ac_ext
12335 cat >>conftest.$ac_ext <<_ACEOF
12336 /* end confdefs.h. */
12337 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12338 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12339 #define $ac_func innocuous_$ac_func
12341 /* System header to define __stub macros and hopefully few prototypes,
12342 which can conflict with char $ac_func (); below.
12343 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12344 <limits.h> exists even on freestanding compilers. */
12347 # include <limits.h>
12349 # include <assert.h>
12354 /* Override any GCC internal prototype to avoid an error.
12355 Use char because int might match the return type of a GCC
12356 builtin and then its argument prototype would still apply. */
12361 /* The GNU C library defines this for functions which it implements
12362 to always fail with ENOSYS. Some functions are actually named
12363 something starting with __ and the normal name is an alias. */
12364 #if defined __stub_$ac_func || defined __stub___$ac_func
12371 return $ac_func ();
12376 rm -f conftest.$ac_objext conftest$ac_exeext
12377 if { (ac_try="$ac_link"
12378 case "(($ac_try" in
12379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12380 *) ac_try_echo=$ac_try;;
12382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12383 (eval "$ac_link") 2>conftest.er1
12385 grep -v '^ *+' conftest.er1 >conftest.err
12387 cat conftest.err >&5
12388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12389 (exit $ac_status); } &&
12390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12391 { (case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396 (eval "$ac_try") 2>&5
12398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); }; } &&
12400 { ac_try='test -s conftest$ac_exeext'
12401 { (case "(($ac_try" in
12402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12403 *) ac_try_echo=$ac_try;;
12405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12406 (eval "$ac_try") 2>&5
12408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12409 (exit $ac_status); }; }; then
12410 eval "$as_ac_var=yes"
12412 echo "$as_me: failed program was:" >&5
12413 sed 's/^/| /' conftest.$ac_ext >&5
12415 eval "$as_ac_var=no"
12418 rm -f core conftest.err conftest.$ac_objext \
12419 conftest$ac_exeext conftest.$ac_ext
12421 ac_res=`eval echo '${'$as_ac_var'}'`
12422 { echo "$as_me:$LINENO: result: $ac_res" >&5
12423 echo "${ECHO_T}$ac_res" >&6; }
12424 if test `eval echo '${'$as_ac_var'}'` = yes; then
12425 cat >>confdefs.h <<_ACEOF
12426 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12434 for ac_func in memcpy bcopy
12436 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12437 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12438 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12439 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12440 echo $ECHO_N "(cached) $ECHO_C" >&6
12442 cat >conftest.$ac_ext <<_ACEOF
12445 cat confdefs.h >>conftest.$ac_ext
12446 cat >>conftest.$ac_ext <<_ACEOF
12447 /* end confdefs.h. */
12448 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12449 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12450 #define $ac_func innocuous_$ac_func
12452 /* System header to define __stub macros and hopefully few prototypes,
12453 which can conflict with char $ac_func (); below.
12454 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12455 <limits.h> exists even on freestanding compilers. */
12458 # include <limits.h>
12460 # include <assert.h>
12465 /* Override any GCC internal prototype to avoid an error.
12466 Use char because int might match the return type of a GCC
12467 builtin and then its argument prototype would still apply. */
12472 /* The GNU C library defines this for functions which it implements
12473 to always fail with ENOSYS. Some functions are actually named
12474 something starting with __ and the normal name is an alias. */
12475 #if defined __stub_$ac_func || defined __stub___$ac_func
12482 return $ac_func ();
12487 rm -f conftest.$ac_objext conftest$ac_exeext
12488 if { (ac_try="$ac_link"
12489 case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_link") 2>conftest.er1
12496 grep -v '^ *+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } &&
12501 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12502 { (case "(($ac_try" in
12503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12504 *) ac_try_echo=$ac_try;;
12506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12507 (eval "$ac_try") 2>&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); }; } &&
12511 { ac_try='test -s conftest$ac_exeext'
12512 { (case "(($ac_try" in
12513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12514 *) ac_try_echo=$ac_try;;
12516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12517 (eval "$ac_try") 2>&5
12519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12520 (exit $ac_status); }; }; then
12521 eval "$as_ac_var=yes"
12523 echo "$as_me: failed program was:" >&5
12524 sed 's/^/| /' conftest.$ac_ext >&5
12526 eval "$as_ac_var=no"
12529 rm -f core conftest.err conftest.$ac_objext \
12530 conftest$ac_exeext conftest.$ac_ext
12532 ac_res=`eval echo '${'$as_ac_var'}'`
12533 { echo "$as_me:$LINENO: result: $ac_res" >&5
12534 echo "${ECHO_T}$ac_res" >&6; }
12535 if test `eval echo '${'$as_ac_var'}'` = yes; then
12536 cat >>confdefs.h <<_ACEOF
12537 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12545 for ac_func in memmove strcmp
12547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12551 echo $ECHO_N "(cached) $ECHO_C" >&6
12553 cat >conftest.$ac_ext <<_ACEOF
12556 cat confdefs.h >>conftest.$ac_ext
12557 cat >>conftest.$ac_ext <<_ACEOF
12558 /* end confdefs.h. */
12559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12561 #define $ac_func innocuous_$ac_func
12563 /* System header to define __stub macros and hopefully few prototypes,
12564 which can conflict with char $ac_func (); below.
12565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12566 <limits.h> exists even on freestanding compilers. */
12569 # include <limits.h>
12571 # include <assert.h>
12576 /* Override any GCC internal prototype to avoid an error.
12577 Use char because int might match the return type of a GCC
12578 builtin and then its argument prototype would still apply. */
12583 /* The GNU C library defines this for functions which it implements
12584 to always fail with ENOSYS. Some functions are actually named
12585 something starting with __ and the normal name is an alias. */
12586 #if defined __stub_$ac_func || defined __stub___$ac_func
12593 return $ac_func ();
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (ac_try="$ac_link"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>conftest.er1
12607 grep -v '^ *+' conftest.er1 >conftest.err
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } &&
12612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12613 { (case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12618 (eval "$ac_try") 2>&5
12620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12621 (exit $ac_status); }; } &&
12622 { ac_try='test -s conftest$ac_exeext'
12623 { (case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_try") 2>&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 (exit $ac_status); }; }; then
12632 eval "$as_ac_var=yes"
12634 echo "$as_me: failed program was:" >&5
12635 sed 's/^/| /' conftest.$ac_ext >&5
12637 eval "$as_ac_var=no"
12640 rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12643 ac_res=`eval echo '${'$as_ac_var'}'`
12644 { echo "$as_me:$LINENO: result: $ac_res" >&5
12645 echo "${ECHO_T}$ac_res" >&6; }
12646 if test `eval echo '${'$as_ac_var'}'` = yes; then
12647 cat >>confdefs.h <<_ACEOF
12648 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12657 for ac_func in closedir opendir readdir
12659 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12660 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12661 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12662 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12663 echo $ECHO_N "(cached) $ECHO_C" >&6
12665 cat >conftest.$ac_ext <<_ACEOF
12668 cat confdefs.h >>conftest.$ac_ext
12669 cat >>conftest.$ac_ext <<_ACEOF
12670 /* end confdefs.h. */
12671 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12672 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12673 #define $ac_func innocuous_$ac_func
12675 /* System header to define __stub macros and hopefully few prototypes,
12676 which can conflict with char $ac_func (); below.
12677 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12678 <limits.h> exists even on freestanding compilers. */
12681 # include <limits.h>
12683 # include <assert.h>
12688 /* Override any GCC internal prototype to avoid an error.
12689 Use char because int might match the return type of a GCC
12690 builtin and then its argument prototype would still apply. */
12695 /* The GNU C library defines this for functions which it implements
12696 to always fail with ENOSYS. Some functions are actually named
12697 something starting with __ and the normal name is an alias. */
12698 #if defined __stub_$ac_func || defined __stub___$ac_func
12705 return $ac_func ();
12710 rm -f conftest.$ac_objext conftest$ac_exeext
12711 if { (ac_try="$ac_link"
12712 case "(($ac_try" in
12713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12714 *) ac_try_echo=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_link") 2>conftest.er1
12719 grep -v '^ *+' conftest.er1 >conftest.err
12721 cat conftest.err >&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } &&
12724 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12725 { (case "(($ac_try" in
12726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_try") 2>&5
12732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12733 (exit $ac_status); }; } &&
12734 { ac_try='test -s conftest$ac_exeext'
12735 { (case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_try") 2>&5
12742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12743 (exit $ac_status); }; }; then
12744 eval "$as_ac_var=yes"
12746 echo "$as_me: failed program was:" >&5
12747 sed 's/^/| /' conftest.$ac_ext >&5
12749 eval "$as_ac_var=no"
12752 rm -f core conftest.err conftest.$ac_objext \
12753 conftest$ac_exeext conftest.$ac_ext
12755 ac_res=`eval echo '${'$as_ac_var'}'`
12756 { echo "$as_me:$LINENO: result: $ac_res" >&5
12757 echo "${ECHO_T}$ac_res" >&6; }
12758 if test `eval echo '${'$as_ac_var'}'` = yes; then
12759 cat >>confdefs.h <<_ACEOF
12760 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12768 if test "$WITH_LLVMGCCDIR" = "default" ; then
12769 LLVMGCC="llvm-gcc${EXEEXT}"
12770 LLVMGXX="llvm-g++${EXEEXT}"
12771 LLVMGCCCOMMAND="$LLVMGCC"
12772 LLVMGXXCOMMAND="$LLVMGXX"
12773 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12775 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12777 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12778 set dummy $LLVMGCC; ac_word=$2
12779 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12781 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12782 echo $ECHO_N "(cached) $ECHO_C" >&6
12786 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12790 for as_dir in $PATH
12793 test -z "$as_dir" && as_dir=.
12794 for ac_exec_ext in '' $ac_executable_extensions; do
12795 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12796 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12807 LLVMGCC=$ac_cv_path_LLVMGCC
12808 if test -n "$LLVMGCC"; then
12809 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12810 echo "${ECHO_T}$LLVMGCC" >&6; }
12812 { echo "$as_me:$LINENO: result: no" >&5
12813 echo "${ECHO_T}no" >&6; }
12817 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12818 set dummy $LLVMGXX; ac_word=$2
12819 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12821 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12822 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830 for as_dir in $PATH
12833 test -z "$as_dir" && as_dir=.
12834 for ac_exec_ext in '' $ac_executable_extensions; do
12835 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12836 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12847 LLVMGXX=$ac_cv_path_LLVMGXX
12848 if test -n "$LLVMGXX"; then
12849 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12850 echo "${ECHO_T}$LLVMGXX" >&6; }
12852 { echo "$as_me:$LINENO: result: no" >&5
12853 echo "${ECHO_T}no" >&6; }
12858 if test -z "$LLVMGCC"; then
12859 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12860 LLVMGCCCOMMAND="$LLVMGCC"
12862 if test -z "$LLVMGXX"; then
12863 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12864 LLVMGXXCOMMAND="$LLVMGXX"
12871 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12873 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12878 # Check whether --with-llvmcc was given.
12879 if test "${with_llvmcc+set}" = set; then
12880 withval=$with_llvmcc;
12885 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12886 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12887 if test "$with_llvmcc" != "check"; then
12888 if (test "$with_llvmcc" != "llvm-gcc" &&
12889 test "$with_llvmcc" != "clang" &&
12890 test "$with_llvmcc" != "none"); then
12891 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12892 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12893 { (exit 1); exit 1; }; }
12895 WITH_LLVMCC="$with_llvmcc"
12896 elif test -n "$LLVMGCC"; then
12897 WITH_LLVMCC=llvm-gcc
12898 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12903 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12904 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12905 LLVMCC_OPTION=$WITH_LLVMCC
12908 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12909 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12922 if test "$GCC" != "yes" && test "$ICC" != "yes"
12924 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12925 echo "$as_me: error: gcc|icc required but not found" >&2;}
12926 { (exit 1); exit 1; }; }
12929 if test "$GXX" != "yes" && test "$IXX" != "yes"
12931 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12932 echo "$as_me: error: g++|icc required but not found" >&2;}
12933 { (exit 1); exit 1; }; }
12936 if test "$GCC" = "yes"
12938 cat >conftest.$ac_ext <<_ACEOF
12939 #if !defined(__GNUC__) || __GNUC__ < 3
12940 #error Unsupported GCC version
12944 rm -f conftest.$ac_objext
12945 if { (ac_try="$ac_compile"
12946 case "(($ac_try" in
12947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12948 *) ac_try_echo=$ac_try;;
12950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12951 (eval "$ac_compile") 2>conftest.er1
12953 grep -v '^ *+' conftest.er1 >conftest.err
12955 cat conftest.err >&5
12956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12957 (exit $ac_status); } &&
12958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12959 { (case "(($ac_try" in
12960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12961 *) ac_try_echo=$ac_try;;
12963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12964 (eval "$ac_try") 2>&5
12966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12967 (exit $ac_status); }; } &&
12968 { ac_try='test -s conftest.$ac_objext'
12969 { (case "(($ac_try" in
12970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12971 *) ac_try_echo=$ac_try;;
12973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12974 (eval "$ac_try") 2>&5
12976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12977 (exit $ac_status); }; }; then
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12983 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
12984 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
12985 { (exit 1); exit 1; }; }
12988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12991 if test -z "$llvm_cv_gnu_make_command"
12993 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
12994 echo "$as_me: error: GNU Make required but not found" >&2;}
12995 { (exit 1); exit 1; }; }
12998 { echo "$as_me:$LINENO: result: ok" >&5
12999 echo "${ECHO_T}ok" >&6; }
13001 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13002 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13003 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13005 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13007 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13008 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13012 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13013 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13014 if test "${ac_cv_lib_m_sin+set}" = set; then
13015 echo $ECHO_N "(cached) $ECHO_C" >&6
13017 ac_check_lib_save_LIBS=$LIBS
13019 cat >conftest.$ac_ext <<_ACEOF
13022 cat confdefs.h >>conftest.$ac_ext
13023 cat >>conftest.$ac_ext <<_ACEOF
13024 /* end confdefs.h. */
13026 /* Override any GCC internal prototype to avoid an error.
13027 Use char because int might match the return type of a GCC
13028 builtin and then its argument prototype would still apply. */
13041 rm -f conftest.$ac_objext conftest$ac_exeext
13042 if { (ac_try="$ac_link"
13043 case "(($ac_try" in
13044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13045 *) ac_try_echo=$ac_try;;
13047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13048 (eval "$ac_link") 2>conftest.er1
13050 grep -v '^ *+' conftest.er1 >conftest.err
13052 cat conftest.err >&5
13053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13054 (exit $ac_status); } &&
13055 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13056 { (case "(($ac_try" in
13057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13058 *) ac_try_echo=$ac_try;;
13060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13061 (eval "$ac_try") 2>&5
13063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13064 (exit $ac_status); }; } &&
13065 { ac_try='test -s conftest$ac_exeext'
13066 { (case "(($ac_try" in
13067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13068 *) ac_try_echo=$ac_try;;
13070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13071 (eval "$ac_try") 2>&5
13073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13074 (exit $ac_status); }; }; then
13075 ac_cv_lib_m_sin=yes
13077 echo "$as_me: failed program was:" >&5
13078 sed 's/^/| /' conftest.$ac_ext >&5
13083 rm -f core conftest.err conftest.$ac_objext \
13084 conftest$ac_exeext conftest.$ac_ext
13085 LIBS=$ac_check_lib_save_LIBS
13087 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13088 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13089 if test $ac_cv_lib_m_sin = yes; then
13090 cat >>confdefs.h <<_ACEOF
13091 #define HAVE_LIBM 1
13098 if test "$llvm_cv_os_type" = "MingW" ; then
13100 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13101 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13102 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13103 echo $ECHO_N "(cached) $ECHO_C" >&6
13105 ac_check_lib_save_LIBS=$LIBS
13106 LIBS="-limagehlp $LIBS"
13107 cat >conftest.$ac_ext <<_ACEOF
13110 cat confdefs.h >>conftest.$ac_ext
13111 cat >>conftest.$ac_ext <<_ACEOF
13112 /* end confdefs.h. */
13123 rm -f conftest.$ac_objext conftest$ac_exeext
13124 if { (ac_try="$ac_link"
13125 case "(($ac_try" in
13126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13127 *) ac_try_echo=$ac_try;;
13129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13130 (eval "$ac_link") 2>conftest.er1
13132 grep -v '^ *+' conftest.er1 >conftest.err
13134 cat conftest.err >&5
13135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13136 (exit $ac_status); } &&
13137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13138 { (case "(($ac_try" in
13139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13140 *) ac_try_echo=$ac_try;;
13142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13143 (eval "$ac_try") 2>&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); }; } &&
13147 { ac_try='test -s conftest$ac_exeext'
13148 { (case "(($ac_try" in
13149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13150 *) ac_try_echo=$ac_try;;
13152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13153 (eval "$ac_try") 2>&5
13155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13156 (exit $ac_status); }; }; then
13157 ac_cv_lib_imagehlp_main=yes
13159 echo "$as_me: failed program was:" >&5
13160 sed 's/^/| /' conftest.$ac_ext >&5
13162 ac_cv_lib_imagehlp_main=no
13165 rm -f core conftest.err conftest.$ac_objext \
13166 conftest$ac_exeext conftest.$ac_ext
13167 LIBS=$ac_check_lib_save_LIBS
13169 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13170 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13171 if test $ac_cv_lib_imagehlp_main = yes; then
13172 cat >>confdefs.h <<_ACEOF
13173 #define HAVE_LIBIMAGEHLP 1
13176 LIBS="-limagehlp $LIBS"
13181 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13182 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13183 if test "${ac_cv_lib_psapi_main+set}" = set; then
13184 echo $ECHO_N "(cached) $ECHO_C" >&6
13186 ac_check_lib_save_LIBS=$LIBS
13187 LIBS="-lpsapi $LIBS"
13188 cat >conftest.$ac_ext <<_ACEOF
13191 cat confdefs.h >>conftest.$ac_ext
13192 cat >>conftest.$ac_ext <<_ACEOF
13193 /* end confdefs.h. */
13204 rm -f conftest.$ac_objext conftest$ac_exeext
13205 if { (ac_try="$ac_link"
13206 case "(($ac_try" in
13207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13208 *) ac_try_echo=$ac_try;;
13210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13211 (eval "$ac_link") 2>conftest.er1
13213 grep -v '^ *+' conftest.er1 >conftest.err
13215 cat conftest.err >&5
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); } &&
13218 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13219 { (case "(($ac_try" in
13220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13221 *) ac_try_echo=$ac_try;;
13223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13224 (eval "$ac_try") 2>&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); }; } &&
13228 { ac_try='test -s conftest$ac_exeext'
13229 { (case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234 (eval "$ac_try") 2>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); }; }; then
13238 ac_cv_lib_psapi_main=yes
13240 echo "$as_me: failed program was:" >&5
13241 sed 's/^/| /' conftest.$ac_ext >&5
13243 ac_cv_lib_psapi_main=no
13246 rm -f core conftest.err conftest.$ac_objext \
13247 conftest$ac_exeext conftest.$ac_ext
13248 LIBS=$ac_check_lib_save_LIBS
13250 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13251 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13252 if test $ac_cv_lib_psapi_main = yes; then
13253 cat >>confdefs.h <<_ACEOF
13254 #define HAVE_LIBPSAPI 1
13257 LIBS="-lpsapi $LIBS"
13263 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13264 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13265 if test "${ac_cv_search_dlopen+set}" = set; then
13266 echo $ECHO_N "(cached) $ECHO_C" >&6
13268 ac_func_search_save_LIBS=$LIBS
13269 cat >conftest.$ac_ext <<_ACEOF
13272 cat confdefs.h >>conftest.$ac_ext
13273 cat >>conftest.$ac_ext <<_ACEOF
13274 /* end confdefs.h. */
13276 /* Override any GCC internal prototype to avoid an error.
13277 Use char because int might match the return type of a GCC
13278 builtin and then its argument prototype would still apply. */
13291 for ac_lib in '' dl; do
13292 if test -z "$ac_lib"; then
13293 ac_res="none required"
13296 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13298 rm -f conftest.$ac_objext conftest$ac_exeext
13299 if { (ac_try="$ac_link"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_link") 2>conftest.er1
13307 grep -v '^ *+' conftest.er1 >conftest.err
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } &&
13312 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13313 { (case "(($ac_try" in
13314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13315 *) ac_try_echo=$ac_try;;
13317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13318 (eval "$ac_try") 2>&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); }; } &&
13322 { ac_try='test -s conftest$ac_exeext'
13323 { (case "(($ac_try" in
13324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13325 *) ac_try_echo=$ac_try;;
13327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13328 (eval "$ac_try") 2>&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); }; }; then
13332 ac_cv_search_dlopen=$ac_res
13334 echo "$as_me: failed program was:" >&5
13335 sed 's/^/| /' conftest.$ac_ext >&5
13340 rm -f core conftest.err conftest.$ac_objext \
13342 if test "${ac_cv_search_dlopen+set}" = set; then
13346 if test "${ac_cv_search_dlopen+set}" = set; then
13349 ac_cv_search_dlopen=no
13351 rm conftest.$ac_ext
13352 LIBS=$ac_func_search_save_LIBS
13354 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13355 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13356 ac_res=$ac_cv_search_dlopen
13357 if test "$ac_res" != no; then
13358 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13360 cat >>confdefs.h <<\_ACEOF
13361 #define HAVE_DLOPEN 1
13365 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13366 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13370 if test "$llvm_cv_enable_libffi" = "yes" ; then
13371 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13372 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13373 if test "${ac_cv_search_ffi_call+set}" = set; then
13374 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 ac_func_search_save_LIBS=$LIBS
13377 cat >conftest.$ac_ext <<_ACEOF
13380 cat confdefs.h >>conftest.$ac_ext
13381 cat >>conftest.$ac_ext <<_ACEOF
13382 /* end confdefs.h. */
13384 /* Override any GCC internal prototype to avoid an error.
13385 Use char because int might match the return type of a GCC
13386 builtin and then its argument prototype would still apply. */
13394 return ffi_call ();
13399 for ac_lib in '' ffi; do
13400 if test -z "$ac_lib"; then
13401 ac_res="none required"
13404 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13406 rm -f conftest.$ac_objext conftest$ac_exeext
13407 if { (ac_try="$ac_link"
13408 case "(($ac_try" in
13409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13410 *) ac_try_echo=$ac_try;;
13412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13413 (eval "$ac_link") 2>conftest.er1
13415 grep -v '^ *+' conftest.er1 >conftest.err
13417 cat conftest.err >&5
13418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419 (exit $ac_status); } &&
13420 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13421 { (case "(($ac_try" in
13422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13423 *) ac_try_echo=$ac_try;;
13425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13426 (eval "$ac_try") 2>&5
13428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); }; } &&
13430 { ac_try='test -s conftest$ac_exeext'
13431 { (case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_try") 2>&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); }; }; then
13440 ac_cv_search_ffi_call=$ac_res
13442 echo "$as_me: failed program was:" >&5
13443 sed 's/^/| /' conftest.$ac_ext >&5
13448 rm -f core conftest.err conftest.$ac_objext \
13450 if test "${ac_cv_search_ffi_call+set}" = set; then
13454 if test "${ac_cv_search_ffi_call+set}" = set; then
13457 ac_cv_search_ffi_call=no
13459 rm conftest.$ac_ext
13460 LIBS=$ac_func_search_save_LIBS
13462 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13463 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13464 ac_res=$ac_cv_search_ffi_call
13465 if test "$ac_res" != no; then
13466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13468 cat >>confdefs.h <<\_ACEOF
13469 #define HAVE_FFI_CALL 1
13473 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13474 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13475 { (exit 1); exit 1; }; }
13480 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13481 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13482 if test "${ac_cv_search_mallinfo+set}" = set; then
13483 echo $ECHO_N "(cached) $ECHO_C" >&6
13485 ac_func_search_save_LIBS=$LIBS
13486 cat >conftest.$ac_ext <<_ACEOF
13489 cat confdefs.h >>conftest.$ac_ext
13490 cat >>conftest.$ac_ext <<_ACEOF
13491 /* end confdefs.h. */
13493 /* Override any GCC internal prototype to avoid an error.
13494 Use char because int might match the return type of a GCC
13495 builtin and then its argument prototype would still apply. */
13503 return mallinfo ();
13508 for ac_lib in '' malloc; do
13509 if test -z "$ac_lib"; then
13510 ac_res="none required"
13513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13515 rm -f conftest.$ac_objext conftest$ac_exeext
13516 if { (ac_try="$ac_link"
13517 case "(($ac_try" in
13518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13519 *) ac_try_echo=$ac_try;;
13521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13522 (eval "$ac_link") 2>conftest.er1
13524 grep -v '^ *+' conftest.er1 >conftest.err
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 (exit $ac_status); } &&
13529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13530 { (case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_try") 2>&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); }; } &&
13539 { ac_try='test -s conftest$ac_exeext'
13540 { (case "(($ac_try" in
13541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13542 *) ac_try_echo=$ac_try;;
13544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13545 (eval "$ac_try") 2>&5
13547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13548 (exit $ac_status); }; }; then
13549 ac_cv_search_mallinfo=$ac_res
13551 echo "$as_me: failed program was:" >&5
13552 sed 's/^/| /' conftest.$ac_ext >&5
13557 rm -f core conftest.err conftest.$ac_objext \
13559 if test "${ac_cv_search_mallinfo+set}" = set; then
13563 if test "${ac_cv_search_mallinfo+set}" = set; then
13566 ac_cv_search_mallinfo=no
13568 rm conftest.$ac_ext
13569 LIBS=$ac_func_search_save_LIBS
13571 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13572 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13573 ac_res=$ac_cv_search_mallinfo
13574 if test "$ac_res" != no; then
13575 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13577 cat >>confdefs.h <<\_ACEOF
13578 #define HAVE_MALLINFO 1
13584 if test "$ENABLE_THREADS" -eq 1 ; then
13586 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13587 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13588 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13589 echo $ECHO_N "(cached) $ECHO_C" >&6
13591 ac_check_lib_save_LIBS=$LIBS
13592 LIBS="-lpthread $LIBS"
13593 cat >conftest.$ac_ext <<_ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13600 /* Override any GCC internal prototype to avoid an error.
13601 Use char because int might match the return type of a GCC
13602 builtin and then its argument prototype would still apply. */
13606 char pthread_mutex_init ();
13610 return pthread_mutex_init ();
13615 rm -f conftest.$ac_objext conftest$ac_exeext
13616 if { (ac_try="$ac_link"
13617 case "(($ac_try" in
13618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13619 *) ac_try_echo=$ac_try;;
13621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13622 (eval "$ac_link") 2>conftest.er1
13624 grep -v '^ *+' conftest.er1 >conftest.err
13626 cat conftest.err >&5
13627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13628 (exit $ac_status); } &&
13629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13630 { (case "(($ac_try" in
13631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13632 *) ac_try_echo=$ac_try;;
13634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13635 (eval "$ac_try") 2>&5
13637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13638 (exit $ac_status); }; } &&
13639 { ac_try='test -s conftest$ac_exeext'
13640 { (case "(($ac_try" in
13641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13642 *) ac_try_echo=$ac_try;;
13644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13645 (eval "$ac_try") 2>&5
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 ac_cv_lib_pthread_pthread_mutex_init=yes
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13654 ac_cv_lib_pthread_pthread_mutex_init=no
13657 rm -f core conftest.err conftest.$ac_objext \
13658 conftest$ac_exeext conftest.$ac_ext
13659 LIBS=$ac_check_lib_save_LIBS
13661 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13662 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13663 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13664 cat >>confdefs.h <<_ACEOF
13665 #define HAVE_LIBPTHREAD 1
13668 LIBS="-lpthread $LIBS"
13672 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13673 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13674 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13675 echo $ECHO_N "(cached) $ECHO_C" >&6
13677 ac_func_search_save_LIBS=$LIBS
13678 cat >conftest.$ac_ext <<_ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13685 /* Override any GCC internal prototype to avoid an error.
13686 Use char because int might match the return type of a GCC
13687 builtin and then its argument prototype would still apply. */
13691 char pthread_mutex_lock ();
13695 return pthread_mutex_lock ();
13700 for ac_lib in '' pthread; do
13701 if test -z "$ac_lib"; then
13702 ac_res="none required"
13705 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13707 rm -f conftest.$ac_objext conftest$ac_exeext
13708 if { (ac_try="$ac_link"
13709 case "(($ac_try" in
13710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13711 *) ac_try_echo=$ac_try;;
13713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13714 (eval "$ac_link") 2>conftest.er1
13716 grep -v '^ *+' conftest.er1 >conftest.err
13718 cat conftest.err >&5
13719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13720 (exit $ac_status); } &&
13721 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13722 { (case "(($ac_try" in
13723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13724 *) ac_try_echo=$ac_try;;
13726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13727 (eval "$ac_try") 2>&5
13729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13730 (exit $ac_status); }; } &&
13731 { ac_try='test -s conftest$ac_exeext'
13732 { (case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13737 (eval "$ac_try") 2>&5
13739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13740 (exit $ac_status); }; }; then
13741 ac_cv_search_pthread_mutex_lock=$ac_res
13743 echo "$as_me: failed program was:" >&5
13744 sed 's/^/| /' conftest.$ac_ext >&5
13749 rm -f core conftest.err conftest.$ac_objext \
13751 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13755 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13758 ac_cv_search_pthread_mutex_lock=no
13760 rm conftest.$ac_ext
13761 LIBS=$ac_func_search_save_LIBS
13763 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13764 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13765 ac_res=$ac_cv_search_pthread_mutex_lock
13766 if test "$ac_res" != no; then
13767 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13769 cat >>confdefs.h <<\_ACEOF
13770 #define HAVE_PTHREAD_MUTEX_LOCK 1
13775 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13776 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13777 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13778 echo $ECHO_N "(cached) $ECHO_C" >&6
13780 ac_func_search_save_LIBS=$LIBS
13781 cat >conftest.$ac_ext <<_ACEOF
13784 cat confdefs.h >>conftest.$ac_ext
13785 cat >>conftest.$ac_ext <<_ACEOF
13786 /* end confdefs.h. */
13788 /* Override any GCC internal prototype to avoid an error.
13789 Use char because int might match the return type of a GCC
13790 builtin and then its argument prototype would still apply. */
13794 char pthread_rwlock_init ();
13798 return pthread_rwlock_init ();
13803 for ac_lib in '' pthread; do
13804 if test -z "$ac_lib"; then
13805 ac_res="none required"
13808 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13810 rm -f conftest.$ac_objext conftest$ac_exeext
13811 if { (ac_try="$ac_link"
13812 case "(($ac_try" in
13813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13814 *) ac_try_echo=$ac_try;;
13816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13817 (eval "$ac_link") 2>conftest.er1
13819 grep -v '^ *+' conftest.er1 >conftest.err
13821 cat conftest.err >&5
13822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13823 (exit $ac_status); } &&
13824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13825 { (case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_try") 2>&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); }; } &&
13834 { ac_try='test -s conftest$ac_exeext'
13835 { (case "(($ac_try" in
13836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13837 *) ac_try_echo=$ac_try;;
13839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13840 (eval "$ac_try") 2>&5
13842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13843 (exit $ac_status); }; }; then
13844 ac_cv_search_pthread_rwlock_init=$ac_res
13846 echo "$as_me: failed program was:" >&5
13847 sed 's/^/| /' conftest.$ac_ext >&5
13852 rm -f core conftest.err conftest.$ac_objext \
13854 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13858 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13861 ac_cv_search_pthread_rwlock_init=no
13863 rm conftest.$ac_ext
13864 LIBS=$ac_func_search_save_LIBS
13866 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13867 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13868 ac_res=$ac_cv_search_pthread_rwlock_init
13869 if test "$ac_res" != no; then
13870 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13872 cat >>confdefs.h <<\_ACEOF
13873 #define HAVE_PTHREAD_RWLOCK_INIT 1
13878 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13879 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13880 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 ac_func_search_save_LIBS=$LIBS
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13891 /* Override any GCC internal prototype to avoid an error.
13892 Use char because int might match the return type of a GCC
13893 builtin and then its argument prototype would still apply. */
13897 char pthread_getspecific ();
13901 return pthread_getspecific ();
13906 for ac_lib in '' pthread; do
13907 if test -z "$ac_lib"; then
13908 ac_res="none required"
13911 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13913 rm -f conftest.$ac_objext conftest$ac_exeext
13914 if { (ac_try="$ac_link"
13915 case "(($ac_try" in
13916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13917 *) ac_try_echo=$ac_try;;
13919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13920 (eval "$ac_link") 2>conftest.er1
13922 grep -v '^ *+' conftest.er1 >conftest.err
13924 cat conftest.err >&5
13925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13926 (exit $ac_status); } &&
13927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13928 { (case "(($ac_try" in
13929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13930 *) ac_try_echo=$ac_try;;
13932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13933 (eval "$ac_try") 2>&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); }; } &&
13937 { ac_try='test -s conftest$ac_exeext'
13938 { (case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_try") 2>&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); }; }; then
13947 ac_cv_search_pthread_getspecific=$ac_res
13949 echo "$as_me: failed program was:" >&5
13950 sed 's/^/| /' conftest.$ac_ext >&5
13955 rm -f core conftest.err conftest.$ac_objext \
13957 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13961 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13964 ac_cv_search_pthread_getspecific=no
13966 rm conftest.$ac_ext
13967 LIBS=$ac_func_search_save_LIBS
13969 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
13970 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
13971 ac_res=$ac_cv_search_pthread_getspecific
13972 if test "$ac_res" != no; then
13973 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13975 cat >>confdefs.h <<\_ACEOF
13976 #define HAVE_PTHREAD_GETSPECIFIC 1
13984 # Check whether --with-udis86 was given.
13985 if test "${with_udis86+set}" = set; then
13986 withval=$with_udis86;
13991 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
13994 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
13995 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
13996 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
13997 echo $ECHO_N "(cached) $ECHO_C" >&6
13999 ac_check_lib_save_LIBS=$LIBS
14000 LIBS="-ludis86 $LIBS"
14001 cat >conftest.$ac_ext <<_ACEOF
14004 cat confdefs.h >>conftest.$ac_ext
14005 cat >>conftest.$ac_ext <<_ACEOF
14006 /* end confdefs.h. */
14008 /* Override any GCC internal prototype to avoid an error.
14009 Use char because int might match the return type of a GCC
14010 builtin and then its argument prototype would still apply. */
14023 rm -f conftest.$ac_objext conftest$ac_exeext
14024 if { (ac_try="$ac_link"
14025 case "(($ac_try" in
14026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14027 *) ac_try_echo=$ac_try;;
14029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14030 (eval "$ac_link") 2>conftest.er1
14032 grep -v '^ *+' conftest.er1 >conftest.err
14034 cat conftest.err >&5
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); } &&
14037 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14038 { (case "(($ac_try" in
14039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14040 *) ac_try_echo=$ac_try;;
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_try") 2>&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); }; } &&
14047 { ac_try='test -s conftest$ac_exeext'
14048 { (case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_try") 2>&5
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; }; then
14057 ac_cv_lib_udis86_ud_init=yes
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14062 ac_cv_lib_udis86_ud_init=no
14065 rm -f core conftest.err conftest.$ac_objext \
14066 conftest$ac_exeext conftest.$ac_ext
14067 LIBS=$ac_check_lib_save_LIBS
14069 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14070 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14071 if test $ac_cv_lib_udis86_ud_init = yes; then
14072 cat >>confdefs.h <<_ACEOF
14073 #define HAVE_LIBUDIS86 1
14076 LIBS="-ludis86 $LIBS"
14080 echo "Error! You need to have libudis86 around."
14092 cat >>confdefs.h <<_ACEOF
14093 #define USE_UDIS86 $USE_UDIS86
14098 # Check whether --with-oprofile was given.
14099 if test "${with_oprofile+set}" = set; then
14100 withval=$with_oprofile;
14104 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14105 no) llvm_cv_oppath=
14108 *) llvm_cv_oppath="${withval}/lib/oprofile"
14109 CPPFLAGS="-I${withval}/include";;
14111 if test -n "$llvm_cv_oppath" ; then
14112 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14113 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14114 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14115 if test "${ac_cv_search_bfd_init+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 ac_func_search_save_LIBS=$LIBS
14119 cat >conftest.$ac_ext <<_ACEOF
14122 cat confdefs.h >>conftest.$ac_ext
14123 cat >>conftest.$ac_ext <<_ACEOF
14124 /* end confdefs.h. */
14126 /* Override any GCC internal prototype to avoid an error.
14127 Use char because int might match the return type of a GCC
14128 builtin and then its argument prototype would still apply. */
14136 return bfd_init ();
14141 for ac_lib in '' bfd; do
14142 if test -z "$ac_lib"; then
14143 ac_res="none required"
14146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14148 rm -f conftest.$ac_objext conftest$ac_exeext
14149 if { (ac_try="$ac_link"
14150 case "(($ac_try" in
14151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14152 *) ac_try_echo=$ac_try;;
14154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14155 (eval "$ac_link") 2>conftest.er1
14157 grep -v '^ *+' conftest.er1 >conftest.err
14159 cat conftest.err >&5
14160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14161 (exit $ac_status); } &&
14162 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
14170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14171 (exit $ac_status); }; } &&
14172 { ac_try='test -s conftest$ac_exeext'
14173 { (case "(($ac_try" in
14174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14175 *) ac_try_echo=$ac_try;;
14177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14178 (eval "$ac_try") 2>&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); }; }; then
14182 ac_cv_search_bfd_init=$ac_res
14184 echo "$as_me: failed program was:" >&5
14185 sed 's/^/| /' conftest.$ac_ext >&5
14190 rm -f core conftest.err conftest.$ac_objext \
14192 if test "${ac_cv_search_bfd_init+set}" = set; then
14196 if test "${ac_cv_search_bfd_init+set}" = set; then
14199 ac_cv_search_bfd_init=no
14201 rm conftest.$ac_ext
14202 LIBS=$ac_func_search_save_LIBS
14204 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14205 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14206 ac_res=$ac_cv_search_bfd_init
14207 if test "$ac_res" != no; then
14208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14212 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14213 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14214 if test "${ac_cv_search_op_open_agent+set}" = set; then
14215 echo $ECHO_N "(cached) $ECHO_C" >&6
14217 ac_func_search_save_LIBS=$LIBS
14218 cat >conftest.$ac_ext <<_ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14225 /* Override any GCC internal prototype to avoid an error.
14226 Use char because int might match the return type of a GCC
14227 builtin and then its argument prototype would still apply. */
14231 char op_open_agent ();
14235 return op_open_agent ();
14240 for ac_lib in '' opagent; do
14241 if test -z "$ac_lib"; then
14242 ac_res="none required"
14245 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14247 rm -f conftest.$ac_objext conftest$ac_exeext
14248 if { (ac_try="$ac_link"
14249 case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_link") 2>conftest.er1
14256 grep -v '^ *+' conftest.er1 >conftest.err
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } &&
14261 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14262 { (case "(($ac_try" in
14263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14264 *) ac_try_echo=$ac_try;;
14266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14267 (eval "$ac_try") 2>&5
14269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14270 (exit $ac_status); }; } &&
14271 { ac_try='test -s conftest$ac_exeext'
14272 { (case "(($ac_try" in
14273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_try") 2>&5
14279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14280 (exit $ac_status); }; }; then
14281 ac_cv_search_op_open_agent=$ac_res
14283 echo "$as_me: failed program was:" >&5
14284 sed 's/^/| /' conftest.$ac_ext >&5
14289 rm -f core conftest.err conftest.$ac_objext \
14291 if test "${ac_cv_search_op_open_agent+set}" = set; then
14295 if test "${ac_cv_search_op_open_agent+set}" = set; then
14298 ac_cv_search_op_open_agent=no
14300 rm conftest.$ac_ext
14301 LIBS=$ac_func_search_save_LIBS
14303 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14304 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14305 ac_res=$ac_cv_search_op_open_agent
14306 if test "$ac_res" != no; then
14307 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14311 echo "Error! You need to have libopagent around."
14316 if test "${ac_cv_header_opagent_h+set}" = set; then
14317 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14318 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14319 if test "${ac_cv_header_opagent_h+set}" = set; then
14320 echo $ECHO_N "(cached) $ECHO_C" >&6
14322 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14323 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14325 # Is the header compilable?
14326 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14327 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14328 cat >conftest.$ac_ext <<_ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h. */
14334 $ac_includes_default
14335 #include <opagent.h>
14337 rm -f conftest.$ac_objext
14338 if { (ac_try="$ac_compile"
14339 case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_compile") 2>conftest.er1
14346 grep -v '^ *+' conftest.er1 >conftest.err
14348 cat conftest.err >&5
14349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14350 (exit $ac_status); } &&
14351 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14352 { (case "(($ac_try" in
14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14354 *) ac_try_echo=$ac_try;;
14356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14357 (eval "$ac_try") 2>&5
14359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14360 (exit $ac_status); }; } &&
14361 { ac_try='test -s conftest.$ac_objext'
14362 { (case "(($ac_try" in
14363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14364 *) ac_try_echo=$ac_try;;
14366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14367 (eval "$ac_try") 2>&5
14369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14370 (exit $ac_status); }; }; then
14371 ac_header_compiler=yes
14373 echo "$as_me: failed program was:" >&5
14374 sed 's/^/| /' conftest.$ac_ext >&5
14376 ac_header_compiler=no
14379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14381 echo "${ECHO_T}$ac_header_compiler" >&6; }
14383 # Is the header present?
14384 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14385 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14386 cat >conftest.$ac_ext <<_ACEOF
14389 cat confdefs.h >>conftest.$ac_ext
14390 cat >>conftest.$ac_ext <<_ACEOF
14391 /* end confdefs.h. */
14392 #include <opagent.h>
14394 if { (ac_try="$ac_cpp conftest.$ac_ext"
14395 case "(($ac_try" in
14396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14397 *) ac_try_echo=$ac_try;;
14399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14402 grep -v '^ *+' conftest.er1 >conftest.err
14404 cat conftest.err >&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); } >/dev/null; then
14407 if test -s conftest.err; then
14408 ac_cpp_err=$ac_c_preproc_warn_flag
14409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14416 if test -z "$ac_cpp_err"; then
14417 ac_header_preproc=yes
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_header_preproc=no
14425 rm -f conftest.err conftest.$ac_ext
14426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14427 echo "${ECHO_T}$ac_header_preproc" >&6; }
14429 # So? What about this header?
14430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14432 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14433 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14435 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14436 ac_header_preproc=yes
14439 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14440 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14442 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14444 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14446 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14448 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14450 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14452 ## ----------------------------------- ##
14453 ## Report this to llvmbugs@cs.uiuc.edu ##
14454 ## ----------------------------------- ##
14456 ) | sed "s/^/$as_me: WARNING: /" >&2
14459 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14460 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14461 if test "${ac_cv_header_opagent_h+set}" = set; then
14462 echo $ECHO_N "(cached) $ECHO_C" >&6
14464 ac_cv_header_opagent_h=$ac_header_preproc
14466 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14467 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14470 if test $ac_cv_header_opagent_h = yes; then
14474 echo "Error! You need to have opagent.h around."
14490 cat >>confdefs.h <<_ACEOF
14491 #define USE_OPROFILE $USE_OPROFILE
14501 ac_header_dirent=no
14502 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14503 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14504 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14505 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14507 echo $ECHO_N "(cached) $ECHO_C" >&6
14509 cat >conftest.$ac_ext <<_ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14515 #include <sys/types.h>
14527 rm -f conftest.$ac_objext
14528 if { (ac_try="$ac_compile"
14529 case "(($ac_try" in
14530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14531 *) ac_try_echo=$ac_try;;
14533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14534 (eval "$ac_compile") 2>conftest.er1
14536 grep -v '^ *+' conftest.er1 >conftest.err
14538 cat conftest.err >&5
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } &&
14541 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14542 { (case "(($ac_try" in
14543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14544 *) ac_try_echo=$ac_try;;
14546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14547 (eval "$ac_try") 2>&5
14549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14550 (exit $ac_status); }; } &&
14551 { ac_try='test -s conftest.$ac_objext'
14552 { (case "(($ac_try" in
14553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14554 *) ac_try_echo=$ac_try;;
14556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14557 (eval "$ac_try") 2>&5
14559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14560 (exit $ac_status); }; }; then
14561 eval "$as_ac_Header=yes"
14563 echo "$as_me: failed program was:" >&5
14564 sed 's/^/| /' conftest.$ac_ext >&5
14566 eval "$as_ac_Header=no"
14569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14571 ac_res=`eval echo '${'$as_ac_Header'}'`
14572 { echo "$as_me:$LINENO: result: $ac_res" >&5
14573 echo "${ECHO_T}$ac_res" >&6; }
14574 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14575 cat >>confdefs.h <<_ACEOF
14576 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14579 ac_header_dirent=$ac_hdr; break
14583 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14584 if test $ac_header_dirent = dirent.h; then
14585 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14586 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14587 if test "${ac_cv_search_opendir+set}" = set; then
14588 echo $ECHO_N "(cached) $ECHO_C" >&6
14590 ac_func_search_save_LIBS=$LIBS
14591 cat >conftest.$ac_ext <<_ACEOF
14594 cat confdefs.h >>conftest.$ac_ext
14595 cat >>conftest.$ac_ext <<_ACEOF
14596 /* end confdefs.h. */
14598 /* Override any GCC internal prototype to avoid an error.
14599 Use char because int might match the return type of a GCC
14600 builtin and then its argument prototype would still apply. */
14613 for ac_lib in '' dir; do
14614 if test -z "$ac_lib"; then
14615 ac_res="none required"
14618 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14620 rm -f conftest.$ac_objext conftest$ac_exeext
14621 if { (ac_try="$ac_link"
14622 case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14627 (eval "$ac_link") 2>conftest.er1
14629 grep -v '^ *+' conftest.er1 >conftest.err
14631 cat conftest.err >&5
14632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14633 (exit $ac_status); } &&
14634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14635 { (case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_try") 2>&5
14642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14643 (exit $ac_status); }; } &&
14644 { ac_try='test -s conftest$ac_exeext'
14645 { (case "(($ac_try" in
14646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14647 *) ac_try_echo=$ac_try;;
14649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14650 (eval "$ac_try") 2>&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); }; }; then
14654 ac_cv_search_opendir=$ac_res
14656 echo "$as_me: failed program was:" >&5
14657 sed 's/^/| /' conftest.$ac_ext >&5
14662 rm -f core conftest.err conftest.$ac_objext \
14664 if test "${ac_cv_search_opendir+set}" = set; then
14668 if test "${ac_cv_search_opendir+set}" = set; then
14671 ac_cv_search_opendir=no
14673 rm conftest.$ac_ext
14674 LIBS=$ac_func_search_save_LIBS
14676 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14677 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14678 ac_res=$ac_cv_search_opendir
14679 if test "$ac_res" != no; then
14680 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14685 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14686 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14687 if test "${ac_cv_search_opendir+set}" = set; then
14688 echo $ECHO_N "(cached) $ECHO_C" >&6
14690 ac_func_search_save_LIBS=$LIBS
14691 cat >conftest.$ac_ext <<_ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14698 /* Override any GCC internal prototype to avoid an error.
14699 Use char because int might match the return type of a GCC
14700 builtin and then its argument prototype would still apply. */
14713 for ac_lib in '' x; do
14714 if test -z "$ac_lib"; then
14715 ac_res="none required"
14718 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14720 rm -f conftest.$ac_objext conftest$ac_exeext
14721 if { (ac_try="$ac_link"
14722 case "(($ac_try" in
14723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_link") 2>conftest.er1
14729 grep -v '^ *+' conftest.er1 >conftest.err
14731 cat conftest.err >&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } &&
14734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14735 { (case "(($ac_try" in
14736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14737 *) ac_try_echo=$ac_try;;
14739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14740 (eval "$ac_try") 2>&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); }; } &&
14744 { ac_try='test -s conftest$ac_exeext'
14745 { (case "(($ac_try" in
14746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14747 *) ac_try_echo=$ac_try;;
14749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14750 (eval "$ac_try") 2>&5
14752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14753 (exit $ac_status); }; }; then
14754 ac_cv_search_opendir=$ac_res
14756 echo "$as_me: failed program was:" >&5
14757 sed 's/^/| /' conftest.$ac_ext >&5
14762 rm -f core conftest.err conftest.$ac_objext \
14764 if test "${ac_cv_search_opendir+set}" = set; then
14768 if test "${ac_cv_search_opendir+set}" = set; then
14771 ac_cv_search_opendir=no
14773 rm conftest.$ac_ext
14774 LIBS=$ac_func_search_save_LIBS
14776 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14777 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14778 ac_res=$ac_cv_search_opendir
14779 if test "$ac_res" != no; then
14780 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14786 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14787 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14788 if test "${ac_cv_header_mmap_anon+set}" = set; then
14789 echo $ECHO_N "(cached) $ECHO_C" >&6
14792 ac_cpp='$CPP $CPPFLAGS'
14793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14797 cat >conftest.$ac_ext <<_ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 #include <sys/mman.h>
14804 #include <unistd.h>
14809 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14814 rm -f conftest.$ac_objext
14815 if { (ac_try="$ac_compile"
14816 case "(($ac_try" in
14817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821 (eval "$ac_compile") 2>conftest.er1
14823 grep -v '^ *+' conftest.er1 >conftest.err
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } &&
14828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14829 { (case "(($ac_try" in
14830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14831 *) ac_try_echo=$ac_try;;
14833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14834 (eval "$ac_try") 2>&5
14836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14837 (exit $ac_status); }; } &&
14838 { ac_try='test -s conftest.$ac_objext'
14839 { (case "(($ac_try" in
14840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14841 *) ac_try_echo=$ac_try;;
14843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14844 (eval "$ac_try") 2>&5
14846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14847 (exit $ac_status); }; }; then
14848 ac_cv_header_mmap_anon=yes
14850 echo "$as_me: failed program was:" >&5
14851 sed 's/^/| /' conftest.$ac_ext >&5
14853 ac_cv_header_mmap_anon=no
14856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14858 ac_cpp='$CPP $CPPFLAGS'
14859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14865 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14866 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14867 if test "$ac_cv_header_mmap_anon" = yes; then
14869 cat >>confdefs.h <<\_ACEOF
14870 #define HAVE_MMAP_ANONYMOUS 1
14875 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14876 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14877 if test "${ac_cv_header_stat_broken+set}" = set; then
14878 echo $ECHO_N "(cached) $ECHO_C" >&6
14880 cat >conftest.$ac_ext <<_ACEOF
14883 cat confdefs.h >>conftest.$ac_ext
14884 cat >>conftest.$ac_ext <<_ACEOF
14885 /* end confdefs.h. */
14886 #include <sys/types.h>
14887 #include <sys/stat.h>
14889 #if defined S_ISBLK && defined S_IFDIR
14890 # if S_ISBLK (S_IFDIR)
14895 #if defined S_ISBLK && defined S_IFCHR
14896 # if S_ISBLK (S_IFCHR)
14901 #if defined S_ISLNK && defined S_IFREG
14902 # if S_ISLNK (S_IFREG)
14907 #if defined S_ISSOCK && defined S_IFREG
14908 # if S_ISSOCK (S_IFREG)
14914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14915 $EGREP "You lose" >/dev/null 2>&1; then
14916 ac_cv_header_stat_broken=yes
14918 ac_cv_header_stat_broken=no
14923 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14924 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14925 if test $ac_cv_header_stat_broken = yes; then
14927 cat >>confdefs.h <<\_ACEOF
14928 #define STAT_MACROS_BROKEN 1
14933 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14934 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14935 if test "${ac_cv_header_stdc+set}" = set; then
14936 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 cat >conftest.$ac_ext <<_ACEOF
14941 cat confdefs.h >>conftest.$ac_ext
14942 cat >>conftest.$ac_ext <<_ACEOF
14943 /* end confdefs.h. */
14944 #include <stdlib.h>
14945 #include <stdarg.h>
14946 #include <string.h>
14957 rm -f conftest.$ac_objext
14958 if { (ac_try="$ac_compile"
14959 case "(($ac_try" in
14960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14961 *) ac_try_echo=$ac_try;;
14963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14964 (eval "$ac_compile") 2>conftest.er1
14966 grep -v '^ *+' conftest.er1 >conftest.err
14968 cat conftest.err >&5
14969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14970 (exit $ac_status); } &&
14971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14972 { (case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_try") 2>&5
14979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14980 (exit $ac_status); }; } &&
14981 { ac_try='test -s conftest.$ac_objext'
14982 { (case "(($ac_try" in
14983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14984 *) ac_try_echo=$ac_try;;
14986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14987 (eval "$ac_try") 2>&5
14989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14990 (exit $ac_status); }; }; then
14991 ac_cv_header_stdc=yes
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_cv_header_stdc=no
14999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15001 if test $ac_cv_header_stdc = yes; then
15002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15003 cat >conftest.$ac_ext <<_ACEOF
15006 cat confdefs.h >>conftest.$ac_ext
15007 cat >>conftest.$ac_ext <<_ACEOF
15008 /* end confdefs.h. */
15009 #include <string.h>
15012 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15013 $EGREP "memchr" >/dev/null 2>&1; then
15016 ac_cv_header_stdc=no
15022 if test $ac_cv_header_stdc = yes; then
15023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15024 cat >conftest.$ac_ext <<_ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15030 #include <stdlib.h>
15033 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15034 $EGREP "free" >/dev/null 2>&1; then
15037 ac_cv_header_stdc=no
15043 if test $ac_cv_header_stdc = yes; then
15044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15045 if test "$cross_compiling" = yes; then
15048 cat >conftest.$ac_ext <<_ACEOF
15051 cat confdefs.h >>conftest.$ac_ext
15052 cat >>conftest.$ac_ext <<_ACEOF
15053 /* end confdefs.h. */
15055 #include <stdlib.h>
15056 #if ((' ' & 0x0FF) == 0x020)
15057 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15058 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15060 # define ISLOWER(c) \
15061 (('a' <= (c) && (c) <= 'i') \
15062 || ('j' <= (c) && (c) <= 'r') \
15063 || ('s' <= (c) && (c) <= 'z'))
15064 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15067 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15072 for (i = 0; i < 256; i++)
15073 if (XOR (islower (i), ISLOWER (i))
15074 || toupper (i) != TOUPPER (i))
15079 rm -f conftest$ac_exeext
15080 if { (ac_try="$ac_link"
15081 case "(($ac_try" in
15082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15083 *) ac_try_echo=$ac_try;;
15085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15086 (eval "$ac_link") 2>&5
15088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15090 { (case "(($ac_try" in
15091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092 *) ac_try_echo=$ac_try;;
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095 (eval "$ac_try") 2>&5
15097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098 (exit $ac_status); }; }; then
15101 echo "$as_me: program exited with status $ac_status" >&5
15102 echo "$as_me: failed program was:" >&5
15103 sed 's/^/| /' conftest.$ac_ext >&5
15105 ( exit $ac_status )
15106 ac_cv_header_stdc=no
15108 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15114 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15115 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15116 if test $ac_cv_header_stdc = yes; then
15118 cat >>confdefs.h <<\_ACEOF
15119 #define STDC_HEADERS 1
15124 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15125 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15126 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15127 echo $ECHO_N "(cached) $ECHO_C" >&6
15129 cat >conftest.$ac_ext <<_ACEOF
15132 cat confdefs.h >>conftest.$ac_ext
15133 cat >>conftest.$ac_ext <<_ACEOF
15134 /* end confdefs.h. */
15135 #include <sys/types.h>
15136 #include <sys/wait.h>
15137 #ifndef WEXITSTATUS
15138 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15141 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15149 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15154 rm -f conftest.$ac_objext
15155 if { (ac_try="$ac_compile"
15156 case "(($ac_try" in
15157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15158 *) ac_try_echo=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_compile") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1 >conftest.err
15165 cat conftest.err >&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } &&
15168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15169 { (case "(($ac_try" in
15170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15171 *) ac_try_echo=$ac_try;;
15173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15174 (eval "$ac_try") 2>&5
15176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15177 (exit $ac_status); }; } &&
15178 { ac_try='test -s conftest.$ac_objext'
15179 { (case "(($ac_try" in
15180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15181 *) ac_try_echo=$ac_try;;
15183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15184 (eval "$ac_try") 2>&5
15186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15187 (exit $ac_status); }; }; then
15188 ac_cv_header_sys_wait_h=yes
15190 echo "$as_me: failed program was:" >&5
15191 sed 's/^/| /' conftest.$ac_ext >&5
15193 ac_cv_header_sys_wait_h=no
15196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15198 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15199 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15200 if test $ac_cv_header_sys_wait_h = yes; then
15202 cat >>confdefs.h <<\_ACEOF
15203 #define HAVE_SYS_WAIT_H 1
15208 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15209 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15210 if test "${ac_cv_header_time+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 cat >conftest.$ac_ext <<_ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 #include <sys/types.h>
15220 #include <sys/time.h>
15226 if ((struct tm *) 0)
15232 rm -f conftest.$ac_objext
15233 if { (ac_try="$ac_compile"
15234 case "(($ac_try" in
15235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15236 *) ac_try_echo=$ac_try;;
15238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15239 (eval "$ac_compile") 2>conftest.er1
15241 grep -v '^ *+' conftest.er1 >conftest.err
15243 cat conftest.err >&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); } &&
15246 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15247 { (case "(($ac_try" in
15248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15249 *) ac_try_echo=$ac_try;;
15251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15252 (eval "$ac_try") 2>&5
15254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15255 (exit $ac_status); }; } &&
15256 { ac_try='test -s conftest.$ac_objext'
15257 { (case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_try") 2>&5
15264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); }; }; then
15266 ac_cv_header_time=yes
15268 echo "$as_me: failed program was:" >&5
15269 sed 's/^/| /' conftest.$ac_ext >&5
15271 ac_cv_header_time=no
15274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15276 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15277 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15278 if test $ac_cv_header_time = yes; then
15280 cat >>confdefs.h <<\_ACEOF
15281 #define TIME_WITH_SYS_TIME 1
15293 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15295 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15296 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15297 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15298 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15299 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15300 echo $ECHO_N "(cached) $ECHO_C" >&6
15302 ac_res=`eval echo '${'$as_ac_Header'}'`
15303 { echo "$as_me:$LINENO: result: $ac_res" >&5
15304 echo "${ECHO_T}$ac_res" >&6; }
15306 # Is the header compilable?
15307 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15308 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15309 cat >conftest.$ac_ext <<_ACEOF
15312 cat confdefs.h >>conftest.$ac_ext
15313 cat >>conftest.$ac_ext <<_ACEOF
15314 /* end confdefs.h. */
15315 $ac_includes_default
15316 #include <$ac_header>
15318 rm -f conftest.$ac_objext
15319 if { (ac_try="$ac_compile"
15320 case "(($ac_try" in
15321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15322 *) ac_try_echo=$ac_try;;
15324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15325 (eval "$ac_compile") 2>conftest.er1
15327 grep -v '^ *+' conftest.er1 >conftest.err
15329 cat conftest.err >&5
15330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15331 (exit $ac_status); } &&
15332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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); }; } &&
15342 { ac_try='test -s conftest.$ac_objext'
15343 { (case "(($ac_try" in
15344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15345 *) ac_try_echo=$ac_try;;
15347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15348 (eval "$ac_try") 2>&5
15350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15351 (exit $ac_status); }; }; then
15352 ac_header_compiler=yes
15354 echo "$as_me: failed program was:" >&5
15355 sed 's/^/| /' conftest.$ac_ext >&5
15357 ac_header_compiler=no
15360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15362 echo "${ECHO_T}$ac_header_compiler" >&6; }
15364 # Is the header present?
15365 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15366 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15367 cat >conftest.$ac_ext <<_ACEOF
15370 cat confdefs.h >>conftest.$ac_ext
15371 cat >>conftest.$ac_ext <<_ACEOF
15372 /* end confdefs.h. */
15373 #include <$ac_header>
15375 if { (ac_try="$ac_cpp conftest.$ac_ext"
15376 case "(($ac_try" in
15377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15378 *) ac_try_echo=$ac_try;;
15380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15383 grep -v '^ *+' conftest.er1 >conftest.err
15385 cat conftest.err >&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); } >/dev/null; then
15388 if test -s conftest.err; then
15389 ac_cpp_err=$ac_c_preproc_warn_flag
15390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15397 if test -z "$ac_cpp_err"; then
15398 ac_header_preproc=yes
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 ac_header_preproc=no
15406 rm -f conftest.err conftest.$ac_ext
15407 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15408 echo "${ECHO_T}$ac_header_preproc" >&6; }
15410 # So? What about this header?
15411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15413 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15414 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15415 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15417 ac_header_preproc=yes
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15421 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15422 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15423 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15424 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15425 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15426 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15427 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15430 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15431 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15433 ## ----------------------------------- ##
15434 ## Report this to llvmbugs@cs.uiuc.edu ##
15435 ## ----------------------------------- ##
15437 ) | sed "s/^/$as_me: WARNING: /" >&2
15440 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15441 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15442 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15443 echo $ECHO_N "(cached) $ECHO_C" >&6
15445 eval "$as_ac_Header=\$ac_header_preproc"
15447 ac_res=`eval echo '${'$as_ac_Header'}'`
15448 { echo "$as_me:$LINENO: result: $ac_res" >&5
15449 echo "${ECHO_T}$ac_res" >&6; }
15452 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15453 cat >>confdefs.h <<_ACEOF
15454 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15467 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15474 echo $ECHO_N "(cached) $ECHO_C" >&6
15476 ac_res=`eval echo '${'$as_ac_Header'}'`
15477 { echo "$as_me:$LINENO: result: $ac_res" >&5
15478 echo "${ECHO_T}$ac_res" >&6; }
15480 # Is the header compilable?
15481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15483 cat >conftest.$ac_ext <<_ACEOF
15486 cat confdefs.h >>conftest.$ac_ext
15487 cat >>conftest.$ac_ext <<_ACEOF
15488 /* end confdefs.h. */
15489 $ac_includes_default
15490 #include <$ac_header>
15492 rm -f conftest.$ac_objext
15493 if { (ac_try="$ac_compile"
15494 case "(($ac_try" in
15495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15496 *) ac_try_echo=$ac_try;;
15498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15499 (eval "$ac_compile") 2>conftest.er1
15501 grep -v '^ *+' conftest.er1 >conftest.err
15503 cat conftest.err >&5
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } &&
15506 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
15514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15515 (exit $ac_status); }; } &&
15516 { ac_try='test -s conftest.$ac_objext'
15517 { (case "(($ac_try" in
15518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15519 *) ac_try_echo=$ac_try;;
15521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15522 (eval "$ac_try") 2>&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); }; }; then
15526 ac_header_compiler=yes
15528 echo "$as_me: failed program was:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15531 ac_header_compiler=no
15534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15535 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15536 echo "${ECHO_T}$ac_header_compiler" >&6; }
15538 # Is the header present?
15539 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15540 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15541 cat >conftest.$ac_ext <<_ACEOF
15544 cat confdefs.h >>conftest.$ac_ext
15545 cat >>conftest.$ac_ext <<_ACEOF
15546 /* end confdefs.h. */
15547 #include <$ac_header>
15549 if { (ac_try="$ac_cpp conftest.$ac_ext"
15550 case "(($ac_try" in
15551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15552 *) ac_try_echo=$ac_try;;
15554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15555 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15557 grep -v '^ *+' conftest.er1 >conftest.err
15559 cat conftest.err >&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } >/dev/null; then
15562 if test -s conftest.err; then
15563 ac_cpp_err=$ac_c_preproc_warn_flag
15564 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15571 if test -z "$ac_cpp_err"; then
15572 ac_header_preproc=yes
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15577 ac_header_preproc=no
15580 rm -f conftest.err conftest.$ac_ext
15581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15582 echo "${ECHO_T}$ac_header_preproc" >&6; }
15584 # So? What about this header?
15585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15591 ac_header_preproc=yes
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15607 ## ----------------------------------- ##
15608 ## Report this to llvmbugs@cs.uiuc.edu ##
15609 ## ----------------------------------- ##
15611 ) | sed "s/^/$as_me: WARNING: /" >&2
15614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15617 echo $ECHO_N "(cached) $ECHO_C" >&6
15619 eval "$as_ac_Header=\$ac_header_preproc"
15621 ac_res=`eval echo '${'$as_ac_Header'}'`
15622 { echo "$as_me:$LINENO: result: $ac_res" >&5
15623 echo "${ECHO_T}$ac_res" >&6; }
15626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15627 cat >>confdefs.h <<_ACEOF
15628 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15637 for ac_header in utime.h windows.h
15639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15644 echo $ECHO_N "(cached) $ECHO_C" >&6
15646 ac_res=`eval echo '${'$as_ac_Header'}'`
15647 { echo "$as_me:$LINENO: result: $ac_res" >&5
15648 echo "${ECHO_T}$ac_res" >&6; }
15650 # Is the header compilable?
15651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15653 cat >conftest.$ac_ext <<_ACEOF
15656 cat confdefs.h >>conftest.$ac_ext
15657 cat >>conftest.$ac_ext <<_ACEOF
15658 /* end confdefs.h. */
15659 $ac_includes_default
15660 #include <$ac_header>
15662 rm -f conftest.$ac_objext
15663 if { (ac_try="$ac_compile"
15664 case "(($ac_try" in
15665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15666 *) ac_try_echo=$ac_try;;
15668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15669 (eval "$ac_compile") 2>conftest.er1
15671 grep -v '^ *+' conftest.er1 >conftest.err
15673 cat conftest.err >&5
15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } &&
15676 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15677 { (case "(($ac_try" in
15678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15679 *) ac_try_echo=$ac_try;;
15681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15682 (eval "$ac_try") 2>&5
15684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15685 (exit $ac_status); }; } &&
15686 { ac_try='test -s conftest.$ac_objext'
15687 { (case "(($ac_try" in
15688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15689 *) ac_try_echo=$ac_try;;
15691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15692 (eval "$ac_try") 2>&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); }; }; then
15696 ac_header_compiler=yes
15698 echo "$as_me: failed program was:" >&5
15699 sed 's/^/| /' conftest.$ac_ext >&5
15701 ac_header_compiler=no
15704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15706 echo "${ECHO_T}$ac_header_compiler" >&6; }
15708 # Is the header present?
15709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15711 cat >conftest.$ac_ext <<_ACEOF
15714 cat confdefs.h >>conftest.$ac_ext
15715 cat >>conftest.$ac_ext <<_ACEOF
15716 /* end confdefs.h. */
15717 #include <$ac_header>
15719 if { (ac_try="$ac_cpp conftest.$ac_ext"
15720 case "(($ac_try" in
15721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15722 *) ac_try_echo=$ac_try;;
15724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15727 grep -v '^ *+' conftest.er1 >conftest.err
15729 cat conftest.err >&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } >/dev/null; then
15732 if test -s conftest.err; then
15733 ac_cpp_err=$ac_c_preproc_warn_flag
15734 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15741 if test -z "$ac_cpp_err"; then
15742 ac_header_preproc=yes
15744 echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15747 ac_header_preproc=no
15750 rm -f conftest.err conftest.$ac_ext
15751 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15752 echo "${ECHO_T}$ac_header_preproc" >&6; }
15754 # So? What about this header?
15755 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15757 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15758 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15759 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15760 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15761 ac_header_preproc=yes
15764 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15765 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15766 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15767 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15768 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15769 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15770 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15771 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15773 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15774 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15775 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15777 ## ----------------------------------- ##
15778 ## Report this to llvmbugs@cs.uiuc.edu ##
15779 ## ----------------------------------- ##
15781 ) | sed "s/^/$as_me: WARNING: /" >&2
15784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15787 echo $ECHO_N "(cached) $ECHO_C" >&6
15789 eval "$as_ac_Header=\$ac_header_preproc"
15791 ac_res=`eval echo '${'$as_ac_Header'}'`
15792 { echo "$as_me:$LINENO: result: $ac_res" >&5
15793 echo "${ECHO_T}$ac_res" >&6; }
15796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15797 cat >>confdefs.h <<_ACEOF
15798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15809 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15811 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15812 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15813 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15814 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15816 echo $ECHO_N "(cached) $ECHO_C" >&6
15818 ac_res=`eval echo '${'$as_ac_Header'}'`
15819 { echo "$as_me:$LINENO: result: $ac_res" >&5
15820 echo "${ECHO_T}$ac_res" >&6; }
15822 # Is the header compilable?
15823 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15824 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15825 cat >conftest.$ac_ext <<_ACEOF
15828 cat confdefs.h >>conftest.$ac_ext
15829 cat >>conftest.$ac_ext <<_ACEOF
15830 /* end confdefs.h. */
15831 $ac_includes_default
15832 #include <$ac_header>
15834 rm -f conftest.$ac_objext
15835 if { (ac_try="$ac_compile"
15836 case "(($ac_try" in
15837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15838 *) ac_try_echo=$ac_try;;
15840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15841 (eval "$ac_compile") 2>conftest.er1
15843 grep -v '^ *+' conftest.er1 >conftest.err
15845 cat conftest.err >&5
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); } &&
15848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15849 { (case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_try") 2>&5
15856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15857 (exit $ac_status); }; } &&
15858 { ac_try='test -s conftest.$ac_objext'
15859 { (case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_try") 2>&5
15866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); }; }; then
15868 ac_header_compiler=yes
15870 echo "$as_me: failed program was:" >&5
15871 sed 's/^/| /' conftest.$ac_ext >&5
15873 ac_header_compiler=no
15876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15878 echo "${ECHO_T}$ac_header_compiler" >&6; }
15880 # Is the header present?
15881 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15883 cat >conftest.$ac_ext <<_ACEOF
15886 cat confdefs.h >>conftest.$ac_ext
15887 cat >>conftest.$ac_ext <<_ACEOF
15888 /* end confdefs.h. */
15889 #include <$ac_header>
15891 if { (ac_try="$ac_cpp conftest.$ac_ext"
15892 case "(($ac_try" in
15893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15894 *) ac_try_echo=$ac_try;;
15896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15899 grep -v '^ *+' conftest.er1 >conftest.err
15901 cat conftest.err >&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); } >/dev/null; then
15904 if test -s conftest.err; then
15905 ac_cpp_err=$ac_c_preproc_warn_flag
15906 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15913 if test -z "$ac_cpp_err"; then
15914 ac_header_preproc=yes
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 ac_header_preproc=no
15922 rm -f conftest.err conftest.$ac_ext
15923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15924 echo "${ECHO_T}$ac_header_preproc" >&6; }
15926 # So? What about this header?
15927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15929 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15930 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15931 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15933 ac_header_preproc=yes
15936 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15937 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15938 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15939 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15940 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15941 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15942 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15943 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15944 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15946 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15947 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15949 ## ----------------------------------- ##
15950 ## Report this to llvmbugs@cs.uiuc.edu ##
15951 ## ----------------------------------- ##
15953 ) | sed "s/^/$as_me: WARNING: /" >&2
15956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15959 echo $ECHO_N "(cached) $ECHO_C" >&6
15961 eval "$as_ac_Header=\$ac_header_preproc"
15963 ac_res=`eval echo '${'$as_ac_Header'}'`
15964 { echo "$as_me:$LINENO: result: $ac_res" >&5
15965 echo "${ECHO_T}$ac_res" >&6; }
15968 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15969 cat >>confdefs.h <<_ACEOF
15970 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15981 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
15983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15988 echo $ECHO_N "(cached) $ECHO_C" >&6
15990 ac_res=`eval echo '${'$as_ac_Header'}'`
15991 { echo "$as_me:$LINENO: result: $ac_res" >&5
15992 echo "${ECHO_T}$ac_res" >&6; }
15994 # Is the header compilable?
15995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15997 cat >conftest.$ac_ext <<_ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 $ac_includes_default
16004 #include <$ac_header>
16006 rm -f conftest.$ac_objext
16007 if { (ac_try="$ac_compile"
16008 case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_compile") 2>conftest.er1
16015 grep -v '^ *+' conftest.er1 >conftest.err
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16019 (exit $ac_status); } &&
16020 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16021 { (case "(($ac_try" in
16022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16023 *) ac_try_echo=$ac_try;;
16025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16026 (eval "$ac_try") 2>&5
16028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16029 (exit $ac_status); }; } &&
16030 { ac_try='test -s conftest.$ac_objext'
16031 { (case "(($ac_try" in
16032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16033 *) ac_try_echo=$ac_try;;
16035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16036 (eval "$ac_try") 2>&5
16038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16039 (exit $ac_status); }; }; then
16040 ac_header_compiler=yes
16042 echo "$as_me: failed program was:" >&5
16043 sed 's/^/| /' conftest.$ac_ext >&5
16045 ac_header_compiler=no
16048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16050 echo "${ECHO_T}$ac_header_compiler" >&6; }
16052 # Is the header present?
16053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16055 cat >conftest.$ac_ext <<_ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 #include <$ac_header>
16063 if { (ac_try="$ac_cpp conftest.$ac_ext"
16064 case "(($ac_try" in
16065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16066 *) ac_try_echo=$ac_try;;
16068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16071 grep -v '^ *+' conftest.er1 >conftest.err
16073 cat conftest.err >&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); } >/dev/null; then
16076 if test -s conftest.err; then
16077 ac_cpp_err=$ac_c_preproc_warn_flag
16078 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16085 if test -z "$ac_cpp_err"; then
16086 ac_header_preproc=yes
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_header_preproc=no
16094 rm -f conftest.err conftest.$ac_ext
16095 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16096 echo "${ECHO_T}$ac_header_preproc" >&6; }
16098 # So? What about this header?
16099 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16101 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16102 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16103 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16104 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16105 ac_header_preproc=yes
16108 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16109 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16110 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16111 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16112 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16113 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16114 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16115 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16116 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16117 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16118 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16119 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16121 ## ----------------------------------- ##
16122 ## Report this to llvmbugs@cs.uiuc.edu ##
16123 ## ----------------------------------- ##
16125 ) | sed "s/^/$as_me: WARNING: /" >&2
16128 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16129 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16131 echo $ECHO_N "(cached) $ECHO_C" >&6
16133 eval "$as_ac_Header=\$ac_header_preproc"
16135 ac_res=`eval echo '${'$as_ac_Header'}'`
16136 { echo "$as_me:$LINENO: result: $ac_res" >&5
16137 echo "${ECHO_T}$ac_res" >&6; }
16140 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16141 cat >>confdefs.h <<_ACEOF
16142 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16149 if test "$ENABLE_THREADS" -eq 1 ; then
16151 for ac_header in pthread.h
16153 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16155 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16156 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158 echo $ECHO_N "(cached) $ECHO_C" >&6
16160 ac_res=`eval echo '${'$as_ac_Header'}'`
16161 { echo "$as_me:$LINENO: result: $ac_res" >&5
16162 echo "${ECHO_T}$ac_res" >&6; }
16164 # Is the header compilable?
16165 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16166 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16167 cat >conftest.$ac_ext <<_ACEOF
16170 cat confdefs.h >>conftest.$ac_ext
16171 cat >>conftest.$ac_ext <<_ACEOF
16172 /* end confdefs.h. */
16173 $ac_includes_default
16174 #include <$ac_header>
16176 rm -f conftest.$ac_objext
16177 if { (ac_try="$ac_compile"
16178 case "(($ac_try" in
16179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16180 *) ac_try_echo=$ac_try;;
16182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16183 (eval "$ac_compile") 2>conftest.er1
16185 grep -v '^ *+' conftest.er1 >conftest.err
16187 cat conftest.err >&5
16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16189 (exit $ac_status); } &&
16190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16191 { (case "(($ac_try" in
16192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16193 *) ac_try_echo=$ac_try;;
16195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16196 (eval "$ac_try") 2>&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); }; } &&
16200 { ac_try='test -s conftest.$ac_objext'
16201 { (case "(($ac_try" in
16202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16203 *) ac_try_echo=$ac_try;;
16205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16206 (eval "$ac_try") 2>&5
16208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209 (exit $ac_status); }; }; then
16210 ac_header_compiler=yes
16212 echo "$as_me: failed program was:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 ac_header_compiler=no
16218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16219 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16220 echo "${ECHO_T}$ac_header_compiler" >&6; }
16222 # Is the header present?
16223 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16224 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16225 cat >conftest.$ac_ext <<_ACEOF
16228 cat confdefs.h >>conftest.$ac_ext
16229 cat >>conftest.$ac_ext <<_ACEOF
16230 /* end confdefs.h. */
16231 #include <$ac_header>
16233 if { (ac_try="$ac_cpp conftest.$ac_ext"
16234 case "(($ac_try" in
16235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16236 *) ac_try_echo=$ac_try;;
16238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16241 grep -v '^ *+' conftest.er1 >conftest.err
16243 cat conftest.err >&5
16244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16245 (exit $ac_status); } >/dev/null; then
16246 if test -s conftest.err; then
16247 ac_cpp_err=$ac_c_preproc_warn_flag
16248 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16255 if test -z "$ac_cpp_err"; then
16256 ac_header_preproc=yes
16258 echo "$as_me: failed program was:" >&5
16259 sed 's/^/| /' conftest.$ac_ext >&5
16261 ac_header_preproc=no
16264 rm -f conftest.err conftest.$ac_ext
16265 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16266 echo "${ECHO_T}$ac_header_preproc" >&6; }
16268 # So? What about this header?
16269 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16271 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16272 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16273 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16274 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16275 ac_header_preproc=yes
16278 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16279 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16280 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16281 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16282 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16283 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16284 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16285 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16286 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16287 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16288 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16289 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16291 ## ----------------------------------- ##
16292 ## Report this to llvmbugs@cs.uiuc.edu ##
16293 ## ----------------------------------- ##
16295 ) | sed "s/^/$as_me: WARNING: /" >&2
16298 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16299 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16300 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16301 echo $ECHO_N "(cached) $ECHO_C" >&6
16303 eval "$as_ac_Header=\$ac_header_preproc"
16305 ac_res=`eval echo '${'$as_ac_Header'}'`
16306 { echo "$as_me:$LINENO: result: $ac_res" >&5
16307 echo "${ECHO_T}$ac_res" >&6; }
16310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16311 cat >>confdefs.h <<_ACEOF
16312 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16328 if test "$llvm_cv_enable_libffi" = "yes" ; then
16331 for ac_header in ffi.h ffi/ffi.h
16333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16335 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16338 echo $ECHO_N "(cached) $ECHO_C" >&6
16340 ac_res=`eval echo '${'$as_ac_Header'}'`
16341 { echo "$as_me:$LINENO: result: $ac_res" >&5
16342 echo "${ECHO_T}$ac_res" >&6; }
16344 # Is the header compilable?
16345 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16346 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16347 cat >conftest.$ac_ext <<_ACEOF
16350 cat confdefs.h >>conftest.$ac_ext
16351 cat >>conftest.$ac_ext <<_ACEOF
16352 /* end confdefs.h. */
16353 $ac_includes_default
16354 #include <$ac_header>
16356 rm -f conftest.$ac_objext
16357 if { (ac_try="$ac_compile"
16358 case "(($ac_try" in
16359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16360 *) ac_try_echo=$ac_try;;
16362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16363 (eval "$ac_compile") 2>conftest.er1
16365 grep -v '^ *+' conftest.er1 >conftest.err
16367 cat conftest.err >&5
16368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16369 (exit $ac_status); } &&
16370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16371 { (case "(($ac_try" in
16372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16373 *) ac_try_echo=$ac_try;;
16375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16376 (eval "$ac_try") 2>&5
16378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16379 (exit $ac_status); }; } &&
16380 { ac_try='test -s conftest.$ac_objext'
16381 { (case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_try") 2>&5
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }; }; then
16390 ac_header_compiler=yes
16392 echo "$as_me: failed program was:" >&5
16393 sed 's/^/| /' conftest.$ac_ext >&5
16395 ac_header_compiler=no
16398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16400 echo "${ECHO_T}$ac_header_compiler" >&6; }
16402 # Is the header present?
16403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16405 cat >conftest.$ac_ext <<_ACEOF
16408 cat confdefs.h >>conftest.$ac_ext
16409 cat >>conftest.$ac_ext <<_ACEOF
16410 /* end confdefs.h. */
16411 #include <$ac_header>
16413 if { (ac_try="$ac_cpp conftest.$ac_ext"
16414 case "(($ac_try" in
16415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16416 *) ac_try_echo=$ac_try;;
16418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16421 grep -v '^ *+' conftest.er1 >conftest.err
16423 cat conftest.err >&5
16424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16425 (exit $ac_status); } >/dev/null; then
16426 if test -s conftest.err; then
16427 ac_cpp_err=$ac_c_preproc_warn_flag
16428 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16435 if test -z "$ac_cpp_err"; then
16436 ac_header_preproc=yes
16438 echo "$as_me: failed program was:" >&5
16439 sed 's/^/| /' conftest.$ac_ext >&5
16441 ac_header_preproc=no
16444 rm -f conftest.err conftest.$ac_ext
16445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16446 echo "${ECHO_T}$ac_header_preproc" >&6; }
16448 # So? What about this header?
16449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16451 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16452 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16453 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16454 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16455 ac_header_preproc=yes
16458 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16459 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16460 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16461 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16462 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16463 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16464 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16465 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16466 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16467 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16469 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16471 ## ----------------------------------- ##
16472 ## Report this to llvmbugs@cs.uiuc.edu ##
16473 ## ----------------------------------- ##
16475 ) | sed "s/^/$as_me: WARNING: /" >&2
16478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16480 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16481 echo $ECHO_N "(cached) $ECHO_C" >&6
16483 eval "$as_ac_Header=\$ac_header_preproc"
16485 ac_res=`eval echo '${'$as_ac_Header'}'`
16486 { echo "$as_me:$LINENO: result: $ac_res" >&5
16487 echo "${ECHO_T}$ac_res" >&6; }
16490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16491 cat >>confdefs.h <<_ACEOF
16492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16504 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16505 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16506 if test "${ac_cv_huge_val_sanity+set}" = set; then
16507 echo $ECHO_N "(cached) $ECHO_C" >&6
16511 ac_cpp='$CXXCPP $CPPFLAGS'
16512 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16513 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16514 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16517 if test "$cross_compiling" = yes; then
16518 ac_cv_huge_val_sanity=yes
16520 cat >conftest.$ac_ext <<_ACEOF
16523 cat confdefs.h >>conftest.$ac_ext
16524 cat >>conftest.$ac_ext <<_ACEOF
16525 /* end confdefs.h. */
16530 double x = HUGE_VAL; return x != x;
16535 rm -f conftest$ac_exeext
16536 if { (ac_try="$ac_link"
16537 case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_link") 2>&5
16544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16546 { (case "(($ac_try" in
16547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16548 *) ac_try_echo=$ac_try;;
16550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16551 (eval "$ac_try") 2>&5
16553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16554 (exit $ac_status); }; }; then
16555 ac_cv_huge_val_sanity=yes
16557 echo "$as_me: program exited with status $ac_status" >&5
16558 echo "$as_me: failed program was:" >&5
16559 sed 's/^/| /' conftest.$ac_ext >&5
16561 ( exit $ac_status )
16562 ac_cv_huge_val_sanity=no
16564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16569 ac_cpp='$CPP $CPPFLAGS'
16570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16576 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16577 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16578 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16581 { echo "$as_me:$LINENO: checking for pid_t" >&5
16582 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16583 if test "${ac_cv_type_pid_t+set}" = set; then
16584 echo $ECHO_N "(cached) $ECHO_C" >&6
16586 cat >conftest.$ac_ext <<_ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h. */
16592 $ac_includes_default
16593 typedef pid_t ac__type_new_;
16597 if ((ac__type_new_ *) 0)
16599 if (sizeof (ac__type_new_))
16605 rm -f conftest.$ac_objext
16606 if { (ac_try="$ac_compile"
16607 case "(($ac_try" in
16608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16609 *) ac_try_echo=$ac_try;;
16611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16612 (eval "$ac_compile") 2>conftest.er1
16614 grep -v '^ *+' conftest.er1 >conftest.err
16616 cat conftest.err >&5
16617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16618 (exit $ac_status); } &&
16619 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16620 { (case "(($ac_try" in
16621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16622 *) ac_try_echo=$ac_try;;
16624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16625 (eval "$ac_try") 2>&5
16627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16628 (exit $ac_status); }; } &&
16629 { ac_try='test -s conftest.$ac_objext'
16630 { (case "(($ac_try" in
16631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16632 *) ac_try_echo=$ac_try;;
16634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16635 (eval "$ac_try") 2>&5
16637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16638 (exit $ac_status); }; }; then
16639 ac_cv_type_pid_t=yes
16641 echo "$as_me: failed program was:" >&5
16642 sed 's/^/| /' conftest.$ac_ext >&5
16644 ac_cv_type_pid_t=no
16647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16649 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16650 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16651 if test $ac_cv_type_pid_t = yes; then
16655 cat >>confdefs.h <<_ACEOF
16661 { echo "$as_me:$LINENO: checking for size_t" >&5
16662 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16663 if test "${ac_cv_type_size_t+set}" = set; then
16664 echo $ECHO_N "(cached) $ECHO_C" >&6
16666 cat >conftest.$ac_ext <<_ACEOF
16669 cat confdefs.h >>conftest.$ac_ext
16670 cat >>conftest.$ac_ext <<_ACEOF
16671 /* end confdefs.h. */
16672 $ac_includes_default
16673 typedef size_t ac__type_new_;
16677 if ((ac__type_new_ *) 0)
16679 if (sizeof (ac__type_new_))
16685 rm -f conftest.$ac_objext
16686 if { (ac_try="$ac_compile"
16687 case "(($ac_try" in
16688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16689 *) ac_try_echo=$ac_try;;
16691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16692 (eval "$ac_compile") 2>conftest.er1
16694 grep -v '^ *+' conftest.er1 >conftest.err
16696 cat conftest.err >&5
16697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16698 (exit $ac_status); } &&
16699 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16700 { (case "(($ac_try" in
16701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16702 *) ac_try_echo=$ac_try;;
16704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16705 (eval "$ac_try") 2>&5
16707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16708 (exit $ac_status); }; } &&
16709 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
16719 ac_cv_type_size_t=yes
16721 echo "$as_me: failed program was:" >&5
16722 sed 's/^/| /' conftest.$ac_ext >&5
16724 ac_cv_type_size_t=no
16727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16729 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16730 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16731 if test $ac_cv_type_size_t = yes; then
16735 cat >>confdefs.h <<_ACEOF
16736 #define size_t unsigned int
16742 cat >>confdefs.h <<_ACEOF
16743 #define RETSIGTYPE void
16746 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16747 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16748 if test "${ac_cv_struct_tm+set}" = set; then
16749 echo $ECHO_N "(cached) $ECHO_C" >&6
16751 cat >conftest.$ac_ext <<_ACEOF
16754 cat confdefs.h >>conftest.$ac_ext
16755 cat >>conftest.$ac_ext <<_ACEOF
16756 /* end confdefs.h. */
16757 #include <sys/types.h>
16763 struct tm *tp; tp->tm_sec;
16768 rm -f conftest.$ac_objext
16769 if { (ac_try="$ac_compile"
16770 case "(($ac_try" in
16771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16772 *) ac_try_echo=$ac_try;;
16774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16775 (eval "$ac_compile") 2>conftest.er1
16777 grep -v '^ *+' conftest.er1 >conftest.err
16779 cat conftest.err >&5
16780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16781 (exit $ac_status); } &&
16782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16783 { (case "(($ac_try" in
16784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16785 *) ac_try_echo=$ac_try;;
16787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16788 (eval "$ac_try") 2>&5
16790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16791 (exit $ac_status); }; } &&
16792 { ac_try='test -s conftest.$ac_objext'
16793 { (case "(($ac_try" in
16794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16795 *) ac_try_echo=$ac_try;;
16797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16798 (eval "$ac_try") 2>&5
16800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16801 (exit $ac_status); }; }; then
16802 ac_cv_struct_tm=time.h
16804 echo "$as_me: failed program was:" >&5
16805 sed 's/^/| /' conftest.$ac_ext >&5
16807 ac_cv_struct_tm=sys/time.h
16810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16812 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
16813 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
16814 if test $ac_cv_struct_tm = sys/time.h; then
16816 cat >>confdefs.h <<\_ACEOF
16817 #define TM_IN_SYS_TIME 1
16822 { echo "$as_me:$LINENO: checking for int64_t" >&5
16823 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
16824 if test "${ac_cv_type_int64_t+set}" = set; then
16825 echo $ECHO_N "(cached) $ECHO_C" >&6
16827 cat >conftest.$ac_ext <<_ACEOF
16830 cat confdefs.h >>conftest.$ac_ext
16831 cat >>conftest.$ac_ext <<_ACEOF
16832 /* end confdefs.h. */
16833 $ac_includes_default
16834 typedef int64_t ac__type_new_;
16838 if ((ac__type_new_ *) 0)
16840 if (sizeof (ac__type_new_))
16846 rm -f conftest.$ac_objext
16847 if { (ac_try="$ac_compile"
16848 case "(($ac_try" in
16849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850 *) ac_try_echo=$ac_try;;
16852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16853 (eval "$ac_compile") 2>conftest.er1
16855 grep -v '^ *+' conftest.er1 >conftest.err
16857 cat conftest.err >&5
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); } &&
16860 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16861 { (case "(($ac_try" in
16862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863 *) ac_try_echo=$ac_try;;
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866 (eval "$ac_try") 2>&5
16868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16869 (exit $ac_status); }; } &&
16870 { ac_try='test -s conftest.$ac_objext'
16871 { (case "(($ac_try" in
16872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16873 *) ac_try_echo=$ac_try;;
16875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16876 (eval "$ac_try") 2>&5
16878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16879 (exit $ac_status); }; }; then
16880 ac_cv_type_int64_t=yes
16882 echo "$as_me: failed program was:" >&5
16883 sed 's/^/| /' conftest.$ac_ext >&5
16885 ac_cv_type_int64_t=no
16888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16890 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
16891 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
16892 if test $ac_cv_type_int64_t = yes; then
16894 cat >>confdefs.h <<_ACEOF
16895 #define HAVE_INT64_T 1
16900 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
16901 echo "$as_me: error: Type int64_t required but not found" >&2;}
16902 { (exit 1); exit 1; }; }
16905 { echo "$as_me:$LINENO: checking for uint64_t" >&5
16906 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
16907 if test "${ac_cv_type_uint64_t+set}" = set; then
16908 echo $ECHO_N "(cached) $ECHO_C" >&6
16910 cat >conftest.$ac_ext <<_ACEOF
16913 cat confdefs.h >>conftest.$ac_ext
16914 cat >>conftest.$ac_ext <<_ACEOF
16915 /* end confdefs.h. */
16916 $ac_includes_default
16917 typedef uint64_t ac__type_new_;
16921 if ((ac__type_new_ *) 0)
16923 if (sizeof (ac__type_new_))
16929 rm -f conftest.$ac_objext
16930 if { (ac_try="$ac_compile"
16931 case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_compile") 2>conftest.er1
16938 grep -v '^ *+' conftest.er1 >conftest.err
16940 cat conftest.err >&5
16941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16942 (exit $ac_status); } &&
16943 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16944 { (case "(($ac_try" in
16945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16946 *) ac_try_echo=$ac_try;;
16948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16949 (eval "$ac_try") 2>&5
16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16952 (exit $ac_status); }; } &&
16953 { ac_try='test -s conftest.$ac_objext'
16954 { (case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_try") 2>&5
16961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16962 (exit $ac_status); }; }; then
16963 ac_cv_type_uint64_t=yes
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 ac_cv_type_uint64_t=no
16971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16973 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
16974 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
16975 if test $ac_cv_type_uint64_t = yes; then
16977 cat >>confdefs.h <<_ACEOF
16978 #define HAVE_UINT64_T 1
16983 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
16984 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
16985 if test "${ac_cv_type_u_int64_t+set}" = set; then
16986 echo $ECHO_N "(cached) $ECHO_C" >&6
16988 cat >conftest.$ac_ext <<_ACEOF
16991 cat confdefs.h >>conftest.$ac_ext
16992 cat >>conftest.$ac_ext <<_ACEOF
16993 /* end confdefs.h. */
16994 $ac_includes_default
16995 typedef u_int64_t ac__type_new_;
16999 if ((ac__type_new_ *) 0)
17001 if (sizeof (ac__type_new_))
17007 rm -f conftest.$ac_objext
17008 if { (ac_try="$ac_compile"
17009 case "(($ac_try" in
17010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17011 *) ac_try_echo=$ac_try;;
17013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17014 (eval "$ac_compile") 2>conftest.er1
17016 grep -v '^ *+' conftest.er1 >conftest.err
17018 cat conftest.err >&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); } &&
17021 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17022 { (case "(($ac_try" in
17023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17024 *) ac_try_echo=$ac_try;;
17026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17027 (eval "$ac_try") 2>&5
17029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17030 (exit $ac_status); }; } &&
17031 { ac_try='test -s conftest.$ac_objext'
17032 { (case "(($ac_try" in
17033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17034 *) ac_try_echo=$ac_try;;
17036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17037 (eval "$ac_try") 2>&5
17039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17040 (exit $ac_status); }; }; then
17041 ac_cv_type_u_int64_t=yes
17043 echo "$as_me: failed program was:" >&5
17044 sed 's/^/| /' conftest.$ac_ext >&5
17046 ac_cv_type_u_int64_t=no
17049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17051 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17052 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17053 if test $ac_cv_type_u_int64_t = yes; then
17055 cat >>confdefs.h <<_ACEOF
17056 #define HAVE_U_INT64_T 1
17061 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17062 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17063 { (exit 1); exit 1; }; }
17077 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17079 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17080 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17081 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17082 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 cat >conftest.$ac_ext <<_ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17093 #define $ac_func innocuous_$ac_func
17095 /* System header to define __stub macros and hopefully few prototypes,
17096 which can conflict with char $ac_func (); below.
17097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17098 <limits.h> exists even on freestanding compilers. */
17101 # include <limits.h>
17103 # include <assert.h>
17108 /* Override any GCC internal prototype to avoid an error.
17109 Use char because int might match the return type of a GCC
17110 builtin and then its argument prototype would still apply. */
17115 /* The GNU C library defines this for functions which it implements
17116 to always fail with ENOSYS. Some functions are actually named
17117 something starting with __ and the normal name is an alias. */
17118 #if defined __stub_$ac_func || defined __stub___$ac_func
17125 return $ac_func ();
17130 rm -f conftest.$ac_objext conftest$ac_exeext
17131 if { (ac_try="$ac_link"
17132 case "(($ac_try" in
17133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17134 *) ac_try_echo=$ac_try;;
17136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17137 (eval "$ac_link") 2>conftest.er1
17139 grep -v '^ *+' conftest.er1 >conftest.err
17141 cat conftest.err >&5
17142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17143 (exit $ac_status); } &&
17144 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17145 { (case "(($ac_try" in
17146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17147 *) ac_try_echo=$ac_try;;
17149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17150 (eval "$ac_try") 2>&5
17152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17153 (exit $ac_status); }; } &&
17154 { ac_try='test -s conftest$ac_exeext'
17155 { (case "(($ac_try" in
17156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17157 *) ac_try_echo=$ac_try;;
17159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17160 (eval "$ac_try") 2>&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); }; }; then
17164 eval "$as_ac_var=yes"
17166 echo "$as_me: failed program was:" >&5
17167 sed 's/^/| /' conftest.$ac_ext >&5
17169 eval "$as_ac_var=no"
17172 rm -f core conftest.err conftest.$ac_objext \
17173 conftest$ac_exeext conftest.$ac_ext
17175 ac_res=`eval echo '${'$as_ac_var'}'`
17176 { echo "$as_me:$LINENO: result: $ac_res" >&5
17177 echo "${ECHO_T}$ac_res" >&6; }
17178 if test `eval echo '${'$as_ac_var'}'` = yes; then
17179 cat >>confdefs.h <<_ACEOF
17180 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17190 for ac_func in powf fmodf strtof round
17192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17193 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17195 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17196 echo $ECHO_N "(cached) $ECHO_C" >&6
17198 cat >conftest.$ac_ext <<_ACEOF
17201 cat confdefs.h >>conftest.$ac_ext
17202 cat >>conftest.$ac_ext <<_ACEOF
17203 /* end confdefs.h. */
17204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17206 #define $ac_func innocuous_$ac_func
17208 /* System header to define __stub macros and hopefully few prototypes,
17209 which can conflict with char $ac_func (); below.
17210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17211 <limits.h> exists even on freestanding compilers. */
17214 # include <limits.h>
17216 # include <assert.h>
17221 /* Override any GCC internal prototype to avoid an error.
17222 Use char because int might match the return type of a GCC
17223 builtin and then its argument prototype would still apply. */
17228 /* The GNU C library defines this for functions which it implements
17229 to always fail with ENOSYS. Some functions are actually named
17230 something starting with __ and the normal name is an alias. */
17231 #if defined __stub_$ac_func || defined __stub___$ac_func
17238 return $ac_func ();
17243 rm -f conftest.$ac_objext conftest$ac_exeext
17244 if { (ac_try="$ac_link"
17245 case "(($ac_try" in
17246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17247 *) ac_try_echo=$ac_try;;
17249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17250 (eval "$ac_link") 2>conftest.er1
17252 grep -v '^ *+' conftest.er1 >conftest.err
17254 cat conftest.err >&5
17255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17256 (exit $ac_status); } &&
17257 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17258 { (case "(($ac_try" in
17259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17260 *) ac_try_echo=$ac_try;;
17262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17263 (eval "$ac_try") 2>&5
17265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17266 (exit $ac_status); }; } &&
17267 { ac_try='test -s conftest$ac_exeext'
17268 { (case "(($ac_try" in
17269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270 *) ac_try_echo=$ac_try;;
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273 (eval "$ac_try") 2>&5
17275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17276 (exit $ac_status); }; }; then
17277 eval "$as_ac_var=yes"
17279 echo "$as_me: failed program was:" >&5
17280 sed 's/^/| /' conftest.$ac_ext >&5
17282 eval "$as_ac_var=no"
17285 rm -f core conftest.err conftest.$ac_objext \
17286 conftest$ac_exeext conftest.$ac_ext
17288 ac_res=`eval echo '${'$as_ac_var'}'`
17289 { echo "$as_me:$LINENO: result: $ac_res" >&5
17290 echo "${ECHO_T}$ac_res" >&6; }
17291 if test `eval echo '${'$as_ac_var'}'` = yes; then
17292 cat >>confdefs.h <<_ACEOF
17293 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17304 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17307 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17312 cat >conftest.$ac_ext <<_ACEOF
17315 cat confdefs.h >>conftest.$ac_ext
17316 cat >>conftest.$ac_ext <<_ACEOF
17317 /* end confdefs.h. */
17318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17320 #define $ac_func innocuous_$ac_func
17322 /* System header to define __stub macros and hopefully few prototypes,
17323 which can conflict with char $ac_func (); below.
17324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17325 <limits.h> exists even on freestanding compilers. */
17328 # include <limits.h>
17330 # include <assert.h>
17335 /* Override any GCC internal prototype to avoid an error.
17336 Use char because int might match the return type of a GCC
17337 builtin and then its argument prototype would still apply. */
17342 /* The GNU C library defines this for functions which it implements
17343 to always fail with ENOSYS. Some functions are actually named
17344 something starting with __ and the normal name is an alias. */
17345 #if defined __stub_$ac_func || defined __stub___$ac_func
17352 return $ac_func ();
17357 rm -f conftest.$ac_objext conftest$ac_exeext
17358 if { (ac_try="$ac_link"
17359 case "(($ac_try" in
17360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17361 *) ac_try_echo=$ac_try;;
17363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17364 (eval "$ac_link") 2>conftest.er1
17366 grep -v '^ *+' conftest.er1 >conftest.err
17368 cat conftest.err >&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); } &&
17371 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17372 { (case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_try") 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; } &&
17381 { ac_try='test -s conftest$ac_exeext'
17382 { (case "(($ac_try" in
17383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17384 *) ac_try_echo=$ac_try;;
17386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17387 (eval "$ac_try") 2>&5
17389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17390 (exit $ac_status); }; }; then
17391 eval "$as_ac_var=yes"
17393 echo "$as_me: failed program was:" >&5
17394 sed 's/^/| /' conftest.$ac_ext >&5
17396 eval "$as_ac_var=no"
17399 rm -f core conftest.err conftest.$ac_objext \
17400 conftest$ac_exeext conftest.$ac_ext
17402 ac_res=`eval echo '${'$as_ac_var'}'`
17403 { echo "$as_me:$LINENO: result: $ac_res" >&5
17404 echo "${ECHO_T}$ac_res" >&6; }
17405 if test `eval echo '${'$as_ac_var'}'` = yes; then
17406 cat >>confdefs.h <<_ACEOF
17407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17416 for ac_func in isatty mkdtemp mkstemp
17418 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17419 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17420 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17421 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17422 echo $ECHO_N "(cached) $ECHO_C" >&6
17424 cat >conftest.$ac_ext <<_ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17431 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17432 #define $ac_func innocuous_$ac_func
17434 /* System header to define __stub macros and hopefully few prototypes,
17435 which can conflict with char $ac_func (); below.
17436 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17437 <limits.h> exists even on freestanding compilers. */
17440 # include <limits.h>
17442 # include <assert.h>
17447 /* Override any GCC internal prototype to avoid an error.
17448 Use char because int might match the return type of a GCC
17449 builtin and then its argument prototype would still apply. */
17454 /* The GNU C library defines this for functions which it implements
17455 to always fail with ENOSYS. Some functions are actually named
17456 something starting with __ and the normal name is an alias. */
17457 #if defined __stub_$ac_func || defined __stub___$ac_func
17464 return $ac_func ();
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (ac_try="$ac_link"
17471 case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_link") 2>conftest.er1
17478 grep -v '^ *+' conftest.er1 >conftest.err
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17482 (exit $ac_status); } &&
17483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17484 { (case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_try") 2>&5
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); }; } &&
17493 { ac_try='test -s conftest$ac_exeext'
17494 { (case "(($ac_try" in
17495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17496 *) ac_try_echo=$ac_try;;
17498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17499 (eval "$ac_try") 2>&5
17501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); }; }; then
17503 eval "$as_ac_var=yes"
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17508 eval "$as_ac_var=no"
17511 rm -f core conftest.err conftest.$ac_objext \
17512 conftest$ac_exeext conftest.$ac_ext
17514 ac_res=`eval echo '${'$as_ac_var'}'`
17515 { echo "$as_me:$LINENO: result: $ac_res" >&5
17516 echo "${ECHO_T}$ac_res" >&6; }
17517 if test `eval echo '${'$as_ac_var'}'` = yes; then
17518 cat >>confdefs.h <<_ACEOF
17519 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17530 for ac_func in mktemp realpath sbrk setrlimit strdup
17532 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17533 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17534 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17535 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17536 echo $ECHO_N "(cached) $ECHO_C" >&6
17538 cat >conftest.$ac_ext <<_ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h. */
17544 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17545 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17546 #define $ac_func innocuous_$ac_func
17548 /* System header to define __stub macros and hopefully few prototypes,
17549 which can conflict with char $ac_func (); below.
17550 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17551 <limits.h> exists even on freestanding compilers. */
17554 # include <limits.h>
17556 # include <assert.h>
17561 /* Override any GCC internal prototype to avoid an error.
17562 Use char because int might match the return type of a GCC
17563 builtin and then its argument prototype would still apply. */
17568 /* The GNU C library defines this for functions which it implements
17569 to always fail with ENOSYS. Some functions are actually named
17570 something starting with __ and the normal name is an alias. */
17571 #if defined __stub_$ac_func || defined __stub___$ac_func
17578 return $ac_func ();
17583 rm -f conftest.$ac_objext conftest$ac_exeext
17584 if { (ac_try="$ac_link"
17585 case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17590 (eval "$ac_link") 2>conftest.er1
17592 grep -v '^ *+' conftest.er1 >conftest.err
17594 cat conftest.err >&5
17595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17596 (exit $ac_status); } &&
17597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17598 { (case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_try") 2>&5
17605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17606 (exit $ac_status); }; } &&
17607 { ac_try='test -s conftest$ac_exeext'
17608 { (case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_try") 2>&5
17615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17616 (exit $ac_status); }; }; then
17617 eval "$as_ac_var=yes"
17619 echo "$as_me: failed program was:" >&5
17620 sed 's/^/| /' conftest.$ac_ext >&5
17622 eval "$as_ac_var=no"
17625 rm -f core conftest.err conftest.$ac_objext \
17626 conftest$ac_exeext conftest.$ac_ext
17628 ac_res=`eval echo '${'$as_ac_var'}'`
17629 { echo "$as_me:$LINENO: result: $ac_res" >&5
17630 echo "${ECHO_T}$ac_res" >&6; }
17631 if test `eval echo '${'$as_ac_var'}'` = yes; then
17632 cat >>confdefs.h <<_ACEOF
17633 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17643 for ac_func in strerror strerror_r strerror_s setenv
17645 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17646 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17647 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17648 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17651 cat >conftest.$ac_ext <<_ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17659 #define $ac_func innocuous_$ac_func
17661 /* System header to define __stub macros and hopefully few prototypes,
17662 which can conflict with char $ac_func (); below.
17663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17664 <limits.h> exists even on freestanding compilers. */
17667 # include <limits.h>
17669 # include <assert.h>
17674 /* Override any GCC internal prototype to avoid an error.
17675 Use char because int might match the return type of a GCC
17676 builtin and then its argument prototype would still apply. */
17681 /* The GNU C library defines this for functions which it implements
17682 to always fail with ENOSYS. Some functions are actually named
17683 something starting with __ and the normal name is an alias. */
17684 #if defined __stub_$ac_func || defined __stub___$ac_func
17691 return $ac_func ();
17696 rm -f conftest.$ac_objext conftest$ac_exeext
17697 if { (ac_try="$ac_link"
17698 case "(($ac_try" in
17699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17700 *) ac_try_echo=$ac_try;;
17702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17703 (eval "$ac_link") 2>conftest.er1
17705 grep -v '^ *+' conftest.er1 >conftest.err
17707 cat conftest.err >&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); } &&
17710 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17711 { (case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_try") 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; } &&
17720 { ac_try='test -s conftest$ac_exeext'
17721 { (case "(($ac_try" in
17722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17723 *) ac_try_echo=$ac_try;;
17725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17726 (eval "$ac_try") 2>&5
17728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17729 (exit $ac_status); }; }; then
17730 eval "$as_ac_var=yes"
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17735 eval "$as_ac_var=no"
17738 rm -f core conftest.err conftest.$ac_objext \
17739 conftest$ac_exeext conftest.$ac_ext
17741 ac_res=`eval echo '${'$as_ac_var'}'`
17742 { echo "$as_me:$LINENO: result: $ac_res" >&5
17743 echo "${ECHO_T}$ac_res" >&6; }
17744 if test `eval echo '${'$as_ac_var'}'` = yes; then
17745 cat >>confdefs.h <<_ACEOF
17746 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17756 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17762 echo $ECHO_N "(cached) $ECHO_C" >&6
17764 cat >conftest.$ac_ext <<_ACEOF
17767 cat confdefs.h >>conftest.$ac_ext
17768 cat >>conftest.$ac_ext <<_ACEOF
17769 /* end confdefs.h. */
17770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17772 #define $ac_func innocuous_$ac_func
17774 /* System header to define __stub macros and hopefully few prototypes,
17775 which can conflict with char $ac_func (); below.
17776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17777 <limits.h> exists even on freestanding compilers. */
17780 # include <limits.h>
17782 # include <assert.h>
17787 /* Override any GCC internal prototype to avoid an error.
17788 Use char because int might match the return type of a GCC
17789 builtin and then its argument prototype would still apply. */
17794 /* The GNU C library defines this for functions which it implements
17795 to always fail with ENOSYS. Some functions are actually named
17796 something starting with __ and the normal name is an alias. */
17797 #if defined __stub_$ac_func || defined __stub___$ac_func
17804 return $ac_func ();
17809 rm -f conftest.$ac_objext conftest$ac_exeext
17810 if { (ac_try="$ac_link"
17811 case "(($ac_try" in
17812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17813 *) ac_try_echo=$ac_try;;
17815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17816 (eval "$ac_link") 2>conftest.er1
17818 grep -v '^ *+' conftest.er1 >conftest.err
17820 cat conftest.err >&5
17821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17822 (exit $ac_status); } &&
17823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17824 { (case "(($ac_try" in
17825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17826 *) ac_try_echo=$ac_try;;
17828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17829 (eval "$ac_try") 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest$ac_exeext'
17834 { (case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_try") 2>&5
17841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17842 (exit $ac_status); }; }; then
17843 eval "$as_ac_var=yes"
17845 echo "$as_me: failed program was:" >&5
17846 sed 's/^/| /' conftest.$ac_ext >&5
17848 eval "$as_ac_var=no"
17851 rm -f core conftest.err conftest.$ac_objext \
17852 conftest$ac_exeext conftest.$ac_ext
17854 ac_res=`eval echo '${'$as_ac_var'}'`
17855 { echo "$as_me:$LINENO: result: $ac_res" >&5
17856 echo "${ECHO_T}$ac_res" >&6; }
17857 if test `eval echo '${'$as_ac_var'}'` = yes; then
17858 cat >>confdefs.h <<_ACEOF
17859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17869 for ac_func in setjmp longjmp sigsetjmp siglongjmp
17871 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17872 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17873 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17874 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17875 echo $ECHO_N "(cached) $ECHO_C" >&6
17877 cat >conftest.$ac_ext <<_ACEOF
17880 cat confdefs.h >>conftest.$ac_ext
17881 cat >>conftest.$ac_ext <<_ACEOF
17882 /* end confdefs.h. */
17883 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17884 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17885 #define $ac_func innocuous_$ac_func
17887 /* System header to define __stub macros and hopefully few prototypes,
17888 which can conflict with char $ac_func (); below.
17889 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17890 <limits.h> exists even on freestanding compilers. */
17893 # include <limits.h>
17895 # include <assert.h>
17900 /* Override any GCC internal prototype to avoid an error.
17901 Use char because int might match the return type of a GCC
17902 builtin and then its argument prototype would still apply. */
17907 /* The GNU C library defines this for functions which it implements
17908 to always fail with ENOSYS. Some functions are actually named
17909 something starting with __ and the normal name is an alias. */
17910 #if defined __stub_$ac_func || defined __stub___$ac_func
17917 return $ac_func ();
17922 rm -f conftest.$ac_objext conftest$ac_exeext
17923 if { (ac_try="$ac_link"
17924 case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17929 (eval "$ac_link") 2>conftest.er1
17931 grep -v '^ *+' conftest.er1 >conftest.err
17933 cat conftest.err >&5
17934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17935 (exit $ac_status); } &&
17936 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17937 { (case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_try") 2>&5
17944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17945 (exit $ac_status); }; } &&
17946 { ac_try='test -s conftest$ac_exeext'
17947 { (case "(($ac_try" in
17948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17949 *) ac_try_echo=$ac_try;;
17951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17952 (eval "$ac_try") 2>&5
17954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17955 (exit $ac_status); }; }; then
17956 eval "$as_ac_var=yes"
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17961 eval "$as_ac_var=no"
17964 rm -f core conftest.err conftest.$ac_objext \
17965 conftest$ac_exeext conftest.$ac_ext
17967 ac_res=`eval echo '${'$as_ac_var'}'`
17968 { echo "$as_me:$LINENO: result: $ac_res" >&5
17969 echo "${ECHO_T}$ac_res" >&6; }
17970 if test `eval echo '${'$as_ac_var'}'` = yes; then
17971 cat >>confdefs.h <<_ACEOF
17972 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17978 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
17979 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
17980 if test "${llvm_cv_c_printf_a+set}" = set; then
17981 echo $ECHO_N "(cached) $ECHO_C" >&6
17984 ac_cpp='$CPP $CPPFLAGS'
17985 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17986 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17987 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17989 if test "$cross_compiling" = yes; then
17990 llvmac_cv_c_printf_a=no
17992 cat >conftest.$ac_ext <<_ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
18001 #include <stdlib.h>
18007 volatile double A, B;
18011 sprintf(Buffer, "%a", A);
18015 if (A != 0x1.999999999999ap-4)
18022 rm -f conftest$ac_exeext
18023 if { (ac_try="$ac_link"
18024 case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_link") 2>&5
18031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18032 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18033 { (case "(($ac_try" in
18034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18035 *) ac_try_echo=$ac_try;;
18037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18038 (eval "$ac_try") 2>&5
18040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18041 (exit $ac_status); }; }; then
18042 llvm_cv_c_printf_a=yes
18044 echo "$as_me: program exited with status $ac_status" >&5
18045 echo "$as_me: failed program was:" >&5
18046 sed 's/^/| /' conftest.$ac_ext >&5
18048 ( exit $ac_status )
18049 llvmac_cv_c_printf_a=no
18051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18056 ac_cpp='$CPP $CPPFLAGS'
18057 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18058 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18059 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18062 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18063 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18064 if test "$llvm_cv_c_printf_a" = "yes"; then
18066 cat >>confdefs.h <<\_ACEOF
18067 #define HAVE_PRINTF_A 1
18073 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18074 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18075 if test "${ac_cv_func_rand48+set}" = set; then
18076 echo $ECHO_N "(cached) $ECHO_C" >&6
18079 ac_cpp='$CXXCPP $CPPFLAGS'
18080 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18081 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18082 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18084 cat >conftest.$ac_ext <<_ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18090 #include <stdlib.h>
18094 srand48(0);lrand48();drand48();
18099 rm -f conftest.$ac_objext
18100 if { (ac_try="$ac_compile"
18101 case "(($ac_try" in
18102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18103 *) ac_try_echo=$ac_try;;
18105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18106 (eval "$ac_compile") 2>conftest.er1
18108 grep -v '^ *+' conftest.er1 >conftest.err
18110 cat conftest.err >&5
18111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18112 (exit $ac_status); } &&
18113 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18114 { (case "(($ac_try" in
18115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18116 *) ac_try_echo=$ac_try;;
18118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18119 (eval "$ac_try") 2>&5
18121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18122 (exit $ac_status); }; } &&
18123 { ac_try='test -s conftest.$ac_objext'
18124 { (case "(($ac_try" in
18125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18126 *) ac_try_echo=$ac_try;;
18128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18129 (eval "$ac_try") 2>&5
18131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18132 (exit $ac_status); }; }; then
18133 ac_cv_func_rand48=yes
18135 echo "$as_me: failed program was:" >&5
18136 sed 's/^/| /' conftest.$ac_ext >&5
18138 ac_cv_func_rand48=no
18141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18143 ac_cpp='$CPP $CPPFLAGS'
18144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18149 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18150 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18152 if test "$ac_cv_func_rand48" = "yes" ; then
18154 cat >>confdefs.h <<\_ACEOF
18155 #define HAVE_RAND48 1
18162 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18163 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18164 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18165 echo $ECHO_N "(cached) $ECHO_C" >&6
18168 ac_cpp='$CXXCPP $CPPFLAGS'
18169 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18170 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18171 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18173 cat >conftest.$ac_ext <<_ACEOF
18176 cat confdefs.h >>conftest.$ac_ext
18177 cat >>conftest.$ac_ext <<_ACEOF
18178 /* end confdefs.h. */
18188 rm -f conftest.$ac_objext
18189 if { (ac_try="$ac_compile"
18190 case "(($ac_try" in
18191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18192 *) ac_try_echo=$ac_try;;
18194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18195 (eval "$ac_compile") 2>conftest.er1
18197 grep -v '^ *+' conftest.er1 >conftest.err
18199 cat conftest.err >&5
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); } &&
18202 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18203 { (case "(($ac_try" in
18204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18205 *) ac_try_echo=$ac_try;;
18207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18208 (eval "$ac_try") 2>&5
18210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18211 (exit $ac_status); }; } &&
18212 { ac_try='test -s conftest.$ac_objext'
18213 { (case "(($ac_try" in
18214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18215 *) ac_try_echo=$ac_try;;
18217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18218 (eval "$ac_try") 2>&5
18220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18221 (exit $ac_status); }; }; then
18222 ac_cv_func_isnan_in_math_h=yes
18224 echo "$as_me: failed program was:" >&5
18225 sed 's/^/| /' conftest.$ac_ext >&5
18227 ac_cv_func_isnan_in_math_h=no
18230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18232 ac_cpp='$CPP $CPPFLAGS'
18233 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18234 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18235 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18238 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18239 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18242 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18244 cat >>confdefs.h <<\_ACEOF
18245 #define HAVE_ISNAN_IN_MATH_H 1
18250 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18251 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18252 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18253 echo $ECHO_N "(cached) $ECHO_C" >&6
18256 ac_cpp='$CXXCPP $CPPFLAGS'
18257 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18258 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18259 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18261 cat >conftest.$ac_ext <<_ACEOF
18264 cat confdefs.h >>conftest.$ac_ext
18265 cat >>conftest.$ac_ext <<_ACEOF
18266 /* end confdefs.h. */
18276 rm -f conftest.$ac_objext
18277 if { (ac_try="$ac_compile"
18278 case "(($ac_try" in
18279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18280 *) ac_try_echo=$ac_try;;
18282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18283 (eval "$ac_compile") 2>conftest.er1
18285 grep -v '^ *+' conftest.er1 >conftest.err
18287 cat conftest.err >&5
18288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18289 (exit $ac_status); } &&
18290 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18291 { (case "(($ac_try" in
18292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18293 *) ac_try_echo=$ac_try;;
18295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18296 (eval "$ac_try") 2>&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); }; } &&
18300 { ac_try='test -s conftest.$ac_objext'
18301 { (case "(($ac_try" in
18302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18303 *) ac_try_echo=$ac_try;;
18305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18306 (eval "$ac_try") 2>&5
18308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18309 (exit $ac_status); }; }; then
18310 ac_cv_func_isnan_in_cmath=yes
18312 echo "$as_me: failed program was:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 ac_cv_func_isnan_in_cmath=no
18318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18320 ac_cpp='$CPP $CPPFLAGS'
18321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18326 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18327 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18329 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18331 cat >>confdefs.h <<\_ACEOF
18332 #define HAVE_ISNAN_IN_CMATH 1
18337 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18338 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18339 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18340 echo $ECHO_N "(cached) $ECHO_C" >&6
18343 ac_cpp='$CXXCPP $CPPFLAGS'
18344 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18345 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18346 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18348 cat >conftest.$ac_ext <<_ACEOF
18351 cat confdefs.h >>conftest.$ac_ext
18352 cat >>conftest.$ac_ext <<_ACEOF
18353 /* end confdefs.h. */
18358 float f; std::isnan(f);
18363 rm -f conftest.$ac_objext
18364 if { (ac_try="$ac_compile"
18365 case "(($ac_try" in
18366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18367 *) ac_try_echo=$ac_try;;
18369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18370 (eval "$ac_compile") 2>conftest.er1
18372 grep -v '^ *+' conftest.er1 >conftest.err
18374 cat conftest.err >&5
18375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18376 (exit $ac_status); } &&
18377 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18378 { (case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_try") 2>&5
18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18386 (exit $ac_status); }; } &&
18387 { ac_try='test -s conftest.$ac_objext'
18388 { (case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18393 (eval "$ac_try") 2>&5
18395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18396 (exit $ac_status); }; }; then
18397 ac_cv_func_std_isnan_in_cmath=yes
18399 echo "$as_me: failed program was:" >&5
18400 sed 's/^/| /' conftest.$ac_ext >&5
18402 ac_cv_func_std_isnan_in_cmath=no
18405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18407 ac_cpp='$CPP $CPPFLAGS'
18408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18413 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18414 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18416 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18418 cat >>confdefs.h <<\_ACEOF
18419 #define HAVE_STD_ISNAN_IN_CMATH 1
18425 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18426 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18427 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18428 echo $ECHO_N "(cached) $ECHO_C" >&6
18431 ac_cpp='$CXXCPP $CPPFLAGS'
18432 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18433 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18434 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18436 cat >conftest.$ac_ext <<_ACEOF
18439 cat confdefs.h >>conftest.$ac_ext
18440 cat >>conftest.$ac_ext <<_ACEOF
18441 /* end confdefs.h. */
18451 rm -f conftest.$ac_objext
18452 if { (ac_try="$ac_compile"
18453 case "(($ac_try" in
18454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18455 *) ac_try_echo=$ac_try;;
18457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18458 (eval "$ac_compile") 2>conftest.er1
18460 grep -v '^ *+' conftest.er1 >conftest.err
18462 cat conftest.err >&5
18463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18464 (exit $ac_status); } &&
18465 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18466 { (case "(($ac_try" in
18467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18468 *) ac_try_echo=$ac_try;;
18470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18471 (eval "$ac_try") 2>&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); }; } &&
18475 { ac_try='test -s conftest.$ac_objext'
18476 { (case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18481 (eval "$ac_try") 2>&5
18483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18484 (exit $ac_status); }; }; then
18485 ac_cv_func_isinf_in_math_h=yes
18487 echo "$as_me: failed program was:" >&5
18488 sed 's/^/| /' conftest.$ac_ext >&5
18490 ac_cv_func_isinf_in_math_h=no
18493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18495 ac_cpp='$CPP $CPPFLAGS'
18496 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18497 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18498 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18501 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18502 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18504 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18506 cat >>confdefs.h <<\_ACEOF
18507 #define HAVE_ISINF_IN_MATH_H 1
18512 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18513 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18514 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18515 echo $ECHO_N "(cached) $ECHO_C" >&6
18518 ac_cpp='$CXXCPP $CPPFLAGS'
18519 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18520 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18521 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18523 cat >conftest.$ac_ext <<_ACEOF
18526 cat confdefs.h >>conftest.$ac_ext
18527 cat >>conftest.$ac_ext <<_ACEOF
18528 /* end confdefs.h. */
18538 rm -f conftest.$ac_objext
18539 if { (ac_try="$ac_compile"
18540 case "(($ac_try" in
18541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18542 *) ac_try_echo=$ac_try;;
18544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18545 (eval "$ac_compile") 2>conftest.er1
18547 grep -v '^ *+' conftest.er1 >conftest.err
18549 cat conftest.err >&5
18550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18551 (exit $ac_status); } &&
18552 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18553 { (case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18558 (eval "$ac_try") 2>&5
18560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); }; } &&
18562 { ac_try='test -s conftest.$ac_objext'
18563 { (case "(($ac_try" in
18564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18565 *) ac_try_echo=$ac_try;;
18567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18568 (eval "$ac_try") 2>&5
18570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18571 (exit $ac_status); }; }; then
18572 ac_cv_func_isinf_in_cmath=yes
18574 echo "$as_me: failed program was:" >&5
18575 sed 's/^/| /' conftest.$ac_ext >&5
18577 ac_cv_func_isinf_in_cmath=no
18580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18582 ac_cpp='$CPP $CPPFLAGS'
18583 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18584 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18585 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18588 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18589 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18591 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18593 cat >>confdefs.h <<\_ACEOF
18594 #define HAVE_ISINF_IN_CMATH 1
18599 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18600 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18601 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18602 echo $ECHO_N "(cached) $ECHO_C" >&6
18605 ac_cpp='$CXXCPP $CPPFLAGS'
18606 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18607 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18608 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18610 cat >conftest.$ac_ext <<_ACEOF
18613 cat confdefs.h >>conftest.$ac_ext
18614 cat >>conftest.$ac_ext <<_ACEOF
18615 /* end confdefs.h. */
18620 float f; std::isinf(f)}
18625 rm -f conftest.$ac_objext
18626 if { (ac_try="$ac_compile"
18627 case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_compile") 2>conftest.er1
18634 grep -v '^ *+' conftest.er1 >conftest.err
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18638 (exit $ac_status); } &&
18639 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18640 { (case "(($ac_try" in
18641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18642 *) ac_try_echo=$ac_try;;
18644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18645 (eval "$ac_try") 2>&5
18647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18648 (exit $ac_status); }; } &&
18649 { ac_try='test -s conftest.$ac_objext'
18650 { (case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_try") 2>&5
18657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18658 (exit $ac_status); }; }; then
18659 ac_cv_func_std_isinf_in_cmath=yes
18661 echo "$as_me: failed program was:" >&5
18662 sed 's/^/| /' conftest.$ac_ext >&5
18664 ac_cv_func_std_isinf_in_cmath=no
18667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18669 ac_cpp='$CPP $CPPFLAGS'
18670 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18671 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18672 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18675 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18676 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18678 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18680 cat >>confdefs.h <<\_ACEOF
18681 #define HAVE_STD_ISINF_IN_CMATH 1
18686 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18687 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18688 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18689 echo $ECHO_N "(cached) $ECHO_C" >&6
18692 ac_cpp='$CXXCPP $CPPFLAGS'
18693 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18694 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18695 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18697 cat >conftest.$ac_ext <<_ACEOF
18700 cat confdefs.h >>conftest.$ac_ext
18701 cat >>conftest.$ac_ext <<_ACEOF
18702 /* end confdefs.h. */
18703 #include <ieeefp.h>
18707 float f; finite(f);
18712 rm -f conftest.$ac_objext
18713 if { (ac_try="$ac_compile"
18714 case "(($ac_try" in
18715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18716 *) ac_try_echo=$ac_try;;
18718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18719 (eval "$ac_compile") 2>conftest.er1
18721 grep -v '^ *+' conftest.er1 >conftest.err
18723 cat conftest.err >&5
18724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18725 (exit $ac_status); } &&
18726 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18727 { (case "(($ac_try" in
18728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18729 *) ac_try_echo=$ac_try;;
18731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18732 (eval "$ac_try") 2>&5
18734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18735 (exit $ac_status); }; } &&
18736 { ac_try='test -s conftest.$ac_objext'
18737 { (case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_try") 2>&5
18744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18745 (exit $ac_status); }; }; then
18746 ac_cv_func_finite_in_ieeefp_h=yes
18748 echo "$as_me: failed program was:" >&5
18749 sed 's/^/| /' conftest.$ac_ext >&5
18751 ac_cv_func_finite_in_ieeefp_h=no
18754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756 ac_cpp='$CPP $CPPFLAGS'
18757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18762 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18763 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18765 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18767 cat >>confdefs.h <<\_ACEOF
18768 #define HAVE_FINITE_IN_IEEEFP_H 1
18775 if test "$llvm_cv_platform_type" = "Unix" ; then
18778 for ac_header in stdlib.h unistd.h
18780 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18781 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18785 echo $ECHO_N "(cached) $ECHO_C" >&6
18787 ac_res=`eval echo '${'$as_ac_Header'}'`
18788 { echo "$as_me:$LINENO: result: $ac_res" >&5
18789 echo "${ECHO_T}$ac_res" >&6; }
18791 # Is the header compilable?
18792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18794 cat >conftest.$ac_ext <<_ACEOF
18797 cat confdefs.h >>conftest.$ac_ext
18798 cat >>conftest.$ac_ext <<_ACEOF
18799 /* end confdefs.h. */
18800 $ac_includes_default
18801 #include <$ac_header>
18803 rm -f conftest.$ac_objext
18804 if { (ac_try="$ac_compile"
18805 case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_compile") 2>conftest.er1
18812 grep -v '^ *+' conftest.er1 >conftest.err
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } &&
18817 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18818 { (case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18823 (eval "$ac_try") 2>&5
18825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18826 (exit $ac_status); }; } &&
18827 { ac_try='test -s conftest.$ac_objext'
18828 { (case "(($ac_try" in
18829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18830 *) ac_try_echo=$ac_try;;
18832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18833 (eval "$ac_try") 2>&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); }; }; then
18837 ac_header_compiler=yes
18839 echo "$as_me: failed program was:" >&5
18840 sed 's/^/| /' conftest.$ac_ext >&5
18842 ac_header_compiler=no
18845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18846 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18847 echo "${ECHO_T}$ac_header_compiler" >&6; }
18849 # Is the header present?
18850 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18851 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18852 cat >conftest.$ac_ext <<_ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18858 #include <$ac_header>
18860 if { (ac_try="$ac_cpp conftest.$ac_ext"
18861 case "(($ac_try" in
18862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18863 *) ac_try_echo=$ac_try;;
18865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18868 grep -v '^ *+' conftest.er1 >conftest.err
18870 cat conftest.err >&5
18871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18872 (exit $ac_status); } >/dev/null; then
18873 if test -s conftest.err; then
18874 ac_cpp_err=$ac_c_preproc_warn_flag
18875 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18882 if test -z "$ac_cpp_err"; then
18883 ac_header_preproc=yes
18885 echo "$as_me: failed program was:" >&5
18886 sed 's/^/| /' conftest.$ac_ext >&5
18888 ac_header_preproc=no
18891 rm -f conftest.err conftest.$ac_ext
18892 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18893 echo "${ECHO_T}$ac_header_preproc" >&6; }
18895 # So? What about this header?
18896 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18898 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18899 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18900 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18901 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18902 ac_header_preproc=yes
18905 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18906 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18907 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18908 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18909 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18910 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18911 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18912 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18913 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18914 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18915 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18916 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18918 ## ----------------------------------- ##
18919 ## Report this to llvmbugs@cs.uiuc.edu ##
18920 ## ----------------------------------- ##
18922 ) | sed "s/^/$as_me: WARNING: /" >&2
18925 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18926 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18927 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18928 echo $ECHO_N "(cached) $ECHO_C" >&6
18930 eval "$as_ac_Header=\$ac_header_preproc"
18932 ac_res=`eval echo '${'$as_ac_Header'}'`
18933 { echo "$as_me:$LINENO: result: $ac_res" >&5
18934 echo "${ECHO_T}$ac_res" >&6; }
18937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18938 cat >>confdefs.h <<_ACEOF
18939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18947 for ac_func in getpagesize
18949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18953 echo $ECHO_N "(cached) $ECHO_C" >&6
18955 cat >conftest.$ac_ext <<_ACEOF
18958 cat confdefs.h >>conftest.$ac_ext
18959 cat >>conftest.$ac_ext <<_ACEOF
18960 /* end confdefs.h. */
18961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18963 #define $ac_func innocuous_$ac_func
18965 /* System header to define __stub macros and hopefully few prototypes,
18966 which can conflict with char $ac_func (); below.
18967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18968 <limits.h> exists even on freestanding compilers. */
18971 # include <limits.h>
18973 # include <assert.h>
18978 /* Override any GCC internal prototype to avoid an error.
18979 Use char because int might match the return type of a GCC
18980 builtin and then its argument prototype would still apply. */
18985 /* The GNU C library defines this for functions which it implements
18986 to always fail with ENOSYS. Some functions are actually named
18987 something starting with __ and the normal name is an alias. */
18988 #if defined __stub_$ac_func || defined __stub___$ac_func
18995 return $ac_func ();
19000 rm -f conftest.$ac_objext conftest$ac_exeext
19001 if { (ac_try="$ac_link"
19002 case "(($ac_try" in
19003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19004 *) ac_try_echo=$ac_try;;
19006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19007 (eval "$ac_link") 2>conftest.er1
19009 grep -v '^ *+' conftest.er1 >conftest.err
19011 cat conftest.err >&5
19012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19013 (exit $ac_status); } &&
19014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19015 { (case "(($ac_try" in
19016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19017 *) ac_try_echo=$ac_try;;
19019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19020 (eval "$ac_try") 2>&5
19022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19023 (exit $ac_status); }; } &&
19024 { ac_try='test -s conftest$ac_exeext'
19025 { (case "(($ac_try" in
19026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19027 *) ac_try_echo=$ac_try;;
19029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19030 (eval "$ac_try") 2>&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); }; }; then
19034 eval "$as_ac_var=yes"
19036 echo "$as_me: failed program was:" >&5
19037 sed 's/^/| /' conftest.$ac_ext >&5
19039 eval "$as_ac_var=no"
19042 rm -f core conftest.err conftest.$ac_objext \
19043 conftest$ac_exeext conftest.$ac_ext
19045 ac_res=`eval echo '${'$as_ac_var'}'`
19046 { echo "$as_me:$LINENO: result: $ac_res" >&5
19047 echo "${ECHO_T}$ac_res" >&6; }
19048 if test `eval echo '${'$as_ac_var'}'` = yes; then
19049 cat >>confdefs.h <<_ACEOF
19050 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19056 { echo "$as_me:$LINENO: checking for working mmap" >&5
19057 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19058 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19059 echo $ECHO_N "(cached) $ECHO_C" >&6
19061 if test "$cross_compiling" = yes; then
19062 ac_cv_func_mmap_fixed_mapped=no
19064 cat >conftest.$ac_ext <<_ACEOF
19067 cat confdefs.h >>conftest.$ac_ext
19068 cat >>conftest.$ac_ext <<_ACEOF
19069 /* end confdefs.h. */
19070 $ac_includes_default
19071 /* malloc might have been renamed as rpl_malloc. */
19074 /* Thanks to Mike Haertel and Jim Avera for this test.
19075 Here is a matrix of mmap possibilities:
19076 mmap private not fixed
19077 mmap private fixed at somewhere currently unmapped
19078 mmap private fixed at somewhere already mapped
19079 mmap shared not fixed
19080 mmap shared fixed at somewhere currently unmapped
19081 mmap shared fixed at somewhere already mapped
19082 For private mappings, we should verify that changes cannot be read()
19083 back from the file, nor mmap's back from the file at a different
19084 address. (There have been systems where private was not correctly
19085 implemented like the infamous i386 svr4.0, and systems where the
19086 VM page cache was not coherent with the file system buffer cache
19087 like early versions of FreeBSD and possibly contemporary NetBSD.)
19088 For shared mappings, we should conversely verify that changes get
19089 propagated back to all the places they're supposed to be.
19091 Grep wants private fixed already mapped.
19092 The main things grep needs to know about mmap are:
19093 * does it exist and is it safe to write into the mmap'd area
19094 * how to use it (BSD variants) */
19097 #include <sys/mman.h>
19099 #if !STDC_HEADERS && !HAVE_STDLIB_H
19103 /* This mess was copied from the GNU getpagesize.h. */
19104 #if !HAVE_GETPAGESIZE
19105 /* Assume that all systems that can run configure have sys/param.h. */
19106 # if !HAVE_SYS_PARAM_H
19107 # define HAVE_SYS_PARAM_H 1
19110 # ifdef _SC_PAGESIZE
19111 # define getpagesize() sysconf(_SC_PAGESIZE)
19112 # else /* no _SC_PAGESIZE */
19113 # if HAVE_SYS_PARAM_H
19114 # include <sys/param.h>
19115 # ifdef EXEC_PAGESIZE
19116 # define getpagesize() EXEC_PAGESIZE
19117 # else /* no EXEC_PAGESIZE */
19119 # define getpagesize() NBPG * CLSIZE
19122 # endif /* no CLSIZE */
19123 # else /* no NBPG */
19125 # define getpagesize() NBPC
19126 # else /* no NBPC */
19128 # define getpagesize() PAGESIZE
19129 # endif /* PAGESIZE */
19130 # endif /* no NBPC */
19131 # endif /* no NBPG */
19132 # endif /* no EXEC_PAGESIZE */
19133 # else /* no HAVE_SYS_PARAM_H */
19134 # define getpagesize() 8192 /* punt totally */
19135 # endif /* no HAVE_SYS_PARAM_H */
19136 # endif /* no _SC_PAGESIZE */
19138 #endif /* no HAVE_GETPAGESIZE */
19143 char *data, *data2, *data3;
19147 pagesize = getpagesize ();
19149 /* First, make a file with some known garbage in it. */
19150 data = (char *) malloc (pagesize);
19153 for (i = 0; i < pagesize; ++i)
19154 *(data + i) = rand ();
19156 fd = creat ("conftest.mmap", 0600);
19159 if (write (fd, data, pagesize) != pagesize)
19163 /* Next, try to mmap the file at a fixed address which already has
19164 something else allocated at it. If we can, also make sure that
19165 we see the same garbage. */
19166 fd = open ("conftest.mmap", O_RDWR);
19169 data2 = (char *) malloc (2 * pagesize);
19172 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19173 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19174 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19176 for (i = 0; i < pagesize; ++i)
19177 if (*(data + i) != *(data2 + i))
19180 /* Finally, make sure that changes to the mapped area do not
19181 percolate back to the file as seen by read(). (This is a bug on
19182 some variants of i386 svr4.0.) */
19183 for (i = 0; i < pagesize; ++i)
19184 *(data2 + i) = *(data2 + i) + 1;
19185 data3 = (char *) malloc (pagesize);
19188 if (read (fd, data3, pagesize) != pagesize)
19190 for (i = 0; i < pagesize; ++i)
19191 if (*(data + i) != *(data3 + i))
19197 rm -f conftest$ac_exeext
19198 if { (ac_try="$ac_link"
19199 case "(($ac_try" in
19200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19201 *) ac_try_echo=$ac_try;;
19203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19204 (eval "$ac_link") 2>&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; }; then
19217 ac_cv_func_mmap_fixed_mapped=yes
19219 echo "$as_me: program exited with status $ac_status" >&5
19220 echo "$as_me: failed program was:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19223 ( exit $ac_status )
19224 ac_cv_func_mmap_fixed_mapped=no
19226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19231 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19232 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19233 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19235 cat >>confdefs.h <<\_ACEOF
19236 #define HAVE_MMAP 1
19240 rm -f conftest.mmap
19242 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19243 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19244 if test "${ac_cv_func_mmap_file+set}" = set; then
19245 echo $ECHO_N "(cached) $ECHO_C" >&6
19248 ac_cpp='$CPP $CPPFLAGS'
19249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19253 if test "$cross_compiling" = yes; then
19254 ac_cv_func_mmap_file=no
19256 cat >conftest.$ac_ext <<_ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19264 #include <sys/types.h>
19265 #include <sys/mman.h>
19273 fd = creat ("foo",0777);
19274 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19276 return (fd != (int) MAP_FAILED);
19281 rm -f conftest$ac_exeext
19282 if { (ac_try="$ac_link"
19283 case "(($ac_try" in
19284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19285 *) ac_try_echo=$ac_try;;
19287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19288 (eval "$ac_link") 2>&5
19290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19291 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19292 { (case "(($ac_try" in
19293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19294 *) ac_try_echo=$ac_try;;
19296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19297 (eval "$ac_try") 2>&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); }; }; then
19301 ac_cv_func_mmap_file=yes
19303 echo "$as_me: program exited with status $ac_status" >&5
19304 echo "$as_me: failed program was:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19307 ( exit $ac_status )
19308 ac_cv_func_mmap_file=no
19310 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19315 ac_cpp='$CPP $CPPFLAGS'
19316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19322 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19323 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19324 if test "$ac_cv_func_mmap_file" = yes; then
19326 cat >>confdefs.h <<\_ACEOF
19327 #define HAVE_MMAP_FILE
19334 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19335 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19336 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19337 echo $ECHO_N "(cached) $ECHO_C" >&6
19339 if test "$llvm_cv_os_type" = "Interix" ; then
19340 ac_cv_need_dev_zero_for_mmap=yes
19342 ac_cv_need_dev_zero_for_mmap=no
19346 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19347 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19348 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19350 cat >>confdefs.h <<\_ACEOF
19351 #define NEED_DEV_ZERO_FOR_MMAP 1
19356 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19358 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19359 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19361 if test "$ac_cv_func_mmap_file" = "no"
19363 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19364 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19368 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19369 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19370 cat >conftest.$ac_ext <<_ACEOF
19373 cat confdefs.h >>conftest.$ac_ext
19374 cat >>conftest.$ac_ext <<_ACEOF
19375 /* end confdefs.h. */
19377 volatile unsigned long val = 1;
19378 __sync_synchronize();
19379 __sync_val_compare_and_swap(&val, 1, 0);
19380 __sync_add_and_fetch(&val, 1);
19381 __sync_sub_and_fetch(&val, 1);
19386 rm -f conftest.$ac_objext conftest$ac_exeext
19387 if { (ac_try="$ac_link"
19388 case "(($ac_try" in
19389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19390 *) ac_try_echo=$ac_try;;
19392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19393 (eval "$ac_link") 2>conftest.er1
19395 grep -v '^ *+' conftest.er1 >conftest.err
19397 cat conftest.err >&5
19398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19399 (exit $ac_status); } &&
19400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19401 { (case "(($ac_try" in
19402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19403 *) ac_try_echo=$ac_try;;
19405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19406 (eval "$ac_try") 2>&5
19408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19409 (exit $ac_status); }; } &&
19410 { ac_try='test -s conftest$ac_exeext'
19411 { (case "(($ac_try" in
19412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19413 *) ac_try_echo=$ac_try;;
19415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19416 (eval "$ac_try") 2>&5
19418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19419 (exit $ac_status); }; }; then
19420 { echo "$as_me:$LINENO: result: yes" >&5
19421 echo "${ECHO_T}yes" >&6; }
19423 cat >>confdefs.h <<\_ACEOF
19424 #define LLVM_MULTITHREADED 1
19428 echo "$as_me: failed program was:" >&5
19429 sed 's/^/| /' conftest.$ac_ext >&5
19431 { echo "$as_me:$LINENO: result: no" >&5
19432 echo "${ECHO_T}no" >&6; }
19434 cat >>confdefs.h <<\_ACEOF
19435 #define LLVM_MULTITHREADED 0
19438 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19439 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19442 rm -f core conftest.err conftest.$ac_objext \
19443 conftest$ac_exeext conftest.$ac_ext
19447 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19448 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19449 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19450 if test "${llvm_cv_linux_mixed+set}" = set; then
19451 echo $ECHO_N "(cached) $ECHO_C" >&6
19454 ac_cpp='$CPP $CPPFLAGS'
19455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19459 cat >conftest.$ac_ext <<_ACEOF
19462 cat confdefs.h >>conftest.$ac_ext
19463 cat >>conftest.$ac_ext <<_ACEOF
19464 /* end confdefs.h. */
19466 error: Not x86-64 even if uname says so!
19477 rm -f conftest.$ac_objext
19478 if { (ac_try="$ac_compile"
19479 case "(($ac_try" in
19480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19481 *) ac_try_echo=$ac_try;;
19483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19484 (eval "$ac_compile") 2>conftest.er1
19486 grep -v '^ *+' conftest.er1 >conftest.err
19488 cat conftest.err >&5
19489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19490 (exit $ac_status); } &&
19491 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19492 { (case "(($ac_try" in
19493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19494 *) ac_try_echo=$ac_try;;
19496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19497 (eval "$ac_try") 2>&5
19499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19500 (exit $ac_status); }; } &&
19501 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
19511 llvm_cv_linux_mixed=no
19513 echo "$as_me: failed program was:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 llvm_cv_linux_mixed=yes
19519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19521 ac_cpp='$CPP $CPPFLAGS'
19522 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19523 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19524 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19528 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19529 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19531 if test "$llvm_cv_linux_mixed" = "yes"; then
19532 llvm_cv_target_arch="x86"
19538 for ac_func in __dso_handle
19540 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19541 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19542 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19543 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19546 cat >conftest.$ac_ext <<_ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19552 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19553 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19554 #define $ac_func innocuous_$ac_func
19556 /* System header to define __stub macros and hopefully few prototypes,
19557 which can conflict with char $ac_func (); below.
19558 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19559 <limits.h> exists even on freestanding compilers. */
19562 # include <limits.h>
19564 # include <assert.h>
19569 /* Override any GCC internal prototype to avoid an error.
19570 Use char because int might match the return type of a GCC
19571 builtin and then its argument prototype would still apply. */
19576 /* The GNU C library defines this for functions which it implements
19577 to always fail with ENOSYS. Some functions are actually named
19578 something starting with __ and the normal name is an alias. */
19579 #if defined __stub_$ac_func || defined __stub___$ac_func
19586 return $ac_func ();
19591 rm -f conftest.$ac_objext conftest$ac_exeext
19592 if { (ac_try="$ac_link"
19593 case "(($ac_try" in
19594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595 *) ac_try_echo=$ac_try;;
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598 (eval "$ac_link") 2>conftest.er1
19600 grep -v '^ *+' conftest.er1 >conftest.err
19602 cat conftest.err >&5
19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19604 (exit $ac_status); } &&
19605 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19606 { (case "(($ac_try" in
19607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19608 *) ac_try_echo=$ac_try;;
19610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19611 (eval "$ac_try") 2>&5
19613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); }; } &&
19615 { ac_try='test -s conftest$ac_exeext'
19616 { (case "(($ac_try" in
19617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19618 *) ac_try_echo=$ac_try;;
19620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19621 (eval "$ac_try") 2>&5
19623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19624 (exit $ac_status); }; }; then
19625 eval "$as_ac_var=yes"
19627 echo "$as_me: failed program was:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 eval "$as_ac_var=no"
19633 rm -f core conftest.err conftest.$ac_objext \
19634 conftest$ac_exeext conftest.$ac_ext
19636 ac_res=`eval echo '${'$as_ac_var'}'`
19637 { echo "$as_me:$LINENO: result: $ac_res" >&5
19638 echo "${ECHO_T}$ac_res" >&6; }
19639 if test `eval echo '${'$as_ac_var'}'` = yes; then
19640 cat >>confdefs.h <<_ACEOF
19641 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19648 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19649 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19650 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19651 echo $ECHO_N "(cached) $ECHO_C" >&6
19653 llvm_cv_llvmgcc_sanity="no"
19654 if test -x "$LLVMGCC" ; then
19655 cp /dev/null conftest.c
19656 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19657 grep 'target datalayout =' > /dev/null 2>&1
19658 if test $? -eq 0 ; then
19659 llvm_cv_llvmgcc_sanity="yes"
19664 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19665 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19667 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19668 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19669 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19670 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19671 LLVMCC1=$llvmcc1path
19673 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19674 LLVMCC1PLUS=$llvmcc1pluspath
19676 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19677 LLVMGCCDIR=$llvmgccdir
19679 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19680 LLVMGCC_LANGS=$llvmgcclangs
19682 { echo "$as_me:$LINENO: result: ok" >&5
19683 echo "${ECHO_T}ok" >&6; }
19686 SHLIBEXT=$libltdl_cv_shlibext
19689 # Translate the various configuration directories and other basic
19690 # information into substitutions that will end up in Makefile.config.in
19691 # that these configured values can be used by the makefiles
19692 if test "${prefix}" = "NONE" ; then
19693 prefix="/usr/local"
19695 eval LLVM_PREFIX="${prefix}";
19696 eval LLVM_BINDIR="${prefix}/bin";
19697 eval LLVM_LIBDIR="${prefix}/lib";
19698 eval LLVM_DATADIR="${prefix}/share/llvm";
19699 eval LLVM_DOCSDIR="${prefix}/docs/llvm";
19700 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19701 eval LLVM_INCLUDEDIR="${prefix}/include";
19702 eval LLVM_INFODIR="${prefix}/info";
19703 eval LLVM_MANDIR="${prefix}/man";
19704 LLVM_CONFIGTIME=`date`
19716 # Place the various directores into the config.h file as #defines so that we
19717 # can know about the installation paths within LLVM.
19719 cat >>confdefs.h <<_ACEOF
19720 #define LLVM_PREFIX "$LLVM_PREFIX"
19724 cat >>confdefs.h <<_ACEOF
19725 #define LLVM_BINDIR "$LLVM_BINDIR"
19729 cat >>confdefs.h <<_ACEOF
19730 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19734 cat >>confdefs.h <<_ACEOF
19735 #define LLVM_DATADIR "$LLVM_DATADIR"
19739 cat >>confdefs.h <<_ACEOF
19740 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19744 cat >>confdefs.h <<_ACEOF
19745 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19749 cat >>confdefs.h <<_ACEOF
19750 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19754 cat >>confdefs.h <<_ACEOF
19755 #define LLVM_INFODIR "$LLVM_INFODIR"
19759 cat >>confdefs.h <<_ACEOF
19760 #define LLVM_MANDIR "$LLVM_MANDIR"
19764 cat >>confdefs.h <<_ACEOF
19765 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19769 cat >>confdefs.h <<_ACEOF
19770 #define LLVM_HOSTTRIPLE "$host"
19774 # Determine which bindings to build.
19775 if test "$BINDINGS_TO_BUILD" = auto ; then
19776 BINDINGS_TO_BUILD=""
19777 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19778 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
19781 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
19784 # This isn't really configurey, but it avoids having to repeat the list in
19789 # Do any work necessary to ensure that bindings have what they need.
19790 binding_prereqs_failed=0
19791 for a_binding in $BINDINGS_TO_BUILD ; do
19792 case "$a_binding" in
19794 if test "x$OCAMLC" = x ; then
19795 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
19796 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
19797 binding_prereqs_failed=1
19799 if test "x$OCAMLDEP" = x ; then
19800 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
19801 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
19802 binding_prereqs_failed=1
19804 if test "x$OCAMLOPT" = x ; then
19805 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
19806 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
19808 if test "x$with_ocaml_libdir" != xauto ; then
19809 OCAML_LIBDIR=$with_ocaml_libdir
19812 ocaml_stdlib="`"$OCAMLC" -where`"
19813 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
19815 # ocaml stdlib is beneath our prefix; use stdlib
19816 OCAML_LIBDIR=$ocaml_stdlib
19819 # ocaml stdlib is outside our prefix; use libdir/ocaml
19820 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
19827 if test "$binding_prereqs_failed" = 1 ; then
19828 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
19829 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
19830 { (exit 1); exit 1; }; }
19833 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
19834 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
19835 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19839 ac_cpp='$CXXCPP $CPPFLAGS'
19840 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19841 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19842 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19844 oldcxxflags="$CXXFLAGS"
19845 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
19846 cat >conftest.$ac_ext <<_ACEOF
19849 cat confdefs.h >>conftest.$ac_ext
19850 cat >>conftest.$ac_ext <<_ACEOF
19851 /* end confdefs.h. */
19861 rm -f conftest.$ac_objext
19862 if { (ac_try="$ac_compile"
19863 case "(($ac_try" in
19864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19865 *) ac_try_echo=$ac_try;;
19867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19868 (eval "$ac_compile") 2>conftest.er1
19870 grep -v '^ *+' conftest.er1 >conftest.err
19872 cat conftest.err >&5
19873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19874 (exit $ac_status); } &&
19875 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19876 { (case "(($ac_try" in
19877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19878 *) ac_try_echo=$ac_try;;
19880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19881 (eval "$ac_try") 2>&5
19883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); }; } &&
19885 { ac_try='test -s conftest.$ac_objext'
19886 { (case "(($ac_try" in
19887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19888 *) ac_try_echo=$ac_try;;
19890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19891 (eval "$ac_try") 2>&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); }; }; then
19895 llvm_cv_cxx_visibility_inlines_hidden=yes
19897 echo "$as_me: failed program was:" >&5
19898 sed 's/^/| /' conftest.$ac_ext >&5
19900 llvm_cv_cxx_visibility_inlines_hidden=no
19903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19904 CXXFLAGS="$oldcxxflags"
19906 ac_cpp='$CPP $CPPFLAGS'
19907 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19908 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19909 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19913 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
19914 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
19915 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
19916 ENABLE_VISIBILITY_INLINES_HIDDEN=1
19919 ENABLE_VISIBILITY_INLINES_HIDDEN=0
19924 if test "$llvm_cv_link_use_r" = "yes" ; then
19931 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
19932 RDYNAMIC="-Wl,-export-dynamic"
19939 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
19941 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
19943 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
19945 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
19947 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
19949 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
19952 ac_config_files="$ac_config_files Makefile.config"
19955 ac_config_files="$ac_config_files llvm.spec"
19958 ac_config_files="$ac_config_files docs/doxygen.cfg"
19961 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
19964 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
19967 ac_config_commands="$ac_config_commands setup"
19969 ac_config_commands="$ac_config_commands Makefile"
19972 ac_config_commands="$ac_config_commands Makefile.common"
19975 ac_config_commands="$ac_config_commands examples/Makefile"
19978 ac_config_commands="$ac_config_commands lib/Makefile"
19981 ac_config_commands="$ac_config_commands runtime/Makefile"
19984 ac_config_commands="$ac_config_commands test/Makefile"
19987 ac_config_commands="$ac_config_commands test/Makefile.tests"
19990 ac_config_commands="$ac_config_commands unittests/Makefile"
19993 ac_config_commands="$ac_config_commands tools/Makefile"
19996 ac_config_commands="$ac_config_commands utils/Makefile"
19999 ac_config_commands="$ac_config_commands projects/Makefile"
20002 ac_config_commands="$ac_config_commands bindings/Makefile"
20005 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20009 cat >confcache <<\_ACEOF
20010 # This file is a shell script that caches the results of configure
20011 # tests run on this system so they can be shared between configure
20012 # scripts and configure runs, see configure's option --config-cache.
20013 # It is not useful on other systems. If it contains results you don't
20014 # want to keep, you may remove or edit it.
20016 # config.status only pays attention to the cache file if you give it
20017 # the --recheck option to rerun configure.
20019 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20020 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20021 # following values.
20025 # The following way of writing the cache mishandles newlines in values,
20026 # but we know of no workaround that is simple, portable, and efficient.
20027 # So, we kill variables containing newlines.
20028 # Ultrix sh set writes to stderr and can't be redirected directly,
20029 # and sets the high bit in the cache file unless we assign to the vars.
20031 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20032 eval ac_val=\$$ac_var
20036 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20037 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20040 _ | IFS | as_nl) ;; #(
20041 *) $as_unset $ac_var ;;
20047 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20048 *${as_nl}ac_space=\ *)
20049 # `set' does not quote correctly, so add quotes (double-quote
20050 # substitution turns \\\\ into \\, and sed turns \\ into \).
20053 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20056 # `set' quotes correctly as required by POSIX, so do not add quotes.
20057 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20066 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20068 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20070 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20071 if test -w "$cache_file"; then
20072 test "x$cache_file" != "x/dev/null" &&
20073 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20074 echo "$as_me: updating cache $cache_file" >&6;}
20075 cat confcache >$cache_file
20077 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20078 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20083 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20084 # Let make expand exec_prefix.
20085 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20087 DEFS=-DHAVE_CONFIG_H
20091 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20092 # 1. Remove the extension, and $U if already installed.
20093 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20094 ac_i=`echo "$ac_i" | sed "$ac_script"`
20095 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20096 # will be set to the directory where LIBOBJS objects are built.
20097 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20098 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20100 LIBOBJS=$ac_libobjs
20102 LTLIBOBJS=$ac_ltlibobjs
20105 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20106 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20107 Usually this means the macro was only invoked conditionally." >&5
20108 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20109 Usually this means the macro was only invoked conditionally." >&2;}
20110 { (exit 1); exit 1; }; }
20112 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20113 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20114 Usually this means the macro was only invoked conditionally." >&5
20115 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20116 Usually this means the macro was only invoked conditionally." >&2;}
20117 { (exit 1); exit 1; }; }
20120 : ${CONFIG_STATUS=./config.status}
20121 ac_clean_files_save=$ac_clean_files
20122 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20123 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20124 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20125 cat >$CONFIG_STATUS <<_ACEOF
20127 # Generated by $as_me.
20128 # Run this file to recreate the current configuration.
20129 # Compiler output produced by configure, useful for debugging
20130 # configure, is in config.log if it exists.
20133 ac_cs_recheck=false
20135 SHELL=\${CONFIG_SHELL-$SHELL}
20138 cat >>$CONFIG_STATUS <<\_ACEOF
20139 ## --------------------- ##
20140 ## M4sh Initialization. ##
20141 ## --------------------- ##
20143 # Be Bourne compatible
20144 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20147 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20148 # is contrary to our usage. Disable this feature.
20149 alias -g '${1+"$@"}'='"$@"'
20150 setopt NO_GLOB_SUBST
20152 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20154 BIN_SH=xpg4; export BIN_SH # for Tru64
20155 DUALCASE=1; export DUALCASE # for MKS sh
20159 # Avoid depending upon Character Ranges.
20160 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20161 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20162 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20163 as_cr_digits='0123456789'
20164 as_cr_alnum=$as_cr_Letters$as_cr_digits
20166 # The user is always right.
20167 if test "${PATH_SEPARATOR+set}" != set; then
20168 echo "#! /bin/sh" >conf$$.sh
20169 echo "exit 0" >>conf$$.sh
20171 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20179 # Support unset when possible.
20180 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20188 # We need space, tab and new line, in precisely that order. Quoting is
20189 # there to prevent editors from complaining about space-tab.
20190 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20191 # splitting by setting IFS to empty value.)
20196 # Find who we are. Look in the path if we contain no directory separator.
20198 *[\\/]* ) as_myself=$0 ;;
20199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20200 for as_dir in $PATH
20203 test -z "$as_dir" && as_dir=.
20204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20210 # We did not find ourselves, most probably we were run as `sh COMMAND'
20211 # in which case we are not to be found in the path.
20212 if test "x$as_myself" = x; then
20215 if test ! -f "$as_myself"; then
20216 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20217 { (exit 1); exit 1; }
20220 # Work around bugs in pre-3.0 UWIN ksh.
20221 for as_var in ENV MAIL MAILPATH
20222 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20230 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20231 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20232 LC_TELEPHONE LC_TIME
20234 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20235 eval $as_var=C; export $as_var
20237 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20241 # Required to use basename.
20242 if expr a : '\(a\)' >/dev/null 2>&1 &&
20243 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20249 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20250 as_basename=basename
20256 # Name of the executable.
20257 as_me=`$as_basename -- "$0" ||
20258 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20259 X"$0" : 'X\(//\)$' \| \
20260 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20262 sed '/^.*\/\([^/][^/]*\)\/*$/{
20281 as_lineno_1=$LINENO
20282 as_lineno_2=$LINENO
20283 test "x$as_lineno_1" != "x$as_lineno_2" &&
20284 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20286 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20287 # uniformly replaced by the line number. The first 'sed' inserts a
20288 # line-number line after each line using $LINENO; the second 'sed'
20289 # does the real work. The second script uses 'N' to pair each
20290 # line-number line with the line containing $LINENO, and appends
20291 # trailing '-' during substitution so that $LINENO is not a special
20292 # case at line end.
20293 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20294 # scripts with optimization help from Paolo Bonzini. Blame Lee
20295 # E. McMahon (1931-1989) for sed's syntax. :-)
20307 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20310 ' >$as_me.lineno &&
20311 chmod +x "$as_me.lineno" ||
20312 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20313 { (exit 1); exit 1; }; }
20315 # Don't try to exec as it changes $[0], causing all sort of problems
20316 # (the dirname of $[0] is not the place where we might find the
20317 # original and so on. Autoconf is especially sensitive to this).
20318 . "./$as_me.lineno"
20319 # Exit status is that of the last command.
20324 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20330 ECHO_C= ECHO_N= ECHO_T=
20331 case `echo -n x` in
20333 case `echo 'x\c'` in
20334 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20341 if expr a : '\(a\)' >/dev/null 2>&1 &&
20342 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20348 rm -f conf$$ conf$$.exe conf$$.file
20349 if test -d conf$$.dir; then
20350 rm -f conf$$.dir/conf$$.file
20356 if ln -s conf$$.file conf$$ 2>/dev/null; then
20358 # ... but there are two gotchas:
20359 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20360 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20361 # In both cases, we have to default to `cp -p'.
20362 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20364 elif ln conf$$.file conf$$ 2>/dev/null; then
20369 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20370 rmdir conf$$.dir 2>/dev/null
20372 if mkdir -p . 2>/dev/null; then
20375 test -d ./-p && rmdir ./-p
20379 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20380 # systems may use methods other than mode bits to determine executability.
20381 cat >conf$$.file <<_ASEOF
20385 chmod +x conf$$.file
20386 if test -x conf$$.file >/dev/null 2>&1; then
20387 as_executable_p="test -x"
20393 # Sed expression to map a string onto a valid CPP name.
20394 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20396 # Sed expression to map a string onto a valid variable name.
20397 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20402 # Save the log message, to keep $[0] and so on meaningful, and to
20403 # report actual input values of CONFIG_FILES etc. instead of their
20404 # values after options handling.
20406 This file was extended by llvm $as_me 2.7svn, which was
20407 generated by GNU Autoconf 2.60. Invocation command line was
20409 CONFIG_FILES = $CONFIG_FILES
20410 CONFIG_HEADERS = $CONFIG_HEADERS
20411 CONFIG_LINKS = $CONFIG_LINKS
20412 CONFIG_COMMANDS = $CONFIG_COMMANDS
20415 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20420 cat >>$CONFIG_STATUS <<_ACEOF
20421 # Files that config.status was made for.
20422 config_files="$ac_config_files"
20423 config_headers="$ac_config_headers"
20424 config_commands="$ac_config_commands"
20428 cat >>$CONFIG_STATUS <<\_ACEOF
20430 \`$as_me' instantiates files from templates according to the
20431 current configuration.
20433 Usage: $0 [OPTIONS] [FILE]...
20435 -h, --help print this help, then exit
20436 -V, --version print version number, then exit
20437 -q, --quiet do not print progress messages
20438 -d, --debug don't remove temporary files
20439 --recheck update $as_me by reconfiguring in the same conditions
20440 --file=FILE[:TEMPLATE]
20441 instantiate the configuration file FILE
20442 --header=FILE[:TEMPLATE]
20443 instantiate the configuration header FILE
20445 Configuration files:
20448 Configuration headers:
20451 Configuration commands:
20454 Report bugs to <bug-autoconf@gnu.org>."
20457 cat >>$CONFIG_STATUS <<_ACEOF
20459 llvm config.status 2.7svn
20460 configured by $0, generated by GNU Autoconf 2.60,
20461 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20463 Copyright (C) 2006 Free Software Foundation, Inc.
20464 This config.status script is free software; the Free Software Foundation
20465 gives unlimited permission to copy, distribute and modify it."
20472 cat >>$CONFIG_STATUS <<\_ACEOF
20473 # If no file are specified by the user, then we need to provide default
20474 # value. By we need to know if files were specified by the user.
20480 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20481 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20492 # Handling of the options.
20493 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20495 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20496 echo "$ac_cs_version"; exit ;;
20497 --debug | --debu | --deb | --de | --d | -d )
20499 --file | --fil | --fi | --f )
20501 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20502 ac_need_defaults=false;;
20503 --header | --heade | --head | --hea )
20505 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20506 ac_need_defaults=false;;
20508 # Conflict between --help and --header
20509 { echo "$as_me: error: ambiguous option: $1
20510 Try \`$0 --help' for more information." >&2
20511 { (exit 1); exit 1; }; };;
20512 --help | --hel | -h )
20513 echo "$ac_cs_usage"; exit ;;
20514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20515 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20518 # This is an error.
20519 -*) { echo "$as_me: error: unrecognized option: $1
20520 Try \`$0 --help' for more information." >&2
20521 { (exit 1); exit 1; }; } ;;
20523 *) ac_config_targets="$ac_config_targets $1"
20524 ac_need_defaults=false ;;
20530 ac_configure_extra_args=
20532 if $ac_cs_silent; then
20534 ac_configure_extra_args="$ac_configure_extra_args --silent"
20538 cat >>$CONFIG_STATUS <<_ACEOF
20539 if \$ac_cs_recheck; then
20540 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20541 CONFIG_SHELL=$SHELL
20542 export CONFIG_SHELL
20543 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20547 cat >>$CONFIG_STATUS <<\_ACEOF
20551 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20552 ## Running $as_me. ##
20558 cat >>$CONFIG_STATUS <<_ACEOF
20562 llvm_src="${srcdir}"
20566 cat >>$CONFIG_STATUS <<\_ACEOF
20568 # Handling of arguments.
20569 for ac_config_target in $ac_config_targets
20571 case $ac_config_target in
20572 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20573 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20574 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20575 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20576 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20577 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20578 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20579 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20580 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20581 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20582 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20583 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20584 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20585 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20586 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20587 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20588 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20589 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20590 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20591 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20592 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20593 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20594 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20595 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20596 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20598 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20599 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20600 { (exit 1); exit 1; }; };;
20605 # If the user did not use the arguments to specify the items to instantiate,
20606 # then the envvar interface is used. Set only those that are not.
20607 # We use the long form for the default assignment because of an extremely
20608 # bizarre bug on SunOS 4.1.3.
20609 if $ac_need_defaults; then
20610 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20611 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20612 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20615 # Have a temporary directory for convenience. Make it in the build tree
20616 # simply because there is no reason against having it here, and in addition,
20617 # creating and moving files from /tmp can sometimes cause problems.
20618 # Hook for its removal unless debugging.
20619 # Note that there is a small window in which the directory will not be cleaned:
20620 # after its creation but before its name has been assigned to `$tmp'.
20624 trap 'exit_status=$?
20625 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20627 trap '{ (exit 1); exit 1; }' 1 2 13 15
20629 # Create a (secure) tmp directory for tmp files.
20632 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20633 test -n "$tmp" && test -d "$tmp"
20636 tmp=./conf$$-$RANDOM
20637 (umask 077 && mkdir "$tmp")
20640 echo "$me: cannot create a temporary directory in ." >&2
20641 { (exit 1); exit 1; }
20645 # Set up the sed scripts for CONFIG_FILES section.
20648 # No need to generate the scripts if there are no CONFIG_FILES.
20649 # This happens for instance when ./config.status config.h
20650 if test -n "$CONFIG_FILES"; then
20657 for ac_last_try in false false false false false :; do
20658 cat >conf$$subs.sed <<_ACEOF
20659 SHELL!$SHELL$ac_delim
20660 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20661 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20662 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20663 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20664 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20665 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20666 exec_prefix!$exec_prefix$ac_delim
20667 prefix!$prefix$ac_delim
20668 program_transform_name!$program_transform_name$ac_delim
20669 bindir!$bindir$ac_delim
20670 sbindir!$sbindir$ac_delim
20671 libexecdir!$libexecdir$ac_delim
20672 datarootdir!$datarootdir$ac_delim
20673 datadir!$datadir$ac_delim
20674 sysconfdir!$sysconfdir$ac_delim
20675 sharedstatedir!$sharedstatedir$ac_delim
20676 localstatedir!$localstatedir$ac_delim
20677 includedir!$includedir$ac_delim
20678 oldincludedir!$oldincludedir$ac_delim
20679 docdir!$docdir$ac_delim
20680 infodir!$infodir$ac_delim
20681 htmldir!$htmldir$ac_delim
20682 dvidir!$dvidir$ac_delim
20683 pdfdir!$pdfdir$ac_delim
20684 psdir!$psdir$ac_delim
20685 libdir!$libdir$ac_delim
20686 localedir!$localedir$ac_delim
20687 mandir!$mandir$ac_delim
20688 DEFS!$DEFS$ac_delim
20689 ECHO_C!$ECHO_C$ac_delim
20690 ECHO_N!$ECHO_N$ac_delim
20691 ECHO_T!$ECHO_T$ac_delim
20692 LIBS!$LIBS$ac_delim
20693 build_alias!$build_alias$ac_delim
20694 host_alias!$host_alias$ac_delim
20695 target_alias!$target_alias$ac_delim
20696 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20697 subdirs!$subdirs$ac_delim
20698 build!$build$ac_delim
20699 build_cpu!$build_cpu$ac_delim
20700 build_vendor!$build_vendor$ac_delim
20701 build_os!$build_os$ac_delim
20702 host!$host$ac_delim
20703 host_cpu!$host_cpu$ac_delim
20704 host_vendor!$host_vendor$ac_delim
20705 host_os!$host_os$ac_delim
20706 target!$target$ac_delim
20707 target_cpu!$target_cpu$ac_delim
20708 target_vendor!$target_vendor$ac_delim
20709 target_os!$target_os$ac_delim
20711 HOST_OS!$HOST_OS$ac_delim
20712 TARGET_OS!$TARGET_OS$ac_delim
20713 LINKALL!$LINKALL$ac_delim
20714 NOLINKALL!$NOLINKALL$ac_delim
20715 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20716 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20717 ARCH!$ARCH$ac_delim
20718 ENDIAN!$ENDIAN$ac_delim
20720 CFLAGS!$CFLAGS$ac_delim
20721 LDFLAGS!$LDFLAGS$ac_delim
20722 CPPFLAGS!$CPPFLAGS$ac_delim
20723 ac_ct_CC!$ac_ct_CC$ac_delim
20724 EXEEXT!$EXEEXT$ac_delim
20725 OBJEXT!$OBJEXT$ac_delim
20727 GREP!$GREP$ac_delim
20728 EGREP!$EGREP$ac_delim
20729 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20730 BUILD_CC!$BUILD_CC$ac_delim
20731 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20732 BUILD_CXX!$BUILD_CXX$ac_delim
20733 CVSBUILD!$CVSBUILD$ac_delim
20734 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20735 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20736 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20737 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20738 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20739 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20740 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20742 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20743 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20744 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20745 ENABLE_PIC!$ENABLE_PIC$ac_delim
20746 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20747 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20748 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20749 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20750 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20751 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20752 CLANGPATH!$CLANGPATH$ac_delim
20753 CLANGXXPATH!$CLANGXXPATH$ac_delim
20754 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20755 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
20758 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20760 elif $ac_last_try; then
20761 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20762 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20763 { (exit 1); exit 1; }; }
20765 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20769 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20770 if test -n "$ac_eof"; then
20771 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20772 ac_eof=`expr $ac_eof + 1`
20775 cat >>$CONFIG_STATUS <<_ACEOF
20776 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20780 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20781 s/^/s,@/; s/!/@,|#_!!_#|/
20784 s/'"$ac_delim"'$/,g/; t
20786 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20787 ' >>$CONFIG_STATUS <conf$$subs.sed
20788 rm -f conf$$subs.sed
20789 cat >>$CONFIG_STATUS <<_ACEOF
20795 for ac_last_try in false false false false false :; do
20796 cat >conf$$subs.sed <<_ACEOF
20797 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
20798 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
20799 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
20800 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
20802 CXXFLAGS!$CXXFLAGS$ac_delim
20803 ac_ct_CXX!$ac_ct_CXX$ac_delim
20805 ifGNUmake!$ifGNUmake$ac_delim
20806 LN_S!$LN_S$ac_delim
20809 DATE!$DATE$ac_delim
20810 FIND!$FIND$ac_delim
20811 MKDIR!$MKDIR$ac_delim
20813 RANLIB!$RANLIB$ac_delim
20818 BINPWD!$BINPWD$ac_delim
20819 GRAPHVIZ!$GRAPHVIZ$ac_delim
20822 NEATO!$NEATO$ac_delim
20823 TWOPI!$TWOPI$ac_delim
20824 CIRCO!$CIRCO$ac_delim
20826 DOTTY!$DOTTY$ac_delim
20827 PERL!$PERL$ac_delim
20828 HAVE_PERL!$HAVE_PERL$ac_delim
20829 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20830 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20831 INSTALL_DATA!$INSTALL_DATA$ac_delim
20832 BZIP2!$BZIP2$ac_delim
20833 DOXYGEN!$DOXYGEN$ac_delim
20834 GROFF!$GROFF$ac_delim
20835 GZIP!$GZIP$ac_delim
20836 POD2HTML!$POD2HTML$ac_delim
20837 POD2MAN!$POD2MAN$ac_delim
20838 RUNTEST!$RUNTEST$ac_delim
20839 TCLSH!$TCLSH$ac_delim
20841 OCAMLC!$OCAMLC$ac_delim
20842 OCAMLOPT!$OCAMLOPT$ac_delim
20843 OCAMLDEP!$OCAMLDEP$ac_delim
20844 OCAMLDOC!$OCAMLDOC$ac_delim
20846 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
20847 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
20848 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
20849 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
20850 LIBADD_DL!$LIBADD_DL$ac_delim
20851 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
20852 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
20853 LLVMGCC!$LLVMGCC$ac_delim
20854 LLVMGXX!$LLVMGXX$ac_delim
20855 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
20856 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
20857 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
20858 USE_UDIS86!$USE_UDIS86$ac_delim
20859 USE_OPROFILE!$USE_OPROFILE$ac_delim
20860 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
20861 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
20862 MMAP_FILE!$MMAP_FILE$ac_delim
20863 LLVMCC1!$LLVMCC1$ac_delim
20864 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
20865 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
20866 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
20867 SHLIBEXT!$SHLIBEXT$ac_delim
20868 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
20869 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
20870 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
20871 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
20872 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
20873 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
20874 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
20875 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
20876 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
20877 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
20878 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
20879 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
20880 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
20881 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
20882 RPATH!$RPATH$ac_delim
20883 RDYNAMIC!$RDYNAMIC$ac_delim
20884 LIBOBJS!$LIBOBJS$ac_delim
20885 LTLIBOBJS!$LTLIBOBJS$ac_delim
20888 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 89; then
20890 elif $ac_last_try; then
20891 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20892 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20893 { (exit 1); exit 1; }; }
20895 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20899 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20900 if test -n "$ac_eof"; then
20901 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20902 ac_eof=`expr $ac_eof + 1`
20905 cat >>$CONFIG_STATUS <<_ACEOF
20906 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
20907 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
20910 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20911 s/^/s,@/; s/!/@,|#_!!_#|/
20914 s/'"$ac_delim"'$/,g/; t
20916 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20917 ' >>$CONFIG_STATUS <conf$$subs.sed
20918 rm -f conf$$subs.sed
20919 cat >>$CONFIG_STATUS <<_ACEOF
20926 # VPATH may cause trouble with some makes, so we remove $(srcdir),
20927 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
20928 # trailing colons and then remove the whole line if VPATH becomes empty
20929 # (actually we leave an empty line to preserve line numbers).
20930 if test "x$srcdir" = x.; then
20931 ac_vpsub='/^[ ]*VPATH[ ]*=/{
20932 s/:*\$(srcdir):*/:/
20933 s/:*\${srcdir}:*/:/
20935 s/^\([^=]*=[ ]*\):*/\1/
20941 cat >>$CONFIG_STATUS <<\_ACEOF
20942 fi # test -n "$CONFIG_FILES"
20945 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
20948 :[FHLC]) ac_mode=$ac_tag; continue;;
20950 case $ac_mode$ac_tag in
20952 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
20953 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
20954 { (exit 1); exit 1; }; };;
20955 :[FH]-) ac_tag=-:-;;
20956 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20973 -) ac_f="$tmp/stdin";;
20974 *) # Look for the file first in the build tree, then in the source tree
20975 # (if the path is not absolute). The absolute path cannot be DOS-style,
20976 # because $ac_f cannot contain `:'.
20980 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20982 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
20983 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
20984 { (exit 1); exit 1; }; };;
20986 ac_file_inputs="$ac_file_inputs $ac_f"
20989 # Let's still pretend it is `configure' which instantiates (i.e., don't
20990 # use $as_me), people would be surprised to read:
20991 # /* config.h. Generated by config.status. */
20992 configure_input="Generated from "`IFS=:
20993 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
20994 if test x"$ac_file" != x-; then
20995 configure_input="$ac_file. $configure_input"
20996 { echo "$as_me:$LINENO: creating $ac_file" >&5
20997 echo "$as_me: creating $ac_file" >&6;}
21001 *:-:* | *:-) cat >"$tmp/stdin";;
21006 ac_dir=`$as_dirname -- "$ac_file" ||
21007 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21008 X"$ac_file" : 'X\(//\)[^/]' \| \
21009 X"$ac_file" : 'X\(//\)$' \| \
21010 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21016 /^X\(\/\/\)[^/].*/{
21031 -*) as_dir=./$as_dir;;
21033 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21037 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21038 *) as_qdir=$as_dir;;
21040 as_dirs="'$as_qdir' $as_dirs"
21041 as_dir=`$as_dirname -- "$as_dir" ||
21042 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21043 X"$as_dir" : 'X\(//\)[^/]' \| \
21044 X"$as_dir" : 'X\(//\)$' \| \
21045 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21047 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21051 /^X\(\/\/\)[^/].*/{
21064 test -d "$as_dir" && break
21066 test -z "$as_dirs" || eval "mkdir $as_dirs"
21067 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21068 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21069 { (exit 1); exit 1; }; }; }
21073 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21075 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21076 # A ".." for each directory in $ac_dir_suffix.
21077 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21078 case $ac_top_builddir_sub in
21079 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21080 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21083 ac_abs_top_builddir=$ac_pwd
21084 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21085 # for backward compatibility:
21086 ac_top_builddir=$ac_top_build_prefix
21089 .) # We are building in place.
21091 ac_top_srcdir=$ac_top_builddir_sub
21092 ac_abs_top_srcdir=$ac_pwd ;;
21093 [\\/]* | ?:[\\/]* ) # Absolute name.
21094 ac_srcdir=$srcdir$ac_dir_suffix;
21095 ac_top_srcdir=$srcdir
21096 ac_abs_top_srcdir=$srcdir ;;
21097 *) # Relative name.
21098 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21099 ac_top_srcdir=$ac_top_build_prefix$srcdir
21100 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21102 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21112 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21113 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21117 cat >>$CONFIG_STATUS <<\_ACEOF
21118 # If the template does not know about datarootdir, expand it.
21119 # FIXME: This hack should be removed a few years after 2.60.
21120 ac_datarootdir_hack=; ac_datarootdir_seen=
21122 case `sed -n '/datarootdir/ {
21131 ' $ac_file_inputs` in
21132 *datarootdir*) ac_datarootdir_seen=yes;;
21133 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21134 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21135 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21137 cat >>$CONFIG_STATUS <<_ACEOF
21138 ac_datarootdir_hack='
21139 s&@datadir@&$datadir&g
21140 s&@docdir@&$docdir&g
21141 s&@infodir@&$infodir&g
21142 s&@localedir@&$localedir&g
21143 s&@mandir@&$mandir&g
21144 s&\\\${datarootdir}&$datarootdir&g' ;;
21148 # Neutralize VPATH when `$srcdir' = `.'.
21149 # Shell code in configure.ac might set extrasub.
21150 # FIXME: do we really want to maintain this feature?
21151 cat >>$CONFIG_STATUS <<_ACEOF
21155 cat >>$CONFIG_STATUS <<\_ACEOF
21157 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21158 s&@configure_input@&$configure_input&;t t
21159 s&@top_builddir@&$ac_top_builddir_sub&;t t
21160 s&@srcdir@&$ac_srcdir&;t t
21161 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21162 s&@top_srcdir@&$ac_top_srcdir&;t t
21163 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21164 s&@builddir@&$ac_builddir&;t t
21165 s&@abs_builddir@&$ac_abs_builddir&;t t
21166 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21167 s&@INSTALL@&$ac_INSTALL&;t t
21168 $ac_datarootdir_hack
21169 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21171 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21172 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21173 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21174 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21175 which seems to be undefined. Please make sure it is defined." >&5
21176 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21177 which seems to be undefined. Please make sure it is defined." >&2;}
21181 -) cat "$tmp/out"; rm -f "$tmp/out";;
21182 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21191 # Transform confdefs.h into a sed script `conftest.defines', that
21192 # substitutes the proper values into config.h.in to produce config.h.
21193 rm -f conftest.defines conftest.tail
21194 # First, append a space to every undef/define line, to ease matching.
21195 echo 's/$/ /' >conftest.defines
21196 # Then, protect against being on the right side of a sed subst, or in
21197 # an unquoted here document, in config.status. If some macros were
21198 # called several times there might be several #defines for the same
21199 # symbol, which is useless. But do not sort them, since the last
21200 # AC_DEFINE must be honored.
21201 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21202 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21203 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21204 # PARAMS is the parameter list in the macro definition--in most cases, it's
21205 # just an empty string.
21206 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21207 ac_dB='\\)[ (].*,\\1define\\2'
21215 s/^[ ]*#[ ]*define[ ][ ]*//
21220 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21221 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21222 ' >>conftest.defines
21224 # Remove the space that was appended to ease matching.
21225 # Then replace #undef with comments. This is necessary, for
21226 # example, in the case of _POSIX_SOURCE, which is predefined and required
21227 # on some systems where configure will not decide to define it.
21228 # (The regexp can be short, since the line contains either #define or #undef.)
21230 s,^[ #]*u.*,/* & */,' >>conftest.defines
21232 # Break up conftest.defines:
21233 ac_max_sed_lines=50
21235 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21236 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21237 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21239 ac_in='$ac_file_inputs'
21240 ac_out='"$tmp/out1"'
21241 ac_nxt='"$tmp/out2"'
21245 # Write a here document:
21246 cat >>$CONFIG_STATUS <<_ACEOF
21247 # First, check the format of the line:
21248 cat >"\$tmp/defines.sed" <<\\CEOF
21249 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21250 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21254 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21256 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21257 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21258 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21259 grep . conftest.tail >/dev/null || break
21260 rm -f conftest.defines
21261 mv conftest.tail conftest.defines
21263 rm -f conftest.defines conftest.tail
21265 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21266 cat >>$CONFIG_STATUS <<\_ACEOF
21267 if test x"$ac_file" != x-; then
21268 echo "/* $configure_input */" >"$tmp/config.h"
21269 cat "$ac_result" >>"$tmp/config.h"
21270 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21271 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21272 echo "$as_me: $ac_file is unchanged" >&6;}
21275 mv "$tmp/config.h" $ac_file
21278 echo "/* $configure_input */"
21284 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21285 echo "$as_me: executing $ac_file commands" >&6;}
21290 case $ac_file$ac_mode in
21291 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21292 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21293 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21294 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21295 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21296 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21297 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21298 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21299 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21300 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21301 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21302 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21303 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21304 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21305 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21306 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21307 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21308 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21309 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21310 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21311 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21312 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21313 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21314 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21315 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21316 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21322 { (exit 0); exit 0; }
21324 chmod +x $CONFIG_STATUS
21325 ac_clean_files=$ac_clean_files_save
21328 # configure is writing to config.log, and then calls config.status.
21329 # config.status does its own redirection, appending to config.log.
21330 # Unfortunately, on DOS this fails, as config.log is still kept open
21331 # by configure, so config.status won't be able to write to it; its
21332 # output is simply discarded. So we exec the FD to /dev/null,
21333 # effectively closing config.log, so it can be properly (re)opened and
21334 # appended to by config.status. When coming back to configure, we
21335 # need to make the FD available again.
21336 if test "$no_create" != yes; then
21338 ac_config_status_args=
21339 test "$silent" = yes &&
21340 ac_config_status_args="$ac_config_status_args --quiet"
21342 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21344 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21345 # would make configure fail if this is the last instruction.
21346 $ac_cs_success || { (exit 1); exit 1; }
21350 # CONFIG_SUBDIRS section.
21352 if test "$no_recursion" != yes; then
21354 # Remove --cache-file and --srcdir arguments so they do not pile up.
21355 ac_sub_configure_args=
21357 eval "set x $ac_configure_args"
21361 if test -n "$ac_prev"; then
21366 -cache-file | --cache-file | --cache-fil | --cache-fi \
21367 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21368 ac_prev=cache_file ;;
21369 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21370 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21373 --config-cache | -C)
21375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21379 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21381 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21385 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21387 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21391 # Always prepend --prefix to ensure using the same prefix
21392 # in subdir configurations.
21393 ac_arg="--prefix=$prefix"
21395 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21397 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21400 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21402 # Do not complain, so a configure script can configure whichever
21403 # parts of a large source tree are present.
21404 test -d "$srcdir/$ac_dir" || continue
21406 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21407 echo "$as_me:$LINENO: $ac_msg" >&5
21411 -*) as_dir=./$as_dir;;
21413 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21417 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21418 *) as_qdir=$as_dir;;
21420 as_dirs="'$as_qdir' $as_dirs"
21421 as_dir=`$as_dirname -- "$as_dir" ||
21422 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21423 X"$as_dir" : 'X\(//\)[^/]' \| \
21424 X"$as_dir" : 'X\(//\)$' \| \
21425 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21431 /^X\(\/\/\)[^/].*/{
21444 test -d "$as_dir" && break
21446 test -z "$as_dirs" || eval "mkdir $as_dirs"
21447 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21448 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21449 { (exit 1); exit 1; }; }; }
21453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21455 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21456 # A ".." for each directory in $ac_dir_suffix.
21457 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21458 case $ac_top_builddir_sub in
21459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21463 ac_abs_top_builddir=$ac_pwd
21464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21465 # for backward compatibility:
21466 ac_top_builddir=$ac_top_build_prefix
21469 .) # We are building in place.
21471 ac_top_srcdir=$ac_top_builddir_sub
21472 ac_abs_top_srcdir=$ac_pwd ;;
21473 [\\/]* | ?:[\\/]* ) # Absolute name.
21474 ac_srcdir=$srcdir$ac_dir_suffix;
21475 ac_top_srcdir=$srcdir
21476 ac_abs_top_srcdir=$srcdir ;;
21477 *) # Relative name.
21478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21479 ac_top_srcdir=$ac_top_build_prefix$srcdir
21480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21487 # Check for guested configure; otherwise get Cygnus style configure.
21488 if test -f "$ac_srcdir/configure.gnu"; then
21489 ac_sub_configure=$ac_srcdir/configure.gnu
21490 elif test -f "$ac_srcdir/configure"; then
21491 ac_sub_configure=$ac_srcdir/configure
21492 elif test -f "$ac_srcdir/configure.in"; then
21493 # This should be Cygnus configure.
21494 ac_sub_configure=$ac_aux_dir/configure
21496 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21497 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21501 # The recursion is here.
21502 if test -n "$ac_sub_configure"; then
21503 # Make the cache file name correct relative to the subdirectory.
21504 case $cache_file in
21505 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21506 *) # Relative name.
21507 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21510 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21511 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21512 # The eval makes quoting arguments work.
21513 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21514 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21515 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21516 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21517 { (exit 1); exit 1; }; }