2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for llvm 2.8svn.
5 # Report bugs to <llvmbugs@cs.uiuc.edu>.
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
12 # Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
13 ## --------------------- ##
14 ## M4sh Initialization. ##
15 ## --------------------- ##
17 # Be Bourne compatible
18 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22 # is contrary to our usage. Disable this feature.
23 alias -g '${1+"$@"}'='"$@"'
26 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
28 BIN_SH=xpg4; export BIN_SH # for Tru64
29 DUALCASE=1; export DUALCASE # for MKS sh
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
70 # Find who we are. Look in the path if we contain no directory separator.
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
161 if test $as_have_required = yes && (eval ":
171 as_func_ret_success () {
174 as_func_ret_failure () {
179 if as_func_success; then
183 echo as_func_success failed.
186 if as_func_failure; then
188 echo as_func_failure succeeded.
191 if as_func_ret_success; then
195 echo as_func_ret_success failed.
198 if as_func_ret_failure; then
200 echo as_func_ret_failure succeeded.
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
207 echo positional parameters were not saved.
210 test \$exitcode = 0) || { (exit 1); exit 1; }
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
225 test -z "$as_dir" && as_dir=.
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 # Be Bourne compatible
241 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
244 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
245 # is contrary to our usage. Disable this feature.
246 alias -g '${1+"$@"}'='"$@"'
249 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
251 BIN_SH=xpg4; export BIN_SH # for Tru64
252 DUALCASE=1; export DUALCASE # for MKS sh
257 CONFIG_SHELL=$as_shell
259 if { "$as_shell" 2> /dev/null <<\_ASEOF
260 # Be Bourne compatible
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
269 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
271 BIN_SH=xpg4; export BIN_SH # for Tru64
272 DUALCASE=1; export DUALCASE # for MKS sh
284 as_func_ret_success () {
287 as_func_ret_failure () {
292 if as_func_success; then
296 echo as_func_success failed.
299 if as_func_failure; then
301 echo as_func_failure succeeded.
304 if as_func_ret_success; then
308 echo as_func_ret_success failed.
311 if as_func_ret_failure; then
313 echo as_func_ret_failure succeeded.
316 if ( set x; as_func_ret_success y && test x = "$1" ); then
320 echo positional parameters were not saved.
323 test $exitcode = 0) || { (exit 1); exit 1; }
328 test "x$as_lineno_1" != "x$as_lineno_2" &&
329 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
340 if test "x$CONFIG_SHELL" != x; then
341 for as_var in BASH_ENV ENV
342 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
349 if test $as_have_required = no; then
350 echo This script requires a shell more modern than all the
351 echo shells that I found on your system. Please install a
352 echo modern shell, or manually run the script under such a
353 echo shell if you do have one.
354 { (exit 1); exit 1; }
364 (eval "as_func_return () {
373 as_func_ret_success () {
376 as_func_ret_failure () {
381 if as_func_success; then
385 echo as_func_success failed.
388 if as_func_failure; then
390 echo as_func_failure succeeded.
393 if as_func_ret_success; then
397 echo as_func_ret_success failed.
400 if as_func_ret_failure; then
402 echo as_func_ret_failure succeeded.
405 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
409 echo positional parameters were not saved.
412 test \$exitcode = 0") || {
413 echo No shell found that supports shell functions.
414 echo Please tell autoconf@gnu.org about your system,
415 echo including any error possibly output before this
423 test "x$as_lineno_1" != "x$as_lineno_2" &&
424 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
426 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
427 # uniformly replaced by the line number. The first 'sed' inserts a
428 # line-number line after each line using $LINENO; the second 'sed'
429 # does the real work. The second script uses 'N' to pair each
430 # line-number line with the line containing $LINENO, and appends
431 # trailing '-' during substitution so that $LINENO is not a special
433 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
434 # scripts with optimization help from Paolo Bonzini. Blame Lee
435 # E. McMahon (1931-1989) for sed's syntax. :-)
447 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
451 chmod +x "$as_me.lineno" ||
452 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
453 { (exit 1); exit 1; }; }
455 # Don't try to exec as it changes $[0], causing all sort of problems
456 # (the dirname of $[0] is not the place where we might find the
457 # original and so on. Autoconf is especially sensitive to this).
459 # Exit status is that of the last command.
464 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
470 ECHO_C= ECHO_N= ECHO_T=
474 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
481 if expr a : '\(a\)' >/dev/null 2>&1 &&
482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
488 rm -f conf$$ conf$$.exe conf$$.file
489 if test -d conf$$.dir; then
490 rm -f conf$$.dir/conf$$.file
496 if ln -s conf$$.file conf$$ 2>/dev/null; then
498 # ... but there are two gotchas:
499 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
500 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
501 # In both cases, we have to default to `cp -p'.
502 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
504 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
515 test -d ./-p && rmdir ./-p
519 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
520 # systems may use methods other than mode bits to determine executability.
521 cat >conf$$.file <<_ASEOF
526 if test -x conf$$.file >/dev/null 2>&1; then
527 as_executable_p="test -x"
533 # Sed expression to map a string onto a valid CPP name.
534 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
536 # Sed expression to map a string onto a valid variable name.
537 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
541 exec 7<&0 </dev/null 6>&1
544 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
545 # so uname gets run too.
546 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
551 ac_default_prefix=/usr/local
553 ac_config_libobj_dir=.
559 SHELL=${CONFIG_SHELL-/bin/sh}
561 # Identity of this package.
563 PACKAGE_TARNAME='-llvm-'
564 PACKAGE_VERSION='2.8svn'
565 PACKAGE_STRING='llvm 2.8svn'
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
695 LLVM_ENUM_ASM_PRINTERS
696 LLVM_ENUM_ASM_PARSERS
697 LLVM_ENUM_DISASSEMBLERS
706 ENABLE_LLVMC_DYNAMIC_PLUGINS
754 CONVENIENCE_LTDL_TRUE
755 CONVENIENCE_LTDL_FALSE
763 NO_MISSING_FIELD_INITIALIZERS
788 ENABLE_VISIBILITY_INLINES_HIDDEN
794 ac_precious_vars='build_alias
805 ac_subdirs_all='projects/llvm-gcc
809 projects/llvm-poolalloc
812 projects/llvm-stacker
817 projects/llvm-kernel'
819 # Initialize some variables set by options.
821 ac_init_version=false
822 # The variables have the same names as the options, with
823 # dashes changed to underlines.
831 program_transform_name=s,x,x,
839 # Installation directory options.
840 # These are left unexpanded so users can "make install exec_prefix=/foo"
841 # and all the variables that are supposed to be based on exec_prefix
842 # by default will actually change.
843 # Use braces instead of parens because sh, perl, etc. also accept them.
844 # (The list follows the same order as the GNU Coding Standards.)
845 bindir='${exec_prefix}/bin'
846 sbindir='${exec_prefix}/sbin'
847 libexecdir='${exec_prefix}/libexec'
848 datarootdir='${prefix}/share'
849 datadir='${datarootdir}'
850 sysconfdir='${prefix}/etc'
851 sharedstatedir='${prefix}/com'
852 localstatedir='${prefix}/var'
853 includedir='${prefix}/include'
854 oldincludedir='/usr/include'
855 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
856 infodir='${datarootdir}/info'
861 libdir='${exec_prefix}/lib'
862 localedir='${datarootdir}/locale'
863 mandir='${datarootdir}/man'
869 # If the previous option needs an argument, assign it.
870 if test -n "$ac_prev"; then
871 eval $ac_prev=\$ac_option
877 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881 # Accept the important Cygnus configure options, so we can diagnose typos.
883 case $ac_dashdash$ac_option in
887 -bindir | --bindir | --bindi | --bind | --bin | --bi)
889 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
892 -build | --build | --buil | --bui | --bu)
893 ac_prev=build_alias ;;
894 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
895 build_alias=$ac_optarg ;;
897 -cache-file | --cache-file | --cache-fil | --cache-fi \
898 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
899 ac_prev=cache_file ;;
900 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
901 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
902 cache_file=$ac_optarg ;;
905 cache_file=config.cache ;;
907 -datadir | --datadir | --datadi | --datad)
909 -datadir=* | --datadir=* | --datadi=* | --datad=*)
910 datadir=$ac_optarg ;;
912 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
913 | --dataroo | --dataro | --datar)
914 ac_prev=datarootdir ;;
915 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
916 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
917 datarootdir=$ac_optarg ;;
919 -disable-* | --disable-*)
920 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
921 # Reject names that are not valid shell variable names.
922 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
923 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
924 { (exit 1); exit 1; }; }
925 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
926 eval enable_$ac_feature=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
938 -enable-* | --enable-*)
939 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
942 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
943 { (exit 1); exit 1; }; }
944 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
945 eval enable_$ac_feature=\$ac_optarg ;;
947 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
948 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
949 | --exec | --exe | --ex)
950 ac_prev=exec_prefix ;;
951 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
952 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
953 | --exec=* | --exe=* | --ex=*)
954 exec_prefix=$ac_optarg ;;
956 -gas | --gas | --ga | --g)
957 # Obsolete; use --with-gas.
960 -help | --help | --hel | --he | -h)
962 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
963 ac_init_help=recursive ;;
964 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
965 ac_init_help=short ;;
967 -host | --host | --hos | --ho)
968 ac_prev=host_alias ;;
969 -host=* | --host=* | --hos=* | --ho=*)
970 host_alias=$ac_optarg ;;
972 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 htmldir=$ac_optarg ;;
978 -includedir | --includedir | --includedi | --included | --include \
979 | --includ | --inclu | --incl | --inc)
980 ac_prev=includedir ;;
981 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
982 | --includ=* | --inclu=* | --incl=* | --inc=*)
983 includedir=$ac_optarg ;;
985 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
988 infodir=$ac_optarg ;;
990 -libdir | --libdir | --libdi | --libd)
992 -libdir=* | --libdir=* | --libdi=* | --libd=*)
995 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
996 | --libexe | --libex | --libe)
997 ac_prev=libexecdir ;;
998 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
999 | --libexe=* | --libex=* | --libe=*)
1000 libexecdir=$ac_optarg ;;
1002 -localedir | --localedir | --localedi | --localed | --locale)
1003 ac_prev=localedir ;;
1004 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1005 localedir=$ac_optarg ;;
1007 -localstatedir | --localstatedir | --localstatedi | --localstated \
1008 | --localstate | --localstat | --localsta | --localst | --locals)
1009 ac_prev=localstatedir ;;
1010 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1011 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1012 localstatedir=$ac_optarg ;;
1014 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1017 mandir=$ac_optarg ;;
1019 -nfp | --nfp | --nf)
1020 # Obsolete; use --without-fp.
1023 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1024 | --no-cr | --no-c | -n)
1027 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1028 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1031 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1032 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1033 | --oldin | --oldi | --old | --ol | --o)
1034 ac_prev=oldincludedir ;;
1035 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1036 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1037 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1038 oldincludedir=$ac_optarg ;;
1040 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1043 prefix=$ac_optarg ;;
1045 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1046 | --program-pre | --program-pr | --program-p)
1047 ac_prev=program_prefix ;;
1048 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1049 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1050 program_prefix=$ac_optarg ;;
1052 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1053 | --program-suf | --program-su | --program-s)
1054 ac_prev=program_suffix ;;
1055 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1056 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1057 program_suffix=$ac_optarg ;;
1059 -program-transform-name | --program-transform-name \
1060 | --program-transform-nam | --program-transform-na \
1061 | --program-transform-n | --program-transform- \
1062 | --program-transform | --program-transfor \
1063 | --program-transfo | --program-transf \
1064 | --program-trans | --program-tran \
1065 | --progr-tra | --program-tr | --program-t)
1066 ac_prev=program_transform_name ;;
1067 -program-transform-name=* | --program-transform-name=* \
1068 | --program-transform-nam=* | --program-transform-na=* \
1069 | --program-transform-n=* | --program-transform-=* \
1070 | --program-transform=* | --program-transfor=* \
1071 | --program-transfo=* | --program-transf=* \
1072 | --program-trans=* | --program-tran=* \
1073 | --progr-tra=* | --program-tr=* | --program-t=*)
1074 program_transform_name=$ac_optarg ;;
1076 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1079 pdfdir=$ac_optarg ;;
1081 -psdir | --psdir | --psdi | --psd | --ps)
1083 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1086 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1087 | -silent | --silent | --silen | --sile | --sil)
1090 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 sbindir=$ac_optarg ;;
1096 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1097 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1098 | --sharedst | --shareds | --shared | --share | --shar \
1100 ac_prev=sharedstatedir ;;
1101 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1102 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1103 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 sharedstatedir=$ac_optarg ;;
1107 -site | --site | --sit)
1109 -site=* | --site=* | --sit=*)
1112 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1115 srcdir=$ac_optarg ;;
1117 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1118 | --syscon | --sysco | --sysc | --sys | --sy)
1119 ac_prev=sysconfdir ;;
1120 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1121 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1122 sysconfdir=$ac_optarg ;;
1124 -target | --target | --targe | --targ | --tar | --ta | --t)
1125 ac_prev=target_alias ;;
1126 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1127 target_alias=$ac_optarg ;;
1129 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1132 -version | --version | --versio | --versi | --vers | -V)
1133 ac_init_version=: ;;
1136 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1139 { echo "$as_me: error: invalid package name: $ac_package" >&2
1140 { (exit 1); exit 1; }; }
1141 ac_package=`echo $ac_package| sed 's/-/_/g'`
1142 eval with_$ac_package=\$ac_optarg ;;
1144 -without-* | --without-*)
1145 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1146 # Reject names that are not valid shell variable names.
1147 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1148 { echo "$as_me: error: invalid package name: $ac_package" >&2
1149 { (exit 1); exit 1; }; }
1150 ac_package=`echo $ac_package | sed 's/-/_/g'`
1151 eval with_$ac_package=no ;;
1154 # Obsolete; use --with-x.
1157 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1158 | --x-incl | --x-inc | --x-in | --x-i)
1159 ac_prev=x_includes ;;
1160 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1161 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1162 x_includes=$ac_optarg ;;
1164 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1165 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1166 ac_prev=x_libraries ;;
1167 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1168 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1169 x_libraries=$ac_optarg ;;
1171 -*) { echo "$as_me: error: unrecognized option: $ac_option
1172 Try \`$0 --help' for more information." >&2
1173 { (exit 1); exit 1; }; }
1177 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1178 # Reject names that are not valid shell variable names.
1179 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1180 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1181 { (exit 1); exit 1; }; }
1182 eval $ac_envvar=\$ac_optarg
1183 export $ac_envvar ;;
1186 # FIXME: should be removed in autoconf 3.0.
1187 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1188 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1189 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1190 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 if test -n "$ac_prev"; then
1197 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1198 { echo "$as_me: error: missing argument to $ac_option" >&2
1199 { (exit 1); exit 1; }; }
1202 # Be sure to have absolute directory names.
1203 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1204 datadir sysconfdir sharedstatedir localstatedir includedir \
1205 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1206 libdir localedir mandir
1208 eval ac_val=\$$ac_var
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1214 { (exit 1); exit 1; }; }
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1229 If a cross compiler is detected then cross compile mode will be used." >&2
1230 elif test "x$build_alias" != "x$host_alias"; then
1236 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1238 test "$silent" = yes && exec 6>/dev/null
1241 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1242 ac_ls_di=`ls -di .` &&
1243 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1244 { echo "$as_me: error: Working directory cannot be determined" >&2
1245 { (exit 1); exit 1; }; }
1246 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1247 { echo "$as_me: error: pwd does not report name of working directory" >&2
1248 { (exit 1); exit 1; }; }
1251 # Find the source files, if location was not specified.
1252 if test -z "$srcdir"; then
1253 ac_srcdir_defaulted=yes
1254 # Try the directory containing this script, then the parent directory.
1255 ac_confdir=`$as_dirname -- "$0" ||
1256 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1257 X"$0" : 'X\(//\)[^/]' \| \
1258 X"$0" : 'X\(//\)$' \| \
1259 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1279 if test ! -r "$srcdir/$ac_unique_file"; then
1283 ac_srcdir_defaulted=no
1285 if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1288 { (exit 1); exit 1; }; }
1290 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1292 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1293 { (exit 1); exit 1; }; }
1295 # When building in place, set srcdir=.
1296 if test "$ac_abs_confdir" = "$ac_pwd"; then
1299 # Remove unnecessary trailing slashes from srcdir.
1300 # Double slashes in file names in object file debugging info
1301 # mess up M-x gdb in Emacs.
1303 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1305 for ac_var in $ac_precious_vars; do
1306 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1307 eval ac_env_${ac_var}_value=\$${ac_var}
1308 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1309 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 # Report the --help message.
1315 if test "$ac_init_help" = "long"; then
1316 # Omit some internal or obsolete options to make the list less imposing.
1317 # This message is too long to be a string in the A/UX 3.1 sh.
1319 \`configure' configures llvm 2.8svn to adapt to many kinds of systems.
1321 Usage: $0 [OPTION]... [VAR=VALUE]...
1323 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1324 VAR=VALUE. See below for descriptions of some of the useful variables.
1326 Defaults for the options are specified in brackets.
1329 -h, --help display this help and exit
1330 --help=short display options specific to this package
1331 --help=recursive display the short help of all the included packages
1332 -V, --version display version information and exit
1333 -q, --quiet, --silent do not print \`checking...' messages
1334 --cache-file=FILE cache test results in FILE [disabled]
1335 -C, --config-cache alias for \`--cache-file=config.cache'
1336 -n, --no-create do not create output files
1337 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1339 Installation directories:
1340 --prefix=PREFIX install architecture-independent files in PREFIX
1341 [$ac_default_prefix]
1342 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1345 By default, \`make install' will install all the files in
1346 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1347 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1348 for instance \`--prefix=\$HOME'.
1350 For better control, use the options below.
1352 Fine tuning of the installation directories:
1353 --bindir=DIR user executables [EPREFIX/bin]
1354 --sbindir=DIR system admin executables [EPREFIX/sbin]
1355 --libexecdir=DIR program executables [EPREFIX/libexec]
1356 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1357 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1358 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1359 --libdir=DIR object code libraries [EPREFIX/lib]
1360 --includedir=DIR C header files [PREFIX/include]
1361 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1362 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1363 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1364 --infodir=DIR info documentation [DATAROOTDIR/info]
1365 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1366 --mandir=DIR man documentation [DATAROOTDIR/man]
1367 --docdir=DIR documentation root [DATAROOTDIR/doc/-llvm-]
1368 --htmldir=DIR html documentation [DOCDIR]
1369 --dvidir=DIR dvi documentation [DOCDIR]
1370 --pdfdir=DIR pdf documentation [DOCDIR]
1371 --psdir=DIR ps documentation [DOCDIR]
1377 --build=BUILD configure for building on BUILD [guessed]
1378 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1379 --target=TARGET configure for building compilers for TARGET [HOST]
1383 if test -n "$ac_init_help"; then
1384 case $ac_init_help in
1385 short | recursive ) echo "Configuration of llvm 2.8svn:";;
1390 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1391 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1392 --enable-optimized Compile with optimizations enabled (default is NO)
1393 --enable-profiling Compile with profiling enabled (default is NO)
1394 --enable-assertions Compile with assertion checks enabled (default is
1396 --enable-expensive-checks
1397 Compile with expensive debug checks enabled (default
1399 --enable-debug-runtime Build runtime libs with debug symbols (default is
1401 --enable-debug-symbols Build compiler with debug symbols (default is NO if
1402 optimization is on and YES if it's off)
1403 --enable-jit Enable Just In Time Compiling (default is YES)
1404 --enable-doxygen Build doxygen documentation (default is NO)
1405 --enable-threads Use threads if available (default is YES)
1406 --enable-pic Build LLVM with Position Independent Code (default
1408 --enable-shared Build a shared library and link tools against it
1410 --enable-targets Build specific host targets: all or
1411 target1,target2,... Valid targets are: host, x86,
1412 x86_64, sparc, powerpc, alpha, arm, mips, spu,
1413 pic16, xcore, msp430, systemz, blackfin, cbe, msil,
1414 and cpp (default=all)
1415 --enable-cbe-printf-a Enable C Backend output with hex floating point via
1417 --enable-bindings Build specific language bindings:
1418 all,auto,none,{binding-name} (default=auto)
1419 --enable-libffi Check for the presence of libffi (default is NO)
1420 --enable-llvmc-dynamic Link LLVMC dynamically (default is NO, unless on
1422 --enable-llvmc-dynamic-plugins
1423 Enable dynamic LLVMC plugins (default is YES)
1424 --enable-ltdl-install install libltdl
1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1429 --with-llvmgccdir Specify location of llvm-gcc install dir (default
1431 --with-llvmgcc Specify location of llvm-gcc driver (default
1433 --with-llvmgxx Specify location of llvm-g++ driver (default
1435 --with-clang Specify location of clang compiler (default is
1437 --with-built-clang Use the compiled Clang as the LLVM compiler
1439 --with-optimize-option Select the compiler options to use for optimized
1441 --with-extra-options Specify additional options to compile LLVM with
1442 --with-ocaml-libdir Specify install location for ocaml bindings (default
1444 --with-c-include-dirs Colon separated list of directories clang will
1446 --with-cxx-include-root Directory with the libstdc++ headers.
1447 --with-cxx-include-arch Architecture of the libstdc++ headers.
1448 --with-cxx-include-32bit-dir
1449 32 bit multilib dir.
1450 --with-cxx-include-64bit-dir
1451 64 bit multilib directory.
1452 --with-binutils-include Specify path to binutils/include/ containing
1453 plugin-api.h file for gold plugin.
1454 --with-tclinclude directory where tcl headers are
1455 --with-llvmcc=<name> Choose the LLVM capable compiler to use (llvm-gcc,
1456 clang, or none; default=check)
1457 --with-udis86=<path> Use udis86 external x86 disassembler library
1458 --with-oprofile=<prefix>
1459 Tell OProfile >= 0.9.4 how to symbolize JIT output
1461 Some influential environment variables:
1462 CC C compiler command
1463 CFLAGS C compiler flags
1464 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1465 nonstandard directory <lib dir>
1466 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1467 you have headers in a nonstandard directory <include dir>
1469 CXX C++ compiler command
1470 CXXFLAGS C++ compiler flags
1472 Use these variables to override the choices made by `configure' or to help
1473 it to find libraries and programs with nonstandard names/locations.
1475 Report bugs to <llvmbugs@cs.uiuc.edu>.
1480 if test "$ac_init_help" = "recursive"; then
1481 # If there are subdirs, report their specific --help.
1482 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1483 test -d "$ac_dir" || continue
1487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1490 # A ".." for each directory in $ac_dir_suffix.
1491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1492 case $ac_top_builddir_sub in
1493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1497 ac_abs_top_builddir=$ac_pwd
1498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1499 # for backward compatibility:
1500 ac_top_builddir=$ac_top_build_prefix
1503 .) # We are building in place.
1505 ac_top_srcdir=$ac_top_builddir_sub
1506 ac_abs_top_srcdir=$ac_pwd ;;
1507 [\\/]* | ?:[\\/]* ) # Absolute name.
1508 ac_srcdir=$srcdir$ac_dir_suffix;
1509 ac_top_srcdir=$srcdir
1510 ac_abs_top_srcdir=$srcdir ;;
1512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1513 ac_top_srcdir=$ac_top_build_prefix$srcdir
1514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518 cd "$ac_dir" || { ac_status=$?; continue; }
1519 # Check for guested configure.
1520 if test -f "$ac_srcdir/configure.gnu"; then
1522 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1523 elif test -f "$ac_srcdir/configure"; then
1525 $SHELL "$ac_srcdir/configure" --help=recursive
1527 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529 cd "$ac_pwd" || { ac_status=$?; break; }
1533 test -n "$ac_init_help" && exit $ac_status
1534 if $ac_init_version; then
1536 llvm configure 2.8svn
1537 generated by GNU Autoconf 2.60
1539 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1540 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1541 This configure script is free software; the Free Software Foundation
1542 gives unlimited permission to copy, distribute and modify it.
1544 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1548 cat >config.log <<_ACEOF
1549 This file contains any messages produced by compilers while
1550 running configure, to aid debugging if configure makes a mistake.
1552 It was created by llvm $as_me 2.8svn, which was
1553 generated by GNU Autoconf 2.60. Invocation command line was
1565 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1566 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1567 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1568 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1569 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1572 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1574 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1575 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1576 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1577 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1578 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1579 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1580 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1588 test -z "$as_dir" && as_dir=.
1589 echo "PATH: $as_dir"
1605 # Keep a trace of the command line.
1606 # Strip out --no-create and --no-recursion so they do not pile up.
1607 # Strip out --silent because we don't want to record it for future runs.
1608 # Also quote any args containing shell meta-characters.
1609 # Make two passes to allow for proper duplicate-argument suppression.
1613 ac_must_keep_next=false
1619 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1620 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1621 | -silent | --silent | --silen | --sile | --sil)
1624 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1627 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1630 if test $ac_must_keep_next = true; then
1631 ac_must_keep_next=false # Got value, back to normal.
1634 *=* | --config-cache | -C | -disable-* | --disable-* \
1635 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1636 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1637 | -with-* | --with-* | -without-* | --without-* | --x)
1638 case "$ac_configure_args0 " in
1639 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1642 -* ) ac_must_keep_next=true ;;
1645 ac_configure_args="$ac_configure_args '$ac_arg'"
1650 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1651 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653 # When interrupted or exit'd, cleanup temporary files, and complete
1654 # config.log. We remove comments because anyway the quotes in there
1655 # would cause problems or look ugly.
1656 # WARNING: Use '\'' to represent an apostrophe within the trap.
1657 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1658 trap 'exit_status=$?
1659 # Save into config.log some information that might help in debugging.
1664 ## ---------------- ##
1665 ## Cache variables. ##
1666 ## ---------------- ##
1669 # The following way of writing the cache mishandles newlines in values,
1671 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1672 eval ac_val=\$$ac_var
1676 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1677 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1680 _ | IFS | as_nl) ;; #(
1681 *) $as_unset $ac_var ;;
1686 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1687 *${as_nl}ac_space=\ *)
1689 "s/'\''/'\''\\\\'\'''\''/g;
1690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1693 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1701 ## ----------------- ##
1702 ## Output variables. ##
1703 ## ----------------- ##
1706 for ac_var in $ac_subst_vars
1708 eval ac_val=\$$ac_var
1710 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712 echo "$ac_var='\''$ac_val'\''"
1716 if test -n "$ac_subst_files"; then
1718 ## ------------------- ##
1719 ## File substitutions. ##
1720 ## ------------------- ##
1723 for ac_var in $ac_subst_files
1725 eval ac_val=\$$ac_var
1727 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729 echo "$ac_var='\''$ac_val'\''"
1734 if test -s confdefs.h; then
1744 test "$ac_signal" != 0 &&
1745 echo "$as_me: caught signal $ac_signal"
1746 echo "$as_me: exit $exit_status"
1748 rm -f core *.core core.conftest.* &&
1749 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1752 for ac_signal in 1 2 13 15; do
1753 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1757 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1758 rm -f -r conftest* confdefs.h
1760 # Predefined preprocessor variables.
1762 cat >>confdefs.h <<_ACEOF
1763 #define PACKAGE_NAME "$PACKAGE_NAME"
1767 cat >>confdefs.h <<_ACEOF
1768 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1772 cat >>confdefs.h <<_ACEOF
1773 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1777 cat >>confdefs.h <<_ACEOF
1778 #define PACKAGE_STRING "$PACKAGE_STRING"
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1787 # Let the site file select an alternate cache file if it wants to.
1788 # Prefer explicitly selected file to automatically selected ones.
1789 if test -n "$CONFIG_SITE"; then
1790 set x "$CONFIG_SITE"
1791 elif test "x$prefix" != xNONE; then
1792 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 set x "$ac_default_prefix/share/config.site" \
1795 "$ac_default_prefix/etc/config.site"
1800 if test -r "$ac_site_file"; then
1801 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1802 echo "$as_me: loading site script $ac_site_file" >&6;}
1803 sed 's/^/| /' "$ac_site_file" >&5
1808 if test -r "$cache_file"; then
1809 # Some versions of bash will fail to source /dev/null (special
1810 # files actually), so we avoid doing that.
1811 if test -f "$cache_file"; then
1812 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1813 echo "$as_me: loading cache $cache_file" >&6;}
1815 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1816 *) . "./$cache_file";;
1820 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1821 echo "$as_me: creating cache $cache_file" >&6;}
1825 # Check that the precious variables saved in the cache have kept the same
1827 ac_cache_corrupted=false
1828 for ac_var in $ac_precious_vars; do
1829 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1830 eval ac_new_set=\$ac_env_${ac_var}_set
1831 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1832 eval ac_new_val=\$ac_env_${ac_var}_value
1833 case $ac_old_set,$ac_new_set in
1835 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1836 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1837 ac_cache_corrupted=: ;;
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1844 if test "x$ac_old_val" != "x$ac_new_val"; then
1845 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1846 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1847 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1848 echo "$as_me: former value: $ac_old_val" >&2;}
1849 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1850 echo "$as_me: current value: $ac_new_val" >&2;}
1851 ac_cache_corrupted=:
1854 # Pass precious variables to config.status.
1855 if test "$ac_new_set" = set; then
1857 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1858 *) ac_arg=$ac_var=$ac_new_val ;;
1860 case " $ac_configure_args " in
1861 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1862 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1866 if $ac_cache_corrupted; then
1867 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1868 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1869 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1870 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1871 { (exit 1); exit 1; }; }
1899 ac_cpp='$CPP $CPPFLAGS'
1900 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1901 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1902 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1906 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1915 for ac_dir in autoconf "$srcdir"/autoconf; do
1916 if test -f "$ac_dir/install-sh"; then
1918 ac_install_sh="$ac_aux_dir/install-sh -c"
1920 elif test -f "$ac_dir/install.sh"; then
1922 ac_install_sh="$ac_aux_dir/install.sh -c"
1924 elif test -f "$ac_dir/shtool"; then
1926 ac_install_sh="$ac_aux_dir/shtool install -c"
1930 if test -z "$ac_aux_dir"; then
1931 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1932 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1933 { (exit 1); exit 1; }; }
1936 # These three variables are undocumented and unsupported,
1937 # and are intended to be withdrawn in a future Autoconf release.
1938 # They can cause serious problems if a builder's source tree is in a directory
1939 # whose full name contains unusual characters.
1940 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1941 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1942 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1946 if test ${srcdir} != "." ; then
1947 if test -f ${srcdir}/include/llvm/Config/config.h ; then
1948 { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1949 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1950 { (exit 1); exit 1; }; }
1956 if test -d ${srcdir}/projects/llvm-gcc ; then
1957 subdirs="$subdirs projects/llvm-gcc"
1961 if test -d ${srcdir}/projects/test-suite ; then
1962 subdirs="$subdirs projects/test-suite"
1966 if test -d ${srcdir}/projects/llvm-test ; then
1967 subdirs="$subdirs projects/llvm-test"
1971 if test -d ${srcdir}/projects/poolalloc ; then
1972 subdirs="$subdirs projects/poolalloc"
1976 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1977 subdirs="$subdirs projects/llvm-poolalloc"
1981 for i in `ls ${srcdir}/projects`
1983 if test -d ${srcdir}/projects/${i} ; then
1986 sample) subdirs="$subdirs projects/sample"
1988 privbracket) subdirs="$subdirs projects/privbracket"
1990 llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1992 llvm-reopt) subdirs="$subdirs projects/llvm-reopt"
1994 llvm-java) subdirs="$subdirs projects/llvm-java"
1996 llvm-tv) subdirs="$subdirs projects/llvm-tv"
1998 safecode) subdirs="$subdirs projects/safecode"
2000 llvm-kernel) subdirs="$subdirs projects/llvm-kernel"
2008 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2016 # Make sure we can run config.sub.
2017 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020 { (exit 1); exit 1; }; }
2022 { echo "$as_me:$LINENO: checking build system type" >&5
2023 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024 if test "${ac_cv_build+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 ac_build_alias=$build_alias
2028 test "x$ac_build_alias" = x &&
2029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030 test "x$ac_build_alias" = x &&
2031 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033 { (exit 1); exit 1; }; }
2034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2035 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037 { (exit 1); exit 1; }; }
2040 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041 echo "${ECHO_T}$ac_cv_build" >&6; }
2042 case $ac_cv_build in
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045 echo "$as_me: error: invalid value of canonical build" >&2;}
2046 { (exit 1); exit 1; }; };;
2049 ac_save_IFS=$IFS; IFS='-'
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2059 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2062 { echo "$as_me:$LINENO: checking host system type" >&5
2063 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_host+set}" = set; then
2065 echo $ECHO_N "(cached) $ECHO_C" >&6
2067 if test "x$host_alias" = x; then
2068 ac_cv_host=$ac_cv_build
2070 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2071 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073 { (exit 1); exit 1; }; }
2077 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078 echo "${ECHO_T}$ac_cv_host" >&6; }
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082 echo "$as_me: error: invalid value of canonical host" >&2;}
2083 { (exit 1); exit 1; }; };;
2086 ac_save_IFS=$IFS; IFS='-'
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2096 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2099 { echo "$as_me:$LINENO: checking target system type" >&5
2100 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_target+set}" = set; then
2102 echo $ECHO_N "(cached) $ECHO_C" >&6
2104 if test "x$target_alias" = x; then
2105 ac_cv_target=$ac_cv_host
2107 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2114 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115 echo "${ECHO_T}$ac_cv_target" >&6; }
2116 case $ac_cv_target in
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119 echo "$as_me: error: invalid value of canonical target" >&2;}
2120 { (exit 1); exit 1; }; };;
2122 target=$ac_cv_target
2123 ac_save_IFS=$IFS; IFS='-'
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2133 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2136 # The aliases save the names the user supplied, while $host etc.
2137 # will get canonicalized.
2138 test -n "$target_alias" &&
2139 test "$program_prefix$program_suffix$program_transform_name" = \
2141 program_prefix=${target_alias}-
2143 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145 if test "${llvm_cv_os_type+set}" = set; then
2146 echo $ECHO_N "(cached) $ECHO_C" >&6
2150 llvm_cv_link_all_option="-Wl,--whole-archive"
2151 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152 llvm_cv_os_type="AIX"
2153 llvm_cv_platform_type="Unix" ;;
2155 llvm_cv_link_all_option="-Wl,--whole-archive"
2156 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157 llvm_cv_os_type="IRIX"
2158 llvm_cv_platform_type="Unix" ;;
2160 llvm_cv_link_all_option="-Wl,--whole-archive"
2161 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162 llvm_cv_os_type="Cygwin"
2163 llvm_cv_platform_type="Unix" ;;
2165 llvm_cv_link_all_option="-Wl,-all_load"
2166 llvm_cv_no_link_all_option="-Wl,-noall_load"
2167 llvm_cv_os_type="Darwin"
2168 llvm_cv_platform_type="Unix" ;;
2170 llvm_cv_link_all_option="-Wl,-all_load"
2171 llvm_cv_no_link_all_option="-Wl,-noall_load"
2172 llvm_cv_os_type="Minix"
2173 llvm_cv_platform_type="Unix" ;;
2175 llvm_cv_link_all_option="-Wl,--whole-archive"
2176 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2177 llvm_cv_os_type="FreeBSD"
2178 llvm_cv_platform_type="Unix" ;;
2180 llvm_cv_link_all_option="-Wl,--whole-archive"
2181 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182 llvm_cv_os_type="OpenBSD"
2183 llvm_cv_platform_type="Unix" ;;
2185 llvm_cv_link_all_option="-Wl,--whole-archive"
2186 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187 llvm_cv_os_type="NetBSD"
2188 llvm_cv_platform_type="Unix" ;;
2190 llvm_cv_link_all_option="-Wl,--whole-archive"
2191 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192 llvm_cv_os_type="DragonFly"
2193 llvm_cv_platform_type="Unix" ;;
2195 llvm_cv_link_all_option="-Wl,--whole-archive"
2196 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197 llvm_cv_os_type="HP-UX"
2198 llvm_cv_platform_type="Unix" ;;
2200 llvm_cv_link_all_option="-Wl,--whole-archive"
2201 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202 llvm_cv_os_type="Interix"
2203 llvm_cv_platform_type="Unix" ;;
2205 llvm_cv_link_all_option="-Wl,--whole-archive"
2206 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207 llvm_cv_os_type="Linux"
2208 llvm_cv_platform_type="Unix" ;;
2210 llvm_cv_link_all_option="-Wl,-z,allextract"
2211 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2212 llvm_cv_os_type="SunOS"
2213 llvm_cv_platform_type="Unix" ;;
2215 llvm_cv_link_all_option="-Wl,-z,allextract"
2216 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2217 llvm_cv_os_type="AuroraUX"
2218 llvm_cv_platform_type="Unix" ;;
2220 llvm_cv_link_all_option="-Wl,--whole-archive"
2221 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2222 llvm_cv_os_type="Win32"
2223 llvm_cv_platform_type="Win32" ;;
2225 llvm_cv_link_all_option="-Wl,--whole-archive"
2226 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227 llvm_cv_os_type="MingW"
2228 llvm_cv_platform_type="Win32" ;;
2230 llvm_cv_link_all_option="-Wl,--whole-archive"
2231 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232 llvm_cv_os_type="Haiku"
2233 llvm_cv_platform_type="Unix" ;;
2235 llvm_cv_link_all_option="-Wl,--whole-archive"
2236 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237 llvm_cv_os_type="Freestanding"
2238 llvm_cv_platform_type="Unix" ;;
2240 llvm_cv_link_all_option="-Wl,--whole-archive"
2241 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242 llvm_cv_os_type="Freestanding"
2243 llvm_cv_platform_type="Unix" ;;
2245 llvm_cv_link_all_option=""
2246 llvm_cv_no_link_all_option=""
2247 llvm_cv_os_type="Unknown"
2248 llvm_cv_platform_type="Unknown" ;;
2251 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2254 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256 if test "${llvm_cv_target_os_type+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2261 llvm_cv_target_os_type="AIX" ;;
2263 llvm_cv_target_os_type="IRIX" ;;
2265 llvm_cv_target_os_type="Cygwin" ;;
2267 llvm_cv_target_os_type="Darwin" ;;
2269 llvm_cv_target_os_type="Minix" ;;
2271 llvm_cv_target_os_type="FreeBSD" ;;
2273 llvm_cv_target_os_type="OpenBSD" ;;
2275 llvm_cv_target_os_type="NetBSD" ;;
2277 llvm_cv_target_os_type="DragonFly" ;;
2279 llvm_cv_target_os_type="HP-UX" ;;
2281 llvm_cv_target_os_type="Interix" ;;
2283 llvm_cv_target_os_type="Linux" ;;
2285 llvm_cv_target_os_type="SunOS" ;;
2287 llvm_cv_target_os_type="AuroraUX" ;;
2289 llvm_cv_target_os_type="Win32" ;;
2291 llvm_cv_target_os_type="MingW" ;;
2293 llvm_cv_target_os_type="Haiku" ;;
2295 llvm_cv_target_os_type="Freestanding" ;;
2297 llvm_cv_target_os_type="Unknown" ;;
2300 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2303 if test "$llvm_cv_os_type" = "Unknown" ; then
2304 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306 { (exit 1); exit 1; }; }
2311 HOST_OS=$llvm_cv_os_type
2313 TARGET_OS=$llvm_cv_target_os_type
2316 LINKALL=$llvm_cv_link_all_option
2318 NOLINKALL=$llvm_cv_no_link_all_option
2321 case $llvm_cv_platform_type in
2324 cat >>confdefs.h <<\_ACEOF
2325 #define LLVM_ON_UNIX 1
2335 cat >>confdefs.h <<\_ACEOF
2336 #define LLVM_ON_WIN32 1
2346 { echo "$as_me:$LINENO: checking target architecture" >&5
2347 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348 if test "${llvm_cv_target_arch+set}" = set; then
2349 echo $ECHO_N "(cached) $ECHO_C" >&6
2352 i?86-*) llvm_cv_target_arch="x86" ;;
2353 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2354 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2355 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2356 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2357 arm*-*) llvm_cv_target_arch="ARM" ;;
2358 mips-*) llvm_cv_target_arch="Mips" ;;
2359 pic16-*) llvm_cv_target_arch="PIC16" ;;
2360 xcore-*) llvm_cv_target_arch="XCore" ;;
2361 msp430-*) llvm_cv_target_arch="MSP430" ;;
2362 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2363 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2364 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2365 *) llvm_cv_target_arch="Unknown" ;;
2368 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2371 if test "$llvm_cv_target_arch" = "Unknown" ; then
2372 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2376 # Determine the LLVM native architecture for the target
2377 case "$llvm_cv_target_arch" in
2378 x86) LLVM_NATIVE_ARCH="X86" ;;
2379 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2380 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2383 ARCH=$llvm_cv_target_arch
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397 echo $ECHO_N "(cached) $ECHO_C" >&6
2399 if test -n "$CC"; then
2400 ac_cv_prog_CC="$CC" # Let the user override the test.
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 test -z "$as_dir" && as_dir=.
2407 for ac_exec_ext in '' $ac_executable_extensions; do
2408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2409 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 if test -n "$CC"; then
2421 { echo "$as_me:$LINENO: result: $CC" >&5
2422 echo "${ECHO_T}$CC" >&6; }
2424 { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2430 if test -z "$ac_cv_prog_CC"; then
2432 # Extract the first word of "gcc", so it can be a program name with args.
2433 set dummy gcc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437 echo $ECHO_N "(cached) $ECHO_C" >&6
2439 if test -n "$ac_ct_CC"; then
2440 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 test -z "$as_dir" && as_dir=.
2447 for ac_exec_ext in '' $ac_executable_extensions; do
2448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449 ac_cv_prog_ac_ct_CC="gcc"
2450 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462 echo "${ECHO_T}$ac_ct_CC" >&6; }
2464 { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2468 if test "x$ac_ct_CC" = x; then
2471 case $cross_compiling:$ac_tool_warned in
2473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet. If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&5
2476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet. If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2479 ac_tool_warned=yes ;;
2487 if test -z "$CC"; then
2488 if test -n "$ac_tool_prefix"; then
2489 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494 echo $ECHO_N "(cached) $ECHO_C" >&6
2496 if test -n "$CC"; then
2497 ac_cv_prog_CC="$CC" # Let the user override the test.
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 test -z "$as_dir" && as_dir=.
2504 for ac_exec_ext in '' $ac_executable_extensions; do
2505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2506 ac_cv_prog_CC="${ac_tool_prefix}cc"
2507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2517 if test -n "$CC"; then
2518 { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2521 { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2528 if test -z "$CC"; then
2529 # Extract the first word of "cc", so it can be a program name with args.
2530 set dummy cc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534 echo $ECHO_N "(cached) $ECHO_C" >&6
2536 if test -n "$CC"; then
2537 ac_cv_prog_CC="$CC" # Let the user override the test.
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 test -z "$as_dir" && as_dir=.
2545 for ac_exec_ext in '' $ac_executable_extensions; do
2546 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548 ac_prog_rejected=yes
2552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2559 if test $ac_prog_rejected = yes; then
2560 # We found a bogon in the path, so make sure we never use it.
2561 set dummy $ac_cv_prog_CC
2563 if test $# != 0; then
2564 # We chose a different compiler from the bogus one.
2565 # However, it has the same basename, so the bogon will be chosen
2566 # first if we set CC to just the basename; use the full file name.
2568 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2574 if test -n "$CC"; then
2575 { echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6; }
2578 { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2584 if test -z "$CC"; then
2585 if test -n "$ac_tool_prefix"; then
2586 for ac_prog in cl.exe
2588 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then
2593 echo $ECHO_N "(cached) $ECHO_C" >&6
2595 if test -n "$CC"; then
2596 ac_cv_prog_CC="$CC" # Let the user override the test.
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 test -z "$as_dir" && as_dir=.
2603 for ac_exec_ext in '' $ac_executable_extensions; do
2604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2606 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2616 if test -n "$CC"; then
2617 { echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6; }
2620 { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2625 test -n "$CC" && break
2628 if test -z "$CC"; then
2630 for ac_prog in cl.exe
2632 # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637 echo $ECHO_N "(cached) $ECHO_C" >&6
2639 if test -n "$ac_ct_CC"; then
2640 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 test -z "$as_dir" && as_dir=.
2647 for ac_exec_ext in '' $ac_executable_extensions; do
2648 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649 ac_cv_prog_ac_ct_CC="$ac_prog"
2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2664 { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2669 test -n "$ac_ct_CC" && break
2672 if test "x$ac_ct_CC" = x; then
2675 case $cross_compiling:$ac_tool_warned in
2677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet. If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&5
2680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet. If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683 ac_tool_warned=yes ;;
2692 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&2;}
2696 { (exit 1); exit 1; }; }
2698 # Provide some information about the compiler.
2699 echo "$as_me:$LINENO: checking for C compiler version" >&5
2700 ac_compiler=`set X $ac_compile; echo $2`
2701 { (ac_try="$ac_compiler --version >&5"
2703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704 *) ac_try_echo=$ac_try;;
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707 (eval "$ac_compiler --version >&5") 2>&5
2709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710 (exit $ac_status); }
2711 { (ac_try="$ac_compiler -v >&5"
2713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714 *) ac_try_echo=$ac_try;;
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717 (eval "$ac_compiler -v >&5") 2>&5
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }
2721 { (ac_try="$ac_compiler -V >&5"
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compiler -V >&5") 2>&5
2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730 (exit $ac_status); }
2732 cat >conftest.$ac_ext <<_ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h. */
2747 ac_clean_files_save=$ac_clean_files
2748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2752 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2756 # List of possible output files, starting from the most likely.
2757 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758 # only as a last resort. b.out is created by i960 compilers.
2759 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2761 # The IRIX 6 linker writes into existing files which may not be
2762 # executable, retaining their permissions. Remove them first so a
2763 # subsequent execution test works.
2765 for ac_file in $ac_files
2768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2769 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2774 if { (ac_try="$ac_link_default"
2776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777 *) ac_try_echo=$ac_try;;
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780 (eval "$ac_link_default") 2>&5
2782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783 (exit $ac_status); }; then
2784 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2787 # so that the user can short-circuit this test for compilers unknown to
2789 for ac_file in $ac_files
2791 test -f "$ac_file" || continue
2793 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2796 # We found the default executable, but exeext='' is most
2800 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2802 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2804 # We set ac_cv_exeext here because the later test for it is not
2805 # safe: cross compilers may not add the suffix if given an `-o'
2806 # argument, so we may need to know it at that point already.
2807 # Even if this section looks crufty: it has the advantage of
2814 test "$ac_cv_exeext" = no && ac_cv_exeext=
2817 echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2820 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&2;}
2824 { (exit 77); exit 77; }; }
2827 ac_exeext=$ac_cv_exeext
2828 { echo "$as_me:$LINENO: result: $ac_file" >&5
2829 echo "${ECHO_T}$ac_file" >&6; }
2831 # Check that the compiler produces executables we can run. If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838 if { ac_try='./$ac_file'
2839 { (case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844 (eval "$ac_try") 2>&5
2846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847 (exit $ac_status); }; }; then
2850 if test "$cross_compiling" = maybe; then
2853 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859 { (exit 1); exit 1; }; }
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 # Check that the compiler produces executables we can run. If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880 *) ac_try_echo=$ac_try;;
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883 (eval "$ac_link") 2>&5
2885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886 (exit $ac_status); }; then
2887 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2891 for ac_file in conftest.exe conftest conftest.*; do
2892 test -f "$ac_file" || continue
2894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2901 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918 echo $ECHO_N "(cached) $ECHO_C" >&6
2920 cat >conftest.$ac_ext <<_ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h. */
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939 *) ac_try_echo=$ac_try;;
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942 (eval "$ac_compile") 2>&5
2944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945 (exit $ac_status); }; then
2946 for ac_file in conftest.o conftest.obj conftest.*; do
2947 test -f "$ac_file" || continue;
2949 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2955 echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962 { (exit 1); exit 1; }; }
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974 echo $ECHO_N "(cached) $ECHO_C" >&6
2976 cat >conftest.$ac_ext <<_ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h. */
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998 *) ac_try_echo=$ac_try;;
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001 (eval "$ac_compile") 2>conftest.er1
3003 grep -v '^ *+' conftest.er1 >conftest.err
3005 cat conftest.err >&5
3006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007 (exit $ac_status); } &&
3008 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009 { (case "(($ac_try" in
3010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011 *) ac_try_echo=$ac_try;;
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014 (eval "$ac_try") 2>&5
3016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017 (exit $ac_status); }; } &&
3018 { ac_try='test -s conftest.$ac_objext'
3019 { (case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_try") 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }; }; then
3030 echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3040 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042 GCC=`test $ac_compiler_gnu = yes && echo yes`
3043 ac_test_CFLAGS=${CFLAGS+set}
3044 ac_save_CFLAGS=$CFLAGS
3045 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_cc_g+set}" = set; then
3048 echo $ECHO_N "(cached) $ECHO_C" >&6
3050 ac_save_c_werror_flag=$ac_c_werror_flag
3051 ac_c_werror_flag=yes
3054 cat >conftest.$ac_ext <<_ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h. */
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073 *) ac_try_echo=$ac_try;;
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076 (eval "$ac_compile") 2>conftest.er1
3078 grep -v '^ *+' conftest.er1 >conftest.err
3080 cat conftest.err >&5
3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082 (exit $ac_status); } &&
3083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084 { (case "(($ac_try" in
3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086 *) ac_try_echo=$ac_try;;
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089 (eval "$ac_try") 2>&5
3091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092 (exit $ac_status); }; } &&
3093 { ac_try='test -s conftest.$ac_objext'
3094 { (case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_try") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; }; then
3105 echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3109 cat >conftest.$ac_ext <<_ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h. */
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131 (eval "$ac_compile") 2>conftest.er1
3133 grep -v '^ *+' conftest.er1 >conftest.err
3135 cat conftest.err >&5
3136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137 (exit $ac_status); } &&
3138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139 { (case "(($ac_try" in
3140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141 *) ac_try_echo=$ac_try;;
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144 (eval "$ac_try") 2>&5
3146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147 (exit $ac_status); }; } &&
3148 { ac_try='test -s conftest.$ac_objext'
3149 { (case "(($ac_try" in
3150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151 *) ac_try_echo=$ac_try;;
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154 (eval "$ac_try") 2>&5
3156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157 (exit $ac_status); }; }; then
3160 echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3163 ac_c_werror_flag=$ac_save_c_werror_flag
3165 cat >conftest.$ac_ext <<_ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h. */
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187 (eval "$ac_compile") 2>conftest.er1
3189 grep -v '^ *+' conftest.er1 >conftest.err
3191 cat conftest.err >&5
3192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193 (exit $ac_status); } &&
3194 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195 { (case "(($ac_try" in
3196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197 *) ac_try_echo=$ac_try;;
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200 (eval "$ac_try") 2>&5
3202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203 (exit $ac_status); }; } &&
3204 { ac_try='test -s conftest.$ac_objext'
3205 { (case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210 (eval "$ac_try") 2>&5
3212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213 (exit $ac_status); }; }; then
3216 echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3233 if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235 elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3242 if test "$GCC" = yes; then
3248 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250 if test "${ac_cv_prog_cc_c89+set}" = set; then
3251 echo $ECHO_N "(cached) $ECHO_C" >&6
3253 ac_cv_prog_cc_c89=no
3255 cat >conftest.$ac_ext <<_ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3263 #include <sys/types.h>
3264 #include <sys/stat.h>
3265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3266 struct buf { int x; };
3267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268 static char *e (p, i)
3274 static char *f (char * (*g) (char **, int), char **p, ...)
3279 s = g (p, va_arg (v,int));
3284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3285 function prototypes and stuff, but not '\xHH' hex character constants.
3286 These don't provoke an error unfortunately, instead are silently treated
3287 as 'x'. The following induces an error, until -std is added to get
3288 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3289 array size at least. It's necessary to write '\x00'==0 to get something
3290 that's true only with -std. */
3291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3293 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294 inside strings and character constants. */
3296 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3298 int test (int i, double x);
3299 struct s1 {int (*f) (int a);};
3300 struct s2 {int (*f) (double a);};
3301 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3307 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3312 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3315 CC="$ac_save_CC $ac_arg"
3316 rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320 *) ac_try_echo=$ac_try;;
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323 (eval "$ac_compile") 2>conftest.er1
3325 grep -v '^ *+' conftest.er1 >conftest.err
3327 cat conftest.err >&5
3328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329 (exit $ac_status); } &&
3330 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331 { (case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_try") 2>&5
3338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339 (exit $ac_status); }; } &&
3340 { ac_try='test -s conftest.$ac_objext'
3341 { (case "(($ac_try" in
3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343 *) ac_try_echo=$ac_try;;
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346 (eval "$ac_try") 2>&5
3348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349 (exit $ac_status); }; }; then
3350 ac_cv_prog_cc_c89=$ac_arg
3352 echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3358 rm -f core conftest.err conftest.$ac_objext
3359 test "x$ac_cv_prog_cc_c89" != "xno" && break
3361 rm -f conftest.$ac_ext
3366 case "x$ac_cv_prog_cc_c89" in
3368 { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3371 { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3374 CC="$CC $ac_cv_prog_cc_c89"
3375 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3394 # On Suns, sometimes $CPP names a directory.
3395 if test -n "$CPP" && test -d "$CPP"; then
3398 if test -z "$CPP"; then
3399 if test "${ac_cv_prog_CPP+set}" = set; then
3400 echo $ECHO_N "(cached) $ECHO_C" >&6
3402 # Double quotes because CPP needs to be expanded
3403 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3406 for ac_c_preproc_warn_flag in '' yes
3408 # Use a header file that comes with gcc, so configuring glibc
3409 # with a fresh cross-compiler works.
3410 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411 # <limits.h> exists even on freestanding compilers.
3412 # On the NeXT, cc -E runs the code through the compiler's parser,
3413 # not just through cpp. "Syntax error" is here to catch this case.
3414 cat >conftest.$ac_ext <<_ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3421 # include <limits.h>
3423 # include <assert.h>
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430 *) ac_try_echo=$ac_try;;
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3435 grep -v '^ *+' conftest.er1 >conftest.err
3437 cat conftest.err >&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); } >/dev/null; then
3440 if test -s conftest.err; then
3441 ac_cpp_err=$ac_c_preproc_warn_flag
3442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3449 if test -z "$ac_cpp_err"; then
3452 echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 # Broken: fails on valid input.
3459 rm -f conftest.err conftest.$ac_ext
3461 # OK, works on sane cases. Now check whether nonexistent headers
3462 # can be detected and how.
3463 cat >conftest.$ac_ext <<_ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h. */
3469 #include <ac_nonexistent.h>
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3479 grep -v '^ *+' conftest.er1 >conftest.err
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } >/dev/null; then
3484 if test -s conftest.err; then
3485 ac_cpp_err=$ac_c_preproc_warn_flag
3486 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3493 if test -z "$ac_cpp_err"; then
3494 # Broken: success on invalid input.
3497 echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3500 # Passes both tests.
3505 rm -f conftest.err conftest.$ac_ext
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3522 { echo "$as_me:$LINENO: result: $CPP" >&5
3523 echo "${ECHO_T}$CPP" >&6; }
3525 for ac_c_preproc_warn_flag in '' yes
3527 # Use a header file that comes with gcc, so configuring glibc
3528 # with a fresh cross-compiler works.
3529 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530 # <limits.h> exists even on freestanding compilers.
3531 # On the NeXT, cc -E runs the code through the compiler's parser,
3532 # not just through cpp. "Syntax error" is here to catch this case.
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3540 # include <limits.h>
3542 # include <assert.h>
3546 if { (ac_try="$ac_cpp conftest.$ac_ext"
3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549 *) ac_try_echo=$ac_try;;
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3554 grep -v '^ *+' conftest.er1 >conftest.err
3556 cat conftest.err >&5
3557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558 (exit $ac_status); } >/dev/null; then
3559 if test -s conftest.err; then
3560 ac_cpp_err=$ac_c_preproc_warn_flag
3561 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3568 if test -z "$ac_cpp_err"; then
3571 echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3574 # Broken: fails on valid input.
3578 rm -f conftest.err conftest.$ac_ext
3580 # OK, works on sane cases. Now check whether nonexistent headers
3581 # can be detected and how.
3582 cat >conftest.$ac_ext <<_ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h. */
3588 #include <ac_nonexistent.h>
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3598 grep -v '^ *+' conftest.er1 >conftest.err
3600 cat conftest.err >&5
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } >/dev/null; then
3603 if test -s conftest.err; then
3604 ac_cpp_err=$ac_c_preproc_warn_flag
3605 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3612 if test -z "$ac_cpp_err"; then
3613 # Broken: success on invalid input.
3616 echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3619 # Passes both tests.
3624 rm -f conftest.err conftest.$ac_ext
3627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628 rm -f conftest.err conftest.$ac_ext
3629 if $ac_preproc_ok; then
3632 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633 See \`config.log' for more details." >&5
3634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635 See \`config.log' for more details." >&2;}
3636 { (exit 1); exit 1; }; }
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3646 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649 echo $ECHO_N "(cached) $ECHO_C" >&6
3651 # Extract the first word of "grep ggrep" to use in msg output
3652 if test -z "$GREP"; then
3653 set dummy grep ggrep; ac_prog_name=$2
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 ac_path_GREP_found=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3663 test -z "$as_dir" && as_dir=.
3664 for ac_prog in grep ggrep; do
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668 # Check for GNU ac_path_GREP and select it if it is found.
3669 # Check for GNU $ac_path_GREP
3670 case `"$ac_path_GREP" --version 2>&1` in
3672 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3675 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3678 cat "conftest.in" "conftest.in" >"conftest.tmp"
3679 mv "conftest.tmp" "conftest.in"
3680 cp "conftest.in" "conftest.nl"
3681 echo 'GREP' >> "conftest.nl"
3682 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3684 ac_count=`expr $ac_count + 1`
3685 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686 # Best one so far, save it but keep looking for a better one
3687 ac_cv_path_GREP="$ac_path_GREP"
3688 ac_path_GREP_max=$ac_count
3690 # 10*(2^10) chars as input seems more than enough
3691 test $ac_count -gt 10 && break
3693 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3697 $ac_path_GREP_found && break 3
3707 GREP="$ac_cv_path_GREP"
3708 if test -z "$GREP"; then
3709 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711 { (exit 1); exit 1; }; }
3715 ac_cv_path_GREP=$GREP
3720 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3722 GREP="$ac_cv_path_GREP"
3725 { echo "$as_me:$LINENO: checking for egrep" >&5
3726 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727 if test "${ac_cv_path_EGREP+set}" = set; then
3728 echo $ECHO_N "(cached) $ECHO_C" >&6
3730 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731 then ac_cv_path_EGREP="$GREP -E"
3733 # Extract the first word of "egrep" to use in msg output
3734 if test -z "$EGREP"; then
3735 set dummy egrep; ac_prog_name=$2
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 ac_path_EGREP_found=false
3740 # Loop through the user's path and test for each of PROGNAME-LIST
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3745 test -z "$as_dir" && as_dir=.
3746 for ac_prog in egrep; do
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750 # Check for GNU ac_path_EGREP and select it if it is found.
3751 # Check for GNU $ac_path_EGREP
3752 case `"$ac_path_EGREP" --version 2>&1` in
3754 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3757 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3760 cat "conftest.in" "conftest.in" >"conftest.tmp"
3761 mv "conftest.tmp" "conftest.in"
3762 cp "conftest.in" "conftest.nl"
3763 echo 'EGREP' >> "conftest.nl"
3764 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766 ac_count=`expr $ac_count + 1`
3767 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768 # Best one so far, save it but keep looking for a better one
3769 ac_cv_path_EGREP="$ac_path_EGREP"
3770 ac_path_EGREP_max=$ac_count
3772 # 10*(2^10) chars as input seems more than enough
3773 test $ac_count -gt 10 && break
3775 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3779 $ac_path_EGREP_found && break 3
3789 EGREP="$ac_cv_path_EGREP"
3790 if test -z "$EGREP"; then
3791 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793 { (exit 1); exit 1; }; }
3797 ac_cv_path_EGREP=$EGREP
3803 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3805 EGREP="$ac_cv_path_EGREP"
3808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810 if test "${ac_cv_header_stdc+set}" = set; then
3811 echo $ECHO_N "(cached) $ECHO_C" >&6
3813 cat >conftest.$ac_ext <<_ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h. */
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836 *) ac_try_echo=$ac_try;;
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839 (eval "$ac_compile") 2>conftest.er1
3841 grep -v '^ *+' conftest.er1 >conftest.err
3843 cat conftest.err >&5
3844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845 (exit $ac_status); } &&
3846 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847 { (case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_try") 2>&5
3854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855 (exit $ac_status); }; } &&
3856 { ac_try='test -s conftest.$ac_objext'
3857 { (case "(($ac_try" in
3858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859 *) ac_try_echo=$ac_try;;
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862 (eval "$ac_try") 2>&5
3864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865 (exit $ac_status); }; }; then
3866 ac_cv_header_stdc=yes
3868 echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3871 ac_cv_header_stdc=no
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3876 if test $ac_cv_header_stdc = yes; then
3877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878 cat >conftest.$ac_ext <<_ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h. */
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888 $EGREP "memchr" >/dev/null 2>&1; then
3891 ac_cv_header_stdc=no
3897 if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899 cat >conftest.$ac_ext <<_ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909 $EGREP "free" >/dev/null 2>&1; then
3912 ac_cv_header_stdc=no
3918 if test $ac_cv_header_stdc = yes; then
3919 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3920 if test "$cross_compiling" = yes; then
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3931 #if ((' ' & 0x0FF) == 0x020)
3932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3935 # define ISLOWER(c) \
3936 (('a' <= (c) && (c) <= 'i') \
3937 || ('j' <= (c) && (c) <= 'r') \
3938 || ('s' <= (c) && (c) <= 'z'))
3939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3947 for (i = 0; i < 256; i++)
3948 if (XOR (islower (i), ISLOWER (i))
3949 || toupper (i) != TOUPPER (i))
3954 rm -f conftest$ac_exeext
3955 if { (ac_try="$ac_link"
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_link") 2>&5
3963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965 { (case "(($ac_try" in
3966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967 *) ac_try_echo=$ac_try;;
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970 (eval "$ac_try") 2>&5
3972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973 (exit $ac_status); }; }; then
3976 echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3981 ac_cv_header_stdc=no
3983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3991 if test $ac_cv_header_stdc = yes; then
3993 cat >>confdefs.h <<\_ACEOF
3994 #define STDC_HEADERS 1
3999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010 inttypes.h stdint.h unistd.h
4012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016 echo $ECHO_N "(cached) $ECHO_C" >&6
4018 cat >conftest.$ac_ext <<_ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024 $ac_includes_default
4026 #include <$ac_header>
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035 (eval "$ac_compile") 2>conftest.er1
4037 grep -v '^ *+' conftest.er1 >conftest.err
4039 cat conftest.err >&5
4040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041 (exit $ac_status); } &&
4042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043 { (case "(($ac_try" in
4044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045 *) ac_try_echo=$ac_try;;
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048 (eval "$ac_try") 2>&5
4050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051 (exit $ac_status); }; } &&
4052 { ac_try='test -s conftest.$ac_objext'
4053 { (case "(($ac_try" in
4054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055 *) ac_try_echo=$ac_try;;
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058 (eval "$ac_try") 2>&5
4060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061 (exit $ac_status); }; }; then
4062 eval "$as_ac_Header=yes"
4064 echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4067 eval "$as_ac_Header=no"
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4072 ac_res=`eval echo '${'$as_ac_Header'}'`
4073 { echo "$as_me:$LINENO: result: $ac_res" >&5
4074 echo "${ECHO_T}$ac_res" >&6; }
4075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4076 cat >>confdefs.h <<_ACEOF
4077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4085 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087 if test "${ac_cv_c_bigendian+set}" = set; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4090 # See if sys/param.h defines the BYTE_ORDER macro.
4091 cat >conftest.$ac_ext <<_ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #include <sys/types.h>
4098 #include <sys/param.h>
4103 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115 *) ac_try_echo=$ac_try;;
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118 (eval "$ac_compile") 2>conftest.er1
4120 grep -v '^ *+' conftest.er1 >conftest.err
4122 cat conftest.err >&5
4123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } &&
4125 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126 { (case "(($ac_try" in
4127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128 *) ac_try_echo=$ac_try;;
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131 (eval "$ac_try") 2>&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; } &&
4135 { ac_try='test -s conftest.$ac_objext'
4136 { (case "(($ac_try" in
4137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138 *) ac_try_echo=$ac_try;;
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141 (eval "$ac_try") 2>&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); }; }; then
4145 # It does; now see whether it defined to BIG_ENDIAN or not.
4146 cat >conftest.$ac_ext <<_ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h. */
4152 #include <sys/types.h>
4153 #include <sys/param.h>
4158 #if BYTE_ORDER != BIG_ENDIAN
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170 *) ac_try_echo=$ac_try;;
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173 (eval "$ac_compile") 2>conftest.er1
4175 grep -v '^ *+' conftest.er1 >conftest.err
4177 cat conftest.err >&5
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); } &&
4180 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181 { (case "(($ac_try" in
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_try") 2>&5
4188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189 (exit $ac_status); }; } &&
4190 { ac_try='test -s conftest.$ac_objext'
4191 { (case "(($ac_try" in
4192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193 *) ac_try_echo=$ac_try;;
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196 (eval "$ac_try") 2>&5
4198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199 (exit $ac_status); }; }; then
4200 ac_cv_c_bigendian=yes
4202 echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 ac_cv_c_bigendian=no
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4210 echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4213 # It does not; compile a test program.
4214 if test "$cross_compiling" = yes; then
4215 # try to guess the endianness by grepping values into an object file
4216 ac_cv_c_bigendian=unknown
4217 cat >conftest.$ac_ext <<_ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h. */
4223 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4232 _ascii (); _ebcdic ();
4237 rm -f conftest.$ac_objext
4238 if { (ac_try="$ac_compile"
4240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241 *) ac_try_echo=$ac_try;;
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244 (eval "$ac_compile") 2>conftest.er1
4246 grep -v '^ *+' conftest.er1 >conftest.err
4248 cat conftest.err >&5
4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250 (exit $ac_status); } &&
4251 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252 { (case "(($ac_try" in
4253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254 *) ac_try_echo=$ac_try;;
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257 (eval "$ac_try") 2>&5
4259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260 (exit $ac_status); }; } &&
4261 { ac_try='test -s conftest.$ac_objext'
4262 { (case "(($ac_try" in
4263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264 *) ac_try_echo=$ac_try;;
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267 (eval "$ac_try") 2>&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); }; }; then
4271 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4272 ac_cv_c_bigendian=yes
4274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275 if test "$ac_cv_c_bigendian" = unknown; then
4276 ac_cv_c_bigendian=no
4278 # finding both strings is unlikely to happen, but who knows?
4279 ac_cv_c_bigendian=unknown
4283 echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4291 cat >conftest.$ac_ext <<_ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4297 $ac_includes_default
4302 /* Are we little or big endian? From Harbison&Steele. */
4306 char c[sizeof (long int)];
4309 return u.c[sizeof (long int) - 1] == 1;
4315 rm -f conftest$ac_exeext
4316 if { (ac_try="$ac_link"
4318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319 *) ac_try_echo=$ac_try;;
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322 (eval "$ac_link") 2>&5
4324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326 { (case "(($ac_try" in
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331 (eval "$ac_try") 2>&5
4333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334 (exit $ac_status); }; }; then
4335 ac_cv_c_bigendian=no
4337 echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4342 ac_cv_c_bigendian=yes
4344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354 case $ac_cv_c_bigendian in
4362 { { echo "$as_me:$LINENO: error: unknown endianness
4363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364 echo "$as_me: error: unknown endianness
4365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366 { (exit 1); exit 1; }; } ;;
4370 if test "$cross_compiling" = yes; then
4371 LLVM_CROSS_COMPILING=1
4374 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376 if test "${ac_cv_build_exeext+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380 ac_cv_build_exeext=.exe
4382 ac_build_prefix=${build_alias}-
4384 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385 set dummy ${ac_build_prefix}gcc; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 if test -n "$BUILD_CC"; then
4392 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 test -z "$as_dir" && as_dir=.
4399 for ac_exec_ext in '' $ac_executable_extensions; do
4400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4411 BUILD_CC=$ac_cv_prog_BUILD_CC
4412 if test -n "$BUILD_CC"; then
4413 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414 echo "${ECHO_T}$BUILD_CC" >&6; }
4416 { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4421 if test -z "$BUILD_CC"; then
4422 # Extract the first word of "gcc", so it can be a program name with args.
4423 set dummy gcc; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427 echo $ECHO_N "(cached) $ECHO_C" >&6
4429 if test -n "$BUILD_CC"; then
4430 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 test -z "$as_dir" && as_dir=.
4437 for ac_exec_ext in '' $ac_executable_extensions; do
4438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439 ac_cv_prog_BUILD_CC="gcc"
4440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4449 BUILD_CC=$ac_cv_prog_BUILD_CC
4450 if test -n "$BUILD_CC"; then
4451 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452 echo "${ECHO_T}$BUILD_CC" >&6; }
4454 { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4459 if test -z "$BUILD_CC"; then
4460 # Extract the first word of "cc", so it can be a program name with args.
4461 set dummy cc; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465 echo $ECHO_N "(cached) $ECHO_C" >&6
4467 if test -n "$BUILD_CC"; then
4468 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479 ac_prog_rejected=yes
4482 ac_cv_prog_BUILD_CC="cc"
4483 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4490 if test $ac_prog_rejected = yes; then
4491 # We found a bogon in the path, so make sure we never use it.
4492 set dummy $ac_cv_prog_BUILD_CC
4494 if test $# != 0; then
4495 # We chose a different compiler from the bogus one.
4496 # However, it has the same basename, so the bogon will be chosen
4497 # first if we set BUILD_CC to just the basename; use the full file name.
4499 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4504 BUILD_CC=$ac_cv_prog_BUILD_CC
4505 if test -n "$BUILD_CC"; then
4506 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507 echo "${ECHO_T}$BUILD_CC" >&6; }
4509 { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4516 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518 { (exit 1); exit 1; }; }
4519 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4521 echo 'int main () { return 0; }' > conftest.$ac_ext
4523 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4524 (eval $ac_build_link) 2>&5
4526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527 (exit $ac_status); }; then
4528 for file in conftest.*; do
4530 *.c | *.o | *.obj | *.dSYM) ;;
4531 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4535 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537 { (exit 1); exit 1; }; }
4540 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4545 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4546 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4548 ac_build_exeext=$BUILD_EXEEXT
4550 ac_build_prefix=${build_alias}-
4551 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552 set dummy ${ac_build_prefix}g++; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 if test -n "$BUILD_CXX"; then
4559 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 test -z "$as_dir" && as_dir=.
4566 for ac_exec_ext in '' $ac_executable_extensions; do
4567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4568 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4569 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579 if test -n "$BUILD_CXX"; then
4580 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581 echo "${ECHO_T}$BUILD_CXX" >&6; }
4583 { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4588 if test -z "$BUILD_CXX"; then
4589 # Extract the first word of "g++", so it can be a program name with args.
4590 set dummy g++; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594 echo $ECHO_N "(cached) $ECHO_C" >&6
4596 if test -n "$BUILD_CXX"; then
4597 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4606 ac_cv_prog_BUILD_CXX="g++"
4607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4616 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617 if test -n "$BUILD_CXX"; then
4618 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619 echo "${ECHO_T}$BUILD_CXX" >&6; }
4621 { echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6; }
4626 if test -z "$BUILD_CXX"; then
4627 # Extract the first word of "c++", so it can be a program name with args.
4628 set dummy c++; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632 echo $ECHO_N "(cached) $ECHO_C" >&6
4634 if test -n "$BUILD_CXX"; then
4635 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 test -z "$as_dir" && as_dir=.
4643 for ac_exec_ext in '' $ac_executable_extensions; do
4644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646 ac_prog_rejected=yes
4649 ac_cv_prog_BUILD_CXX="c++"
4650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4657 if test $ac_prog_rejected = yes; then
4658 # We found a bogon in the path, so make sure we never use it.
4659 set dummy $ac_cv_prog_BUILD_CXX
4661 if test $# != 0; then
4662 # We chose a different compiler from the bogus one.
4663 # However, it has the same basename, so the bogon will be chosen
4664 # first if we set BUILD_CXX to just the basename; use the full file name.
4666 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4671 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672 if test -n "$BUILD_CXX"; then
4673 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674 echo "${ECHO_T}$BUILD_CXX" >&6; }
4676 { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4684 LLVM_CROSS_COMPILING=0
4688 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4699 # Check whether --enable-optimized was given.
4700 if test "${enable_optimized+set}" = set; then
4701 enableval=$enable_optimized;
4706 if test ${enableval} = "no" ; then
4710 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4714 # Check whether --enable-profiling was given.
4715 if test "${enable_profiling+set}" = set; then
4716 enableval=$enable_profiling;
4721 if test ${enableval} = "no" ; then
4725 ENABLE_PROFILING=ENABLE_PROFILING=1
4729 # Check whether --enable-assertions was given.
4730 if test "${enable_assertions+set}" = set; then
4731 enableval=$enable_assertions;
4736 if test ${enableval} = "yes" ; then
4740 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4744 # Check whether --enable-expensive-checks was given.
4745 if test "${enable_expensive_checks+set}" = set; then
4746 enableval=$enable_expensive_checks;
4751 if test ${enableval} = "yes" ; then
4752 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4754 EXPENSIVE_CHECKS=yes
4757 ENABLE_EXPENSIVE_CHECKS=
4763 # Check whether --enable-debug-runtime was given.
4764 if test "${enable_debug_runtime+set}" = set; then
4765 enableval=$enable_debug_runtime;
4770 if test ${enableval} = "no" ; then
4774 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4778 # Check whether --enable-debug-symbols was given.
4779 if test "${enable_debug_symbols+set}" = set; then
4780 enableval=$enable_debug_symbols;
4785 if test ${enableval} = "no" ; then
4789 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4793 # Check whether --enable-jit was given.
4794 if test "${enable_jit+set}" = set; then
4795 enableval=$enable_jit;
4800 if test ${enableval} = "no"
4805 case "$llvm_cv_target_arch" in
4806 x86) TARGET_HAS_JIT=1
4808 Sparc) TARGET_HAS_JIT=0
4810 PowerPC) TARGET_HAS_JIT=1
4812 x86_64) TARGET_HAS_JIT=1
4814 Alpha) TARGET_HAS_JIT=1
4816 ARM) TARGET_HAS_JIT=1
4818 Mips) TARGET_HAS_JIT=0
4820 PIC16) TARGET_HAS_JIT=0
4822 XCore) TARGET_HAS_JIT=0
4824 MSP430) TARGET_HAS_JIT=0
4826 SystemZ) TARGET_HAS_JIT=0
4828 Blackfin) TARGET_HAS_JIT=0
4830 MBlaze) TARGET_HAS_JIT=0
4837 # Check whether --enable-doxygen was given.
4838 if test "${enable_doxygen+set}" = set; then
4839 enableval=$enable_doxygen;
4844 case "$enableval" in
4845 yes) ENABLE_DOXYGEN=1
4847 no) ENABLE_DOXYGEN=0
4849 default) ENABLE_DOXYGEN=0
4851 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4852 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4853 { (exit 1); exit 1; }; } ;;
4856 # Check whether --enable-threads was given.
4857 if test "${enable_threads+set}" = set; then
4858 enableval=$enable_threads;
4863 case "$enableval" in
4864 yes) ENABLE_THREADS=1
4866 no) ENABLE_THREADS=0
4868 default) ENABLE_THREADS=1
4870 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4872 { (exit 1); exit 1; }; } ;;
4875 cat >>confdefs.h <<_ACEOF
4876 #define ENABLE_THREADS $ENABLE_THREADS
4880 # Check whether --enable-pic was given.
4881 if test "${enable_pic+set}" = set; then
4882 enableval=$enable_pic;
4887 case "$enableval" in
4892 default) ENABLE_PIC=1
4894 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4895 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4896 { (exit 1); exit 1; }; } ;;
4899 cat >>confdefs.h <<_ACEOF
4900 #define ENABLE_PIC $ENABLE_PIC
4904 # Check whether --enable-shared was given.
4905 if test "${enable_shared+set}" = set; then
4906 enableval=$enable_shared;
4911 case "$enableval" in
4912 yes) ENABLE_SHARED=1
4916 default) ENABLE_SHARED=0
4918 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4920 { (exit 1); exit 1; }; } ;;
4924 # Check whether --enable-targets was given.
4925 if test "${enable_targets+set}" = set; then
4926 enableval=$enable_targets;
4931 if test "$enableval" = host-only ; then
4934 case "$enableval" in
4935 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4936 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4938 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4939 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4940 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4941 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4942 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4943 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4944 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4945 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4946 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4947 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4948 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4949 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4950 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4951 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4952 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4953 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4954 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4955 host) case "$llvm_cv_target_arch" in
4956 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4957 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4958 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4959 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4960 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4961 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4962 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4963 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4964 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4965 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4966 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4967 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4968 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4969 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4970 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4971 echo "$as_me: error: Can not set target to build" >&2;}
4972 { (exit 1); exit 1; }; } ;;
4974 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4975 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4976 { (exit 1); exit 1; }; } ;;
4981 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4984 # Determine whether we are building LLVM support for the native architecture.
4985 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4986 for a_target in $TARGETS_TO_BUILD; do
4987 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4988 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4990 cat >>confdefs.h <<_ACEOF
4991 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4997 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4998 # target feature def files.
4999 LLVM_ENUM_TARGETS=""
5000 LLVM_ENUM_ASM_PRINTERS=""
5001 LLVM_ENUM_ASM_PARSERS=""
5002 LLVM_ENUM_DISASSEMBLERS=""
5003 for target_to_build in $TARGETS_TO_BUILD; do
5004 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5005 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5006 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5008 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5009 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5011 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5012 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5020 # Check whether --enable-cbe-printf-a was given.
5021 if test "${enable_cbe_printf_a+set}" = set; then
5022 enableval=$enable_cbe_printf_a;
5027 case "$enableval" in
5028 yes) ENABLE_CBE_PRINTF_A=1
5030 no) ENABLE_CBE_PRINTF_A=0
5032 default) ENABLE_CBE_PRINTF_A=1
5034 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5035 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5036 { (exit 1); exit 1; }; } ;;
5039 cat >>confdefs.h <<_ACEOF
5040 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5045 # Check whether --with-llvmgccdir was given.
5046 if test "${with_llvmgccdir+set}" = set; then
5047 withval=$with_llvmgccdir;
5053 default) WITH_LLVMGCCDIR=default ;;
5054 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5055 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5056 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5057 { (exit 1); exit 1; }; } ;;
5061 # Check whether --with-llvmgcc was given.
5062 if test "${with_llvmgcc+set}" = set; then
5063 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5069 # Check whether --with-llvmgxx was given.
5070 if test "${with_llvmgxx+set}" = set; then
5071 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5076 if test -n "$LLVMGCC"; then
5077 LLVMGCCCOMMAND="$LLVMGCC"
5080 if test -n "$LLVMGXX"; then
5081 LLVMGXXCOMMAND="$LLVMGXX"
5084 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5085 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5086 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5087 { (exit 1); exit 1; }; };
5090 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5091 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5092 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5093 { (exit 1); exit 1; }; };
5097 # Check whether --with-clang was given.
5098 if test "${with_clang+set}" = set; then
5099 withval=$with_clang;
5106 # Check whether --with-built-clang was given.
5107 if test "${with_built_clang+set}" = set; then
5108 withval=$with_built_clang;
5110 with_built_clang=check
5114 { echo "$as_me:$LINENO: checking clang compiler" >&5
5115 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5118 if test "$with_clang" != "default"; then
5119 WITH_CLANGPATH="$with_clang"
5120 if ! test -x "$WITH_CLANGPATH"; then
5121 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5122 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5123 { (exit 1); exit 1; }; }
5125 elif test "$with_built_clang" = "yes"; then
5127 elif test "$with_built_clang" = "no"; then
5130 if test "$with_built_clang" != "check"; then
5131 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5132 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5133 { (exit 1); exit 1; }; }
5136 if test -f ${srcdir}/tools/clang/README.txt; then
5141 if ! test -z "$WITH_CLANGPATH"; then
5142 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5143 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5144 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5145 elif test "$WITH_BUILT_CLANG" = "1"; then
5146 { echo "$as_me:$LINENO: result: built" >&5
5147 echo "${ECHO_T}built" >&6; }
5149 { echo "$as_me:$LINENO: result: none" >&5
5150 echo "${ECHO_T}none" >&6; }
5152 CLANGPATH=$WITH_CLANGPATH
5154 CLANGXXPATH=$WITH_CLANGXXPATH
5156 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5160 # Check whether --with-optimize-option was given.
5161 if test "${with_optimize_option+set}" = set; then
5162 withval=$with_optimize_option;
5167 { echo "$as_me:$LINENO: checking optimization flags" >&5
5168 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5171 case "$llvm_cv_os_type" in
5172 MingW) optimize_option=-O2 ;;
5173 *) optimize_option=-O3 ;;
5175 *) optimize_option="$withval" ;;
5177 OPTIMIZE_OPTION=$optimize_option
5179 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5180 echo "${ECHO_T}$optimize_option" >&6; }
5183 # Check whether --with-extra-options was given.
5184 if test "${with_extra_options+set}" = set; then
5185 withval=$with_extra_options;
5191 default) EXTRA_OPTIONS= ;;
5192 *) EXTRA_OPTIONS=$withval ;;
5194 EXTRA_OPTIONS=$EXTRA_OPTIONS
5197 # Check whether --enable-bindings was given.
5198 if test "${enable_bindings+set}" = set; then
5199 enableval=$enable_bindings;
5204 BINDINGS_TO_BUILD=""
5205 case "$enableval" in
5206 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5207 all ) BINDINGS_TO_BUILD="ocaml" ;;
5208 none | no) BINDINGS_TO_BUILD="" ;;
5209 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5210 case "$a_binding" in
5211 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5212 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5213 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5214 { (exit 1); exit 1; }; } ;;
5221 # Check whether --with-ocaml-libdir was given.
5222 if test "${with_ocaml_libdir+set}" = set; then
5223 withval=$with_ocaml_libdir;
5229 auto) with_ocaml_libdir="$withval" ;;
5230 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5231 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5232 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5233 { (exit 1); exit 1; }; } ;;
5237 # Check whether --with-c-include-dirs was given.
5238 if test "${with_c_include_dirs+set}" = set; then
5239 withval=$with_c_include_dirs;
5245 cat >>confdefs.h <<_ACEOF
5246 #define C_INCLUDE_DIRS "$withval"
5251 # Check whether --with-cxx-include-root was given.
5252 if test "${with_cxx_include_root+set}" = set; then
5253 withval=$with_cxx_include_root;
5259 cat >>confdefs.h <<_ACEOF
5260 #define CXX_INCLUDE_ROOT "$withval"
5265 # Check whether --with-cxx-include-arch was given.
5266 if test "${with_cxx_include_arch+set}" = set; then
5267 withval=$with_cxx_include_arch;
5273 cat >>confdefs.h <<_ACEOF
5274 #define CXX_INCLUDE_ARCH "$withval"
5279 # Check whether --with-cxx-include-32bit-dir was given.
5280 if test "${with_cxx_include_32bit_dir+set}" = set; then
5281 withval=$with_cxx_include_32bit_dir;
5287 cat >>confdefs.h <<_ACEOF
5288 #define CXX_INCLUDE_32BIT_DIR "$withval"
5293 # Check whether --with-cxx-include-64bit-dir was given.
5294 if test "${with_cxx_include_64bit_dir+set}" = set; then
5295 withval=$with_cxx_include_64bit_dir;
5301 cat >>confdefs.h <<_ACEOF
5302 #define CXX_INCLUDE_64BIT_DIR "$withval"
5307 # Check whether --with-binutils-include was given.
5308 if test "${with_binutils_include+set}" = set; then
5309 withval=$with_binutils_include;
5315 default) WITH_BINUTILS_INCDIR=default ;;
5316 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5317 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5318 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5319 { (exit 1); exit 1; }; } ;;
5321 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5322 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5324 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5325 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5326 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5327 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5328 { (exit 1); exit 1; }; };
5332 # Check whether --enable-libffi was given.
5333 if test "${enable_libffi+set}" = set; then
5334 enableval=$enable_libffi; case "$enableval" in
5335 yes) llvm_cv_enable_libffi="yes" ;;
5336 no) llvm_cv_enable_libffi="no" ;;
5337 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5338 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5339 { (exit 1); exit 1; }; } ;;
5342 llvm_cv_enable_libffi=no
5346 if test "$llvm_cv_os_type" = "Win32" ; then
5352 # Check whether --enable-llvmc-dynamic was given.
5353 if test "${enable_llvmc_dynamic+set}" = set; then
5354 enableval=$enable_llvmc_dynamic;
5356 enableval=$llvmc_dynamic
5359 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5360 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5363 ENABLE_LLVMC_DYNAMIC=
5367 # Check whether --enable-llvmc-dynamic-plugins was given.
5368 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5369 enableval=$enable_llvmc_dynamic_plugins;
5374 if test ${enableval} = "yes" ; then
5375 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5378 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5384 ac_cpp='$CPP $CPPFLAGS'
5385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5388 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5389 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5390 # On Suns, sometimes $CPP names a directory.
5391 if test -n "$CPP" && test -d "$CPP"; then
5394 if test -z "$CPP"; then
5395 if test "${ac_cv_prog_CPP+set}" = set; then
5396 echo $ECHO_N "(cached) $ECHO_C" >&6
5398 # Double quotes because CPP needs to be expanded
5399 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5402 for ac_c_preproc_warn_flag in '' yes
5404 # Use a header file that comes with gcc, so configuring glibc
5405 # with a fresh cross-compiler works.
5406 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5407 # <limits.h> exists even on freestanding compilers.
5408 # On the NeXT, cc -E runs the code through the compiler's parser,
5409 # not just through cpp. "Syntax error" is here to catch this case.
5410 cat >conftest.$ac_ext <<_ACEOF
5413 cat confdefs.h >>conftest.$ac_ext
5414 cat >>conftest.$ac_ext <<_ACEOF
5415 /* end confdefs.h. */
5417 # include <limits.h>
5419 # include <assert.h>
5423 if { (ac_try="$ac_cpp conftest.$ac_ext"
5425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5426 *) ac_try_echo=$ac_try;;
5428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5431 grep -v '^ *+' conftest.er1 >conftest.err
5433 cat conftest.err >&5
5434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5435 (exit $ac_status); } >/dev/null; then
5436 if test -s conftest.err; then
5437 ac_cpp_err=$ac_c_preproc_warn_flag
5438 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5445 if test -z "$ac_cpp_err"; then
5448 echo "$as_me: failed program was:" >&5
5449 sed 's/^/| /' conftest.$ac_ext >&5
5451 # Broken: fails on valid input.
5455 rm -f conftest.err conftest.$ac_ext
5457 # OK, works on sane cases. Now check whether nonexistent headers
5458 # can be detected and how.
5459 cat >conftest.$ac_ext <<_ACEOF
5462 cat confdefs.h >>conftest.$ac_ext
5463 cat >>conftest.$ac_ext <<_ACEOF
5464 /* end confdefs.h. */
5465 #include <ac_nonexistent.h>
5467 if { (ac_try="$ac_cpp conftest.$ac_ext"
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5475 grep -v '^ *+' conftest.er1 >conftest.err
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } >/dev/null; then
5480 if test -s conftest.err; then
5481 ac_cpp_err=$ac_c_preproc_warn_flag
5482 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5489 if test -z "$ac_cpp_err"; then
5490 # Broken: success on invalid input.
5493 echo "$as_me: failed program was:" >&5
5494 sed 's/^/| /' conftest.$ac_ext >&5
5496 # Passes both tests.
5501 rm -f conftest.err conftest.$ac_ext
5504 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5505 rm -f conftest.err conftest.$ac_ext
5506 if $ac_preproc_ok; then
5518 { echo "$as_me:$LINENO: result: $CPP" >&5
5519 echo "${ECHO_T}$CPP" >&6; }
5521 for ac_c_preproc_warn_flag in '' yes
5523 # Use a header file that comes with gcc, so configuring glibc
5524 # with a fresh cross-compiler works.
5525 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5526 # <limits.h> exists even on freestanding compilers.
5527 # On the NeXT, cc -E runs the code through the compiler's parser,
5528 # not just through cpp. "Syntax error" is here to catch this case.
5529 cat >conftest.$ac_ext <<_ACEOF
5532 cat confdefs.h >>conftest.$ac_ext
5533 cat >>conftest.$ac_ext <<_ACEOF
5534 /* end confdefs.h. */
5536 # include <limits.h>
5538 # include <assert.h>
5542 if { (ac_try="$ac_cpp conftest.$ac_ext"
5544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5545 *) ac_try_echo=$ac_try;;
5547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5548 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5550 grep -v '^ *+' conftest.er1 >conftest.err
5552 cat conftest.err >&5
5553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5554 (exit $ac_status); } >/dev/null; then
5555 if test -s conftest.err; then
5556 ac_cpp_err=$ac_c_preproc_warn_flag
5557 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5564 if test -z "$ac_cpp_err"; then
5567 echo "$as_me: failed program was:" >&5
5568 sed 's/^/| /' conftest.$ac_ext >&5
5570 # Broken: fails on valid input.
5574 rm -f conftest.err conftest.$ac_ext
5576 # OK, works on sane cases. Now check whether nonexistent headers
5577 # can be detected and how.
5578 cat >conftest.$ac_ext <<_ACEOF
5581 cat confdefs.h >>conftest.$ac_ext
5582 cat >>conftest.$ac_ext <<_ACEOF
5583 /* end confdefs.h. */
5584 #include <ac_nonexistent.h>
5586 if { (ac_try="$ac_cpp conftest.$ac_ext"
5588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5589 *) ac_try_echo=$ac_try;;
5591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5594 grep -v '^ *+' conftest.er1 >conftest.err
5596 cat conftest.err >&5
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); } >/dev/null; then
5599 if test -s conftest.err; then
5600 ac_cpp_err=$ac_c_preproc_warn_flag
5601 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5608 if test -z "$ac_cpp_err"; then
5609 # Broken: success on invalid input.
5612 echo "$as_me: failed program was:" >&5
5613 sed 's/^/| /' conftest.$ac_ext >&5
5615 # Passes both tests.
5620 rm -f conftest.err conftest.$ac_ext
5623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5624 rm -f conftest.err conftest.$ac_ext
5625 if $ac_preproc_ok; then
5628 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5629 See \`config.log' for more details." >&5
5630 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5631 See \`config.log' for more details." >&2;}
5632 { (exit 1); exit 1; }; }
5636 ac_cpp='$CPP $CPPFLAGS'
5637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5642 ac_cpp='$CPP $CPPFLAGS'
5643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5646 if test -n "$ac_tool_prefix"; then
5649 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5650 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5651 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5653 if test "${ac_cv_prog_CC+set}" = set; then
5654 echo $ECHO_N "(cached) $ECHO_C" >&6
5656 if test -n "$CC"; then
5657 ac_cv_prog_CC="$CC" # Let the user override the test.
5659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 test -z "$as_dir" && as_dir=.
5664 for ac_exec_ext in '' $ac_executable_extensions; do
5665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5666 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5667 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677 if test -n "$CC"; then
5678 { echo "$as_me:$LINENO: result: $CC" >&5
5679 echo "${ECHO_T}$CC" >&6; }
5681 { echo "$as_me:$LINENO: result: no" >&5
5682 echo "${ECHO_T}no" >&6; }
5686 test -n "$CC" && break
5689 if test -z "$CC"; then
5693 # Extract the first word of "$ac_prog", so it can be a program name with args.
5694 set dummy $ac_prog; ac_word=$2
5695 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5697 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5698 echo $ECHO_N "(cached) $ECHO_C" >&6
5700 if test -n "$ac_ct_CC"; then
5701 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 test -z "$as_dir" && as_dir=.
5708 for ac_exec_ext in '' $ac_executable_extensions; do
5709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5710 ac_cv_prog_ac_ct_CC="$ac_prog"
5711 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5720 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5721 if test -n "$ac_ct_CC"; then
5722 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5723 echo "${ECHO_T}$ac_ct_CC" >&6; }
5725 { echo "$as_me:$LINENO: result: no" >&5
5726 echo "${ECHO_T}no" >&6; }
5730 test -n "$ac_ct_CC" && break
5733 if test "x$ac_ct_CC" = x; then
5736 case $cross_compiling:$ac_tool_warned in
5738 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5739 whose name does not start with the host triplet. If you think this
5740 configuration is useful to you, please write to autoconf@gnu.org." >&5
5741 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5742 whose name does not start with the host triplet. If you think this
5743 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5744 ac_tool_warned=yes ;;
5751 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5752 See \`config.log' for more details." >&5
5753 echo "$as_me: error: no acceptable C compiler found in \$PATH
5754 See \`config.log' for more details." >&2;}
5755 { (exit 1); exit 1; }; }
5757 # Provide some information about the compiler.
5758 echo "$as_me:$LINENO: checking for C compiler version" >&5
5759 ac_compiler=`set X $ac_compile; echo $2`
5760 { (ac_try="$ac_compiler --version >&5"
5762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_compiler --version >&5") 2>&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); }
5770 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
5778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5779 (exit $ac_status); }
5780 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
5788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); }
5791 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5792 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5793 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5794 echo $ECHO_N "(cached) $ECHO_C" >&6
5796 cat >conftest.$ac_ext <<_ACEOF
5799 cat confdefs.h >>conftest.$ac_ext
5800 cat >>conftest.$ac_ext <<_ACEOF
5801 /* end confdefs.h. */
5814 rm -f conftest.$ac_objext
5815 if { (ac_try="$ac_compile"
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5821 (eval "$ac_compile") 2>conftest.er1
5823 grep -v '^ *+' conftest.er1 >conftest.err
5825 cat conftest.err >&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); } &&
5828 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5829 { (case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_try") 2>&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; } &&
5838 { ac_try='test -s conftest.$ac_objext'
5839 { (case "(($ac_try" in
5840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5841 *) ac_try_echo=$ac_try;;
5843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5844 (eval "$ac_try") 2>&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); }; }; then
5850 echo "$as_me: failed program was:" >&5
5851 sed 's/^/| /' conftest.$ac_ext >&5
5856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5857 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5860 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5861 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5862 GCC=`test $ac_compiler_gnu = yes && echo yes`
5863 ac_test_CFLAGS=${CFLAGS+set}
5864 ac_save_CFLAGS=$CFLAGS
5865 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5866 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5867 if test "${ac_cv_prog_cc_g+set}" = set; then
5868 echo $ECHO_N "(cached) $ECHO_C" >&6
5870 ac_save_c_werror_flag=$ac_c_werror_flag
5871 ac_c_werror_flag=yes
5874 cat >conftest.$ac_ext <<_ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5889 rm -f conftest.$ac_objext
5890 if { (ac_try="$ac_compile"
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compile") 2>conftest.er1
5898 grep -v '^ *+' conftest.er1 >conftest.err
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } &&
5903 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5904 { (case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_try") 2>&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); }; } &&
5913 { ac_try='test -s conftest.$ac_objext'
5914 { (case "(($ac_try" in
5915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5916 *) ac_try_echo=$ac_try;;
5918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5919 (eval "$ac_try") 2>&5
5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5922 (exit $ac_status); }; }; then
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5929 cat >conftest.$ac_ext <<_ACEOF
5932 cat confdefs.h >>conftest.$ac_ext
5933 cat >>conftest.$ac_ext <<_ACEOF
5934 /* end confdefs.h. */
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5948 *) ac_try_echo=$ac_try;;
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5953 grep -v '^ *+' conftest.er1 >conftest.err
5955 cat conftest.err >&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } &&
5958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5959 { (case "(($ac_try" in
5960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5961 *) ac_try_echo=$ac_try;;
5963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5964 (eval "$ac_try") 2>&5
5966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5967 (exit $ac_status); }; } &&
5968 { ac_try='test -s conftest.$ac_objext'
5969 { (case "(($ac_try" in
5970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5971 *) ac_try_echo=$ac_try;;
5973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5974 (eval "$ac_try") 2>&5
5976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5977 (exit $ac_status); }; }; then
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.$ac_ext >&5
5983 ac_c_werror_flag=$ac_save_c_werror_flag
5985 cat >conftest.$ac_ext <<_ACEOF
5988 cat confdefs.h >>conftest.$ac_ext
5989 cat >>conftest.$ac_ext <<_ACEOF
5990 /* end confdefs.h. */
6000 rm -f conftest.$ac_objext
6001 if { (ac_try="$ac_compile"
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_compile") 2>conftest.er1
6009 grep -v '^ *+' conftest.er1 >conftest.err
6011 cat conftest.err >&5
6012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6013 (exit $ac_status); } &&
6014 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6015 { (case "(($ac_try" in
6016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6017 *) ac_try_echo=$ac_try;;
6019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6020 (eval "$ac_try") 2>&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; } &&
6024 { ac_try='test -s conftest.$ac_objext'
6025 { (case "(($ac_try" in
6026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6027 *) ac_try_echo=$ac_try;;
6029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6030 (eval "$ac_try") 2>&5
6032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6033 (exit $ac_status); }; }; then
6036 echo "$as_me: failed program was:" >&5
6037 sed 's/^/| /' conftest.$ac_ext >&5
6042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6049 ac_c_werror_flag=$ac_save_c_werror_flag
6051 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6052 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6053 if test "$ac_test_CFLAGS" = set; then
6054 CFLAGS=$ac_save_CFLAGS
6055 elif test $ac_cv_prog_cc_g = yes; then
6056 if test "$GCC" = yes; then
6062 if test "$GCC" = yes; then
6068 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6069 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6070 if test "${ac_cv_prog_cc_c89+set}" = set; then
6071 echo $ECHO_N "(cached) $ECHO_C" >&6
6073 ac_cv_prog_cc_c89=no
6075 cat >conftest.$ac_ext <<_ACEOF
6078 cat confdefs.h >>conftest.$ac_ext
6079 cat >>conftest.$ac_ext <<_ACEOF
6080 /* end confdefs.h. */
6083 #include <sys/types.h>
6084 #include <sys/stat.h>
6085 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6086 struct buf { int x; };
6087 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6088 static char *e (p, i)
6094 static char *f (char * (*g) (char **, int), char **p, ...)
6099 s = g (p, va_arg (v,int));
6104 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6105 function prototypes and stuff, but not '\xHH' hex character constants.
6106 These don't provoke an error unfortunately, instead are silently treated
6107 as 'x'. The following induces an error, until -std is added to get
6108 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6109 array size at least. It's necessary to write '\x00'==0 to get something
6110 that's true only with -std. */
6111 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6113 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6114 inside strings and character constants. */
6116 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6118 int test (int i, double x);
6119 struct s1 {int (*f) (int a);};
6120 struct s2 {int (*f) (double a);};
6121 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6127 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6132 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6133 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6135 CC="$ac_save_CC $ac_arg"
6136 rm -f conftest.$ac_objext
6137 if { (ac_try="$ac_compile"
6139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6140 *) ac_try_echo=$ac_try;;
6142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6143 (eval "$ac_compile") 2>conftest.er1
6145 grep -v '^ *+' conftest.er1 >conftest.err
6147 cat conftest.err >&5
6148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6149 (exit $ac_status); } &&
6150 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6151 { (case "(($ac_try" in
6152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6153 *) ac_try_echo=$ac_try;;
6155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6156 (eval "$ac_try") 2>&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; } &&
6160 { ac_try='test -s conftest.$ac_objext'
6161 { (case "(($ac_try" in
6162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6163 *) ac_try_echo=$ac_try;;
6165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6166 (eval "$ac_try") 2>&5
6168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6169 (exit $ac_status); }; }; then
6170 ac_cv_prog_cc_c89=$ac_arg
6172 echo "$as_me: failed program was:" >&5
6173 sed 's/^/| /' conftest.$ac_ext >&5
6178 rm -f core conftest.err conftest.$ac_objext
6179 test "x$ac_cv_prog_cc_c89" != "xno" && break
6181 rm -f conftest.$ac_ext
6186 case "x$ac_cv_prog_cc_c89" in
6188 { echo "$as_me:$LINENO: result: none needed" >&5
6189 echo "${ECHO_T}none needed" >&6; } ;;
6191 { echo "$as_me:$LINENO: result: unsupported" >&5
6192 echo "${ECHO_T}unsupported" >&6; } ;;
6194 CC="$CC $ac_cv_prog_cc_c89"
6195 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6196 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6201 ac_cpp='$CPP $CPPFLAGS'
6202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6207 ac_cpp='$CXXCPP $CPPFLAGS'
6208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6211 if test -z "$CXX"; then
6212 if test -n "$CCC"; then
6215 if test -n "$ac_tool_prefix"; then
6218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6220 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6221 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6222 if test "${ac_cv_prog_CXX+set}" = set; then
6223 echo $ECHO_N "(cached) $ECHO_C" >&6
6225 if test -n "$CXX"; then
6226 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232 test -z "$as_dir" && as_dir=.
6233 for ac_exec_ext in '' $ac_executable_extensions; do
6234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6235 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6236 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 if test -n "$CXX"; then
6247 { echo "$as_me:$LINENO: result: $CXX" >&5
6248 echo "${ECHO_T}$CXX" >&6; }
6250 { echo "$as_me:$LINENO: result: no" >&5
6251 echo "${ECHO_T}no" >&6; }
6255 test -n "$CXX" && break
6258 if test -z "$CXX"; then
6262 # Extract the first word of "$ac_prog", so it can be a program name with args.
6263 set dummy $ac_prog; ac_word=$2
6264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6266 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6269 if test -n "$ac_ct_CXX"; then
6270 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6276 test -z "$as_dir" && as_dir=.
6277 for ac_exec_ext in '' $ac_executable_extensions; do
6278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6279 ac_cv_prog_ac_ct_CXX="$ac_prog"
6280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6290 if test -n "$ac_ct_CXX"; then
6291 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6292 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6294 { echo "$as_me:$LINENO: result: no" >&5
6295 echo "${ECHO_T}no" >&6; }
6299 test -n "$ac_ct_CXX" && break
6302 if test "x$ac_ct_CXX" = x; then
6305 case $cross_compiling:$ac_tool_warned in
6307 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6308 whose name does not start with the host triplet. If you think this
6309 configuration is useful to you, please write to autoconf@gnu.org." >&5
6310 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6311 whose name does not start with the host triplet. If you think this
6312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6313 ac_tool_warned=yes ;;
6321 # Provide some information about the compiler.
6322 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6323 ac_compiler=`set X $ac_compile; echo $2`
6324 { (ac_try="$ac_compiler --version >&5"
6326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6327 *) ac_try_echo=$ac_try;;
6329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6330 (eval "$ac_compiler --version >&5") 2>&5
6332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6333 (exit $ac_status); }
6334 { (ac_try="$ac_compiler -v >&5"
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_compiler -v >&5") 2>&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); }
6344 { (ac_try="$ac_compiler -V >&5"
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_compiler -V >&5") 2>&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); }
6355 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6356 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6357 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6358 echo $ECHO_N "(cached) $ECHO_C" >&6
6360 cat >conftest.$ac_ext <<_ACEOF
6363 cat confdefs.h >>conftest.$ac_ext
6364 cat >>conftest.$ac_ext <<_ACEOF
6365 /* end confdefs.h. */
6378 rm -f conftest.$ac_objext
6379 if { (ac_try="$ac_compile"
6381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6382 *) ac_try_echo=$ac_try;;
6384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6385 (eval "$ac_compile") 2>conftest.er1
6387 grep -v '^ *+' conftest.er1 >conftest.err
6389 cat conftest.err >&5
6390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6391 (exit $ac_status); } &&
6392 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6393 { (case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_try") 2>&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); }; } &&
6402 { ac_try='test -s conftest.$ac_objext'
6403 { (case "(($ac_try" in
6404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6405 *) ac_try_echo=$ac_try;;
6407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6408 (eval "$ac_try") 2>&5
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; }; then
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6421 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6424 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6425 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6426 GXX=`test $ac_compiler_gnu = yes && echo yes`
6427 ac_test_CXXFLAGS=${CXXFLAGS+set}
6428 ac_save_CXXFLAGS=$CXXFLAGS
6429 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6430 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6431 if test "${ac_cv_prog_cxx_g+set}" = set; then
6432 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6435 ac_cxx_werror_flag=yes
6438 cat >conftest.$ac_ext <<_ACEOF
6441 cat confdefs.h >>conftest.$ac_ext
6442 cat >>conftest.$ac_ext <<_ACEOF
6443 /* end confdefs.h. */
6453 rm -f conftest.$ac_objext
6454 if { (ac_try="$ac_compile"
6456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6457 *) ac_try_echo=$ac_try;;
6459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6460 (eval "$ac_compile") 2>conftest.er1
6462 grep -v '^ *+' conftest.er1 >conftest.err
6464 cat conftest.err >&5
6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6466 (exit $ac_status); } &&
6467 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6468 { (case "(($ac_try" in
6469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6470 *) ac_try_echo=$ac_try;;
6472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6473 (eval "$ac_try") 2>&5
6475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6476 (exit $ac_status); }; } &&
6477 { ac_try='test -s conftest.$ac_objext'
6478 { (case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_try") 2>&5
6485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6486 (exit $ac_status); }; }; then
6487 ac_cv_prog_cxx_g=yes
6489 echo "$as_me: failed program was:" >&5
6490 sed 's/^/| /' conftest.$ac_ext >&5
6493 cat >conftest.$ac_ext <<_ACEOF
6496 cat confdefs.h >>conftest.$ac_ext
6497 cat >>conftest.$ac_ext <<_ACEOF
6498 /* end confdefs.h. */
6508 rm -f conftest.$ac_objext
6509 if { (ac_try="$ac_compile"
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6517 grep -v '^ *+' conftest.er1 >conftest.err
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } &&
6522 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6523 { (case "(($ac_try" in
6524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6525 *) ac_try_echo=$ac_try;;
6527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6528 (eval "$ac_try") 2>&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); }; } &&
6532 { ac_try='test -s conftest.$ac_objext'
6533 { (case "(($ac_try" in
6534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6535 *) ac_try_echo=$ac_try;;
6537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6538 (eval "$ac_try") 2>&5
6540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6541 (exit $ac_status); }; }; then
6544 echo "$as_me: failed program was:" >&5
6545 sed 's/^/| /' conftest.$ac_ext >&5
6547 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6549 cat >conftest.$ac_ext <<_ACEOF
6552 cat confdefs.h >>conftest.$ac_ext
6553 cat >>conftest.$ac_ext <<_ACEOF
6554 /* end confdefs.h. */
6564 rm -f conftest.$ac_objext
6565 if { (ac_try="$ac_compile"
6567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6568 *) ac_try_echo=$ac_try;;
6570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6571 (eval "$ac_compile") 2>conftest.er1
6573 grep -v '^ *+' conftest.er1 >conftest.err
6575 cat conftest.err >&5
6576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6577 (exit $ac_status); } &&
6578 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6579 { (case "(($ac_try" in
6580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6581 *) ac_try_echo=$ac_try;;
6583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6584 (eval "$ac_try") 2>&5
6586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6587 (exit $ac_status); }; } &&
6588 { ac_try='test -s conftest.$ac_objext'
6589 { (case "(($ac_try" in
6590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6591 *) ac_try_echo=$ac_try;;
6593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6594 (eval "$ac_try") 2>&5
6596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6597 (exit $ac_status); }; }; then
6598 ac_cv_prog_cxx_g=yes
6600 echo "$as_me: failed program was:" >&5
6601 sed 's/^/| /' conftest.$ac_ext >&5
6606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6613 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6615 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6616 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6617 if test "$ac_test_CXXFLAGS" = set; then
6618 CXXFLAGS=$ac_save_CXXFLAGS
6619 elif test $ac_cv_prog_cxx_g = yes; then
6620 if test "$GXX" = yes; then
6626 if test "$GXX" = yes; then
6633 ac_cpp='$CPP $CPPFLAGS'
6634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6639 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6640 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6641 if test "${lt_cv_path_NM+set}" = set; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 if test -n "$NM"; then
6645 # Let the user override the test.
6648 lt_nm_to_check="${ac_tool_prefix}nm"
6649 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6650 lt_nm_to_check="$lt_nm_to_check nm"
6652 for lt_tmp_nm in $lt_nm_to_check; do
6653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6654 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6656 test -z "$ac_dir" && ac_dir=.
6657 tmp_nm="$ac_dir/$lt_tmp_nm"
6658 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6659 # Check to see if the nm accepts a BSD-compat flag.
6660 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6661 # nm: unknown option "B" ignored
6662 # Tru64's nm complains that /dev/null is an invalid object file
6663 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6664 */dev/null* | *'Invalid file or object type'*)
6665 lt_cv_path_NM="$tmp_nm -B"
6669 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6671 lt_cv_path_NM="$tmp_nm -p"
6675 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6676 continue # so that we can try to find one that supports BSD flags
6685 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6688 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6689 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6694 { echo "$as_me:$LINENO: checking for GNU make" >&5
6695 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6696 if test "${llvm_cv_gnu_make_command+set}" = set; then
6697 echo $ECHO_N "(cached) $ECHO_C" >&6
6699 llvm_cv_gnu_make_command=''
6700 for a in "$MAKE" make gmake gnumake ; do
6701 if test -z "$a" ; then continue ; fi ;
6702 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6704 llvm_cv_gnu_make_command=$a ;
6709 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6710 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6711 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6715 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6716 echo "${ECHO_T}\"Not found\"" >&6; };
6720 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6721 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6723 if test "$LN_S" = "ln -s"; then
6724 { echo "$as_me:$LINENO: result: yes" >&5
6725 echo "${ECHO_T}yes" >&6; }
6727 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6728 echo "${ECHO_T}no, using $LN_S" >&6; }
6731 # Extract the first word of "cmp", so it can be a program name with args.
6732 set dummy cmp; ac_word=$2
6733 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6734 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6735 if test "${ac_cv_path_CMP+set}" = set; then
6736 echo $ECHO_N "(cached) $ECHO_C" >&6
6740 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6747 test -z "$as_dir" && as_dir=.
6748 for ac_exec_ext in '' $ac_executable_extensions; do
6749 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6750 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6751 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6758 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6763 if test -n "$CMP"; then
6764 { echo "$as_me:$LINENO: result: $CMP" >&5
6765 echo "${ECHO_T}$CMP" >&6; }
6767 { echo "$as_me:$LINENO: result: no" >&5
6768 echo "${ECHO_T}no" >&6; }
6772 # Extract the first word of "cp", so it can be a program name with args.
6773 set dummy cp; ac_word=$2
6774 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6775 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6776 if test "${ac_cv_path_CP+set}" = set; then
6777 echo $ECHO_N "(cached) $ECHO_C" >&6
6781 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6788 test -z "$as_dir" && as_dir=.
6789 for ac_exec_ext in '' $ac_executable_extensions; do
6790 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6791 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6792 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6799 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6804 if test -n "$CP"; then
6805 { echo "$as_me:$LINENO: result: $CP" >&5
6806 echo "${ECHO_T}$CP" >&6; }
6808 { echo "$as_me:$LINENO: result: no" >&5
6809 echo "${ECHO_T}no" >&6; }
6813 # Extract the first word of "date", so it can be a program name with args.
6814 set dummy date; ac_word=$2
6815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6817 if test "${ac_cv_path_DATE+set}" = set; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6829 test -z "$as_dir" && as_dir=.
6830 for ac_exec_ext in '' $ac_executable_extensions; do
6831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6832 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6844 DATE=$ac_cv_path_DATE
6845 if test -n "$DATE"; then
6846 { echo "$as_me:$LINENO: result: $DATE" >&5
6847 echo "${ECHO_T}$DATE" >&6; }
6849 { echo "$as_me:$LINENO: result: no" >&5
6850 echo "${ECHO_T}no" >&6; }
6854 # Extract the first word of "find", so it can be a program name with args.
6855 set dummy find; ac_word=$2
6856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6858 if test "${ac_cv_path_FIND+set}" = set; then
6859 echo $ECHO_N "(cached) $ECHO_C" >&6
6863 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6881 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6885 FIND=$ac_cv_path_FIND
6886 if test -n "$FIND"; then
6887 { echo "$as_me:$LINENO: result: $FIND" >&5
6888 echo "${ECHO_T}$FIND" >&6; }
6890 { echo "$as_me:$LINENO: result: no" >&5
6891 echo "${ECHO_T}no" >&6; }
6895 # Extract the first word of "grep", so it can be a program name with args.
6896 set dummy grep; ac_word=$2
6897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6899 if test "${ac_cv_path_GREP+set}" = set; then
6900 echo $ECHO_N "(cached) $ECHO_C" >&6
6904 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6911 test -z "$as_dir" && as_dir=.
6912 for ac_exec_ext in '' $ac_executable_extensions; do
6913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6914 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6915 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6922 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6926 GREP=$ac_cv_path_GREP
6927 if test -n "$GREP"; then
6928 { echo "$as_me:$LINENO: result: $GREP" >&5
6929 echo "${ECHO_T}$GREP" >&6; }
6931 { echo "$as_me:$LINENO: result: no" >&5
6932 echo "${ECHO_T}no" >&6; }
6936 # Extract the first word of "mkdir", so it can be a program name with args.
6937 set dummy mkdir; ac_word=$2
6938 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6939 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6940 if test "${ac_cv_path_MKDIR+set}" = set; then
6941 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6952 test -z "$as_dir" && as_dir=.
6953 for ac_exec_ext in '' $ac_executable_extensions; do
6954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6955 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6967 MKDIR=$ac_cv_path_MKDIR
6968 if test -n "$MKDIR"; then
6969 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6970 echo "${ECHO_T}$MKDIR" >&6; }
6972 { echo "$as_me:$LINENO: result: no" >&5
6973 echo "${ECHO_T}no" >&6; }
6977 # Extract the first word of "mv", so it can be a program name with args.
6978 set dummy mv; ac_word=$2
6979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6981 if test "${ac_cv_path_MV+set}" = set; then
6982 echo $ECHO_N "(cached) $ECHO_C" >&6
6986 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 test -z "$as_dir" && as_dir=.
6994 for ac_exec_ext in '' $ac_executable_extensions; do
6995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6996 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7004 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7009 if test -n "$MV"; then
7010 { echo "$as_me:$LINENO: result: $MV" >&5
7011 echo "${ECHO_T}$MV" >&6; }
7013 { echo "$as_me:$LINENO: result: no" >&5
7014 echo "${ECHO_T}no" >&6; }
7018 if test -n "$ac_tool_prefix"; then
7019 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7020 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7023 if test "${ac_cv_prog_RANLIB+set}" = set; then
7024 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 if test -n "$RANLIB"; then
7027 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7036 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7046 RANLIB=$ac_cv_prog_RANLIB
7047 if test -n "$RANLIB"; then
7048 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7049 echo "${ECHO_T}$RANLIB" >&6; }
7051 { echo "$as_me:$LINENO: result: no" >&5
7052 echo "${ECHO_T}no" >&6; }
7057 if test -z "$ac_cv_prog_RANLIB"; then
7058 ac_ct_RANLIB=$RANLIB
7059 # Extract the first word of "ranlib", so it can be a program name with args.
7060 set dummy ranlib; ac_word=$2
7061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7063 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7064 echo $ECHO_N "(cached) $ECHO_C" >&6
7066 if test -n "$ac_ct_RANLIB"; then
7067 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 test -z "$as_dir" && as_dir=.
7074 for ac_exec_ext in '' $ac_executable_extensions; do
7075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7076 ac_cv_prog_ac_ct_RANLIB="ranlib"
7077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7086 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7087 if test -n "$ac_ct_RANLIB"; then
7088 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7089 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7091 { echo "$as_me:$LINENO: result: no" >&5
7092 echo "${ECHO_T}no" >&6; }
7095 if test "x$ac_ct_RANLIB" = x; then
7098 case $cross_compiling:$ac_tool_warned in
7100 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7101 whose name does not start with the host triplet. If you think this
7102 configuration is useful to you, please write to autoconf@gnu.org." >&5
7103 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7104 whose name does not start with the host triplet. If you think this
7105 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7106 ac_tool_warned=yes ;;
7108 RANLIB=$ac_ct_RANLIB
7111 RANLIB="$ac_cv_prog_RANLIB"
7114 if test -n "$ac_tool_prefix"; then
7115 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7116 set dummy ${ac_tool_prefix}ar; ac_word=$2
7117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7119 if test "${ac_cv_prog_AR+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 if test -n "$AR"; then
7123 ac_cv_prog_AR="$AR" # Let the user override the test.
7125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 test -z "$as_dir" && as_dir=.
7130 for ac_exec_ext in '' $ac_executable_extensions; do
7131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7132 ac_cv_prog_AR="${ac_tool_prefix}ar"
7133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143 if test -n "$AR"; then
7144 { echo "$as_me:$LINENO: result: $AR" >&5
7145 echo "${ECHO_T}$AR" >&6; }
7147 { echo "$as_me:$LINENO: result: no" >&5
7148 echo "${ECHO_T}no" >&6; }
7153 if test -z "$ac_cv_prog_AR"; then
7155 # Extract the first word of "ar", so it can be a program name with args.
7156 set dummy ar; ac_word=$2
7157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7159 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7162 if test -n "$ac_ct_AR"; then
7163 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 test -z "$as_dir" && as_dir=.
7170 for ac_exec_ext in '' $ac_executable_extensions; do
7171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7172 ac_cv_prog_ac_ct_AR="ar"
7173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7183 if test -n "$ac_ct_AR"; then
7184 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7185 echo "${ECHO_T}$ac_ct_AR" >&6; }
7187 { echo "$as_me:$LINENO: result: no" >&5
7188 echo "${ECHO_T}no" >&6; }
7191 if test "x$ac_ct_AR" = x; then
7194 case $cross_compiling:$ac_tool_warned in
7196 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7197 whose name does not start with the host triplet. If you think this
7198 configuration is useful to you, please write to autoconf@gnu.org." >&5
7199 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7200 whose name does not start with the host triplet. If you think this
7201 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7202 ac_tool_warned=yes ;;
7210 # Extract the first word of "rm", so it can be a program name with args.
7211 set dummy rm; ac_word=$2
7212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7214 if test "${ac_cv_path_RM+set}" = set; then
7215 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7229 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7237 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7242 if test -n "$RM"; then
7243 { echo "$as_me:$LINENO: result: $RM" >&5
7244 echo "${ECHO_T}$RM" >&6; }
7246 { echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6; }
7251 # Extract the first word of "sed", so it can be a program name with args.
7252 set dummy sed; ac_word=$2
7253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7255 if test "${ac_cv_path_SED+set}" = set; then
7256 echo $ECHO_N "(cached) $ECHO_C" >&6
7260 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7267 test -z "$as_dir" && as_dir=.
7268 for ac_exec_ext in '' $ac_executable_extensions; do
7269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7270 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7278 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7283 if test -n "$SED"; then
7284 { echo "$as_me:$LINENO: result: $SED" >&5
7285 echo "${ECHO_T}$SED" >&6; }
7287 { echo "$as_me:$LINENO: result: no" >&5
7288 echo "${ECHO_T}no" >&6; }
7292 # Extract the first word of "tar", so it can be a program name with args.
7293 set dummy tar; ac_word=$2
7294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7296 if test "${ac_cv_path_TAR+set}" = set; then
7297 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7311 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7319 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7324 if test -n "$TAR"; then
7325 { echo "$as_me:$LINENO: result: $TAR" >&5
7326 echo "${ECHO_T}$TAR" >&6; }
7328 { echo "$as_me:$LINENO: result: no" >&5
7329 echo "${ECHO_T}no" >&6; }
7333 # Extract the first word of "pwd", so it can be a program name with args.
7334 set dummy pwd; ac_word=$2
7335 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7336 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7337 if test "${ac_cv_path_BINPWD+set}" = set; then
7338 echo $ECHO_N "(cached) $ECHO_C" >&6
7342 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7352 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7360 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7364 BINPWD=$ac_cv_path_BINPWD
7365 if test -n "$BINPWD"; then
7366 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7367 echo "${ECHO_T}$BINPWD" >&6; }
7369 { echo "$as_me:$LINENO: result: no" >&5
7370 echo "${ECHO_T}no" >&6; }
7375 # Extract the first word of "Graphviz", so it can be a program name with args.
7376 set dummy Graphviz; ac_word=$2
7377 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7378 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7379 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7380 echo $ECHO_N "(cached) $ECHO_C" >&6
7384 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7394 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7402 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7406 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7407 if test -n "$GRAPHVIZ"; then
7408 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7409 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7411 { echo "$as_me:$LINENO: result: no" >&5
7412 echo "${ECHO_T}no" >&6; }
7416 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7418 cat >>confdefs.h <<\_ACEOF
7419 #define HAVE_GRAPHVIZ 1
7422 if test "$llvm_cv_os_type" = "MingW" ; then
7423 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7426 cat >>confdefs.h <<_ACEOF
7427 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7431 # Extract the first word of "dot", so it can be a program name with args.
7432 set dummy dot; ac_word=$2
7433 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7434 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7435 if test "${ac_cv_path_DOT+set}" = set; then
7436 echo $ECHO_N "(cached) $ECHO_C" >&6
7440 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7447 test -z "$as_dir" && as_dir=.
7448 for ac_exec_ext in '' $ac_executable_extensions; do
7449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7450 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7463 if test -n "$DOT"; then
7464 { echo "$as_me:$LINENO: result: $DOT" >&5
7465 echo "${ECHO_T}$DOT" >&6; }
7467 { echo "$as_me:$LINENO: result: no" >&5
7468 echo "${ECHO_T}no" >&6; }
7472 if test "$DOT" != "echo dot" ; then
7474 cat >>confdefs.h <<\_ACEOF
7478 if test "$llvm_cv_os_type" = "MingW" ; then
7479 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7482 cat >>confdefs.h <<_ACEOF
7483 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7487 # Extract the first word of "fdp", so it can be a program name with args.
7488 set dummy fdp; ac_word=$2
7489 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7490 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7491 if test "${ac_cv_path_FDP+set}" = set; then
7492 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7503 test -z "$as_dir" && as_dir=.
7504 for ac_exec_ext in '' $ac_executable_extensions; do
7505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7506 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7507 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7514 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7519 if test -n "$FDP"; then
7520 { echo "$as_me:$LINENO: result: $FDP" >&5
7521 echo "${ECHO_T}$FDP" >&6; }
7523 { echo "$as_me:$LINENO: result: no" >&5
7524 echo "${ECHO_T}no" >&6; }
7528 if test "$FDP" != "echo fdp" ; then
7530 cat >>confdefs.h <<\_ACEOF
7534 if test "$llvm_cv_os_type" = "MingW" ; then
7535 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7538 cat >>confdefs.h <<_ACEOF
7539 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7543 # Extract the first word of "neato", so it can be a program name with args.
7544 set dummy neato; ac_word=$2
7545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7547 if test "${ac_cv_path_NEATO+set}" = set; then
7548 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7559 test -z "$as_dir" && as_dir=.
7560 for ac_exec_ext in '' $ac_executable_extensions; do
7561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7562 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7570 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7574 NEATO=$ac_cv_path_NEATO
7575 if test -n "$NEATO"; then
7576 { echo "$as_me:$LINENO: result: $NEATO" >&5
7577 echo "${ECHO_T}$NEATO" >&6; }
7579 { echo "$as_me:$LINENO: result: no" >&5
7580 echo "${ECHO_T}no" >&6; }
7584 if test "$NEATO" != "echo neato" ; then
7586 cat >>confdefs.h <<\_ACEOF
7587 #define HAVE_NEATO 1
7590 if test "$llvm_cv_os_type" = "MingW" ; then
7591 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7594 cat >>confdefs.h <<_ACEOF
7595 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7599 # Extract the first word of "twopi", so it can be a program name with args.
7600 set dummy twopi; ac_word=$2
7601 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7602 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7603 if test "${ac_cv_path_TWOPI+set}" = set; then
7604 echo $ECHO_N "(cached) $ECHO_C" >&6
7608 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7615 test -z "$as_dir" && as_dir=.
7616 for ac_exec_ext in '' $ac_executable_extensions; do
7617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7618 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7626 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7630 TWOPI=$ac_cv_path_TWOPI
7631 if test -n "$TWOPI"; then
7632 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7633 echo "${ECHO_T}$TWOPI" >&6; }
7635 { echo "$as_me:$LINENO: result: no" >&5
7636 echo "${ECHO_T}no" >&6; }
7640 if test "$TWOPI" != "echo twopi" ; then
7642 cat >>confdefs.h <<\_ACEOF
7643 #define HAVE_TWOPI 1
7646 if test "$llvm_cv_os_type" = "MingW" ; then
7647 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7650 cat >>confdefs.h <<_ACEOF
7651 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7655 # Extract the first word of "circo", so it can be a program name with args.
7656 set dummy circo; 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_CIRCO+set}" = set; then
7660 echo $ECHO_N "(cached) $ECHO_C" >&6
7664 ac_cv_path_CIRCO="$CIRCO" # 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_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7675 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7686 CIRCO=$ac_cv_path_CIRCO
7687 if test -n "$CIRCO"; then
7688 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7689 echo "${ECHO_T}$CIRCO" >&6; }
7691 { echo "$as_me:$LINENO: result: no" >&5
7692 echo "${ECHO_T}no" >&6; }
7696 if test "$CIRCO" != "echo circo" ; then
7698 cat >>confdefs.h <<\_ACEOF
7699 #define HAVE_CIRCO 1
7702 if test "$llvm_cv_os_type" = "MingW" ; then
7703 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7706 cat >>confdefs.h <<_ACEOF
7707 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7711 for ac_prog in gv gsview32
7713 # Extract the first word of "$ac_prog", so it can be a program name with args.
7714 set dummy $ac_prog; ac_word=$2
7715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7717 if test "${ac_cv_path_GV+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7729 test -z "$as_dir" && as_dir=.
7730 for ac_exec_ext in '' $ac_executable_extensions; do
7731 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7732 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7733 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 if test -n "$GV"; then
7745 { echo "$as_me:$LINENO: result: $GV" >&5
7746 echo "${ECHO_T}$GV" >&6; }
7748 { echo "$as_me:$LINENO: result: no" >&5
7749 echo "${ECHO_T}no" >&6; }
7753 test -n "$GV" && break
7755 test -n "$GV" || GV="echo gv"
7757 if test "$GV" != "echo gv" ; then
7759 cat >>confdefs.h <<\_ACEOF
7763 if test "$llvm_cv_os_type" = "MingW" ; then
7764 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7767 cat >>confdefs.h <<_ACEOF
7768 #define LLVM_PATH_GV "$GV${EXEEXT}"
7772 # Extract the first word of "dotty", so it can be a program name with args.
7773 set dummy dotty; 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_DOTTY+set}" = set; then
7777 echo $ECHO_N "(cached) $ECHO_C" >&6
7781 ac_cv_path_DOTTY="$DOTTY" # 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_DOTTY="$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_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7803 DOTTY=$ac_cv_path_DOTTY
7804 if test -n "$DOTTY"; then
7805 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7806 echo "${ECHO_T}$DOTTY" >&6; }
7808 { echo "$as_me:$LINENO: result: no" >&5
7809 echo "${ECHO_T}no" >&6; }
7813 if test "$DOTTY" != "echo dotty" ; then
7815 cat >>confdefs.h <<\_ACEOF
7816 #define HAVE_DOTTY 1
7819 if test "$llvm_cv_os_type" = "MingW" ; then
7820 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7823 cat >>confdefs.h <<_ACEOF
7824 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7830 # Extract the first word of "perl", so it can be a program name with args.
7831 set dummy perl; ac_word=$2
7832 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7833 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7834 if test "${ac_cv_path_PERL+set}" = set; then
7835 echo $ECHO_N "(cached) $ECHO_C" >&6
7839 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7846 test -z "$as_dir" && as_dir=.
7847 for ac_exec_ext in '' $ac_executable_extensions; do
7848 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7849 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7850 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7857 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7861 PERL=$ac_cv_path_PERL
7862 if test -n "$PERL"; then
7863 { echo "$as_me:$LINENO: result: $PERL" >&5
7864 echo "${ECHO_T}$PERL" >&6; }
7866 { echo "$as_me:$LINENO: result: no" >&5
7867 echo "${ECHO_T}no" >&6; }
7871 if test "$PERL" != "none"; then
7872 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7873 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7874 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7875 { echo "$as_me:$LINENO: result: yes" >&5
7876 echo "${ECHO_T}yes" >&6; }
7879 { echo "$as_me:$LINENO: result: not found" >&5
7880 echo "${ECHO_T}not found" >&6; }
7885 if test x"$PERL" = xnone; then
7888 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7889 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7890 { (exit 1); exit 1; }; }
7896 # Find a good install program. We prefer a C program (faster),
7897 # so one script is as good as another. But avoid the broken or
7898 # incompatible versions:
7899 # SysV /etc/install, /usr/sbin/install
7900 # SunOS /usr/etc/install
7901 # IRIX /sbin/install
7903 # AmigaOS /C/install, which installs bootblocks on floppy discs
7904 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7905 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7906 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7907 # OS/2's system install, which has a completely different semantic
7908 # ./install, which can be erroneously created by make from ./install.sh.
7909 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7910 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7911 if test -z "$INSTALL"; then
7912 if test "${ac_cv_path_install+set}" = set; then
7913 echo $ECHO_N "(cached) $ECHO_C" >&6
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7919 test -z "$as_dir" && as_dir=.
7920 # Account for people who put trailing slashes in PATH elements.
7922 ./ | .// | /cC/* | \
7923 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7924 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7927 # OSF1 and SCO ODT 3.0 have their own names for install.
7928 # Don't use installbsd from OSF since it installs stuff as root
7930 for ac_prog in ginstall scoinst install; do
7931 for ac_exec_ext in '' $ac_executable_extensions; do
7932 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7933 if test $ac_prog = install &&
7934 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7935 # AIX install. It has an incompatible calling convention.
7937 elif test $ac_prog = install &&
7938 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7939 # program-specific install script used by HP pwplus--don't use.
7942 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7955 if test "${ac_cv_path_install+set}" = set; then
7956 INSTALL=$ac_cv_path_install
7958 # As a last resort, use the slow shell script. Don't cache a
7959 # value for INSTALL within a source directory, because that will
7960 # break other packages using the cache if that directory is
7961 # removed, or if the value is a relative name.
7962 INSTALL=$ac_install_sh
7965 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7966 echo "${ECHO_T}$INSTALL" >&6; }
7968 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7969 # It thinks the first close brace ends the variable substitution.
7970 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7972 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7974 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7977 # Extract the first word of "bzip2", so it can be a program name with args.
7978 set dummy bzip2; ac_word=$2
7979 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7980 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7981 if test "${ac_cv_path_BZIP2+set}" = set; then
7982 echo $ECHO_N "(cached) $ECHO_C" >&6
7986 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7993 test -z "$as_dir" && as_dir=.
7994 for ac_exec_ext in '' $ac_executable_extensions; do
7995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7996 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8007 BZIP2=$ac_cv_path_BZIP2
8008 if test -n "$BZIP2"; then
8009 { echo "$as_me:$LINENO: result: $BZIP2" >&5
8010 echo "${ECHO_T}$BZIP2" >&6; }
8012 { echo "$as_me:$LINENO: result: no" >&5
8013 echo "${ECHO_T}no" >&6; }
8017 # Extract the first word of "doxygen", so it can be a program name with args.
8018 set dummy doxygen; ac_word=$2
8019 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8021 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8022 echo $ECHO_N "(cached) $ECHO_C" >&6
8026 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8033 test -z "$as_dir" && as_dir=.
8034 for ac_exec_ext in '' $ac_executable_extensions; do
8035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8036 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8037 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8047 DOXYGEN=$ac_cv_path_DOXYGEN
8048 if test -n "$DOXYGEN"; then
8049 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8050 echo "${ECHO_T}$DOXYGEN" >&6; }
8052 { echo "$as_me:$LINENO: result: no" >&5
8053 echo "${ECHO_T}no" >&6; }
8057 # Extract the first word of "groff", so it can be a program name with args.
8058 set dummy groff; ac_word=$2
8059 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8060 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8061 if test "${ac_cv_path_GROFF+set}" = set; then
8062 echo $ECHO_N "(cached) $ECHO_C" >&6
8066 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8069 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8076 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8077 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 GROFF=$ac_cv_path_GROFF
8088 if test -n "$GROFF"; then
8089 { echo "$as_me:$LINENO: result: $GROFF" >&5
8090 echo "${ECHO_T}$GROFF" >&6; }
8092 { echo "$as_me:$LINENO: result: no" >&5
8093 echo "${ECHO_T}no" >&6; }
8097 # Extract the first word of "gzip", so it can be a program name with args.
8098 set dummy gzip; ac_word=$2
8099 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8100 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8101 if test "${ac_cv_path_GZIP+set}" = set; then
8102 echo $ECHO_N "(cached) $ECHO_C" >&6
8106 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 test -z "$as_dir" && as_dir=.
8114 for ac_exec_ext in '' $ac_executable_extensions; do
8115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8116 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8117 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8127 GZIP=$ac_cv_path_GZIP
8128 if test -n "$GZIP"; then
8129 { echo "$as_me:$LINENO: result: $GZIP" >&5
8130 echo "${ECHO_T}$GZIP" >&6; }
8132 { echo "$as_me:$LINENO: result: no" >&5
8133 echo "${ECHO_T}no" >&6; }
8137 # Extract the first word of "pod2html", so it can be a program name with args.
8138 set dummy pod2html; ac_word=$2
8139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8141 if test "${ac_cv_path_POD2HTML+set}" = set; then
8142 echo $ECHO_N "(cached) $ECHO_C" >&6
8146 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8153 test -z "$as_dir" && as_dir=.
8154 for ac_exec_ext in '' $ac_executable_extensions; do
8155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8156 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8167 POD2HTML=$ac_cv_path_POD2HTML
8168 if test -n "$POD2HTML"; then
8169 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8170 echo "${ECHO_T}$POD2HTML" >&6; }
8172 { echo "$as_me:$LINENO: result: no" >&5
8173 echo "${ECHO_T}no" >&6; }
8177 # Extract the first word of "pod2man", so it can be a program name with args.
8178 set dummy pod2man; ac_word=$2
8179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8181 if test "${ac_cv_path_POD2MAN+set}" = set; then
8182 echo $ECHO_N "(cached) $ECHO_C" >&6
8186 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8193 test -z "$as_dir" && as_dir=.
8194 for ac_exec_ext in '' $ac_executable_extensions; do
8195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8196 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8207 POD2MAN=$ac_cv_path_POD2MAN
8208 if test -n "$POD2MAN"; then
8209 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8210 echo "${ECHO_T}$POD2MAN" >&6; }
8212 { echo "$as_me:$LINENO: result: no" >&5
8213 echo "${ECHO_T}no" >&6; }
8217 # Extract the first word of "runtest", so it can be a program name with args.
8218 set dummy runtest; ac_word=$2
8219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8221 if test "${ac_cv_path_RUNTEST+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8226 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 test -z "$as_dir" && as_dir=.
8234 for ac_exec_ext in '' $ac_executable_extensions; do
8235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8236 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 RUNTEST=$ac_cv_path_RUNTEST
8248 if test -n "$RUNTEST"; then
8249 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8250 echo "${ECHO_T}$RUNTEST" >&6; }
8252 { echo "$as_me:$LINENO: result: no" >&5
8253 echo "${ECHO_T}no" >&6; }
8259 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8260 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8262 # Check whether --with-tclinclude was given.
8263 if test "${with_tclinclude+set}" = set; then
8264 withval=$with_tclinclude; with_tclinclude=${withval}
8269 if test "${ac_cv_path_tclsh+set}" = set; then
8270 echo $ECHO_N "(cached) $ECHO_C" >&6
8273 if test x"${with_tclinclude}" != x ; then
8274 if test -f ${with_tclinclude}/tclsh ; then
8275 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8276 elif test -f ${with_tclinclude}/src/tclsh ; then
8277 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8279 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8280 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8281 { (exit 1); exit 1; }; }
8287 if test x"${ac_cv_path_tclsh}" = x ; then
8288 { echo "$as_me:$LINENO: result: none" >&5
8289 echo "${ECHO_T}none" >&6; }
8290 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
8292 # Extract the first word of "$ac_prog", so it can be a program name with args.
8293 set dummy $ac_prog; ac_word=$2
8294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8296 if test "${ac_cv_path_TCLSH+set}" = set; then
8297 echo $ECHO_N "(cached) $ECHO_C" >&6
8301 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 TCLSH=$ac_cv_path_TCLSH
8323 if test -n "$TCLSH"; then
8324 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8325 echo "${ECHO_T}$TCLSH" >&6; }
8327 { echo "$as_me:$LINENO: result: no" >&5
8328 echo "${ECHO_T}no" >&6; }
8332 test -n "$TCLSH" && break
8335 if test x"${TCLSH}" = x ; then
8336 ac_cv_path_tclsh='';
8338 ac_cv_path_tclsh="${TCLSH}";
8341 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8342 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8343 TCLSH="${ac_cv_path_tclsh}"
8347 # Extract the first word of "zip", so it can be a program name with args.
8348 set dummy zip; ac_word=$2
8349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8351 if test "${ac_cv_path_ZIP+set}" = set; then
8352 echo $ECHO_N "(cached) $ECHO_C" >&6
8356 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 test -z "$as_dir" && as_dir=.
8364 for ac_exec_ext in '' $ac_executable_extensions; do
8365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8366 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8378 if test -n "$ZIP"; then
8379 { echo "$as_me:$LINENO: result: $ZIP" >&5
8380 echo "${ECHO_T}$ZIP" >&6; }
8382 { echo "$as_me:$LINENO: result: no" >&5
8383 echo "${ECHO_T}no" >&6; }
8387 for ac_prog in ocamlc
8389 # Extract the first word of "$ac_prog", so it can be a program name with args.
8390 set dummy $ac_prog; ac_word=$2
8391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8393 if test "${ac_cv_path_OCAMLC+set}" = set; then
8394 echo $ECHO_N "(cached) $ECHO_C" >&6
8398 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 test -z "$as_dir" && as_dir=.
8406 for ac_exec_ext in '' $ac_executable_extensions; do
8407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8408 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8419 OCAMLC=$ac_cv_path_OCAMLC
8420 if test -n "$OCAMLC"; then
8421 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8422 echo "${ECHO_T}$OCAMLC" >&6; }
8424 { echo "$as_me:$LINENO: result: no" >&5
8425 echo "${ECHO_T}no" >&6; }
8429 test -n "$OCAMLC" && break
8432 for ac_prog in ocamlopt
8434 # Extract the first word of "$ac_prog", so it can be a program name with args.
8435 set dummy $ac_prog; ac_word=$2
8436 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8437 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8438 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8439 echo $ECHO_N "(cached) $ECHO_C" >&6
8443 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8450 test -z "$as_dir" && as_dir=.
8451 for ac_exec_ext in '' $ac_executable_extensions; do
8452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8453 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8454 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8464 OCAMLOPT=$ac_cv_path_OCAMLOPT
8465 if test -n "$OCAMLOPT"; then
8466 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8467 echo "${ECHO_T}$OCAMLOPT" >&6; }
8469 { echo "$as_me:$LINENO: result: no" >&5
8470 echo "${ECHO_T}no" >&6; }
8474 test -n "$OCAMLOPT" && break
8477 for ac_prog in ocamldep
8479 # Extract the first word of "$ac_prog", so it can be a program name with args.
8480 set dummy $ac_prog; ac_word=$2
8481 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8482 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8483 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8484 echo $ECHO_N "(cached) $ECHO_C" >&6
8488 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8495 test -z "$as_dir" && as_dir=.
8496 for ac_exec_ext in '' $ac_executable_extensions; do
8497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8498 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8499 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8509 OCAMLDEP=$ac_cv_path_OCAMLDEP
8510 if test -n "$OCAMLDEP"; then
8511 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8512 echo "${ECHO_T}$OCAMLDEP" >&6; }
8514 { echo "$as_me:$LINENO: result: no" >&5
8515 echo "${ECHO_T}no" >&6; }
8519 test -n "$OCAMLDEP" && break
8522 for ac_prog in ocamldoc
8524 # Extract the first word of "$ac_prog", so it can be a program name with args.
8525 set dummy $ac_prog; ac_word=$2
8526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8528 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8529 echo $ECHO_N "(cached) $ECHO_C" >&6
8533 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8540 test -z "$as_dir" && as_dir=.
8541 for ac_exec_ext in '' $ac_executable_extensions; do
8542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8543 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8554 OCAMLDOC=$ac_cv_path_OCAMLDOC
8555 if test -n "$OCAMLDOC"; then
8556 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8557 echo "${ECHO_T}$OCAMLDOC" >&6; }
8559 { echo "$as_me:$LINENO: result: no" >&5
8560 echo "${ECHO_T}no" >&6; }
8564 test -n "$OCAMLDOC" && break
8567 for ac_prog in gas as
8569 # Extract the first word of "$ac_prog", so it can be a program name with args.
8570 set dummy $ac_prog; ac_word=$2
8571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8573 if test "${ac_cv_path_GAS+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8578 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8585 test -z "$as_dir" && as_dir=.
8586 for ac_exec_ext in '' $ac_executable_extensions; do
8587 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8588 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8589 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8600 if test -n "$GAS"; then
8601 { echo "$as_me:$LINENO: result: $GAS" >&5
8602 echo "${ECHO_T}$GAS" >&6; }
8604 { echo "$as_me:$LINENO: result: no" >&5
8605 echo "${ECHO_T}no" >&6; }
8609 test -n "$GAS" && break
8613 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8614 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8615 if test "${llvm_cv_link_use_r+set}" = set; then
8616 echo $ECHO_N "(cached) $ECHO_C" >&6
8619 ac_cpp='$CPP $CPPFLAGS'
8620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8625 CFLAGS="$CFLAGS -Wl,-R."
8626 cat >conftest.$ac_ext <<_ACEOF
8629 cat confdefs.h >>conftest.$ac_ext
8630 cat >>conftest.$ac_ext <<_ACEOF
8631 /* end confdefs.h. */
8636 int main() { return 0; }
8641 rm -f conftest.$ac_objext conftest$ac_exeext
8642 if { (ac_try="$ac_link"
8644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8645 *) ac_try_echo=$ac_try;;
8647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8648 (eval "$ac_link") 2>conftest.er1
8650 grep -v '^ *+' conftest.er1 >conftest.err
8652 cat conftest.err >&5
8653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8654 (exit $ac_status); } &&
8655 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8656 { (case "(($ac_try" in
8657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8658 *) ac_try_echo=$ac_try;;
8660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8661 (eval "$ac_try") 2>&5
8663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8664 (exit $ac_status); }; } &&
8665 { ac_try='test -s conftest$ac_exeext'
8666 { (case "(($ac_try" in
8667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8668 *) ac_try_echo=$ac_try;;
8670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8671 (eval "$ac_try") 2>&5
8673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); }; }; then
8675 llvm_cv_link_use_r=yes
8677 echo "$as_me: failed program was:" >&5
8678 sed 's/^/| /' conftest.$ac_ext >&5
8680 llvm_cv_link_use_r=no
8683 rm -f core conftest.err conftest.$ac_objext \
8684 conftest$ac_exeext conftest.$ac_ext
8687 ac_cpp='$CPP $CPPFLAGS'
8688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8694 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8695 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8696 if test "$llvm_cv_link_use_r" = yes ; then
8698 cat >>confdefs.h <<\_ACEOF
8699 #define HAVE_LINK_R 1
8705 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8706 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8707 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8708 echo $ECHO_N "(cached) $ECHO_C" >&6
8711 ac_cpp='$CPP $CPPFLAGS'
8712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8717 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8718 cat >conftest.$ac_ext <<_ACEOF
8721 cat confdefs.h >>conftest.$ac_ext
8722 cat >>conftest.$ac_ext <<_ACEOF
8723 /* end confdefs.h. */
8728 int main() { return 0; }
8733 rm -f conftest.$ac_objext conftest$ac_exeext
8734 if { (ac_try="$ac_link"
8736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8737 *) ac_try_echo=$ac_try;;
8739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8740 (eval "$ac_link") 2>conftest.er1
8742 grep -v '^ *+' conftest.er1 >conftest.err
8744 cat conftest.err >&5
8745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8746 (exit $ac_status); } &&
8747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8748 { (case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_try") 2>&5
8755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8756 (exit $ac_status); }; } &&
8757 { ac_try='test -s conftest$ac_exeext'
8758 { (case "(($ac_try" in
8759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8760 *) ac_try_echo=$ac_try;;
8762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8763 (eval "$ac_try") 2>&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); }; }; then
8767 llvm_cv_link_use_export_dynamic=yes
8769 echo "$as_me: failed program was:" >&5
8770 sed 's/^/| /' conftest.$ac_ext >&5
8772 llvm_cv_link_use_export_dynamic=no
8775 rm -f core conftest.err conftest.$ac_objext \
8776 conftest$ac_exeext conftest.$ac_ext
8779 ac_cpp='$CPP $CPPFLAGS'
8780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8786 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8787 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8788 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8790 cat >>confdefs.h <<\_ACEOF
8791 #define HAVE_LINK_EXPORT_DYNAMIC 1
8799 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8800 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8801 if test "${ac_cv_c_const+set}" = set; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 cat >conftest.$ac_ext <<_ACEOF
8807 cat confdefs.h >>conftest.$ac_ext
8808 cat >>conftest.$ac_ext <<_ACEOF
8809 /* end confdefs.h. */
8814 /* FIXME: Include the comments suggested by Paul. */
8816 /* Ultrix mips cc rejects this. */
8817 typedef int charset[2];
8819 /* SunOS 4.1.1 cc rejects this. */
8820 char const *const *ccp;
8822 /* NEC SVR4.0.2 mips cc rejects this. */
8823 struct point {int x, y;};
8824 static struct point const zero = {0,0};
8825 /* AIX XL C 1.02.0.0 rejects this.
8826 It does not let you subtract one const X* pointer from another in
8827 an arm of an if-expression whose if-part is not a constant
8829 const char *g = "string";
8830 ccp = &g + (g ? g-g : 0);
8831 /* HPUX 7.0 cc rejects these. */
8834 ccp = (char const *const *) p;
8835 { /* SCO 3.2v4 cc rejects this. */
8837 char const *s = 0 ? (char *) 0 : (char const *) 0;
8842 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8844 const int *foo = &x[0];
8847 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8848 typedef const int *iptr;
8852 { /* AIX XL C 1.02.0.0 rejects this saying
8853 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8854 struct s { int j; const int *ap[3]; };
8855 struct s *b; b->j = 5;
8857 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8861 return !x[0] && !zero.x;
8868 rm -f conftest.$ac_objext
8869 if { (ac_try="$ac_compile"
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_compile") 2>conftest.er1
8877 grep -v '^ *+' conftest.er1 >conftest.err
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } &&
8882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8883 { (case "(($ac_try" in
8884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8885 *) ac_try_echo=$ac_try;;
8887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8888 (eval "$ac_try") 2>&5
8890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8891 (exit $ac_status); }; } &&
8892 { ac_try='test -s conftest.$ac_objext'
8893 { (case "(($ac_try" in
8894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8895 *) ac_try_echo=$ac_try;;
8897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8898 (eval "$ac_try") 2>&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); }; }; then
8904 echo "$as_me: failed program was:" >&5
8905 sed 's/^/| /' conftest.$ac_ext >&5
8910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8912 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8913 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8914 if test $ac_cv_c_const = no; then
8916 cat >>confdefs.h <<\_ACEOF
8928 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8929 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8930 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8931 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 cat >conftest.$ac_ext <<_ACEOF
8938 cat confdefs.h >>conftest.$ac_ext
8939 cat >>conftest.$ac_ext <<_ACEOF
8940 /* end confdefs.h. */
8941 #include <sys/types.h>
8953 rm -f conftest.$ac_objext
8954 if { (ac_try="$ac_compile"
8956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8957 *) ac_try_echo=$ac_try;;
8959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8960 (eval "$ac_compile") 2>conftest.er1
8962 grep -v '^ *+' conftest.er1 >conftest.err
8964 cat conftest.err >&5
8965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8966 (exit $ac_status); } &&
8967 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8968 { (case "(($ac_try" in
8969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8970 *) ac_try_echo=$ac_try;;
8972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8973 (eval "$ac_try") 2>&5
8975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8976 (exit $ac_status); }; } &&
8977 { ac_try='test -s conftest.$ac_objext'
8978 { (case "(($ac_try" in
8979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8980 *) ac_try_echo=$ac_try;;
8982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8983 (eval "$ac_try") 2>&5
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987 eval "$as_ac_Header=yes"
8989 echo "$as_me: failed program was:" >&5
8990 sed 's/^/| /' conftest.$ac_ext >&5
8992 eval "$as_ac_Header=no"
8995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8997 ac_res=`eval echo '${'$as_ac_Header'}'`
8998 { echo "$as_me:$LINENO: result: $ac_res" >&5
8999 echo "${ECHO_T}$ac_res" >&6; }
9000 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9001 cat >>confdefs.h <<_ACEOF
9002 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9005 ac_header_dirent=$ac_hdr; break
9009 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9010 if test $ac_header_dirent = dirent.h; then
9011 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9012 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9013 if test "${ac_cv_search_opendir+set}" = set; then
9014 echo $ECHO_N "(cached) $ECHO_C" >&6
9016 ac_func_search_save_LIBS=$LIBS
9017 cat >conftest.$ac_ext <<_ACEOF
9020 cat confdefs.h >>conftest.$ac_ext
9021 cat >>conftest.$ac_ext <<_ACEOF
9022 /* end confdefs.h. */
9024 /* Override any GCC internal prototype to avoid an error.
9025 Use char because int might match the return type of a GCC
9026 builtin and then its argument prototype would still apply. */
9039 for ac_lib in '' dir; do
9040 if test -z "$ac_lib"; then
9041 ac_res="none required"
9044 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9046 rm -f conftest.$ac_objext conftest$ac_exeext
9047 if { (ac_try="$ac_link"
9049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9050 *) ac_try_echo=$ac_try;;
9052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9053 (eval "$ac_link") 2>conftest.er1
9055 grep -v '^ *+' conftest.er1 >conftest.err
9057 cat conftest.err >&5
9058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9059 (exit $ac_status); } &&
9060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9061 { (case "(($ac_try" in
9062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9063 *) ac_try_echo=$ac_try;;
9065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9066 (eval "$ac_try") 2>&5
9068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9069 (exit $ac_status); }; } &&
9070 { ac_try='test -s conftest$ac_exeext'
9071 { (case "(($ac_try" in
9072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9073 *) ac_try_echo=$ac_try;;
9075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9076 (eval "$ac_try") 2>&5
9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9079 (exit $ac_status); }; }; then
9080 ac_cv_search_opendir=$ac_res
9082 echo "$as_me: failed program was:" >&5
9083 sed 's/^/| /' conftest.$ac_ext >&5
9088 rm -f core conftest.err conftest.$ac_objext \
9090 if test "${ac_cv_search_opendir+set}" = set; then
9094 if test "${ac_cv_search_opendir+set}" = set; then
9097 ac_cv_search_opendir=no
9100 LIBS=$ac_func_search_save_LIBS
9102 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9103 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9104 ac_res=$ac_cv_search_opendir
9105 if test "$ac_res" != no; then
9106 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9111 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9112 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9113 if test "${ac_cv_search_opendir+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9116 ac_func_search_save_LIBS=$LIBS
9117 cat >conftest.$ac_ext <<_ACEOF
9120 cat confdefs.h >>conftest.$ac_ext
9121 cat >>conftest.$ac_ext <<_ACEOF
9122 /* end confdefs.h. */
9124 /* Override any GCC internal prototype to avoid an error.
9125 Use char because int might match the return type of a GCC
9126 builtin and then its argument prototype would still apply. */
9139 for ac_lib in '' x; do
9140 if test -z "$ac_lib"; then
9141 ac_res="none required"
9144 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9146 rm -f conftest.$ac_objext conftest$ac_exeext
9147 if { (ac_try="$ac_link"
9149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9150 *) ac_try_echo=$ac_try;;
9152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9153 (eval "$ac_link") 2>conftest.er1
9155 grep -v '^ *+' conftest.er1 >conftest.err
9157 cat conftest.err >&5
9158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9159 (exit $ac_status); } &&
9160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9161 { (case "(($ac_try" in
9162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_try") 2>&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); }; } &&
9170 { ac_try='test -s conftest$ac_exeext'
9171 { (case "(($ac_try" in
9172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_try") 2>&5
9178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9179 (exit $ac_status); }; }; then
9180 ac_cv_search_opendir=$ac_res
9182 echo "$as_me: failed program was:" >&5
9183 sed 's/^/| /' conftest.$ac_ext >&5
9188 rm -f core conftest.err conftest.$ac_objext \
9190 if test "${ac_cv_search_opendir+set}" = set; then
9194 if test "${ac_cv_search_opendir+set}" = set; then
9197 ac_cv_search_opendir=no
9200 LIBS=$ac_func_search_save_LIBS
9202 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9203 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9204 ac_res=$ac_cv_search_opendir
9205 if test "$ac_res" != no; then
9206 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9213 for ac_header in dlfcn.h
9215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9220 echo $ECHO_N "(cached) $ECHO_C" >&6
9222 ac_res=`eval echo '${'$as_ac_Header'}'`
9223 { echo "$as_me:$LINENO: result: $ac_res" >&5
9224 echo "${ECHO_T}$ac_res" >&6; }
9226 # Is the header compilable?
9227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9228 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
9236 #include <$ac_header>
9238 rm -f conftest.$ac_objext
9239 if { (ac_try="$ac_compile"
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_compile") 2>conftest.er1
9247 grep -v '^ *+' conftest.er1 >conftest.err
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } &&
9252 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9253 { (case "(($ac_try" in
9254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9255 *) ac_try_echo=$ac_try;;
9257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9258 (eval "$ac_try") 2>&5
9260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261 (exit $ac_status); }; } &&
9262 { ac_try='test -s conftest.$ac_objext'
9263 { (case "(($ac_try" in
9264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9265 *) ac_try_echo=$ac_try;;
9267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9268 (eval "$ac_try") 2>&5
9270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9271 (exit $ac_status); }; }; then
9272 ac_header_compiler=yes
9274 echo "$as_me: failed program was:" >&5
9275 sed 's/^/| /' conftest.$ac_ext >&5
9277 ac_header_compiler=no
9280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9281 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9282 echo "${ECHO_T}$ac_header_compiler" >&6; }
9284 # Is the header present?
9285 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9286 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9287 cat >conftest.$ac_ext <<_ACEOF
9290 cat confdefs.h >>conftest.$ac_ext
9291 cat >>conftest.$ac_ext <<_ACEOF
9292 /* end confdefs.h. */
9293 #include <$ac_header>
9295 if { (ac_try="$ac_cpp conftest.$ac_ext"
9297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9298 *) ac_try_echo=$ac_try;;
9300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9303 grep -v '^ *+' conftest.er1 >conftest.err
9305 cat conftest.err >&5
9306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9307 (exit $ac_status); } >/dev/null; then
9308 if test -s conftest.err; then
9309 ac_cpp_err=$ac_c_preproc_warn_flag
9310 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9317 if test -z "$ac_cpp_err"; then
9318 ac_header_preproc=yes
9320 echo "$as_me: failed program was:" >&5
9321 sed 's/^/| /' conftest.$ac_ext >&5
9323 ac_header_preproc=no
9326 rm -f conftest.err conftest.$ac_ext
9327 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9328 echo "${ECHO_T}$ac_header_preproc" >&6; }
9330 # So? What about this header?
9331 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9333 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9334 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9335 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9336 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9337 ac_header_preproc=yes
9340 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9341 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9342 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9343 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9344 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9345 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9346 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9347 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9348 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9349 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9350 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9351 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9353 ## ----------------------------------- ##
9354 ## Report this to llvmbugs@cs.uiuc.edu ##
9355 ## ----------------------------------- ##
9357 ) | sed "s/^/$as_me: WARNING: /" >&2
9360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 eval "$as_ac_Header=\$ac_header_preproc"
9367 ac_res=`eval echo '${'$as_ac_Header'}'`
9368 { echo "$as_me:$LINENO: result: $ac_res" >&5
9369 echo "${ECHO_T}$ac_res" >&6; }
9372 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9373 cat >>confdefs.h <<_ACEOF
9374 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9381 # Check whether --enable-ltdl-install was given.
9382 if test "${enable_ltdl_install+set}" = set; then
9383 enableval=$enable_ltdl_install;
9389 if test x"${enable_ltdl_install-no}" != xno; then
9391 INSTALL_LTDL_FALSE='#'
9393 INSTALL_LTDL_TRUE='#'
9399 if test x"${enable_ltdl_convenience-no}" != xno; then
9400 CONVENIENCE_LTDL_TRUE=
9401 CONVENIENCE_LTDL_FALSE='#'
9403 CONVENIENCE_LTDL_TRUE='#'
9404 CONVENIENCE_LTDL_FALSE=
9408 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9409 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9411 libname_spec='lib$name'
9419 shlibpath_overrides_runpath=unknown
9421 dynamic_linker="$host_os ld.so"
9422 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9423 if test "$GCC" = yes; then
9424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9425 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9426 # if the path contains ";" then we assume it to be the separator
9427 # otherwise default to the standard path separator (i.e. ":") - it is
9428 # assumed that no part of a normal pathname contains ";" but that should
9429 # okay in the real world where ";" in dirpaths is itself problematic.
9430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9435 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9437 need_lib_prefix=unknown
9438 hardcode_into_libs=no
9440 # when you set need_version to no, make sure it does not cause -set_version
9441 # flags to be left without arguments
9442 need_version=unknown
9447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9448 shlibpath_var=LIBPATH
9450 # AIX 3 has no versioning support, so we append a major version to the name.
9451 soname_spec='${libname}${release}${shared_ext}$major'
9458 hardcode_into_libs=yes
9459 if test "$host_cpu" = ia64; then
9460 # AIX 5 supports IA64
9461 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9462 shlibpath_var=LD_LIBRARY_PATH
9464 # With GCC up to 2.95.x, collect2 would create an import file
9465 # for dependence libraries. The import file would start with
9466 # the line `#! .'. This would cause the generated library to
9467 # depend on `.', always an invalid library. This was fixed in
9468 # development snapshots of GCC prior to 3.0.
9470 aix4 | aix4.[01] | aix4.[01].*)
9471 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9473 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9480 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9481 # soname into executable. Probably we can add versioning support to
9482 # collect2, so additional links can be useful in future.
9483 if test "$aix_use_runtimelinking" = yes; then
9484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9485 # instead of lib<name>.a to let people know that these are not
9486 # typical AIX shared libraries.
9487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9489 # We preserve .a as extension for shared libraries through AIX4.2
9490 # and later when we are not doing run time linking.
9491 library_names_spec='${libname}${release}.a $libname.a'
9492 soname_spec='${libname}${release}${shared_ext}$major'
9494 shlibpath_var=LIBPATH
9499 library_names_spec='$libname.ixlibrary $libname.a'
9500 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9501 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'
9505 library_names_spec='${libname}${shared_ext}'
9506 dynamic_linker="$host_os ld.so"
9507 shlibpath_var=LIBRARY_PATH
9513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9514 soname_spec='${libname}${release}${shared_ext}$major'
9515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9516 shlibpath_var=LD_LIBRARY_PATH
9517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9519 # the default ld.so.conf also contains /usr/contrib/lib and
9520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9521 # libtool to hard-code these into programs
9524 cygwin* | mingw* | pw32*)
9525 version_type=windows
9530 case $GCC,$host_os in
9531 yes,cygwin* | yes,mingw* | yes,pw32*)
9532 library_names_spec='$libname.dll.a'
9533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9534 postinstall_cmds='base_file=`basename \${file}`~
9535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9536 dldir=$destdir/`dirname \$dlpath`~
9537 test -d \$dldir || mkdir -p \$dldir~
9538 $install_prog $dir/$dlname \$dldir/$dlname~
9539 chmod a+x \$dldir/$dlname'
9540 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9541 dlpath=$dir/\$dldll~
9543 shlibpath_overrides_runpath=yes
9547 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9548 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9549 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9552 # MinGW DLLs use traditional 'lib' prefix
9553 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9554 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9555 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9556 # It is most probably a Windows format PATH printed by
9557 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9558 # path with ; separators, and with drive letters. We can handle the
9559 # drive letters (cygwin fileutils understands them), so leave them,
9560 # especially as we might pass files found there to a mingw objdump,
9561 # which wouldn't understand a cygwinified path. Ahh.
9562 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9564 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9568 # pw32 DLLs use 'pw' prefix rather than 'lib'
9569 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9575 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9578 dynamic_linker='Win32 ld.exe'
9579 # FIXME: first we should search . and the directory the executable is in
9583 darwin* | rhapsody*)
9584 dynamic_linker="$host_os dyld"
9588 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9589 soname_spec='${libname}${release}${major}$shared_ext'
9590 shlibpath_overrides_runpath=yes
9591 shlibpath_var=DYLD_LIBRARY_PATH
9592 shrext_cmds='.dylib'
9593 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9594 if test "$GCC" = yes; then
9595 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"`
9597 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9599 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9607 soname_spec='${libname}${release}${shared_ext}$major'
9608 shlibpath_var=LD_LIBRARY_PATH
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 shlibpath_var=LD_LIBRARY_PATH
9622 shlibpath_overrides_runpath=no
9623 hardcode_into_libs=yes
9624 dynamic_linker='GNU ld.so'
9627 freebsd* | dragonfly*)
9628 # DragonFly does not have aout. When/if they implement a new
9629 # versioning mechanism, adjust this.
9630 if test -x /usr/bin/objformat; then
9631 objformat=`/usr/bin/objformat`
9634 freebsd[123]*) objformat=aout ;;
9638 version_type=freebsd-$objformat
9639 case $version_type in
9641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9650 shlibpath_var=LD_LIBRARY_PATH
9653 shlibpath_overrides_runpath=yes
9655 freebsd3.[01]* | freebsdelf3.[01]*)
9656 shlibpath_overrides_runpath=yes
9657 hardcode_into_libs=yes
9659 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9660 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9661 shlibpath_overrides_runpath=no
9662 hardcode_into_libs=yes
9664 freebsd*) # from 4.6 on
9665 shlibpath_overrides_runpath=yes
9666 hardcode_into_libs=yes
9675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9676 soname_spec='${libname}${release}${shared_ext}$major'
9677 shlibpath_var=LD_LIBRARY_PATH
9678 hardcode_into_libs=yes
9681 hpux9* | hpux10* | hpux11*)
9682 # Give a soname corresponding to the major version so that dld.sl refuses to
9683 # link against other versions.
9690 hardcode_into_libs=yes
9691 dynamic_linker="$host_os dld.so"
9692 shlibpath_var=LD_LIBRARY_PATH
9693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9695 soname_spec='${libname}${release}${shared_ext}$major'
9696 if test "X$HPUX_IA64_MODE" = X32; then
9697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9705 hardcode_into_libs=yes
9706 dynamic_linker="$host_os dld.sl"
9707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9710 soname_spec='${libname}${release}${shared_ext}$major'
9711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9716 dynamic_linker="$host_os dld.sl"
9717 shlibpath_var=SHLIB_PATH
9718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9720 soname_spec='${libname}${release}${shared_ext}$major'
9723 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9724 postinstall_cmds='chmod 555 $lib'
9731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9732 soname_spec='${libname}${release}${shared_ext}$major'
9733 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9734 shlibpath_var=LD_LIBRARY_PATH
9735 shlibpath_overrides_runpath=no
9736 hardcode_into_libs=yes
9739 irix5* | irix6* | nonstopux*)
9741 nonstopux*) version_type=nonstopux ;;
9743 if test "$lt_cv_prog_gnu_ld" = yes; then
9751 soname_spec='${libname}${release}${shared_ext}$major'
9752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9754 irix5* | nonstopux*)
9758 case $LD in # libtool.m4 will add one of these switches to LD
9759 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9760 libsuff= shlibsuff= libmagic=32-bit;;
9761 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9762 libsuff=32 shlibsuff=N32 libmagic=N32;;
9763 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9764 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9765 *) libsuff= shlibsuff= libmagic=never-match;;
9769 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9770 shlibpath_overrides_runpath=no
9771 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9772 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9773 hardcode_into_libs=yes
9776 # No shared lib support for Linux oldld, aout, or coff.
9777 linux*oldld* | linux*aout* | linux*coff*)
9781 # This must be Linux ELF.
9786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9787 soname_spec='${libname}${release}${shared_ext}$major'
9788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9789 shlibpath_var=LD_LIBRARY_PATH
9790 shlibpath_overrides_runpath=no
9791 # This implies no fast_install, which is unacceptable.
9792 # Some rework will be needed to allow for fast_install
9793 # before this can be enabled.
9794 hardcode_into_libs=yes
9796 # Append ld.so.conf contents to the search path
9797 if test -f /etc/ld.so.conf; then
9798 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' ' '`
9799 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9802 # We used to test for /lib/ld.so.1 and disable shared libraries on
9803 # powerpc, because MkLinux only supported shared libraries with the
9804 # GNU dynamic linker. Since this was broken with cross compilers,
9805 # most powerpc-linux boxes support dynamic linking these days and
9806 # people can always --disable-shared, the test was removed, and we
9807 # assume the GNU/Linux dynamic linker is in use.
9808 dynamic_linker='GNU/Linux ld.so'
9815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9816 soname_spec='${libname}${release}${shared_ext}$major'
9817 shlibpath_var=LD_LIBRARY_PATH
9818 shlibpath_overrides_runpath=no
9819 hardcode_into_libs=yes
9820 dynamic_linker='GNU ld.so'
9827 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9829 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9830 dynamic_linker='NetBSD (a.out) ld.so'
9832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9833 soname_spec='${libname}${release}${shared_ext}$major'
9834 dynamic_linker='NetBSD ld.elf_so'
9836 shlibpath_var=LD_LIBRARY_PATH
9837 shlibpath_overrides_runpath=yes
9838 hardcode_into_libs=yes
9843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9844 shlibpath_var=LD_LIBRARY_PATH
9845 shlibpath_overrides_runpath=yes
9852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9853 soname_spec='${libname}${release}${shared_ext}$major'
9854 shlibpath_var=LD_LIBRARY_PATH
9855 shlibpath_overrides_runpath=yes
9860 sys_lib_dlsearch_path_spec="/usr/lib"
9862 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9864 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9865 *) need_version=no ;;
9867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9869 shlibpath_var=LD_LIBRARY_PATH
9870 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9872 openbsd2.[89] | openbsd2.[89].*)
9873 shlibpath_overrides_runpath=no
9876 shlibpath_overrides_runpath=yes
9880 shlibpath_overrides_runpath=yes
9885 libname_spec='$name'
9888 library_names_spec='$libname${shared_ext} $libname.a'
9889 dynamic_linker='OS/2 ld.exe'
9890 shlibpath_var=LIBPATH
9893 osf3* | osf4* | osf5*)
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9899 shlibpath_var=LD_LIBRARY_PATH
9900 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9901 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9909 soname_spec='${libname}${release}${shared_ext}$major'
9910 shlibpath_var=LD_LIBRARY_PATH
9911 shlibpath_overrides_runpath=yes
9912 hardcode_into_libs=yes
9913 # ldd complains unless libraries are executable
9914 postinstall_cmds='chmod +x $lib'
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9920 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9921 shlibpath_var=LD_LIBRARY_PATH
9922 shlibpath_overrides_runpath=yes
9923 if test "$with_gnu_ld" = yes; then
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 case $host_vendor in
9936 shlibpath_overrides_runpath=no
9938 export_dynamic_flag_spec='${wl}-Blargedynsym'
9939 runpath_var=LD_RUN_PATH
9947 shlibpath_overrides_runpath=no
9948 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9954 if test -d /usr/nec ;then
9956 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9957 soname_spec='$libname${shared_ext}.$major'
9958 shlibpath_var=LD_LIBRARY_PATH
9962 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9963 version_type=freebsd-elf
9966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9967 soname_spec='${libname}${release}${shared_ext}$major'
9968 shlibpath_var=LD_LIBRARY_PATH
9969 hardcode_into_libs=yes
9970 if test "$with_gnu_ld" = yes; then
9971 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9972 shlibpath_overrides_runpath=no
9974 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9975 shlibpath_overrides_runpath=yes
9978 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9982 sys_lib_dlsearch_path_spec='/usr/lib'
9987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9988 soname_spec='${libname}${release}${shared_ext}$major'
9989 shlibpath_var=LD_LIBRARY_PATH
9996 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9997 echo "${ECHO_T}$dynamic_linker" >&6; }
9998 test "$dynamic_linker" = no && can_build_shared=no
10000 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10001 if test "$GCC" = yes; then
10002 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10006 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10007 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10008 if test "${libltdl_cv_shlibext+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10013 eval libltdl_cv_shlibext=$shrext_cmds
10016 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10017 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10018 if test -n "$libltdl_cv_shlibext"; then
10020 cat >>confdefs.h <<_ACEOF
10021 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10027 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10028 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10029 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10030 echo $ECHO_N "(cached) $ECHO_C" >&6
10032 libltdl_cv_shlibpath_var="$shlibpath_var"
10034 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10035 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10036 if test -n "$libltdl_cv_shlibpath_var"; then
10038 cat >>confdefs.h <<_ACEOF
10039 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10045 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10046 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10047 if test "${libltdl_cv_sys_search_path+set}" = set; then
10048 echo $ECHO_N "(cached) $ECHO_C" >&6
10050 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10052 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10053 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10054 if test -n "$libltdl_cv_sys_search_path"; then
10056 for dir in $libltdl_cv_sys_search_path; do
10057 if test -z "$sys_search_path"; then
10058 sys_search_path="$dir"
10060 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10064 cat >>confdefs.h <<_ACEOF
10065 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10070 { echo "$as_me:$LINENO: checking for objdir" >&5
10071 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10072 if test "${libltdl_cv_objdir+set}" = set; then
10073 echo $ECHO_N "(cached) $ECHO_C" >&6
10075 libltdl_cv_objdir="$objdir"
10076 if test -n "$objdir"; then
10079 rm -f .libs 2>/dev/null
10080 mkdir .libs 2>/dev/null
10081 if test -d .libs; then
10082 libltdl_cv_objdir=.libs
10084 # MS-DOS does not allow filenames that begin with a dot.
10085 libltdl_cv_objdir=_libs
10087 rmdir .libs 2>/dev/null
10091 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10092 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10094 cat >>confdefs.h <<_ACEOF
10095 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10103 # Check for command to grab the raw symbol name followed by C symbol from nm.
10104 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10105 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10106 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10107 echo $ECHO_N "(cached) $ECHO_C" >&6
10110 # These are sane defaults that work on at least a few old systems.
10111 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10113 # Character class describing NM global symbol codes.
10114 symcode='[BCDEGRST]'
10116 # Regexp to match symbols that can be accessed directly from C.
10117 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10119 # Transform an extracted symbol line into a proper C declaration
10120 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10122 # Transform an extracted symbol line into symbol name and symbol address
10123 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'"
10125 # Define system-specific variables.
10130 cygwin* | mingw* | pw32*)
10131 symcode='[ABCDGISTW]'
10133 hpux*) # Its linker distinguishes data from code symbols
10134 if test "$host_cpu" = ia64; then
10135 symcode='[ABCDEGRST]'
10137 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10138 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'"
10141 if test "$host_cpu" = ia64; then
10142 symcode='[ABCDGIRSTW]'
10143 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10144 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'"
10147 irix* | nonstopux*)
10148 symcode='[BCDEGRST]'
10151 symcode='[BCDEGQRST]'
10162 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10170 # Handle CRLF in mingw tool chain
10174 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10178 # If we're using GNU nm, then use its standard symbol codes.
10179 case `$NM -V 2>&1` in
10180 *GNU* | *'with BFD'*)
10181 symcode='[ABCDGIRSTW]' ;;
10184 # Try without a prefix undercore, then with it.
10185 for ac_symprfx in "" "_"; do
10187 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10188 symxfrm="\\1 $ac_symprfx\\2 \\2"
10190 # Write the raw and C identifiers.
10191 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10193 # Check to see that the pipe works correctly.
10197 cat > conftest.$ac_ext <<EOF
10202 void nm_test_func(){}
10206 int main(){nm_test_var='a';nm_test_func();return(0);}
10209 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10210 (eval $ac_compile) 2>&5
10212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10213 (exit $ac_status); }; then
10214 # Now try to grab the symbols.
10216 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10217 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && test -s "$nlist"; then
10221 # Try sorting and uniquifying the output.
10222 if sort "$nlist" | uniq > "$nlist"T; then
10223 mv -f "$nlist"T "$nlist"
10228 # Make sure that we snagged all the symbols we need.
10229 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10230 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10231 cat <<EOF > conftest.$ac_ext
10237 # Now generate the symbol file.
10238 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10240 cat <<EOF >> conftest.$ac_ext
10241 #if defined (__STDC__) && __STDC__
10242 # define lt_ptr_t void *
10244 # define lt_ptr_t char *
10248 /* The mapping between symbol names and symbols. */
10253 lt_preloaded_symbols[] =
10256 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10257 cat <<\EOF >> conftest.$ac_ext
10265 # Now try linking the two files.
10266 mv conftest.$ac_objext conftstm.$ac_objext
10267 lt_save_LIBS="$LIBS"
10268 lt_save_CFLAGS="$CFLAGS"
10269 LIBS="conftstm.$ac_objext"
10270 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10271 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10272 (eval $ac_link) 2>&5
10274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10275 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10278 LIBS="$lt_save_LIBS"
10279 CFLAGS="$lt_save_CFLAGS"
10281 echo "cannot find nm_test_func in $nlist" >&5
10284 echo "cannot find nm_test_var in $nlist" >&5
10287 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10290 echo "$progname: failed program was:" >&5
10291 cat conftest.$ac_ext >&5
10293 rm -f conftest* conftst*
10295 # Do not use the global_symbol_pipe unless it works.
10296 if test "$pipe_works" = yes; then
10299 lt_cv_sys_global_symbol_pipe=
10305 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10306 lt_cv_sys_global_symbol_to_cdecl=
10308 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10309 { echo "$as_me:$LINENO: result: failed" >&5
10310 echo "${ECHO_T}failed" >&6; }
10312 { echo "$as_me:$LINENO: result: ok" >&5
10313 echo "${ECHO_T}ok" >&6; }
10317 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10318 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10319 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10320 echo $ECHO_N "(cached) $ECHO_C" >&6
10322 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10323 libltdl_cv_preloaded_symbols=yes
10325 libltdl_cv_preloaded_symbols=no
10329 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10330 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10331 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10333 cat >>confdefs.h <<\_ACEOF
10334 #define HAVE_PRELOADED_SYMBOLS 1
10342 ac_cpp='$CPP $CPPFLAGS'
10343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10348 { echo "$as_me:$LINENO: checking for shl_load" >&5
10349 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10350 if test "${ac_cv_func_shl_load+set}" = set; then
10351 echo $ECHO_N "(cached) $ECHO_C" >&6
10353 cat >conftest.$ac_ext <<_ACEOF
10356 cat confdefs.h >>conftest.$ac_ext
10357 cat >>conftest.$ac_ext <<_ACEOF
10358 /* end confdefs.h. */
10359 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10361 #define shl_load innocuous_shl_load
10363 /* System header to define __stub macros and hopefully few prototypes,
10364 which can conflict with char shl_load (); below.
10365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10366 <limits.h> exists even on freestanding compilers. */
10369 # include <limits.h>
10371 # include <assert.h>
10376 /* Override any GCC internal prototype to avoid an error.
10377 Use char because int might match the return type of a GCC
10378 builtin and then its argument prototype would still apply. */
10383 /* The GNU C library defines this for functions which it implements
10384 to always fail with ENOSYS. Some functions are actually named
10385 something starting with __ and the normal name is an alias. */
10386 #if defined __stub_shl_load || defined __stub___shl_load
10393 return shl_load ();
10398 rm -f conftest.$ac_objext conftest$ac_exeext
10399 if { (ac_try="$ac_link"
10400 case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_link") 2>conftest.er1
10407 grep -v '^ *+' conftest.er1 >conftest.err
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } &&
10412 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10413 { (case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_try") 2>&5
10420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10421 (exit $ac_status); }; } &&
10422 { ac_try='test -s conftest$ac_exeext'
10423 { (case "(($ac_try" in
10424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10425 *) ac_try_echo=$ac_try;;
10427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10428 (eval "$ac_try") 2>&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); }; }; then
10432 ac_cv_func_shl_load=yes
10434 echo "$as_me: failed program was:" >&5
10435 sed 's/^/| /' conftest.$ac_ext >&5
10437 ac_cv_func_shl_load=no
10440 rm -f core conftest.err conftest.$ac_objext \
10441 conftest$ac_exeext conftest.$ac_ext
10443 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10444 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10445 if test $ac_cv_func_shl_load = yes; then
10447 cat >>confdefs.h <<\_ACEOF
10448 #define HAVE_SHL_LOAD 1
10452 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10453 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10454 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10455 echo $ECHO_N "(cached) $ECHO_C" >&6
10457 ac_check_lib_save_LIBS=$LIBS
10459 cat >conftest.$ac_ext <<_ACEOF
10462 cat confdefs.h >>conftest.$ac_ext
10463 cat >>conftest.$ac_ext <<_ACEOF
10464 /* end confdefs.h. */
10466 /* Override any GCC internal prototype to avoid an error.
10467 Use char because int might match the return type of a GCC
10468 builtin and then its argument prototype would still apply. */
10476 return shl_load ();
10481 rm -f conftest.$ac_objext conftest$ac_exeext
10482 if { (ac_try="$ac_link"
10483 case "(($ac_try" in
10484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10485 *) ac_try_echo=$ac_try;;
10487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10488 (eval "$ac_link") 2>conftest.er1
10490 grep -v '^ *+' conftest.er1 >conftest.err
10492 cat conftest.err >&5
10493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10494 (exit $ac_status); } &&
10495 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10496 { (case "(($ac_try" in
10497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10498 *) ac_try_echo=$ac_try;;
10500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10501 (eval "$ac_try") 2>&5
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest$ac_exeext'
10506 { (case "(($ac_try" in
10507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10508 *) ac_try_echo=$ac_try;;
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_try") 2>&5
10513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10514 (exit $ac_status); }; }; then
10515 ac_cv_lib_dld_shl_load=yes
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.$ac_ext >&5
10520 ac_cv_lib_dld_shl_load=no
10523 rm -f core conftest.err conftest.$ac_objext \
10524 conftest$ac_exeext conftest.$ac_ext
10525 LIBS=$ac_check_lib_save_LIBS
10527 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10528 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10529 if test $ac_cv_lib_dld_shl_load = yes; then
10531 cat >>confdefs.h <<\_ACEOF
10532 #define HAVE_SHL_LOAD 1
10535 LIBADD_DL="$LIBADD_DL -ldld"
10537 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10538 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10539 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10540 echo $ECHO_N "(cached) $ECHO_C" >&6
10542 ac_check_lib_save_LIBS=$LIBS
10544 cat >conftest.$ac_ext <<_ACEOF
10547 cat confdefs.h >>conftest.$ac_ext
10548 cat >>conftest.$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10551 /* Override any GCC internal prototype to avoid an error.
10552 Use char because int might match the return type of a GCC
10553 builtin and then its argument prototype would still apply. */
10566 rm -f conftest.$ac_objext conftest$ac_exeext
10567 if { (ac_try="$ac_link"
10568 case "(($ac_try" in
10569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10570 *) ac_try_echo=$ac_try;;
10572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10573 (eval "$ac_link") 2>conftest.er1
10575 grep -v '^ *+' conftest.er1 >conftest.err
10577 cat conftest.err >&5
10578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579 (exit $ac_status); } &&
10580 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10581 { (case "(($ac_try" in
10582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10583 *) ac_try_echo=$ac_try;;
10585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10586 (eval "$ac_try") 2>&5
10588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10589 (exit $ac_status); }; } &&
10590 { ac_try='test -s conftest$ac_exeext'
10591 { (case "(($ac_try" in
10592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10593 *) ac_try_echo=$ac_try;;
10595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10596 (eval "$ac_try") 2>&5
10598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10599 (exit $ac_status); }; }; then
10600 ac_cv_lib_dl_dlopen=yes
10602 echo "$as_me: failed program was:" >&5
10603 sed 's/^/| /' conftest.$ac_ext >&5
10605 ac_cv_lib_dl_dlopen=no
10608 rm -f core conftest.err conftest.$ac_objext \
10609 conftest$ac_exeext conftest.$ac_ext
10610 LIBS=$ac_check_lib_save_LIBS
10612 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10613 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10614 if test $ac_cv_lib_dl_dlopen = yes; then
10616 cat >>confdefs.h <<\_ACEOF
10617 #define HAVE_LIBDL 1
10620 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10622 cat >conftest.$ac_ext <<_ACEOF
10625 cat confdefs.h >>conftest.$ac_ext
10626 cat >>conftest.$ac_ext <<_ACEOF
10627 /* end confdefs.h. */
10629 # include <dlfcn.h>
10640 rm -f conftest.$ac_objext conftest$ac_exeext
10641 if { (ac_try="$ac_link"
10642 case "(($ac_try" in
10643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10644 *) ac_try_echo=$ac_try;;
10646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10647 (eval "$ac_link") 2>conftest.er1
10649 grep -v '^ *+' conftest.er1 >conftest.err
10651 cat conftest.err >&5
10652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10653 (exit $ac_status); } &&
10654 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10655 { (case "(($ac_try" in
10656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10657 *) ac_try_echo=$ac_try;;
10659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10660 (eval "$ac_try") 2>&5
10662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10663 (exit $ac_status); }; } &&
10664 { ac_try='test -s conftest$ac_exeext'
10665 { (case "(($ac_try" in
10666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10667 *) ac_try_echo=$ac_try;;
10669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10670 (eval "$ac_try") 2>&5
10672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10673 (exit $ac_status); }; }; then
10675 cat >>confdefs.h <<\_ACEOF
10676 #define HAVE_LIBDL 1
10678 libltdl_cv_func_dlopen="yes"
10680 echo "$as_me: failed program was:" >&5
10681 sed 's/^/| /' conftest.$ac_ext >&5
10683 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10684 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10685 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10686 echo $ECHO_N "(cached) $ECHO_C" >&6
10688 ac_check_lib_save_LIBS=$LIBS
10689 LIBS="-lsvld $LIBS"
10690 cat >conftest.$ac_ext <<_ACEOF
10693 cat confdefs.h >>conftest.$ac_ext
10694 cat >>conftest.$ac_ext <<_ACEOF
10695 /* end confdefs.h. */
10697 /* Override any GCC internal prototype to avoid an error.
10698 Use char because int might match the return type of a GCC
10699 builtin and then its argument prototype would still apply. */
10712 rm -f conftest.$ac_objext conftest$ac_exeext
10713 if { (ac_try="$ac_link"
10714 case "(($ac_try" in
10715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } &&
10726 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10727 { (case "(($ac_try" in
10728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729 *) ac_try_echo=$ac_try;;
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732 (eval "$ac_try") 2>&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); }; } &&
10736 { ac_try='test -s conftest$ac_exeext'
10737 { (case "(($ac_try" in
10738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10739 *) ac_try_echo=$ac_try;;
10741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10742 (eval "$ac_try") 2>&5
10744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10745 (exit $ac_status); }; }; then
10746 ac_cv_lib_svld_dlopen=yes
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 ac_cv_lib_svld_dlopen=no
10754 rm -f core conftest.err conftest.$ac_objext \
10755 conftest$ac_exeext conftest.$ac_ext
10756 LIBS=$ac_check_lib_save_LIBS
10758 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10759 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10760 if test $ac_cv_lib_svld_dlopen = yes; then
10762 cat >>confdefs.h <<\_ACEOF
10763 #define HAVE_LIBDL 1
10766 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10768 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10769 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10770 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10771 echo $ECHO_N "(cached) $ECHO_C" >&6
10773 ac_check_lib_save_LIBS=$LIBS
10775 cat >conftest.$ac_ext <<_ACEOF
10778 cat confdefs.h >>conftest.$ac_ext
10779 cat >>conftest.$ac_ext <<_ACEOF
10780 /* end confdefs.h. */
10782 /* Override any GCC internal prototype to avoid an error.
10783 Use char because int might match the return type of a GCC
10784 builtin and then its argument prototype would still apply. */
10792 return dld_link ();
10797 rm -f conftest.$ac_objext conftest$ac_exeext
10798 if { (ac_try="$ac_link"
10799 case "(($ac_try" in
10800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10801 *) ac_try_echo=$ac_try;;
10803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10804 (eval "$ac_link") 2>conftest.er1
10806 grep -v '^ *+' conftest.er1 >conftest.err
10808 cat conftest.err >&5
10809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10810 (exit $ac_status); } &&
10811 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10812 { (case "(($ac_try" in
10813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10814 *) ac_try_echo=$ac_try;;
10816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10817 (eval "$ac_try") 2>&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); }; } &&
10821 { ac_try='test -s conftest$ac_exeext'
10822 { (case "(($ac_try" in
10823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10824 *) ac_try_echo=$ac_try;;
10826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10827 (eval "$ac_try") 2>&5
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; }; then
10831 ac_cv_lib_dld_dld_link=yes
10833 echo "$as_me: failed program was:" >&5
10834 sed 's/^/| /' conftest.$ac_ext >&5
10836 ac_cv_lib_dld_dld_link=no
10839 rm -f core conftest.err conftest.$ac_objext \
10840 conftest$ac_exeext conftest.$ac_ext
10841 LIBS=$ac_check_lib_save_LIBS
10843 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10844 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10845 if test $ac_cv_lib_dld_dld_link = yes; then
10847 cat >>confdefs.h <<\_ACEOF
10851 LIBADD_DL="$LIBADD_DL -ldld"
10853 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10854 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10855 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10856 echo $ECHO_N "(cached) $ECHO_C" >&6
10858 cat >conftest.$ac_ext <<_ACEOF
10861 cat confdefs.h >>conftest.$ac_ext
10862 cat >>conftest.$ac_ext <<_ACEOF
10863 /* end confdefs.h. */
10864 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10866 #define _dyld_func_lookup innocuous__dyld_func_lookup
10868 /* System header to define __stub macros and hopefully few prototypes,
10869 which can conflict with char _dyld_func_lookup (); below.
10870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10871 <limits.h> exists even on freestanding compilers. */
10874 # include <limits.h>
10876 # include <assert.h>
10879 #undef _dyld_func_lookup
10881 /* Override any GCC internal prototype to avoid an error.
10882 Use char because int might match the return type of a GCC
10883 builtin and then its argument prototype would still apply. */
10887 char _dyld_func_lookup ();
10888 /* The GNU C library defines this for functions which it implements
10889 to always fail with ENOSYS. Some functions are actually named
10890 something starting with __ and the normal name is an alias. */
10891 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10898 return _dyld_func_lookup ();
10903 rm -f conftest.$ac_objext conftest$ac_exeext
10904 if { (ac_try="$ac_link"
10905 case "(($ac_try" in
10906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10907 *) ac_try_echo=$ac_try;;
10909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10910 (eval "$ac_link") 2>conftest.er1
10912 grep -v '^ *+' conftest.er1 >conftest.err
10914 cat conftest.err >&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); } &&
10917 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10918 { (case "(($ac_try" in
10919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10920 *) ac_try_echo=$ac_try;;
10922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10923 (eval "$ac_try") 2>&5
10925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10926 (exit $ac_status); }; } &&
10927 { ac_try='test -s conftest$ac_exeext'
10928 { (case "(($ac_try" in
10929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10930 *) ac_try_echo=$ac_try;;
10932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10933 (eval "$ac_try") 2>&5
10935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10936 (exit $ac_status); }; }; then
10937 ac_cv_func__dyld_func_lookup=yes
10939 echo "$as_me: failed program was:" >&5
10940 sed 's/^/| /' conftest.$ac_ext >&5
10942 ac_cv_func__dyld_func_lookup=no
10945 rm -f core conftest.err conftest.$ac_objext \
10946 conftest$ac_exeext conftest.$ac_ext
10948 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10949 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10950 if test $ac_cv_func__dyld_func_lookup = yes; then
10952 cat >>confdefs.h <<\_ACEOF
10953 #define HAVE_DYLD 1
10967 rm -f core conftest.err conftest.$ac_objext \
10968 conftest$ac_exeext conftest.$ac_ext
10979 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10981 lt_save_LIBS="$LIBS"
10982 LIBS="$LIBS $LIBADD_DL"
10984 for ac_func in dlerror
10986 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10987 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10988 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10989 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10990 echo $ECHO_N "(cached) $ECHO_C" >&6
10992 cat >conftest.$ac_ext <<_ACEOF
10995 cat confdefs.h >>conftest.$ac_ext
10996 cat >>conftest.$ac_ext <<_ACEOF
10997 /* end confdefs.h. */
10998 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10999 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11000 #define $ac_func innocuous_$ac_func
11002 /* System header to define __stub macros and hopefully few prototypes,
11003 which can conflict with char $ac_func (); below.
11004 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11005 <limits.h> exists even on freestanding compilers. */
11008 # include <limits.h>
11010 # include <assert.h>
11015 /* Override any GCC internal prototype to avoid an error.
11016 Use char because int might match the return type of a GCC
11017 builtin and then its argument prototype would still apply. */
11022 /* The GNU C library defines this for functions which it implements
11023 to always fail with ENOSYS. Some functions are actually named
11024 something starting with __ and the normal name is an alias. */
11025 #if defined __stub_$ac_func || defined __stub___$ac_func
11032 return $ac_func ();
11037 rm -f conftest.$ac_objext conftest$ac_exeext
11038 if { (ac_try="$ac_link"
11039 case "(($ac_try" in
11040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11041 *) ac_try_echo=$ac_try;;
11043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11044 (eval "$ac_link") 2>conftest.er1
11046 grep -v '^ *+' conftest.er1 >conftest.err
11048 cat conftest.err >&5
11049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11050 (exit $ac_status); } &&
11051 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11052 { (case "(($ac_try" in
11053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11054 *) ac_try_echo=$ac_try;;
11056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11057 (eval "$ac_try") 2>&5
11059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11060 (exit $ac_status); }; } &&
11061 { ac_try='test -s conftest$ac_exeext'
11062 { (case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_try") 2>&5
11069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11070 (exit $ac_status); }; }; then
11071 eval "$as_ac_var=yes"
11073 echo "$as_me: failed program was:" >&5
11074 sed 's/^/| /' conftest.$ac_ext >&5
11076 eval "$as_ac_var=no"
11079 rm -f core conftest.err conftest.$ac_objext \
11080 conftest$ac_exeext conftest.$ac_ext
11082 ac_res=`eval echo '${'$as_ac_var'}'`
11083 { echo "$as_me:$LINENO: result: $ac_res" >&5
11084 echo "${ECHO_T}$ac_res" >&6; }
11085 if test `eval echo '${'$as_ac_var'}'` = yes; then
11086 cat >>confdefs.h <<_ACEOF
11087 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11093 LIBS="$lt_save_LIBS"
11096 ac_cpp='$CPP $CPPFLAGS'
11097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11103 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11104 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11105 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11106 echo $ECHO_N "(cached) $ECHO_C" >&6
11108 ac_cv_sys_symbol_underscore=no
11109 cat > conftest.$ac_ext <<EOF
11110 void nm_test_func(){}
11111 int main(){nm_test_func;return 0;}
11113 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11114 (eval $ac_compile) 2>&5
11116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117 (exit $ac_status); }; then
11118 # Now try to grab the symbols.
11119 ac_nlist=conftest.nm
11120 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11121 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124 (exit $ac_status); } && test -s "$ac_nlist"; then
11125 # See whether the symbols have a leading underscore.
11126 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11127 ac_cv_sys_symbol_underscore=yes
11129 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11132 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11136 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11139 echo "configure: failed program was:" >&5
11145 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11146 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11149 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11150 if test x"$libltdl_cv_func_dlopen" = xyes ||
11151 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11152 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11153 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11154 if test "${libltdl_cv_need_uscore+set}" = set; then
11155 echo $ECHO_N "(cached) $ECHO_C" >&6
11157 libltdl_cv_need_uscore=unknown
11159 LIBS="$LIBS $LIBADD_DL"
11160 if test "$cross_compiling" = yes; then :
11161 libltdl_cv_need_uscore=cross
11163 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11164 lt_status=$lt_dlunknown
11165 cat > conftest.$ac_ext <<EOF
11166 #line 11166 "configure"
11167 #include "confdefs.h"
11176 # define LT_DLGLOBAL RTLD_GLOBAL
11179 # define LT_DLGLOBAL DL_GLOBAL
11181 # define LT_DLGLOBAL 0
11185 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11186 find out it does not work in some platform. */
11187 #ifndef LT_DLLAZY_OR_NOW
11189 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11192 # define LT_DLLAZY_OR_NOW DL_LAZY
11195 # define LT_DLLAZY_OR_NOW RTLD_NOW
11198 # define LT_DLLAZY_OR_NOW DL_NOW
11200 # define LT_DLLAZY_OR_NOW 0
11208 extern "C" void exit (int);
11211 void fnord() { int i=42;}
11214 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11215 int status = $lt_dlunknown;
11219 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11220 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11221 /* dlclose (self); */
11229 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11230 (eval $ac_link) 2>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11234 (./conftest; exit; ) >&5 2>/dev/null
11236 case x$lt_status in
11237 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11238 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11239 x$lt_dlunknown|x*) ;;
11242 # compilation failed
11251 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11252 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11256 if test x"$libltdl_cv_need_uscore" = xyes; then
11258 cat >>confdefs.h <<\_ACEOF
11259 #define NEED_USCORE 1
11265 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11266 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11267 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11268 echo $ECHO_N "(cached) $ECHO_C" >&6
11270 # PORTME does your system automatically load deplibs for dlopen?
11271 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11272 # For now, we just catch OSes we know something about -- in the
11273 # future, we'll try test this programmatically.
11274 libltdl_cv_sys_dlopen_deplibs=unknown
11276 aix3*|aix4.1.*|aix4.2.*)
11277 # Unknown whether this is true for these versions of AIX, but
11278 # we want this `case' here to explicitly catch those versions.
11279 libltdl_cv_sys_dlopen_deplibs=unknown
11282 libltdl_cv_sys_dlopen_deplibs=yes
11285 # Assuming the user has installed a libdl from somewhere, this is true
11286 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11287 libltdl_cv_sys_dlopen_deplibs=yes
11289 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11290 # GNU and its variants, using gnu ld.so (Glibc)
11291 libltdl_cv_sys_dlopen_deplibs=yes
11294 libltdl_cv_sys_dlopen_deplibs=yes
11297 libltdl_cv_sys_dlopen_deplibs=yes
11299 irix[12345]*|irix6.[01]*)
11300 # Catch all versions of IRIX before 6.2, and indicate that we don't
11301 # know how it worked for any of those versions.
11302 libltdl_cv_sys_dlopen_deplibs=unknown
11305 # The case above catches anything before 6.2, and it's known that
11306 # at 6.2 and later dlopen does load deplibs.
11307 libltdl_cv_sys_dlopen_deplibs=yes
11310 libltdl_cv_sys_dlopen_deplibs=yes
11313 libltdl_cv_sys_dlopen_deplibs=yes
11316 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11317 # it did *not* use an RPATH in a shared library to find objects the
11318 # library depends on, so we explictly say `no'.
11319 libltdl_cv_sys_dlopen_deplibs=no
11321 osf5.0|osf5.0a|osf5.1)
11322 # dlopen *does* load deplibs and with the right loader patch applied
11323 # it even uses RPATH in a shared library to search for shared objects
11324 # that the library depends on, but there's no easy way to know if that
11325 # patch is installed. Since this is the case, all we can really
11326 # say is unknown -- it depends on the patch being installed. If
11327 # it is, this changes to `yes'. Without it, it would be `no'.
11328 libltdl_cv_sys_dlopen_deplibs=unknown
11331 # the two cases above should catch all versions of osf <= 5.1. Read
11332 # the comments above for what we know about them.
11333 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11334 # is used to find them so we can finally say `yes'.
11335 libltdl_cv_sys_dlopen_deplibs=yes
11338 libltdl_cv_sys_dlopen_deplibs=yes
11340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11341 libltdl_cv_sys_dlopen_deplibs=yes
11346 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11347 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11348 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11350 cat >>confdefs.h <<\_ACEOF
11351 #define LTDL_DLOPEN_DEPLIBS 1
11357 for ac_header in argz.h
11359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11364 echo $ECHO_N "(cached) $ECHO_C" >&6
11366 ac_res=`eval echo '${'$as_ac_Header'}'`
11367 { echo "$as_me:$LINENO: result: $ac_res" >&5
11368 echo "${ECHO_T}$ac_res" >&6; }
11370 # Is the header compilable?
11371 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11372 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11380 #include <$ac_header>
11382 rm -f conftest.$ac_objext
11383 if { (ac_try="$ac_compile"
11384 case "(($ac_try" in
11385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_compile") 2>conftest.er1
11391 grep -v '^ *+' conftest.er1 >conftest.err
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } &&
11396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11397 { (case "(($ac_try" in
11398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11399 *) ac_try_echo=$ac_try;;
11401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11402 (eval "$ac_try") 2>&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); }; } &&
11406 { ac_try='test -s conftest.$ac_objext'
11407 { (case "(($ac_try" in
11408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_try") 2>&5
11414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11415 (exit $ac_status); }; }; then
11416 ac_header_compiler=yes
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 ac_header_compiler=no
11424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11426 echo "${ECHO_T}$ac_header_compiler" >&6; }
11428 # Is the header present?
11429 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11430 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11431 cat >conftest.$ac_ext <<_ACEOF
11434 cat confdefs.h >>conftest.$ac_ext
11435 cat >>conftest.$ac_ext <<_ACEOF
11436 /* end confdefs.h. */
11437 #include <$ac_header>
11439 if { (ac_try="$ac_cpp conftest.$ac_ext"
11440 case "(($ac_try" in
11441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11442 *) ac_try_echo=$ac_try;;
11444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11447 grep -v '^ *+' conftest.er1 >conftest.err
11449 cat conftest.err >&5
11450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11451 (exit $ac_status); } >/dev/null; then
11452 if test -s conftest.err; then
11453 ac_cpp_err=$ac_c_preproc_warn_flag
11454 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11461 if test -z "$ac_cpp_err"; then
11462 ac_header_preproc=yes
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11467 ac_header_preproc=no
11470 rm -f conftest.err conftest.$ac_ext
11471 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11472 echo "${ECHO_T}$ac_header_preproc" >&6; }
11474 # So? What about this header?
11475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11477 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11478 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11479 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11481 ac_header_preproc=yes
11484 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11485 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11486 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11487 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11488 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11489 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11490 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11491 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11494 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11495 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11497 ## ----------------------------------- ##
11498 ## Report this to llvmbugs@cs.uiuc.edu ##
11499 ## ----------------------------------- ##
11501 ) | sed "s/^/$as_me: WARNING: /" >&2
11504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11507 echo $ECHO_N "(cached) $ECHO_C" >&6
11509 eval "$as_ac_Header=\$ac_header_preproc"
11511 ac_res=`eval echo '${'$as_ac_Header'}'`
11512 { echo "$as_me:$LINENO: result: $ac_res" >&5
11513 echo "${ECHO_T}$ac_res" >&6; }
11516 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11517 cat >>confdefs.h <<_ACEOF
11518 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11526 { echo "$as_me:$LINENO: checking for error_t" >&5
11527 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11528 if test "${ac_cv_type_error_t+set}" = set; then
11529 echo $ECHO_N "(cached) $ECHO_C" >&6
11531 cat >conftest.$ac_ext <<_ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11541 typedef error_t ac__type_new_;
11545 if ((ac__type_new_ *) 0)
11547 if (sizeof (ac__type_new_))
11553 rm -f conftest.$ac_objext
11554 if { (ac_try="$ac_compile"
11555 case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_compile") 2>conftest.er1
11562 grep -v '^ *+' conftest.er1 >conftest.err
11564 cat conftest.err >&5
11565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11566 (exit $ac_status); } &&
11567 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11568 { (case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11573 (eval "$ac_try") 2>&5
11575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11576 (exit $ac_status); }; } &&
11577 { ac_try='test -s conftest.$ac_objext'
11578 { (case "(($ac_try" in
11579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11580 *) ac_try_echo=$ac_try;;
11582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11583 (eval "$ac_try") 2>&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); }; }; then
11587 ac_cv_type_error_t=yes
11589 echo "$as_me: failed program was:" >&5
11590 sed 's/^/| /' conftest.$ac_ext >&5
11592 ac_cv_type_error_t=no
11595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11597 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11598 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11599 if test $ac_cv_type_error_t = yes; then
11601 cat >>confdefs.h <<_ACEOF
11602 #define HAVE_ERROR_T 1
11608 cat >>confdefs.h <<\_ACEOF
11609 #define error_t int
11620 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11622 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11623 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11624 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11625 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11626 echo $ECHO_N "(cached) $ECHO_C" >&6
11628 cat >conftest.$ac_ext <<_ACEOF
11631 cat confdefs.h >>conftest.$ac_ext
11632 cat >>conftest.$ac_ext <<_ACEOF
11633 /* end confdefs.h. */
11634 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11635 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11636 #define $ac_func innocuous_$ac_func
11638 /* System header to define __stub macros and hopefully few prototypes,
11639 which can conflict with char $ac_func (); below.
11640 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11641 <limits.h> exists even on freestanding compilers. */
11644 # include <limits.h>
11646 # include <assert.h>
11651 /* Override any GCC internal prototype to avoid an error.
11652 Use char because int might match the return type of a GCC
11653 builtin and then its argument prototype would still apply. */
11658 /* The GNU C library defines this for functions which it implements
11659 to always fail with ENOSYS. Some functions are actually named
11660 something starting with __ and the normal name is an alias. */
11661 #if defined __stub_$ac_func || defined __stub___$ac_func
11668 return $ac_func ();
11673 rm -f conftest.$ac_objext conftest$ac_exeext
11674 if { (ac_try="$ac_link"
11675 case "(($ac_try" in
11676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11677 *) ac_try_echo=$ac_try;;
11679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11680 (eval "$ac_link") 2>conftest.er1
11682 grep -v '^ *+' conftest.er1 >conftest.err
11684 cat conftest.err >&5
11685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11686 (exit $ac_status); } &&
11687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11688 { (case "(($ac_try" in
11689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_try") 2>&5
11695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11696 (exit $ac_status); }; } &&
11697 { ac_try='test -s conftest$ac_exeext'
11698 { (case "(($ac_try" in
11699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11700 *) ac_try_echo=$ac_try;;
11702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11703 (eval "$ac_try") 2>&5
11705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11706 (exit $ac_status); }; }; then
11707 eval "$as_ac_var=yes"
11709 echo "$as_me: failed program was:" >&5
11710 sed 's/^/| /' conftest.$ac_ext >&5
11712 eval "$as_ac_var=no"
11715 rm -f core conftest.err conftest.$ac_objext \
11716 conftest$ac_exeext conftest.$ac_ext
11718 ac_res=`eval echo '${'$as_ac_var'}'`
11719 { echo "$as_me:$LINENO: result: $ac_res" >&5
11720 echo "${ECHO_T}$ac_res" >&6; }
11721 if test `eval echo '${'$as_ac_var'}'` = yes; then
11722 cat >>confdefs.h <<_ACEOF
11723 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11756 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11759 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11760 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11761 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11762 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11764 echo $ECHO_N "(cached) $ECHO_C" >&6
11766 ac_res=`eval echo '${'$as_ac_Header'}'`
11767 { echo "$as_me:$LINENO: result: $ac_res" >&5
11768 echo "${ECHO_T}$ac_res" >&6; }
11770 # Is the header compilable?
11771 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11772 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11780 #include <$ac_header>
11782 rm -f conftest.$ac_objext
11783 if { (ac_try="$ac_compile"
11784 case "(($ac_try" in
11785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11786 *) ac_try_echo=$ac_try;;
11788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11789 (eval "$ac_compile") 2>conftest.er1
11791 grep -v '^ *+' conftest.er1 >conftest.err
11793 cat conftest.err >&5
11794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11795 (exit $ac_status); } &&
11796 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11797 { (case "(($ac_try" in
11798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11799 *) ac_try_echo=$ac_try;;
11801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11802 (eval "$ac_try") 2>&5
11804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11805 (exit $ac_status); }; } &&
11806 { ac_try='test -s conftest.$ac_objext'
11807 { (case "(($ac_try" in
11808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11809 *) ac_try_echo=$ac_try;;
11811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11812 (eval "$ac_try") 2>&5
11814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11815 (exit $ac_status); }; }; then
11816 ac_header_compiler=yes
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11821 ac_header_compiler=no
11824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11826 echo "${ECHO_T}$ac_header_compiler" >&6; }
11828 # Is the header present?
11829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11831 cat >conftest.$ac_ext <<_ACEOF
11834 cat confdefs.h >>conftest.$ac_ext
11835 cat >>conftest.$ac_ext <<_ACEOF
11836 /* end confdefs.h. */
11837 #include <$ac_header>
11839 if { (ac_try="$ac_cpp conftest.$ac_ext"
11840 case "(($ac_try" in
11841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11842 *) ac_try_echo=$ac_try;;
11844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11847 grep -v '^ *+' conftest.er1 >conftest.err
11849 cat conftest.err >&5
11850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11851 (exit $ac_status); } >/dev/null; then
11852 if test -s conftest.err; then
11853 ac_cpp_err=$ac_c_preproc_warn_flag
11854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11861 if test -z "$ac_cpp_err"; then
11862 ac_header_preproc=yes
11864 echo "$as_me: failed program was:" >&5
11865 sed 's/^/| /' conftest.$ac_ext >&5
11867 ac_header_preproc=no
11870 rm -f conftest.err conftest.$ac_ext
11871 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11872 echo "${ECHO_T}$ac_header_preproc" >&6; }
11874 # So? What about this header?
11875 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11877 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11878 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11880 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11881 ac_header_preproc=yes
11884 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11885 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11886 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11887 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11889 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11891 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11893 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11895 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11897 ## ----------------------------------- ##
11898 ## Report this to llvmbugs@cs.uiuc.edu ##
11899 ## ----------------------------------- ##
11901 ) | sed "s/^/$as_me: WARNING: /" >&2
11904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11907 echo $ECHO_N "(cached) $ECHO_C" >&6
11909 eval "$as_ac_Header=\$ac_header_preproc"
11911 ac_res=`eval echo '${'$as_ac_Header'}'`
11912 { echo "$as_me:$LINENO: result: $ac_res" >&5
11913 echo "${ECHO_T}$ac_res" >&6; }
11916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11917 cat >>confdefs.h <<_ACEOF
11918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11929 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11931 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11933 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11934 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11935 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11936 echo $ECHO_N "(cached) $ECHO_C" >&6
11938 ac_res=`eval echo '${'$as_ac_Header'}'`
11939 { echo "$as_me:$LINENO: result: $ac_res" >&5
11940 echo "${ECHO_T}$ac_res" >&6; }
11942 # Is the header compilable?
11943 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11944 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
11952 #include <$ac_header>
11954 rm -f conftest.$ac_objext
11955 if { (ac_try="$ac_compile"
11956 case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_compile") 2>conftest.er1
11963 grep -v '^ *+' conftest.er1 >conftest.err
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } &&
11968 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11969 { (case "(($ac_try" in
11970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11971 *) ac_try_echo=$ac_try;;
11973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11974 (eval "$ac_try") 2>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); }; } &&
11978 { ac_try='test -s conftest.$ac_objext'
11979 { (case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_try") 2>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); }; }; then
11988 ac_header_compiler=yes
11990 echo "$as_me: failed program was:" >&5
11991 sed 's/^/| /' conftest.$ac_ext >&5
11993 ac_header_compiler=no
11996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11998 echo "${ECHO_T}$ac_header_compiler" >&6; }
12000 # Is the header present?
12001 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12002 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12003 cat >conftest.$ac_ext <<_ACEOF
12006 cat confdefs.h >>conftest.$ac_ext
12007 cat >>conftest.$ac_ext <<_ACEOF
12008 /* end confdefs.h. */
12009 #include <$ac_header>
12011 if { (ac_try="$ac_cpp conftest.$ac_ext"
12012 case "(($ac_try" in
12013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12014 *) ac_try_echo=$ac_try;;
12016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12019 grep -v '^ *+' conftest.er1 >conftest.err
12021 cat conftest.err >&5
12022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12023 (exit $ac_status); } >/dev/null; then
12024 if test -s conftest.err; then
12025 ac_cpp_err=$ac_c_preproc_warn_flag
12026 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12033 if test -z "$ac_cpp_err"; then
12034 ac_header_preproc=yes
12036 echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12039 ac_header_preproc=no
12042 rm -f conftest.err conftest.$ac_ext
12043 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12044 echo "${ECHO_T}$ac_header_preproc" >&6; }
12046 # So? What about this header?
12047 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12049 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12050 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12052 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12053 ac_header_preproc=yes
12056 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12057 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12058 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12059 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12060 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12061 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12062 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12063 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12064 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12065 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12066 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12067 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12069 ## ----------------------------------- ##
12070 ## Report this to llvmbugs@cs.uiuc.edu ##
12071 ## ----------------------------------- ##
12073 ) | sed "s/^/$as_me: WARNING: /" >&2
12076 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12077 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12078 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12079 echo $ECHO_N "(cached) $ECHO_C" >&6
12081 eval "$as_ac_Header=\$ac_header_preproc"
12083 ac_res=`eval echo '${'$as_ac_Header'}'`
12084 { echo "$as_me:$LINENO: result: $ac_res" >&5
12085 echo "${ECHO_T}$ac_res" >&6; }
12088 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12089 cat >>confdefs.h <<_ACEOF
12090 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12099 for ac_header in string.h strings.h
12101 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12102 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12103 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12104 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12105 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12108 ac_res=`eval echo '${'$as_ac_Header'}'`
12109 { echo "$as_me:$LINENO: result: $ac_res" >&5
12110 echo "${ECHO_T}$ac_res" >&6; }
12112 # Is the header compilable?
12113 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12114 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
12122 #include <$ac_header>
12124 rm -f conftest.$ac_objext
12125 if { (ac_try="$ac_compile"
12126 case "(($ac_try" in
12127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12128 *) ac_try_echo=$ac_try;;
12130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12131 (eval "$ac_compile") 2>conftest.er1
12133 grep -v '^ *+' conftest.er1 >conftest.err
12135 cat conftest.err >&5
12136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12137 (exit $ac_status); } &&
12138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12139 { (case "(($ac_try" in
12140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12141 *) ac_try_echo=$ac_try;;
12143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12144 (eval "$ac_try") 2>&5
12146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12147 (exit $ac_status); }; } &&
12148 { ac_try='test -s conftest.$ac_objext'
12149 { (case "(($ac_try" in
12150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12151 *) ac_try_echo=$ac_try;;
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_try") 2>&5
12156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12157 (exit $ac_status); }; }; then
12158 ac_header_compiler=yes
12160 echo "$as_me: failed program was:" >&5
12161 sed 's/^/| /' conftest.$ac_ext >&5
12163 ac_header_compiler=no
12166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12167 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12168 echo "${ECHO_T}$ac_header_compiler" >&6; }
12170 # Is the header present?
12171 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12172 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12173 cat >conftest.$ac_ext <<_ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12179 #include <$ac_header>
12181 if { (ac_try="$ac_cpp conftest.$ac_ext"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12189 grep -v '^ *+' conftest.er1 >conftest.err
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } >/dev/null; then
12194 if test -s conftest.err; then
12195 ac_cpp_err=$ac_c_preproc_warn_flag
12196 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12203 if test -z "$ac_cpp_err"; then
12204 ac_header_preproc=yes
12206 echo "$as_me: failed program was:" >&5
12207 sed 's/^/| /' conftest.$ac_ext >&5
12209 ac_header_preproc=no
12212 rm -f conftest.err conftest.$ac_ext
12213 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12214 echo "${ECHO_T}$ac_header_preproc" >&6; }
12216 # So? What about this header?
12217 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12219 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12220 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12221 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12222 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12223 ac_header_preproc=yes
12226 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12227 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12228 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12229 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12230 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12231 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12232 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12233 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12234 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12235 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12236 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12237 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12239 ## ----------------------------------- ##
12240 ## Report this to llvmbugs@cs.uiuc.edu ##
12241 ## ----------------------------------- ##
12243 ) | sed "s/^/$as_me: WARNING: /" >&2
12246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12249 echo $ECHO_N "(cached) $ECHO_C" >&6
12251 eval "$as_ac_Header=\$ac_header_preproc"
12253 ac_res=`eval echo '${'$as_ac_Header'}'`
12254 { echo "$as_me:$LINENO: result: $ac_res" >&5
12255 echo "${ECHO_T}$ac_res" >&6; }
12258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12259 cat >>confdefs.h <<_ACEOF
12260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12270 for ac_func in strchr index
12272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 cat >conftest.$ac_ext <<_ACEOF
12281 cat confdefs.h >>conftest.$ac_ext
12282 cat >>conftest.$ac_ext <<_ACEOF
12283 /* end confdefs.h. */
12284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12286 #define $ac_func innocuous_$ac_func
12288 /* System header to define __stub macros and hopefully few prototypes,
12289 which can conflict with char $ac_func (); below.
12290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12291 <limits.h> exists even on freestanding compilers. */
12294 # include <limits.h>
12296 # include <assert.h>
12301 /* Override any GCC internal prototype to avoid an error.
12302 Use char because int might match the return type of a GCC
12303 builtin and then its argument prototype would still apply. */
12308 /* The GNU C library defines this for functions which it implements
12309 to always fail with ENOSYS. Some functions are actually named
12310 something starting with __ and the normal name is an alias. */
12311 #if defined __stub_$ac_func || defined __stub___$ac_func
12318 return $ac_func ();
12323 rm -f conftest.$ac_objext conftest$ac_exeext
12324 if { (ac_try="$ac_link"
12325 case "(($ac_try" in
12326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12327 *) ac_try_echo=$ac_try;;
12329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12330 (eval "$ac_link") 2>conftest.er1
12332 grep -v '^ *+' conftest.er1 >conftest.err
12334 cat conftest.err >&5
12335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12336 (exit $ac_status); } &&
12337 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12338 { (case "(($ac_try" in
12339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12340 *) ac_try_echo=$ac_try;;
12342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12343 (eval "$ac_try") 2>&5
12345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12346 (exit $ac_status); }; } &&
12347 { ac_try='test -s conftest$ac_exeext'
12348 { (case "(($ac_try" in
12349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12350 *) ac_try_echo=$ac_try;;
12352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12353 (eval "$ac_try") 2>&5
12355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12356 (exit $ac_status); }; }; then
12357 eval "$as_ac_var=yes"
12359 echo "$as_me: failed program was:" >&5
12360 sed 's/^/| /' conftest.$ac_ext >&5
12362 eval "$as_ac_var=no"
12365 rm -f core conftest.err conftest.$ac_objext \
12366 conftest$ac_exeext conftest.$ac_ext
12368 ac_res=`eval echo '${'$as_ac_var'}'`
12369 { echo "$as_me:$LINENO: result: $ac_res" >&5
12370 echo "${ECHO_T}$ac_res" >&6; }
12371 if test `eval echo '${'$as_ac_var'}'` = yes; then
12372 cat >>confdefs.h <<_ACEOF
12373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12381 for ac_func in strrchr rindex
12383 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12384 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12385 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12386 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12387 echo $ECHO_N "(cached) $ECHO_C" >&6
12389 cat >conftest.$ac_ext <<_ACEOF
12392 cat confdefs.h >>conftest.$ac_ext
12393 cat >>conftest.$ac_ext <<_ACEOF
12394 /* end confdefs.h. */
12395 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12396 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12397 #define $ac_func innocuous_$ac_func
12399 /* System header to define __stub macros and hopefully few prototypes,
12400 which can conflict with char $ac_func (); below.
12401 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12402 <limits.h> exists even on freestanding compilers. */
12405 # include <limits.h>
12407 # include <assert.h>
12412 /* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12419 /* The GNU C library defines this for functions which it implements
12420 to always fail with ENOSYS. Some functions are actually named
12421 something starting with __ and the normal name is an alias. */
12422 #if defined __stub_$ac_func || defined __stub___$ac_func
12429 return $ac_func ();
12434 rm -f conftest.$ac_objext conftest$ac_exeext
12435 if { (ac_try="$ac_link"
12436 case "(($ac_try" in
12437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438 *) ac_try_echo=$ac_try;;
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441 (eval "$ac_link") 2>conftest.er1
12443 grep -v '^ *+' conftest.er1 >conftest.err
12445 cat conftest.err >&5
12446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12447 (exit $ac_status); } &&
12448 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12449 { (case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_try") 2>&5
12456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12457 (exit $ac_status); }; } &&
12458 { ac_try='test -s conftest$ac_exeext'
12459 { (case "(($ac_try" in
12460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12461 *) ac_try_echo=$ac_try;;
12463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12464 (eval "$ac_try") 2>&5
12466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12467 (exit $ac_status); }; }; then
12468 eval "$as_ac_var=yes"
12470 echo "$as_me: failed program was:" >&5
12471 sed 's/^/| /' conftest.$ac_ext >&5
12473 eval "$as_ac_var=no"
12476 rm -f core conftest.err conftest.$ac_objext \
12477 conftest$ac_exeext conftest.$ac_ext
12479 ac_res=`eval echo '${'$as_ac_var'}'`
12480 { echo "$as_me:$LINENO: result: $ac_res" >&5
12481 echo "${ECHO_T}$ac_res" >&6; }
12482 if test `eval echo '${'$as_ac_var'}'` = yes; then
12483 cat >>confdefs.h <<_ACEOF
12484 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12492 for ac_func in memcpy bcopy
12494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12498 echo $ECHO_N "(cached) $ECHO_C" >&6
12500 cat >conftest.$ac_ext <<_ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12508 #define $ac_func innocuous_$ac_func
12510 /* System header to define __stub macros and hopefully few prototypes,
12511 which can conflict with char $ac_func (); below.
12512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12513 <limits.h> exists even on freestanding compilers. */
12516 # include <limits.h>
12518 # include <assert.h>
12523 /* Override any GCC internal prototype to avoid an error.
12524 Use char because int might match the return type of a GCC
12525 builtin and then its argument prototype would still apply. */
12530 /* The GNU C library defines this for functions which it implements
12531 to always fail with ENOSYS. Some functions are actually named
12532 something starting with __ and the normal name is an alias. */
12533 #if defined __stub_$ac_func || defined __stub___$ac_func
12540 return $ac_func ();
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12549 *) ac_try_echo=$ac_try;;
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12554 grep -v '^ *+' conftest.er1 >conftest.err
12556 cat conftest.err >&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } &&
12559 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12560 { (case "(($ac_try" in
12561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12562 *) ac_try_echo=$ac_try;;
12564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12565 (eval "$ac_try") 2>&5
12567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12568 (exit $ac_status); }; } &&
12569 { ac_try='test -s conftest$ac_exeext'
12570 { (case "(($ac_try" in
12571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12572 *) ac_try_echo=$ac_try;;
12574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12575 (eval "$ac_try") 2>&5
12577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12578 (exit $ac_status); }; }; then
12579 eval "$as_ac_var=yes"
12581 echo "$as_me: failed program was:" >&5
12582 sed 's/^/| /' conftest.$ac_ext >&5
12584 eval "$as_ac_var=no"
12587 rm -f core conftest.err conftest.$ac_objext \
12588 conftest$ac_exeext conftest.$ac_ext
12590 ac_res=`eval echo '${'$as_ac_var'}'`
12591 { echo "$as_me:$LINENO: result: $ac_res" >&5
12592 echo "${ECHO_T}$ac_res" >&6; }
12593 if test `eval echo '${'$as_ac_var'}'` = yes; then
12594 cat >>confdefs.h <<_ACEOF
12595 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12603 for ac_func in memmove strcmp
12605 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12606 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12607 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12608 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12609 echo $ECHO_N "(cached) $ECHO_C" >&6
12611 cat >conftest.$ac_ext <<_ACEOF
12614 cat confdefs.h >>conftest.$ac_ext
12615 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */
12617 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12618 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12619 #define $ac_func innocuous_$ac_func
12621 /* System header to define __stub macros and hopefully few prototypes,
12622 which can conflict with char $ac_func (); below.
12623 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12624 <limits.h> exists even on freestanding compilers. */
12627 # include <limits.h>
12629 # include <assert.h>
12634 /* Override any GCC internal prototype to avoid an error.
12635 Use char because int might match the return type of a GCC
12636 builtin and then its argument prototype would still apply. */
12641 /* The GNU C library defines this for functions which it implements
12642 to always fail with ENOSYS. Some functions are actually named
12643 something starting with __ and the normal name is an alias. */
12644 #if defined __stub_$ac_func || defined __stub___$ac_func
12651 return $ac_func ();
12656 rm -f conftest.$ac_objext conftest$ac_exeext
12657 if { (ac_try="$ac_link"
12658 case "(($ac_try" in
12659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>conftest.er1
12665 grep -v '^ *+' conftest.er1 >conftest.err
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } &&
12670 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12671 { (case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_try") 2>&5
12678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12679 (exit $ac_status); }; } &&
12680 { ac_try='test -s conftest$ac_exeext'
12681 { (case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_try") 2>&5
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); }; }; then
12690 eval "$as_ac_var=yes"
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 eval "$as_ac_var=no"
12698 rm -f core conftest.err conftest.$ac_objext \
12699 conftest$ac_exeext conftest.$ac_ext
12701 ac_res=`eval echo '${'$as_ac_var'}'`
12702 { echo "$as_me:$LINENO: result: $ac_res" >&5
12703 echo "${ECHO_T}$ac_res" >&6; }
12704 if test `eval echo '${'$as_ac_var'}'` = yes; then
12705 cat >>confdefs.h <<_ACEOF
12706 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12715 for ac_func in closedir opendir readdir
12717 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12718 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12719 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12720 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12721 echo $ECHO_N "(cached) $ECHO_C" >&6
12723 cat >conftest.$ac_ext <<_ACEOF
12726 cat confdefs.h >>conftest.$ac_ext
12727 cat >>conftest.$ac_ext <<_ACEOF
12728 /* end confdefs.h. */
12729 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12731 #define $ac_func innocuous_$ac_func
12733 /* System header to define __stub macros and hopefully few prototypes,
12734 which can conflict with char $ac_func (); below.
12735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12736 <limits.h> exists even on freestanding compilers. */
12739 # include <limits.h>
12741 # include <assert.h>
12746 /* Override any GCC internal prototype to avoid an error.
12747 Use char because int might match the return type of a GCC
12748 builtin and then its argument prototype would still apply. */
12753 /* The GNU C library defines this for functions which it implements
12754 to always fail with ENOSYS. Some functions are actually named
12755 something starting with __ and the normal name is an alias. */
12756 #if defined __stub_$ac_func || defined __stub___$ac_func
12763 return $ac_func ();
12768 rm -f conftest.$ac_objext conftest$ac_exeext
12769 if { (ac_try="$ac_link"
12770 case "(($ac_try" in
12771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12772 *) ac_try_echo=$ac_try;;
12774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12775 (eval "$ac_link") 2>conftest.er1
12777 grep -v '^ *+' conftest.er1 >conftest.err
12779 cat conftest.err >&5
12780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12781 (exit $ac_status); } &&
12782 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12783 { (case "(($ac_try" in
12784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12785 *) ac_try_echo=$ac_try;;
12787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12788 (eval "$ac_try") 2>&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); }; } &&
12792 { ac_try='test -s conftest$ac_exeext'
12793 { (case "(($ac_try" in
12794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12795 *) ac_try_echo=$ac_try;;
12797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12798 (eval "$ac_try") 2>&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); }; }; then
12802 eval "$as_ac_var=yes"
12804 echo "$as_me: failed program was:" >&5
12805 sed 's/^/| /' conftest.$ac_ext >&5
12807 eval "$as_ac_var=no"
12810 rm -f core conftest.err conftest.$ac_objext \
12811 conftest$ac_exeext conftest.$ac_ext
12813 ac_res=`eval echo '${'$as_ac_var'}'`
12814 { echo "$as_me:$LINENO: result: $ac_res" >&5
12815 echo "${ECHO_T}$ac_res" >&6; }
12816 if test `eval echo '${'$as_ac_var'}'` = yes; then
12817 cat >>confdefs.h <<_ACEOF
12818 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12826 if test "$WITH_LLVMGCCDIR" = "default" ; then
12827 LLVMGCC="llvm-gcc${EXEEXT}"
12828 LLVMGXX="llvm-g++${EXEEXT}"
12829 LLVMGCCCOMMAND="$LLVMGCC"
12830 LLVMGXXCOMMAND="$LLVMGXX"
12831 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12833 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12835 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12836 set dummy $LLVMGCC; ac_word=$2
12837 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12838 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12839 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12840 echo $ECHO_N "(cached) $ECHO_C" >&6
12844 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12848 for as_dir in $PATH
12851 test -z "$as_dir" && as_dir=.
12852 for ac_exec_ext in '' $ac_executable_extensions; do
12853 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12854 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12855 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12865 LLVMGCC=$ac_cv_path_LLVMGCC
12866 if test -n "$LLVMGCC"; then
12867 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12868 echo "${ECHO_T}$LLVMGCC" >&6; }
12870 { echo "$as_me:$LINENO: result: no" >&5
12871 echo "${ECHO_T}no" >&6; }
12875 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12876 set dummy $LLVMGXX; ac_word=$2
12877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12879 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888 for as_dir in $PATH
12891 test -z "$as_dir" && as_dir=.
12892 for ac_exec_ext in '' $ac_executable_extensions; do
12893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12894 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12905 LLVMGXX=$ac_cv_path_LLVMGXX
12906 if test -n "$LLVMGXX"; then
12907 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12908 echo "${ECHO_T}$LLVMGXX" >&6; }
12910 { echo "$as_me:$LINENO: result: no" >&5
12911 echo "${ECHO_T}no" >&6; }
12916 if test -z "$LLVMGCC"; then
12917 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12918 LLVMGCCCOMMAND="$LLVMGCC"
12920 if test -z "$LLVMGXX"; then
12921 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12922 LLVMGXXCOMMAND="$LLVMGXX"
12929 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12931 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12936 # Check whether --with-llvmcc was given.
12937 if test "${with_llvmcc+set}" = set; then
12938 withval=$with_llvmcc;
12943 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12944 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12945 if test "$with_llvmcc" != "check"; then
12946 if (test "$with_llvmcc" != "llvm-gcc" &&
12947 test "$with_llvmcc" != "clang" &&
12948 test "$with_llvmcc" != "none"); then
12949 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12950 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12951 { (exit 1); exit 1; }; }
12953 WITH_LLVMCC="$with_llvmcc"
12954 elif test -n "$LLVMGCC"; then
12955 WITH_LLVMCC=llvm-gcc
12956 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12961 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12962 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12963 LLVMCC_OPTION=$WITH_LLVMCC
12966 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12967 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12980 if test "$GCC" != "yes" && test "$ICC" != "yes"
12982 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12983 echo "$as_me: error: gcc|icc required but not found" >&2;}
12984 { (exit 1); exit 1; }; }
12987 if test "$GXX" != "yes" && test "$IXX" != "yes"
12989 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12990 echo "$as_me: error: g++|icc required but not found" >&2;}
12991 { (exit 1); exit 1; }; }
12994 if test "$GCC" = "yes"
12996 cat >conftest.$ac_ext <<_ACEOF
12997 #if !defined(__GNUC__) || __GNUC__ < 3
12998 #error Unsupported GCC version
13002 rm -f conftest.$ac_objext
13003 if { (ac_try="$ac_compile"
13004 case "(($ac_try" in
13005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13006 *) ac_try_echo=$ac_try;;
13008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13009 (eval "$ac_compile") 2>conftest.er1
13011 grep -v '^ *+' conftest.er1 >conftest.err
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13017 { (case "(($ac_try" in
13018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13019 *) ac_try_echo=$ac_try;;
13021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13022 (eval "$ac_try") 2>&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 (exit $ac_status); }; } &&
13026 { ac_try='test -s conftest.$ac_objext'
13027 { (case "(($ac_try" in
13028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13029 *) ac_try_echo=$ac_try;;
13031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13032 (eval "$ac_try") 2>&5
13034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13035 (exit $ac_status); }; }; then
13038 echo "$as_me: failed program was:" >&5
13039 sed 's/^/| /' conftest.$ac_ext >&5
13041 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13042 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13043 { (exit 1); exit 1; }; }
13046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13049 if test -z "$llvm_cv_gnu_make_command"
13051 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13052 echo "$as_me: error: GNU Make required but not found" >&2;}
13053 { (exit 1); exit 1; }; }
13056 { echo "$as_me:$LINENO: result: ok" >&5
13057 echo "${ECHO_T}ok" >&6; }
13059 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13060 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13061 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13063 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13065 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13066 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13070 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13071 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13072 if test "${ac_cv_lib_m_sin+set}" = set; then
13073 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 ac_check_lib_save_LIBS=$LIBS
13077 cat >conftest.$ac_ext <<_ACEOF
13080 cat confdefs.h >>conftest.$ac_ext
13081 cat >>conftest.$ac_ext <<_ACEOF
13082 /* end confdefs.h. */
13084 /* Override any GCC internal prototype to avoid an error.
13085 Use char because int might match the return type of a GCC
13086 builtin and then its argument prototype would still apply. */
13099 rm -f conftest.$ac_objext conftest$ac_exeext
13100 if { (ac_try="$ac_link"
13101 case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13106 (eval "$ac_link") 2>conftest.er1
13108 grep -v '^ *+' conftest.er1 >conftest.err
13110 cat conftest.err >&5
13111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13112 (exit $ac_status); } &&
13113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13114 { (case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_try") 2>&5
13121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13122 (exit $ac_status); }; } &&
13123 { ac_try='test -s conftest$ac_exeext'
13124 { (case "(($ac_try" in
13125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13126 *) ac_try_echo=$ac_try;;
13128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13129 (eval "$ac_try") 2>&5
13131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13132 (exit $ac_status); }; }; then
13133 ac_cv_lib_m_sin=yes
13135 echo "$as_me: failed program was:" >&5
13136 sed 's/^/| /' conftest.$ac_ext >&5
13141 rm -f core conftest.err conftest.$ac_objext \
13142 conftest$ac_exeext conftest.$ac_ext
13143 LIBS=$ac_check_lib_save_LIBS
13145 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13146 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13147 if test $ac_cv_lib_m_sin = yes; then
13148 cat >>confdefs.h <<_ACEOF
13149 #define HAVE_LIBM 1
13156 if test "$llvm_cv_os_type" = "MingW" ; then
13158 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13159 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13160 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13161 echo $ECHO_N "(cached) $ECHO_C" >&6
13163 ac_check_lib_save_LIBS=$LIBS
13164 LIBS="-limagehlp $LIBS"
13165 cat >conftest.$ac_ext <<_ACEOF
13168 cat confdefs.h >>conftest.$ac_ext
13169 cat >>conftest.$ac_ext <<_ACEOF
13170 /* end confdefs.h. */
13181 rm -f conftest.$ac_objext conftest$ac_exeext
13182 if { (ac_try="$ac_link"
13183 case "(($ac_try" in
13184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_link") 2>conftest.er1
13190 grep -v '^ *+' conftest.er1 >conftest.err
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } &&
13195 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13196 { (case "(($ac_try" in
13197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13198 *) ac_try_echo=$ac_try;;
13200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13201 (eval "$ac_try") 2>&5
13203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13204 (exit $ac_status); }; } &&
13205 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
13213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13214 (exit $ac_status); }; }; then
13215 ac_cv_lib_imagehlp_main=yes
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13220 ac_cv_lib_imagehlp_main=no
13223 rm -f core conftest.err conftest.$ac_objext \
13224 conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS
13227 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13228 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13229 if test $ac_cv_lib_imagehlp_main = yes; then
13230 cat >>confdefs.h <<_ACEOF
13231 #define HAVE_LIBIMAGEHLP 1
13234 LIBS="-limagehlp $LIBS"
13239 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13240 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13241 if test "${ac_cv_lib_psapi_main+set}" = set; then
13242 echo $ECHO_N "(cached) $ECHO_C" >&6
13244 ac_check_lib_save_LIBS=$LIBS
13245 LIBS="-lpsapi $LIBS"
13246 cat >conftest.$ac_ext <<_ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13262 rm -f conftest.$ac_objext conftest$ac_exeext
13263 if { (ac_try="$ac_link"
13264 case "(($ac_try" in
13265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13266 *) ac_try_echo=$ac_try;;
13268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13269 (eval "$ac_link") 2>conftest.er1
13271 grep -v '^ *+' conftest.er1 >conftest.err
13273 cat conftest.err >&5
13274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13275 (exit $ac_status); } &&
13276 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13277 { (case "(($ac_try" in
13278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13279 *) ac_try_echo=$ac_try;;
13281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13282 (eval "$ac_try") 2>&5
13284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13285 (exit $ac_status); }; } &&
13286 { ac_try='test -s conftest$ac_exeext'
13287 { (case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_try") 2>&5
13294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13295 (exit $ac_status); }; }; then
13296 ac_cv_lib_psapi_main=yes
13298 echo "$as_me: failed program was:" >&5
13299 sed 's/^/| /' conftest.$ac_ext >&5
13301 ac_cv_lib_psapi_main=no
13304 rm -f core conftest.err conftest.$ac_objext \
13305 conftest$ac_exeext conftest.$ac_ext
13306 LIBS=$ac_check_lib_save_LIBS
13308 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13309 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13310 if test $ac_cv_lib_psapi_main = yes; then
13311 cat >>confdefs.h <<_ACEOF
13312 #define HAVE_LIBPSAPI 1
13315 LIBS="-lpsapi $LIBS"
13321 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13322 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13323 if test "${ac_cv_search_dlopen+set}" = set; then
13324 echo $ECHO_N "(cached) $ECHO_C" >&6
13326 ac_func_search_save_LIBS=$LIBS
13327 cat >conftest.$ac_ext <<_ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13334 /* Override any GCC internal prototype to avoid an error.
13335 Use char because int might match the return type of a GCC
13336 builtin and then its argument prototype would still apply. */
13349 for ac_lib in '' dl; do
13350 if test -z "$ac_lib"; then
13351 ac_res="none required"
13354 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13356 rm -f conftest.$ac_objext conftest$ac_exeext
13357 if { (ac_try="$ac_link"
13358 case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_link") 2>conftest.er1
13365 grep -v '^ *+' conftest.er1 >conftest.err
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } &&
13370 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13371 { (case "(($ac_try" in
13372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13373 *) ac_try_echo=$ac_try;;
13375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13376 (eval "$ac_try") 2>&5
13378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13379 (exit $ac_status); }; } &&
13380 { ac_try='test -s conftest$ac_exeext'
13381 { (case "(($ac_try" in
13382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13383 *) ac_try_echo=$ac_try;;
13385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13386 (eval "$ac_try") 2>&5
13388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13389 (exit $ac_status); }; }; then
13390 ac_cv_search_dlopen=$ac_res
13392 echo "$as_me: failed program was:" >&5
13393 sed 's/^/| /' conftest.$ac_ext >&5
13398 rm -f core conftest.err conftest.$ac_objext \
13400 if test "${ac_cv_search_dlopen+set}" = set; then
13404 if test "${ac_cv_search_dlopen+set}" = set; then
13407 ac_cv_search_dlopen=no
13409 rm conftest.$ac_ext
13410 LIBS=$ac_func_search_save_LIBS
13412 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13413 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13414 ac_res=$ac_cv_search_dlopen
13415 if test "$ac_res" != no; then
13416 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13418 cat >>confdefs.h <<\_ACEOF
13419 #define HAVE_DLOPEN 1
13423 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13424 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13428 if test "$llvm_cv_enable_libffi" = "yes" ; then
13429 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13430 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13431 if test "${ac_cv_search_ffi_call+set}" = set; then
13432 echo $ECHO_N "(cached) $ECHO_C" >&6
13434 ac_func_search_save_LIBS=$LIBS
13435 cat >conftest.$ac_ext <<_ACEOF
13438 cat confdefs.h >>conftest.$ac_ext
13439 cat >>conftest.$ac_ext <<_ACEOF
13440 /* end confdefs.h. */
13442 /* Override any GCC internal prototype to avoid an error.
13443 Use char because int might match the return type of a GCC
13444 builtin and then its argument prototype would still apply. */
13452 return ffi_call ();
13457 for ac_lib in '' ffi; do
13458 if test -z "$ac_lib"; then
13459 ac_res="none required"
13462 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13464 rm -f conftest.$ac_objext conftest$ac_exeext
13465 if { (ac_try="$ac_link"
13466 case "(($ac_try" in
13467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13468 *) ac_try_echo=$ac_try;;
13470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13471 (eval "$ac_link") 2>conftest.er1
13473 grep -v '^ *+' conftest.er1 >conftest.err
13475 cat conftest.err >&5
13476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13477 (exit $ac_status); } &&
13478 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13479 { (case "(($ac_try" in
13480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13481 *) ac_try_echo=$ac_try;;
13483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13484 (eval "$ac_try") 2>&5
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest$ac_exeext'
13489 { (case "(($ac_try" in
13490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13491 *) ac_try_echo=$ac_try;;
13493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13494 (eval "$ac_try") 2>&5
13496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13497 (exit $ac_status); }; }; then
13498 ac_cv_search_ffi_call=$ac_res
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.$ac_ext >&5
13506 rm -f core conftest.err conftest.$ac_objext \
13508 if test "${ac_cv_search_ffi_call+set}" = set; then
13512 if test "${ac_cv_search_ffi_call+set}" = set; then
13515 ac_cv_search_ffi_call=no
13517 rm conftest.$ac_ext
13518 LIBS=$ac_func_search_save_LIBS
13520 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13521 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13522 ac_res=$ac_cv_search_ffi_call
13523 if test "$ac_res" != no; then
13524 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13526 cat >>confdefs.h <<\_ACEOF
13527 #define HAVE_FFI_CALL 1
13531 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13532 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13533 { (exit 1); exit 1; }; }
13538 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13539 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13540 if test "${ac_cv_search_mallinfo+set}" = set; then
13541 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 ac_func_search_save_LIBS=$LIBS
13544 cat >conftest.$ac_ext <<_ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13551 /* Override any GCC internal prototype to avoid an error.
13552 Use char because int might match the return type of a GCC
13553 builtin and then its argument prototype would still apply. */
13561 return mallinfo ();
13566 for ac_lib in '' malloc; do
13567 if test -z "$ac_lib"; then
13568 ac_res="none required"
13571 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13573 rm -f conftest.$ac_objext conftest$ac_exeext
13574 if { (ac_try="$ac_link"
13575 case "(($ac_try" in
13576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13577 *) ac_try_echo=$ac_try;;
13579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13580 (eval "$ac_link") 2>conftest.er1
13582 grep -v '^ *+' conftest.er1 >conftest.err
13584 cat conftest.err >&5
13585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13586 (exit $ac_status); } &&
13587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13588 { (case "(($ac_try" in
13589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13590 *) ac_try_echo=$ac_try;;
13592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13593 (eval "$ac_try") 2>&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); }; } &&
13597 { ac_try='test -s conftest$ac_exeext'
13598 { (case "(($ac_try" in
13599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13600 *) ac_try_echo=$ac_try;;
13602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13603 (eval "$ac_try") 2>&5
13605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13606 (exit $ac_status); }; }; then
13607 ac_cv_search_mallinfo=$ac_res
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13615 rm -f core conftest.err conftest.$ac_objext \
13617 if test "${ac_cv_search_mallinfo+set}" = set; then
13621 if test "${ac_cv_search_mallinfo+set}" = set; then
13624 ac_cv_search_mallinfo=no
13626 rm conftest.$ac_ext
13627 LIBS=$ac_func_search_save_LIBS
13629 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13630 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13631 ac_res=$ac_cv_search_mallinfo
13632 if test "$ac_res" != no; then
13633 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13635 cat >>confdefs.h <<\_ACEOF
13636 #define HAVE_MALLINFO 1
13642 if test "$ENABLE_THREADS" -eq 1 ; then
13644 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13645 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13646 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13647 echo $ECHO_N "(cached) $ECHO_C" >&6
13649 ac_check_lib_save_LIBS=$LIBS
13650 LIBS="-lpthread $LIBS"
13651 cat >conftest.$ac_ext <<_ACEOF
13654 cat confdefs.h >>conftest.$ac_ext
13655 cat >>conftest.$ac_ext <<_ACEOF
13656 /* end confdefs.h. */
13658 /* Override any GCC internal prototype to avoid an error.
13659 Use char because int might match the return type of a GCC
13660 builtin and then its argument prototype would still apply. */
13664 char pthread_mutex_init ();
13668 return pthread_mutex_init ();
13673 rm -f conftest.$ac_objext conftest$ac_exeext
13674 if { (ac_try="$ac_link"
13675 case "(($ac_try" in
13676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677 *) ac_try_echo=$ac_try;;
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680 (eval "$ac_link") 2>conftest.er1
13682 grep -v '^ *+' conftest.er1 >conftest.err
13684 cat conftest.err >&5
13685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13686 (exit $ac_status); } &&
13687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13688 { (case "(($ac_try" in
13689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13690 *) ac_try_echo=$ac_try;;
13692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13693 (eval "$ac_try") 2>&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); }; } &&
13697 { ac_try='test -s conftest$ac_exeext'
13698 { (case "(($ac_try" in
13699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13700 *) ac_try_echo=$ac_try;;
13702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13703 (eval "$ac_try") 2>&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); }; }; then
13707 ac_cv_lib_pthread_pthread_mutex_init=yes
13709 echo "$as_me: failed program was:" >&5
13710 sed 's/^/| /' conftest.$ac_ext >&5
13712 ac_cv_lib_pthread_pthread_mutex_init=no
13715 rm -f core conftest.err conftest.$ac_objext \
13716 conftest$ac_exeext conftest.$ac_ext
13717 LIBS=$ac_check_lib_save_LIBS
13719 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13720 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13721 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13722 cat >>confdefs.h <<_ACEOF
13723 #define HAVE_LIBPTHREAD 1
13726 LIBS="-lpthread $LIBS"
13730 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13731 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13732 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13733 echo $ECHO_N "(cached) $ECHO_C" >&6
13735 ac_func_search_save_LIBS=$LIBS
13736 cat >conftest.$ac_ext <<_ACEOF
13739 cat confdefs.h >>conftest.$ac_ext
13740 cat >>conftest.$ac_ext <<_ACEOF
13741 /* end confdefs.h. */
13743 /* Override any GCC internal prototype to avoid an error.
13744 Use char because int might match the return type of a GCC
13745 builtin and then its argument prototype would still apply. */
13749 char pthread_mutex_lock ();
13753 return pthread_mutex_lock ();
13758 for ac_lib in '' pthread; do
13759 if test -z "$ac_lib"; then
13760 ac_res="none required"
13763 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13765 rm -f conftest.$ac_objext conftest$ac_exeext
13766 if { (ac_try="$ac_link"
13767 case "(($ac_try" in
13768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13769 *) ac_try_echo=$ac_try;;
13771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13772 (eval "$ac_link") 2>conftest.er1
13774 grep -v '^ *+' conftest.er1 >conftest.err
13776 cat conftest.err >&5
13777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13778 (exit $ac_status); } &&
13779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13780 { (case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_try") 2>&5
13787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13788 (exit $ac_status); }; } &&
13789 { ac_try='test -s conftest$ac_exeext'
13790 { (case "(($ac_try" in
13791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13792 *) ac_try_echo=$ac_try;;
13794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13795 (eval "$ac_try") 2>&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); }; }; then
13799 ac_cv_search_pthread_mutex_lock=$ac_res
13801 echo "$as_me: failed program was:" >&5
13802 sed 's/^/| /' conftest.$ac_ext >&5
13807 rm -f core conftest.err conftest.$ac_objext \
13809 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13813 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13816 ac_cv_search_pthread_mutex_lock=no
13818 rm conftest.$ac_ext
13819 LIBS=$ac_func_search_save_LIBS
13821 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13822 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13823 ac_res=$ac_cv_search_pthread_mutex_lock
13824 if test "$ac_res" != no; then
13825 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13827 cat >>confdefs.h <<\_ACEOF
13828 #define HAVE_PTHREAD_MUTEX_LOCK 1
13833 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13834 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13835 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13836 echo $ECHO_N "(cached) $ECHO_C" >&6
13838 ac_func_search_save_LIBS=$LIBS
13839 cat >conftest.$ac_ext <<_ACEOF
13842 cat confdefs.h >>conftest.$ac_ext
13843 cat >>conftest.$ac_ext <<_ACEOF
13844 /* end confdefs.h. */
13846 /* Override any GCC internal prototype to avoid an error.
13847 Use char because int might match the return type of a GCC
13848 builtin and then its argument prototype would still apply. */
13852 char pthread_rwlock_init ();
13856 return pthread_rwlock_init ();
13861 for ac_lib in '' pthread; do
13862 if test -z "$ac_lib"; then
13863 ac_res="none required"
13866 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13868 rm -f conftest.$ac_objext conftest$ac_exeext
13869 if { (ac_try="$ac_link"
13870 case "(($ac_try" in
13871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13872 *) ac_try_echo=$ac_try;;
13874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13875 (eval "$ac_link") 2>conftest.er1
13877 grep -v '^ *+' conftest.er1 >conftest.err
13879 cat conftest.err >&5
13880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13881 (exit $ac_status); } &&
13882 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13883 { (case "(($ac_try" in
13884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13885 *) ac_try_echo=$ac_try;;
13887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13888 (eval "$ac_try") 2>&5
13890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13891 (exit $ac_status); }; } &&
13892 { ac_try='test -s conftest$ac_exeext'
13893 { (case "(($ac_try" in
13894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13895 *) ac_try_echo=$ac_try;;
13897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13898 (eval "$ac_try") 2>&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); }; }; then
13902 ac_cv_search_pthread_rwlock_init=$ac_res
13904 echo "$as_me: failed program was:" >&5
13905 sed 's/^/| /' conftest.$ac_ext >&5
13910 rm -f core conftest.err conftest.$ac_objext \
13912 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13916 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13919 ac_cv_search_pthread_rwlock_init=no
13921 rm conftest.$ac_ext
13922 LIBS=$ac_func_search_save_LIBS
13924 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13925 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13926 ac_res=$ac_cv_search_pthread_rwlock_init
13927 if test "$ac_res" != no; then
13928 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13930 cat >>confdefs.h <<\_ACEOF
13931 #define HAVE_PTHREAD_RWLOCK_INIT 1
13936 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13937 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13938 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13941 ac_func_search_save_LIBS=$LIBS
13942 cat >conftest.$ac_ext <<_ACEOF
13945 cat confdefs.h >>conftest.$ac_ext
13946 cat >>conftest.$ac_ext <<_ACEOF
13947 /* end confdefs.h. */
13949 /* Override any GCC internal prototype to avoid an error.
13950 Use char because int might match the return type of a GCC
13951 builtin and then its argument prototype would still apply. */
13955 char pthread_getspecific ();
13959 return pthread_getspecific ();
13964 for ac_lib in '' pthread; do
13965 if test -z "$ac_lib"; then
13966 ac_res="none required"
13969 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13971 rm -f conftest.$ac_objext conftest$ac_exeext
13972 if { (ac_try="$ac_link"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_link") 2>conftest.er1
13980 grep -v '^ *+' conftest.er1 >conftest.err
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } &&
13985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13986 { (case "(($ac_try" in
13987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13988 *) ac_try_echo=$ac_try;;
13990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13991 (eval "$ac_try") 2>&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); }; } &&
13995 { ac_try='test -s conftest$ac_exeext'
13996 { (case "(($ac_try" in
13997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13998 *) ac_try_echo=$ac_try;;
14000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14001 (eval "$ac_try") 2>&5
14003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14004 (exit $ac_status); }; }; then
14005 ac_cv_search_pthread_getspecific=$ac_res
14007 echo "$as_me: failed program was:" >&5
14008 sed 's/^/| /' conftest.$ac_ext >&5
14013 rm -f core conftest.err conftest.$ac_objext \
14015 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14019 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14022 ac_cv_search_pthread_getspecific=no
14024 rm conftest.$ac_ext
14025 LIBS=$ac_func_search_save_LIBS
14027 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14028 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14029 ac_res=$ac_cv_search_pthread_getspecific
14030 if test "$ac_res" != no; then
14031 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14033 cat >>confdefs.h <<\_ACEOF
14034 #define HAVE_PTHREAD_GETSPECIFIC 1
14042 # Check whether --with-udis86 was given.
14043 if test "${with_udis86+set}" = set; then
14044 withval=$with_udis86;
14049 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14052 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14053 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14054 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14055 echo $ECHO_N "(cached) $ECHO_C" >&6
14057 ac_check_lib_save_LIBS=$LIBS
14058 LIBS="-ludis86 $LIBS"
14059 cat >conftest.$ac_ext <<_ACEOF
14062 cat confdefs.h >>conftest.$ac_ext
14063 cat >>conftest.$ac_ext <<_ACEOF
14064 /* end confdefs.h. */
14066 /* Override any GCC internal prototype to avoid an error.
14067 Use char because int might match the return type of a GCC
14068 builtin and then its argument prototype would still apply. */
14081 rm -f conftest.$ac_objext conftest$ac_exeext
14082 if { (ac_try="$ac_link"
14083 case "(($ac_try" in
14084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14085 *) ac_try_echo=$ac_try;;
14087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14088 (eval "$ac_link") 2>conftest.er1
14090 grep -v '^ *+' conftest.er1 >conftest.err
14092 cat conftest.err >&5
14093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14094 (exit $ac_status); } &&
14095 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14096 { (case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_try") 2>&5
14103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14104 (exit $ac_status); }; } &&
14105 { ac_try='test -s conftest$ac_exeext'
14106 { (case "(($ac_try" in
14107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_try") 2>&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); }; }; then
14115 ac_cv_lib_udis86_ud_init=yes
14117 echo "$as_me: failed program was:" >&5
14118 sed 's/^/| /' conftest.$ac_ext >&5
14120 ac_cv_lib_udis86_ud_init=no
14123 rm -f core conftest.err conftest.$ac_objext \
14124 conftest$ac_exeext conftest.$ac_ext
14125 LIBS=$ac_check_lib_save_LIBS
14127 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14128 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14129 if test $ac_cv_lib_udis86_ud_init = yes; then
14130 cat >>confdefs.h <<_ACEOF
14131 #define HAVE_LIBUDIS86 1
14134 LIBS="-ludis86 $LIBS"
14138 echo "Error! You need to have libudis86 around."
14150 cat >>confdefs.h <<_ACEOF
14151 #define USE_UDIS86 $USE_UDIS86
14156 # Check whether --with-oprofile was given.
14157 if test "${with_oprofile+set}" = set; then
14158 withval=$with_oprofile;
14162 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14163 no) llvm_cv_oppath=
14166 *) llvm_cv_oppath="${withval}/lib/oprofile"
14167 CPPFLAGS="-I${withval}/include";;
14169 if test -n "$llvm_cv_oppath" ; then
14170 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14171 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14172 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14173 if test "${ac_cv_search_bfd_init+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 ac_func_search_save_LIBS=$LIBS
14177 cat >conftest.$ac_ext <<_ACEOF
14180 cat confdefs.h >>conftest.$ac_ext
14181 cat >>conftest.$ac_ext <<_ACEOF
14182 /* end confdefs.h. */
14184 /* Override any GCC internal prototype to avoid an error.
14185 Use char because int might match the return type of a GCC
14186 builtin and then its argument prototype would still apply. */
14194 return bfd_init ();
14199 for ac_lib in '' bfd; do
14200 if test -z "$ac_lib"; then
14201 ac_res="none required"
14204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14206 rm -f conftest.$ac_objext conftest$ac_exeext
14207 if { (ac_try="$ac_link"
14208 case "(($ac_try" in
14209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14210 *) ac_try_echo=$ac_try;;
14212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14213 (eval "$ac_link") 2>conftest.er1
14215 grep -v '^ *+' conftest.er1 >conftest.err
14217 cat conftest.err >&5
14218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14219 (exit $ac_status); } &&
14220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14221 { (case "(($ac_try" in
14222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14223 *) ac_try_echo=$ac_try;;
14225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14226 (eval "$ac_try") 2>&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); }; } &&
14230 { ac_try='test -s conftest$ac_exeext'
14231 { (case "(($ac_try" in
14232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_try") 2>&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); }; }; then
14240 ac_cv_search_bfd_init=$ac_res
14242 echo "$as_me: failed program was:" >&5
14243 sed 's/^/| /' conftest.$ac_ext >&5
14248 rm -f core conftest.err conftest.$ac_objext \
14250 if test "${ac_cv_search_bfd_init+set}" = set; then
14254 if test "${ac_cv_search_bfd_init+set}" = set; then
14257 ac_cv_search_bfd_init=no
14259 rm conftest.$ac_ext
14260 LIBS=$ac_func_search_save_LIBS
14262 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14263 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14264 ac_res=$ac_cv_search_bfd_init
14265 if test "$ac_res" != no; then
14266 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14270 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14271 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14272 if test "${ac_cv_search_op_open_agent+set}" = set; then
14273 echo $ECHO_N "(cached) $ECHO_C" >&6
14275 ac_func_search_save_LIBS=$LIBS
14276 cat >conftest.$ac_ext <<_ACEOF
14279 cat confdefs.h >>conftest.$ac_ext
14280 cat >>conftest.$ac_ext <<_ACEOF
14281 /* end confdefs.h. */
14283 /* Override any GCC internal prototype to avoid an error.
14284 Use char because int might match the return type of a GCC
14285 builtin and then its argument prototype would still apply. */
14289 char op_open_agent ();
14293 return op_open_agent ();
14298 for ac_lib in '' opagent; do
14299 if test -z "$ac_lib"; then
14300 ac_res="none required"
14303 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14305 rm -f conftest.$ac_objext conftest$ac_exeext
14306 if { (ac_try="$ac_link"
14307 case "(($ac_try" in
14308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14309 *) ac_try_echo=$ac_try;;
14311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14312 (eval "$ac_link") 2>conftest.er1
14314 grep -v '^ *+' conftest.er1 >conftest.err
14316 cat conftest.err >&5
14317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14318 (exit $ac_status); } &&
14319 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14320 { (case "(($ac_try" in
14321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_try") 2>&5
14327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14328 (exit $ac_status); }; } &&
14329 { ac_try='test -s conftest$ac_exeext'
14330 { (case "(($ac_try" in
14331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14332 *) ac_try_echo=$ac_try;;
14334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14335 (eval "$ac_try") 2>&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); }; }; then
14339 ac_cv_search_op_open_agent=$ac_res
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14347 rm -f core conftest.err conftest.$ac_objext \
14349 if test "${ac_cv_search_op_open_agent+set}" = set; then
14353 if test "${ac_cv_search_op_open_agent+set}" = set; then
14356 ac_cv_search_op_open_agent=no
14358 rm conftest.$ac_ext
14359 LIBS=$ac_func_search_save_LIBS
14361 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14362 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14363 ac_res=$ac_cv_search_op_open_agent
14364 if test "$ac_res" != no; then
14365 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14369 echo "Error! You need to have libopagent around."
14374 if test "${ac_cv_header_opagent_h+set}" = set; then
14375 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14376 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14377 if test "${ac_cv_header_opagent_h+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14381 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14383 # Is the header compilable?
14384 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14385 echo $ECHO_N "checking opagent.h usability... $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 $ac_includes_default
14393 #include <opagent.h>
14395 rm -f conftest.$ac_objext
14396 if { (ac_try="$ac_compile"
14397 case "(($ac_try" in
14398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14399 *) ac_try_echo=$ac_try;;
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_compile") 2>conftest.er1
14404 grep -v '^ *+' conftest.er1 >conftest.err
14406 cat conftest.err >&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } &&
14409 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14410 { (case "(($ac_try" in
14411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412 *) ac_try_echo=$ac_try;;
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415 (eval "$ac_try") 2>&5
14417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418 (exit $ac_status); }; } &&
14419 { ac_try='test -s conftest.$ac_objext'
14420 { (case "(($ac_try" in
14421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14422 *) ac_try_echo=$ac_try;;
14424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14425 (eval "$ac_try") 2>&5
14427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14428 (exit $ac_status); }; }; then
14429 ac_header_compiler=yes
14431 echo "$as_me: failed program was:" >&5
14432 sed 's/^/| /' conftest.$ac_ext >&5
14434 ac_header_compiler=no
14437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14438 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14439 echo "${ECHO_T}$ac_header_compiler" >&6; }
14441 # Is the header present?
14442 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14443 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14444 cat >conftest.$ac_ext <<_ACEOF
14447 cat confdefs.h >>conftest.$ac_ext
14448 cat >>conftest.$ac_ext <<_ACEOF
14449 /* end confdefs.h. */
14450 #include <opagent.h>
14452 if { (ac_try="$ac_cpp conftest.$ac_ext"
14453 case "(($ac_try" in
14454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14455 *) ac_try_echo=$ac_try;;
14457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14460 grep -v '^ *+' conftest.er1 >conftest.err
14462 cat conftest.err >&5
14463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14464 (exit $ac_status); } >/dev/null; then
14465 if test -s conftest.err; then
14466 ac_cpp_err=$ac_c_preproc_warn_flag
14467 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14474 if test -z "$ac_cpp_err"; then
14475 ac_header_preproc=yes
14477 echo "$as_me: failed program was:" >&5
14478 sed 's/^/| /' conftest.$ac_ext >&5
14480 ac_header_preproc=no
14483 rm -f conftest.err conftest.$ac_ext
14484 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14485 echo "${ECHO_T}$ac_header_preproc" >&6; }
14487 # So? What about this header?
14488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14490 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14491 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14493 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14494 ac_header_preproc=yes
14497 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14498 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14499 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14500 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14502 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14503 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14504 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14506 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14507 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14508 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14510 ## ----------------------------------- ##
14511 ## Report this to llvmbugs@cs.uiuc.edu ##
14512 ## ----------------------------------- ##
14514 ) | sed "s/^/$as_me: WARNING: /" >&2
14517 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14518 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14519 if test "${ac_cv_header_opagent_h+set}" = set; then
14520 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 ac_cv_header_opagent_h=$ac_header_preproc
14524 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14525 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14528 if test $ac_cv_header_opagent_h = yes; then
14532 echo "Error! You need to have opagent.h around."
14548 cat >>confdefs.h <<_ACEOF
14549 #define USE_OPROFILE $USE_OPROFILE
14559 ac_header_dirent=no
14560 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14561 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14562 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14563 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14567 cat >conftest.$ac_ext <<_ACEOF
14570 cat confdefs.h >>conftest.$ac_ext
14571 cat >>conftest.$ac_ext <<_ACEOF
14572 /* end confdefs.h. */
14573 #include <sys/types.h>
14585 rm -f conftest.$ac_objext
14586 if { (ac_try="$ac_compile"
14587 case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_compile") 2>conftest.er1
14594 grep -v '^ *+' conftest.er1 >conftest.err
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } &&
14599 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14600 { (case "(($ac_try" in
14601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14602 *) ac_try_echo=$ac_try;;
14604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14605 (eval "$ac_try") 2>&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); }; } &&
14609 { ac_try='test -s conftest.$ac_objext'
14610 { (case "(($ac_try" in
14611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14612 *) ac_try_echo=$ac_try;;
14614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14615 (eval "$ac_try") 2>&5
14617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14618 (exit $ac_status); }; }; then
14619 eval "$as_ac_Header=yes"
14621 echo "$as_me: failed program was:" >&5
14622 sed 's/^/| /' conftest.$ac_ext >&5
14624 eval "$as_ac_Header=no"
14627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14629 ac_res=`eval echo '${'$as_ac_Header'}'`
14630 { echo "$as_me:$LINENO: result: $ac_res" >&5
14631 echo "${ECHO_T}$ac_res" >&6; }
14632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14633 cat >>confdefs.h <<_ACEOF
14634 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14637 ac_header_dirent=$ac_hdr; break
14641 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14642 if test $ac_header_dirent = dirent.h; then
14643 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14644 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14645 if test "${ac_cv_search_opendir+set}" = set; then
14646 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 ac_func_search_save_LIBS=$LIBS
14649 cat >conftest.$ac_ext <<_ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14656 /* Override any GCC internal prototype to avoid an error.
14657 Use char because int might match the return type of a GCC
14658 builtin and then its argument prototype would still apply. */
14671 for ac_lib in '' dir; do
14672 if test -z "$ac_lib"; then
14673 ac_res="none required"
14676 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14678 rm -f conftest.$ac_objext conftest$ac_exeext
14679 if { (ac_try="$ac_link"
14680 case "(($ac_try" in
14681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14682 *) ac_try_echo=$ac_try;;
14684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14685 (eval "$ac_link") 2>conftest.er1
14687 grep -v '^ *+' conftest.er1 >conftest.err
14689 cat conftest.err >&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); } &&
14692 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14693 { (case "(($ac_try" in
14694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14695 *) ac_try_echo=$ac_try;;
14697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14698 (eval "$ac_try") 2>&5
14700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14701 (exit $ac_status); }; } &&
14702 { ac_try='test -s conftest$ac_exeext'
14703 { (case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_try") 2>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); }; }; then
14712 ac_cv_search_opendir=$ac_res
14714 echo "$as_me: failed program was:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14720 rm -f core conftest.err conftest.$ac_objext \
14722 if test "${ac_cv_search_opendir+set}" = set; then
14726 if test "${ac_cv_search_opendir+set}" = set; then
14729 ac_cv_search_opendir=no
14731 rm conftest.$ac_ext
14732 LIBS=$ac_func_search_save_LIBS
14734 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14735 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14736 ac_res=$ac_cv_search_opendir
14737 if test "$ac_res" != no; then
14738 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14743 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14744 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14745 if test "${ac_cv_search_opendir+set}" = set; then
14746 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 ac_func_search_save_LIBS=$LIBS
14749 cat >conftest.$ac_ext <<_ACEOF
14752 cat confdefs.h >>conftest.$ac_ext
14753 cat >>conftest.$ac_ext <<_ACEOF
14754 /* end confdefs.h. */
14756 /* Override any GCC internal prototype to avoid an error.
14757 Use char because int might match the return type of a GCC
14758 builtin and then its argument prototype would still apply. */
14771 for ac_lib in '' x; do
14772 if test -z "$ac_lib"; then
14773 ac_res="none required"
14776 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14778 rm -f conftest.$ac_objext conftest$ac_exeext
14779 if { (ac_try="$ac_link"
14780 case "(($ac_try" in
14781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14782 *) ac_try_echo=$ac_try;;
14784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14785 (eval "$ac_link") 2>conftest.er1
14787 grep -v '^ *+' conftest.er1 >conftest.err
14789 cat conftest.err >&5
14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14791 (exit $ac_status); } &&
14792 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14793 { (case "(($ac_try" in
14794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795 *) ac_try_echo=$ac_try;;
14797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798 (eval "$ac_try") 2>&5
14800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14801 (exit $ac_status); }; } &&
14802 { ac_try='test -s conftest$ac_exeext'
14803 { (case "(($ac_try" in
14804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14805 *) ac_try_echo=$ac_try;;
14807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14808 (eval "$ac_try") 2>&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); }; }; then
14812 ac_cv_search_opendir=$ac_res
14814 echo "$as_me: failed program was:" >&5
14815 sed 's/^/| /' conftest.$ac_ext >&5
14820 rm -f core conftest.err conftest.$ac_objext \
14822 if test "${ac_cv_search_opendir+set}" = set; then
14826 if test "${ac_cv_search_opendir+set}" = set; then
14829 ac_cv_search_opendir=no
14831 rm conftest.$ac_ext
14832 LIBS=$ac_func_search_save_LIBS
14834 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14835 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14836 ac_res=$ac_cv_search_opendir
14837 if test "$ac_res" != no; then
14838 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14844 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14845 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14846 if test "${ac_cv_header_mmap_anon+set}" = set; then
14847 echo $ECHO_N "(cached) $ECHO_C" >&6
14850 ac_cpp='$CPP $CPPFLAGS'
14851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14855 cat >conftest.$ac_ext <<_ACEOF
14858 cat confdefs.h >>conftest.$ac_ext
14859 cat >>conftest.$ac_ext <<_ACEOF
14860 /* end confdefs.h. */
14861 #include <sys/mman.h>
14862 #include <unistd.h>
14867 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14872 rm -f conftest.$ac_objext
14873 if { (ac_try="$ac_compile"
14874 case "(($ac_try" in
14875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876 *) ac_try_echo=$ac_try;;
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879 (eval "$ac_compile") 2>conftest.er1
14881 grep -v '^ *+' conftest.er1 >conftest.err
14883 cat conftest.err >&5
14884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885 (exit $ac_status); } &&
14886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887 { (case "(($ac_try" in
14888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889 *) ac_try_echo=$ac_try;;
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892 (eval "$ac_try") 2>&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); }; } &&
14896 { ac_try='test -s conftest.$ac_objext'
14897 { (case "(($ac_try" in
14898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899 *) ac_try_echo=$ac_try;;
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902 (eval "$ac_try") 2>&5
14904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905 (exit $ac_status); }; }; then
14906 ac_cv_header_mmap_anon=yes
14908 echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14911 ac_cv_header_mmap_anon=no
14914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14916 ac_cpp='$CPP $CPPFLAGS'
14917 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14918 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14919 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14923 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14924 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14925 if test "$ac_cv_header_mmap_anon" = yes; then
14927 cat >>confdefs.h <<\_ACEOF
14928 #define HAVE_MMAP_ANONYMOUS 1
14933 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14934 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14935 if test "${ac_cv_header_stat_broken+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 <sys/types.h>
14945 #include <sys/stat.h>
14947 #if defined S_ISBLK && defined S_IFDIR
14948 # if S_ISBLK (S_IFDIR)
14953 #if defined S_ISBLK && defined S_IFCHR
14954 # if S_ISBLK (S_IFCHR)
14959 #if defined S_ISLNK && defined S_IFREG
14960 # if S_ISLNK (S_IFREG)
14965 #if defined S_ISSOCK && defined S_IFREG
14966 # if S_ISSOCK (S_IFREG)
14972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14973 $EGREP "You lose" >/dev/null 2>&1; then
14974 ac_cv_header_stat_broken=yes
14976 ac_cv_header_stat_broken=no
14981 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14982 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14983 if test $ac_cv_header_stat_broken = yes; then
14985 cat >>confdefs.h <<\_ACEOF
14986 #define STAT_MACROS_BROKEN 1
14991 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14992 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14993 if test "${ac_cv_header_stdc+set}" = set; then
14994 echo $ECHO_N "(cached) $ECHO_C" >&6
14996 cat >conftest.$ac_ext <<_ACEOF
14999 cat confdefs.h >>conftest.$ac_ext
15000 cat >>conftest.$ac_ext <<_ACEOF
15001 /* end confdefs.h. */
15002 #include <stdlib.h>
15003 #include <stdarg.h>
15004 #include <string.h>
15015 rm -f conftest.$ac_objext
15016 if { (ac_try="$ac_compile"
15017 case "(($ac_try" in
15018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15019 *) ac_try_echo=$ac_try;;
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_compile") 2>conftest.er1
15024 grep -v '^ *+' conftest.er1 >conftest.err
15026 cat conftest.err >&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } &&
15029 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15030 { (case "(($ac_try" in
15031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15032 *) ac_try_echo=$ac_try;;
15034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15035 (eval "$ac_try") 2>&5
15037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15038 (exit $ac_status); }; } &&
15039 { ac_try='test -s conftest.$ac_objext'
15040 { (case "(($ac_try" in
15041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15042 *) ac_try_echo=$ac_try;;
15044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15045 (eval "$ac_try") 2>&5
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }; }; then
15049 ac_cv_header_stdc=yes
15051 echo "$as_me: failed program was:" >&5
15052 sed 's/^/| /' conftest.$ac_ext >&5
15054 ac_cv_header_stdc=no
15057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15059 if test $ac_cv_header_stdc = yes; then
15060 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15061 cat >conftest.$ac_ext <<_ACEOF
15064 cat confdefs.h >>conftest.$ac_ext
15065 cat >>conftest.$ac_ext <<_ACEOF
15066 /* end confdefs.h. */
15067 #include <string.h>
15070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15071 $EGREP "memchr" >/dev/null 2>&1; then
15074 ac_cv_header_stdc=no
15080 if test $ac_cv_header_stdc = yes; then
15081 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15082 cat >conftest.$ac_ext <<_ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 #include <stdlib.h>
15091 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15092 $EGREP "free" >/dev/null 2>&1; then
15095 ac_cv_header_stdc=no
15101 if test $ac_cv_header_stdc = yes; then
15102 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15103 if test "$cross_compiling" = yes; then
15106 cat >conftest.$ac_ext <<_ACEOF
15109 cat confdefs.h >>conftest.$ac_ext
15110 cat >>conftest.$ac_ext <<_ACEOF
15111 /* end confdefs.h. */
15113 #include <stdlib.h>
15114 #if ((' ' & 0x0FF) == 0x020)
15115 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15116 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15118 # define ISLOWER(c) \
15119 (('a' <= (c) && (c) <= 'i') \
15120 || ('j' <= (c) && (c) <= 'r') \
15121 || ('s' <= (c) && (c) <= 'z'))
15122 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15125 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15130 for (i = 0; i < 256; i++)
15131 if (XOR (islower (i), ISLOWER (i))
15132 || toupper (i) != TOUPPER (i))
15137 rm -f conftest$ac_exeext
15138 if { (ac_try="$ac_link"
15139 case "(($ac_try" in
15140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15141 *) ac_try_echo=$ac_try;;
15143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15144 (eval "$ac_link") 2>&5
15146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15147 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15148 { (case "(($ac_try" in
15149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15150 *) ac_try_echo=$ac_try;;
15152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15153 (eval "$ac_try") 2>&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); }; }; then
15159 echo "$as_me: program exited with status $ac_status" >&5
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15163 ( exit $ac_status )
15164 ac_cv_header_stdc=no
15166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15172 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15173 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15174 if test $ac_cv_header_stdc = yes; then
15176 cat >>confdefs.h <<\_ACEOF
15177 #define STDC_HEADERS 1
15182 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15183 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15184 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 cat >conftest.$ac_ext <<_ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15193 #include <sys/types.h>
15194 #include <sys/wait.h>
15195 #ifndef WEXITSTATUS
15196 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15199 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15207 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15212 rm -f conftest.$ac_objext
15213 if { (ac_try="$ac_compile"
15214 case "(($ac_try" in
15215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15216 *) ac_try_echo=$ac_try;;
15218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15219 (eval "$ac_compile") 2>conftest.er1
15221 grep -v '^ *+' conftest.er1 >conftest.err
15223 cat conftest.err >&5
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } &&
15226 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15227 { (case "(($ac_try" in
15228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15229 *) ac_try_echo=$ac_try;;
15231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15232 (eval "$ac_try") 2>&5
15234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15235 (exit $ac_status); }; } &&
15236 { ac_try='test -s conftest.$ac_objext'
15237 { (case "(($ac_try" in
15238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15239 *) ac_try_echo=$ac_try;;
15241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15242 (eval "$ac_try") 2>&5
15244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15245 (exit $ac_status); }; }; then
15246 ac_cv_header_sys_wait_h=yes
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 ac_cv_header_sys_wait_h=no
15254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15256 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15257 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15258 if test $ac_cv_header_sys_wait_h = yes; then
15260 cat >>confdefs.h <<\_ACEOF
15261 #define HAVE_SYS_WAIT_H 1
15266 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15267 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15268 if test "${ac_cv_header_time+set}" = set; then
15269 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 cat >conftest.$ac_ext <<_ACEOF
15274 cat confdefs.h >>conftest.$ac_ext
15275 cat >>conftest.$ac_ext <<_ACEOF
15276 /* end confdefs.h. */
15277 #include <sys/types.h>
15278 #include <sys/time.h>
15284 if ((struct tm *) 0)
15290 rm -f conftest.$ac_objext
15291 if { (ac_try="$ac_compile"
15292 case "(($ac_try" in
15293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_compile") 2>conftest.er1
15299 grep -v '^ *+' conftest.er1 >conftest.err
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } &&
15304 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15305 { (case "(($ac_try" in
15306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15307 *) ac_try_echo=$ac_try;;
15309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15310 (eval "$ac_try") 2>&5
15312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15313 (exit $ac_status); }; } &&
15314 { ac_try='test -s conftest.$ac_objext'
15315 { (case "(($ac_try" in
15316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15317 *) ac_try_echo=$ac_try;;
15319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15320 (eval "$ac_try") 2>&5
15322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15323 (exit $ac_status); }; }; then
15324 ac_cv_header_time=yes
15326 echo "$as_me: failed program was:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15329 ac_cv_header_time=no
15332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15334 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15335 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15336 if test $ac_cv_header_time = yes; then
15338 cat >>confdefs.h <<\_ACEOF
15339 #define TIME_WITH_SYS_TIME 1
15351 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15353 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15358 echo $ECHO_N "(cached) $ECHO_C" >&6
15360 ac_res=`eval echo '${'$as_ac_Header'}'`
15361 { echo "$as_me:$LINENO: result: $ac_res" >&5
15362 echo "${ECHO_T}$ac_res" >&6; }
15364 # Is the header compilable?
15365 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15366 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
15374 #include <$ac_header>
15376 rm -f conftest.$ac_objext
15377 if { (ac_try="$ac_compile"
15378 case "(($ac_try" in
15379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15380 *) ac_try_echo=$ac_try;;
15382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15383 (eval "$ac_compile") 2>conftest.er1
15385 grep -v '^ *+' conftest.er1 >conftest.err
15387 cat conftest.err >&5
15388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15389 (exit $ac_status); } &&
15390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15391 { (case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15396 (eval "$ac_try") 2>&5
15398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15399 (exit $ac_status); }; } &&
15400 { ac_try='test -s conftest.$ac_objext'
15401 { (case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_try") 2>&5
15408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15409 (exit $ac_status); }; }; then
15410 ac_header_compiler=yes
15412 echo "$as_me: failed program was:" >&5
15413 sed 's/^/| /' conftest.$ac_ext >&5
15415 ac_header_compiler=no
15418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15419 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15420 echo "${ECHO_T}$ac_header_compiler" >&6; }
15422 # Is the header present?
15423 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15424 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15425 cat >conftest.$ac_ext <<_ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h. */
15431 #include <$ac_header>
15433 if { (ac_try="$ac_cpp conftest.$ac_ext"
15434 case "(($ac_try" in
15435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15436 *) ac_try_echo=$ac_try;;
15438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15439 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15441 grep -v '^ *+' conftest.er1 >conftest.err
15443 cat conftest.err >&5
15444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15445 (exit $ac_status); } >/dev/null; then
15446 if test -s conftest.err; then
15447 ac_cpp_err=$ac_c_preproc_warn_flag
15448 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15455 if test -z "$ac_cpp_err"; then
15456 ac_header_preproc=yes
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15461 ac_header_preproc=no
15464 rm -f conftest.err conftest.$ac_ext
15465 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15466 echo "${ECHO_T}$ac_header_preproc" >&6; }
15468 # So? What about this header?
15469 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15471 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15472 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15474 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15475 ac_header_preproc=yes
15478 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15479 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15480 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15481 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15482 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15483 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15484 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15485 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15487 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15488 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15489 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15491 ## ----------------------------------- ##
15492 ## Report this to llvmbugs@cs.uiuc.edu ##
15493 ## ----------------------------------- ##
15495 ) | sed "s/^/$as_me: WARNING: /" >&2
15498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15501 echo $ECHO_N "(cached) $ECHO_C" >&6
15503 eval "$as_ac_Header=\$ac_header_preproc"
15505 ac_res=`eval echo '${'$as_ac_Header'}'`
15506 { echo "$as_me:$LINENO: result: $ac_res" >&5
15507 echo "${ECHO_T}$ac_res" >&6; }
15510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15511 cat >>confdefs.h <<_ACEOF
15512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15525 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15527 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15528 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15529 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15530 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15531 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15532 echo $ECHO_N "(cached) $ECHO_C" >&6
15534 ac_res=`eval echo '${'$as_ac_Header'}'`
15535 { echo "$as_me:$LINENO: result: $ac_res" >&5
15536 echo "${ECHO_T}$ac_res" >&6; }
15538 # Is the header compilable?
15539 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15540 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
15548 #include <$ac_header>
15550 rm -f conftest.$ac_objext
15551 if { (ac_try="$ac_compile"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_compile") 2>conftest.er1
15559 grep -v '^ *+' conftest.er1 >conftest.err
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } &&
15564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15565 { (case "(($ac_try" in
15566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15567 *) ac_try_echo=$ac_try;;
15569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15570 (eval "$ac_try") 2>&5
15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15573 (exit $ac_status); }; } &&
15574 { ac_try='test -s conftest.$ac_objext'
15575 { (case "(($ac_try" in
15576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15577 *) ac_try_echo=$ac_try;;
15579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15580 (eval "$ac_try") 2>&5
15582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15583 (exit $ac_status); }; }; then
15584 ac_header_compiler=yes
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_header_compiler=no
15592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15593 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15594 echo "${ECHO_T}$ac_header_compiler" >&6; }
15596 # Is the header present?
15597 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15598 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15599 cat >conftest.$ac_ext <<_ACEOF
15602 cat confdefs.h >>conftest.$ac_ext
15603 cat >>conftest.$ac_ext <<_ACEOF
15604 /* end confdefs.h. */
15605 #include <$ac_header>
15607 if { (ac_try="$ac_cpp conftest.$ac_ext"
15608 case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15615 grep -v '^ *+' conftest.er1 >conftest.err
15617 cat conftest.err >&5
15618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15619 (exit $ac_status); } >/dev/null; then
15620 if test -s conftest.err; then
15621 ac_cpp_err=$ac_c_preproc_warn_flag
15622 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15629 if test -z "$ac_cpp_err"; then
15630 ac_header_preproc=yes
15632 echo "$as_me: failed program was:" >&5
15633 sed 's/^/| /' conftest.$ac_ext >&5
15635 ac_header_preproc=no
15638 rm -f conftest.err conftest.$ac_ext
15639 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15640 echo "${ECHO_T}$ac_header_preproc" >&6; }
15642 # So? What about this header?
15643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15645 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15646 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15649 ac_header_preproc=yes
15652 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15653 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15654 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15655 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15656 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15657 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15658 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15659 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15660 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15662 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15663 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15665 ## ----------------------------------- ##
15666 ## Report this to llvmbugs@cs.uiuc.edu ##
15667 ## ----------------------------------- ##
15669 ) | sed "s/^/$as_me: WARNING: /" >&2
15672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15675 echo $ECHO_N "(cached) $ECHO_C" >&6
15677 eval "$as_ac_Header=\$ac_header_preproc"
15679 ac_res=`eval echo '${'$as_ac_Header'}'`
15680 { echo "$as_me:$LINENO: result: $ac_res" >&5
15681 echo "${ECHO_T}$ac_res" >&6; }
15684 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15685 cat >>confdefs.h <<_ACEOF
15686 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15695 for ac_header in utime.h windows.h
15697 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15698 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15699 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15700 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15701 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15702 echo $ECHO_N "(cached) $ECHO_C" >&6
15704 ac_res=`eval echo '${'$as_ac_Header'}'`
15705 { echo "$as_me:$LINENO: result: $ac_res" >&5
15706 echo "${ECHO_T}$ac_res" >&6; }
15708 # Is the header compilable?
15709 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15710 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
15718 #include <$ac_header>
15720 rm -f conftest.$ac_objext
15721 if { (ac_try="$ac_compile"
15722 case "(($ac_try" in
15723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15724 *) ac_try_echo=$ac_try;;
15726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15727 (eval "$ac_compile") 2>conftest.er1
15729 grep -v '^ *+' conftest.er1 >conftest.err
15731 cat conftest.err >&5
15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15733 (exit $ac_status); } &&
15734 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15735 { (case "(($ac_try" in
15736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15737 *) ac_try_echo=$ac_try;;
15739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15740 (eval "$ac_try") 2>&5
15742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15743 (exit $ac_status); }; } &&
15744 { ac_try='test -s conftest.$ac_objext'
15745 { (case "(($ac_try" in
15746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15747 *) ac_try_echo=$ac_try;;
15749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15750 (eval "$ac_try") 2>&5
15752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15753 (exit $ac_status); }; }; then
15754 ac_header_compiler=yes
15756 echo "$as_me: failed program was:" >&5
15757 sed 's/^/| /' conftest.$ac_ext >&5
15759 ac_header_compiler=no
15762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15763 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15764 echo "${ECHO_T}$ac_header_compiler" >&6; }
15766 # Is the header present?
15767 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15768 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15769 cat >conftest.$ac_ext <<_ACEOF
15772 cat confdefs.h >>conftest.$ac_ext
15773 cat >>conftest.$ac_ext <<_ACEOF
15774 /* end confdefs.h. */
15775 #include <$ac_header>
15777 if { (ac_try="$ac_cpp conftest.$ac_ext"
15778 case "(($ac_try" in
15779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15780 *) ac_try_echo=$ac_try;;
15782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15785 grep -v '^ *+' conftest.er1 >conftest.err
15787 cat conftest.err >&5
15788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15789 (exit $ac_status); } >/dev/null; then
15790 if test -s conftest.err; then
15791 ac_cpp_err=$ac_c_preproc_warn_flag
15792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15799 if test -z "$ac_cpp_err"; then
15800 ac_header_preproc=yes
15802 echo "$as_me: failed program was:" >&5
15803 sed 's/^/| /' conftest.$ac_ext >&5
15805 ac_header_preproc=no
15808 rm -f conftest.err conftest.$ac_ext
15809 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15810 echo "${ECHO_T}$ac_header_preproc" >&6; }
15812 # So? What about this header?
15813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15815 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15816 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15817 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15819 ac_header_preproc=yes
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15823 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15825 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15826 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15827 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15828 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15829 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15832 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15833 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15835 ## ----------------------------------- ##
15836 ## Report this to llvmbugs@cs.uiuc.edu ##
15837 ## ----------------------------------- ##
15839 ) | sed "s/^/$as_me: WARNING: /" >&2
15842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15845 echo $ECHO_N "(cached) $ECHO_C" >&6
15847 eval "$as_ac_Header=\$ac_header_preproc"
15849 ac_res=`eval echo '${'$as_ac_Header'}'`
15850 { echo "$as_me:$LINENO: result: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15855 cat >>confdefs.h <<_ACEOF
15856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15867 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15874 echo $ECHO_N "(cached) $ECHO_C" >&6
15876 ac_res=`eval echo '${'$as_ac_Header'}'`
15877 { echo "$as_me:$LINENO: result: $ac_res" >&5
15878 echo "${ECHO_T}$ac_res" >&6; }
15880 # Is the header compilable?
15881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15882 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
15890 #include <$ac_header>
15892 rm -f conftest.$ac_objext
15893 if { (ac_try="$ac_compile"
15894 case "(($ac_try" in
15895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15896 *) ac_try_echo=$ac_try;;
15898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15899 (eval "$ac_compile") 2>conftest.er1
15901 grep -v '^ *+' conftest.er1 >conftest.err
15903 cat conftest.err >&5
15904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15905 (exit $ac_status); } &&
15906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15907 { (case "(($ac_try" in
15908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15909 *) ac_try_echo=$ac_try;;
15911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15912 (eval "$ac_try") 2>&5
15914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15915 (exit $ac_status); }; } &&
15916 { ac_try='test -s conftest.$ac_objext'
15917 { (case "(($ac_try" in
15918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15919 *) ac_try_echo=$ac_try;;
15921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15922 (eval "$ac_try") 2>&5
15924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15925 (exit $ac_status); }; }; then
15926 ac_header_compiler=yes
15928 echo "$as_me: failed program was:" >&5
15929 sed 's/^/| /' conftest.$ac_ext >&5
15931 ac_header_compiler=no
15934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15936 echo "${ECHO_T}$ac_header_compiler" >&6; }
15938 # Is the header present?
15939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15941 cat >conftest.$ac_ext <<_ACEOF
15944 cat confdefs.h >>conftest.$ac_ext
15945 cat >>conftest.$ac_ext <<_ACEOF
15946 /* end confdefs.h. */
15947 #include <$ac_header>
15949 if { (ac_try="$ac_cpp conftest.$ac_ext"
15950 case "(($ac_try" in
15951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15952 *) ac_try_echo=$ac_try;;
15954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15957 grep -v '^ *+' conftest.er1 >conftest.err
15959 cat conftest.err >&5
15960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15961 (exit $ac_status); } >/dev/null; then
15962 if test -s conftest.err; then
15963 ac_cpp_err=$ac_c_preproc_warn_flag
15964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15971 if test -z "$ac_cpp_err"; then
15972 ac_header_preproc=yes
15974 echo "$as_me: failed program was:" >&5
15975 sed 's/^/| /' conftest.$ac_ext >&5
15977 ac_header_preproc=no
15980 rm -f conftest.err conftest.$ac_ext
15981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15982 echo "${ECHO_T}$ac_header_preproc" >&6; }
15984 # So? What about this header?
15985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15991 ac_header_preproc=yes
15994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16007 ## ----------------------------------- ##
16008 ## Report this to llvmbugs@cs.uiuc.edu ##
16009 ## ----------------------------------- ##
16011 ) | sed "s/^/$as_me: WARNING: /" >&2
16014 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16015 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16017 echo $ECHO_N "(cached) $ECHO_C" >&6
16019 eval "$as_ac_Header=\$ac_header_preproc"
16021 ac_res=`eval echo '${'$as_ac_Header'}'`
16022 { echo "$as_me:$LINENO: result: $ac_res" >&5
16023 echo "${ECHO_T}$ac_res" >&6; }
16026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16027 cat >>confdefs.h <<_ACEOF
16028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16039 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16041 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16042 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16043 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16044 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16046 echo $ECHO_N "(cached) $ECHO_C" >&6
16048 ac_res=`eval echo '${'$as_ac_Header'}'`
16049 { echo "$as_me:$LINENO: result: $ac_res" >&5
16050 echo "${ECHO_T}$ac_res" >&6; }
16052 # Is the header compilable?
16053 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16054 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
16062 #include <$ac_header>
16064 rm -f conftest.$ac_objext
16065 if { (ac_try="$ac_compile"
16066 case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_compile") 2>conftest.er1
16073 grep -v '^ *+' conftest.er1 >conftest.err
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16077 (exit $ac_status); } &&
16078 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16079 { (case "(($ac_try" in
16080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16081 *) ac_try_echo=$ac_try;;
16083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16084 (eval "$ac_try") 2>&5
16086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16087 (exit $ac_status); }; } &&
16088 { ac_try='test -s conftest.$ac_objext'
16089 { (case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_try") 2>&5
16096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16097 (exit $ac_status); }; }; then
16098 ac_header_compiler=yes
16100 echo "$as_me: failed program was:" >&5
16101 sed 's/^/| /' conftest.$ac_ext >&5
16103 ac_header_compiler=no
16106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16107 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16108 echo "${ECHO_T}$ac_header_compiler" >&6; }
16110 # Is the header present?
16111 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16112 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16113 cat >conftest.$ac_ext <<_ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 #include <$ac_header>
16121 if { (ac_try="$ac_cpp conftest.$ac_ext"
16122 case "(($ac_try" in
16123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16124 *) ac_try_echo=$ac_try;;
16126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16127 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16129 grep -v '^ *+' conftest.er1 >conftest.err
16131 cat conftest.err >&5
16132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16133 (exit $ac_status); } >/dev/null; then
16134 if test -s conftest.err; then
16135 ac_cpp_err=$ac_c_preproc_warn_flag
16136 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16143 if test -z "$ac_cpp_err"; then
16144 ac_header_preproc=yes
16146 echo "$as_me: failed program was:" >&5
16147 sed 's/^/| /' conftest.$ac_ext >&5
16149 ac_header_preproc=no
16152 rm -f conftest.err conftest.$ac_ext
16153 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16154 echo "${ECHO_T}$ac_header_preproc" >&6; }
16156 # So? What about this header?
16157 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16159 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16160 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16162 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16163 ac_header_preproc=yes
16166 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16167 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16168 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16169 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16170 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16171 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16172 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16173 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16175 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16176 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16177 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16179 ## ----------------------------------- ##
16180 ## Report this to llvmbugs@cs.uiuc.edu ##
16181 ## ----------------------------------- ##
16183 ) | sed "s/^/$as_me: WARNING: /" >&2
16186 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16189 echo $ECHO_N "(cached) $ECHO_C" >&6
16191 eval "$as_ac_Header=\$ac_header_preproc"
16193 ac_res=`eval echo '${'$as_ac_Header'}'`
16194 { echo "$as_me:$LINENO: result: $ac_res" >&5
16195 echo "${ECHO_T}$ac_res" >&6; }
16198 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16199 cat >>confdefs.h <<_ACEOF
16200 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16208 for ac_header in valgrind/valgrind.h
16210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16215 echo $ECHO_N "(cached) $ECHO_C" >&6
16217 ac_res=`eval echo '${'$as_ac_Header'}'`
16218 { echo "$as_me:$LINENO: result: $ac_res" >&5
16219 echo "${ECHO_T}$ac_res" >&6; }
16221 # Is the header compilable?
16222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16224 cat >conftest.$ac_ext <<_ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 $ac_includes_default
16231 #include <$ac_header>
16233 rm -f conftest.$ac_objext
16234 if { (ac_try="$ac_compile"
16235 case "(($ac_try" in
16236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16237 *) ac_try_echo=$ac_try;;
16239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16240 (eval "$ac_compile") 2>conftest.er1
16242 grep -v '^ *+' conftest.er1 >conftest.err
16244 cat conftest.err >&5
16245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16246 (exit $ac_status); } &&
16247 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16248 { (case "(($ac_try" in
16249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16250 *) ac_try_echo=$ac_try;;
16252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16253 (eval "$ac_try") 2>&5
16255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); }; } &&
16257 { ac_try='test -s conftest.$ac_objext'
16258 { (case "(($ac_try" in
16259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16260 *) ac_try_echo=$ac_try;;
16262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16263 (eval "$ac_try") 2>&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); }; }; then
16267 ac_header_compiler=yes
16269 echo "$as_me: failed program was:" >&5
16270 sed 's/^/| /' conftest.$ac_ext >&5
16272 ac_header_compiler=no
16275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16277 echo "${ECHO_T}$ac_header_compiler" >&6; }
16279 # Is the header present?
16280 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16281 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16282 cat >conftest.$ac_ext <<_ACEOF
16285 cat confdefs.h >>conftest.$ac_ext
16286 cat >>conftest.$ac_ext <<_ACEOF
16287 /* end confdefs.h. */
16288 #include <$ac_header>
16290 if { (ac_try="$ac_cpp conftest.$ac_ext"
16291 case "(($ac_try" in
16292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16293 *) ac_try_echo=$ac_try;;
16295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16298 grep -v '^ *+' conftest.er1 >conftest.err
16300 cat conftest.err >&5
16301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16302 (exit $ac_status); } >/dev/null; then
16303 if test -s conftest.err; then
16304 ac_cpp_err=$ac_c_preproc_warn_flag
16305 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16312 if test -z "$ac_cpp_err"; then
16313 ac_header_preproc=yes
16315 echo "$as_me: failed program was:" >&5
16316 sed 's/^/| /' conftest.$ac_ext >&5
16318 ac_header_preproc=no
16321 rm -f conftest.err conftest.$ac_ext
16322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16323 echo "${ECHO_T}$ac_header_preproc" >&6; }
16325 # So? What about this header?
16326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16332 ac_header_preproc=yes
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16348 ## ----------------------------------- ##
16349 ## Report this to llvmbugs@cs.uiuc.edu ##
16350 ## ----------------------------------- ##
16352 ) | sed "s/^/$as_me: WARNING: /" >&2
16355 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16356 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16357 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16358 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 eval "$as_ac_Header=\$ac_header_preproc"
16362 ac_res=`eval echo '${'$as_ac_Header'}'`
16363 { echo "$as_me:$LINENO: result: $ac_res" >&5
16364 echo "${ECHO_T}$ac_res" >&6; }
16367 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16368 cat >>confdefs.h <<_ACEOF
16369 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16376 if test "$ENABLE_THREADS" -eq 1 ; then
16378 for ac_header in pthread.h
16380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16385 echo $ECHO_N "(cached) $ECHO_C" >&6
16387 ac_res=`eval echo '${'$as_ac_Header'}'`
16388 { echo "$as_me:$LINENO: result: $ac_res" >&5
16389 echo "${ECHO_T}$ac_res" >&6; }
16391 # Is the header compilable?
16392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16393 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16394 cat >conftest.$ac_ext <<_ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 $ac_includes_default
16401 #include <$ac_header>
16403 rm -f conftest.$ac_objext
16404 if { (ac_try="$ac_compile"
16405 case "(($ac_try" in
16406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16407 *) ac_try_echo=$ac_try;;
16409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16410 (eval "$ac_compile") 2>conftest.er1
16412 grep -v '^ *+' conftest.er1 >conftest.err
16414 cat conftest.err >&5
16415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16416 (exit $ac_status); } &&
16417 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16418 { (case "(($ac_try" in
16419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16420 *) ac_try_echo=$ac_try;;
16422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16423 (eval "$ac_try") 2>&5
16425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16426 (exit $ac_status); }; } &&
16427 { ac_try='test -s conftest.$ac_objext'
16428 { (case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_try") 2>&5
16435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16436 (exit $ac_status); }; }; then
16437 ac_header_compiler=yes
16439 echo "$as_me: failed program was:" >&5
16440 sed 's/^/| /' conftest.$ac_ext >&5
16442 ac_header_compiler=no
16445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16446 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16447 echo "${ECHO_T}$ac_header_compiler" >&6; }
16449 # Is the header present?
16450 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16451 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16452 cat >conftest.$ac_ext <<_ACEOF
16455 cat confdefs.h >>conftest.$ac_ext
16456 cat >>conftest.$ac_ext <<_ACEOF
16457 /* end confdefs.h. */
16458 #include <$ac_header>
16460 if { (ac_try="$ac_cpp conftest.$ac_ext"
16461 case "(($ac_try" in
16462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16463 *) ac_try_echo=$ac_try;;
16465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16466 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16468 grep -v '^ *+' conftest.er1 >conftest.err
16470 cat conftest.err >&5
16471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16472 (exit $ac_status); } >/dev/null; then
16473 if test -s conftest.err; then
16474 ac_cpp_err=$ac_c_preproc_warn_flag
16475 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16482 if test -z "$ac_cpp_err"; then
16483 ac_header_preproc=yes
16485 echo "$as_me: failed program was:" >&5
16486 sed 's/^/| /' conftest.$ac_ext >&5
16488 ac_header_preproc=no
16491 rm -f conftest.err conftest.$ac_ext
16492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16493 echo "${ECHO_T}$ac_header_preproc" >&6; }
16495 # So? What about this header?
16496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16498 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16499 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16500 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16501 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16502 ac_header_preproc=yes
16505 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16506 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16507 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16508 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16509 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16510 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16511 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16512 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16513 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16514 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16515 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16516 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16518 ## ----------------------------------- ##
16519 ## Report this to llvmbugs@cs.uiuc.edu ##
16520 ## ----------------------------------- ##
16522 ) | sed "s/^/$as_me: WARNING: /" >&2
16525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16528 echo $ECHO_N "(cached) $ECHO_C" >&6
16530 eval "$as_ac_Header=\$ac_header_preproc"
16532 ac_res=`eval echo '${'$as_ac_Header'}'`
16533 { echo "$as_me:$LINENO: result: $ac_res" >&5
16534 echo "${ECHO_T}$ac_res" >&6; }
16537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16538 cat >>confdefs.h <<_ACEOF
16539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16555 if test "$llvm_cv_enable_libffi" = "yes" ; then
16558 for ac_header in ffi.h ffi/ffi.h
16560 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16561 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16562 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16564 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16565 echo $ECHO_N "(cached) $ECHO_C" >&6
16567 ac_res=`eval echo '${'$as_ac_Header'}'`
16568 { echo "$as_me:$LINENO: result: $ac_res" >&5
16569 echo "${ECHO_T}$ac_res" >&6; }
16571 # Is the header compilable?
16572 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16573 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16574 cat >conftest.$ac_ext <<_ACEOF
16577 cat confdefs.h >>conftest.$ac_ext
16578 cat >>conftest.$ac_ext <<_ACEOF
16579 /* end confdefs.h. */
16580 $ac_includes_default
16581 #include <$ac_header>
16583 rm -f conftest.$ac_objext
16584 if { (ac_try="$ac_compile"
16585 case "(($ac_try" in
16586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16587 *) ac_try_echo=$ac_try;;
16589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16590 (eval "$ac_compile") 2>conftest.er1
16592 grep -v '^ *+' conftest.er1 >conftest.err
16594 cat conftest.err >&5
16595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16596 (exit $ac_status); } &&
16597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16598 { (case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_try") 2>&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); }; } &&
16607 { ac_try='test -s conftest.$ac_objext'
16608 { (case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_try") 2>&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); }; }; then
16617 ac_header_compiler=yes
16619 echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16622 ac_header_compiler=no
16625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16626 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16627 echo "${ECHO_T}$ac_header_compiler" >&6; }
16629 # Is the header present?
16630 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16631 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16632 cat >conftest.$ac_ext <<_ACEOF
16635 cat confdefs.h >>conftest.$ac_ext
16636 cat >>conftest.$ac_ext <<_ACEOF
16637 /* end confdefs.h. */
16638 #include <$ac_header>
16640 if { (ac_try="$ac_cpp conftest.$ac_ext"
16641 case "(($ac_try" in
16642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16643 *) ac_try_echo=$ac_try;;
16645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16648 grep -v '^ *+' conftest.er1 >conftest.err
16650 cat conftest.err >&5
16651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16652 (exit $ac_status); } >/dev/null; then
16653 if test -s conftest.err; then
16654 ac_cpp_err=$ac_c_preproc_warn_flag
16655 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16662 if test -z "$ac_cpp_err"; then
16663 ac_header_preproc=yes
16665 echo "$as_me: failed program was:" >&5
16666 sed 's/^/| /' conftest.$ac_ext >&5
16668 ac_header_preproc=no
16671 rm -f conftest.err conftest.$ac_ext
16672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16673 echo "${ECHO_T}$ac_header_preproc" >&6; }
16675 # So? What about this header?
16676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16678 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16679 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16682 ac_header_preproc=yes
16685 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16686 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16687 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16688 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16689 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16690 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16691 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16692 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16693 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16695 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16696 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16698 ## ----------------------------------- ##
16699 ## Report this to llvmbugs@cs.uiuc.edu ##
16700 ## ----------------------------------- ##
16702 ) | sed "s/^/$as_me: WARNING: /" >&2
16705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16708 echo $ECHO_N "(cached) $ECHO_C" >&6
16710 eval "$as_ac_Header=\$ac_header_preproc"
16712 ac_res=`eval echo '${'$as_ac_Header'}'`
16713 { echo "$as_me:$LINENO: result: $ac_res" >&5
16714 echo "${ECHO_T}$ac_res" >&6; }
16717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16718 cat >>confdefs.h <<_ACEOF
16719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16731 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16732 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16733 if test "${ac_cv_huge_val_sanity+set}" = set; then
16734 echo $ECHO_N "(cached) $ECHO_C" >&6
16738 ac_cpp='$CXXCPP $CPPFLAGS'
16739 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16740 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16741 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16743 ac_save_CXXFLAGS=$CXXFLAGS
16745 if test "$cross_compiling" = yes; then
16746 ac_cv_huge_val_sanity=yes
16748 cat >conftest.$ac_ext <<_ACEOF
16751 cat confdefs.h >>conftest.$ac_ext
16752 cat >>conftest.$ac_ext <<_ACEOF
16753 /* end confdefs.h. */
16758 double x = HUGE_VAL; return x != x;
16763 rm -f conftest$ac_exeext
16764 if { (ac_try="$ac_link"
16765 case "(($ac_try" in
16766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16767 *) ac_try_echo=$ac_try;;
16769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16770 (eval "$ac_link") 2>&5
16772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16773 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16774 { (case "(($ac_try" in
16775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16776 *) ac_try_echo=$ac_try;;
16778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16779 (eval "$ac_try") 2>&5
16781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16782 (exit $ac_status); }; }; then
16783 ac_cv_huge_val_sanity=yes
16785 echo "$as_me: program exited with status $ac_status" >&5
16786 echo "$as_me: failed program was:" >&5
16787 sed 's/^/| /' conftest.$ac_ext >&5
16789 ( exit $ac_status )
16790 ac_cv_huge_val_sanity=no
16792 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16796 CXXFLAGS=$ac_save_CXXFLAGS
16798 ac_cpp='$CPP $CPPFLAGS'
16799 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16800 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16801 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16805 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16806 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16807 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16810 { echo "$as_me:$LINENO: checking for pid_t" >&5
16811 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16812 if test "${ac_cv_type_pid_t+set}" = set; then
16813 echo $ECHO_N "(cached) $ECHO_C" >&6
16815 cat >conftest.$ac_ext <<_ACEOF
16818 cat confdefs.h >>conftest.$ac_ext
16819 cat >>conftest.$ac_ext <<_ACEOF
16820 /* end confdefs.h. */
16821 $ac_includes_default
16822 typedef pid_t ac__type_new_;
16826 if ((ac__type_new_ *) 0)
16828 if (sizeof (ac__type_new_))
16834 rm -f conftest.$ac_objext
16835 if { (ac_try="$ac_compile"
16836 case "(($ac_try" in
16837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16838 *) ac_try_echo=$ac_try;;
16840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16841 (eval "$ac_compile") 2>conftest.er1
16843 grep -v '^ *+' conftest.er1 >conftest.err
16845 cat conftest.err >&5
16846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16847 (exit $ac_status); } &&
16848 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16849 { (case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16854 (eval "$ac_try") 2>&5
16856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16857 (exit $ac_status); }; } &&
16858 { ac_try='test -s conftest.$ac_objext'
16859 { (case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16864 (eval "$ac_try") 2>&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); }; }; then
16868 ac_cv_type_pid_t=yes
16870 echo "$as_me: failed program was:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 ac_cv_type_pid_t=no
16876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16878 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16879 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16880 if test $ac_cv_type_pid_t = yes; then
16884 cat >>confdefs.h <<_ACEOF
16890 { echo "$as_me:$LINENO: checking for size_t" >&5
16891 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16892 if test "${ac_cv_type_size_t+set}" = set; then
16893 echo $ECHO_N "(cached) $ECHO_C" >&6
16895 cat >conftest.$ac_ext <<_ACEOF
16898 cat confdefs.h >>conftest.$ac_ext
16899 cat >>conftest.$ac_ext <<_ACEOF
16900 /* end confdefs.h. */
16901 $ac_includes_default
16902 typedef size_t ac__type_new_;
16906 if ((ac__type_new_ *) 0)
16908 if (sizeof (ac__type_new_))
16914 rm -f conftest.$ac_objext
16915 if { (ac_try="$ac_compile"
16916 case "(($ac_try" in
16917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16918 *) ac_try_echo=$ac_try;;
16920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16921 (eval "$ac_compile") 2>conftest.er1
16923 grep -v '^ *+' conftest.er1 >conftest.err
16925 cat conftest.err >&5
16926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16927 (exit $ac_status); } &&
16928 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16929 { (case "(($ac_try" in
16930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16931 *) ac_try_echo=$ac_try;;
16933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16934 (eval "$ac_try") 2>&5
16936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16937 (exit $ac_status); }; } &&
16938 { ac_try='test -s conftest.$ac_objext'
16939 { (case "(($ac_try" in
16940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16941 *) ac_try_echo=$ac_try;;
16943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16944 (eval "$ac_try") 2>&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; }; then
16948 ac_cv_type_size_t=yes
16950 echo "$as_me: failed program was:" >&5
16951 sed 's/^/| /' conftest.$ac_ext >&5
16953 ac_cv_type_size_t=no
16956 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16958 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16959 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16960 if test $ac_cv_type_size_t = yes; then
16964 cat >>confdefs.h <<_ACEOF
16965 #define size_t unsigned int
16971 cat >>confdefs.h <<_ACEOF
16972 #define RETSIGTYPE void
16975 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16976 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16977 if test "${ac_cv_struct_tm+set}" = set; then
16978 echo $ECHO_N "(cached) $ECHO_C" >&6
16980 cat >conftest.$ac_ext <<_ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 #include <sys/types.h>
16992 struct tm *tp; tp->tm_sec;
16997 rm -f conftest.$ac_objext
16998 if { (ac_try="$ac_compile"
16999 case "(($ac_try" in
17000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17001 *) ac_try_echo=$ac_try;;
17003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17004 (eval "$ac_compile") 2>conftest.er1
17006 grep -v '^ *+' conftest.er1 >conftest.err
17008 cat conftest.err >&5
17009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17010 (exit $ac_status); } &&
17011 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17012 { (case "(($ac_try" in
17013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17014 *) ac_try_echo=$ac_try;;
17016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17017 (eval "$ac_try") 2>&5
17019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17020 (exit $ac_status); }; } &&
17021 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
17031 ac_cv_struct_tm=time.h
17033 echo "$as_me: failed program was:" >&5
17034 sed 's/^/| /' conftest.$ac_ext >&5
17036 ac_cv_struct_tm=sys/time.h
17039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17041 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17042 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17043 if test $ac_cv_struct_tm = sys/time.h; then
17045 cat >>confdefs.h <<\_ACEOF
17046 #define TM_IN_SYS_TIME 1
17051 { echo "$as_me:$LINENO: checking for int64_t" >&5
17052 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17053 if test "${ac_cv_type_int64_t+set}" = set; then
17054 echo $ECHO_N "(cached) $ECHO_C" >&6
17056 cat >conftest.$ac_ext <<_ACEOF
17059 cat confdefs.h >>conftest.$ac_ext
17060 cat >>conftest.$ac_ext <<_ACEOF
17061 /* end confdefs.h. */
17062 $ac_includes_default
17063 typedef int64_t ac__type_new_;
17067 if ((ac__type_new_ *) 0)
17069 if (sizeof (ac__type_new_))
17075 rm -f conftest.$ac_objext
17076 if { (ac_try="$ac_compile"
17077 case "(($ac_try" in
17078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17079 *) ac_try_echo=$ac_try;;
17081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17082 (eval "$ac_compile") 2>conftest.er1
17084 grep -v '^ *+' conftest.er1 >conftest.err
17086 cat conftest.err >&5
17087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17088 (exit $ac_status); } &&
17089 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17090 { (case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_try") 2>&5
17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17098 (exit $ac_status); }; } &&
17099 { ac_try='test -s conftest.$ac_objext'
17100 { (case "(($ac_try" in
17101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17102 *) ac_try_echo=$ac_try;;
17104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17105 (eval "$ac_try") 2>&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); }; }; then
17109 ac_cv_type_int64_t=yes
17111 echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17114 ac_cv_type_int64_t=no
17117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17119 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17120 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17121 if test $ac_cv_type_int64_t = yes; then
17123 cat >>confdefs.h <<_ACEOF
17124 #define HAVE_INT64_T 1
17129 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17130 echo "$as_me: error: Type int64_t required but not found" >&2;}
17131 { (exit 1); exit 1; }; }
17134 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17135 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17136 if test "${ac_cv_type_uint64_t+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 cat >conftest.$ac_ext <<_ACEOF
17142 cat confdefs.h >>conftest.$ac_ext
17143 cat >>conftest.$ac_ext <<_ACEOF
17144 /* end confdefs.h. */
17145 $ac_includes_default
17146 typedef uint64_t ac__type_new_;
17150 if ((ac__type_new_ *) 0)
17152 if (sizeof (ac__type_new_))
17158 rm -f conftest.$ac_objext
17159 if { (ac_try="$ac_compile"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_compile") 2>conftest.er1
17167 grep -v '^ *+' conftest.er1 >conftest.err
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17171 (exit $ac_status); } &&
17172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17173 { (case "(($ac_try" in
17174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17175 *) ac_try_echo=$ac_try;;
17177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17178 (eval "$ac_try") 2>&5
17180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17181 (exit $ac_status); }; } &&
17182 { ac_try='test -s conftest.$ac_objext'
17183 { (case "(($ac_try" in
17184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17185 *) ac_try_echo=$ac_try;;
17187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17188 (eval "$ac_try") 2>&5
17190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17191 (exit $ac_status); }; }; then
17192 ac_cv_type_uint64_t=yes
17194 echo "$as_me: failed program was:" >&5
17195 sed 's/^/| /' conftest.$ac_ext >&5
17197 ac_cv_type_uint64_t=no
17200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17202 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17203 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17204 if test $ac_cv_type_uint64_t = yes; then
17206 cat >>confdefs.h <<_ACEOF
17207 #define HAVE_UINT64_T 1
17212 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17213 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17214 if test "${ac_cv_type_u_int64_t+set}" = set; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17217 cat >conftest.$ac_ext <<_ACEOF
17220 cat confdefs.h >>conftest.$ac_ext
17221 cat >>conftest.$ac_ext <<_ACEOF
17222 /* end confdefs.h. */
17223 $ac_includes_default
17224 typedef u_int64_t ac__type_new_;
17228 if ((ac__type_new_ *) 0)
17230 if (sizeof (ac__type_new_))
17236 rm -f conftest.$ac_objext
17237 if { (ac_try="$ac_compile"
17238 case "(($ac_try" in
17239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17240 *) ac_try_echo=$ac_try;;
17242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17243 (eval "$ac_compile") 2>conftest.er1
17245 grep -v '^ *+' conftest.er1 >conftest.err
17247 cat conftest.err >&5
17248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17249 (exit $ac_status); } &&
17250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17251 { (case "(($ac_try" in
17252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17253 *) ac_try_echo=$ac_try;;
17255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17256 (eval "$ac_try") 2>&5
17258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17259 (exit $ac_status); }; } &&
17260 { ac_try='test -s conftest.$ac_objext'
17261 { (case "(($ac_try" in
17262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17263 *) ac_try_echo=$ac_try;;
17265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17266 (eval "$ac_try") 2>&5
17268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17269 (exit $ac_status); }; }; then
17270 ac_cv_type_u_int64_t=yes
17272 echo "$as_me: failed program was:" >&5
17273 sed 's/^/| /' conftest.$ac_ext >&5
17275 ac_cv_type_u_int64_t=no
17278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17280 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17281 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17282 if test $ac_cv_type_u_int64_t = yes; then
17284 cat >>confdefs.h <<_ACEOF
17285 #define HAVE_U_INT64_T 1
17290 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17291 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17292 { (exit 1); exit 1; }; }
17306 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17308 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17309 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17310 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17311 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17312 echo $ECHO_N "(cached) $ECHO_C" >&6
17314 cat >conftest.$ac_ext <<_ACEOF
17317 cat confdefs.h >>conftest.$ac_ext
17318 cat >>conftest.$ac_ext <<_ACEOF
17319 /* end confdefs.h. */
17320 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17321 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17322 #define $ac_func innocuous_$ac_func
17324 /* System header to define __stub macros and hopefully few prototypes,
17325 which can conflict with char $ac_func (); below.
17326 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17327 <limits.h> exists even on freestanding compilers. */
17330 # include <limits.h>
17332 # include <assert.h>
17337 /* Override any GCC internal prototype to avoid an error.
17338 Use char because int might match the return type of a GCC
17339 builtin and then its argument prototype would still apply. */
17344 /* The GNU C library defines this for functions which it implements
17345 to always fail with ENOSYS. Some functions are actually named
17346 something starting with __ and the normal name is an alias. */
17347 #if defined __stub_$ac_func || defined __stub___$ac_func
17354 return $ac_func ();
17359 rm -f conftest.$ac_objext conftest$ac_exeext
17360 if { (ac_try="$ac_link"
17361 case "(($ac_try" in
17362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17363 *) ac_try_echo=$ac_try;;
17365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17366 (eval "$ac_link") 2>conftest.er1
17368 grep -v '^ *+' conftest.er1 >conftest.err
17370 cat conftest.err >&5
17371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17372 (exit $ac_status); } &&
17373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17374 { (case "(($ac_try" in
17375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17376 *) ac_try_echo=$ac_try;;
17378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17379 (eval "$ac_try") 2>&5
17381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17382 (exit $ac_status); }; } &&
17383 { ac_try='test -s conftest$ac_exeext'
17384 { (case "(($ac_try" in
17385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17386 *) ac_try_echo=$ac_try;;
17388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17389 (eval "$ac_try") 2>&5
17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392 (exit $ac_status); }; }; then
17393 eval "$as_ac_var=yes"
17395 echo "$as_me: failed program was:" >&5
17396 sed 's/^/| /' conftest.$ac_ext >&5
17398 eval "$as_ac_var=no"
17401 rm -f core conftest.err conftest.$ac_objext \
17402 conftest$ac_exeext conftest.$ac_ext
17404 ac_res=`eval echo '${'$as_ac_var'}'`
17405 { echo "$as_me:$LINENO: result: $ac_res" >&5
17406 echo "${ECHO_T}$ac_res" >&6; }
17407 if test `eval echo '${'$as_ac_var'}'` = yes; then
17408 cat >>confdefs.h <<_ACEOF
17409 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17419 for ac_func in powf fmodf strtof round
17421 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17422 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17423 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17424 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17425 echo $ECHO_N "(cached) $ECHO_C" >&6
17427 cat >conftest.$ac_ext <<_ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17435 #define $ac_func innocuous_$ac_func
17437 /* System header to define __stub macros and hopefully few prototypes,
17438 which can conflict with char $ac_func (); below.
17439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17440 <limits.h> exists even on freestanding compilers. */
17443 # include <limits.h>
17445 # include <assert.h>
17450 /* Override any GCC internal prototype to avoid an error.
17451 Use char because int might match the return type of a GCC
17452 builtin and then its argument prototype would still apply. */
17457 /* The GNU C library defines this for functions which it implements
17458 to always fail with ENOSYS. Some functions are actually named
17459 something starting with __ and the normal name is an alias. */
17460 #if defined __stub_$ac_func || defined __stub___$ac_func
17467 return $ac_func ();
17472 rm -f conftest.$ac_objext conftest$ac_exeext
17473 if { (ac_try="$ac_link"
17474 case "(($ac_try" in
17475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17476 *) ac_try_echo=$ac_try;;
17478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17479 (eval "$ac_link") 2>conftest.er1
17481 grep -v '^ *+' conftest.er1 >conftest.err
17483 cat conftest.err >&5
17484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17485 (exit $ac_status); } &&
17486 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17487 { (case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_try") 2>&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); }; } &&
17496 { ac_try='test -s conftest$ac_exeext'
17497 { (case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_try") 2>&5
17504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17505 (exit $ac_status); }; }; then
17506 eval "$as_ac_var=yes"
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 eval "$as_ac_var=no"
17514 rm -f core conftest.err conftest.$ac_objext \
17515 conftest$ac_exeext conftest.$ac_ext
17517 ac_res=`eval echo '${'$as_ac_var'}'`
17518 { echo "$as_me:$LINENO: result: $ac_res" >&5
17519 echo "${ECHO_T}$ac_res" >&6; }
17520 if test `eval echo '${'$as_ac_var'}'` = yes; then
17521 cat >>confdefs.h <<_ACEOF
17522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17533 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17535 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17536 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17537 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17538 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17539 echo $ECHO_N "(cached) $ECHO_C" >&6
17541 cat >conftest.$ac_ext <<_ACEOF
17544 cat confdefs.h >>conftest.$ac_ext
17545 cat >>conftest.$ac_ext <<_ACEOF
17546 /* end confdefs.h. */
17547 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17549 #define $ac_func innocuous_$ac_func
17551 /* System header to define __stub macros and hopefully few prototypes,
17552 which can conflict with char $ac_func (); below.
17553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17554 <limits.h> exists even on freestanding compilers. */
17557 # include <limits.h>
17559 # include <assert.h>
17564 /* Override any GCC internal prototype to avoid an error.
17565 Use char because int might match the return type of a GCC
17566 builtin and then its argument prototype would still apply. */
17571 /* The GNU C library defines this for functions which it implements
17572 to always fail with ENOSYS. Some functions are actually named
17573 something starting with __ and the normal name is an alias. */
17574 #if defined __stub_$ac_func || defined __stub___$ac_func
17581 return $ac_func ();
17586 rm -f conftest.$ac_objext conftest$ac_exeext
17587 if { (ac_try="$ac_link"
17588 case "(($ac_try" in
17589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17590 *) ac_try_echo=$ac_try;;
17592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17593 (eval "$ac_link") 2>conftest.er1
17595 grep -v '^ *+' conftest.er1 >conftest.err
17597 cat conftest.err >&5
17598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17599 (exit $ac_status); } &&
17600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17601 { (case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_try") 2>&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); }; } &&
17610 { ac_try='test -s conftest$ac_exeext'
17611 { (case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_try") 2>&5
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; }; then
17620 eval "$as_ac_var=yes"
17622 echo "$as_me: failed program was:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 eval "$as_ac_var=no"
17628 rm -f core conftest.err conftest.$ac_objext \
17629 conftest$ac_exeext conftest.$ac_ext
17631 ac_res=`eval echo '${'$as_ac_var'}'`
17632 { echo "$as_me:$LINENO: result: $ac_res" >&5
17633 echo "${ECHO_T}$ac_res" >&6; }
17634 if test `eval echo '${'$as_ac_var'}'` = yes; then
17635 cat >>confdefs.h <<_ACEOF
17636 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17645 for ac_func in isatty mkdtemp mkstemp
17647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17651 echo $ECHO_N "(cached) $ECHO_C" >&6
17653 cat >conftest.$ac_ext <<_ACEOF
17656 cat confdefs.h >>conftest.$ac_ext
17657 cat >>conftest.$ac_ext <<_ACEOF
17658 /* end confdefs.h. */
17659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17661 #define $ac_func innocuous_$ac_func
17663 /* System header to define __stub macros and hopefully few prototypes,
17664 which can conflict with char $ac_func (); below.
17665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17666 <limits.h> exists even on freestanding compilers. */
17669 # include <limits.h>
17671 # include <assert.h>
17676 /* Override any GCC internal prototype to avoid an error.
17677 Use char because int might match the return type of a GCC
17678 builtin and then its argument prototype would still apply. */
17683 /* The GNU C library defines this for functions which it implements
17684 to always fail with ENOSYS. Some functions are actually named
17685 something starting with __ and the normal name is an alias. */
17686 #if defined __stub_$ac_func || defined __stub___$ac_func
17693 return $ac_func ();
17698 rm -f conftest.$ac_objext conftest$ac_exeext
17699 if { (ac_try="$ac_link"
17700 case "(($ac_try" in
17701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17702 *) ac_try_echo=$ac_try;;
17704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17705 (eval "$ac_link") 2>conftest.er1
17707 grep -v '^ *+' conftest.er1 >conftest.err
17709 cat conftest.err >&5
17710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17711 (exit $ac_status); } &&
17712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17713 { (case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_try") 2>&5
17720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17721 (exit $ac_status); }; } &&
17722 { ac_try='test -s conftest$ac_exeext'
17723 { (case "(($ac_try" in
17724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17725 *) ac_try_echo=$ac_try;;
17727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17728 (eval "$ac_try") 2>&5
17730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731 (exit $ac_status); }; }; then
17732 eval "$as_ac_var=yes"
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 eval "$as_ac_var=no"
17740 rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17743 ac_res=`eval echo '${'$as_ac_var'}'`
17744 { echo "$as_me:$LINENO: result: $ac_res" >&5
17745 echo "${ECHO_T}$ac_res" >&6; }
17746 if test `eval echo '${'$as_ac_var'}'` = yes; then
17747 cat >>confdefs.h <<_ACEOF
17748 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17759 for ac_func in mktemp realpath sbrk setrlimit strdup
17761 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17762 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17763 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17764 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17765 echo $ECHO_N "(cached) $ECHO_C" >&6
17767 cat >conftest.$ac_ext <<_ACEOF
17770 cat confdefs.h >>conftest.$ac_ext
17771 cat >>conftest.$ac_ext <<_ACEOF
17772 /* end confdefs.h. */
17773 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17774 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17775 #define $ac_func innocuous_$ac_func
17777 /* System header to define __stub macros and hopefully few prototypes,
17778 which can conflict with char $ac_func (); below.
17779 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17780 <limits.h> exists even on freestanding compilers. */
17783 # include <limits.h>
17785 # include <assert.h>
17790 /* Override any GCC internal prototype to avoid an error.
17791 Use char because int might match the return type of a GCC
17792 builtin and then its argument prototype would still apply. */
17797 /* The GNU C library defines this for functions which it implements
17798 to always fail with ENOSYS. Some functions are actually named
17799 something starting with __ and the normal name is an alias. */
17800 #if defined __stub_$ac_func || defined __stub___$ac_func
17807 return $ac_func ();
17812 rm -f conftest.$ac_objext conftest$ac_exeext
17813 if { (ac_try="$ac_link"
17814 case "(($ac_try" in
17815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17816 *) ac_try_echo=$ac_try;;
17818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17819 (eval "$ac_link") 2>conftest.er1
17821 grep -v '^ *+' conftest.er1 >conftest.err
17823 cat conftest.err >&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17827 { (case "(($ac_try" in
17828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17829 *) ac_try_echo=$ac_try;;
17831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17832 (eval "$ac_try") 2>&5
17834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17835 (exit $ac_status); }; } &&
17836 { ac_try='test -s conftest$ac_exeext'
17837 { (case "(($ac_try" in
17838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17839 *) ac_try_echo=$ac_try;;
17841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17842 (eval "$ac_try") 2>&5
17844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17845 (exit $ac_status); }; }; then
17846 eval "$as_ac_var=yes"
17848 echo "$as_me: failed program was:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17851 eval "$as_ac_var=no"
17854 rm -f core conftest.err conftest.$ac_objext \
17855 conftest$ac_exeext conftest.$ac_ext
17857 ac_res=`eval echo '${'$as_ac_var'}'`
17858 { echo "$as_me:$LINENO: result: $ac_res" >&5
17859 echo "${ECHO_T}$ac_res" >&6; }
17860 if test `eval echo '${'$as_ac_var'}'` = yes; then
17861 cat >>confdefs.h <<_ACEOF
17862 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17872 for ac_func in strerror strerror_r strerror_s setenv
17874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17878 echo $ECHO_N "(cached) $ECHO_C" >&6
17880 cat >conftest.$ac_ext <<_ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17888 #define $ac_func innocuous_$ac_func
17890 /* System header to define __stub macros and hopefully few prototypes,
17891 which can conflict with char $ac_func (); below.
17892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17893 <limits.h> exists even on freestanding compilers. */
17896 # include <limits.h>
17898 # include <assert.h>
17903 /* Override any GCC internal prototype to avoid an error.
17904 Use char because int might match the return type of a GCC
17905 builtin and then its argument prototype would still apply. */
17910 /* The GNU C library defines this for functions which it implements
17911 to always fail with ENOSYS. Some functions are actually named
17912 something starting with __ and the normal name is an alias. */
17913 #if defined __stub_$ac_func || defined __stub___$ac_func
17920 return $ac_func ();
17925 rm -f conftest.$ac_objext conftest$ac_exeext
17926 if { (ac_try="$ac_link"
17927 case "(($ac_try" in
17928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17929 *) ac_try_echo=$ac_try;;
17931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17932 (eval "$ac_link") 2>conftest.er1
17934 grep -v '^ *+' conftest.er1 >conftest.err
17936 cat conftest.err >&5
17937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17938 (exit $ac_status); } &&
17939 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17940 { (case "(($ac_try" in
17941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17942 *) ac_try_echo=$ac_try;;
17944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17945 (eval "$ac_try") 2>&5
17947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17948 (exit $ac_status); }; } &&
17949 { ac_try='test -s conftest$ac_exeext'
17950 { (case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_try") 2>&5
17957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17958 (exit $ac_status); }; }; then
17959 eval "$as_ac_var=yes"
17961 echo "$as_me: failed program was:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17964 eval "$as_ac_var=no"
17967 rm -f core conftest.err conftest.$ac_objext \
17968 conftest$ac_exeext conftest.$ac_ext
17970 ac_res=`eval echo '${'$as_ac_var'}'`
17971 { echo "$as_me:$LINENO: result: $ac_res" >&5
17972 echo "${ECHO_T}$ac_res" >&6; }
17973 if test `eval echo '${'$as_ac_var'}'` = yes; then
17974 cat >>confdefs.h <<_ACEOF
17975 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17985 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17991 echo $ECHO_N "(cached) $ECHO_C" >&6
17993 cat >conftest.$ac_ext <<_ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18001 #define $ac_func innocuous_$ac_func
18003 /* System header to define __stub macros and hopefully few prototypes,
18004 which can conflict with char $ac_func (); below.
18005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18006 <limits.h> exists even on freestanding compilers. */
18009 # include <limits.h>
18011 # include <assert.h>
18016 /* Override any GCC internal prototype to avoid an error.
18017 Use char because int might match the return type of a GCC
18018 builtin and then its argument prototype would still apply. */
18023 /* The GNU C library defines this for functions which it implements
18024 to always fail with ENOSYS. Some functions are actually named
18025 something starting with __ and the normal name is an alias. */
18026 #if defined __stub_$ac_func || defined __stub___$ac_func
18033 return $ac_func ();
18038 rm -f conftest.$ac_objext conftest$ac_exeext
18039 if { (ac_try="$ac_link"
18040 case "(($ac_try" in
18041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18042 *) ac_try_echo=$ac_try;;
18044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18045 (eval "$ac_link") 2>conftest.er1
18047 grep -v '^ *+' conftest.er1 >conftest.err
18049 cat conftest.err >&5
18050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18051 (exit $ac_status); } &&
18052 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18053 { (case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_try") 2>&5
18060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18061 (exit $ac_status); }; } &&
18062 { ac_try='test -s conftest$ac_exeext'
18063 { (case "(($ac_try" in
18064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18065 *) ac_try_echo=$ac_try;;
18067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18068 (eval "$ac_try") 2>&5
18070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18071 (exit $ac_status); }; }; then
18072 eval "$as_ac_var=yes"
18074 echo "$as_me: failed program was:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 eval "$as_ac_var=no"
18080 rm -f core conftest.err conftest.$ac_objext \
18081 conftest$ac_exeext conftest.$ac_ext
18083 ac_res=`eval echo '${'$as_ac_var'}'`
18084 { echo "$as_me:$LINENO: result: $ac_res" >&5
18085 echo "${ECHO_T}$ac_res" >&6; }
18086 if test `eval echo '${'$as_ac_var'}'` = yes; then
18087 cat >>confdefs.h <<_ACEOF
18088 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18098 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18100 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18101 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18102 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18103 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18104 echo $ECHO_N "(cached) $ECHO_C" >&6
18106 cat >conftest.$ac_ext <<_ACEOF
18109 cat confdefs.h >>conftest.$ac_ext
18110 cat >>conftest.$ac_ext <<_ACEOF
18111 /* end confdefs.h. */
18112 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18113 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18114 #define $ac_func innocuous_$ac_func
18116 /* System header to define __stub macros and hopefully few prototypes,
18117 which can conflict with char $ac_func (); below.
18118 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18119 <limits.h> exists even on freestanding compilers. */
18122 # include <limits.h>
18124 # include <assert.h>
18129 /* Override any GCC internal prototype to avoid an error.
18130 Use char because int might match the return type of a GCC
18131 builtin and then its argument prototype would still apply. */
18136 /* The GNU C library defines this for functions which it implements
18137 to always fail with ENOSYS. Some functions are actually named
18138 something starting with __ and the normal name is an alias. */
18139 #if defined __stub_$ac_func || defined __stub___$ac_func
18146 return $ac_func ();
18151 rm -f conftest.$ac_objext conftest$ac_exeext
18152 if { (ac_try="$ac_link"
18153 case "(($ac_try" in
18154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18155 *) ac_try_echo=$ac_try;;
18157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18158 (eval "$ac_link") 2>conftest.er1
18160 grep -v '^ *+' conftest.er1 >conftest.err
18162 cat conftest.err >&5
18163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } &&
18165 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18166 { (case "(($ac_try" in
18167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18168 *) ac_try_echo=$ac_try;;
18170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18171 (eval "$ac_try") 2>&5
18173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18174 (exit $ac_status); }; } &&
18175 { ac_try='test -s conftest$ac_exeext'
18176 { (case "(($ac_try" in
18177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18178 *) ac_try_echo=$ac_try;;
18180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18181 (eval "$ac_try") 2>&5
18183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18184 (exit $ac_status); }; }; then
18185 eval "$as_ac_var=yes"
18187 echo "$as_me: failed program was:" >&5
18188 sed 's/^/| /' conftest.$ac_ext >&5
18190 eval "$as_ac_var=no"
18193 rm -f core conftest.err conftest.$ac_objext \
18194 conftest$ac_exeext conftest.$ac_ext
18196 ac_res=`eval echo '${'$as_ac_var'}'`
18197 { echo "$as_me:$LINENO: result: $ac_res" >&5
18198 echo "${ECHO_T}$ac_res" >&6; }
18199 if test `eval echo '${'$as_ac_var'}'` = yes; then
18200 cat >>confdefs.h <<_ACEOF
18201 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18207 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18208 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18209 if test "${llvm_cv_c_printf_a+set}" = set; then
18210 echo $ECHO_N "(cached) $ECHO_C" >&6
18213 ac_cpp='$CPP $CPPFLAGS'
18214 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18215 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18216 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18218 if test "$cross_compiling" = yes; then
18219 llvmac_cv_c_printf_a=no
18221 cat >conftest.$ac_ext <<_ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h. */
18230 #include <stdlib.h>
18236 volatile double A, B;
18240 sprintf(Buffer, "%a", A);
18244 if (A != 0x1.999999999999ap-4)
18251 rm -f conftest$ac_exeext
18252 if { (ac_try="$ac_link"
18253 case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_link") 2>&5
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18262 { (case "(($ac_try" in
18263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18264 *) ac_try_echo=$ac_try;;
18266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18267 (eval "$ac_try") 2>&5
18269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18270 (exit $ac_status); }; }; then
18271 llvm_cv_c_printf_a=yes
18273 echo "$as_me: program exited with status $ac_status" >&5
18274 echo "$as_me: failed program was:" >&5
18275 sed 's/^/| /' conftest.$ac_ext >&5
18277 ( exit $ac_status )
18278 llvmac_cv_c_printf_a=no
18280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18285 ac_cpp='$CPP $CPPFLAGS'
18286 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18287 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18288 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18291 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18292 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18293 if test "$llvm_cv_c_printf_a" = "yes"; then
18295 cat >>confdefs.h <<\_ACEOF
18296 #define HAVE_PRINTF_A 1
18302 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18303 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18304 if test "${ac_cv_func_rand48+set}" = set; then
18305 echo $ECHO_N "(cached) $ECHO_C" >&6
18308 ac_cpp='$CXXCPP $CPPFLAGS'
18309 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18310 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18311 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18313 cat >conftest.$ac_ext <<_ACEOF
18316 cat confdefs.h >>conftest.$ac_ext
18317 cat >>conftest.$ac_ext <<_ACEOF
18318 /* end confdefs.h. */
18319 #include <stdlib.h>
18323 srand48(0);lrand48();drand48();
18328 rm -f conftest.$ac_objext
18329 if { (ac_try="$ac_compile"
18330 case "(($ac_try" in
18331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18332 *) ac_try_echo=$ac_try;;
18334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18335 (eval "$ac_compile") 2>conftest.er1
18337 grep -v '^ *+' conftest.er1 >conftest.err
18339 cat conftest.err >&5
18340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18341 (exit $ac_status); } &&
18342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18343 { (case "(($ac_try" in
18344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345 *) ac_try_echo=$ac_try;;
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348 (eval "$ac_try") 2>&5
18350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18351 (exit $ac_status); }; } &&
18352 { ac_try='test -s conftest.$ac_objext'
18353 { (case "(($ac_try" in
18354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18355 *) ac_try_echo=$ac_try;;
18357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18358 (eval "$ac_try") 2>&5
18360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18361 (exit $ac_status); }; }; then
18362 ac_cv_func_rand48=yes
18364 echo "$as_me: failed program was:" >&5
18365 sed 's/^/| /' conftest.$ac_ext >&5
18367 ac_cv_func_rand48=no
18370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18372 ac_cpp='$CPP $CPPFLAGS'
18373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18378 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18379 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18381 if test "$ac_cv_func_rand48" = "yes" ; then
18383 cat >>confdefs.h <<\_ACEOF
18384 #define HAVE_RAND48 1
18391 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18392 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18393 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18394 echo $ECHO_N "(cached) $ECHO_C" >&6
18397 ac_cpp='$CXXCPP $CPPFLAGS'
18398 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18399 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18400 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18402 cat >conftest.$ac_ext <<_ACEOF
18405 cat confdefs.h >>conftest.$ac_ext
18406 cat >>conftest.$ac_ext <<_ACEOF
18407 /* end confdefs.h. */
18417 rm -f conftest.$ac_objext
18418 if { (ac_try="$ac_compile"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_compile") 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18430 (exit $ac_status); } &&
18431 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18432 { (case "(($ac_try" in
18433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18434 *) ac_try_echo=$ac_try;;
18436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18437 (eval "$ac_try") 2>&5
18439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18440 (exit $ac_status); }; } &&
18441 { ac_try='test -s conftest.$ac_objext'
18442 { (case "(($ac_try" in
18443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18444 *) ac_try_echo=$ac_try;;
18446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18447 (eval "$ac_try") 2>&5
18449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18450 (exit $ac_status); }; }; then
18451 ac_cv_func_isnan_in_math_h=yes
18453 echo "$as_me: failed program was:" >&5
18454 sed 's/^/| /' conftest.$ac_ext >&5
18456 ac_cv_func_isnan_in_math_h=no
18459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18461 ac_cpp='$CPP $CPPFLAGS'
18462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18467 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18468 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18471 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18473 cat >>confdefs.h <<\_ACEOF
18474 #define HAVE_ISNAN_IN_MATH_H 1
18479 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18480 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18481 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18482 echo $ECHO_N "(cached) $ECHO_C" >&6
18485 ac_cpp='$CXXCPP $CPPFLAGS'
18486 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18487 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18488 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18490 cat >conftest.$ac_ext <<_ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18505 rm -f conftest.$ac_objext
18506 if { (ac_try="$ac_compile"
18507 case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_compile") 2>conftest.er1
18514 grep -v '^ *+' conftest.er1 >conftest.err
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18518 (exit $ac_status); } &&
18519 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18520 { (case "(($ac_try" in
18521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18522 *) ac_try_echo=$ac_try;;
18524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18525 (eval "$ac_try") 2>&5
18527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18528 (exit $ac_status); }; } &&
18529 { ac_try='test -s conftest.$ac_objext'
18530 { (case "(($ac_try" in
18531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18532 *) ac_try_echo=$ac_try;;
18534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18535 (eval "$ac_try") 2>&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); }; }; then
18539 ac_cv_func_isnan_in_cmath=yes
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18544 ac_cv_func_isnan_in_cmath=no
18547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18549 ac_cpp='$CPP $CPPFLAGS'
18550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18551 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18555 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18556 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18558 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18560 cat >>confdefs.h <<\_ACEOF
18561 #define HAVE_ISNAN_IN_CMATH 1
18566 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18567 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18568 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18572 ac_cpp='$CXXCPP $CPPFLAGS'
18573 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18574 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18575 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18577 cat >conftest.$ac_ext <<_ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18587 float f; std::isnan(f);
18592 rm -f conftest.$ac_objext
18593 if { (ac_try="$ac_compile"
18594 case "(($ac_try" in
18595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596 *) ac_try_echo=$ac_try;;
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599 (eval "$ac_compile") 2>conftest.er1
18601 grep -v '^ *+' conftest.er1 >conftest.err
18603 cat conftest.err >&5
18604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18605 (exit $ac_status); } &&
18606 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18607 { (case "(($ac_try" in
18608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18609 *) ac_try_echo=$ac_try;;
18611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18612 (eval "$ac_try") 2>&5
18614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18615 (exit $ac_status); }; } &&
18616 { ac_try='test -s conftest.$ac_objext'
18617 { (case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_try") 2>&5
18624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18625 (exit $ac_status); }; }; then
18626 ac_cv_func_std_isnan_in_cmath=yes
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18631 ac_cv_func_std_isnan_in_cmath=no
18634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18636 ac_cpp='$CPP $CPPFLAGS'
18637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18642 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18643 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18645 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18647 cat >>confdefs.h <<\_ACEOF
18648 #define HAVE_STD_ISNAN_IN_CMATH 1
18654 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18655 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18656 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18657 echo $ECHO_N "(cached) $ECHO_C" >&6
18660 ac_cpp='$CXXCPP $CPPFLAGS'
18661 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18662 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18663 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18665 cat >conftest.$ac_ext <<_ACEOF
18668 cat confdefs.h >>conftest.$ac_ext
18669 cat >>conftest.$ac_ext <<_ACEOF
18670 /* end confdefs.h. */
18680 rm -f conftest.$ac_objext
18681 if { (ac_try="$ac_compile"
18682 case "(($ac_try" in
18683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18684 *) ac_try_echo=$ac_try;;
18686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18687 (eval "$ac_compile") 2>conftest.er1
18689 grep -v '^ *+' conftest.er1 >conftest.err
18691 cat conftest.err >&5
18692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18693 (exit $ac_status); } &&
18694 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18695 { (case "(($ac_try" in
18696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18697 *) ac_try_echo=$ac_try;;
18699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18700 (eval "$ac_try") 2>&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); }; } &&
18704 { ac_try='test -s conftest.$ac_objext'
18705 { (case "(($ac_try" in
18706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18707 *) ac_try_echo=$ac_try;;
18709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18710 (eval "$ac_try") 2>&5
18712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18713 (exit $ac_status); }; }; then
18714 ac_cv_func_isinf_in_math_h=yes
18716 echo "$as_me: failed program was:" >&5
18717 sed 's/^/| /' conftest.$ac_ext >&5
18719 ac_cv_func_isinf_in_math_h=no
18722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18724 ac_cpp='$CPP $CPPFLAGS'
18725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18730 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18731 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18733 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18735 cat >>confdefs.h <<\_ACEOF
18736 #define HAVE_ISINF_IN_MATH_H 1
18741 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18742 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18743 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18744 echo $ECHO_N "(cached) $ECHO_C" >&6
18747 ac_cpp='$CXXCPP $CPPFLAGS'
18748 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18749 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18750 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18752 cat >conftest.$ac_ext <<_ACEOF
18755 cat confdefs.h >>conftest.$ac_ext
18756 cat >>conftest.$ac_ext <<_ACEOF
18757 /* end confdefs.h. */
18767 rm -f conftest.$ac_objext
18768 if { (ac_try="$ac_compile"
18769 case "(($ac_try" in
18770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18771 *) ac_try_echo=$ac_try;;
18773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18774 (eval "$ac_compile") 2>conftest.er1
18776 grep -v '^ *+' conftest.er1 >conftest.err
18778 cat conftest.err >&5
18779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18780 (exit $ac_status); } &&
18781 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18782 { (case "(($ac_try" in
18783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18784 *) ac_try_echo=$ac_try;;
18786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18787 (eval "$ac_try") 2>&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); }; } &&
18791 { ac_try='test -s conftest.$ac_objext'
18792 { (case "(($ac_try" in
18793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18794 *) ac_try_echo=$ac_try;;
18796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18797 (eval "$ac_try") 2>&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); }; }; then
18801 ac_cv_func_isinf_in_cmath=yes
18803 echo "$as_me: failed program was:" >&5
18804 sed 's/^/| /' conftest.$ac_ext >&5
18806 ac_cv_func_isinf_in_cmath=no
18809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18811 ac_cpp='$CPP $CPPFLAGS'
18812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18817 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18818 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18820 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18822 cat >>confdefs.h <<\_ACEOF
18823 #define HAVE_ISINF_IN_CMATH 1
18828 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18829 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18830 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18831 echo $ECHO_N "(cached) $ECHO_C" >&6
18834 ac_cpp='$CXXCPP $CPPFLAGS'
18835 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18836 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18837 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18839 cat >conftest.$ac_ext <<_ACEOF
18842 cat confdefs.h >>conftest.$ac_ext
18843 cat >>conftest.$ac_ext <<_ACEOF
18844 /* end confdefs.h. */
18849 float f; std::isinf(f)}
18854 rm -f conftest.$ac_objext
18855 if { (ac_try="$ac_compile"
18856 case "(($ac_try" in
18857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18858 *) ac_try_echo=$ac_try;;
18860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18861 (eval "$ac_compile") 2>conftest.er1
18863 grep -v '^ *+' conftest.er1 >conftest.err
18865 cat conftest.err >&5
18866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18867 (exit $ac_status); } &&
18868 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18869 { (case "(($ac_try" in
18870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18871 *) ac_try_echo=$ac_try;;
18873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18874 (eval "$ac_try") 2>&5
18876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); }; } &&
18878 { ac_try='test -s conftest.$ac_objext'
18879 { (case "(($ac_try" in
18880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18881 *) ac_try_echo=$ac_try;;
18883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18884 (eval "$ac_try") 2>&5
18886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18887 (exit $ac_status); }; }; then
18888 ac_cv_func_std_isinf_in_cmath=yes
18890 echo "$as_me: failed program was:" >&5
18891 sed 's/^/| /' conftest.$ac_ext >&5
18893 ac_cv_func_std_isinf_in_cmath=no
18896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18898 ac_cpp='$CPP $CPPFLAGS'
18899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18904 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18905 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18907 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18909 cat >>confdefs.h <<\_ACEOF
18910 #define HAVE_STD_ISINF_IN_CMATH 1
18915 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18916 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18917 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18918 echo $ECHO_N "(cached) $ECHO_C" >&6
18921 ac_cpp='$CXXCPP $CPPFLAGS'
18922 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18923 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18924 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18926 cat >conftest.$ac_ext <<_ACEOF
18929 cat confdefs.h >>conftest.$ac_ext
18930 cat >>conftest.$ac_ext <<_ACEOF
18931 /* end confdefs.h. */
18932 #include <ieeefp.h>
18936 float f; finite(f);
18941 rm -f conftest.$ac_objext
18942 if { (ac_try="$ac_compile"
18943 case "(($ac_try" in
18944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18945 *) ac_try_echo=$ac_try;;
18947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18948 (eval "$ac_compile") 2>conftest.er1
18950 grep -v '^ *+' conftest.er1 >conftest.err
18952 cat conftest.err >&5
18953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18954 (exit $ac_status); } &&
18955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18956 { (case "(($ac_try" in
18957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18958 *) ac_try_echo=$ac_try;;
18960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18961 (eval "$ac_try") 2>&5
18963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18964 (exit $ac_status); }; } &&
18965 { ac_try='test -s conftest.$ac_objext'
18966 { (case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_try") 2>&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); }; }; then
18975 ac_cv_func_finite_in_ieeefp_h=yes
18977 echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18980 ac_cv_func_finite_in_ieeefp_h=no
18983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18985 ac_cpp='$CPP $CPPFLAGS'
18986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18991 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18992 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18994 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18996 cat >>confdefs.h <<\_ACEOF
18997 #define HAVE_FINITE_IN_IEEEFP_H 1
19004 if test "$llvm_cv_platform_type" = "Unix" ; then
19007 for ac_header in stdlib.h unistd.h
19009 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19011 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19014 echo $ECHO_N "(cached) $ECHO_C" >&6
19016 ac_res=`eval echo '${'$as_ac_Header'}'`
19017 { echo "$as_me:$LINENO: result: $ac_res" >&5
19018 echo "${ECHO_T}$ac_res" >&6; }
19020 # Is the header compilable?
19021 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19022 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19023 cat >conftest.$ac_ext <<_ACEOF
19026 cat confdefs.h >>conftest.$ac_ext
19027 cat >>conftest.$ac_ext <<_ACEOF
19028 /* end confdefs.h. */
19029 $ac_includes_default
19030 #include <$ac_header>
19032 rm -f conftest.$ac_objext
19033 if { (ac_try="$ac_compile"
19034 case "(($ac_try" in
19035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19036 *) ac_try_echo=$ac_try;;
19038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19039 (eval "$ac_compile") 2>conftest.er1
19041 grep -v '^ *+' conftest.er1 >conftest.err
19043 cat conftest.err >&5
19044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19045 (exit $ac_status); } &&
19046 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19047 { (case "(($ac_try" in
19048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19049 *) ac_try_echo=$ac_try;;
19051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19052 (eval "$ac_try") 2>&5
19054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19055 (exit $ac_status); }; } &&
19056 { ac_try='test -s conftest.$ac_objext'
19057 { (case "(($ac_try" in
19058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19059 *) ac_try_echo=$ac_try;;
19061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19062 (eval "$ac_try") 2>&5
19064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); }; }; then
19066 ac_header_compiler=yes
19068 echo "$as_me: failed program was:" >&5
19069 sed 's/^/| /' conftest.$ac_ext >&5
19071 ac_header_compiler=no
19074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19076 echo "${ECHO_T}$ac_header_compiler" >&6; }
19078 # Is the header present?
19079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19081 cat >conftest.$ac_ext <<_ACEOF
19084 cat confdefs.h >>conftest.$ac_ext
19085 cat >>conftest.$ac_ext <<_ACEOF
19086 /* end confdefs.h. */
19087 #include <$ac_header>
19089 if { (ac_try="$ac_cpp conftest.$ac_ext"
19090 case "(($ac_try" in
19091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19092 *) ac_try_echo=$ac_try;;
19094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19097 grep -v '^ *+' conftest.er1 >conftest.err
19099 cat conftest.err >&5
19100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19101 (exit $ac_status); } >/dev/null; then
19102 if test -s conftest.err; then
19103 ac_cpp_err=$ac_c_preproc_warn_flag
19104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19111 if test -z "$ac_cpp_err"; then
19112 ac_header_preproc=yes
19114 echo "$as_me: failed program was:" >&5
19115 sed 's/^/| /' conftest.$ac_ext >&5
19117 ac_header_preproc=no
19120 rm -f conftest.err conftest.$ac_ext
19121 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19122 echo "${ECHO_T}$ac_header_preproc" >&6; }
19124 # So? What about this header?
19125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19127 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19128 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19129 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19131 ac_header_preproc=yes
19134 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19135 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19136 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19137 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19138 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19139 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19140 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19141 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19144 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19145 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19147 ## ----------------------------------- ##
19148 ## Report this to llvmbugs@cs.uiuc.edu ##
19149 ## ----------------------------------- ##
19151 ) | sed "s/^/$as_me: WARNING: /" >&2
19154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19157 echo $ECHO_N "(cached) $ECHO_C" >&6
19159 eval "$as_ac_Header=\$ac_header_preproc"
19161 ac_res=`eval echo '${'$as_ac_Header'}'`
19162 { echo "$as_me:$LINENO: result: $ac_res" >&5
19163 echo "${ECHO_T}$ac_res" >&6; }
19166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19167 cat >>confdefs.h <<_ACEOF
19168 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19176 for ac_func in getpagesize
19178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19182 echo $ECHO_N "(cached) $ECHO_C" >&6
19184 cat >conftest.$ac_ext <<_ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19191 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19192 #define $ac_func innocuous_$ac_func
19194 /* System header to define __stub macros and hopefully few prototypes,
19195 which can conflict with char $ac_func (); below.
19196 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19197 <limits.h> exists even on freestanding compilers. */
19200 # include <limits.h>
19202 # include <assert.h>
19207 /* Override any GCC internal prototype to avoid an error.
19208 Use char because int might match the return type of a GCC
19209 builtin and then its argument prototype would still apply. */
19214 /* The GNU C library defines this for functions which it implements
19215 to always fail with ENOSYS. Some functions are actually named
19216 something starting with __ and the normal name is an alias. */
19217 #if defined __stub_$ac_func || defined __stub___$ac_func
19224 return $ac_func ();
19229 rm -f conftest.$ac_objext conftest$ac_exeext
19230 if { (ac_try="$ac_link"
19231 case "(($ac_try" in
19232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19233 *) ac_try_echo=$ac_try;;
19235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19236 (eval "$ac_link") 2>conftest.er1
19238 grep -v '^ *+' conftest.er1 >conftest.err
19240 cat conftest.err >&5
19241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242 (exit $ac_status); } &&
19243 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19244 { (case "(($ac_try" in
19245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246 *) ac_try_echo=$ac_try;;
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249 (eval "$ac_try") 2>&5
19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); }; } &&
19253 { ac_try='test -s conftest$ac_exeext'
19254 { (case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_try") 2>&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); }; }; then
19263 eval "$as_ac_var=yes"
19265 echo "$as_me: failed program was:" >&5
19266 sed 's/^/| /' conftest.$ac_ext >&5
19268 eval "$as_ac_var=no"
19271 rm -f core conftest.err conftest.$ac_objext \
19272 conftest$ac_exeext conftest.$ac_ext
19274 ac_res=`eval echo '${'$as_ac_var'}'`
19275 { echo "$as_me:$LINENO: result: $ac_res" >&5
19276 echo "${ECHO_T}$ac_res" >&6; }
19277 if test `eval echo '${'$as_ac_var'}'` = yes; then
19278 cat >>confdefs.h <<_ACEOF
19279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19285 { echo "$as_me:$LINENO: checking for working mmap" >&5
19286 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19287 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19288 echo $ECHO_N "(cached) $ECHO_C" >&6
19290 if test "$cross_compiling" = yes; then
19291 ac_cv_func_mmap_fixed_mapped=no
19293 cat >conftest.$ac_ext <<_ACEOF
19296 cat confdefs.h >>conftest.$ac_ext
19297 cat >>conftest.$ac_ext <<_ACEOF
19298 /* end confdefs.h. */
19299 $ac_includes_default
19300 /* malloc might have been renamed as rpl_malloc. */
19303 /* Thanks to Mike Haertel and Jim Avera for this test.
19304 Here is a matrix of mmap possibilities:
19305 mmap private not fixed
19306 mmap private fixed at somewhere currently unmapped
19307 mmap private fixed at somewhere already mapped
19308 mmap shared not fixed
19309 mmap shared fixed at somewhere currently unmapped
19310 mmap shared fixed at somewhere already mapped
19311 For private mappings, we should verify that changes cannot be read()
19312 back from the file, nor mmap's back from the file at a different
19313 address. (There have been systems where private was not correctly
19314 implemented like the infamous i386 svr4.0, and systems where the
19315 VM page cache was not coherent with the file system buffer cache
19316 like early versions of FreeBSD and possibly contemporary NetBSD.)
19317 For shared mappings, we should conversely verify that changes get
19318 propagated back to all the places they're supposed to be.
19320 Grep wants private fixed already mapped.
19321 The main things grep needs to know about mmap are:
19322 * does it exist and is it safe to write into the mmap'd area
19323 * how to use it (BSD variants) */
19326 #include <sys/mman.h>
19328 #if !STDC_HEADERS && !HAVE_STDLIB_H
19332 /* This mess was copied from the GNU getpagesize.h. */
19333 #if !HAVE_GETPAGESIZE
19334 /* Assume that all systems that can run configure have sys/param.h. */
19335 # if !HAVE_SYS_PARAM_H
19336 # define HAVE_SYS_PARAM_H 1
19339 # ifdef _SC_PAGESIZE
19340 # define getpagesize() sysconf(_SC_PAGESIZE)
19341 # else /* no _SC_PAGESIZE */
19342 # if HAVE_SYS_PARAM_H
19343 # include <sys/param.h>
19344 # ifdef EXEC_PAGESIZE
19345 # define getpagesize() EXEC_PAGESIZE
19346 # else /* no EXEC_PAGESIZE */
19348 # define getpagesize() NBPG * CLSIZE
19351 # endif /* no CLSIZE */
19352 # else /* no NBPG */
19354 # define getpagesize() NBPC
19355 # else /* no NBPC */
19357 # define getpagesize() PAGESIZE
19358 # endif /* PAGESIZE */
19359 # endif /* no NBPC */
19360 # endif /* no NBPG */
19361 # endif /* no EXEC_PAGESIZE */
19362 # else /* no HAVE_SYS_PARAM_H */
19363 # define getpagesize() 8192 /* punt totally */
19364 # endif /* no HAVE_SYS_PARAM_H */
19365 # endif /* no _SC_PAGESIZE */
19367 #endif /* no HAVE_GETPAGESIZE */
19372 char *data, *data2, *data3;
19376 pagesize = getpagesize ();
19378 /* First, make a file with some known garbage in it. */
19379 data = (char *) malloc (pagesize);
19382 for (i = 0; i < pagesize; ++i)
19383 *(data + i) = rand ();
19385 fd = creat ("conftest.mmap", 0600);
19388 if (write (fd, data, pagesize) != pagesize)
19392 /* Next, try to mmap the file at a fixed address which already has
19393 something else allocated at it. If we can, also make sure that
19394 we see the same garbage. */
19395 fd = open ("conftest.mmap", O_RDWR);
19398 data2 = (char *) malloc (2 * pagesize);
19401 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19402 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19403 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19405 for (i = 0; i < pagesize; ++i)
19406 if (*(data + i) != *(data2 + i))
19409 /* Finally, make sure that changes to the mapped area do not
19410 percolate back to the file as seen by read(). (This is a bug on
19411 some variants of i386 svr4.0.) */
19412 for (i = 0; i < pagesize; ++i)
19413 *(data2 + i) = *(data2 + i) + 1;
19414 data3 = (char *) malloc (pagesize);
19417 if (read (fd, data3, pagesize) != pagesize)
19419 for (i = 0; i < pagesize; ++i)
19420 if (*(data + i) != *(data3 + i))
19426 rm -f conftest$ac_exeext
19427 if { (ac_try="$ac_link"
19428 case "(($ac_try" in
19429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19430 *) ac_try_echo=$ac_try;;
19432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19433 (eval "$ac_link") 2>&5
19435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19436 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19437 { (case "(($ac_try" in
19438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19439 *) ac_try_echo=$ac_try;;
19441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19442 (eval "$ac_try") 2>&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); }; }; then
19446 ac_cv_func_mmap_fixed_mapped=yes
19448 echo "$as_me: program exited with status $ac_status" >&5
19449 echo "$as_me: failed program was:" >&5
19450 sed 's/^/| /' conftest.$ac_ext >&5
19452 ( exit $ac_status )
19453 ac_cv_func_mmap_fixed_mapped=no
19455 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19460 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19461 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19462 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19464 cat >>confdefs.h <<\_ACEOF
19465 #define HAVE_MMAP 1
19469 rm -f conftest.mmap
19471 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19472 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19473 if test "${ac_cv_func_mmap_file+set}" = set; then
19474 echo $ECHO_N "(cached) $ECHO_C" >&6
19477 ac_cpp='$CPP $CPPFLAGS'
19478 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19479 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19480 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19482 if test "$cross_compiling" = yes; then
19483 ac_cv_func_mmap_file=no
19485 cat >conftest.$ac_ext <<_ACEOF
19489 cat confdefs.h >>conftest.$ac_ext
19490 cat >>conftest.$ac_ext <<_ACEOF
19491 /* end confdefs.h. */
19493 #include <sys/types.h>
19494 #include <sys/mman.h>
19502 fd = creat ("foo",0777);
19503 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19505 return (fd != (int) MAP_FAILED);
19510 rm -f conftest$ac_exeext
19511 if { (ac_try="$ac_link"
19512 case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_link") 2>&5
19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19521 { (case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19526 (eval "$ac_try") 2>&5
19528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); }; }; then
19530 ac_cv_func_mmap_file=yes
19532 echo "$as_me: program exited with status $ac_status" >&5
19533 echo "$as_me: failed program was:" >&5
19534 sed 's/^/| /' conftest.$ac_ext >&5
19536 ( exit $ac_status )
19537 ac_cv_func_mmap_file=no
19539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19544 ac_cpp='$CPP $CPPFLAGS'
19545 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19546 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19547 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19551 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19552 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19553 if test "$ac_cv_func_mmap_file" = yes; then
19555 cat >>confdefs.h <<\_ACEOF
19556 #define HAVE_MMAP_FILE
19563 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19564 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19565 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19566 echo $ECHO_N "(cached) $ECHO_C" >&6
19568 if test "$llvm_cv_os_type" = "Interix" ; then
19569 ac_cv_need_dev_zero_for_mmap=yes
19571 ac_cv_need_dev_zero_for_mmap=no
19575 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19576 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19577 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19579 cat >>confdefs.h <<\_ACEOF
19580 #define NEED_DEV_ZERO_FOR_MMAP 1
19585 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19587 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19588 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19590 if test "$ac_cv_func_mmap_file" = "no"
19592 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19593 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19597 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19598 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19599 cat >conftest.$ac_ext <<_ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19606 volatile unsigned long val = 1;
19607 __sync_synchronize();
19608 __sync_val_compare_and_swap(&val, 1, 0);
19609 __sync_add_and_fetch(&val, 1);
19610 __sync_sub_and_fetch(&val, 1);
19615 rm -f conftest.$ac_objext conftest$ac_exeext
19616 if { (ac_try="$ac_link"
19617 case "(($ac_try" in
19618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19619 *) ac_try_echo=$ac_try;;
19621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19622 (eval "$ac_link") 2>conftest.er1
19624 grep -v '^ *+' conftest.er1 >conftest.err
19626 cat conftest.err >&5
19627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19628 (exit $ac_status); } &&
19629 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19630 { (case "(($ac_try" in
19631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19632 *) ac_try_echo=$ac_try;;
19634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19635 (eval "$ac_try") 2>&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); }; } &&
19639 { ac_try='test -s conftest$ac_exeext'
19640 { (case "(($ac_try" in
19641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19642 *) ac_try_echo=$ac_try;;
19644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19645 (eval "$ac_try") 2>&5
19647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19648 (exit $ac_status); }; }; then
19649 { echo "$as_me:$LINENO: result: yes" >&5
19650 echo "${ECHO_T}yes" >&6; }
19652 cat >>confdefs.h <<\_ACEOF
19653 #define LLVM_MULTITHREADED 1
19657 echo "$as_me: failed program was:" >&5
19658 sed 's/^/| /' conftest.$ac_ext >&5
19660 { echo "$as_me:$LINENO: result: no" >&5
19661 echo "${ECHO_T}no" >&6; }
19663 cat >>confdefs.h <<\_ACEOF
19664 #define LLVM_MULTITHREADED 0
19667 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19668 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19671 rm -f core conftest.err conftest.$ac_objext \
19672 conftest$ac_exeext conftest.$ac_ext
19676 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19677 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19678 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19679 if test "${llvm_cv_linux_mixed+set}" = set; then
19680 echo $ECHO_N "(cached) $ECHO_C" >&6
19683 ac_cpp='$CPP $CPPFLAGS'
19684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19688 cat >conftest.$ac_ext <<_ACEOF
19691 cat confdefs.h >>conftest.$ac_ext
19692 cat >>conftest.$ac_ext <<_ACEOF
19693 /* end confdefs.h. */
19695 error: Not x86-64 even if uname says so!
19706 rm -f conftest.$ac_objext
19707 if { (ac_try="$ac_compile"
19708 case "(($ac_try" in
19709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19710 *) ac_try_echo=$ac_try;;
19712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19713 (eval "$ac_compile") 2>conftest.er1
19715 grep -v '^ *+' conftest.er1 >conftest.err
19717 cat conftest.err >&5
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); } &&
19720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19721 { (case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_try") 2>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); }; } &&
19730 { ac_try='test -s conftest.$ac_objext'
19731 { (case "(($ac_try" in
19732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19733 *) ac_try_echo=$ac_try;;
19735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19736 (eval "$ac_try") 2>&5
19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19739 (exit $ac_status); }; }; then
19740 llvm_cv_linux_mixed=no
19742 echo "$as_me: failed program was:" >&5
19743 sed 's/^/| /' conftest.$ac_ext >&5
19745 llvm_cv_linux_mixed=yes
19748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19750 ac_cpp='$CPP $CPPFLAGS'
19751 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19752 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19753 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19757 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19758 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19760 if test "$llvm_cv_linux_mixed" = "yes"; then
19761 llvm_cv_target_arch="x86"
19767 for ac_func in __dso_handle
19769 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19770 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19771 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19772 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19773 echo $ECHO_N "(cached) $ECHO_C" >&6
19775 cat >conftest.$ac_ext <<_ACEOF
19778 cat confdefs.h >>conftest.$ac_ext
19779 cat >>conftest.$ac_ext <<_ACEOF
19780 /* end confdefs.h. */
19781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19783 #define $ac_func innocuous_$ac_func
19785 /* System header to define __stub macros and hopefully few prototypes,
19786 which can conflict with char $ac_func (); below.
19787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19788 <limits.h> exists even on freestanding compilers. */
19791 # include <limits.h>
19793 # include <assert.h>
19798 /* Override any GCC internal prototype to avoid an error.
19799 Use char because int might match the return type of a GCC
19800 builtin and then its argument prototype would still apply. */
19805 /* The GNU C library defines this for functions which it implements
19806 to always fail with ENOSYS. Some functions are actually named
19807 something starting with __ and the normal name is an alias. */
19808 #if defined __stub_$ac_func || defined __stub___$ac_func
19815 return $ac_func ();
19820 rm -f conftest.$ac_objext conftest$ac_exeext
19821 if { (ac_try="$ac_link"
19822 case "(($ac_try" in
19823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19824 *) ac_try_echo=$ac_try;;
19826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19827 (eval "$ac_link") 2>conftest.er1
19829 grep -v '^ *+' conftest.er1 >conftest.err
19831 cat conftest.err >&5
19832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19833 (exit $ac_status); } &&
19834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19835 { (case "(($ac_try" in
19836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19837 *) ac_try_echo=$ac_try;;
19839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19840 (eval "$ac_try") 2>&5
19842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); }; } &&
19844 { ac_try='test -s conftest$ac_exeext'
19845 { (case "(($ac_try" in
19846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19847 *) ac_try_echo=$ac_try;;
19849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19850 (eval "$ac_try") 2>&5
19852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19853 (exit $ac_status); }; }; then
19854 eval "$as_ac_var=yes"
19856 echo "$as_me: failed program was:" >&5
19857 sed 's/^/| /' conftest.$ac_ext >&5
19859 eval "$as_ac_var=no"
19862 rm -f core conftest.err conftest.$ac_objext \
19863 conftest$ac_exeext conftest.$ac_ext
19865 ac_res=`eval echo '${'$as_ac_var'}'`
19866 { echo "$as_me:$LINENO: result: $ac_res" >&5
19867 echo "${ECHO_T}$ac_res" >&6; }
19868 if test `eval echo '${'$as_ac_var'}'` = yes; then
19869 cat >>confdefs.h <<_ACEOF
19870 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19877 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19878 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19879 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19880 echo $ECHO_N "(cached) $ECHO_C" >&6
19882 llvm_cv_llvmgcc_sanity="no"
19883 if test -x "$LLVMGCC" ; then
19884 cp /dev/null conftest.c
19885 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19886 grep 'target datalayout =' > /dev/null 2>&1
19887 if test $? -eq 0 ; then
19888 llvm_cv_llvmgcc_sanity="yes"
19893 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19894 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19896 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19897 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19898 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19899 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19900 LLVMCC1=$llvmcc1path
19902 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19903 LLVMCC1PLUS=$llvmcc1pluspath
19905 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19906 LLVMGCCDIR=$llvmgccdir
19908 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19909 LLVMGCC_LANGS=$llvmgcclangs
19911 { echo "$as_me:$LINENO: result: ok" >&5
19912 echo "${ECHO_T}ok" >&6; }
19915 SHLIBEXT=$libltdl_cv_shlibext
19918 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19921 # Translate the various configuration directories and other basic
19922 # information into substitutions that will end up in Makefile.config.in
19923 # that these configured values can be used by the makefiles
19924 if test "${prefix}" = "NONE" ; then
19925 prefix="/usr/local"
19927 eval LLVM_PREFIX="${prefix}";
19928 eval LLVM_BINDIR="${prefix}/bin";
19929 eval LLVM_LIBDIR="${prefix}/lib";
19930 eval LLVM_DATADIR="${prefix}/share/llvm";
19931 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19932 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19933 eval LLVM_INCLUDEDIR="${prefix}/include";
19934 eval LLVM_INFODIR="${prefix}/info";
19935 eval LLVM_MANDIR="${prefix}/man";
19936 LLVM_CONFIGTIME=`date`
19948 # Place the various directores into the config.h file as #defines so that we
19949 # can know about the installation paths within LLVM.
19951 cat >>confdefs.h <<_ACEOF
19952 #define LLVM_PREFIX "$LLVM_PREFIX"
19956 cat >>confdefs.h <<_ACEOF
19957 #define LLVM_BINDIR "$LLVM_BINDIR"
19961 cat >>confdefs.h <<_ACEOF
19962 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19966 cat >>confdefs.h <<_ACEOF
19967 #define LLVM_DATADIR "$LLVM_DATADIR"
19971 cat >>confdefs.h <<_ACEOF
19972 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19976 cat >>confdefs.h <<_ACEOF
19977 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19981 cat >>confdefs.h <<_ACEOF
19982 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19986 cat >>confdefs.h <<_ACEOF
19987 #define LLVM_INFODIR "$LLVM_INFODIR"
19991 cat >>confdefs.h <<_ACEOF
19992 #define LLVM_MANDIR "$LLVM_MANDIR"
19996 cat >>confdefs.h <<_ACEOF
19997 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20001 cat >>confdefs.h <<_ACEOF
20002 #define LLVM_HOSTTRIPLE "$host"
20006 # Determine which bindings to build.
20007 if test "$BINDINGS_TO_BUILD" = auto ; then
20008 BINDINGS_TO_BUILD=""
20009 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20010 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20013 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20016 # This isn't really configurey, but it avoids having to repeat the list in
20021 # Do any work necessary to ensure that bindings have what they need.
20022 binding_prereqs_failed=0
20023 for a_binding in $BINDINGS_TO_BUILD ; do
20024 case "$a_binding" in
20026 if test "x$OCAMLC" = x ; then
20027 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20028 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20029 binding_prereqs_failed=1
20031 if test "x$OCAMLDEP" = x ; then
20032 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20033 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20034 binding_prereqs_failed=1
20036 if test "x$OCAMLOPT" = x ; then
20037 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20038 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20040 if test "x$with_ocaml_libdir" != xauto ; then
20041 OCAML_LIBDIR=$with_ocaml_libdir
20044 ocaml_stdlib="`"$OCAMLC" -where`"
20045 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20047 # ocaml stdlib is beneath our prefix; use stdlib
20048 OCAML_LIBDIR=$ocaml_stdlib
20051 # ocaml stdlib is outside our prefix; use libdir/ocaml
20052 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20059 if test "$binding_prereqs_failed" = 1 ; then
20060 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20061 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20062 { (exit 1); exit 1; }; }
20065 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20066 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20067 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20068 echo $ECHO_N "(cached) $ECHO_C" >&6
20071 ac_cpp='$CXXCPP $CPPFLAGS'
20072 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20073 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20074 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20076 oldcxxflags="$CXXFLAGS"
20077 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20078 cat >conftest.$ac_ext <<_ACEOF
20081 cat confdefs.h >>conftest.$ac_ext
20082 cat >>conftest.$ac_ext <<_ACEOF
20083 /* end confdefs.h. */
20093 rm -f conftest.$ac_objext
20094 if { (ac_try="$ac_compile"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_compile") 2>conftest.er1
20102 grep -v '^ *+' conftest.er1 >conftest.err
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20106 (exit $ac_status); } &&
20107 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20108 { (case "(($ac_try" in
20109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20110 *) ac_try_echo=$ac_try;;
20112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20113 (eval "$ac_try") 2>&5
20115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20116 (exit $ac_status); }; } &&
20117 { ac_try='test -s conftest.$ac_objext'
20118 { (case "(($ac_try" in
20119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20120 *) ac_try_echo=$ac_try;;
20122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20123 (eval "$ac_try") 2>&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); }; }; then
20127 llvm_cv_cxx_visibility_inlines_hidden=yes
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20132 llvm_cv_cxx_visibility_inlines_hidden=no
20135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20136 CXXFLAGS="$oldcxxflags"
20138 ac_cpp='$CPP $CPPFLAGS'
20139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20145 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20146 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20147 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20148 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20151 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20156 if test "$llvm_cv_link_use_r" = "yes" ; then
20163 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20164 RDYNAMIC="-Wl,-export-dynamic"
20171 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20173 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20175 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20177 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20179 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20181 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20184 ac_config_files="$ac_config_files Makefile.config"
20187 ac_config_files="$ac_config_files llvm.spec"
20190 ac_config_files="$ac_config_files docs/doxygen.cfg"
20193 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20196 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20199 ac_config_commands="$ac_config_commands setup"
20201 ac_config_commands="$ac_config_commands Makefile"
20204 ac_config_commands="$ac_config_commands Makefile.common"
20207 ac_config_commands="$ac_config_commands examples/Makefile"
20210 ac_config_commands="$ac_config_commands lib/Makefile"
20213 ac_config_commands="$ac_config_commands runtime/Makefile"
20216 ac_config_commands="$ac_config_commands test/Makefile"
20219 ac_config_commands="$ac_config_commands test/Makefile.tests"
20222 ac_config_commands="$ac_config_commands unittests/Makefile"
20225 ac_config_commands="$ac_config_commands tools/Makefile"
20228 ac_config_commands="$ac_config_commands utils/Makefile"
20231 ac_config_commands="$ac_config_commands projects/Makefile"
20234 ac_config_commands="$ac_config_commands bindings/Makefile"
20237 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20241 cat >confcache <<\_ACEOF
20242 # This file is a shell script that caches the results of configure
20243 # tests run on this system so they can be shared between configure
20244 # scripts and configure runs, see configure's option --config-cache.
20245 # It is not useful on other systems. If it contains results you don't
20246 # want to keep, you may remove or edit it.
20248 # config.status only pays attention to the cache file if you give it
20249 # the --recheck option to rerun configure.
20251 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20252 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20253 # following values.
20257 # The following way of writing the cache mishandles newlines in values,
20258 # but we know of no workaround that is simple, portable, and efficient.
20259 # So, we kill variables containing newlines.
20260 # Ultrix sh set writes to stderr and can't be redirected directly,
20261 # and sets the high bit in the cache file unless we assign to the vars.
20263 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20264 eval ac_val=\$$ac_var
20268 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20269 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20272 _ | IFS | as_nl) ;; #(
20273 *) $as_unset $ac_var ;;
20279 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20280 *${as_nl}ac_space=\ *)
20281 # `set' does not quote correctly, so add quotes (double-quote
20282 # substitution turns \\\\ into \\, and sed turns \\ into \).
20285 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20288 # `set' quotes correctly as required by POSIX, so do not add quotes.
20289 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20298 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20300 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20302 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20303 if test -w "$cache_file"; then
20304 test "x$cache_file" != "x/dev/null" &&
20305 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20306 echo "$as_me: updating cache $cache_file" >&6;}
20307 cat confcache >$cache_file
20309 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20310 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20315 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20316 # Let make expand exec_prefix.
20317 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20319 DEFS=-DHAVE_CONFIG_H
20323 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20324 # 1. Remove the extension, and $U if already installed.
20325 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20326 ac_i=`echo "$ac_i" | sed "$ac_script"`
20327 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20328 # will be set to the directory where LIBOBJS objects are built.
20329 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20330 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20332 LIBOBJS=$ac_libobjs
20334 LTLIBOBJS=$ac_ltlibobjs
20337 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20338 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20339 Usually this means the macro was only invoked conditionally." >&5
20340 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20341 Usually this means the macro was only invoked conditionally." >&2;}
20342 { (exit 1); exit 1; }; }
20344 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20345 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20346 Usually this means the macro was only invoked conditionally." >&5
20347 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20348 Usually this means the macro was only invoked conditionally." >&2;}
20349 { (exit 1); exit 1; }; }
20352 : ${CONFIG_STATUS=./config.status}
20353 ac_clean_files_save=$ac_clean_files
20354 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20355 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20356 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20357 cat >$CONFIG_STATUS <<_ACEOF
20359 # Generated by $as_me.
20360 # Run this file to recreate the current configuration.
20361 # Compiler output produced by configure, useful for debugging
20362 # configure, is in config.log if it exists.
20365 ac_cs_recheck=false
20367 SHELL=\${CONFIG_SHELL-$SHELL}
20370 cat >>$CONFIG_STATUS <<\_ACEOF
20371 ## --------------------- ##
20372 ## M4sh Initialization. ##
20373 ## --------------------- ##
20375 # Be Bourne compatible
20376 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20379 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20380 # is contrary to our usage. Disable this feature.
20381 alias -g '${1+"$@"}'='"$@"'
20382 setopt NO_GLOB_SUBST
20384 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20386 BIN_SH=xpg4; export BIN_SH # for Tru64
20387 DUALCASE=1; export DUALCASE # for MKS sh
20391 # Avoid depending upon Character Ranges.
20392 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20393 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20394 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20395 as_cr_digits='0123456789'
20396 as_cr_alnum=$as_cr_Letters$as_cr_digits
20398 # The user is always right.
20399 if test "${PATH_SEPARATOR+set}" != set; then
20400 echo "#! /bin/sh" >conf$$.sh
20401 echo "exit 0" >>conf$$.sh
20403 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20411 # Support unset when possible.
20412 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20420 # We need space, tab and new line, in precisely that order. Quoting is
20421 # there to prevent editors from complaining about space-tab.
20422 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20423 # splitting by setting IFS to empty value.)
20428 # Find who we are. Look in the path if we contain no directory separator.
20430 *[\\/]* ) as_myself=$0 ;;
20431 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20432 for as_dir in $PATH
20435 test -z "$as_dir" && as_dir=.
20436 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20442 # We did not find ourselves, most probably we were run as `sh COMMAND'
20443 # in which case we are not to be found in the path.
20444 if test "x$as_myself" = x; then
20447 if test ! -f "$as_myself"; then
20448 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20449 { (exit 1); exit 1; }
20452 # Work around bugs in pre-3.0 UWIN ksh.
20453 for as_var in ENV MAIL MAILPATH
20454 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20462 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20463 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20464 LC_TELEPHONE LC_TIME
20466 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20467 eval $as_var=C; export $as_var
20469 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20473 # Required to use basename.
20474 if expr a : '\(a\)' >/dev/null 2>&1 &&
20475 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20481 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20482 as_basename=basename
20488 # Name of the executable.
20489 as_me=`$as_basename -- "$0" ||
20490 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20491 X"$0" : 'X\(//\)$' \| \
20492 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20494 sed '/^.*\/\([^/][^/]*\)\/*$/{
20513 as_lineno_1=$LINENO
20514 as_lineno_2=$LINENO
20515 test "x$as_lineno_1" != "x$as_lineno_2" &&
20516 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20518 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20519 # uniformly replaced by the line number. The first 'sed' inserts a
20520 # line-number line after each line using $LINENO; the second 'sed'
20521 # does the real work. The second script uses 'N' to pair each
20522 # line-number line with the line containing $LINENO, and appends
20523 # trailing '-' during substitution so that $LINENO is not a special
20524 # case at line end.
20525 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20526 # scripts with optimization help from Paolo Bonzini. Blame Lee
20527 # E. McMahon (1931-1989) for sed's syntax. :-)
20539 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20542 ' >$as_me.lineno &&
20543 chmod +x "$as_me.lineno" ||
20544 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20545 { (exit 1); exit 1; }; }
20547 # Don't try to exec as it changes $[0], causing all sort of problems
20548 # (the dirname of $[0] is not the place where we might find the
20549 # original and so on. Autoconf is especially sensitive to this).
20550 . "./$as_me.lineno"
20551 # Exit status is that of the last command.
20556 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20562 ECHO_C= ECHO_N= ECHO_T=
20563 case `echo -n x` in
20565 case `echo 'x\c'` in
20566 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20573 if expr a : '\(a\)' >/dev/null 2>&1 &&
20574 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20580 rm -f conf$$ conf$$.exe conf$$.file
20581 if test -d conf$$.dir; then
20582 rm -f conf$$.dir/conf$$.file
20588 if ln -s conf$$.file conf$$ 2>/dev/null; then
20590 # ... but there are two gotchas:
20591 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20592 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20593 # In both cases, we have to default to `cp -p'.
20594 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20596 elif ln conf$$.file conf$$ 2>/dev/null; then
20601 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20602 rmdir conf$$.dir 2>/dev/null
20604 if mkdir -p . 2>/dev/null; then
20607 test -d ./-p && rmdir ./-p
20611 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20612 # systems may use methods other than mode bits to determine executability.
20613 cat >conf$$.file <<_ASEOF
20617 chmod +x conf$$.file
20618 if test -x conf$$.file >/dev/null 2>&1; then
20619 as_executable_p="test -x"
20625 # Sed expression to map a string onto a valid CPP name.
20626 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20628 # Sed expression to map a string onto a valid variable name.
20629 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20634 # Save the log message, to keep $[0] and so on meaningful, and to
20635 # report actual input values of CONFIG_FILES etc. instead of their
20636 # values after options handling.
20638 This file was extended by llvm $as_me 2.8svn, which was
20639 generated by GNU Autoconf 2.60. Invocation command line was
20641 CONFIG_FILES = $CONFIG_FILES
20642 CONFIG_HEADERS = $CONFIG_HEADERS
20643 CONFIG_LINKS = $CONFIG_LINKS
20644 CONFIG_COMMANDS = $CONFIG_COMMANDS
20647 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20652 cat >>$CONFIG_STATUS <<_ACEOF
20653 # Files that config.status was made for.
20654 config_files="$ac_config_files"
20655 config_headers="$ac_config_headers"
20656 config_commands="$ac_config_commands"
20660 cat >>$CONFIG_STATUS <<\_ACEOF
20662 \`$as_me' instantiates files from templates according to the
20663 current configuration.
20665 Usage: $0 [OPTIONS] [FILE]...
20667 -h, --help print this help, then exit
20668 -V, --version print version number, then exit
20669 -q, --quiet do not print progress messages
20670 -d, --debug don't remove temporary files
20671 --recheck update $as_me by reconfiguring in the same conditions
20672 --file=FILE[:TEMPLATE]
20673 instantiate the configuration file FILE
20674 --header=FILE[:TEMPLATE]
20675 instantiate the configuration header FILE
20677 Configuration files:
20680 Configuration headers:
20683 Configuration commands:
20686 Report bugs to <bug-autoconf@gnu.org>."
20689 cat >>$CONFIG_STATUS <<_ACEOF
20691 llvm config.status 2.8svn
20692 configured by $0, generated by GNU Autoconf 2.60,
20693 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20695 Copyright (C) 2006 Free Software Foundation, Inc.
20696 This config.status script is free software; the Free Software Foundation
20697 gives unlimited permission to copy, distribute and modify it."
20704 cat >>$CONFIG_STATUS <<\_ACEOF
20705 # If no file are specified by the user, then we need to provide default
20706 # value. By we need to know if files were specified by the user.
20712 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20713 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20724 # Handling of the options.
20725 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20727 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20728 echo "$ac_cs_version"; exit ;;
20729 --debug | --debu | --deb | --de | --d | -d )
20731 --file | --fil | --fi | --f )
20733 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20734 ac_need_defaults=false;;
20735 --header | --heade | --head | --hea )
20737 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20738 ac_need_defaults=false;;
20740 # Conflict between --help and --header
20741 { echo "$as_me: error: ambiguous option: $1
20742 Try \`$0 --help' for more information." >&2
20743 { (exit 1); exit 1; }; };;
20744 --help | --hel | -h )
20745 echo "$ac_cs_usage"; exit ;;
20746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20747 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20750 # This is an error.
20751 -*) { echo "$as_me: error: unrecognized option: $1
20752 Try \`$0 --help' for more information." >&2
20753 { (exit 1); exit 1; }; } ;;
20755 *) ac_config_targets="$ac_config_targets $1"
20756 ac_need_defaults=false ;;
20762 ac_configure_extra_args=
20764 if $ac_cs_silent; then
20766 ac_configure_extra_args="$ac_configure_extra_args --silent"
20770 cat >>$CONFIG_STATUS <<_ACEOF
20771 if \$ac_cs_recheck; then
20772 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20773 CONFIG_SHELL=$SHELL
20774 export CONFIG_SHELL
20775 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20779 cat >>$CONFIG_STATUS <<\_ACEOF
20783 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20784 ## Running $as_me. ##
20790 cat >>$CONFIG_STATUS <<_ACEOF
20794 llvm_src="${srcdir}"
20798 cat >>$CONFIG_STATUS <<\_ACEOF
20800 # Handling of arguments.
20801 for ac_config_target in $ac_config_targets
20803 case $ac_config_target in
20804 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20805 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20806 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20807 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20808 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20809 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20810 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20811 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20812 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20813 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20814 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20815 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20816 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20817 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20818 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20819 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20820 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20821 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20822 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20823 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20824 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20825 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20826 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20827 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20828 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20830 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20831 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20832 { (exit 1); exit 1; }; };;
20837 # If the user did not use the arguments to specify the items to instantiate,
20838 # then the envvar interface is used. Set only those that are not.
20839 # We use the long form for the default assignment because of an extremely
20840 # bizarre bug on SunOS 4.1.3.
20841 if $ac_need_defaults; then
20842 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20843 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20844 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20847 # Have a temporary directory for convenience. Make it in the build tree
20848 # simply because there is no reason against having it here, and in addition,
20849 # creating and moving files from /tmp can sometimes cause problems.
20850 # Hook for its removal unless debugging.
20851 # Note that there is a small window in which the directory will not be cleaned:
20852 # after its creation but before its name has been assigned to `$tmp'.
20856 trap 'exit_status=$?
20857 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20859 trap '{ (exit 1); exit 1; }' 1 2 13 15
20861 # Create a (secure) tmp directory for tmp files.
20864 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20865 test -n "$tmp" && test -d "$tmp"
20868 tmp=./conf$$-$RANDOM
20869 (umask 077 && mkdir "$tmp")
20872 echo "$me: cannot create a temporary directory in ." >&2
20873 { (exit 1); exit 1; }
20877 # Set up the sed scripts for CONFIG_FILES section.
20880 # No need to generate the scripts if there are no CONFIG_FILES.
20881 # This happens for instance when ./config.status config.h
20882 if test -n "$CONFIG_FILES"; then
20889 for ac_last_try in false false false false false :; do
20890 cat >conf$$subs.sed <<_ACEOF
20891 SHELL!$SHELL$ac_delim
20892 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20893 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20894 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20895 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20896 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20897 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20898 exec_prefix!$exec_prefix$ac_delim
20899 prefix!$prefix$ac_delim
20900 program_transform_name!$program_transform_name$ac_delim
20901 bindir!$bindir$ac_delim
20902 sbindir!$sbindir$ac_delim
20903 libexecdir!$libexecdir$ac_delim
20904 datarootdir!$datarootdir$ac_delim
20905 datadir!$datadir$ac_delim
20906 sysconfdir!$sysconfdir$ac_delim
20907 sharedstatedir!$sharedstatedir$ac_delim
20908 localstatedir!$localstatedir$ac_delim
20909 includedir!$includedir$ac_delim
20910 oldincludedir!$oldincludedir$ac_delim
20911 docdir!$docdir$ac_delim
20912 infodir!$infodir$ac_delim
20913 htmldir!$htmldir$ac_delim
20914 dvidir!$dvidir$ac_delim
20915 pdfdir!$pdfdir$ac_delim
20916 psdir!$psdir$ac_delim
20917 libdir!$libdir$ac_delim
20918 localedir!$localedir$ac_delim
20919 mandir!$mandir$ac_delim
20920 DEFS!$DEFS$ac_delim
20921 ECHO_C!$ECHO_C$ac_delim
20922 ECHO_N!$ECHO_N$ac_delim
20923 ECHO_T!$ECHO_T$ac_delim
20924 LIBS!$LIBS$ac_delim
20925 build_alias!$build_alias$ac_delim
20926 host_alias!$host_alias$ac_delim
20927 target_alias!$target_alias$ac_delim
20928 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20929 subdirs!$subdirs$ac_delim
20930 build!$build$ac_delim
20931 build_cpu!$build_cpu$ac_delim
20932 build_vendor!$build_vendor$ac_delim
20933 build_os!$build_os$ac_delim
20934 host!$host$ac_delim
20935 host_cpu!$host_cpu$ac_delim
20936 host_vendor!$host_vendor$ac_delim
20937 host_os!$host_os$ac_delim
20938 target!$target$ac_delim
20939 target_cpu!$target_cpu$ac_delim
20940 target_vendor!$target_vendor$ac_delim
20941 target_os!$target_os$ac_delim
20943 HOST_OS!$HOST_OS$ac_delim
20944 TARGET_OS!$TARGET_OS$ac_delim
20945 LINKALL!$LINKALL$ac_delim
20946 NOLINKALL!$NOLINKALL$ac_delim
20947 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20948 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20949 ARCH!$ARCH$ac_delim
20950 ENDIAN!$ENDIAN$ac_delim
20952 CFLAGS!$CFLAGS$ac_delim
20953 LDFLAGS!$LDFLAGS$ac_delim
20954 CPPFLAGS!$CPPFLAGS$ac_delim
20955 ac_ct_CC!$ac_ct_CC$ac_delim
20956 EXEEXT!$EXEEXT$ac_delim
20957 OBJEXT!$OBJEXT$ac_delim
20959 GREP!$GREP$ac_delim
20960 EGREP!$EGREP$ac_delim
20961 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20962 BUILD_CC!$BUILD_CC$ac_delim
20963 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20964 BUILD_CXX!$BUILD_CXX$ac_delim
20965 CVSBUILD!$CVSBUILD$ac_delim
20966 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20967 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20968 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20969 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20970 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20971 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20972 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20974 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20975 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20976 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20977 ENABLE_PIC!$ENABLE_PIC$ac_delim
20978 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20979 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20980 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20981 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20982 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20983 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20984 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20985 CLANGPATH!$CLANGPATH$ac_delim
20986 CLANGXXPATH!$CLANGXXPATH$ac_delim
20987 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20990 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20992 elif $ac_last_try; then
20993 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20994 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20995 { (exit 1); exit 1; }; }
20997 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21001 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21002 if test -n "$ac_eof"; then
21003 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21004 ac_eof=`expr $ac_eof + 1`
21007 cat >>$CONFIG_STATUS <<_ACEOF
21008 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21009 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21012 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21013 s/^/s,@/; s/!/@,|#_!!_#|/
21016 s/'"$ac_delim"'$/,g/; t
21018 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21019 ' >>$CONFIG_STATUS <conf$$subs.sed
21020 rm -f conf$$subs.sed
21021 cat >>$CONFIG_STATUS <<_ACEOF
21027 for ac_last_try in false false false false false :; do
21028 cat >conf$$subs.sed <<_ACEOF
21029 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21030 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21031 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21032 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21033 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21035 CXXFLAGS!$CXXFLAGS$ac_delim
21036 ac_ct_CXX!$ac_ct_CXX$ac_delim
21038 ifGNUmake!$ifGNUmake$ac_delim
21039 LN_S!$LN_S$ac_delim
21042 DATE!$DATE$ac_delim
21043 FIND!$FIND$ac_delim
21044 MKDIR!$MKDIR$ac_delim
21046 RANLIB!$RANLIB$ac_delim
21051 BINPWD!$BINPWD$ac_delim
21052 GRAPHVIZ!$GRAPHVIZ$ac_delim
21055 NEATO!$NEATO$ac_delim
21056 TWOPI!$TWOPI$ac_delim
21057 CIRCO!$CIRCO$ac_delim
21059 DOTTY!$DOTTY$ac_delim
21060 PERL!$PERL$ac_delim
21061 HAVE_PERL!$HAVE_PERL$ac_delim
21062 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21063 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21064 INSTALL_DATA!$INSTALL_DATA$ac_delim
21065 BZIP2!$BZIP2$ac_delim
21066 DOXYGEN!$DOXYGEN$ac_delim
21067 GROFF!$GROFF$ac_delim
21068 GZIP!$GZIP$ac_delim
21069 POD2HTML!$POD2HTML$ac_delim
21070 POD2MAN!$POD2MAN$ac_delim
21071 RUNTEST!$RUNTEST$ac_delim
21072 TCLSH!$TCLSH$ac_delim
21074 OCAMLC!$OCAMLC$ac_delim
21075 OCAMLOPT!$OCAMLOPT$ac_delim
21076 OCAMLDEP!$OCAMLDEP$ac_delim
21077 OCAMLDOC!$OCAMLDOC$ac_delim
21079 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21080 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21081 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21082 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21083 LIBADD_DL!$LIBADD_DL$ac_delim
21084 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21085 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21086 LLVMGCC!$LLVMGCC$ac_delim
21087 LLVMGXX!$LLVMGXX$ac_delim
21088 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21089 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21090 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21091 USE_UDIS86!$USE_UDIS86$ac_delim
21092 USE_OPROFILE!$USE_OPROFILE$ac_delim
21093 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21094 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21095 MMAP_FILE!$MMAP_FILE$ac_delim
21096 LLVMCC1!$LLVMCC1$ac_delim
21097 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21098 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21099 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21100 SHLIBEXT!$SHLIBEXT$ac_delim
21101 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21102 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21103 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21104 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21105 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21106 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21107 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21108 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21109 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21110 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21111 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21112 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21113 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21114 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21115 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21116 RPATH!$RPATH$ac_delim
21117 RDYNAMIC!$RDYNAMIC$ac_delim
21118 LIBOBJS!$LIBOBJS$ac_delim
21119 LTLIBOBJS!$LTLIBOBJS$ac_delim
21122 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21124 elif $ac_last_try; then
21125 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21126 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21127 { (exit 1); exit 1; }; }
21129 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21133 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21134 if test -n "$ac_eof"; then
21135 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21136 ac_eof=`expr $ac_eof + 1`
21139 cat >>$CONFIG_STATUS <<_ACEOF
21140 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21141 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21144 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21145 s/^/s,@/; s/!/@,|#_!!_#|/
21148 s/'"$ac_delim"'$/,g/; t
21150 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21151 ' >>$CONFIG_STATUS <conf$$subs.sed
21152 rm -f conf$$subs.sed
21153 cat >>$CONFIG_STATUS <<_ACEOF
21160 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21161 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21162 # trailing colons and then remove the whole line if VPATH becomes empty
21163 # (actually we leave an empty line to preserve line numbers).
21164 if test "x$srcdir" = x.; then
21165 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21166 s/:*\$(srcdir):*/:/
21167 s/:*\${srcdir}:*/:/
21169 s/^\([^=]*=[ ]*\):*/\1/
21175 cat >>$CONFIG_STATUS <<\_ACEOF
21176 fi # test -n "$CONFIG_FILES"
21179 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21182 :[FHLC]) ac_mode=$ac_tag; continue;;
21184 case $ac_mode$ac_tag in
21186 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21187 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21188 { (exit 1); exit 1; }; };;
21189 :[FH]-) ac_tag=-:-;;
21190 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21207 -) ac_f="$tmp/stdin";;
21208 *) # Look for the file first in the build tree, then in the source tree
21209 # (if the path is not absolute). The absolute path cannot be DOS-style,
21210 # because $ac_f cannot contain `:'.
21214 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21216 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21217 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21218 { (exit 1); exit 1; }; };;
21220 ac_file_inputs="$ac_file_inputs $ac_f"
21223 # Let's still pretend it is `configure' which instantiates (i.e., don't
21224 # use $as_me), people would be surprised to read:
21225 # /* config.h. Generated by config.status. */
21226 configure_input="Generated from "`IFS=:
21227 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21228 if test x"$ac_file" != x-; then
21229 configure_input="$ac_file. $configure_input"
21230 { echo "$as_me:$LINENO: creating $ac_file" >&5
21231 echo "$as_me: creating $ac_file" >&6;}
21235 *:-:* | *:-) cat >"$tmp/stdin";;
21240 ac_dir=`$as_dirname -- "$ac_file" ||
21241 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21242 X"$ac_file" : 'X\(//\)[^/]' \| \
21243 X"$ac_file" : 'X\(//\)$' \| \
21244 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21246 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21250 /^X\(\/\/\)[^/].*/{
21265 -*) as_dir=./$as_dir;;
21267 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21271 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21272 *) as_qdir=$as_dir;;
21274 as_dirs="'$as_qdir' $as_dirs"
21275 as_dir=`$as_dirname -- "$as_dir" ||
21276 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21277 X"$as_dir" : 'X\(//\)[^/]' \| \
21278 X"$as_dir" : 'X\(//\)$' \| \
21279 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21281 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21285 /^X\(\/\/\)[^/].*/{
21298 test -d "$as_dir" && break
21300 test -z "$as_dirs" || eval "mkdir $as_dirs"
21301 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21302 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21303 { (exit 1); exit 1; }; }; }
21307 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21309 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21310 # A ".." for each directory in $ac_dir_suffix.
21311 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21312 case $ac_top_builddir_sub in
21313 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21314 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21317 ac_abs_top_builddir=$ac_pwd
21318 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21319 # for backward compatibility:
21320 ac_top_builddir=$ac_top_build_prefix
21323 .) # We are building in place.
21325 ac_top_srcdir=$ac_top_builddir_sub
21326 ac_abs_top_srcdir=$ac_pwd ;;
21327 [\\/]* | ?:[\\/]* ) # Absolute name.
21328 ac_srcdir=$srcdir$ac_dir_suffix;
21329 ac_top_srcdir=$srcdir
21330 ac_abs_top_srcdir=$srcdir ;;
21331 *) # Relative name.
21332 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21333 ac_top_srcdir=$ac_top_build_prefix$srcdir
21334 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21336 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21346 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21347 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21351 cat >>$CONFIG_STATUS <<\_ACEOF
21352 # If the template does not know about datarootdir, expand it.
21353 # FIXME: This hack should be removed a few years after 2.60.
21354 ac_datarootdir_hack=; ac_datarootdir_seen=
21356 case `sed -n '/datarootdir/ {
21365 ' $ac_file_inputs` in
21366 *datarootdir*) ac_datarootdir_seen=yes;;
21367 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21368 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21369 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21371 cat >>$CONFIG_STATUS <<_ACEOF
21372 ac_datarootdir_hack='
21373 s&@datadir@&$datadir&g
21374 s&@docdir@&$docdir&g
21375 s&@infodir@&$infodir&g
21376 s&@localedir@&$localedir&g
21377 s&@mandir@&$mandir&g
21378 s&\\\${datarootdir}&$datarootdir&g' ;;
21382 # Neutralize VPATH when `$srcdir' = `.'.
21383 # Shell code in configure.ac might set extrasub.
21384 # FIXME: do we really want to maintain this feature?
21385 cat >>$CONFIG_STATUS <<_ACEOF
21389 cat >>$CONFIG_STATUS <<\_ACEOF
21391 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21392 s&@configure_input@&$configure_input&;t t
21393 s&@top_builddir@&$ac_top_builddir_sub&;t t
21394 s&@srcdir@&$ac_srcdir&;t t
21395 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21396 s&@top_srcdir@&$ac_top_srcdir&;t t
21397 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21398 s&@builddir@&$ac_builddir&;t t
21399 s&@abs_builddir@&$ac_abs_builddir&;t t
21400 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21401 s&@INSTALL@&$ac_INSTALL&;t t
21402 $ac_datarootdir_hack
21403 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21405 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21406 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21407 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21408 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21409 which seems to be undefined. Please make sure it is defined." >&5
21410 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21411 which seems to be undefined. Please make sure it is defined." >&2;}
21415 -) cat "$tmp/out"; rm -f "$tmp/out";;
21416 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21425 # Transform confdefs.h into a sed script `conftest.defines', that
21426 # substitutes the proper values into config.h.in to produce config.h.
21427 rm -f conftest.defines conftest.tail
21428 # First, append a space to every undef/define line, to ease matching.
21429 echo 's/$/ /' >conftest.defines
21430 # Then, protect against being on the right side of a sed subst, or in
21431 # an unquoted here document, in config.status. If some macros were
21432 # called several times there might be several #defines for the same
21433 # symbol, which is useless. But do not sort them, since the last
21434 # AC_DEFINE must be honored.
21435 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21436 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21437 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21438 # PARAMS is the parameter list in the macro definition--in most cases, it's
21439 # just an empty string.
21440 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21441 ac_dB='\\)[ (].*,\\1define\\2'
21449 s/^[ ]*#[ ]*define[ ][ ]*//
21454 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21455 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21456 ' >>conftest.defines
21458 # Remove the space that was appended to ease matching.
21459 # Then replace #undef with comments. This is necessary, for
21460 # example, in the case of _POSIX_SOURCE, which is predefined and required
21461 # on some systems where configure will not decide to define it.
21462 # (The regexp can be short, since the line contains either #define or #undef.)
21464 s,^[ #]*u.*,/* & */,' >>conftest.defines
21466 # Break up conftest.defines:
21467 ac_max_sed_lines=50
21469 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21470 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21471 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21473 ac_in='$ac_file_inputs'
21474 ac_out='"$tmp/out1"'
21475 ac_nxt='"$tmp/out2"'
21479 # Write a here document:
21480 cat >>$CONFIG_STATUS <<_ACEOF
21481 # First, check the format of the line:
21482 cat >"\$tmp/defines.sed" <<\\CEOF
21483 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21484 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21488 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21490 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21491 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21492 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21493 grep . conftest.tail >/dev/null || break
21494 rm -f conftest.defines
21495 mv conftest.tail conftest.defines
21497 rm -f conftest.defines conftest.tail
21499 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21500 cat >>$CONFIG_STATUS <<\_ACEOF
21501 if test x"$ac_file" != x-; then
21502 echo "/* $configure_input */" >"$tmp/config.h"
21503 cat "$ac_result" >>"$tmp/config.h"
21504 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21505 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21506 echo "$as_me: $ac_file is unchanged" >&6;}
21509 mv "$tmp/config.h" $ac_file
21512 echo "/* $configure_input */"
21518 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21519 echo "$as_me: executing $ac_file commands" >&6;}
21524 case $ac_file$ac_mode in
21525 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21526 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21527 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21528 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21529 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21530 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21531 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21532 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21533 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21534 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21535 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21536 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21537 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21538 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21539 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21540 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21541 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21542 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21543 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21544 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21545 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21546 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21547 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21548 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21549 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21550 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21556 { (exit 0); exit 0; }
21558 chmod +x $CONFIG_STATUS
21559 ac_clean_files=$ac_clean_files_save
21562 # configure is writing to config.log, and then calls config.status.
21563 # config.status does its own redirection, appending to config.log.
21564 # Unfortunately, on DOS this fails, as config.log is still kept open
21565 # by configure, so config.status won't be able to write to it; its
21566 # output is simply discarded. So we exec the FD to /dev/null,
21567 # effectively closing config.log, so it can be properly (re)opened and
21568 # appended to by config.status. When coming back to configure, we
21569 # need to make the FD available again.
21570 if test "$no_create" != yes; then
21572 ac_config_status_args=
21573 test "$silent" = yes &&
21574 ac_config_status_args="$ac_config_status_args --quiet"
21576 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21578 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21579 # would make configure fail if this is the last instruction.
21580 $ac_cs_success || { (exit 1); exit 1; }
21584 # CONFIG_SUBDIRS section.
21586 if test "$no_recursion" != yes; then
21588 # Remove --cache-file and --srcdir arguments so they do not pile up.
21589 ac_sub_configure_args=
21591 eval "set x $ac_configure_args"
21595 if test -n "$ac_prev"; then
21600 -cache-file | --cache-file | --cache-fil | --cache-fi \
21601 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21602 ac_prev=cache_file ;;
21603 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21604 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21607 --config-cache | -C)
21609 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21611 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21613 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21615 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21619 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21621 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21625 # Always prepend --prefix to ensure using the same prefix
21626 # in subdir configurations.
21627 ac_arg="--prefix=$prefix"
21629 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21631 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21634 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21636 # Do not complain, so a configure script can configure whichever
21637 # parts of a large source tree are present.
21638 test -d "$srcdir/$ac_dir" || continue
21640 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21641 echo "$as_me:$LINENO: $ac_msg" >&5
21645 -*) as_dir=./$as_dir;;
21647 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21651 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21652 *) as_qdir=$as_dir;;
21654 as_dirs="'$as_qdir' $as_dirs"
21655 as_dir=`$as_dirname -- "$as_dir" ||
21656 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21657 X"$as_dir" : 'X\(//\)[^/]' \| \
21658 X"$as_dir" : 'X\(//\)$' \| \
21659 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21661 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21665 /^X\(\/\/\)[^/].*/{
21678 test -d "$as_dir" && break
21680 test -z "$as_dirs" || eval "mkdir $as_dirs"
21681 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21682 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21683 { (exit 1); exit 1; }; }; }
21687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21689 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21690 # A ".." for each directory in $ac_dir_suffix.
21691 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21692 case $ac_top_builddir_sub in
21693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21697 ac_abs_top_builddir=$ac_pwd
21698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21699 # for backward compatibility:
21700 ac_top_builddir=$ac_top_build_prefix
21703 .) # We are building in place.
21705 ac_top_srcdir=$ac_top_builddir_sub
21706 ac_abs_top_srcdir=$ac_pwd ;;
21707 [\\/]* | ?:[\\/]* ) # Absolute name.
21708 ac_srcdir=$srcdir$ac_dir_suffix;
21709 ac_top_srcdir=$srcdir
21710 ac_abs_top_srcdir=$srcdir ;;
21711 *) # Relative name.
21712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21713 ac_top_srcdir=$ac_top_build_prefix$srcdir
21714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21721 # Check for guested configure; otherwise get Cygnus style configure.
21722 if test -f "$ac_srcdir/configure.gnu"; then
21723 ac_sub_configure=$ac_srcdir/configure.gnu
21724 elif test -f "$ac_srcdir/configure"; then
21725 ac_sub_configure=$ac_srcdir/configure
21726 elif test -f "$ac_srcdir/configure.in"; then
21727 # This should be Cygnus configure.
21728 ac_sub_configure=$ac_aux_dir/configure
21730 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21731 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21735 # The recursion is here.
21736 if test -n "$ac_sub_configure"; then
21737 # Make the cache file name correct relative to the subdirectory.
21738 case $cache_file in
21739 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21740 *) # Relative name.
21741 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21744 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21745 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21746 # The eval makes quoting arguments work.
21747 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21748 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21749 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21750 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21751 { (exit 1); exit 1; }; }