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"
2003 { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2004 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2011 # Make sure we can run config.sub.
2012 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2013 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2014 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2015 { (exit 1); exit 1; }; }
2017 { echo "$as_me:$LINENO: checking build system type" >&5
2018 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2019 if test "${ac_cv_build+set}" = set; then
2020 echo $ECHO_N "(cached) $ECHO_C" >&6
2022 ac_build_alias=$build_alias
2023 test "x$ac_build_alias" = x &&
2024 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2025 test "x$ac_build_alias" = x &&
2026 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2027 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2028 { (exit 1); exit 1; }; }
2029 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2030 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2031 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2032 { (exit 1); exit 1; }; }
2035 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2036 echo "${ECHO_T}$ac_cv_build" >&6; }
2037 case $ac_cv_build in
2039 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2040 echo "$as_me: error: invalid value of canonical build" >&2;}
2041 { (exit 1); exit 1; }; };;
2044 ac_save_IFS=$IFS; IFS='-'
2050 # Remember, the first character of IFS is used to create $*,
2051 # except with old shells:
2054 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2057 { echo "$as_me:$LINENO: checking host system type" >&5
2058 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2059 if test "${ac_cv_host+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test "x$host_alias" = x; then
2063 ac_cv_host=$ac_cv_build
2065 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2066 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2067 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2068 { (exit 1); exit 1; }; }
2072 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2073 echo "${ECHO_T}$ac_cv_host" >&6; }
2076 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2077 echo "$as_me: error: invalid value of canonical host" >&2;}
2078 { (exit 1); exit 1; }; };;
2081 ac_save_IFS=$IFS; IFS='-'
2087 # Remember, the first character of IFS is used to create $*,
2088 # except with old shells:
2091 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2094 { echo "$as_me:$LINENO: checking target system type" >&5
2095 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2096 if test "${ac_cv_target+set}" = set; then
2097 echo $ECHO_N "(cached) $ECHO_C" >&6
2099 if test "x$target_alias" = x; then
2100 ac_cv_target=$ac_cv_host
2102 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2103 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2104 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2105 { (exit 1); exit 1; }; }
2109 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2110 echo "${ECHO_T}$ac_cv_target" >&6; }
2111 case $ac_cv_target in
2113 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2114 echo "$as_me: error: invalid value of canonical target" >&2;}
2115 { (exit 1); exit 1; }; };;
2117 target=$ac_cv_target
2118 ac_save_IFS=$IFS; IFS='-'
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2128 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2131 # The aliases save the names the user supplied, while $host etc.
2132 # will get canonicalized.
2133 test -n "$target_alias" &&
2134 test "$program_prefix$program_suffix$program_transform_name" = \
2136 program_prefix=${target_alias}-
2138 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2139 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2140 if test "${llvm_cv_os_type+set}" = set; then
2141 echo $ECHO_N "(cached) $ECHO_C" >&6
2145 llvm_cv_link_all_option="-Wl,--whole-archive"
2146 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2147 llvm_cv_os_type="AIX"
2148 llvm_cv_platform_type="Unix" ;;
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="IRIX"
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="Cygwin"
2158 llvm_cv_platform_type="Unix" ;;
2160 llvm_cv_link_all_option="-Wl,-all_load"
2161 llvm_cv_no_link_all_option="-Wl,-noall_load"
2162 llvm_cv_os_type="Darwin"
2163 llvm_cv_platform_type="Unix" ;;
2165 llvm_cv_link_all_option="-Wl,--whole-archive"
2166 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2167 llvm_cv_os_type="FreeBSD"
2168 llvm_cv_platform_type="Unix" ;;
2170 llvm_cv_link_all_option="-Wl,--whole-archive"
2171 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2172 llvm_cv_os_type="OpenBSD"
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="NetBSD"
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="DragonFly"
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="HP-UX"
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="Interix"
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="Linux"
2198 llvm_cv_platform_type="Unix" ;;
2200 llvm_cv_link_all_option="-Wl,-z,allextract"
2201 llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2202 llvm_cv_os_type="SunOS"
2203 llvm_cv_platform_type="Unix" ;;
2205 llvm_cv_link_all_option="-Wl,-z,allextract"
2206 llvm_cv_link_all_option="-Wl,-z,defaultextract"
2207 llvm_cv_os_type="AuroraUX"
2208 llvm_cv_platform_type="Unix" ;;
2210 llvm_cv_link_all_option="-Wl,--whole-archive"
2211 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2212 llvm_cv_os_type="Win32"
2213 llvm_cv_platform_type="Win32" ;;
2215 llvm_cv_link_all_option="-Wl,--whole-archive"
2216 llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2217 llvm_cv_os_type="MingW"
2218 llvm_cv_platform_type="Win32" ;;
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="Haiku"
2223 llvm_cv_platform_type="Unix" ;;
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="Freestanding"
2228 llvm_cv_platform_type="Unix" ;;
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="Freestanding"
2233 llvm_cv_platform_type="Unix" ;;
2235 llvm_cv_link_all_option=""
2236 llvm_cv_no_link_all_option=""
2237 llvm_cv_os_type="Unknown"
2238 llvm_cv_platform_type="Unknown" ;;
2241 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2242 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2244 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2245 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2246 if test "${llvm_cv_target_os_type+set}" = set; then
2247 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 llvm_cv_target_os_type="AIX" ;;
2253 llvm_cv_target_os_type="IRIX" ;;
2255 llvm_cv_target_os_type="Cygwin" ;;
2257 llvm_cv_target_os_type="Darwin" ;;
2259 llvm_cv_target_os_type="FreeBSD" ;;
2261 llvm_cv_target_os_type="OpenBSD" ;;
2263 llvm_cv_target_os_type="NetBSD" ;;
2265 llvm_cv_target_os_type="DragonFly" ;;
2267 llvm_cv_target_os_type="HP-UX" ;;
2269 llvm_cv_target_os_type="Interix" ;;
2271 llvm_cv_target_os_type="Linux" ;;
2273 llvm_cv_target_os_type="SunOS" ;;
2275 llvm_cv_target_os_type="AuroraUX" ;;
2277 llvm_cv_target_os_type="Win32" ;;
2279 llvm_cv_target_os_type="MingW" ;;
2281 llvm_cv_target_os_type="Haiku" ;;
2283 llvm_cv_target_os_type="Freestanding" ;;
2285 llvm_cv_target_os_type="Unknown" ;;
2288 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2289 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2291 if test "$llvm_cv_os_type" = "Unknown" ; then
2292 { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2293 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2294 { (exit 1); exit 1; }; }
2299 HOST_OS=$llvm_cv_os_type
2301 TARGET_OS=$llvm_cv_target_os_type
2304 LINKALL=$llvm_cv_link_all_option
2306 NOLINKALL=$llvm_cv_no_link_all_option
2309 case $llvm_cv_platform_type in
2312 cat >>confdefs.h <<\_ACEOF
2313 #define LLVM_ON_UNIX 1
2323 cat >>confdefs.h <<\_ACEOF
2324 #define LLVM_ON_WIN32 1
2334 { echo "$as_me:$LINENO: checking target architecture" >&5
2335 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2336 if test "${llvm_cv_target_arch+set}" = set; then
2337 echo $ECHO_N "(cached) $ECHO_C" >&6
2340 i?86-*) llvm_cv_target_arch="x86" ;;
2341 amd64-* | x86_64-*) llvm_cv_target_arch="x86_64" ;;
2342 sparc*-*) llvm_cv_target_arch="Sparc" ;;
2343 powerpc*-*) llvm_cv_target_arch="PowerPC" ;;
2344 alpha*-*) llvm_cv_target_arch="Alpha" ;;
2345 arm*-*) llvm_cv_target_arch="ARM" ;;
2346 mips-*) llvm_cv_target_arch="Mips" ;;
2347 pic16-*) llvm_cv_target_arch="PIC16" ;;
2348 xcore-*) llvm_cv_target_arch="XCore" ;;
2349 msp430-*) llvm_cv_target_arch="MSP430" ;;
2350 s390x-*) llvm_cv_target_arch="SystemZ" ;;
2351 bfin-*) llvm_cv_target_arch="Blackfin" ;;
2352 mblaze-*) llvm_cv_target_arch="MBlaze" ;;
2353 *) llvm_cv_target_arch="Unknown" ;;
2356 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2357 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2359 if test "$llvm_cv_target_arch" = "Unknown" ; then
2360 { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2361 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2364 # Determine the LLVM native architecture for the target
2365 case "$llvm_cv_target_arch" in
2366 x86) LLVM_NATIVE_ARCH="X86" ;;
2367 x86_64) LLVM_NATIVE_ARCH="X86" ;;
2368 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2371 ARCH=$llvm_cv_target_arch
2375 ac_cpp='$CPP $CPPFLAGS'
2376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2379 if test -n "$ac_tool_prefix"; then
2380 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2381 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2382 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2383 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2384 if test "${ac_cv_prog_CC+set}" = set; then
2385 echo $ECHO_N "(cached) $ECHO_C" >&6
2387 if test -n "$CC"; then
2388 ac_cv_prog_CC="$CC" # Let the user override the test.
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2394 test -z "$as_dir" && as_dir=.
2395 for ac_exec_ext in '' $ac_executable_extensions; do
2396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2397 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2398 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2408 if test -n "$CC"; then
2409 { echo "$as_me:$LINENO: result: $CC" >&5
2410 echo "${ECHO_T}$CC" >&6; }
2412 { echo "$as_me:$LINENO: result: no" >&5
2413 echo "${ECHO_T}no" >&6; }
2418 if test -z "$ac_cv_prog_CC"; then
2420 # Extract the first word of "gcc", so it can be a program name with args.
2421 set dummy gcc; ac_word=$2
2422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2424 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2427 if test -n "$ac_ct_CC"; then
2428 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2437 ac_cv_prog_ac_ct_CC="gcc"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2447 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2448 if test -n "$ac_ct_CC"; then
2449 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2450 echo "${ECHO_T}$ac_ct_CC" >&6; }
2452 { echo "$as_me:$LINENO: result: no" >&5
2453 echo "${ECHO_T}no" >&6; }
2456 if test "x$ac_ct_CC" = x; then
2459 case $cross_compiling:$ac_tool_warned in
2461 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2462 whose name does not start with the host triplet. If you think this
2463 configuration is useful to you, please write to autoconf@gnu.org." >&5
2464 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2465 whose name does not start with the host triplet. If you think this
2466 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2467 ac_tool_warned=yes ;;
2475 if test -z "$CC"; then
2476 if test -n "$ac_tool_prefix"; then
2477 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2478 set dummy ${ac_tool_prefix}cc; ac_word=$2
2479 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2480 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2481 if test "${ac_cv_prog_CC+set}" = set; then
2482 echo $ECHO_N "(cached) $ECHO_C" >&6
2484 if test -n "$CC"; then
2485 ac_cv_prog_CC="$CC" # Let the user override the test.
2487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2491 test -z "$as_dir" && as_dir=.
2492 for ac_exec_ext in '' $ac_executable_extensions; do
2493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2494 ac_cv_prog_CC="${ac_tool_prefix}cc"
2495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2505 if test -n "$CC"; then
2506 { echo "$as_me:$LINENO: result: $CC" >&5
2507 echo "${ECHO_T}$CC" >&6; }
2509 { echo "$as_me:$LINENO: result: no" >&5
2510 echo "${ECHO_T}no" >&6; }
2516 if test -z "$CC"; then
2517 # Extract the first word of "cc", so it can be a program name with args.
2518 set dummy cc; ac_word=$2
2519 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2521 if test "${ac_cv_prog_CC+set}" = set; then
2522 echo $ECHO_N "(cached) $ECHO_C" >&6
2524 if test -n "$CC"; then
2525 ac_cv_prog_CC="$CC" # Let the user override the test.
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2532 test -z "$as_dir" && as_dir=.
2533 for ac_exec_ext in '' $ac_executable_extensions; do
2534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2535 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2536 ac_prog_rejected=yes
2540 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2547 if test $ac_prog_rejected = yes; then
2548 # We found a bogon in the path, so make sure we never use it.
2549 set dummy $ac_cv_prog_CC
2551 if test $# != 0; then
2552 # We chose a different compiler from the bogus one.
2553 # However, it has the same basename, so the bogon will be chosen
2554 # first if we set CC to just the basename; use the full file name.
2556 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2562 if test -n "$CC"; then
2563 { echo "$as_me:$LINENO: result: $CC" >&5
2564 echo "${ECHO_T}$CC" >&6; }
2566 { echo "$as_me:$LINENO: result: no" >&5
2567 echo "${ECHO_T}no" >&6; }
2572 if test -z "$CC"; then
2573 if test -n "$ac_tool_prefix"; then
2574 for ac_prog in cl.exe
2576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2578 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2579 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2580 if test "${ac_cv_prog_CC+set}" = set; then
2581 echo $ECHO_N "(cached) $ECHO_C" >&6
2583 if test -n "$CC"; then
2584 ac_cv_prog_CC="$CC" # Let the user override the test.
2586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2590 test -z "$as_dir" && as_dir=.
2591 for ac_exec_ext in '' $ac_executable_extensions; do
2592 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2593 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2594 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2604 if test -n "$CC"; then
2605 { echo "$as_me:$LINENO: result: $CC" >&5
2606 echo "${ECHO_T}$CC" >&6; }
2608 { echo "$as_me:$LINENO: result: no" >&5
2609 echo "${ECHO_T}no" >&6; }
2613 test -n "$CC" && break
2616 if test -z "$CC"; then
2618 for ac_prog in cl.exe
2620 # Extract the first word of "$ac_prog", so it can be a program name with args.
2621 set dummy $ac_prog; ac_word=$2
2622 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2623 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2624 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2625 echo $ECHO_N "(cached) $ECHO_C" >&6
2627 if test -n "$ac_ct_CC"; then
2628 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2634 test -z "$as_dir" && as_dir=.
2635 for ac_exec_ext in '' $ac_executable_extensions; do
2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2637 ac_cv_prog_ac_ct_CC="$ac_prog"
2638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2647 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2648 if test -n "$ac_ct_CC"; then
2649 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2650 echo "${ECHO_T}$ac_ct_CC" >&6; }
2652 { echo "$as_me:$LINENO: result: no" >&5
2653 echo "${ECHO_T}no" >&6; }
2657 test -n "$ac_ct_CC" && break
2660 if test "x$ac_ct_CC" = x; then
2663 case $cross_compiling:$ac_tool_warned in
2665 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2666 whose name does not start with the host triplet. If you think this
2667 configuration is useful to you, please write to autoconf@gnu.org." >&5
2668 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2669 whose name does not start with the host triplet. If you think this
2670 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2671 ac_tool_warned=yes ;;
2680 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2681 See \`config.log' for more details." >&5
2682 echo "$as_me: error: no acceptable C compiler found in \$PATH
2683 See \`config.log' for more details." >&2;}
2684 { (exit 1); exit 1; }; }
2686 # Provide some information about the compiler.
2687 echo "$as_me:$LINENO: checking for C compiler version" >&5
2688 ac_compiler=`set X $ac_compile; echo $2`
2689 { (ac_try="$ac_compiler --version >&5"
2691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2692 *) ac_try_echo=$ac_try;;
2694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2695 (eval "$ac_compiler --version >&5") 2>&5
2697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698 (exit $ac_status); }
2699 { (ac_try="$ac_compiler -v >&5"
2701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2702 *) ac_try_echo=$ac_try;;
2704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2705 (eval "$ac_compiler -v >&5") 2>&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }
2709 { (ac_try="$ac_compiler -V >&5"
2711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2712 *) ac_try_echo=$ac_try;;
2714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2715 (eval "$ac_compiler -V >&5") 2>&5
2717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2718 (exit $ac_status); }
2720 cat >conftest.$ac_ext <<_ACEOF
2723 cat confdefs.h >>conftest.$ac_ext
2724 cat >>conftest.$ac_ext <<_ACEOF
2725 /* end confdefs.h. */
2735 ac_clean_files_save=$ac_clean_files
2736 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2737 # Try to create an executable without -o first, disregard a.out.
2738 # It will help us diagnose broken compilers, and finding out an intuition
2740 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2741 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2742 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2744 # List of possible output files, starting from the most likely.
2745 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2746 # only as a last resort. b.out is created by i960 compilers.
2747 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2749 # The IRIX 6 linker writes into existing files which may not be
2750 # executable, retaining their permissions. Remove them first so a
2751 # subsequent execution test works.
2753 for ac_file in $ac_files
2756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2757 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2762 if { (ac_try="$ac_link_default"
2764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2765 *) ac_try_echo=$ac_try;;
2767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2768 (eval "$ac_link_default") 2>&5
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; then
2772 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2773 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2774 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2775 # so that the user can short-circuit this test for compilers unknown to
2777 for ac_file in $ac_files
2779 test -f "$ac_file" || continue
2781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2784 # We found the default executable, but exeext='' is most
2788 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2790 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2792 # We set ac_cv_exeext here because the later test for it is not
2793 # safe: cross compilers may not add the suffix if given an `-o'
2794 # argument, so we may need to know it at that point already.
2795 # Even if this section looks crufty: it has the advantage of
2802 test "$ac_cv_exeext" = no && ac_cv_exeext=
2805 echo "$as_me: failed program was:" >&5
2806 sed 's/^/| /' conftest.$ac_ext >&5
2808 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2809 See \`config.log' for more details." >&5
2810 echo "$as_me: error: C compiler cannot create executables
2811 See \`config.log' for more details." >&2;}
2812 { (exit 77); exit 77; }; }
2815 ac_exeext=$ac_cv_exeext
2816 { echo "$as_me:$LINENO: result: $ac_file" >&5
2817 echo "${ECHO_T}$ac_file" >&6; }
2819 # Check that the compiler produces executables we can run. If not, either
2820 # the compiler is broken, or we cross compile.
2821 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2822 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2823 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2824 # If not cross compiling, check that we can run a simple program.
2825 if test "$cross_compiling" != yes; then
2826 if { ac_try='./$ac_file'
2827 { (case "(($ac_try" in
2828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2829 *) ac_try_echo=$ac_try;;
2831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2832 (eval "$ac_try") 2>&5
2834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2835 (exit $ac_status); }; }; then
2838 if test "$cross_compiling" = maybe; then
2841 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2842 If you meant to cross compile, use \`--host'.
2843 See \`config.log' for more details." >&5
2844 echo "$as_me: error: cannot run C compiled programs.
2845 If you meant to cross compile, use \`--host'.
2846 See \`config.log' for more details." >&2;}
2847 { (exit 1); exit 1; }; }
2851 { echo "$as_me:$LINENO: result: yes" >&5
2852 echo "${ECHO_T}yes" >&6; }
2854 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2855 ac_clean_files=$ac_clean_files_save
2856 # Check that the compiler produces executables we can run. If not, either
2857 # the compiler is broken, or we cross compile.
2858 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2859 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2860 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2861 echo "${ECHO_T}$cross_compiling" >&6; }
2863 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2864 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2865 if { (ac_try="$ac_link"
2867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2868 *) ac_try_echo=$ac_try;;
2870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2871 (eval "$ac_link") 2>&5
2873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874 (exit $ac_status); }; then
2875 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2876 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2877 # work properly (i.e., refer to `conftest.exe'), while it won't with
2879 for ac_file in conftest.exe conftest conftest.*; do
2880 test -f "$ac_file" || continue
2882 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2883 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2889 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2890 See \`config.log' for more details." >&5
2891 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2892 See \`config.log' for more details." >&2;}
2893 { (exit 1); exit 1; }; }
2896 rm -f conftest$ac_cv_exeext
2897 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2898 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2900 rm -f conftest.$ac_ext
2901 EXEEXT=$ac_cv_exeext
2903 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2904 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2905 if test "${ac_cv_objext+set}" = set; then
2906 echo $ECHO_N "(cached) $ECHO_C" >&6
2908 cat >conftest.$ac_ext <<_ACEOF
2911 cat confdefs.h >>conftest.$ac_ext
2912 cat >>conftest.$ac_ext <<_ACEOF
2913 /* end confdefs.h. */
2923 rm -f conftest.o conftest.obj
2924 if { (ac_try="$ac_compile"
2926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2927 *) ac_try_echo=$ac_try;;
2929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2930 (eval "$ac_compile") 2>&5
2932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933 (exit $ac_status); }; then
2934 for ac_file in conftest.o conftest.obj conftest.*; do
2935 test -f "$ac_file" || continue;
2937 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2938 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2943 echo "$as_me: failed program was:" >&5
2944 sed 's/^/| /' conftest.$ac_ext >&5
2946 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2947 See \`config.log' for more details." >&5
2948 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2949 See \`config.log' for more details." >&2;}
2950 { (exit 1); exit 1; }; }
2953 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2955 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2956 echo "${ECHO_T}$ac_cv_objext" >&6; }
2957 OBJEXT=$ac_cv_objext
2959 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2960 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2961 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2962 echo $ECHO_N "(cached) $ECHO_C" >&6
2964 cat >conftest.$ac_ext <<_ACEOF
2967 cat confdefs.h >>conftest.$ac_ext
2968 cat >>conftest.$ac_ext <<_ACEOF
2969 /* end confdefs.h. */
2982 rm -f conftest.$ac_objext
2983 if { (ac_try="$ac_compile"
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_compile") 2>conftest.er1
2991 grep -v '^ *+' conftest.er1 >conftest.err
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2997 { (case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_try") 2>&5
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }; } &&
3006 { ac_try='test -s conftest.$ac_objext'
3007 { (case "(($ac_try" in
3008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009 *) ac_try_echo=$ac_try;;
3011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3012 (eval "$ac_try") 2>&5
3014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3015 (exit $ac_status); }; }; then
3018 echo "$as_me: failed program was:" >&5
3019 sed 's/^/| /' conftest.$ac_ext >&5
3024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3028 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3029 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3030 GCC=`test $ac_compiler_gnu = yes && echo yes`
3031 ac_test_CFLAGS=${CFLAGS+set}
3032 ac_save_CFLAGS=$CFLAGS
3033 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3034 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3035 if test "${ac_cv_prog_cc_g+set}" = set; then
3036 echo $ECHO_N "(cached) $ECHO_C" >&6
3038 ac_save_c_werror_flag=$ac_c_werror_flag
3039 ac_c_werror_flag=yes
3042 cat >conftest.$ac_ext <<_ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3057 rm -f conftest.$ac_objext
3058 if { (ac_try="$ac_compile"
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3064 (eval "$ac_compile") 2>conftest.er1
3066 grep -v '^ *+' conftest.er1 >conftest.err
3068 cat conftest.err >&5
3069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3070 (exit $ac_status); } &&
3071 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3072 { (case "(($ac_try" in
3073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3074 *) ac_try_echo=$ac_try;;
3076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3077 (eval "$ac_try") 2>&5
3079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3080 (exit $ac_status); }; } &&
3081 { ac_try='test -s conftest.$ac_objext'
3082 { (case "(($ac_try" in
3083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3084 *) ac_try_echo=$ac_try;;
3086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3087 (eval "$ac_try") 2>&5
3089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3090 (exit $ac_status); }; }; then
3093 echo "$as_me: failed program was:" >&5
3094 sed 's/^/| /' conftest.$ac_ext >&5
3097 cat >conftest.$ac_ext <<_ACEOF
3100 cat confdefs.h >>conftest.$ac_ext
3101 cat >>conftest.$ac_ext <<_ACEOF
3102 /* end confdefs.h. */
3112 rm -f conftest.$ac_objext
3113 if { (ac_try="$ac_compile"
3115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3116 *) ac_try_echo=$ac_try;;
3118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3119 (eval "$ac_compile") 2>conftest.er1
3121 grep -v '^ *+' conftest.er1 >conftest.err
3123 cat conftest.err >&5
3124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3125 (exit $ac_status); } &&
3126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3127 { (case "(($ac_try" in
3128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3129 *) ac_try_echo=$ac_try;;
3131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3132 (eval "$ac_try") 2>&5
3134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3135 (exit $ac_status); }; } &&
3136 { ac_try='test -s conftest.$ac_objext'
3137 { (case "(($ac_try" in
3138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3139 *) ac_try_echo=$ac_try;;
3141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3142 (eval "$ac_try") 2>&5
3144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3145 (exit $ac_status); }; }; then
3148 echo "$as_me: failed program was:" >&5
3149 sed 's/^/| /' conftest.$ac_ext >&5
3151 ac_c_werror_flag=$ac_save_c_werror_flag
3153 cat >conftest.$ac_ext <<_ACEOF
3156 cat confdefs.h >>conftest.$ac_ext
3157 cat >>conftest.$ac_ext <<_ACEOF
3158 /* end confdefs.h. */
3168 rm -f conftest.$ac_objext
3169 if { (ac_try="$ac_compile"
3171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3172 *) ac_try_echo=$ac_try;;
3174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3175 (eval "$ac_compile") 2>conftest.er1
3177 grep -v '^ *+' conftest.er1 >conftest.err
3179 cat conftest.err >&5
3180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3181 (exit $ac_status); } &&
3182 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3183 { (case "(($ac_try" in
3184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3185 *) ac_try_echo=$ac_try;;
3187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3188 (eval "$ac_try") 2>&5
3190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3191 (exit $ac_status); }; } &&
3192 { ac_try='test -s conftest.$ac_objext'
3193 { (case "(($ac_try" in
3194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_try") 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }; }; then
3204 echo "$as_me: failed program was:" >&5
3205 sed 's/^/| /' conftest.$ac_ext >&5
3210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3217 ac_c_werror_flag=$ac_save_c_werror_flag
3219 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3220 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3221 if test "$ac_test_CFLAGS" = set; then
3222 CFLAGS=$ac_save_CFLAGS
3223 elif test $ac_cv_prog_cc_g = yes; then
3224 if test "$GCC" = yes; then
3230 if test "$GCC" = yes; then
3236 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3237 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3238 if test "${ac_cv_prog_cc_c89+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 ac_cv_prog_cc_c89=no
3243 cat >conftest.$ac_ext <<_ACEOF
3246 cat confdefs.h >>conftest.$ac_ext
3247 cat >>conftest.$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3251 #include <sys/types.h>
3252 #include <sys/stat.h>
3253 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3254 struct buf { int x; };
3255 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3256 static char *e (p, i)
3262 static char *f (char * (*g) (char **, int), char **p, ...)
3267 s = g (p, va_arg (v,int));
3272 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3273 function prototypes and stuff, but not '\xHH' hex character constants.
3274 These don't provoke an error unfortunately, instead are silently treated
3275 as 'x'. The following induces an error, until -std is added to get
3276 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3277 array size at least. It's necessary to write '\x00'==0 to get something
3278 that's true only with -std. */
3279 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3281 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3282 inside strings and character constants. */
3284 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3286 int test (int i, double x);
3287 struct s1 {int (*f) (int a);};
3288 struct s2 {int (*f) (double a);};
3289 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3295 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3300 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3301 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3303 CC="$ac_save_CC $ac_arg"
3304 rm -f conftest.$ac_objext
3305 if { (ac_try="$ac_compile"
3307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3308 *) ac_try_echo=$ac_try;;
3310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3311 (eval "$ac_compile") 2>conftest.er1
3313 grep -v '^ *+' conftest.er1 >conftest.err
3315 cat conftest.err >&5
3316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317 (exit $ac_status); } &&
3318 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3319 { (case "(($ac_try" in
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_try") 2>&5
3326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3327 (exit $ac_status); }; } &&
3328 { ac_try='test -s conftest.$ac_objext'
3329 { (case "(($ac_try" in
3330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3331 *) ac_try_echo=$ac_try;;
3333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3334 (eval "$ac_try") 2>&5
3336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3337 (exit $ac_status); }; }; then
3338 ac_cv_prog_cc_c89=$ac_arg
3340 echo "$as_me: failed program was:" >&5
3341 sed 's/^/| /' conftest.$ac_ext >&5
3346 rm -f core conftest.err conftest.$ac_objext
3347 test "x$ac_cv_prog_cc_c89" != "xno" && break
3349 rm -f conftest.$ac_ext
3354 case "x$ac_cv_prog_cc_c89" in
3356 { echo "$as_me:$LINENO: result: none needed" >&5
3357 echo "${ECHO_T}none needed" >&6; } ;;
3359 { echo "$as_me:$LINENO: result: unsupported" >&5
3360 echo "${ECHO_T}unsupported" >&6; } ;;
3362 CC="$CC $ac_cv_prog_cc_c89"
3363 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3364 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3369 ac_cpp='$CPP $CPPFLAGS'
3370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3376 ac_cpp='$CPP $CPPFLAGS'
3377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3380 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3381 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3382 # On Suns, sometimes $CPP names a directory.
3383 if test -n "$CPP" && test -d "$CPP"; then
3386 if test -z "$CPP"; then
3387 if test "${ac_cv_prog_CPP+set}" = set; then
3388 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 # Double quotes because CPP needs to be expanded
3391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3394 for ac_c_preproc_warn_flag in '' yes
3396 # Use a header file that comes with gcc, so configuring glibc
3397 # with a fresh cross-compiler works.
3398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3399 # <limits.h> exists even on freestanding compilers.
3400 # On the NeXT, cc -E runs the code through the compiler's parser,
3401 # not just through cpp. "Syntax error" is here to catch this case.
3402 cat >conftest.$ac_ext <<_ACEOF
3405 cat confdefs.h >>conftest.$ac_ext
3406 cat >>conftest.$ac_ext <<_ACEOF
3407 /* end confdefs.h. */
3409 # include <limits.h>
3411 # include <assert.h>
3415 if { (ac_try="$ac_cpp conftest.$ac_ext"
3417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3418 *) ac_try_echo=$ac_try;;
3420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3423 grep -v '^ *+' conftest.er1 >conftest.err
3425 cat conftest.err >&5
3426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3427 (exit $ac_status); } >/dev/null; then
3428 if test -s conftest.err; then
3429 ac_cpp_err=$ac_c_preproc_warn_flag
3430 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3437 if test -z "$ac_cpp_err"; then
3440 echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3443 # Broken: fails on valid input.
3447 rm -f conftest.err conftest.$ac_ext
3449 # OK, works on sane cases. Now check whether nonexistent headers
3450 # can be detected and how.
3451 cat >conftest.$ac_ext <<_ACEOF
3454 cat confdefs.h >>conftest.$ac_ext
3455 cat >>conftest.$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3457 #include <ac_nonexistent.h>
3459 if { (ac_try="$ac_cpp conftest.$ac_ext"
3461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3462 *) ac_try_echo=$ac_try;;
3464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3465 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3467 grep -v '^ *+' conftest.er1 >conftest.err
3469 cat conftest.err >&5
3470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3471 (exit $ac_status); } >/dev/null; then
3472 if test -s conftest.err; then
3473 ac_cpp_err=$ac_c_preproc_warn_flag
3474 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3481 if test -z "$ac_cpp_err"; then
3482 # Broken: success on invalid input.
3485 echo "$as_me: failed program was:" >&5
3486 sed 's/^/| /' conftest.$ac_ext >&5
3488 # Passes both tests.
3493 rm -f conftest.err conftest.$ac_ext
3496 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3497 rm -f conftest.err conftest.$ac_ext
3498 if $ac_preproc_ok; then
3510 { echo "$as_me:$LINENO: result: $CPP" >&5
3511 echo "${ECHO_T}$CPP" >&6; }
3513 for ac_c_preproc_warn_flag in '' yes
3515 # Use a header file that comes with gcc, so configuring glibc
3516 # with a fresh cross-compiler works.
3517 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3518 # <limits.h> exists even on freestanding compilers.
3519 # On the NeXT, cc -E runs the code through the compiler's parser,
3520 # not just through cpp. "Syntax error" is here to catch this case.
3521 cat >conftest.$ac_ext <<_ACEOF
3524 cat confdefs.h >>conftest.$ac_ext
3525 cat >>conftest.$ac_ext <<_ACEOF
3526 /* end confdefs.h. */
3528 # include <limits.h>
3530 # include <assert.h>
3534 if { (ac_try="$ac_cpp conftest.$ac_ext"
3536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3537 *) ac_try_echo=$ac_try;;
3539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3540 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3542 grep -v '^ *+' conftest.er1 >conftest.err
3544 cat conftest.err >&5
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); } >/dev/null; then
3547 if test -s conftest.err; then
3548 ac_cpp_err=$ac_c_preproc_warn_flag
3549 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3556 if test -z "$ac_cpp_err"; then
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3562 # Broken: fails on valid input.
3566 rm -f conftest.err conftest.$ac_ext
3568 # OK, works on sane cases. Now check whether nonexistent headers
3569 # can be detected and how.
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3576 #include <ac_nonexistent.h>
3578 if { (ac_try="$ac_cpp conftest.$ac_ext"
3580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3581 *) ac_try_echo=$ac_try;;
3583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3584 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3586 grep -v '^ *+' conftest.er1 >conftest.err
3588 cat conftest.err >&5
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); } >/dev/null; then
3591 if test -s conftest.err; then
3592 ac_cpp_err=$ac_c_preproc_warn_flag
3593 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3600 if test -z "$ac_cpp_err"; then
3601 # Broken: success on invalid input.
3604 echo "$as_me: failed program was:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 # Passes both tests.
3612 rm -f conftest.err conftest.$ac_ext
3615 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3616 rm -f conftest.err conftest.$ac_ext
3617 if $ac_preproc_ok; then
3620 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3621 See \`config.log' for more details." >&5
3622 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3623 See \`config.log' for more details." >&2;}
3624 { (exit 1); exit 1; }; }
3628 ac_cpp='$CPP $CPPFLAGS'
3629 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3630 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3631 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3634 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3635 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3636 if test "${ac_cv_path_GREP+set}" = set; then
3637 echo $ECHO_N "(cached) $ECHO_C" >&6
3639 # Extract the first word of "grep ggrep" to use in msg output
3640 if test -z "$GREP"; then
3641 set dummy grep ggrep; ac_prog_name=$2
3642 if test "${ac_cv_path_GREP+set}" = set; then
3643 echo $ECHO_N "(cached) $ECHO_C" >&6
3645 ac_path_GREP_found=false
3646 # Loop through the user's path and test for each of PROGNAME-LIST
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3651 test -z "$as_dir" && as_dir=.
3652 for ac_prog in grep ggrep; do
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3655 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3656 # Check for GNU ac_path_GREP and select it if it is found.
3657 # Check for GNU $ac_path_GREP
3658 case `"$ac_path_GREP" --version 2>&1` in
3660 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3663 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3666 cat "conftest.in" "conftest.in" >"conftest.tmp"
3667 mv "conftest.tmp" "conftest.in"
3668 cp "conftest.in" "conftest.nl"
3669 echo 'GREP' >> "conftest.nl"
3670 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3671 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3672 ac_count=`expr $ac_count + 1`
3673 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3674 # Best one so far, save it but keep looking for a better one
3675 ac_cv_path_GREP="$ac_path_GREP"
3676 ac_path_GREP_max=$ac_count
3678 # 10*(2^10) chars as input seems more than enough
3679 test $ac_count -gt 10 && break
3681 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3685 $ac_path_GREP_found && break 3
3695 GREP="$ac_cv_path_GREP"
3696 if test -z "$GREP"; then
3697 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3698 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3699 { (exit 1); exit 1; }; }
3703 ac_cv_path_GREP=$GREP
3708 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3709 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3710 GREP="$ac_cv_path_GREP"
3713 { echo "$as_me:$LINENO: checking for egrep" >&5
3714 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3715 if test "${ac_cv_path_EGREP+set}" = set; then
3716 echo $ECHO_N "(cached) $ECHO_C" >&6
3718 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3719 then ac_cv_path_EGREP="$GREP -E"
3721 # Extract the first word of "egrep" to use in msg output
3722 if test -z "$EGREP"; then
3723 set dummy egrep; ac_prog_name=$2
3724 if test "${ac_cv_path_EGREP+set}" = set; then
3725 echo $ECHO_N "(cached) $ECHO_C" >&6
3727 ac_path_EGREP_found=false
3728 # Loop through the user's path and test for each of PROGNAME-LIST
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3730 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3733 test -z "$as_dir" && as_dir=.
3734 for ac_prog in egrep; do
3735 for ac_exec_ext in '' $ac_executable_extensions; do
3736 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3737 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3738 # Check for GNU ac_path_EGREP and select it if it is found.
3739 # Check for GNU $ac_path_EGREP
3740 case `"$ac_path_EGREP" --version 2>&1` in
3742 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3745 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3748 cat "conftest.in" "conftest.in" >"conftest.tmp"
3749 mv "conftest.tmp" "conftest.in"
3750 cp "conftest.in" "conftest.nl"
3751 echo 'EGREP' >> "conftest.nl"
3752 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3753 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3754 ac_count=`expr $ac_count + 1`
3755 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3756 # Best one so far, save it but keep looking for a better one
3757 ac_cv_path_EGREP="$ac_path_EGREP"
3758 ac_path_EGREP_max=$ac_count
3760 # 10*(2^10) chars as input seems more than enough
3761 test $ac_count -gt 10 && break
3763 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3767 $ac_path_EGREP_found && break 3
3777 EGREP="$ac_cv_path_EGREP"
3778 if test -z "$EGREP"; then
3779 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3780 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3781 { (exit 1); exit 1; }; }
3785 ac_cv_path_EGREP=$EGREP
3791 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3792 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3793 EGREP="$ac_cv_path_EGREP"
3796 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3797 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3798 if test "${ac_cv_header_stdc+set}" = set; then
3799 echo $ECHO_N "(cached) $ECHO_C" >&6
3801 cat >conftest.$ac_ext <<_ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3820 rm -f conftest.$ac_objext
3821 if { (ac_try="$ac_compile"
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3827 (eval "$ac_compile") 2>conftest.er1
3829 grep -v '^ *+' conftest.er1 >conftest.err
3831 cat conftest.err >&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); } &&
3834 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3835 { (case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3840 (eval "$ac_try") 2>&5
3842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3843 (exit $ac_status); }; } &&
3844 { ac_try='test -s conftest.$ac_objext'
3845 { (case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3850 (eval "$ac_try") 2>&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); }; }; then
3854 ac_cv_header_stdc=yes
3856 echo "$as_me: failed program was:" >&5
3857 sed 's/^/| /' conftest.$ac_ext >&5
3859 ac_cv_header_stdc=no
3862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 if test $ac_cv_header_stdc = yes; then
3865 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3866 cat >conftest.$ac_ext <<_ACEOF
3869 cat confdefs.h >>conftest.$ac_ext
3870 cat >>conftest.$ac_ext <<_ACEOF
3871 /* end confdefs.h. */
3875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3876 $EGREP "memchr" >/dev/null 2>&1; then
3879 ac_cv_header_stdc=no
3885 if test $ac_cv_header_stdc = yes; then
3886 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3887 cat >conftest.$ac_ext <<_ACEOF
3890 cat confdefs.h >>conftest.$ac_ext
3891 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */
3896 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3897 $EGREP "free" >/dev/null 2>&1; then
3900 ac_cv_header_stdc=no
3906 if test $ac_cv_header_stdc = yes; then
3907 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3908 if test "$cross_compiling" = yes; then
3911 cat >conftest.$ac_ext <<_ACEOF
3914 cat confdefs.h >>conftest.$ac_ext
3915 cat >>conftest.$ac_ext <<_ACEOF
3916 /* end confdefs.h. */
3919 #if ((' ' & 0x0FF) == 0x020)
3920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3923 # define ISLOWER(c) \
3924 (('a' <= (c) && (c) <= 'i') \
3925 || ('j' <= (c) && (c) <= 'r') \
3926 || ('s' <= (c) && (c) <= 'z'))
3927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3935 for (i = 0; i < 256; i++)
3936 if (XOR (islower (i), ISLOWER (i))
3937 || toupper (i) != TOUPPER (i))
3942 rm -f conftest$ac_exeext
3943 if { (ac_try="$ac_link"
3945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3946 *) ac_try_echo=$ac_try;;
3948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3949 (eval "$ac_link") 2>&5
3951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3952 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3953 { (case "(($ac_try" in
3954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3955 *) ac_try_echo=$ac_try;;
3957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3958 (eval "$ac_try") 2>&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; }; then
3964 echo "$as_me: program exited with status $ac_status" >&5
3965 echo "$as_me: failed program was:" >&5
3966 sed 's/^/| /' conftest.$ac_ext >&5
3969 ac_cv_header_stdc=no
3971 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3977 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3978 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3979 if test $ac_cv_header_stdc = yes; then
3981 cat >>confdefs.h <<\_ACEOF
3982 #define STDC_HEADERS 1
3987 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3997 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3998 inttypes.h stdint.h unistd.h
4000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4001 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4002 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4003 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4012 $ac_includes_default
4014 #include <$ac_header>
4016 rm -f conftest.$ac_objext
4017 if { (ac_try="$ac_compile"
4019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4020 *) ac_try_echo=$ac_try;;
4022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4023 (eval "$ac_compile") 2>conftest.er1
4025 grep -v '^ *+' conftest.er1 >conftest.err
4027 cat conftest.err >&5
4028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4029 (exit $ac_status); } &&
4030 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4031 { (case "(($ac_try" in
4032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4033 *) ac_try_echo=$ac_try;;
4035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4036 (eval "$ac_try") 2>&5
4038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4039 (exit $ac_status); }; } &&
4040 { ac_try='test -s conftest.$ac_objext'
4041 { (case "(($ac_try" in
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_try") 2>&5
4048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4049 (exit $ac_status); }; }; then
4050 eval "$as_ac_Header=yes"
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4055 eval "$as_ac_Header=no"
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4060 ac_res=`eval echo '${'$as_ac_Header'}'`
4061 { echo "$as_me:$LINENO: result: $ac_res" >&5
4062 echo "${ECHO_T}$ac_res" >&6; }
4063 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4064 cat >>confdefs.h <<_ACEOF
4065 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4073 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4074 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4075 if test "${ac_cv_c_bigendian+set}" = set; then
4076 echo $ECHO_N "(cached) $ECHO_C" >&6
4078 # See if sys/param.h defines the BYTE_ORDER macro.
4079 cat >conftest.$ac_ext <<_ACEOF
4082 cat confdefs.h >>conftest.$ac_ext
4083 cat >>conftest.$ac_ext <<_ACEOF
4084 /* end confdefs.h. */
4085 #include <sys/types.h>
4086 #include <sys/param.h>
4091 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4099 rm -f conftest.$ac_objext
4100 if { (ac_try="$ac_compile"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_compile") 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4112 (exit $ac_status); } &&
4113 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4114 { (case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_try") 2>&5
4121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4122 (exit $ac_status); }; } &&
4123 { ac_try='test -s conftest.$ac_objext'
4124 { (case "(($ac_try" in
4125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4126 *) ac_try_echo=$ac_try;;
4128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4129 (eval "$ac_try") 2>&5
4131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4132 (exit $ac_status); }; }; then
4133 # It does; now see whether it defined to BIG_ENDIAN or not.
4134 cat >conftest.$ac_ext <<_ACEOF
4137 cat confdefs.h >>conftest.$ac_ext
4138 cat >>conftest.$ac_ext <<_ACEOF
4139 /* end confdefs.h. */
4140 #include <sys/types.h>
4141 #include <sys/param.h>
4146 #if BYTE_ORDER != BIG_ENDIAN
4154 rm -f conftest.$ac_objext
4155 if { (ac_try="$ac_compile"
4157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4158 *) ac_try_echo=$ac_try;;
4160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4161 (eval "$ac_compile") 2>conftest.er1
4163 grep -v '^ *+' conftest.er1 >conftest.err
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4169 { (case "(($ac_try" in
4170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4171 *) ac_try_echo=$ac_try;;
4173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4174 (eval "$ac_try") 2>&5
4176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4177 (exit $ac_status); }; } &&
4178 { ac_try='test -s conftest.$ac_objext'
4179 { (case "(($ac_try" in
4180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_try") 2>&5
4186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4187 (exit $ac_status); }; }; then
4188 ac_cv_c_bigendian=yes
4190 echo "$as_me: failed program was:" >&5
4191 sed 's/^/| /' conftest.$ac_ext >&5
4193 ac_cv_c_bigendian=no
4196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4198 echo "$as_me: failed program was:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 # It does not; compile a test program.
4202 if test "$cross_compiling" = yes; then
4203 # try to guess the endianness by grepping values into an object file
4204 ac_cv_c_bigendian=unknown
4205 cat >conftest.$ac_ext <<_ACEOF
4208 cat confdefs.h >>conftest.$ac_ext
4209 cat >>conftest.$ac_ext <<_ACEOF
4210 /* end confdefs.h. */
4211 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4212 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4213 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4214 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4215 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4216 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4220 _ascii (); _ebcdic ();
4225 rm -f conftest.$ac_objext
4226 if { (ac_try="$ac_compile"
4228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4229 *) ac_try_echo=$ac_try;;
4231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4232 (eval "$ac_compile") 2>conftest.er1
4234 grep -v '^ *+' conftest.er1 >conftest.err
4236 cat conftest.err >&5
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); } &&
4239 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4240 { (case "(($ac_try" in
4241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4242 *) ac_try_echo=$ac_try;;
4244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4245 (eval "$ac_try") 2>&5
4247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); }; } &&
4249 { ac_try='test -s conftest.$ac_objext'
4250 { (case "(($ac_try" in
4251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4252 *) ac_try_echo=$ac_try;;
4254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4255 (eval "$ac_try") 2>&5
4257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4258 (exit $ac_status); }; }; then
4259 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4260 ac_cv_c_bigendian=yes
4262 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4263 if test "$ac_cv_c_bigendian" = unknown; then
4264 ac_cv_c_bigendian=no
4266 # finding both strings is unlikely to happen, but who knows?
4267 ac_cv_c_bigendian=unknown
4271 echo "$as_me: failed program was:" >&5
4272 sed 's/^/| /' conftest.$ac_ext >&5
4277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4279 cat >conftest.$ac_ext <<_ACEOF
4282 cat confdefs.h >>conftest.$ac_ext
4283 cat >>conftest.$ac_ext <<_ACEOF
4284 /* end confdefs.h. */
4285 $ac_includes_default
4290 /* Are we little or big endian? From Harbison&Steele. */
4294 char c[sizeof (long int)];
4297 return u.c[sizeof (long int) - 1] == 1;
4303 rm -f conftest$ac_exeext
4304 if { (ac_try="$ac_link"
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4310 (eval "$ac_link") 2>&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4314 { (case "(($ac_try" in
4315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4316 *) ac_try_echo=$ac_try;;
4318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4319 (eval "$ac_try") 2>&5
4321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4322 (exit $ac_status); }; }; then
4323 ac_cv_c_bigendian=no
4325 echo "$as_me: program exited with status $ac_status" >&5
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4330 ac_cv_c_bigendian=yes
4332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4340 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4341 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4342 case $ac_cv_c_bigendian in
4350 { { echo "$as_me:$LINENO: error: unknown endianness
4351 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4352 echo "$as_me: error: unknown endianness
4353 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4354 { (exit 1); exit 1; }; } ;;
4358 if test "$cross_compiling" = yes; then
4359 LLVM_CROSS_COMPILING=1
4362 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4363 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4364 if test "${ac_cv_build_exeext+set}" = set; then
4365 echo $ECHO_N "(cached) $ECHO_C" >&6
4367 if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4368 ac_cv_build_exeext=.exe
4370 ac_build_prefix=${build_alias}-
4372 # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4373 set dummy ${ac_build_prefix}gcc; ac_word=$2
4374 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4376 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4379 if test -n "$BUILD_CC"; then
4380 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4389 ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 BUILD_CC=$ac_cv_prog_BUILD_CC
4400 if test -n "$BUILD_CC"; then
4401 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4402 echo "${ECHO_T}$BUILD_CC" >&6; }
4404 { echo "$as_me:$LINENO: result: no" >&5
4405 echo "${ECHO_T}no" >&6; }
4409 if test -z "$BUILD_CC"; then
4410 # Extract the first word of "gcc", so it can be a program name with args.
4411 set dummy gcc; ac_word=$2
4412 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4413 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4414 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4415 echo $ECHO_N "(cached) $ECHO_C" >&6
4417 if test -n "$BUILD_CC"; then
4418 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4424 test -z "$as_dir" && as_dir=.
4425 for ac_exec_ext in '' $ac_executable_extensions; do
4426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4427 ac_cv_prog_BUILD_CC="gcc"
4428 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4437 BUILD_CC=$ac_cv_prog_BUILD_CC
4438 if test -n "$BUILD_CC"; then
4439 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4440 echo "${ECHO_T}$BUILD_CC" >&6; }
4442 { echo "$as_me:$LINENO: result: no" >&5
4443 echo "${ECHO_T}no" >&6; }
4447 if test -z "$BUILD_CC"; then
4448 # Extract the first word of "cc", so it can be a program name with args.
4449 set dummy cc; ac_word=$2
4450 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4451 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4452 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 if test -n "$BUILD_CC"; then
4456 ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 test -z "$as_dir" && as_dir=.
4464 for ac_exec_ext in '' $ac_executable_extensions; do
4465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4466 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4467 ac_prog_rejected=yes
4470 ac_cv_prog_BUILD_CC="cc"
4471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4478 if test $ac_prog_rejected = yes; then
4479 # We found a bogon in the path, so make sure we never use it.
4480 set dummy $ac_cv_prog_BUILD_CC
4482 if test $# != 0; then
4483 # We chose a different compiler from the bogus one.
4484 # However, it has the same basename, so the bogon will be chosen
4485 # first if we set BUILD_CC to just the basename; use the full file name.
4487 ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4492 BUILD_CC=$ac_cv_prog_BUILD_CC
4493 if test -n "$BUILD_CC"; then
4494 { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4495 echo "${ECHO_T}$BUILD_CC" >&6; }
4497 { echo "$as_me:$LINENO: result: no" >&5
4498 echo "${ECHO_T}no" >&6; }
4504 test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4505 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4506 { (exit 1); exit 1; }; }
4507 ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4509 echo 'int main () { return 0; }' > conftest.$ac_ext
4511 if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4512 (eval $ac_build_link) 2>&5
4514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4515 (exit $ac_status); }; then
4516 for file in conftest.*; do
4518 *.c | *.o | *.obj | *.dSYM) ;;
4519 *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4523 { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4524 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4525 { (exit 1); exit 1; }; }
4528 test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4533 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4534 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4535 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4536 ac_build_exeext=$BUILD_EXEEXT
4538 ac_build_prefix=${build_alias}-
4539 # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4540 set dummy ${ac_build_prefix}g++; ac_word=$2
4541 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4542 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4543 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4546 if test -n "$BUILD_CXX"; then
4547 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4553 test -z "$as_dir" && as_dir=.
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4556 ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4567 if test -n "$BUILD_CXX"; then
4568 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4569 echo "${ECHO_T}$BUILD_CXX" >&6; }
4571 { echo "$as_me:$LINENO: result: no" >&5
4572 echo "${ECHO_T}no" >&6; }
4576 if test -z "$BUILD_CXX"; then
4577 # Extract the first word of "g++", so it can be a program name with args.
4578 set dummy g++; ac_word=$2
4579 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4580 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4581 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4582 echo $ECHO_N "(cached) $ECHO_C" >&6
4584 if test -n "$BUILD_CXX"; then
4585 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4591 test -z "$as_dir" && as_dir=.
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4594 ac_cv_prog_BUILD_CXX="g++"
4595 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4604 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4605 if test -n "$BUILD_CXX"; then
4606 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4607 echo "${ECHO_T}$BUILD_CXX" >&6; }
4609 { echo "$as_me:$LINENO: result: no" >&5
4610 echo "${ECHO_T}no" >&6; }
4614 if test -z "$BUILD_CXX"; then
4615 # Extract the first word of "c++", so it can be a program name with args.
4616 set dummy c++; ac_word=$2
4617 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4618 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4619 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4622 if test -n "$BUILD_CXX"; then
4623 ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4630 test -z "$as_dir" && as_dir=.
4631 for ac_exec_ext in '' $ac_executable_extensions; do
4632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4633 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4634 ac_prog_rejected=yes
4637 ac_cv_prog_BUILD_CXX="c++"
4638 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4645 if test $ac_prog_rejected = yes; then
4646 # We found a bogon in the path, so make sure we never use it.
4647 set dummy $ac_cv_prog_BUILD_CXX
4649 if test $# != 0; then
4650 # We chose a different compiler from the bogus one.
4651 # However, it has the same basename, so the bogon will be chosen
4652 # first if we set BUILD_CXX to just the basename; use the full file name.
4654 ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4659 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4660 if test -n "$BUILD_CXX"; then
4661 { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4662 echo "${ECHO_T}$BUILD_CXX" >&6; }
4664 { echo "$as_me:$LINENO: result: no" >&5
4665 echo "${ECHO_T}no" >&6; }
4672 LLVM_CROSS_COMPILING=0
4676 if test -d "CVS" -o -d "${srcdir}/CVS" -o -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4687 # Check whether --enable-optimized was given.
4688 if test "${enable_optimized+set}" = set; then
4689 enableval=$enable_optimized;
4694 if test ${enableval} = "no" ; then
4698 ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4702 # Check whether --enable-profiling was given.
4703 if test "${enable_profiling+set}" = set; then
4704 enableval=$enable_profiling;
4709 if test ${enableval} = "no" ; then
4713 ENABLE_PROFILING=ENABLE_PROFILING=1
4717 # Check whether --enable-assertions was given.
4718 if test "${enable_assertions+set}" = set; then
4719 enableval=$enable_assertions;
4724 if test ${enableval} = "yes" ; then
4728 DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4732 # Check whether --enable-expensive-checks was given.
4733 if test "${enable_expensive_checks+set}" = set; then
4734 enableval=$enable_expensive_checks;
4739 if test ${enableval} = "yes" ; then
4740 ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4742 EXPENSIVE_CHECKS=yes
4745 ENABLE_EXPENSIVE_CHECKS=
4751 # Check whether --enable-debug-runtime was given.
4752 if test "${enable_debug_runtime+set}" = set; then
4753 enableval=$enable_debug_runtime;
4758 if test ${enableval} = "no" ; then
4762 DEBUG_RUNTIME=DEBUG_RUNTIME=1
4766 # Check whether --enable-debug-symbols was given.
4767 if test "${enable_debug_symbols+set}" = set; then
4768 enableval=$enable_debug_symbols;
4773 if test ${enableval} = "no" ; then
4777 DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4781 # Check whether --enable-jit was given.
4782 if test "${enable_jit+set}" = set; then
4783 enableval=$enable_jit;
4788 if test ${enableval} = "no"
4793 case "$llvm_cv_target_arch" in
4794 x86) TARGET_HAS_JIT=1
4796 Sparc) TARGET_HAS_JIT=0
4798 PowerPC) TARGET_HAS_JIT=1
4800 x86_64) TARGET_HAS_JIT=1
4802 Alpha) TARGET_HAS_JIT=1
4804 ARM) TARGET_HAS_JIT=1
4806 Mips) TARGET_HAS_JIT=0
4808 PIC16) TARGET_HAS_JIT=0
4810 XCore) TARGET_HAS_JIT=0
4812 MSP430) TARGET_HAS_JIT=0
4814 SystemZ) TARGET_HAS_JIT=0
4816 Blackfin) TARGET_HAS_JIT=0
4818 MBlaze) TARGET_HAS_JIT=0
4825 # Check whether --enable-doxygen was given.
4826 if test "${enable_doxygen+set}" = set; then
4827 enableval=$enable_doxygen;
4832 case "$enableval" in
4833 yes) ENABLE_DOXYGEN=1
4835 no) ENABLE_DOXYGEN=0
4837 default) ENABLE_DOXYGEN=0
4839 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4840 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4841 { (exit 1); exit 1; }; } ;;
4844 # Check whether --enable-threads was given.
4845 if test "${enable_threads+set}" = set; then
4846 enableval=$enable_threads;
4851 case "$enableval" in
4852 yes) ENABLE_THREADS=1
4854 no) ENABLE_THREADS=0
4856 default) ENABLE_THREADS=1
4858 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4859 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4860 { (exit 1); exit 1; }; } ;;
4863 cat >>confdefs.h <<_ACEOF
4864 #define ENABLE_THREADS $ENABLE_THREADS
4868 # Check whether --enable-pic was given.
4869 if test "${enable_pic+set}" = set; then
4870 enableval=$enable_pic;
4875 case "$enableval" in
4880 default) ENABLE_PIC=1
4882 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4883 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4884 { (exit 1); exit 1; }; } ;;
4887 cat >>confdefs.h <<_ACEOF
4888 #define ENABLE_PIC $ENABLE_PIC
4892 # Check whether --enable-shared was given.
4893 if test "${enable_shared+set}" = set; then
4894 enableval=$enable_shared;
4899 case "$enableval" in
4900 yes) ENABLE_SHARED=1
4904 default) ENABLE_SHARED=0
4906 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4907 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4908 { (exit 1); exit 1; }; } ;;
4912 # Check whether --enable-targets was given.
4913 if test "${enable_targets+set}" = set; then
4914 enableval=$enable_targets;
4919 if test "$enableval" = host-only ; then
4922 case "$enableval" in
4923 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU PIC16 XCore MSP430 SystemZ Blackfin CBackend MSIL CppBackend MBlaze" ;;
4924 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4926 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4927 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4928 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4929 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4930 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4931 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4932 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4933 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4934 pic16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4935 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4936 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4937 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4938 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4939 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4940 msil) TARGETS_TO_BUILD="MSIL $TARGETS_TO_BUILD" ;;
4941 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4942 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4943 host) case "$llvm_cv_target_arch" in
4944 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4945 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4946 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4947 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4948 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4949 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4950 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4951 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4952 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4953 PIC16) TARGETS_TO_BUILD="PIC16 $TARGETS_TO_BUILD" ;;
4954 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4955 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4956 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4957 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4958 *) { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4959 echo "$as_me: error: Can not set target to build" >&2;}
4960 { (exit 1); exit 1; }; } ;;
4962 *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4963 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4964 { (exit 1); exit 1; }; } ;;
4969 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
4972 # Determine whether we are building LLVM support for the native architecture.
4973 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
4974 for a_target in $TARGETS_TO_BUILD; do
4975 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
4976 LLVM_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target"
4978 cat >>confdefs.h <<_ACEOF
4979 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCHTARGET
4985 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
4986 # target feature def files.
4987 LLVM_ENUM_TARGETS=""
4988 LLVM_ENUM_ASM_PRINTERS=""
4989 LLVM_ENUM_ASM_PARSERS=""
4990 LLVM_ENUM_DISASSEMBLERS=""
4991 for target_to_build in $TARGETS_TO_BUILD; do
4992 LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
4993 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
4994 LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
4996 if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
4997 LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
4999 if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5000 LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5008 # Check whether --enable-cbe-printf-a was given.
5009 if test "${enable_cbe_printf_a+set}" = set; then
5010 enableval=$enable_cbe_printf_a;
5015 case "$enableval" in
5016 yes) ENABLE_CBE_PRINTF_A=1
5018 no) ENABLE_CBE_PRINTF_A=0
5020 default) ENABLE_CBE_PRINTF_A=1
5022 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5023 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5024 { (exit 1); exit 1; }; } ;;
5027 cat >>confdefs.h <<_ACEOF
5028 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5033 # Check whether --with-llvmgccdir was given.
5034 if test "${with_llvmgccdir+set}" = set; then
5035 withval=$with_llvmgccdir;
5041 default) WITH_LLVMGCCDIR=default ;;
5042 /* | [A-Za-z]:[\\/]*) WITH_LLVMGCCDIR=$withval ;;
5043 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5044 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5045 { (exit 1); exit 1; }; } ;;
5049 # Check whether --with-llvmgcc was given.
5050 if test "${with_llvmgcc+set}" = set; then
5051 withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5057 # Check whether --with-llvmgxx was given.
5058 if test "${with_llvmgxx+set}" = set; then
5059 withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5064 if test -n "$LLVMGCC"; then
5065 LLVMGCCCOMMAND="$LLVMGCC"
5068 if test -n "$LLVMGXX"; then
5069 LLVMGXXCOMMAND="$LLVMGXX"
5072 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5073 { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5074 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5075 { (exit 1); exit 1; }; };
5078 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5079 { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5080 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5081 { (exit 1); exit 1; }; };
5085 # Check whether --with-clang was given.
5086 if test "${with_clang+set}" = set; then
5087 withval=$with_clang;
5094 # Check whether --with-built-clang was given.
5095 if test "${with_built_clang+set}" = set; then
5096 withval=$with_built_clang;
5098 with_built_clang=check
5102 { echo "$as_me:$LINENO: checking clang compiler" >&5
5103 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5106 if test "$with_clang" != "default"; then
5107 WITH_CLANGPATH="$with_clang"
5108 if ! test -x "$WITH_CLANGPATH"; then
5109 { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5110 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5111 { (exit 1); exit 1; }; }
5113 elif test "$with_built_clang" = "yes"; then
5115 elif test "$with_built_clang" = "no"; then
5118 if test "$with_built_clang" != "check"; then
5119 { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5120 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5121 { (exit 1); exit 1; }; }
5124 if test -f ${srcdir}/tools/clang/README.txt; then
5129 if ! test -z "$WITH_CLANGPATH"; then
5130 { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5131 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5132 WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5133 elif test "$WITH_BUILT_CLANG" = "1"; then
5134 { echo "$as_me:$LINENO: result: built" >&5
5135 echo "${ECHO_T}built" >&6; }
5137 { echo "$as_me:$LINENO: result: none" >&5
5138 echo "${ECHO_T}none" >&6; }
5140 CLANGPATH=$WITH_CLANGPATH
5142 CLANGXXPATH=$WITH_CLANGXXPATH
5144 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5148 # Check whether --with-optimize-option was given.
5149 if test "${with_optimize_option+set}" = set; then
5150 withval=$with_optimize_option;
5155 { echo "$as_me:$LINENO: checking optimization flags" >&5
5156 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5159 case "$llvm_cv_os_type" in
5160 MingW) optimize_option=-O3 ;;
5161 *) optimize_option=-O2 ;;
5163 *) optimize_option="$withval" ;;
5165 OPTIMIZE_OPTION=$optimize_option
5167 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5168 echo "${ECHO_T}$optimize_option" >&6; }
5171 # Check whether --with-extra-options was given.
5172 if test "${with_extra_options+set}" = set; then
5173 withval=$with_extra_options;
5179 default) EXTRA_OPTIONS= ;;
5180 *) EXTRA_OPTIONS=$withval ;;
5182 EXTRA_OPTIONS=$EXTRA_OPTIONS
5185 # Check whether --enable-bindings was given.
5186 if test "${enable_bindings+set}" = set; then
5187 enableval=$enable_bindings;
5192 BINDINGS_TO_BUILD=""
5193 case "$enableval" in
5194 yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5195 all ) BINDINGS_TO_BUILD="ocaml" ;;
5196 none | no) BINDINGS_TO_BUILD="" ;;
5197 *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5198 case "$a_binding" in
5199 ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5200 *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5201 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5202 { (exit 1); exit 1; }; } ;;
5209 # Check whether --with-ocaml-libdir was given.
5210 if test "${with_ocaml_libdir+set}" = set; then
5211 withval=$with_ocaml_libdir;
5217 auto) with_ocaml_libdir="$withval" ;;
5218 /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5219 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5220 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5221 { (exit 1); exit 1; }; } ;;
5225 # Check whether --with-c-include-dirs was given.
5226 if test "${with_c_include_dirs+set}" = set; then
5227 withval=$with_c_include_dirs;
5233 cat >>confdefs.h <<_ACEOF
5234 #define C_INCLUDE_DIRS "$withval"
5239 # Check whether --with-cxx-include-root was given.
5240 if test "${with_cxx_include_root+set}" = set; then
5241 withval=$with_cxx_include_root;
5247 cat >>confdefs.h <<_ACEOF
5248 #define CXX_INCLUDE_ROOT "$withval"
5253 # Check whether --with-cxx-include-arch was given.
5254 if test "${with_cxx_include_arch+set}" = set; then
5255 withval=$with_cxx_include_arch;
5261 cat >>confdefs.h <<_ACEOF
5262 #define CXX_INCLUDE_ARCH "$withval"
5267 # Check whether --with-cxx-include-32bit-dir was given.
5268 if test "${with_cxx_include_32bit_dir+set}" = set; then
5269 withval=$with_cxx_include_32bit_dir;
5275 cat >>confdefs.h <<_ACEOF
5276 #define CXX_INCLUDE_32BIT_DIR "$withval"
5281 # Check whether --with-cxx-include-64bit-dir was given.
5282 if test "${with_cxx_include_64bit_dir+set}" = set; then
5283 withval=$with_cxx_include_64bit_dir;
5289 cat >>confdefs.h <<_ACEOF
5290 #define CXX_INCLUDE_64BIT_DIR "$withval"
5295 # Check whether --with-binutils-include was given.
5296 if test "${with_binutils_include+set}" = set; then
5297 withval=$with_binutils_include;
5303 default) WITH_BINUTILS_INCDIR=default ;;
5304 /* | [A-Za-z]:[\\/]*) WITH_BINUTILS_INCDIR=$withval ;;
5305 *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5306 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5307 { (exit 1); exit 1; }; } ;;
5309 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5310 BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5312 if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5313 echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5314 { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5315 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5316 { (exit 1); exit 1; }; };
5320 # Check whether --enable-libffi was given.
5321 if test "${enable_libffi+set}" = set; then
5322 enableval=$enable_libffi; case "$enableval" in
5323 yes) llvm_cv_enable_libffi="yes" ;;
5324 no) llvm_cv_enable_libffi="no" ;;
5325 *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5326 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5327 { (exit 1); exit 1; }; } ;;
5330 llvm_cv_enable_libffi=no
5334 if test "$llvm_cv_os_type" = "Win32" ; then
5340 # Check whether --enable-llvmc-dynamic was given.
5341 if test "${enable_llvmc_dynamic+set}" = set; then
5342 enableval=$enable_llvmc_dynamic;
5344 enableval=$llvmc_dynamic
5347 if test ${enableval} = "yes" && test "$ENABLE_PIC" -eq 1 ; then
5348 ENABLE_LLVMC_DYNAMIC=ENABLE_LLVMC_DYNAMIC=1
5351 ENABLE_LLVMC_DYNAMIC=
5355 # Check whether --enable-llvmc-dynamic-plugins was given.
5356 if test "${enable_llvmc_dynamic_plugins+set}" = set; then
5357 enableval=$enable_llvmc_dynamic_plugins;
5362 if test ${enableval} = "yes" ; then
5363 ENABLE_LLVMC_DYNAMIC_PLUGINS=ENABLE_LLVMC_DYNAMIC_PLUGINS=1
5366 ENABLE_LLVMC_DYNAMIC_PLUGINS=
5372 ac_cpp='$CPP $CPPFLAGS'
5373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5376 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5377 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5378 # On Suns, sometimes $CPP names a directory.
5379 if test -n "$CPP" && test -d "$CPP"; then
5382 if test -z "$CPP"; then
5383 if test "${ac_cv_prog_CPP+set}" = set; then
5384 echo $ECHO_N "(cached) $ECHO_C" >&6
5386 # Double quotes because CPP needs to be expanded
5387 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5390 for ac_c_preproc_warn_flag in '' yes
5392 # Use a header file that comes with gcc, so configuring glibc
5393 # with a fresh cross-compiler works.
5394 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5395 # <limits.h> exists even on freestanding compilers.
5396 # On the NeXT, cc -E runs the code through the compiler's parser,
5397 # not just through cpp. "Syntax error" is here to catch this case.
5398 cat >conftest.$ac_ext <<_ACEOF
5401 cat confdefs.h >>conftest.$ac_ext
5402 cat >>conftest.$ac_ext <<_ACEOF
5403 /* end confdefs.h. */
5405 # include <limits.h>
5407 # include <assert.h>
5411 if { (ac_try="$ac_cpp conftest.$ac_ext"
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5419 grep -v '^ *+' conftest.er1 >conftest.err
5421 cat conftest.err >&5
5422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5423 (exit $ac_status); } >/dev/null; then
5424 if test -s conftest.err; then
5425 ac_cpp_err=$ac_c_preproc_warn_flag
5426 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5433 if test -z "$ac_cpp_err"; then
5436 echo "$as_me: failed program was:" >&5
5437 sed 's/^/| /' conftest.$ac_ext >&5
5439 # Broken: fails on valid input.
5443 rm -f conftest.err conftest.$ac_ext
5445 # OK, works on sane cases. Now check whether nonexistent headers
5446 # can be detected and how.
5447 cat >conftest.$ac_ext <<_ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453 #include <ac_nonexistent.h>
5455 if { (ac_try="$ac_cpp conftest.$ac_ext"
5457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5458 *) ac_try_echo=$ac_try;;
5460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5463 grep -v '^ *+' conftest.er1 >conftest.err
5465 cat conftest.err >&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); } >/dev/null; then
5468 if test -s conftest.err; then
5469 ac_cpp_err=$ac_c_preproc_warn_flag
5470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5477 if test -z "$ac_cpp_err"; then
5478 # Broken: success on invalid input.
5481 echo "$as_me: failed program was:" >&5
5482 sed 's/^/| /' conftest.$ac_ext >&5
5484 # Passes both tests.
5489 rm -f conftest.err conftest.$ac_ext
5492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5493 rm -f conftest.err conftest.$ac_ext
5494 if $ac_preproc_ok; then
5506 { echo "$as_me:$LINENO: result: $CPP" >&5
5507 echo "${ECHO_T}$CPP" >&6; }
5509 for ac_c_preproc_warn_flag in '' yes
5511 # Use a header file that comes with gcc, so configuring glibc
5512 # with a fresh cross-compiler works.
5513 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5514 # <limits.h> exists even on freestanding compilers.
5515 # On the NeXT, cc -E runs the code through the compiler's parser,
5516 # not just through cpp. "Syntax error" is here to catch this case.
5517 cat >conftest.$ac_ext <<_ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5524 # include <limits.h>
5526 # include <assert.h>
5530 if { (ac_try="$ac_cpp conftest.$ac_ext"
5532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5533 *) ac_try_echo=$ac_try;;
5535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5538 grep -v '^ *+' conftest.er1 >conftest.err
5540 cat conftest.err >&5
5541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5542 (exit $ac_status); } >/dev/null; then
5543 if test -s conftest.err; then
5544 ac_cpp_err=$ac_c_preproc_warn_flag
5545 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5552 if test -z "$ac_cpp_err"; then
5555 echo "$as_me: failed program was:" >&5
5556 sed 's/^/| /' conftest.$ac_ext >&5
5558 # Broken: fails on valid input.
5562 rm -f conftest.err conftest.$ac_ext
5564 # OK, works on sane cases. Now check whether nonexistent headers
5565 # can be detected and how.
5566 cat >conftest.$ac_ext <<_ACEOF
5569 cat confdefs.h >>conftest.$ac_ext
5570 cat >>conftest.$ac_ext <<_ACEOF
5571 /* end confdefs.h. */
5572 #include <ac_nonexistent.h>
5574 if { (ac_try="$ac_cpp conftest.$ac_ext"
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5582 grep -v '^ *+' conftest.er1 >conftest.err
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } >/dev/null; then
5587 if test -s conftest.err; then
5588 ac_cpp_err=$ac_c_preproc_warn_flag
5589 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5596 if test -z "$ac_cpp_err"; then
5597 # Broken: success on invalid input.
5600 echo "$as_me: failed program was:" >&5
5601 sed 's/^/| /' conftest.$ac_ext >&5
5603 # Passes both tests.
5608 rm -f conftest.err conftest.$ac_ext
5611 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5612 rm -f conftest.err conftest.$ac_ext
5613 if $ac_preproc_ok; then
5616 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5617 See \`config.log' for more details." >&5
5618 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5619 See \`config.log' for more details." >&2;}
5620 { (exit 1); exit 1; }; }
5624 ac_cpp='$CPP $CPPFLAGS'
5625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5630 ac_cpp='$CPP $CPPFLAGS'
5631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5634 if test -n "$ac_tool_prefix"; then
5637 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5638 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5639 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5640 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5641 if test "${ac_cv_prog_CC+set}" = set; then
5642 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 if test -n "$CC"; then
5645 ac_cv_prog_CC="$CC" # Let the user override the test.
5647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5651 test -z "$as_dir" && as_dir=.
5652 for ac_exec_ext in '' $ac_executable_extensions; do
5653 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5654 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5655 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5665 if test -n "$CC"; then
5666 { echo "$as_me:$LINENO: result: $CC" >&5
5667 echo "${ECHO_T}$CC" >&6; }
5669 { echo "$as_me:$LINENO: result: no" >&5
5670 echo "${ECHO_T}no" >&6; }
5674 test -n "$CC" && break
5677 if test -z "$CC"; then
5681 # Extract the first word of "$ac_prog", so it can be a program name with args.
5682 set dummy $ac_prog; ac_word=$2
5683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5685 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5686 echo $ECHO_N "(cached) $ECHO_C" >&6
5688 if test -n "$ac_ct_CC"; then
5689 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5695 test -z "$as_dir" && as_dir=.
5696 for ac_exec_ext in '' $ac_executable_extensions; do
5697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5698 ac_cv_prog_ac_ct_CC="$ac_prog"
5699 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5708 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5709 if test -n "$ac_ct_CC"; then
5710 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5711 echo "${ECHO_T}$ac_ct_CC" >&6; }
5713 { echo "$as_me:$LINENO: result: no" >&5
5714 echo "${ECHO_T}no" >&6; }
5718 test -n "$ac_ct_CC" && break
5721 if test "x$ac_ct_CC" = x; then
5724 case $cross_compiling:$ac_tool_warned in
5726 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5727 whose name does not start with the host triplet. If you think this
5728 configuration is useful to you, please write to autoconf@gnu.org." >&5
5729 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5730 whose name does not start with the host triplet. If you think this
5731 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5732 ac_tool_warned=yes ;;
5739 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5740 See \`config.log' for more details." >&5
5741 echo "$as_me: error: no acceptable C compiler found in \$PATH
5742 See \`config.log' for more details." >&2;}
5743 { (exit 1); exit 1; }; }
5745 # Provide some information about the compiler.
5746 echo "$as_me:$LINENO: checking for C compiler version" >&5
5747 ac_compiler=`set X $ac_compile; echo $2`
5748 { (ac_try="$ac_compiler --version >&5"
5750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5751 *) ac_try_echo=$ac_try;;
5753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5754 (eval "$ac_compiler --version >&5") 2>&5
5756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5757 (exit $ac_status); }
5758 { (ac_try="$ac_compiler -v >&5"
5760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5761 *) ac_try_echo=$ac_try;;
5763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5764 (eval "$ac_compiler -v >&5") 2>&5
5766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5767 (exit $ac_status); }
5768 { (ac_try="$ac_compiler -V >&5"
5770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5771 *) ac_try_echo=$ac_try;;
5773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5774 (eval "$ac_compiler -V >&5") 2>&5
5776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5777 (exit $ac_status); }
5779 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5780 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5781 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5782 echo $ECHO_N "(cached) $ECHO_C" >&6
5784 cat >conftest.$ac_ext <<_ACEOF
5787 cat confdefs.h >>conftest.$ac_ext
5788 cat >>conftest.$ac_ext <<_ACEOF
5789 /* end confdefs.h. */
5802 rm -f conftest.$ac_objext
5803 if { (ac_try="$ac_compile"
5805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5806 *) ac_try_echo=$ac_try;;
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5811 grep -v '^ *+' conftest.er1 >conftest.err
5813 cat conftest.err >&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } &&
5816 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5817 { (case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_try") 2>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); }; } &&
5826 { ac_try='test -s conftest.$ac_objext'
5827 { (case "(($ac_try" in
5828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5829 *) ac_try_echo=$ac_try;;
5831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5832 (eval "$ac_try") 2>&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then
5838 echo "$as_me: failed program was:" >&5
5839 sed 's/^/| /' conftest.$ac_ext >&5
5844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5845 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5848 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5849 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5850 GCC=`test $ac_compiler_gnu = yes && echo yes`
5851 ac_test_CFLAGS=${CFLAGS+set}
5852 ac_save_CFLAGS=$CFLAGS
5853 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5854 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5855 if test "${ac_cv_prog_cc_g+set}" = set; then
5856 echo $ECHO_N "(cached) $ECHO_C" >&6
5858 ac_save_c_werror_flag=$ac_c_werror_flag
5859 ac_c_werror_flag=yes
5862 cat >conftest.$ac_ext <<_ACEOF
5865 cat confdefs.h >>conftest.$ac_ext
5866 cat >>conftest.$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5877 rm -f conftest.$ac_objext
5878 if { (ac_try="$ac_compile"
5880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5881 *) ac_try_echo=$ac_try;;
5883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5884 (eval "$ac_compile") 2>conftest.er1
5886 grep -v '^ *+' conftest.er1 >conftest.err
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } &&
5891 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5892 { (case "(($ac_try" in
5893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_try") 2>&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); }; } &&
5901 { ac_try='test -s conftest.$ac_objext'
5902 { (case "(($ac_try" in
5903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_try") 2>&5
5909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5910 (exit $ac_status); }; }; then
5913 echo "$as_me: failed program was:" >&5
5914 sed 's/^/| /' conftest.$ac_ext >&5
5917 cat >conftest.$ac_ext <<_ACEOF
5920 cat confdefs.h >>conftest.$ac_ext
5921 cat >>conftest.$ac_ext <<_ACEOF
5922 /* end confdefs.h. */
5932 rm -f conftest.$ac_objext
5933 if { (ac_try="$ac_compile"
5935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5936 *) ac_try_echo=$ac_try;;
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compile") 2>conftest.er1
5941 grep -v '^ *+' conftest.er1 >conftest.err
5943 cat conftest.err >&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } &&
5946 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5947 { (case "(($ac_try" in
5948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5949 *) ac_try_echo=$ac_try;;
5951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5952 (eval "$ac_try") 2>&5
5954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5955 (exit $ac_status); }; } &&
5956 { ac_try='test -s conftest.$ac_objext'
5957 { (case "(($ac_try" in
5958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5959 *) ac_try_echo=$ac_try;;
5961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5962 (eval "$ac_try") 2>&5
5964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5965 (exit $ac_status); }; }; then
5968 echo "$as_me: failed program was:" >&5
5969 sed 's/^/| /' conftest.$ac_ext >&5
5971 ac_c_werror_flag=$ac_save_c_werror_flag
5973 cat >conftest.$ac_ext <<_ACEOF
5976 cat confdefs.h >>conftest.$ac_ext
5977 cat >>conftest.$ac_ext <<_ACEOF
5978 /* end confdefs.h. */
5988 rm -f conftest.$ac_objext
5989 if { (ac_try="$ac_compile"
5991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5992 *) ac_try_echo=$ac_try;;
5994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5995 (eval "$ac_compile") 2>conftest.er1
5997 grep -v '^ *+' conftest.er1 >conftest.err
5999 cat conftest.err >&5
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } &&
6002 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6003 { (case "(($ac_try" in
6004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_try") 2>&5
6010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6011 (exit $ac_status); }; } &&
6012 { ac_try='test -s conftest.$ac_objext'
6013 { (case "(($ac_try" in
6014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_try") 2>&5
6020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6021 (exit $ac_status); }; }; then
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.$ac_ext >&5
6030 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 ac_c_werror_flag=$ac_save_c_werror_flag
6039 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6040 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6041 if test "$ac_test_CFLAGS" = set; then
6042 CFLAGS=$ac_save_CFLAGS
6043 elif test $ac_cv_prog_cc_g = yes; then
6044 if test "$GCC" = yes; then
6050 if test "$GCC" = yes; then
6056 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6057 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6058 if test "${ac_cv_prog_cc_c89+set}" = set; then
6059 echo $ECHO_N "(cached) $ECHO_C" >&6
6061 ac_cv_prog_cc_c89=no
6063 cat >conftest.$ac_ext <<_ACEOF
6066 cat confdefs.h >>conftest.$ac_ext
6067 cat >>conftest.$ac_ext <<_ACEOF
6068 /* end confdefs.h. */
6071 #include <sys/types.h>
6072 #include <sys/stat.h>
6073 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6074 struct buf { int x; };
6075 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6076 static char *e (p, i)
6082 static char *f (char * (*g) (char **, int), char **p, ...)
6087 s = g (p, va_arg (v,int));
6092 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6093 function prototypes and stuff, but not '\xHH' hex character constants.
6094 These don't provoke an error unfortunately, instead are silently treated
6095 as 'x'. The following induces an error, until -std is added to get
6096 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6097 array size at least. It's necessary to write '\x00'==0 to get something
6098 that's true only with -std. */
6099 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6101 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6102 inside strings and character constants. */
6104 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6106 int test (int i, double x);
6107 struct s1 {int (*f) (int a);};
6108 struct s2 {int (*f) (double a);};
6109 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6115 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6120 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6121 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6123 CC="$ac_save_CC $ac_arg"
6124 rm -f conftest.$ac_objext
6125 if { (ac_try="$ac_compile"
6127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6128 *) ac_try_echo=$ac_try;;
6130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6131 (eval "$ac_compile") 2>conftest.er1
6133 grep -v '^ *+' conftest.er1 >conftest.err
6135 cat conftest.err >&5
6136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6137 (exit $ac_status); } &&
6138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6139 { (case "(($ac_try" in
6140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6141 *) ac_try_echo=$ac_try;;
6143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6144 (eval "$ac_try") 2>&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); }; } &&
6148 { ac_try='test -s conftest.$ac_objext'
6149 { (case "(($ac_try" in
6150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6151 *) ac_try_echo=$ac_try;;
6153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6154 (eval "$ac_try") 2>&5
6156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6157 (exit $ac_status); }; }; then
6158 ac_cv_prog_cc_c89=$ac_arg
6160 echo "$as_me: failed program was:" >&5
6161 sed 's/^/| /' conftest.$ac_ext >&5
6166 rm -f core conftest.err conftest.$ac_objext
6167 test "x$ac_cv_prog_cc_c89" != "xno" && break
6169 rm -f conftest.$ac_ext
6174 case "x$ac_cv_prog_cc_c89" in
6176 { echo "$as_me:$LINENO: result: none needed" >&5
6177 echo "${ECHO_T}none needed" >&6; } ;;
6179 { echo "$as_me:$LINENO: result: unsupported" >&5
6180 echo "${ECHO_T}unsupported" >&6; } ;;
6182 CC="$CC $ac_cv_prog_cc_c89"
6183 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6184 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6189 ac_cpp='$CPP $CPPFLAGS'
6190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6195 ac_cpp='$CXXCPP $CPPFLAGS'
6196 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6197 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6198 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6199 if test -z "$CXX"; then
6200 if test -n "$CCC"; then
6203 if test -n "$ac_tool_prefix"; then
6206 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6207 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6210 if test "${ac_cv_prog_CXX+set}" = set; then
6211 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 if test -n "$CXX"; then
6214 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6220 test -z "$as_dir" && as_dir=.
6221 for ac_exec_ext in '' $ac_executable_extensions; do
6222 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6223 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6224 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6234 if test -n "$CXX"; then
6235 { echo "$as_me:$LINENO: result: $CXX" >&5
6236 echo "${ECHO_T}$CXX" >&6; }
6238 { echo "$as_me:$LINENO: result: no" >&5
6239 echo "${ECHO_T}no" >&6; }
6243 test -n "$CXX" && break
6246 if test -z "$CXX"; then
6250 # Extract the first word of "$ac_prog", so it can be a program name with args.
6251 set dummy $ac_prog; ac_word=$2
6252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6254 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 if test -n "$ac_ct_CXX"; then
6258 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir=.
6265 for ac_exec_ext in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_prog_ac_ct_CXX="$ac_prog"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6277 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6278 if test -n "$ac_ct_CXX"; then
6279 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6280 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6282 { echo "$as_me:$LINENO: result: no" >&5
6283 echo "${ECHO_T}no" >&6; }
6287 test -n "$ac_ct_CXX" && break
6290 if test "x$ac_ct_CXX" = x; then
6293 case $cross_compiling:$ac_tool_warned in
6295 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6296 whose name does not start with the host triplet. If you think this
6297 configuration is useful to you, please write to autoconf@gnu.org." >&5
6298 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6299 whose name does not start with the host triplet. If you think this
6300 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6301 ac_tool_warned=yes ;;
6309 # Provide some information about the compiler.
6310 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6311 ac_compiler=`set X $ac_compile; echo $2`
6312 { (ac_try="$ac_compiler --version >&5"
6314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6315 *) ac_try_echo=$ac_try;;
6317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6318 (eval "$ac_compiler --version >&5") 2>&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); }
6322 { (ac_try="$ac_compiler -v >&5"
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_compiler -v >&5") 2>&5
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }
6332 { (ac_try="$ac_compiler -V >&5"
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_compiler -V >&5") 2>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }
6343 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6344 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6345 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6346 echo $ECHO_N "(cached) $ECHO_C" >&6
6348 cat >conftest.$ac_ext <<_ACEOF
6351 cat confdefs.h >>conftest.$ac_ext
6352 cat >>conftest.$ac_ext <<_ACEOF
6353 /* end confdefs.h. */
6366 rm -f conftest.$ac_objext
6367 if { (ac_try="$ac_compile"
6369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6370 *) ac_try_echo=$ac_try;;
6372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6373 (eval "$ac_compile") 2>conftest.er1
6375 grep -v '^ *+' conftest.er1 >conftest.err
6377 cat conftest.err >&5
6378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379 (exit $ac_status); } &&
6380 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6381 { (case "(($ac_try" in
6382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6383 *) ac_try_echo=$ac_try;;
6385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6386 (eval "$ac_try") 2>&5
6388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6389 (exit $ac_status); }; } &&
6390 { ac_try='test -s conftest.$ac_objext'
6391 { (case "(($ac_try" in
6392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6393 *) ac_try_echo=$ac_try;;
6395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6396 (eval "$ac_try") 2>&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); }; }; then
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.$ac_ext >&5
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6412 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6413 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6414 GXX=`test $ac_compiler_gnu = yes && echo yes`
6415 ac_test_CXXFLAGS=${CXXFLAGS+set}
6416 ac_save_CXXFLAGS=$CXXFLAGS
6417 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6418 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6419 if test "${ac_cv_prog_cxx_g+set}" = set; then
6420 echo $ECHO_N "(cached) $ECHO_C" >&6
6422 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6423 ac_cxx_werror_flag=yes
6426 cat >conftest.$ac_ext <<_ACEOF
6429 cat confdefs.h >>conftest.$ac_ext
6430 cat >>conftest.$ac_ext <<_ACEOF
6431 /* end confdefs.h. */
6441 rm -f conftest.$ac_objext
6442 if { (ac_try="$ac_compile"
6444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6445 *) ac_try_echo=$ac_try;;
6447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6448 (eval "$ac_compile") 2>conftest.er1
6450 grep -v '^ *+' conftest.er1 >conftest.err
6452 cat conftest.err >&5
6453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6454 (exit $ac_status); } &&
6455 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6456 { (case "(($ac_try" in
6457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6458 *) ac_try_echo=$ac_try;;
6460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6461 (eval "$ac_try") 2>&5
6463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6464 (exit $ac_status); }; } &&
6465 { ac_try='test -s conftest.$ac_objext'
6466 { (case "(($ac_try" in
6467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6468 *) ac_try_echo=$ac_try;;
6470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6471 (eval "$ac_try") 2>&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); }; }; then
6475 ac_cv_prog_cxx_g=yes
6477 echo "$as_me: failed program was:" >&5
6478 sed 's/^/| /' conftest.$ac_ext >&5
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6496 rm -f conftest.$ac_objext
6497 if { (ac_try="$ac_compile"
6499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6500 *) ac_try_echo=$ac_try;;
6502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6503 (eval "$ac_compile") 2>conftest.er1
6505 grep -v '^ *+' conftest.er1 >conftest.err
6507 cat conftest.err >&5
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); } &&
6510 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6511 { (case "(($ac_try" in
6512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_try") 2>&5
6518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6519 (exit $ac_status); }; } &&
6520 { ac_try='test -s conftest.$ac_objext'
6521 { (case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_try") 2>&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); }; }; then
6532 echo "$as_me: failed program was:" >&5
6533 sed 's/^/| /' conftest.$ac_ext >&5
6535 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6537 cat >conftest.$ac_ext <<_ACEOF
6540 cat confdefs.h >>conftest.$ac_ext
6541 cat >>conftest.$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6552 rm -f conftest.$ac_objext
6553 if { (ac_try="$ac_compile"
6555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6561 grep -v '^ *+' conftest.er1 >conftest.err
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } &&
6566 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6567 { (case "(($ac_try" in
6568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6569 *) ac_try_echo=$ac_try;;
6571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6572 (eval "$ac_try") 2>&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); }; } &&
6576 { ac_try='test -s conftest.$ac_objext'
6577 { (case "(($ac_try" in
6578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6579 *) ac_try_echo=$ac_try;;
6581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6582 (eval "$ac_try") 2>&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); }; }; then
6586 ac_cv_prog_cxx_g=yes
6588 echo "$as_me: failed program was:" >&5
6589 sed 's/^/| /' conftest.$ac_ext >&5
6594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6601 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6603 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6604 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6605 if test "$ac_test_CXXFLAGS" = set; then
6606 CXXFLAGS=$ac_save_CXXFLAGS
6607 elif test $ac_cv_prog_cxx_g = yes; then
6608 if test "$GXX" = yes; then
6614 if test "$GXX" = yes; then
6621 ac_cpp='$CPP $CPPFLAGS'
6622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6627 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6628 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6629 if test "${lt_cv_path_NM+set}" = set; then
6630 echo $ECHO_N "(cached) $ECHO_C" >&6
6632 if test -n "$NM"; then
6633 # Let the user override the test.
6636 lt_nm_to_check="${ac_tool_prefix}nm"
6637 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6638 lt_nm_to_check="$lt_nm_to_check nm"
6640 for lt_tmp_nm in $lt_nm_to_check; do
6641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6642 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6644 test -z "$ac_dir" && ac_dir=.
6645 tmp_nm="$ac_dir/$lt_tmp_nm"
6646 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6647 # Check to see if the nm accepts a BSD-compat flag.
6648 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6649 # nm: unknown option "B" ignored
6650 # Tru64's nm complains that /dev/null is an invalid object file
6651 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6652 */dev/null* | *'Invalid file or object type'*)
6653 lt_cv_path_NM="$tmp_nm -B"
6657 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6659 lt_cv_path_NM="$tmp_nm -p"
6663 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6664 continue # so that we can try to find one that supports BSD flags
6673 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6676 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6677 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6682 { echo "$as_me:$LINENO: checking for GNU make" >&5
6683 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6684 if test "${llvm_cv_gnu_make_command+set}" = set; then
6685 echo $ECHO_N "(cached) $ECHO_C" >&6
6687 llvm_cv_gnu_make_command=''
6688 for a in "$MAKE" make gmake gnumake ; do
6689 if test -z "$a" ; then continue ; fi ;
6690 if ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6692 llvm_cv_gnu_make_command=$a ;
6697 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6698 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6699 if test "x$llvm_cv_gnu_make_command" != "x" ; then
6703 { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6704 echo "${ECHO_T}\"Not found\"" >&6; };
6708 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6709 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6711 if test "$LN_S" = "ln -s"; then
6712 { echo "$as_me:$LINENO: result: yes" >&5
6713 echo "${ECHO_T}yes" >&6; }
6715 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6716 echo "${ECHO_T}no, using $LN_S" >&6; }
6719 # Extract the first word of "cmp", so it can be a program name with args.
6720 set dummy cmp; ac_word=$2
6721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6723 if test "${ac_cv_path_CMP+set}" = set; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6728 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735 test -z "$as_dir" && as_dir=.
6736 for ac_exec_ext in '' $ac_executable_extensions; do
6737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6738 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6739 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6746 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6751 if test -n "$CMP"; then
6752 { echo "$as_me:$LINENO: result: $CMP" >&5
6753 echo "${ECHO_T}$CMP" >&6; }
6755 { echo "$as_me:$LINENO: result: no" >&5
6756 echo "${ECHO_T}no" >&6; }
6760 # Extract the first word of "cp", so it can be a program name with args.
6761 set dummy cp; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_path_CP+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6769 ac_cv_path_CP="$CP" # Let the user override the test with a path.
6772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6776 test -z "$as_dir" && as_dir=.
6777 for ac_exec_ext in '' $ac_executable_extensions; do
6778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6779 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6787 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6792 if test -n "$CP"; then
6793 { echo "$as_me:$LINENO: result: $CP" >&5
6794 echo "${ECHO_T}$CP" >&6; }
6796 { echo "$as_me:$LINENO: result: no" >&5
6797 echo "${ECHO_T}no" >&6; }
6801 # Extract the first word of "date", so it can be a program name with args.
6802 set dummy date; ac_word=$2
6803 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6804 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6805 if test "${ac_cv_path_DATE+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6817 test -z "$as_dir" && as_dir=.
6818 for ac_exec_ext in '' $ac_executable_extensions; do
6819 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6820 ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6828 test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6832 DATE=$ac_cv_path_DATE
6833 if test -n "$DATE"; then
6834 { echo "$as_me:$LINENO: result: $DATE" >&5
6835 echo "${ECHO_T}$DATE" >&6; }
6837 { echo "$as_me:$LINENO: result: no" >&5
6838 echo "${ECHO_T}no" >&6; }
6842 # Extract the first word of "find", so it can be a program name with args.
6843 set dummy find; ac_word=$2
6844 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6845 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6846 if test "${ac_cv_path_FIND+set}" = set; then
6847 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6858 test -z "$as_dir" && as_dir=.
6859 for ac_exec_ext in '' $ac_executable_extensions; do
6860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6861 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6862 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6869 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6873 FIND=$ac_cv_path_FIND
6874 if test -n "$FIND"; then
6875 { echo "$as_me:$LINENO: result: $FIND" >&5
6876 echo "${ECHO_T}$FIND" >&6; }
6878 { echo "$as_me:$LINENO: result: no" >&5
6879 echo "${ECHO_T}no" >&6; }
6883 # Extract the first word of "grep", so it can be a program name with args.
6884 set dummy grep; ac_word=$2
6885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6887 if test "${ac_cv_path_GREP+set}" = set; then
6888 echo $ECHO_N "(cached) $ECHO_C" >&6
6892 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6899 test -z "$as_dir" && as_dir=.
6900 for ac_exec_ext in '' $ac_executable_extensions; do
6901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6902 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6910 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6914 GREP=$ac_cv_path_GREP
6915 if test -n "$GREP"; then
6916 { echo "$as_me:$LINENO: result: $GREP" >&5
6917 echo "${ECHO_T}$GREP" >&6; }
6919 { echo "$as_me:$LINENO: result: no" >&5
6920 echo "${ECHO_T}no" >&6; }
6924 # Extract the first word of "mkdir", so it can be a program name with args.
6925 set dummy mkdir; ac_word=$2
6926 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6927 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6928 if test "${ac_cv_path_MKDIR+set}" = set; then
6929 echo $ECHO_N "(cached) $ECHO_C" >&6
6933 ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6940 test -z "$as_dir" && as_dir=.
6941 for ac_exec_ext in '' $ac_executable_extensions; do
6942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6943 ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6951 test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6955 MKDIR=$ac_cv_path_MKDIR
6956 if test -n "$MKDIR"; then
6957 { echo "$as_me:$LINENO: result: $MKDIR" >&5
6958 echo "${ECHO_T}$MKDIR" >&6; }
6960 { echo "$as_me:$LINENO: result: no" >&5
6961 echo "${ECHO_T}no" >&6; }
6965 # Extract the first word of "mv", so it can be a program name with args.
6966 set dummy mv; ac_word=$2
6967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6969 if test "${ac_cv_path_MV+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6974 ac_cv_path_MV="$MV" # Let the user override the test with a path.
6977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6981 test -z "$as_dir" && as_dir=.
6982 for ac_exec_ext in '' $ac_executable_extensions; do
6983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6984 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
6985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6992 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
6997 if test -n "$MV"; then
6998 { echo "$as_me:$LINENO: result: $MV" >&5
6999 echo "${ECHO_T}$MV" >&6; }
7001 { echo "$as_me:$LINENO: result: no" >&5
7002 echo "${ECHO_T}no" >&6; }
7006 if test -n "$ac_tool_prefix"; then
7007 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7008 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7009 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7010 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7011 if test "${ac_cv_prog_RANLIB+set}" = set; then
7012 echo $ECHO_N "(cached) $ECHO_C" >&6
7014 if test -n "$RANLIB"; then
7015 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7021 test -z "$as_dir" && as_dir=.
7022 for ac_exec_ext in '' $ac_executable_extensions; do
7023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7024 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7034 RANLIB=$ac_cv_prog_RANLIB
7035 if test -n "$RANLIB"; then
7036 { echo "$as_me:$LINENO: result: $RANLIB" >&5
7037 echo "${ECHO_T}$RANLIB" >&6; }
7039 { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7045 if test -z "$ac_cv_prog_RANLIB"; then
7046 ac_ct_RANLIB=$RANLIB
7047 # Extract the first word of "ranlib", so it can be a program name with args.
7048 set dummy ranlib; ac_word=$2
7049 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7051 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 if test -n "$ac_ct_RANLIB"; then
7055 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7061 test -z "$as_dir" && as_dir=.
7062 for ac_exec_ext in '' $ac_executable_extensions; do
7063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7064 ac_cv_prog_ac_ct_RANLIB="ranlib"
7065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7074 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7075 if test -n "$ac_ct_RANLIB"; then
7076 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7077 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7079 { echo "$as_me:$LINENO: result: no" >&5
7080 echo "${ECHO_T}no" >&6; }
7083 if test "x$ac_ct_RANLIB" = x; then
7086 case $cross_compiling:$ac_tool_warned in
7088 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7089 whose name does not start with the host triplet. If you think this
7090 configuration is useful to you, please write to autoconf@gnu.org." >&5
7091 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7092 whose name does not start with the host triplet. If you think this
7093 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7094 ac_tool_warned=yes ;;
7096 RANLIB=$ac_ct_RANLIB
7099 RANLIB="$ac_cv_prog_RANLIB"
7102 if test -n "$ac_tool_prefix"; then
7103 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7104 set dummy ${ac_tool_prefix}ar; ac_word=$2
7105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7107 if test "${ac_cv_prog_AR+set}" = set; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7110 if test -n "$AR"; then
7111 ac_cv_prog_AR="$AR" # Let the user override the test.
7113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 test -z "$as_dir" && as_dir=.
7118 for ac_exec_ext in '' $ac_executable_extensions; do
7119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7120 ac_cv_prog_AR="${ac_tool_prefix}ar"
7121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 if test -n "$AR"; then
7132 { echo "$as_me:$LINENO: result: $AR" >&5
7133 echo "${ECHO_T}$AR" >&6; }
7135 { echo "$as_me:$LINENO: result: no" >&5
7136 echo "${ECHO_T}no" >&6; }
7141 if test -z "$ac_cv_prog_AR"; then
7143 # Extract the first word of "ar", so it can be a program name with args.
7144 set dummy ar; ac_word=$2
7145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7147 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7148 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 if test -n "$ac_ct_AR"; then
7151 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7157 test -z "$as_dir" && as_dir=.
7158 for ac_exec_ext in '' $ac_executable_extensions; do
7159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7160 ac_cv_prog_ac_ct_AR="ar"
7161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7170 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7171 if test -n "$ac_ct_AR"; then
7172 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7173 echo "${ECHO_T}$ac_ct_AR" >&6; }
7175 { echo "$as_me:$LINENO: result: no" >&5
7176 echo "${ECHO_T}no" >&6; }
7179 if test "x$ac_ct_AR" = x; then
7182 case $cross_compiling:$ac_tool_warned in
7184 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7185 whose name does not start with the host triplet. If you think this
7186 configuration is useful to you, please write to autoconf@gnu.org." >&5
7187 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7188 whose name does not start with the host triplet. If you think this
7189 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7190 ac_tool_warned=yes ;;
7198 # Extract the first word of "rm", so it can be a program name with args.
7199 set dummy rm; ac_word=$2
7200 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7201 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7202 if test "${ac_cv_path_RM+set}" = set; then
7203 echo $ECHO_N "(cached) $ECHO_C" >&6
7207 ac_cv_path_RM="$RM" # Let the user override the test with a path.
7210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 test -z "$as_dir" && as_dir=.
7215 for ac_exec_ext in '' $ac_executable_extensions; do
7216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7217 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7225 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7230 if test -n "$RM"; then
7231 { echo "$as_me:$LINENO: result: $RM" >&5
7232 echo "${ECHO_T}$RM" >&6; }
7234 { echo "$as_me:$LINENO: result: no" >&5
7235 echo "${ECHO_T}no" >&6; }
7239 # Extract the first word of "sed", so it can be a program name with args.
7240 set dummy sed; ac_word=$2
7241 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7242 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7243 if test "${ac_cv_path_SED+set}" = set; then
7244 echo $ECHO_N "(cached) $ECHO_C" >&6
7248 ac_cv_path_SED="$SED" # Let the user override the test with a path.
7251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7255 test -z "$as_dir" && as_dir=.
7256 for ac_exec_ext in '' $ac_executable_extensions; do
7257 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7258 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7266 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7271 if test -n "$SED"; then
7272 { echo "$as_me:$LINENO: result: $SED" >&5
7273 echo "${ECHO_T}$SED" >&6; }
7275 { echo "$as_me:$LINENO: result: no" >&5
7276 echo "${ECHO_T}no" >&6; }
7280 # Extract the first word of "tar", so it can be a program name with args.
7281 set dummy tar; ac_word=$2
7282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7284 if test "${ac_cv_path_TAR+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7289 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 test -z "$as_dir" && as_dir=.
7297 for ac_exec_ext in '' $ac_executable_extensions; do
7298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7299 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7307 test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7312 if test -n "$TAR"; then
7313 { echo "$as_me:$LINENO: result: $TAR" >&5
7314 echo "${ECHO_T}$TAR" >&6; }
7316 { echo "$as_me:$LINENO: result: no" >&5
7317 echo "${ECHO_T}no" >&6; }
7321 # Extract the first word of "pwd", so it can be a program name with args.
7322 set dummy pwd; ac_word=$2
7323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7325 if test "${ac_cv_path_BINPWD+set}" = set; then
7326 echo $ECHO_N "(cached) $ECHO_C" >&6
7330 ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7337 test -z "$as_dir" && as_dir=.
7338 for ac_exec_ext in '' $ac_executable_extensions; do
7339 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7340 ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7341 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7348 test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7352 BINPWD=$ac_cv_path_BINPWD
7353 if test -n "$BINPWD"; then
7354 { echo "$as_me:$LINENO: result: $BINPWD" >&5
7355 echo "${ECHO_T}$BINPWD" >&6; }
7357 { echo "$as_me:$LINENO: result: no" >&5
7358 echo "${ECHO_T}no" >&6; }
7363 # Extract the first word of "Graphviz", so it can be a program name with args.
7364 set dummy Graphviz; ac_word=$2
7365 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7367 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7372 ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7379 test -z "$as_dir" && as_dir=.
7380 for ac_exec_ext in '' $ac_executable_extensions; do
7381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7382 ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7390 test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7394 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7395 if test -n "$GRAPHVIZ"; then
7396 { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7397 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7399 { echo "$as_me:$LINENO: result: no" >&5
7400 echo "${ECHO_T}no" >&6; }
7404 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7406 cat >>confdefs.h <<\_ACEOF
7407 #define HAVE_GRAPHVIZ 1
7410 if test "$llvm_cv_os_type" = "MingW" ; then
7411 GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7414 cat >>confdefs.h <<_ACEOF
7415 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7419 # Extract the first word of "dot", so it can be a program name with args.
7420 set dummy dot; ac_word=$2
7421 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7422 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7423 if test "${ac_cv_path_DOT+set}" = set; then
7424 echo $ECHO_N "(cached) $ECHO_C" >&6
7428 ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7435 test -z "$as_dir" && as_dir=.
7436 for ac_exec_ext in '' $ac_executable_extensions; do
7437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7438 ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7439 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7446 test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7451 if test -n "$DOT"; then
7452 { echo "$as_me:$LINENO: result: $DOT" >&5
7453 echo "${ECHO_T}$DOT" >&6; }
7455 { echo "$as_me:$LINENO: result: no" >&5
7456 echo "${ECHO_T}no" >&6; }
7460 if test "$DOT" != "echo dot" ; then
7462 cat >>confdefs.h <<\_ACEOF
7466 if test "$llvm_cv_os_type" = "MingW" ; then
7467 DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7470 cat >>confdefs.h <<_ACEOF
7471 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7475 # Extract the first word of "fdp", so it can be a program name with args.
7476 set dummy fdp; ac_word=$2
7477 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7478 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7479 if test "${ac_cv_path_FDP+set}" = set; then
7480 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7491 test -z "$as_dir" && as_dir=.
7492 for ac_exec_ext in '' $ac_executable_extensions; do
7493 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7494 ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7495 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7502 test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7507 if test -n "$FDP"; then
7508 { echo "$as_me:$LINENO: result: $FDP" >&5
7509 echo "${ECHO_T}$FDP" >&6; }
7511 { echo "$as_me:$LINENO: result: no" >&5
7512 echo "${ECHO_T}no" >&6; }
7516 if test "$FDP" != "echo fdp" ; then
7518 cat >>confdefs.h <<\_ACEOF
7522 if test "$llvm_cv_os_type" = "MingW" ; then
7523 FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7526 cat >>confdefs.h <<_ACEOF
7527 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7531 # Extract the first word of "neato", so it can be a program name with args.
7532 set dummy neato; ac_word=$2
7533 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7534 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7535 if test "${ac_cv_path_NEATO+set}" = set; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7547 test -z "$as_dir" && as_dir=.
7548 for ac_exec_ext in '' $ac_executable_extensions; do
7549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7550 ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7551 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7558 test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7562 NEATO=$ac_cv_path_NEATO
7563 if test -n "$NEATO"; then
7564 { echo "$as_me:$LINENO: result: $NEATO" >&5
7565 echo "${ECHO_T}$NEATO" >&6; }
7567 { echo "$as_me:$LINENO: result: no" >&5
7568 echo "${ECHO_T}no" >&6; }
7572 if test "$NEATO" != "echo neato" ; then
7574 cat >>confdefs.h <<\_ACEOF
7575 #define HAVE_NEATO 1
7578 if test "$llvm_cv_os_type" = "MingW" ; then
7579 NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7582 cat >>confdefs.h <<_ACEOF
7583 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7587 # Extract the first word of "twopi", so it can be a program name with args.
7588 set dummy twopi; ac_word=$2
7589 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7590 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7591 if test "${ac_cv_path_TWOPI+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7596 ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7603 test -z "$as_dir" && as_dir=.
7604 for ac_exec_ext in '' $ac_executable_extensions; do
7605 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7606 ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7607 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7614 test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7618 TWOPI=$ac_cv_path_TWOPI
7619 if test -n "$TWOPI"; then
7620 { echo "$as_me:$LINENO: result: $TWOPI" >&5
7621 echo "${ECHO_T}$TWOPI" >&6; }
7623 { echo "$as_me:$LINENO: result: no" >&5
7624 echo "${ECHO_T}no" >&6; }
7628 if test "$TWOPI" != "echo twopi" ; then
7630 cat >>confdefs.h <<\_ACEOF
7631 #define HAVE_TWOPI 1
7634 if test "$llvm_cv_os_type" = "MingW" ; then
7635 TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7638 cat >>confdefs.h <<_ACEOF
7639 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7643 # Extract the first word of "circo", so it can be a program name with args.
7644 set dummy circo; ac_word=$2
7645 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7646 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7647 if test "${ac_cv_path_CIRCO+set}" = set; then
7648 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 test -z "$as_dir" && as_dir=.
7660 for ac_exec_ext in '' $ac_executable_extensions; do
7661 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7662 ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7663 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7670 test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7674 CIRCO=$ac_cv_path_CIRCO
7675 if test -n "$CIRCO"; then
7676 { echo "$as_me:$LINENO: result: $CIRCO" >&5
7677 echo "${ECHO_T}$CIRCO" >&6; }
7679 { echo "$as_me:$LINENO: result: no" >&5
7680 echo "${ECHO_T}no" >&6; }
7684 if test "$CIRCO" != "echo circo" ; then
7686 cat >>confdefs.h <<\_ACEOF
7687 #define HAVE_CIRCO 1
7690 if test "$llvm_cv_os_type" = "MingW" ; then
7691 CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7694 cat >>confdefs.h <<_ACEOF
7695 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7699 for ac_prog in gv gsview32
7701 # Extract the first word of "$ac_prog", so it can be a program name with args.
7702 set dummy $ac_prog; ac_word=$2
7703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7705 if test "${ac_cv_path_GV+set}" = set; then
7706 echo $ECHO_N "(cached) $ECHO_C" >&6
7710 ac_cv_path_GV="$GV" # Let the user override the test with a path.
7713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 test -z "$as_dir" && as_dir=.
7718 for ac_exec_ext in '' $ac_executable_extensions; do
7719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7720 ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 if test -n "$GV"; then
7733 { echo "$as_me:$LINENO: result: $GV" >&5
7734 echo "${ECHO_T}$GV" >&6; }
7736 { echo "$as_me:$LINENO: result: no" >&5
7737 echo "${ECHO_T}no" >&6; }
7741 test -n "$GV" && break
7743 test -n "$GV" || GV="echo gv"
7745 if test "$GV" != "echo gv" ; then
7747 cat >>confdefs.h <<\_ACEOF
7751 if test "$llvm_cv_os_type" = "MingW" ; then
7752 GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7755 cat >>confdefs.h <<_ACEOF
7756 #define LLVM_PATH_GV "$GV${EXEEXT}"
7760 # Extract the first word of "dotty", so it can be a program name with args.
7761 set dummy dotty; ac_word=$2
7762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7764 if test "${ac_cv_path_DOTTY+set}" = set; then
7765 echo $ECHO_N "(cached) $ECHO_C" >&6
7769 ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7772 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7776 test -z "$as_dir" && as_dir=.
7777 for ac_exec_ext in '' $ac_executable_extensions; do
7778 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7779 ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7780 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7787 test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7791 DOTTY=$ac_cv_path_DOTTY
7792 if test -n "$DOTTY"; then
7793 { echo "$as_me:$LINENO: result: $DOTTY" >&5
7794 echo "${ECHO_T}$DOTTY" >&6; }
7796 { echo "$as_me:$LINENO: result: no" >&5
7797 echo "${ECHO_T}no" >&6; }
7801 if test "$DOTTY" != "echo dotty" ; then
7803 cat >>confdefs.h <<\_ACEOF
7804 #define HAVE_DOTTY 1
7807 if test "$llvm_cv_os_type" = "MingW" ; then
7808 DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7811 cat >>confdefs.h <<_ACEOF
7812 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7818 # Extract the first word of "perl", so it can be a program name with args.
7819 set dummy perl; ac_word=$2
7820 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7821 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7822 if test "${ac_cv_path_PERL+set}" = set; then
7823 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7834 test -z "$as_dir" && as_dir=.
7835 for ac_exec_ext in '' $ac_executable_extensions; do
7836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7837 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7845 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7849 PERL=$ac_cv_path_PERL
7850 if test -n "$PERL"; then
7851 { echo "$as_me:$LINENO: result: $PERL" >&5
7852 echo "${ECHO_T}$PERL" >&6; }
7854 { echo "$as_me:$LINENO: result: no" >&5
7855 echo "${ECHO_T}no" >&6; }
7859 if test "$PERL" != "none"; then
7860 { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7861 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7862 if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7863 { echo "$as_me:$LINENO: result: yes" >&5
7864 echo "${ECHO_T}yes" >&6; }
7867 { echo "$as_me:$LINENO: result: not found" >&5
7868 echo "${ECHO_T}not found" >&6; }
7873 if test x"$PERL" = xnone; then
7876 { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7877 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7878 { (exit 1); exit 1; }; }
7884 # Find a good install program. We prefer a C program (faster),
7885 # so one script is as good as another. But avoid the broken or
7886 # incompatible versions:
7887 # SysV /etc/install, /usr/sbin/install
7888 # SunOS /usr/etc/install
7889 # IRIX /sbin/install
7891 # AmigaOS /C/install, which installs bootblocks on floppy discs
7892 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7893 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7894 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7895 # OS/2's system install, which has a completely different semantic
7896 # ./install, which can be erroneously created by make from ./install.sh.
7897 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7898 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7899 if test -z "$INSTALL"; then
7900 if test "${ac_cv_path_install+set}" = set; then
7901 echo $ECHO_N "(cached) $ECHO_C" >&6
7903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7907 test -z "$as_dir" && as_dir=.
7908 # Account for people who put trailing slashes in PATH elements.
7910 ./ | .// | /cC/* | \
7911 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7912 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7915 # OSF1 and SCO ODT 3.0 have their own names for install.
7916 # Don't use installbsd from OSF since it installs stuff as root
7918 for ac_prog in ginstall scoinst install; do
7919 for ac_exec_ext in '' $ac_executable_extensions; do
7920 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7921 if test $ac_prog = install &&
7922 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7923 # AIX install. It has an incompatible calling convention.
7925 elif test $ac_prog = install &&
7926 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
7927 # program-specific install script used by HP pwplus--don't use.
7930 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
7943 if test "${ac_cv_path_install+set}" = set; then
7944 INSTALL=$ac_cv_path_install
7946 # As a last resort, use the slow shell script. Don't cache a
7947 # value for INSTALL within a source directory, because that will
7948 # break other packages using the cache if that directory is
7949 # removed, or if the value is a relative name.
7950 INSTALL=$ac_install_sh
7953 { echo "$as_me:$LINENO: result: $INSTALL" >&5
7954 echo "${ECHO_T}$INSTALL" >&6; }
7956 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
7957 # It thinks the first close brace ends the variable substitution.
7958 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
7960 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
7962 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
7965 # Extract the first word of "bzip2", so it can be a program name with args.
7966 set dummy bzip2; ac_word=$2
7967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7969 if test "${ac_cv_path_BZIP2+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 test -z "$as_dir" && as_dir=.
7982 for ac_exec_ext in '' $ac_executable_extensions; do
7983 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7984 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7985 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7995 BZIP2=$ac_cv_path_BZIP2
7996 if test -n "$BZIP2"; then
7997 { echo "$as_me:$LINENO: result: $BZIP2" >&5
7998 echo "${ECHO_T}$BZIP2" >&6; }
8000 { echo "$as_me:$LINENO: result: no" >&5
8001 echo "${ECHO_T}no" >&6; }
8005 # Extract the first word of "doxygen", so it can be a program name with args.
8006 set dummy doxygen; ac_word=$2
8007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8009 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8014 ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8021 test -z "$as_dir" && as_dir=.
8022 for ac_exec_ext in '' $ac_executable_extensions; do
8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8024 ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8025 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8035 DOXYGEN=$ac_cv_path_DOXYGEN
8036 if test -n "$DOXYGEN"; then
8037 { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8038 echo "${ECHO_T}$DOXYGEN" >&6; }
8040 { echo "$as_me:$LINENO: result: no" >&5
8041 echo "${ECHO_T}no" >&6; }
8045 # Extract the first word of "groff", so it can be a program name with args.
8046 set dummy groff; ac_word=$2
8047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8049 if test "${ac_cv_path_GROFF+set}" = set; then
8050 echo $ECHO_N "(cached) $ECHO_C" >&6
8054 ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8061 test -z "$as_dir" && as_dir=.
8062 for ac_exec_ext in '' $ac_executable_extensions; do
8063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8064 ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8075 GROFF=$ac_cv_path_GROFF
8076 if test -n "$GROFF"; then
8077 { echo "$as_me:$LINENO: result: $GROFF" >&5
8078 echo "${ECHO_T}$GROFF" >&6; }
8080 { echo "$as_me:$LINENO: result: no" >&5
8081 echo "${ECHO_T}no" >&6; }
8085 # Extract the first word of "gzip", so it can be a program name with args.
8086 set dummy gzip; ac_word=$2
8087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8089 if test "${ac_cv_path_GZIP+set}" = set; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8094 ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101 test -z "$as_dir" && as_dir=.
8102 for ac_exec_ext in '' $ac_executable_extensions; do
8103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8104 ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8115 GZIP=$ac_cv_path_GZIP
8116 if test -n "$GZIP"; then
8117 { echo "$as_me:$LINENO: result: $GZIP" >&5
8118 echo "${ECHO_T}$GZIP" >&6; }
8120 { echo "$as_me:$LINENO: result: no" >&5
8121 echo "${ECHO_T}no" >&6; }
8125 # Extract the first word of "pod2html", so it can be a program name with args.
8126 set dummy pod2html; ac_word=$2
8127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8129 if test "${ac_cv_path_POD2HTML+set}" = set; then
8130 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8141 test -z "$as_dir" && as_dir=.
8142 for ac_exec_ext in '' $ac_executable_extensions; do
8143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8144 ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8155 POD2HTML=$ac_cv_path_POD2HTML
8156 if test -n "$POD2HTML"; then
8157 { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8158 echo "${ECHO_T}$POD2HTML" >&6; }
8160 { echo "$as_me:$LINENO: result: no" >&5
8161 echo "${ECHO_T}no" >&6; }
8165 # Extract the first word of "pod2man", so it can be a program name with args.
8166 set dummy pod2man; ac_word=$2
8167 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8168 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8169 if test "${ac_cv_path_POD2MAN+set}" = set; then
8170 echo $ECHO_N "(cached) $ECHO_C" >&6
8174 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8184 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 POD2MAN=$ac_cv_path_POD2MAN
8196 if test -n "$POD2MAN"; then
8197 { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8198 echo "${ECHO_T}$POD2MAN" >&6; }
8200 { echo "$as_me:$LINENO: result: no" >&5
8201 echo "${ECHO_T}no" >&6; }
8205 # Extract the first word of "runtest", so it can be a program name with args.
8206 set dummy runtest; ac_word=$2
8207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8209 if test "${ac_cv_path_RUNTEST+set}" = set; then
8210 echo $ECHO_N "(cached) $ECHO_C" >&6
8214 ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 test -z "$as_dir" && as_dir=.
8222 for ac_exec_ext in '' $ac_executable_extensions; do
8223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8224 ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8235 RUNTEST=$ac_cv_path_RUNTEST
8236 if test -n "$RUNTEST"; then
8237 { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8238 echo "${ECHO_T}$RUNTEST" >&6; }
8240 { echo "$as_me:$LINENO: result: no" >&5
8241 echo "${ECHO_T}no" >&6; }
8247 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8248 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8250 # Check whether --with-tclinclude was given.
8251 if test "${with_tclinclude+set}" = set; then
8252 withval=$with_tclinclude; with_tclinclude=${withval}
8257 if test "${ac_cv_path_tclsh+set}" = set; then
8258 echo $ECHO_N "(cached) $ECHO_C" >&6
8261 if test x"${with_tclinclude}" != x ; then
8262 if test -f ${with_tclinclude}/tclsh ; then
8263 ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8264 elif test -f ${with_tclinclude}/src/tclsh ; then
8265 ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8267 { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8268 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8269 { (exit 1); exit 1; }; }
8275 if test x"${ac_cv_path_tclsh}" = x ; then
8276 { echo "$as_me:$LINENO: result: none" >&5
8277 echo "${ECHO_T}none" >&6; }
8278 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
8280 # Extract the first word of "$ac_prog", so it can be a program name with args.
8281 set dummy $ac_prog; ac_word=$2
8282 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8283 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8284 if test "${ac_cv_path_TCLSH+set}" = set; then
8285 echo $ECHO_N "(cached) $ECHO_C" >&6
8289 ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8296 test -z "$as_dir" && as_dir=.
8297 for ac_exec_ext in '' $ac_executable_extensions; do
8298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8299 ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8300 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8310 TCLSH=$ac_cv_path_TCLSH
8311 if test -n "$TCLSH"; then
8312 { echo "$as_me:$LINENO: result: $TCLSH" >&5
8313 echo "${ECHO_T}$TCLSH" >&6; }
8315 { echo "$as_me:$LINENO: result: no" >&5
8316 echo "${ECHO_T}no" >&6; }
8320 test -n "$TCLSH" && break
8323 if test x"${TCLSH}" = x ; then
8324 ac_cv_path_tclsh='';
8326 ac_cv_path_tclsh="${TCLSH}";
8329 { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8330 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8331 TCLSH="${ac_cv_path_tclsh}"
8335 # Extract the first word of "zip", so it can be a program name with args.
8336 set dummy zip; ac_word=$2
8337 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8338 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8339 if test "${ac_cv_path_ZIP+set}" = set; then
8340 echo $ECHO_N "(cached) $ECHO_C" >&6
8344 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8351 test -z "$as_dir" && as_dir=.
8352 for ac_exec_ext in '' $ac_executable_extensions; do
8353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8354 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8355 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8366 if test -n "$ZIP"; then
8367 { echo "$as_me:$LINENO: result: $ZIP" >&5
8368 echo "${ECHO_T}$ZIP" >&6; }
8370 { echo "$as_me:$LINENO: result: no" >&5
8371 echo "${ECHO_T}no" >&6; }
8375 for ac_prog in ocamlc
8377 # Extract the first word of "$ac_prog", so it can be a program name with args.
8378 set dummy $ac_prog; ac_word=$2
8379 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8381 if test "${ac_cv_path_OCAMLC+set}" = set; then
8382 echo $ECHO_N "(cached) $ECHO_C" >&6
8386 ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8393 test -z "$as_dir" && as_dir=.
8394 for ac_exec_ext in '' $ac_executable_extensions; do
8395 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8396 ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 OCAMLC=$ac_cv_path_OCAMLC
8408 if test -n "$OCAMLC"; then
8409 { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8410 echo "${ECHO_T}$OCAMLC" >&6; }
8412 { echo "$as_me:$LINENO: result: no" >&5
8413 echo "${ECHO_T}no" >&6; }
8417 test -n "$OCAMLC" && break
8420 for ac_prog in ocamlopt
8422 # Extract the first word of "$ac_prog", so it can be a program name with args.
8423 set dummy $ac_prog; ac_word=$2
8424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8426 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8427 echo $ECHO_N "(cached) $ECHO_C" >&6
8431 ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8438 test -z "$as_dir" && as_dir=.
8439 for ac_exec_ext in '' $ac_executable_extensions; do
8440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8441 ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8442 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8452 OCAMLOPT=$ac_cv_path_OCAMLOPT
8453 if test -n "$OCAMLOPT"; then
8454 { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8455 echo "${ECHO_T}$OCAMLOPT" >&6; }
8457 { echo "$as_me:$LINENO: result: no" >&5
8458 echo "${ECHO_T}no" >&6; }
8462 test -n "$OCAMLOPT" && break
8465 for ac_prog in ocamldep
8467 # Extract the first word of "$ac_prog", so it can be a program name with args.
8468 set dummy $ac_prog; ac_word=$2
8469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8471 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8472 echo $ECHO_N "(cached) $ECHO_C" >&6
8476 ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8483 test -z "$as_dir" && as_dir=.
8484 for ac_exec_ext in '' $ac_executable_extensions; do
8485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8486 ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8497 OCAMLDEP=$ac_cv_path_OCAMLDEP
8498 if test -n "$OCAMLDEP"; then
8499 { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8500 echo "${ECHO_T}$OCAMLDEP" >&6; }
8502 { echo "$as_me:$LINENO: result: no" >&5
8503 echo "${ECHO_T}no" >&6; }
8507 test -n "$OCAMLDEP" && break
8510 for ac_prog in ocamldoc
8512 # Extract the first word of "$ac_prog", so it can be a program name with args.
8513 set dummy $ac_prog; ac_word=$2
8514 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8515 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8516 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8517 echo $ECHO_N "(cached) $ECHO_C" >&6
8521 ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8531 ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8532 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8542 OCAMLDOC=$ac_cv_path_OCAMLDOC
8543 if test -n "$OCAMLDOC"; then
8544 { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8545 echo "${ECHO_T}$OCAMLDOC" >&6; }
8547 { echo "$as_me:$LINENO: result: no" >&5
8548 echo "${ECHO_T}no" >&6; }
8552 test -n "$OCAMLDOC" && break
8555 for ac_prog in gas as
8557 # Extract the first word of "$ac_prog", so it can be a program name with args.
8558 set dummy $ac_prog; ac_word=$2
8559 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8560 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8561 if test "${ac_cv_path_GAS+set}" = set; then
8562 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8573 test -z "$as_dir" && as_dir=.
8574 for ac_exec_ext in '' $ac_executable_extensions; do
8575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8576 ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8577 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8588 if test -n "$GAS"; then
8589 { echo "$as_me:$LINENO: result: $GAS" >&5
8590 echo "${ECHO_T}$GAS" >&6; }
8592 { echo "$as_me:$LINENO: result: no" >&5
8593 echo "${ECHO_T}no" >&6; }
8597 test -n "$GAS" && break
8601 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8602 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8603 if test "${llvm_cv_link_use_r+set}" = set; then
8604 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 ac_cpp='$CPP $CPPFLAGS'
8608 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8609 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8610 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8613 CFLAGS="$CFLAGS -Wl,-R."
8614 cat >conftest.$ac_ext <<_ACEOF
8617 cat confdefs.h >>conftest.$ac_ext
8618 cat >>conftest.$ac_ext <<_ACEOF
8619 /* end confdefs.h. */
8624 int main() { return 0; }
8629 rm -f conftest.$ac_objext conftest$ac_exeext
8630 if { (ac_try="$ac_link"
8632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8633 *) ac_try_echo=$ac_try;;
8635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8636 (eval "$ac_link") 2>conftest.er1
8638 grep -v '^ *+' conftest.er1 >conftest.err
8640 cat conftest.err >&5
8641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } &&
8643 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8644 { (case "(($ac_try" in
8645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8646 *) ac_try_echo=$ac_try;;
8648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8649 (eval "$ac_try") 2>&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); }; } &&
8653 { ac_try='test -s conftest$ac_exeext'
8654 { (case "(($ac_try" in
8655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8656 *) ac_try_echo=$ac_try;;
8658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8659 (eval "$ac_try") 2>&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); }; }; then
8663 llvm_cv_link_use_r=yes
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8668 llvm_cv_link_use_r=no
8671 rm -f core conftest.err conftest.$ac_objext \
8672 conftest$ac_exeext conftest.$ac_ext
8675 ac_cpp='$CPP $CPPFLAGS'
8676 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8677 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8678 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8682 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8683 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8684 if test "$llvm_cv_link_use_r" = yes ; then
8686 cat >>confdefs.h <<\_ACEOF
8687 #define HAVE_LINK_R 1
8693 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8694 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8695 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8696 echo $ECHO_N "(cached) $ECHO_C" >&6
8699 ac_cpp='$CPP $CPPFLAGS'
8700 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8701 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8702 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8705 CFLAGS="$CFLAGS -Wl,-export-dynamic"
8706 cat >conftest.$ac_ext <<_ACEOF
8709 cat confdefs.h >>conftest.$ac_ext
8710 cat >>conftest.$ac_ext <<_ACEOF
8711 /* end confdefs.h. */
8716 int main() { return 0; }
8721 rm -f conftest.$ac_objext conftest$ac_exeext
8722 if { (ac_try="$ac_link"
8724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_link") 2>conftest.er1
8730 grep -v '^ *+' conftest.er1 >conftest.err
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } &&
8735 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8736 { (case "(($ac_try" in
8737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8738 *) ac_try_echo=$ac_try;;
8740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8741 (eval "$ac_try") 2>&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); }; } &&
8745 { ac_try='test -s conftest$ac_exeext'
8746 { (case "(($ac_try" in
8747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8748 *) ac_try_echo=$ac_try;;
8750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8751 (eval "$ac_try") 2>&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); }; }; then
8755 llvm_cv_link_use_export_dynamic=yes
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8760 llvm_cv_link_use_export_dynamic=no
8763 rm -f core conftest.err conftest.$ac_objext \
8764 conftest$ac_exeext conftest.$ac_ext
8767 ac_cpp='$CPP $CPPFLAGS'
8768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8774 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8775 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8776 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8778 cat >>confdefs.h <<\_ACEOF
8779 #define HAVE_LINK_EXPORT_DYNAMIC 1
8787 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8788 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8789 if test "${ac_cv_c_const+set}" = set; then
8790 echo $ECHO_N "(cached) $ECHO_C" >&6
8792 cat >conftest.$ac_ext <<_ACEOF
8795 cat confdefs.h >>conftest.$ac_ext
8796 cat >>conftest.$ac_ext <<_ACEOF
8797 /* end confdefs.h. */
8802 /* FIXME: Include the comments suggested by Paul. */
8804 /* Ultrix mips cc rejects this. */
8805 typedef int charset[2];
8807 /* SunOS 4.1.1 cc rejects this. */
8808 char const *const *ccp;
8810 /* NEC SVR4.0.2 mips cc rejects this. */
8811 struct point {int x, y;};
8812 static struct point const zero = {0,0};
8813 /* AIX XL C 1.02.0.0 rejects this.
8814 It does not let you subtract one const X* pointer from another in
8815 an arm of an if-expression whose if-part is not a constant
8817 const char *g = "string";
8818 ccp = &g + (g ? g-g : 0);
8819 /* HPUX 7.0 cc rejects these. */
8822 ccp = (char const *const *) p;
8823 { /* SCO 3.2v4 cc rejects this. */
8825 char const *s = 0 ? (char *) 0 : (char const *) 0;
8830 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8832 const int *foo = &x[0];
8835 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8836 typedef const int *iptr;
8840 { /* AIX XL C 1.02.0.0 rejects this saying
8841 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8842 struct s { int j; const int *ap[3]; };
8843 struct s *b; b->j = 5;
8845 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8849 return !x[0] && !zero.x;
8856 rm -f conftest.$ac_objext
8857 if { (ac_try="$ac_compile"
8859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8860 *) ac_try_echo=$ac_try;;
8862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8863 (eval "$ac_compile") 2>conftest.er1
8865 grep -v '^ *+' conftest.er1 >conftest.err
8867 cat conftest.err >&5
8868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8869 (exit $ac_status); } &&
8870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8871 { (case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_try") 2>&5
8878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8879 (exit $ac_status); }; } &&
8880 { ac_try='test -s conftest.$ac_objext'
8881 { (case "(($ac_try" in
8882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8883 *) ac_try_echo=$ac_try;;
8885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8886 (eval "$ac_try") 2>&5
8888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8889 (exit $ac_status); }; }; then
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8900 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8901 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8902 if test $ac_cv_c_const = no; then
8904 cat >>confdefs.h <<\_ACEOF
8916 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8917 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8918 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
8919 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
8920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8921 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 cat >conftest.$ac_ext <<_ACEOF
8926 cat confdefs.h >>conftest.$ac_ext
8927 cat >>conftest.$ac_ext <<_ACEOF
8928 /* end confdefs.h. */
8929 #include <sys/types.h>
8941 rm -f conftest.$ac_objext
8942 if { (ac_try="$ac_compile"
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8950 grep -v '^ *+' conftest.er1 >conftest.err
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } &&
8955 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8956 { (case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_try") 2>&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); }; } &&
8965 { ac_try='test -s conftest.$ac_objext'
8966 { (case "(($ac_try" in
8967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8968 *) ac_try_echo=$ac_try;;
8970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8971 (eval "$ac_try") 2>&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); }; }; then
8975 eval "$as_ac_Header=yes"
8977 echo "$as_me: failed program was:" >&5
8978 sed 's/^/| /' conftest.$ac_ext >&5
8980 eval "$as_ac_Header=no"
8983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8985 ac_res=`eval echo '${'$as_ac_Header'}'`
8986 { echo "$as_me:$LINENO: result: $ac_res" >&5
8987 echo "${ECHO_T}$ac_res" >&6; }
8988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8989 cat >>confdefs.h <<_ACEOF
8990 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8993 ac_header_dirent=$ac_hdr; break
8997 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8998 if test $ac_header_dirent = dirent.h; then
8999 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9000 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9001 if test "${ac_cv_search_opendir+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9004 ac_func_search_save_LIBS=$LIBS
9005 cat >conftest.$ac_ext <<_ACEOF
9008 cat confdefs.h >>conftest.$ac_ext
9009 cat >>conftest.$ac_ext <<_ACEOF
9010 /* end confdefs.h. */
9012 /* Override any GCC internal prototype to avoid an error.
9013 Use char because int might match the return type of a GCC
9014 builtin and then its argument prototype would still apply. */
9027 for ac_lib in '' dir; do
9028 if test -z "$ac_lib"; then
9029 ac_res="none required"
9032 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9034 rm -f conftest.$ac_objext conftest$ac_exeext
9035 if { (ac_try="$ac_link"
9037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038 *) ac_try_echo=$ac_try;;
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041 (eval "$ac_link") 2>conftest.er1
9043 grep -v '^ *+' conftest.er1 >conftest.err
9045 cat conftest.err >&5
9046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } &&
9048 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9049 { (case "(($ac_try" in
9050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9051 *) ac_try_echo=$ac_try;;
9053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9054 (eval "$ac_try") 2>&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); }; } &&
9058 { ac_try='test -s conftest$ac_exeext'
9059 { (case "(($ac_try" in
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_try") 2>&5
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; }; then
9068 ac_cv_search_opendir=$ac_res
9070 echo "$as_me: failed program was:" >&5
9071 sed 's/^/| /' conftest.$ac_ext >&5
9076 rm -f core conftest.err conftest.$ac_objext \
9078 if test "${ac_cv_search_opendir+set}" = set; then
9082 if test "${ac_cv_search_opendir+set}" = set; then
9085 ac_cv_search_opendir=no
9088 LIBS=$ac_func_search_save_LIBS
9090 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9091 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9092 ac_res=$ac_cv_search_opendir
9093 if test "$ac_res" != no; then
9094 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9099 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9100 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9101 if test "${ac_cv_search_opendir+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9104 ac_func_search_save_LIBS=$LIBS
9105 cat >conftest.$ac_ext <<_ACEOF
9108 cat confdefs.h >>conftest.$ac_ext
9109 cat >>conftest.$ac_ext <<_ACEOF
9110 /* end confdefs.h. */
9112 /* Override any GCC internal prototype to avoid an error.
9113 Use char because int might match the return type of a GCC
9114 builtin and then its argument prototype would still apply. */
9127 for ac_lib in '' x; do
9128 if test -z "$ac_lib"; then
9129 ac_res="none required"
9132 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9134 rm -f conftest.$ac_objext conftest$ac_exeext
9135 if { (ac_try="$ac_link"
9137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9138 *) ac_try_echo=$ac_try;;
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_link") 2>conftest.er1
9143 grep -v '^ *+' conftest.er1 >conftest.err
9145 cat conftest.err >&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } &&
9148 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9149 { (case "(($ac_try" in
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_try") 2>&5
9156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9157 (exit $ac_status); }; } &&
9158 { ac_try='test -s conftest$ac_exeext'
9159 { (case "(($ac_try" in
9160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9161 *) ac_try_echo=$ac_try;;
9163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9164 (eval "$ac_try") 2>&5
9166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9167 (exit $ac_status); }; }; then
9168 ac_cv_search_opendir=$ac_res
9170 echo "$as_me: failed program was:" >&5
9171 sed 's/^/| /' conftest.$ac_ext >&5
9176 rm -f core conftest.err conftest.$ac_objext \
9178 if test "${ac_cv_search_opendir+set}" = set; then
9182 if test "${ac_cv_search_opendir+set}" = set; then
9185 ac_cv_search_opendir=no
9188 LIBS=$ac_func_search_save_LIBS
9190 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9191 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9192 ac_res=$ac_cv_search_opendir
9193 if test "$ac_res" != no; then
9194 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9201 for ac_header in dlfcn.h
9203 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9208 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 ac_res=`eval echo '${'$as_ac_Header'}'`
9211 { echo "$as_me:$LINENO: result: $ac_res" >&5
9212 echo "${ECHO_T}$ac_res" >&6; }
9214 # Is the header compilable?
9215 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9216 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9217 cat >conftest.$ac_ext <<_ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 $ac_includes_default
9224 #include <$ac_header>
9226 rm -f conftest.$ac_objext
9227 if { (ac_try="$ac_compile"
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_compile") 2>conftest.er1
9235 grep -v '^ *+' conftest.er1 >conftest.err
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } &&
9240 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9241 { (case "(($ac_try" in
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_try") 2>&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); }; } &&
9250 { ac_try='test -s conftest.$ac_objext'
9251 { (case "(($ac_try" in
9252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9253 *) ac_try_echo=$ac_try;;
9255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9256 (eval "$ac_try") 2>&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 ac_header_compiler=yes
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9265 ac_header_compiler=no
9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9270 echo "${ECHO_T}$ac_header_compiler" >&6; }
9272 # Is the header present?
9273 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9274 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9275 cat >conftest.$ac_ext <<_ACEOF
9278 cat confdefs.h >>conftest.$ac_ext
9279 cat >>conftest.$ac_ext <<_ACEOF
9280 /* end confdefs.h. */
9281 #include <$ac_header>
9283 if { (ac_try="$ac_cpp conftest.$ac_ext"
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9291 grep -v '^ *+' conftest.er1 >conftest.err
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } >/dev/null; then
9296 if test -s conftest.err; then
9297 ac_cpp_err=$ac_c_preproc_warn_flag
9298 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9305 if test -z "$ac_cpp_err"; then
9306 ac_header_preproc=yes
9308 echo "$as_me: failed program was:" >&5
9309 sed 's/^/| /' conftest.$ac_ext >&5
9311 ac_header_preproc=no
9314 rm -f conftest.err conftest.$ac_ext
9315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9316 echo "${ECHO_T}$ac_header_preproc" >&6; }
9318 # So? What about this header?
9319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9321 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9322 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9324 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9325 ac_header_preproc=yes
9328 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9329 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9330 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9331 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9332 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9333 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9334 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9335 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9336 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9337 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9338 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9339 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9341 ## ----------------------------------- ##
9342 ## Report this to llvmbugs@cs.uiuc.edu ##
9343 ## ----------------------------------- ##
9345 ) | sed "s/^/$as_me: WARNING: /" >&2
9348 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9349 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9351 echo $ECHO_N "(cached) $ECHO_C" >&6
9353 eval "$as_ac_Header=\$ac_header_preproc"
9355 ac_res=`eval echo '${'$as_ac_Header'}'`
9356 { echo "$as_me:$LINENO: result: $ac_res" >&5
9357 echo "${ECHO_T}$ac_res" >&6; }
9360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9361 cat >>confdefs.h <<_ACEOF
9362 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9369 # Check whether --enable-ltdl-install was given.
9370 if test "${enable_ltdl_install+set}" = set; then
9371 enableval=$enable_ltdl_install;
9377 if test x"${enable_ltdl_install-no}" != xno; then
9379 INSTALL_LTDL_FALSE='#'
9381 INSTALL_LTDL_TRUE='#'
9387 if test x"${enable_ltdl_convenience-no}" != xno; then
9388 CONVENIENCE_LTDL_TRUE=
9389 CONVENIENCE_LTDL_FALSE='#'
9391 CONVENIENCE_LTDL_TRUE='#'
9392 CONVENIENCE_LTDL_FALSE=
9396 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9397 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9399 libname_spec='lib$name'
9407 shlibpath_overrides_runpath=unknown
9409 dynamic_linker="$host_os ld.so"
9410 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9411 if test "$GCC" = yes; then
9412 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9413 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9414 # if the path contains ";" then we assume it to be the separator
9415 # otherwise default to the standard path separator (i.e. ":") - it is
9416 # assumed that no part of a normal pathname contains ";" but that should
9417 # okay in the real world where ";" in dirpaths is itself problematic.
9418 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9420 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9423 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9425 need_lib_prefix=unknown
9426 hardcode_into_libs=no
9428 # when you set need_version to no, make sure it does not cause -set_version
9429 # flags to be left without arguments
9430 need_version=unknown
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9436 shlibpath_var=LIBPATH
9438 # AIX 3 has no versioning support, so we append a major version to the name.
9439 soname_spec='${libname}${release}${shared_ext}$major'
9446 hardcode_into_libs=yes
9447 if test "$host_cpu" = ia64; then
9448 # AIX 5 supports IA64
9449 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9450 shlibpath_var=LD_LIBRARY_PATH
9452 # With GCC up to 2.95.x, collect2 would create an import file
9453 # for dependence libraries. The import file would start with
9454 # the line `#! .'. This would cause the generated library to
9455 # depend on `.', always an invalid library. This was fixed in
9456 # development snapshots of GCC prior to 3.0.
9458 aix4 | aix4.[01] | aix4.[01].*)
9459 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9461 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9468 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9469 # soname into executable. Probably we can add versioning support to
9470 # collect2, so additional links can be useful in future.
9471 if test "$aix_use_runtimelinking" = yes; then
9472 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9473 # instead of lib<name>.a to let people know that these are not
9474 # typical AIX shared libraries.
9475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9477 # We preserve .a as extension for shared libraries through AIX4.2
9478 # and later when we are not doing run time linking.
9479 library_names_spec='${libname}${release}.a $libname.a'
9480 soname_spec='${libname}${release}${shared_ext}$major'
9482 shlibpath_var=LIBPATH
9487 library_names_spec='$libname.ixlibrary $libname.a'
9488 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9489 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'
9493 library_names_spec='${libname}${shared_ext}'
9494 dynamic_linker="$host_os ld.so"
9495 shlibpath_var=LIBRARY_PATH
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9503 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9504 shlibpath_var=LD_LIBRARY_PATH
9505 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9506 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9507 # the default ld.so.conf also contains /usr/contrib/lib and
9508 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9509 # libtool to hard-code these into programs
9512 cygwin* | mingw* | pw32*)
9513 version_type=windows
9518 case $GCC,$host_os in
9519 yes,cygwin* | yes,mingw* | yes,pw32*)
9520 library_names_spec='$libname.dll.a'
9521 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9522 postinstall_cmds='base_file=`basename \${file}`~
9523 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9524 dldir=$destdir/`dirname \$dlpath`~
9525 test -d \$dldir || mkdir -p \$dldir~
9526 $install_prog $dir/$dlname \$dldir/$dlname~
9527 chmod a+x \$dldir/$dlname'
9528 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9529 dlpath=$dir/\$dldll~
9531 shlibpath_overrides_runpath=yes
9535 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9536 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9537 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9540 # MinGW DLLs use traditional 'lib' prefix
9541 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9542 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9543 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9544 # It is most probably a Windows format PATH printed by
9545 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9546 # path with ; separators, and with drive letters. We can handle the
9547 # drive letters (cygwin fileutils understands them), so leave them,
9548 # especially as we might pass files found there to a mingw objdump,
9549 # which wouldn't understand a cygwinified path. Ahh.
9550 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9552 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9556 # pw32 DLLs use 'pw' prefix rather than 'lib'
9557 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9563 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9566 dynamic_linker='Win32 ld.exe'
9567 # FIXME: first we should search . and the directory the executable is in
9571 darwin* | rhapsody*)
9572 dynamic_linker="$host_os dyld"
9576 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9577 soname_spec='${libname}${release}${major}$shared_ext'
9578 shlibpath_overrides_runpath=yes
9579 shlibpath_var=DYLD_LIBRARY_PATH
9580 shrext_cmds='.dylib'
9581 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9582 if test "$GCC" = yes; then
9583 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"`
9585 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9587 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9595 soname_spec='${libname}${release}${shared_ext}$major'
9596 shlibpath_var=LD_LIBRARY_PATH
9607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9608 soname_spec='${libname}${release}${shared_ext}$major'
9609 shlibpath_var=LD_LIBRARY_PATH
9610 shlibpath_overrides_runpath=no
9611 hardcode_into_libs=yes
9612 dynamic_linker='GNU ld.so'
9615 freebsd* | dragonfly*)
9616 # DragonFly does not have aout. When/if they implement a new
9617 # versioning mechanism, adjust this.
9618 if test -x /usr/bin/objformat; then
9619 objformat=`/usr/bin/objformat`
9622 freebsd[123]*) objformat=aout ;;
9626 version_type=freebsd-$objformat
9627 case $version_type in
9629 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9634 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9638 shlibpath_var=LD_LIBRARY_PATH
9641 shlibpath_overrides_runpath=yes
9643 freebsd3.[01]* | freebsdelf3.[01]*)
9644 shlibpath_overrides_runpath=yes
9645 hardcode_into_libs=yes
9647 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9648 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9649 shlibpath_overrides_runpath=no
9650 hardcode_into_libs=yes
9652 freebsd*) # from 4.6 on
9653 shlibpath_overrides_runpath=yes
9654 hardcode_into_libs=yes
9663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9664 soname_spec='${libname}${release}${shared_ext}$major'
9665 shlibpath_var=LD_LIBRARY_PATH
9666 hardcode_into_libs=yes
9669 hpux9* | hpux10* | hpux11*)
9670 # Give a soname corresponding to the major version so that dld.sl refuses to
9671 # link against other versions.
9678 hardcode_into_libs=yes
9679 dynamic_linker="$host_os dld.so"
9680 shlibpath_var=LD_LIBRARY_PATH
9681 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9683 soname_spec='${libname}${release}${shared_ext}$major'
9684 if test "X$HPUX_IA64_MODE" = X32; then
9685 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9687 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9689 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9693 hardcode_into_libs=yes
9694 dynamic_linker="$host_os dld.sl"
9695 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9696 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9698 soname_spec='${libname}${release}${shared_ext}$major'
9699 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9704 dynamic_linker="$host_os dld.sl"
9705 shlibpath_var=SHLIB_PATH
9706 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9708 soname_spec='${libname}${release}${shared_ext}$major'
9711 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9712 postinstall_cmds='chmod 555 $lib'
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'
9721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9722 shlibpath_var=LD_LIBRARY_PATH
9723 shlibpath_overrides_runpath=no
9724 hardcode_into_libs=yes
9727 irix5* | irix6* | nonstopux*)
9729 nonstopux*) version_type=nonstopux ;;
9731 if test "$lt_cv_prog_gnu_ld" = yes; then
9739 soname_spec='${libname}${release}${shared_ext}$major'
9740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9742 irix5* | nonstopux*)
9746 case $LD in # libtool.m4 will add one of these switches to LD
9747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9748 libsuff= shlibsuff= libmagic=32-bit;;
9749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9750 libsuff=32 shlibsuff=N32 libmagic=N32;;
9751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9753 *) libsuff= shlibsuff= libmagic=never-match;;
9757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9758 shlibpath_overrides_runpath=no
9759 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9760 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9761 hardcode_into_libs=yes
9764 # No shared lib support for Linux oldld, aout, or coff.
9765 linux*oldld* | linux*aout* | linux*coff*)
9769 # This must be Linux ELF.
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775 soname_spec='${libname}${release}${shared_ext}$major'
9776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9777 shlibpath_var=LD_LIBRARY_PATH
9778 shlibpath_overrides_runpath=no
9779 # This implies no fast_install, which is unacceptable.
9780 # Some rework will be needed to allow for fast_install
9781 # before this can be enabled.
9782 hardcode_into_libs=yes
9784 # Append ld.so.conf contents to the search path
9785 if test -f /etc/ld.so.conf; then
9786 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' ' '`
9787 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9790 # We used to test for /lib/ld.so.1 and disable shared libraries on
9791 # powerpc, because MkLinux only supported shared libraries with the
9792 # GNU dynamic linker. Since this was broken with cross compilers,
9793 # most powerpc-linux boxes support dynamic linking these days and
9794 # people can always --disable-shared, the test was removed, and we
9795 # assume the GNU/Linux dynamic linker is in use.
9796 dynamic_linker='GNU/Linux ld.so'
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 shlibpath_overrides_runpath=no
9807 hardcode_into_libs=yes
9808 dynamic_linker='GNU ld.so'
9815 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9818 dynamic_linker='NetBSD (a.out) ld.so'
9820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9821 soname_spec='${libname}${release}${shared_ext}$major'
9822 dynamic_linker='NetBSD ld.elf_so'
9824 shlibpath_var=LD_LIBRARY_PATH
9825 shlibpath_overrides_runpath=yes
9826 hardcode_into_libs=yes
9831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9832 shlibpath_var=LD_LIBRARY_PATH
9833 shlibpath_overrides_runpath=yes
9840 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9841 soname_spec='${libname}${release}${shared_ext}$major'
9842 shlibpath_var=LD_LIBRARY_PATH
9843 shlibpath_overrides_runpath=yes
9848 sys_lib_dlsearch_path_spec="/usr/lib"
9850 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9852 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9853 *) need_version=no ;;
9855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9857 shlibpath_var=LD_LIBRARY_PATH
9858 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9860 openbsd2.[89] | openbsd2.[89].*)
9861 shlibpath_overrides_runpath=no
9864 shlibpath_overrides_runpath=yes
9868 shlibpath_overrides_runpath=yes
9873 libname_spec='$name'
9876 library_names_spec='$libname${shared_ext} $libname.a'
9877 dynamic_linker='OS/2 ld.exe'
9878 shlibpath_var=LIBPATH
9881 osf3* | osf4* | osf5*)
9885 soname_spec='${libname}${release}${shared_ext}$major'
9886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9887 shlibpath_var=LD_LIBRARY_PATH
9888 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9889 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9897 soname_spec='${libname}${release}${shared_ext}$major'
9898 shlibpath_var=LD_LIBRARY_PATH
9899 shlibpath_overrides_runpath=yes
9900 hardcode_into_libs=yes
9901 # ldd complains unless libraries are executable
9902 postinstall_cmds='chmod +x $lib'
9907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9908 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9909 shlibpath_var=LD_LIBRARY_PATH
9910 shlibpath_overrides_runpath=yes
9911 if test "$with_gnu_ld" = yes; then
9919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9920 soname_spec='${libname}${release}${shared_ext}$major'
9921 shlibpath_var=LD_LIBRARY_PATH
9922 case $host_vendor in
9924 shlibpath_overrides_runpath=no
9926 export_dynamic_flag_spec='${wl}-Blargedynsym'
9927 runpath_var=LD_RUN_PATH
9935 shlibpath_overrides_runpath=no
9936 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9942 if test -d /usr/nec ;then
9944 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9945 soname_spec='$libname${shared_ext}.$major'
9946 shlibpath_var=LD_LIBRARY_PATH
9950 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9951 version_type=freebsd-elf
9954 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9955 soname_spec='${libname}${release}${shared_ext}$major'
9956 shlibpath_var=LD_LIBRARY_PATH
9957 hardcode_into_libs=yes
9958 if test "$with_gnu_ld" = yes; then
9959 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9960 shlibpath_overrides_runpath=no
9962 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9963 shlibpath_overrides_runpath=yes
9966 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9970 sys_lib_dlsearch_path_spec='/usr/lib'
9975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9976 soname_spec='${libname}${release}${shared_ext}$major'
9977 shlibpath_var=LD_LIBRARY_PATH
9984 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9985 echo "${ECHO_T}$dynamic_linker" >&6; }
9986 test "$dynamic_linker" = no && can_build_shared=no
9988 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9989 if test "$GCC" = yes; then
9990 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9994 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
9995 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
9996 if test "${libltdl_cv_shlibext+set}" = set; then
9997 echo $ECHO_N "(cached) $ECHO_C" >&6
10001 eval libltdl_cv_shlibext=$shrext_cmds
10004 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10005 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10006 if test -n "$libltdl_cv_shlibext"; then
10008 cat >>confdefs.h <<_ACEOF
10009 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10015 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10016 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10017 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10018 echo $ECHO_N "(cached) $ECHO_C" >&6
10020 libltdl_cv_shlibpath_var="$shlibpath_var"
10022 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10023 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10024 if test -n "$libltdl_cv_shlibpath_var"; then
10026 cat >>confdefs.h <<_ACEOF
10027 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10033 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10034 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10035 if test "${libltdl_cv_sys_search_path+set}" = set; then
10036 echo $ECHO_N "(cached) $ECHO_C" >&6
10038 libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10040 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10041 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10042 if test -n "$libltdl_cv_sys_search_path"; then
10044 for dir in $libltdl_cv_sys_search_path; do
10045 if test -z "$sys_search_path"; then
10046 sys_search_path="$dir"
10048 sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10052 cat >>confdefs.h <<_ACEOF
10053 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10058 { echo "$as_me:$LINENO: checking for objdir" >&5
10059 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10060 if test "${libltdl_cv_objdir+set}" = set; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 libltdl_cv_objdir="$objdir"
10064 if test -n "$objdir"; then
10067 rm -f .libs 2>/dev/null
10068 mkdir .libs 2>/dev/null
10069 if test -d .libs; then
10070 libltdl_cv_objdir=.libs
10072 # MS-DOS does not allow filenames that begin with a dot.
10073 libltdl_cv_objdir=_libs
10075 rmdir .libs 2>/dev/null
10079 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10080 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10082 cat >>confdefs.h <<_ACEOF
10083 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10091 # Check for command to grab the raw symbol name followed by C symbol from nm.
10092 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10093 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10094 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10098 # These are sane defaults that work on at least a few old systems.
10099 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10101 # Character class describing NM global symbol codes.
10102 symcode='[BCDEGRST]'
10104 # Regexp to match symbols that can be accessed directly from C.
10105 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10107 # Transform an extracted symbol line into a proper C declaration
10108 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10110 # Transform an extracted symbol line into symbol name and symbol address
10111 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'"
10113 # Define system-specific variables.
10118 cygwin* | mingw* | pw32*)
10119 symcode='[ABCDGISTW]'
10121 hpux*) # Its linker distinguishes data from code symbols
10122 if test "$host_cpu" = ia64; then
10123 symcode='[ABCDEGRST]'
10125 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10126 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'"
10129 if test "$host_cpu" = ia64; then
10130 symcode='[ABCDGIRSTW]'
10131 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10132 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'"
10135 irix* | nonstopux*)
10136 symcode='[BCDEGRST]'
10139 symcode='[BCDEGQRST]'
10150 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10158 # Handle CRLF in mingw tool chain
10162 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10166 # If we're using GNU nm, then use its standard symbol codes.
10167 case `$NM -V 2>&1` in
10168 *GNU* | *'with BFD'*)
10169 symcode='[ABCDGIRSTW]' ;;
10172 # Try without a prefix undercore, then with it.
10173 for ac_symprfx in "" "_"; do
10175 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10176 symxfrm="\\1 $ac_symprfx\\2 \\2"
10178 # Write the raw and C identifiers.
10179 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10181 # Check to see that the pipe works correctly.
10185 cat > conftest.$ac_ext <<EOF
10190 void nm_test_func(){}
10194 int main(){nm_test_var='a';nm_test_func();return(0);}
10197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10198 (eval $ac_compile) 2>&5
10200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10201 (exit $ac_status); }; then
10202 # Now try to grab the symbols.
10204 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10205 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10208 (exit $ac_status); } && test -s "$nlist"; then
10209 # Try sorting and uniquifying the output.
10210 if sort "$nlist" | uniq > "$nlist"T; then
10211 mv -f "$nlist"T "$nlist"
10216 # Make sure that we snagged all the symbols we need.
10217 if grep ' nm_test_var$' "$nlist" >/dev/null; then
10218 if grep ' nm_test_func$' "$nlist" >/dev/null; then
10219 cat <<EOF > conftest.$ac_ext
10225 # Now generate the symbol file.
10226 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10228 cat <<EOF >> conftest.$ac_ext
10229 #if defined (__STDC__) && __STDC__
10230 # define lt_ptr_t void *
10232 # define lt_ptr_t char *
10236 /* The mapping between symbol names and symbols. */
10241 lt_preloaded_symbols[] =
10244 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10245 cat <<\EOF >> conftest.$ac_ext
10253 # Now try linking the two files.
10254 mv conftest.$ac_objext conftstm.$ac_objext
10255 lt_save_LIBS="$LIBS"
10256 lt_save_CFLAGS="$CFLAGS"
10257 LIBS="conftstm.$ac_objext"
10258 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10259 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10260 (eval $ac_link) 2>&5
10262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10263 (exit $ac_status); } && test -s conftest${ac_exeext}; then
10266 LIBS="$lt_save_LIBS"
10267 CFLAGS="$lt_save_CFLAGS"
10269 echo "cannot find nm_test_func in $nlist" >&5
10272 echo "cannot find nm_test_var in $nlist" >&5
10275 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10278 echo "$progname: failed program was:" >&5
10279 cat conftest.$ac_ext >&5
10281 rm -f conftest* conftst*
10283 # Do not use the global_symbol_pipe unless it works.
10284 if test "$pipe_works" = yes; then
10287 lt_cv_sys_global_symbol_pipe=
10293 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10294 lt_cv_sys_global_symbol_to_cdecl=
10296 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10297 { echo "$as_me:$LINENO: result: failed" >&5
10298 echo "${ECHO_T}failed" >&6; }
10300 { echo "$as_me:$LINENO: result: ok" >&5
10301 echo "${ECHO_T}ok" >&6; }
10305 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10306 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10307 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10308 echo $ECHO_N "(cached) $ECHO_C" >&6
10310 if test -n "$lt_cv_sys_global_symbol_pipe"; then
10311 libltdl_cv_preloaded_symbols=yes
10313 libltdl_cv_preloaded_symbols=no
10317 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10318 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10319 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10321 cat >>confdefs.h <<\_ACEOF
10322 #define HAVE_PRELOADED_SYMBOLS 1
10330 ac_cpp='$CPP $CPPFLAGS'
10331 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10332 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10333 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10336 { echo "$as_me:$LINENO: checking for shl_load" >&5
10337 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10338 if test "${ac_cv_func_shl_load+set}" = set; then
10339 echo $ECHO_N "(cached) $ECHO_C" >&6
10341 cat >conftest.$ac_ext <<_ACEOF
10344 cat confdefs.h >>conftest.$ac_ext
10345 cat >>conftest.$ac_ext <<_ACEOF
10346 /* end confdefs.h. */
10347 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10348 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10349 #define shl_load innocuous_shl_load
10351 /* System header to define __stub macros and hopefully few prototypes,
10352 which can conflict with char shl_load (); below.
10353 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10354 <limits.h> exists even on freestanding compilers. */
10357 # include <limits.h>
10359 # include <assert.h>
10364 /* Override any GCC internal prototype to avoid an error.
10365 Use char because int might match the return type of a GCC
10366 builtin and then its argument prototype would still apply. */
10371 /* The GNU C library defines this for functions which it implements
10372 to always fail with ENOSYS. Some functions are actually named
10373 something starting with __ and the normal name is an alias. */
10374 #if defined __stub_shl_load || defined __stub___shl_load
10381 return shl_load ();
10386 rm -f conftest.$ac_objext conftest$ac_exeext
10387 if { (ac_try="$ac_link"
10388 case "(($ac_try" in
10389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10390 *) ac_try_echo=$ac_try;;
10392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10393 (eval "$ac_link") 2>conftest.er1
10395 grep -v '^ *+' conftest.er1 >conftest.err
10397 cat conftest.err >&5
10398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10399 (exit $ac_status); } &&
10400 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10401 { (case "(($ac_try" in
10402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10403 *) ac_try_echo=$ac_try;;
10405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10406 (eval "$ac_try") 2>&5
10408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10409 (exit $ac_status); }; } &&
10410 { ac_try='test -s conftest$ac_exeext'
10411 { (case "(($ac_try" in
10412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10413 *) ac_try_echo=$ac_try;;
10415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10416 (eval "$ac_try") 2>&5
10418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10419 (exit $ac_status); }; }; then
10420 ac_cv_func_shl_load=yes
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10425 ac_cv_func_shl_load=no
10428 rm -f core conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10431 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10432 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10433 if test $ac_cv_func_shl_load = yes; then
10435 cat >>confdefs.h <<\_ACEOF
10436 #define HAVE_SHL_LOAD 1
10440 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10441 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10442 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10443 echo $ECHO_N "(cached) $ECHO_C" >&6
10445 ac_check_lib_save_LIBS=$LIBS
10447 cat >conftest.$ac_ext <<_ACEOF
10450 cat confdefs.h >>conftest.$ac_ext
10451 cat >>conftest.$ac_ext <<_ACEOF
10452 /* end confdefs.h. */
10454 /* Override any GCC internal prototype to avoid an error.
10455 Use char because int might match the return type of a GCC
10456 builtin and then its argument prototype would still apply. */
10464 return shl_load ();
10469 rm -f conftest.$ac_objext conftest$ac_exeext
10470 if { (ac_try="$ac_link"
10471 case "(($ac_try" in
10472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10473 *) ac_try_echo=$ac_try;;
10475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10476 (eval "$ac_link") 2>conftest.er1
10478 grep -v '^ *+' conftest.er1 >conftest.err
10480 cat conftest.err >&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); } &&
10483 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10484 { (case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489 (eval "$ac_try") 2>&5
10491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); }; } &&
10493 { ac_try='test -s conftest$ac_exeext'
10494 { (case "(($ac_try" in
10495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10496 *) ac_try_echo=$ac_try;;
10498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10499 (eval "$ac_try") 2>&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); }; }; then
10503 ac_cv_lib_dld_shl_load=yes
10505 echo "$as_me: failed program was:" >&5
10506 sed 's/^/| /' conftest.$ac_ext >&5
10508 ac_cv_lib_dld_shl_load=no
10511 rm -f core conftest.err conftest.$ac_objext \
10512 conftest$ac_exeext conftest.$ac_ext
10513 LIBS=$ac_check_lib_save_LIBS
10515 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10516 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10517 if test $ac_cv_lib_dld_shl_load = yes; then
10519 cat >>confdefs.h <<\_ACEOF
10520 #define HAVE_SHL_LOAD 1
10523 LIBADD_DL="$LIBADD_DL -ldld"
10525 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10526 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10527 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10528 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 ac_check_lib_save_LIBS=$LIBS
10532 cat >conftest.$ac_ext <<_ACEOF
10535 cat confdefs.h >>conftest.$ac_ext
10536 cat >>conftest.$ac_ext <<_ACEOF
10537 /* end confdefs.h. */
10539 /* Override any GCC internal prototype to avoid an error.
10540 Use char because int might match the return type of a GCC
10541 builtin and then its argument prototype would still apply. */
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (ac_try="$ac_link"
10556 case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_link") 2>conftest.er1
10563 grep -v '^ *+' conftest.er1 >conftest.err
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } &&
10568 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10569 { (case "(($ac_try" in
10570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10571 *) ac_try_echo=$ac_try;;
10573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10574 (eval "$ac_try") 2>&5
10576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10577 (exit $ac_status); }; } &&
10578 { ac_try='test -s conftest$ac_exeext'
10579 { (case "(($ac_try" in
10580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10581 *) ac_try_echo=$ac_try;;
10583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10584 (eval "$ac_try") 2>&5
10586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10587 (exit $ac_status); }; }; then
10588 ac_cv_lib_dl_dlopen=yes
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.$ac_ext >&5
10593 ac_cv_lib_dl_dlopen=no
10596 rm -f core conftest.err conftest.$ac_objext \
10597 conftest$ac_exeext conftest.$ac_ext
10598 LIBS=$ac_check_lib_save_LIBS
10600 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10601 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10602 if test $ac_cv_lib_dl_dlopen = yes; then
10604 cat >>confdefs.h <<\_ACEOF
10605 #define HAVE_LIBDL 1
10608 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10610 cat >conftest.$ac_ext <<_ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10617 # include <dlfcn.h>
10628 rm -f conftest.$ac_objext conftest$ac_exeext
10629 if { (ac_try="$ac_link"
10630 case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_link") 2>conftest.er1
10637 grep -v '^ *+' conftest.er1 >conftest.err
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } &&
10642 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10643 { (case "(($ac_try" in
10644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10645 *) ac_try_echo=$ac_try;;
10647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10648 (eval "$ac_try") 2>&5
10650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10651 (exit $ac_status); }; } &&
10652 { ac_try='test -s conftest$ac_exeext'
10653 { (case "(($ac_try" in
10654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10655 *) ac_try_echo=$ac_try;;
10657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10658 (eval "$ac_try") 2>&5
10660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10661 (exit $ac_status); }; }; then
10663 cat >>confdefs.h <<\_ACEOF
10664 #define HAVE_LIBDL 1
10666 libltdl_cv_func_dlopen="yes"
10668 echo "$as_me: failed program was:" >&5
10669 sed 's/^/| /' conftest.$ac_ext >&5
10671 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10672 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10673 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10674 echo $ECHO_N "(cached) $ECHO_C" >&6
10676 ac_check_lib_save_LIBS=$LIBS
10677 LIBS="-lsvld $LIBS"
10678 cat >conftest.$ac_ext <<_ACEOF
10681 cat confdefs.h >>conftest.$ac_ext
10682 cat >>conftest.$ac_ext <<_ACEOF
10683 /* end confdefs.h. */
10685 /* Override any GCC internal prototype to avoid an error.
10686 Use char because int might match the return type of a GCC
10687 builtin and then its argument prototype would still apply. */
10700 rm -f conftest.$ac_objext conftest$ac_exeext
10701 if { (ac_try="$ac_link"
10702 case "(($ac_try" in
10703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10704 *) ac_try_echo=$ac_try;;
10706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10707 (eval "$ac_link") 2>conftest.er1
10709 grep -v '^ *+' conftest.er1 >conftest.err
10711 cat conftest.err >&5
10712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10713 (exit $ac_status); } &&
10714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10715 { (case "(($ac_try" in
10716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10717 *) ac_try_echo=$ac_try;;
10719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10720 (eval "$ac_try") 2>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); }; } &&
10724 { ac_try='test -s conftest$ac_exeext'
10725 { (case "(($ac_try" in
10726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10727 *) ac_try_echo=$ac_try;;
10729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10730 (eval "$ac_try") 2>&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); }; }; then
10734 ac_cv_lib_svld_dlopen=yes
10736 echo "$as_me: failed program was:" >&5
10737 sed 's/^/| /' conftest.$ac_ext >&5
10739 ac_cv_lib_svld_dlopen=no
10742 rm -f core conftest.err conftest.$ac_objext \
10743 conftest$ac_exeext conftest.$ac_ext
10744 LIBS=$ac_check_lib_save_LIBS
10746 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10747 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10748 if test $ac_cv_lib_svld_dlopen = yes; then
10750 cat >>confdefs.h <<\_ACEOF
10751 #define HAVE_LIBDL 1
10754 LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
10756 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10757 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10758 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 ac_check_lib_save_LIBS=$LIBS
10763 cat >conftest.$ac_ext <<_ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h. */
10770 /* Override any GCC internal prototype to avoid an error.
10771 Use char because int might match the return type of a GCC
10772 builtin and then its argument prototype would still apply. */
10780 return dld_link ();
10785 rm -f conftest.$ac_objext conftest$ac_exeext
10786 if { (ac_try="$ac_link"
10787 case "(($ac_try" in
10788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_link") 2>conftest.er1
10794 grep -v '^ *+' conftest.er1 >conftest.err
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } &&
10799 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10800 { (case "(($ac_try" in
10801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802 *) ac_try_echo=$ac_try;;
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805 (eval "$ac_try") 2>&5
10807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808 (exit $ac_status); }; } &&
10809 { ac_try='test -s conftest$ac_exeext'
10810 { (case "(($ac_try" in
10811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812 *) ac_try_echo=$ac_try;;
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815 (eval "$ac_try") 2>&5
10817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818 (exit $ac_status); }; }; then
10819 ac_cv_lib_dld_dld_link=yes
10821 echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10824 ac_cv_lib_dld_dld_link=no
10827 rm -f core conftest.err conftest.$ac_objext \
10828 conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10831 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10832 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10833 if test $ac_cv_lib_dld_dld_link = yes; then
10835 cat >>confdefs.h <<\_ACEOF
10839 LIBADD_DL="$LIBADD_DL -ldld"
10841 { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
10842 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
10843 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
10844 echo $ECHO_N "(cached) $ECHO_C" >&6
10846 cat >conftest.$ac_ext <<_ACEOF
10849 cat confdefs.h >>conftest.$ac_ext
10850 cat >>conftest.$ac_ext <<_ACEOF
10851 /* end confdefs.h. */
10852 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
10853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10854 #define _dyld_func_lookup innocuous__dyld_func_lookup
10856 /* System header to define __stub macros and hopefully few prototypes,
10857 which can conflict with char _dyld_func_lookup (); below.
10858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10859 <limits.h> exists even on freestanding compilers. */
10862 # include <limits.h>
10864 # include <assert.h>
10867 #undef _dyld_func_lookup
10869 /* Override any GCC internal prototype to avoid an error.
10870 Use char because int might match the return type of a GCC
10871 builtin and then its argument prototype would still apply. */
10875 char _dyld_func_lookup ();
10876 /* The GNU C library defines this for functions which it implements
10877 to always fail with ENOSYS. Some functions are actually named
10878 something starting with __ and the normal name is an alias. */
10879 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
10886 return _dyld_func_lookup ();
10891 rm -f conftest.$ac_objext conftest$ac_exeext
10892 if { (ac_try="$ac_link"
10893 case "(($ac_try" in
10894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10895 *) ac_try_echo=$ac_try;;
10897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10898 (eval "$ac_link") 2>conftest.er1
10900 grep -v '^ *+' conftest.er1 >conftest.err
10902 cat conftest.err >&5
10903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10904 (exit $ac_status); } &&
10905 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10906 { (case "(($ac_try" in
10907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10908 *) ac_try_echo=$ac_try;;
10910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10911 (eval "$ac_try") 2>&5
10913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10914 (exit $ac_status); }; } &&
10915 { ac_try='test -s conftest$ac_exeext'
10916 { (case "(($ac_try" in
10917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10918 *) ac_try_echo=$ac_try;;
10920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10921 (eval "$ac_try") 2>&5
10923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10924 (exit $ac_status); }; }; then
10925 ac_cv_func__dyld_func_lookup=yes
10927 echo "$as_me: failed program was:" >&5
10928 sed 's/^/| /' conftest.$ac_ext >&5
10930 ac_cv_func__dyld_func_lookup=no
10933 rm -f core conftest.err conftest.$ac_objext \
10934 conftest$ac_exeext conftest.$ac_ext
10936 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
10937 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
10938 if test $ac_cv_func__dyld_func_lookup = yes; then
10940 cat >>confdefs.h <<\_ACEOF
10941 #define HAVE_DYLD 1
10955 rm -f core conftest.err conftest.$ac_objext \
10956 conftest$ac_exeext conftest.$ac_ext
10967 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
10969 lt_save_LIBS="$LIBS"
10970 LIBS="$LIBS $LIBADD_DL"
10972 for ac_func in dlerror
10974 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10975 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10976 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10977 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10978 echo $ECHO_N "(cached) $ECHO_C" >&6
10980 cat >conftest.$ac_ext <<_ACEOF
10983 cat confdefs.h >>conftest.$ac_ext
10984 cat >>conftest.$ac_ext <<_ACEOF
10985 /* end confdefs.h. */
10986 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10987 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10988 #define $ac_func innocuous_$ac_func
10990 /* System header to define __stub macros and hopefully few prototypes,
10991 which can conflict with char $ac_func (); below.
10992 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10993 <limits.h> exists even on freestanding compilers. */
10996 # include <limits.h>
10998 # include <assert.h>
11003 /* Override any GCC internal prototype to avoid an error.
11004 Use char because int might match the return type of a GCC
11005 builtin and then its argument prototype would still apply. */
11010 /* The GNU C library defines this for functions which it implements
11011 to always fail with ENOSYS. Some functions are actually named
11012 something starting with __ and the normal name is an alias. */
11013 #if defined __stub_$ac_func || defined __stub___$ac_func
11020 return $ac_func ();
11025 rm -f conftest.$ac_objext conftest$ac_exeext
11026 if { (ac_try="$ac_link"
11027 case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_link") 2>conftest.er1
11034 grep -v '^ *+' conftest.er1 >conftest.err
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } &&
11039 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11040 { (case "(($ac_try" in
11041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11042 *) ac_try_echo=$ac_try;;
11044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11045 (eval "$ac_try") 2>&5
11047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11048 (exit $ac_status); }; } &&
11049 { ac_try='test -s conftest$ac_exeext'
11050 { (case "(($ac_try" in
11051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11052 *) ac_try_echo=$ac_try;;
11054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11055 (eval "$ac_try") 2>&5
11057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); }; }; then
11059 eval "$as_ac_var=yes"
11061 echo "$as_me: failed program was:" >&5
11062 sed 's/^/| /' conftest.$ac_ext >&5
11064 eval "$as_ac_var=no"
11067 rm -f core conftest.err conftest.$ac_objext \
11068 conftest$ac_exeext conftest.$ac_ext
11070 ac_res=`eval echo '${'$as_ac_var'}'`
11071 { echo "$as_me:$LINENO: result: $ac_res" >&5
11072 echo "${ECHO_T}$ac_res" >&6; }
11073 if test `eval echo '${'$as_ac_var'}'` = yes; then
11074 cat >>confdefs.h <<_ACEOF
11075 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11081 LIBS="$lt_save_LIBS"
11084 ac_cpp='$CPP $CPPFLAGS'
11085 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11086 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11087 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11091 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11092 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11093 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11096 ac_cv_sys_symbol_underscore=no
11097 cat > conftest.$ac_ext <<EOF
11098 void nm_test_func(){}
11099 int main(){nm_test_func;return 0;}
11101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11102 (eval $ac_compile) 2>&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); }; then
11106 # Now try to grab the symbols.
11107 ac_nlist=conftest.nm
11108 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11109 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11112 (exit $ac_status); } && test -s "$ac_nlist"; then
11113 # See whether the symbols have a leading underscore.
11114 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11115 ac_cv_sys_symbol_underscore=yes
11117 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11120 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11124 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11127 echo "configure: failed program was:" >&5
11133 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11134 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11137 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11138 if test x"$libltdl_cv_func_dlopen" = xyes ||
11139 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11140 { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11141 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11142 if test "${libltdl_cv_need_uscore+set}" = set; then
11143 echo $ECHO_N "(cached) $ECHO_C" >&6
11145 libltdl_cv_need_uscore=unknown
11147 LIBS="$LIBS $LIBADD_DL"
11148 if test "$cross_compiling" = yes; then :
11149 libltdl_cv_need_uscore=cross
11151 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11152 lt_status=$lt_dlunknown
11153 cat > conftest.$ac_ext <<EOF
11154 #line 11154 "configure"
11155 #include "confdefs.h"
11164 # define LT_DLGLOBAL RTLD_GLOBAL
11167 # define LT_DLGLOBAL DL_GLOBAL
11169 # define LT_DLGLOBAL 0
11173 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11174 find out it does not work in some platform. */
11175 #ifndef LT_DLLAZY_OR_NOW
11177 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11180 # define LT_DLLAZY_OR_NOW DL_LAZY
11183 # define LT_DLLAZY_OR_NOW RTLD_NOW
11186 # define LT_DLLAZY_OR_NOW DL_NOW
11188 # define LT_DLLAZY_OR_NOW 0
11196 extern "C" void exit (int);
11199 void fnord() { int i=42;}
11202 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11203 int status = $lt_dlunknown;
11207 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11208 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11209 /* dlclose (self); */
11217 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11218 (eval $ac_link) 2>&5
11220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11221 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11222 (./conftest; exit; ) >&5 2>/dev/null
11224 case x$lt_status in
11225 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11226 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11227 x$lt_dlunknown|x*) ;;
11230 # compilation failed
11239 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11240 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11244 if test x"$libltdl_cv_need_uscore" = xyes; then
11246 cat >>confdefs.h <<\_ACEOF
11247 #define NEED_USCORE 1
11253 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11254 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11255 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11258 # PORTME does your system automatically load deplibs for dlopen?
11259 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11260 # For now, we just catch OSes we know something about -- in the
11261 # future, we'll try test this programmatically.
11262 libltdl_cv_sys_dlopen_deplibs=unknown
11264 aix3*|aix4.1.*|aix4.2.*)
11265 # Unknown whether this is true for these versions of AIX, but
11266 # we want this `case' here to explicitly catch those versions.
11267 libltdl_cv_sys_dlopen_deplibs=unknown
11270 libltdl_cv_sys_dlopen_deplibs=yes
11273 # Assuming the user has installed a libdl from somewhere, this is true
11274 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11275 libltdl_cv_sys_dlopen_deplibs=yes
11277 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11278 # GNU and its variants, using gnu ld.so (Glibc)
11279 libltdl_cv_sys_dlopen_deplibs=yes
11282 libltdl_cv_sys_dlopen_deplibs=yes
11285 libltdl_cv_sys_dlopen_deplibs=yes
11287 irix[12345]*|irix6.[01]*)
11288 # Catch all versions of IRIX before 6.2, and indicate that we don't
11289 # know how it worked for any of those versions.
11290 libltdl_cv_sys_dlopen_deplibs=unknown
11293 # The case above catches anything before 6.2, and it's known that
11294 # at 6.2 and later dlopen does load deplibs.
11295 libltdl_cv_sys_dlopen_deplibs=yes
11298 libltdl_cv_sys_dlopen_deplibs=yes
11301 libltdl_cv_sys_dlopen_deplibs=yes
11304 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11305 # it did *not* use an RPATH in a shared library to find objects the
11306 # library depends on, so we explictly say `no'.
11307 libltdl_cv_sys_dlopen_deplibs=no
11309 osf5.0|osf5.0a|osf5.1)
11310 # dlopen *does* load deplibs and with the right loader patch applied
11311 # it even uses RPATH in a shared library to search for shared objects
11312 # that the library depends on, but there's no easy way to know if that
11313 # patch is installed. Since this is the case, all we can really
11314 # say is unknown -- it depends on the patch being installed. If
11315 # it is, this changes to `yes'. Without it, it would be `no'.
11316 libltdl_cv_sys_dlopen_deplibs=unknown
11319 # the two cases above should catch all versions of osf <= 5.1. Read
11320 # the comments above for what we know about them.
11321 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11322 # is used to find them so we can finally say `yes'.
11323 libltdl_cv_sys_dlopen_deplibs=yes
11326 libltdl_cv_sys_dlopen_deplibs=yes
11328 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11329 libltdl_cv_sys_dlopen_deplibs=yes
11334 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11335 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11336 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11338 cat >>confdefs.h <<\_ACEOF
11339 #define LTDL_DLOPEN_DEPLIBS 1
11345 for ac_header in argz.h
11347 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11352 echo $ECHO_N "(cached) $ECHO_C" >&6
11354 ac_res=`eval echo '${'$as_ac_Header'}'`
11355 { echo "$as_me:$LINENO: result: $ac_res" >&5
11356 echo "${ECHO_T}$ac_res" >&6; }
11358 # Is the header compilable?
11359 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11360 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11361 cat >conftest.$ac_ext <<_ACEOF
11364 cat confdefs.h >>conftest.$ac_ext
11365 cat >>conftest.$ac_ext <<_ACEOF
11366 /* end confdefs.h. */
11367 $ac_includes_default
11368 #include <$ac_header>
11370 rm -f conftest.$ac_objext
11371 if { (ac_try="$ac_compile"
11372 case "(($ac_try" in
11373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11374 *) ac_try_echo=$ac_try;;
11376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11377 (eval "$ac_compile") 2>conftest.er1
11379 grep -v '^ *+' conftest.er1 >conftest.err
11381 cat conftest.err >&5
11382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11383 (exit $ac_status); } &&
11384 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11385 { (case "(($ac_try" in
11386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11387 *) ac_try_echo=$ac_try;;
11389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11390 (eval "$ac_try") 2>&5
11392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11393 (exit $ac_status); }; } &&
11394 { ac_try='test -s conftest.$ac_objext'
11395 { (case "(($ac_try" in
11396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11397 *) ac_try_echo=$ac_try;;
11399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11400 (eval "$ac_try") 2>&5
11402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11403 (exit $ac_status); }; }; then
11404 ac_header_compiler=yes
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11409 ac_header_compiler=no
11412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11414 echo "${ECHO_T}$ac_header_compiler" >&6; }
11416 # Is the header present?
11417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11419 cat >conftest.$ac_ext <<_ACEOF
11422 cat confdefs.h >>conftest.$ac_ext
11423 cat >>conftest.$ac_ext <<_ACEOF
11424 /* end confdefs.h. */
11425 #include <$ac_header>
11427 if { (ac_try="$ac_cpp conftest.$ac_ext"
11428 case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11435 grep -v '^ *+' conftest.er1 >conftest.err
11437 cat conftest.err >&5
11438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11439 (exit $ac_status); } >/dev/null; then
11440 if test -s conftest.err; then
11441 ac_cpp_err=$ac_c_preproc_warn_flag
11442 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11449 if test -z "$ac_cpp_err"; then
11450 ac_header_preproc=yes
11452 echo "$as_me: failed program was:" >&5
11453 sed 's/^/| /' conftest.$ac_ext >&5
11455 ac_header_preproc=no
11458 rm -f conftest.err conftest.$ac_ext
11459 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11460 echo "${ECHO_T}$ac_header_preproc" >&6; }
11462 # So? What about this header?
11463 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11465 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11466 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11468 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11469 ac_header_preproc=yes
11472 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11473 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11474 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11475 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11477 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11479 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11480 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11481 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11482 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11483 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11485 ## ----------------------------------- ##
11486 ## Report this to llvmbugs@cs.uiuc.edu ##
11487 ## ----------------------------------- ##
11489 ) | sed "s/^/$as_me: WARNING: /" >&2
11492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11497 eval "$as_ac_Header=\$ac_header_preproc"
11499 ac_res=`eval echo '${'$as_ac_Header'}'`
11500 { echo "$as_me:$LINENO: result: $ac_res" >&5
11501 echo "${ECHO_T}$ac_res" >&6; }
11504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11505 cat >>confdefs.h <<_ACEOF
11506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11514 { echo "$as_me:$LINENO: checking for error_t" >&5
11515 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11516 if test "${ac_cv_type_error_t+set}" = set; then
11517 echo $ECHO_N "(cached) $ECHO_C" >&6
11519 cat >conftest.$ac_ext <<_ACEOF
11522 cat confdefs.h >>conftest.$ac_ext
11523 cat >>conftest.$ac_ext <<_ACEOF
11524 /* end confdefs.h. */
11529 typedef error_t ac__type_new_;
11533 if ((ac__type_new_ *) 0)
11535 if (sizeof (ac__type_new_))
11541 rm -f conftest.$ac_objext
11542 if { (ac_try="$ac_compile"
11543 case "(($ac_try" in
11544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11545 *) ac_try_echo=$ac_try;;
11547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11548 (eval "$ac_compile") 2>conftest.er1
11550 grep -v '^ *+' conftest.er1 >conftest.err
11552 cat conftest.err >&5
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); } &&
11555 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11556 { (case "(($ac_try" in
11557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11558 *) ac_try_echo=$ac_try;;
11560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11561 (eval "$ac_try") 2>&5
11563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11564 (exit $ac_status); }; } &&
11565 { ac_try='test -s conftest.$ac_objext'
11566 { (case "(($ac_try" in
11567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11568 *) ac_try_echo=$ac_try;;
11570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11571 (eval "$ac_try") 2>&5
11573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11574 (exit $ac_status); }; }; then
11575 ac_cv_type_error_t=yes
11577 echo "$as_me: failed program was:" >&5
11578 sed 's/^/| /' conftest.$ac_ext >&5
11580 ac_cv_type_error_t=no
11583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11585 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11586 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11587 if test $ac_cv_type_error_t = yes; then
11589 cat >>confdefs.h <<_ACEOF
11590 #define HAVE_ERROR_T 1
11596 cat >>confdefs.h <<\_ACEOF
11597 #define error_t int
11608 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11610 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11611 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11612 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11613 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11614 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 cat >conftest.$ac_ext <<_ACEOF
11619 cat confdefs.h >>conftest.$ac_ext
11620 cat >>conftest.$ac_ext <<_ACEOF
11621 /* end confdefs.h. */
11622 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11624 #define $ac_func innocuous_$ac_func
11626 /* System header to define __stub macros and hopefully few prototypes,
11627 which can conflict with char $ac_func (); below.
11628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11629 <limits.h> exists even on freestanding compilers. */
11632 # include <limits.h>
11634 # include <assert.h>
11639 /* Override any GCC internal prototype to avoid an error.
11640 Use char because int might match the return type of a GCC
11641 builtin and then its argument prototype would still apply. */
11646 /* The GNU C library defines this for functions which it implements
11647 to always fail with ENOSYS. Some functions are actually named
11648 something starting with __ and the normal name is an alias. */
11649 #if defined __stub_$ac_func || defined __stub___$ac_func
11656 return $ac_func ();
11661 rm -f conftest.$ac_objext conftest$ac_exeext
11662 if { (ac_try="$ac_link"
11663 case "(($ac_try" in
11664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11665 *) ac_try_echo=$ac_try;;
11667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11668 (eval "$ac_link") 2>conftest.er1
11670 grep -v '^ *+' conftest.er1 >conftest.err
11672 cat conftest.err >&5
11673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11674 (exit $ac_status); } &&
11675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11676 { (case "(($ac_try" in
11677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11678 *) ac_try_echo=$ac_try;;
11680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11681 (eval "$ac_try") 2>&5
11683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11684 (exit $ac_status); }; } &&
11685 { ac_try='test -s conftest$ac_exeext'
11686 { (case "(($ac_try" in
11687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11688 *) ac_try_echo=$ac_try;;
11690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11691 (eval "$ac_try") 2>&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); }; }; then
11695 eval "$as_ac_var=yes"
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.$ac_ext >&5
11700 eval "$as_ac_var=no"
11703 rm -f core conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11706 ac_res=`eval echo '${'$as_ac_var'}'`
11707 { echo "$as_me:$LINENO: result: $ac_res" >&5
11708 echo "${ECHO_T}$ac_res" >&6; }
11709 if test `eval echo '${'$as_ac_var'}'` = yes; then
11710 cat >>confdefs.h <<_ACEOF
11711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11744 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
11747 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11748 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11752 echo $ECHO_N "(cached) $ECHO_C" >&6
11754 ac_res=`eval echo '${'$as_ac_Header'}'`
11755 { echo "$as_me:$LINENO: result: $ac_res" >&5
11756 echo "${ECHO_T}$ac_res" >&6; }
11758 # Is the header compilable?
11759 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11760 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11761 cat >conftest.$ac_ext <<_ACEOF
11764 cat confdefs.h >>conftest.$ac_ext
11765 cat >>conftest.$ac_ext <<_ACEOF
11766 /* end confdefs.h. */
11767 $ac_includes_default
11768 #include <$ac_header>
11770 rm -f conftest.$ac_objext
11771 if { (ac_try="$ac_compile"
11772 case "(($ac_try" in
11773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11774 *) ac_try_echo=$ac_try;;
11776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11777 (eval "$ac_compile") 2>conftest.er1
11779 grep -v '^ *+' conftest.er1 >conftest.err
11781 cat conftest.err >&5
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); } &&
11784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11785 { (case "(($ac_try" in
11786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_try") 2>&5
11792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11793 (exit $ac_status); }; } &&
11794 { ac_try='test -s conftest.$ac_objext'
11795 { (case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_try") 2>&5
11802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11803 (exit $ac_status); }; }; then
11804 ac_header_compiler=yes
11806 echo "$as_me: failed program was:" >&5
11807 sed 's/^/| /' conftest.$ac_ext >&5
11809 ac_header_compiler=no
11812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11814 echo "${ECHO_T}$ac_header_compiler" >&6; }
11816 # Is the header present?
11817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11819 cat >conftest.$ac_ext <<_ACEOF
11822 cat confdefs.h >>conftest.$ac_ext
11823 cat >>conftest.$ac_ext <<_ACEOF
11824 /* end confdefs.h. */
11825 #include <$ac_header>
11827 if { (ac_try="$ac_cpp conftest.$ac_ext"
11828 case "(($ac_try" in
11829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11830 *) ac_try_echo=$ac_try;;
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1 >conftest.err
11837 cat conftest.err >&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } >/dev/null; then
11840 if test -s conftest.err; then
11841 ac_cpp_err=$ac_c_preproc_warn_flag
11842 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11849 if test -z "$ac_cpp_err"; then
11850 ac_header_preproc=yes
11852 echo "$as_me: failed program was:" >&5
11853 sed 's/^/| /' conftest.$ac_ext >&5
11855 ac_header_preproc=no
11858 rm -f conftest.err conftest.$ac_ext
11859 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11860 echo "${ECHO_T}$ac_header_preproc" >&6; }
11862 # So? What about this header?
11863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11865 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11866 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11869 ac_header_preproc=yes
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11873 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11874 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11875 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11876 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11877 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11878 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11879 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11880 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11882 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11883 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11885 ## ----------------------------------- ##
11886 ## Report this to llvmbugs@cs.uiuc.edu ##
11887 ## ----------------------------------- ##
11889 ) | sed "s/^/$as_me: WARNING: /" >&2
11892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11897 eval "$as_ac_Header=\$ac_header_preproc"
11899 ac_res=`eval echo '${'$as_ac_Header'}'`
11900 { echo "$as_me:$LINENO: result: $ac_res" >&5
11901 echo "${ECHO_T}$ac_res" >&6; }
11904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11905 cat >>confdefs.h <<_ACEOF
11906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11917 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
11919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11921 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 ac_res=`eval echo '${'$as_ac_Header'}'`
11927 { echo "$as_me:$LINENO: result: $ac_res" >&5
11928 echo "${ECHO_T}$ac_res" >&6; }
11930 # Is the header compilable?
11931 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11932 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11933 cat >conftest.$ac_ext <<_ACEOF
11936 cat confdefs.h >>conftest.$ac_ext
11937 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */
11939 $ac_includes_default
11940 #include <$ac_header>
11942 rm -f conftest.$ac_objext
11943 if { (ac_try="$ac_compile"
11944 case "(($ac_try" in
11945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11946 *) ac_try_echo=$ac_try;;
11948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11949 (eval "$ac_compile") 2>conftest.er1
11951 grep -v '^ *+' conftest.er1 >conftest.err
11953 cat conftest.err >&5
11954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11955 (exit $ac_status); } &&
11956 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11957 { (case "(($ac_try" in
11958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11959 *) ac_try_echo=$ac_try;;
11961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11962 (eval "$ac_try") 2>&5
11964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11965 (exit $ac_status); }; } &&
11966 { ac_try='test -s conftest.$ac_objext'
11967 { (case "(($ac_try" in
11968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11969 *) ac_try_echo=$ac_try;;
11971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11972 (eval "$ac_try") 2>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); }; }; then
11976 ac_header_compiler=yes
11978 echo "$as_me: failed program was:" >&5
11979 sed 's/^/| /' conftest.$ac_ext >&5
11981 ac_header_compiler=no
11984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11986 echo "${ECHO_T}$ac_header_compiler" >&6; }
11988 # Is the header present?
11989 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11991 cat >conftest.$ac_ext <<_ACEOF
11994 cat confdefs.h >>conftest.$ac_ext
11995 cat >>conftest.$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11997 #include <$ac_header>
11999 if { (ac_try="$ac_cpp conftest.$ac_ext"
12000 case "(($ac_try" in
12001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12002 *) ac_try_echo=$ac_try;;
12004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12007 grep -v '^ *+' conftest.er1 >conftest.err
12009 cat conftest.err >&5
12010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12011 (exit $ac_status); } >/dev/null; then
12012 if test -s conftest.err; then
12013 ac_cpp_err=$ac_c_preproc_warn_flag
12014 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12021 if test -z "$ac_cpp_err"; then
12022 ac_header_preproc=yes
12024 echo "$as_me: failed program was:" >&5
12025 sed 's/^/| /' conftest.$ac_ext >&5
12027 ac_header_preproc=no
12030 rm -f conftest.err conftest.$ac_ext
12031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12032 echo "${ECHO_T}$ac_header_preproc" >&6; }
12034 # So? What about this header?
12035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12037 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12038 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12039 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12040 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12041 ac_header_preproc=yes
12044 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12045 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12046 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12047 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12048 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12049 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12050 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12051 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12052 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12053 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12054 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12055 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12057 ## ----------------------------------- ##
12058 ## Report this to llvmbugs@cs.uiuc.edu ##
12059 ## ----------------------------------- ##
12061 ) | sed "s/^/$as_me: WARNING: /" >&2
12064 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12065 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12066 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12067 echo $ECHO_N "(cached) $ECHO_C" >&6
12069 eval "$as_ac_Header=\$ac_header_preproc"
12071 ac_res=`eval echo '${'$as_ac_Header'}'`
12072 { echo "$as_me:$LINENO: result: $ac_res" >&5
12073 echo "${ECHO_T}$ac_res" >&6; }
12076 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12087 for ac_header in string.h strings.h
12089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12094 echo $ECHO_N "(cached) $ECHO_C" >&6
12096 ac_res=`eval echo '${'$as_ac_Header'}'`
12097 { echo "$as_me:$LINENO: result: $ac_res" >&5
12098 echo "${ECHO_T}$ac_res" >&6; }
12100 # Is the header compilable?
12101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12103 cat >conftest.$ac_ext <<_ACEOF
12106 cat confdefs.h >>conftest.$ac_ext
12107 cat >>conftest.$ac_ext <<_ACEOF
12108 /* end confdefs.h. */
12109 $ac_includes_default
12110 #include <$ac_header>
12112 rm -f conftest.$ac_objext
12113 if { (ac_try="$ac_compile"
12114 case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_compile") 2>conftest.er1
12121 grep -v '^ *+' conftest.er1 >conftest.err
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } &&
12126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12127 { (case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_try") 2>&5
12134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12135 (exit $ac_status); }; } &&
12136 { ac_try='test -s conftest.$ac_objext'
12137 { (case "(($ac_try" in
12138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12139 *) ac_try_echo=$ac_try;;
12141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12142 (eval "$ac_try") 2>&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); }; }; then
12146 ac_header_compiler=yes
12148 echo "$as_me: failed program was:" >&5
12149 sed 's/^/| /' conftest.$ac_ext >&5
12151 ac_header_compiler=no
12154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12155 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12156 echo "${ECHO_T}$ac_header_compiler" >&6; }
12158 # Is the header present?
12159 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12160 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12161 cat >conftest.$ac_ext <<_ACEOF
12164 cat confdefs.h >>conftest.$ac_ext
12165 cat >>conftest.$ac_ext <<_ACEOF
12166 /* end confdefs.h. */
12167 #include <$ac_header>
12169 if { (ac_try="$ac_cpp conftest.$ac_ext"
12170 case "(($ac_try" in
12171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12172 *) ac_try_echo=$ac_try;;
12174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12177 grep -v '^ *+' conftest.er1 >conftest.err
12179 cat conftest.err >&5
12180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12181 (exit $ac_status); } >/dev/null; then
12182 if test -s conftest.err; then
12183 ac_cpp_err=$ac_c_preproc_warn_flag
12184 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12191 if test -z "$ac_cpp_err"; then
12192 ac_header_preproc=yes
12194 echo "$as_me: failed program was:" >&5
12195 sed 's/^/| /' conftest.$ac_ext >&5
12197 ac_header_preproc=no
12200 rm -f conftest.err conftest.$ac_ext
12201 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12202 echo "${ECHO_T}$ac_header_preproc" >&6; }
12204 # So? What about this header?
12205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12207 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12208 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12209 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12211 ac_header_preproc=yes
12214 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12215 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12216 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12217 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12218 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12219 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12220 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12221 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12222 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12224 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12225 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12227 ## ----------------------------------- ##
12228 ## Report this to llvmbugs@cs.uiuc.edu ##
12229 ## ----------------------------------- ##
12231 ) | sed "s/^/$as_me: WARNING: /" >&2
12234 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12235 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12237 echo $ECHO_N "(cached) $ECHO_C" >&6
12239 eval "$as_ac_Header=\$ac_header_preproc"
12241 ac_res=`eval echo '${'$as_ac_Header'}'`
12242 { echo "$as_me:$LINENO: result: $ac_res" >&5
12243 echo "${ECHO_T}$ac_res" >&6; }
12246 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12247 cat >>confdefs.h <<_ACEOF
12248 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12258 for ac_func in strchr index
12260 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12261 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12262 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12263 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 cat >conftest.$ac_ext <<_ACEOF
12269 cat confdefs.h >>conftest.$ac_ext
12270 cat >>conftest.$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12272 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12273 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12274 #define $ac_func innocuous_$ac_func
12276 /* System header to define __stub macros and hopefully few prototypes,
12277 which can conflict with char $ac_func (); below.
12278 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12279 <limits.h> exists even on freestanding compilers. */
12282 # include <limits.h>
12284 # include <assert.h>
12289 /* Override any GCC internal prototype to avoid an error.
12290 Use char because int might match the return type of a GCC
12291 builtin and then its argument prototype would still apply. */
12296 /* The GNU C library defines this for functions which it implements
12297 to always fail with ENOSYS. Some functions are actually named
12298 something starting with __ and the normal name is an alias. */
12299 #if defined __stub_$ac_func || defined __stub___$ac_func
12306 return $ac_func ();
12311 rm -f conftest.$ac_objext conftest$ac_exeext
12312 if { (ac_try="$ac_link"
12313 case "(($ac_try" in
12314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12315 *) ac_try_echo=$ac_try;;
12317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12318 (eval "$ac_link") 2>conftest.er1
12320 grep -v '^ *+' conftest.er1 >conftest.err
12322 cat conftest.err >&5
12323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12324 (exit $ac_status); } &&
12325 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12326 { (case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_try") 2>&5
12333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12334 (exit $ac_status); }; } &&
12335 { ac_try='test -s conftest$ac_exeext'
12336 { (case "(($ac_try" in
12337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12338 *) ac_try_echo=$ac_try;;
12340 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12341 (eval "$ac_try") 2>&5
12343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12344 (exit $ac_status); }; }; then
12345 eval "$as_ac_var=yes"
12347 echo "$as_me: failed program was:" >&5
12348 sed 's/^/| /' conftest.$ac_ext >&5
12350 eval "$as_ac_var=no"
12353 rm -f core conftest.err conftest.$ac_objext \
12354 conftest$ac_exeext conftest.$ac_ext
12356 ac_res=`eval echo '${'$as_ac_var'}'`
12357 { echo "$as_me:$LINENO: result: $ac_res" >&5
12358 echo "${ECHO_T}$ac_res" >&6; }
12359 if test `eval echo '${'$as_ac_var'}'` = yes; then
12360 cat >>confdefs.h <<_ACEOF
12361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12369 for ac_func in strrchr rindex
12371 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12372 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12373 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12375 echo $ECHO_N "(cached) $ECHO_C" >&6
12377 cat >conftest.$ac_ext <<_ACEOF
12380 cat confdefs.h >>conftest.$ac_ext
12381 cat >>conftest.$ac_ext <<_ACEOF
12382 /* end confdefs.h. */
12383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12385 #define $ac_func innocuous_$ac_func
12387 /* System header to define __stub macros and hopefully few prototypes,
12388 which can conflict with char $ac_func (); below.
12389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12390 <limits.h> exists even on freestanding compilers. */
12393 # include <limits.h>
12395 # include <assert.h>
12400 /* Override any GCC internal prototype to avoid an error.
12401 Use char because int might match the return type of a GCC
12402 builtin and then its argument prototype would still apply. */
12407 /* The GNU C library defines this for functions which it implements
12408 to always fail with ENOSYS. Some functions are actually named
12409 something starting with __ and the normal name is an alias. */
12410 #if defined __stub_$ac_func || defined __stub___$ac_func
12417 return $ac_func ();
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_link") 2>conftest.er1
12431 grep -v '^ *+' conftest.er1 >conftest.err
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } &&
12436 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12437 { (case "(($ac_try" in
12438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12439 *) ac_try_echo=$ac_try;;
12441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12442 (eval "$ac_try") 2>&5
12444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12445 (exit $ac_status); }; } &&
12446 { ac_try='test -s conftest$ac_exeext'
12447 { (case "(($ac_try" in
12448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12449 *) ac_try_echo=$ac_try;;
12451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12452 (eval "$ac_try") 2>&5
12454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12455 (exit $ac_status); }; }; then
12456 eval "$as_ac_var=yes"
12458 echo "$as_me: failed program was:" >&5
12459 sed 's/^/| /' conftest.$ac_ext >&5
12461 eval "$as_ac_var=no"
12464 rm -f core conftest.err conftest.$ac_objext \
12465 conftest$ac_exeext conftest.$ac_ext
12467 ac_res=`eval echo '${'$as_ac_var'}'`
12468 { echo "$as_me:$LINENO: result: $ac_res" >&5
12469 echo "${ECHO_T}$ac_res" >&6; }
12470 if test `eval echo '${'$as_ac_var'}'` = yes; then
12471 cat >>confdefs.h <<_ACEOF
12472 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12480 for ac_func in memcpy bcopy
12482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 cat >conftest.$ac_ext <<_ACEOF
12491 cat confdefs.h >>conftest.$ac_ext
12492 cat >>conftest.$ac_ext <<_ACEOF
12493 /* end confdefs.h. */
12494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12496 #define $ac_func innocuous_$ac_func
12498 /* System header to define __stub macros and hopefully few prototypes,
12499 which can conflict with char $ac_func (); below.
12500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12501 <limits.h> exists even on freestanding compilers. */
12504 # include <limits.h>
12506 # include <assert.h>
12511 /* Override any GCC internal prototype to avoid an error.
12512 Use char because int might match the return type of a GCC
12513 builtin and then its argument prototype would still apply. */
12518 /* The GNU C library defines this for functions which it implements
12519 to always fail with ENOSYS. Some functions are actually named
12520 something starting with __ and the normal name is an alias. */
12521 #if defined __stub_$ac_func || defined __stub___$ac_func
12528 return $ac_func ();
12533 rm -f conftest.$ac_objext conftest$ac_exeext
12534 if { (ac_try="$ac_link"
12535 case "(($ac_try" in
12536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12537 *) ac_try_echo=$ac_try;;
12539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12540 (eval "$ac_link") 2>conftest.er1
12542 grep -v '^ *+' conftest.er1 >conftest.err
12544 cat conftest.err >&5
12545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12546 (exit $ac_status); } &&
12547 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12548 { (case "(($ac_try" in
12549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12550 *) ac_try_echo=$ac_try;;
12552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12553 (eval "$ac_try") 2>&5
12555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12556 (exit $ac_status); }; } &&
12557 { ac_try='test -s conftest$ac_exeext'
12558 { (case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_try") 2>&5
12565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12566 (exit $ac_status); }; }; then
12567 eval "$as_ac_var=yes"
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.$ac_ext >&5
12572 eval "$as_ac_var=no"
12575 rm -f core conftest.err conftest.$ac_objext \
12576 conftest$ac_exeext conftest.$ac_ext
12578 ac_res=`eval echo '${'$as_ac_var'}'`
12579 { echo "$as_me:$LINENO: result: $ac_res" >&5
12580 echo "${ECHO_T}$ac_res" >&6; }
12581 if test `eval echo '${'$as_ac_var'}'` = yes; then
12582 cat >>confdefs.h <<_ACEOF
12583 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12591 for ac_func in memmove strcmp
12593 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12594 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12595 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12596 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12597 echo $ECHO_N "(cached) $ECHO_C" >&6
12599 cat >conftest.$ac_ext <<_ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12605 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12606 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12607 #define $ac_func innocuous_$ac_func
12609 /* System header to define __stub macros and hopefully few prototypes,
12610 which can conflict with char $ac_func (); below.
12611 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12612 <limits.h> exists even on freestanding compilers. */
12615 # include <limits.h>
12617 # include <assert.h>
12622 /* Override any GCC internal prototype to avoid an error.
12623 Use char because int might match the return type of a GCC
12624 builtin and then its argument prototype would still apply. */
12629 /* The GNU C library defines this for functions which it implements
12630 to always fail with ENOSYS. Some functions are actually named
12631 something starting with __ and the normal name is an alias. */
12632 #if defined __stub_$ac_func || defined __stub___$ac_func
12639 return $ac_func ();
12644 rm -f conftest.$ac_objext conftest$ac_exeext
12645 if { (ac_try="$ac_link"
12646 case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_link") 2>conftest.er1
12653 grep -v '^ *+' conftest.er1 >conftest.err
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } &&
12658 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12659 { (case "(($ac_try" in
12660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12661 *) ac_try_echo=$ac_try;;
12663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12664 (eval "$ac_try") 2>&5
12666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12667 (exit $ac_status); }; } &&
12668 { ac_try='test -s conftest$ac_exeext'
12669 { (case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_try") 2>&5
12676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12677 (exit $ac_status); }; }; then
12678 eval "$as_ac_var=yes"
12680 echo "$as_me: failed program was:" >&5
12681 sed 's/^/| /' conftest.$ac_ext >&5
12683 eval "$as_ac_var=no"
12686 rm -f core conftest.err conftest.$ac_objext \
12687 conftest$ac_exeext conftest.$ac_ext
12689 ac_res=`eval echo '${'$as_ac_var'}'`
12690 { echo "$as_me:$LINENO: result: $ac_res" >&5
12691 echo "${ECHO_T}$ac_res" >&6; }
12692 if test `eval echo '${'$as_ac_var'}'` = yes; then
12693 cat >>confdefs.h <<_ACEOF
12694 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12703 for ac_func in closedir opendir readdir
12705 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12706 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12707 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12708 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 cat >conftest.$ac_ext <<_ACEOF
12714 cat confdefs.h >>conftest.$ac_ext
12715 cat >>conftest.$ac_ext <<_ACEOF
12716 /* end confdefs.h. */
12717 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12718 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12719 #define $ac_func innocuous_$ac_func
12721 /* System header to define __stub macros and hopefully few prototypes,
12722 which can conflict with char $ac_func (); below.
12723 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12724 <limits.h> exists even on freestanding compilers. */
12727 # include <limits.h>
12729 # include <assert.h>
12734 /* Override any GCC internal prototype to avoid an error.
12735 Use char because int might match the return type of a GCC
12736 builtin and then its argument prototype would still apply. */
12741 /* The GNU C library defines this for functions which it implements
12742 to always fail with ENOSYS. Some functions are actually named
12743 something starting with __ and the normal name is an alias. */
12744 #if defined __stub_$ac_func || defined __stub___$ac_func
12751 return $ac_func ();
12756 rm -f conftest.$ac_objext conftest$ac_exeext
12757 if { (ac_try="$ac_link"
12758 case "(($ac_try" in
12759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12760 *) ac_try_echo=$ac_try;;
12762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12763 (eval "$ac_link") 2>conftest.er1
12765 grep -v '^ *+' conftest.er1 >conftest.err
12767 cat conftest.err >&5
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); } &&
12770 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12771 { (case "(($ac_try" in
12772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12773 *) ac_try_echo=$ac_try;;
12775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12776 (eval "$ac_try") 2>&5
12778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); }; } &&
12780 { ac_try='test -s conftest$ac_exeext'
12781 { (case "(($ac_try" in
12782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12783 *) ac_try_echo=$ac_try;;
12785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12786 (eval "$ac_try") 2>&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); }; }; then
12790 eval "$as_ac_var=yes"
12792 echo "$as_me: failed program was:" >&5
12793 sed 's/^/| /' conftest.$ac_ext >&5
12795 eval "$as_ac_var=no"
12798 rm -f core conftest.err conftest.$ac_objext \
12799 conftest$ac_exeext conftest.$ac_ext
12801 ac_res=`eval echo '${'$as_ac_var'}'`
12802 { echo "$as_me:$LINENO: result: $ac_res" >&5
12803 echo "${ECHO_T}$ac_res" >&6; }
12804 if test `eval echo '${'$as_ac_var'}'` = yes; then
12805 cat >>confdefs.h <<_ACEOF
12806 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12814 if test "$WITH_LLVMGCCDIR" = "default" ; then
12815 LLVMGCC="llvm-gcc${EXEEXT}"
12816 LLVMGXX="llvm-g++${EXEEXT}"
12817 LLVMGCCCOMMAND="$LLVMGCC"
12818 LLVMGXXCOMMAND="$LLVMGXX"
12819 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12821 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12823 # Extract the first word of "$LLVMGCC", so it can be a program name with args.
12824 set dummy $LLVMGCC; ac_word=$2
12825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12827 if test "${ac_cv_path_LLVMGCC+set}" = set; then
12828 echo $ECHO_N "(cached) $ECHO_C" >&6
12832 ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
12835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12836 for as_dir in $PATH
12839 test -z "$as_dir" && as_dir=.
12840 for ac_exec_ext in '' $ac_executable_extensions; do
12841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12842 ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
12843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12853 LLVMGCC=$ac_cv_path_LLVMGCC
12854 if test -n "$LLVMGCC"; then
12855 { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
12856 echo "${ECHO_T}$LLVMGCC" >&6; }
12858 { echo "$as_me:$LINENO: result: no" >&5
12859 echo "${ECHO_T}no" >&6; }
12863 # Extract the first word of "$LLVMGXX", so it can be a program name with args.
12864 set dummy $LLVMGXX; ac_word=$2
12865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12867 if test "${ac_cv_path_LLVMGXX+set}" = set; then
12868 echo $ECHO_N "(cached) $ECHO_C" >&6
12872 ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
12875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12876 for as_dir in $PATH
12879 test -z "$as_dir" && as_dir=.
12880 for ac_exec_ext in '' $ac_executable_extensions; do
12881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12882 ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
12883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12893 LLVMGXX=$ac_cv_path_LLVMGXX
12894 if test -n "$LLVMGXX"; then
12895 { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
12896 echo "${ECHO_T}$LLVMGXX" >&6; }
12898 { echo "$as_me:$LINENO: result: no" >&5
12899 echo "${ECHO_T}no" >&6; }
12904 if test -z "$LLVMGCC"; then
12905 LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
12906 LLVMGCCCOMMAND="$LLVMGCC"
12908 if test -z "$LLVMGXX"; then
12909 LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
12910 LLVMGXXCOMMAND="$LLVMGXX"
12917 LLVMGCCCOMMAND=$LLVMGCCCOMMAND
12919 LLVMGXXCOMMAND=$LLVMGXXCOMMAND
12924 # Check whether --with-llvmcc was given.
12925 if test "${with_llvmcc+set}" = set; then
12926 withval=$with_llvmcc;
12931 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
12932 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
12933 if test "$with_llvmcc" != "check"; then
12934 if (test "$with_llvmcc" != "llvm-gcc" &&
12935 test "$with_llvmcc" != "clang" &&
12936 test "$with_llvmcc" != "none"); then
12937 { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
12938 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
12939 { (exit 1); exit 1; }; }
12941 WITH_LLVMCC="$with_llvmcc"
12942 elif test -n "$LLVMGCC"; then
12943 WITH_LLVMCC=llvm-gcc
12944 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
12949 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
12950 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
12951 LLVMCC_OPTION=$WITH_LLVMCC
12954 { echo "$as_me:$LINENO: checking tool compatibility" >&5
12955 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
12968 if test "$GCC" != "yes" && test "$ICC" != "yes"
12970 { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
12971 echo "$as_me: error: gcc|icc required but not found" >&2;}
12972 { (exit 1); exit 1; }; }
12975 if test "$GXX" != "yes" && test "$IXX" != "yes"
12977 { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
12978 echo "$as_me: error: g++|icc required but not found" >&2;}
12979 { (exit 1); exit 1; }; }
12982 if test "$GCC" = "yes"
12984 cat >conftest.$ac_ext <<_ACEOF
12985 #if !defined(__GNUC__) || __GNUC__ < 3
12986 #error Unsupported GCC version
12990 rm -f conftest.$ac_objext
12991 if { (ac_try="$ac_compile"
12992 case "(($ac_try" in
12993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12994 *) ac_try_echo=$ac_try;;
12996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12997 (eval "$ac_compile") 2>conftest.er1
12999 grep -v '^ *+' conftest.er1 >conftest.err
13001 cat conftest.err >&5
13002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13003 (exit $ac_status); } &&
13004 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13005 { (case "(($ac_try" in
13006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13007 *) ac_try_echo=$ac_try;;
13009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13010 (eval "$ac_try") 2>&5
13012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13013 (exit $ac_status); }; } &&
13014 { ac_try='test -s conftest.$ac_objext'
13015 { (case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_try") 2>&5
13022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13023 (exit $ac_status); }; }; then
13026 echo "$as_me: failed program was:" >&5
13027 sed 's/^/| /' conftest.$ac_ext >&5
13029 { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13030 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13031 { (exit 1); exit 1; }; }
13034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13037 if test -z "$llvm_cv_gnu_make_command"
13039 { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13040 echo "$as_me: error: GNU Make required but not found" >&2;}
13041 { (exit 1); exit 1; }; }
13044 { echo "$as_me:$LINENO: result: ok" >&5
13045 echo "${ECHO_T}ok" >&6; }
13047 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13048 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13049 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13051 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13053 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13054 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13058 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13059 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13060 if test "${ac_cv_lib_m_sin+set}" = set; then
13061 echo $ECHO_N "(cached) $ECHO_C" >&6
13063 ac_check_lib_save_LIBS=$LIBS
13065 cat >conftest.$ac_ext <<_ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13072 /* Override any GCC internal prototype to avoid an error.
13073 Use char because int might match the return type of a GCC
13074 builtin and then its argument prototype would still apply. */
13087 rm -f conftest.$ac_objext conftest$ac_exeext
13088 if { (ac_try="$ac_link"
13089 case "(($ac_try" in
13090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_link") 2>conftest.er1
13096 grep -v '^ *+' conftest.er1 >conftest.err
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } &&
13101 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13102 { (case "(($ac_try" in
13103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13104 *) ac_try_echo=$ac_try;;
13106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13107 (eval "$ac_try") 2>&5
13109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13110 (exit $ac_status); }; } &&
13111 { ac_try='test -s conftest$ac_exeext'
13112 { (case "(($ac_try" in
13113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13114 *) ac_try_echo=$ac_try;;
13116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13117 (eval "$ac_try") 2>&5
13119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13120 (exit $ac_status); }; }; then
13121 ac_cv_lib_m_sin=yes
13123 echo "$as_me: failed program was:" >&5
13124 sed 's/^/| /' conftest.$ac_ext >&5
13129 rm -f core conftest.err conftest.$ac_objext \
13130 conftest$ac_exeext conftest.$ac_ext
13131 LIBS=$ac_check_lib_save_LIBS
13133 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13134 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13135 if test $ac_cv_lib_m_sin = yes; then
13136 cat >>confdefs.h <<_ACEOF
13137 #define HAVE_LIBM 1
13144 if test "$llvm_cv_os_type" = "MingW" ; then
13146 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13147 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13148 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13149 echo $ECHO_N "(cached) $ECHO_C" >&6
13151 ac_check_lib_save_LIBS=$LIBS
13152 LIBS="-limagehlp $LIBS"
13153 cat >conftest.$ac_ext <<_ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13169 rm -f conftest.$ac_objext conftest$ac_exeext
13170 if { (ac_try="$ac_link"
13171 case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_link") 2>conftest.er1
13178 grep -v '^ *+' conftest.er1 >conftest.err
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } &&
13183 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13184 { (case "(($ac_try" in
13185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13186 *) ac_try_echo=$ac_try;;
13188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13189 (eval "$ac_try") 2>&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); }; } &&
13193 { ac_try='test -s conftest$ac_exeext'
13194 { (case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_try") 2>&5
13201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13202 (exit $ac_status); }; }; then
13203 ac_cv_lib_imagehlp_main=yes
13205 echo "$as_me: failed program was:" >&5
13206 sed 's/^/| /' conftest.$ac_ext >&5
13208 ac_cv_lib_imagehlp_main=no
13211 rm -f core conftest.err conftest.$ac_objext \
13212 conftest$ac_exeext conftest.$ac_ext
13213 LIBS=$ac_check_lib_save_LIBS
13215 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13216 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13217 if test $ac_cv_lib_imagehlp_main = yes; then
13218 cat >>confdefs.h <<_ACEOF
13219 #define HAVE_LIBIMAGEHLP 1
13222 LIBS="-limagehlp $LIBS"
13227 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13228 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13229 if test "${ac_cv_lib_psapi_main+set}" = set; then
13230 echo $ECHO_N "(cached) $ECHO_C" >&6
13232 ac_check_lib_save_LIBS=$LIBS
13233 LIBS="-lpsapi $LIBS"
13234 cat >conftest.$ac_ext <<_ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
13239 /* end confdefs.h. */
13250 rm -f conftest.$ac_objext conftest$ac_exeext
13251 if { (ac_try="$ac_link"
13252 case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13257 (eval "$ac_link") 2>conftest.er1
13259 grep -v '^ *+' conftest.er1 >conftest.err
13261 cat conftest.err >&5
13262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13263 (exit $ac_status); } &&
13264 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13265 { (case "(($ac_try" in
13266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13267 *) ac_try_echo=$ac_try;;
13269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13270 (eval "$ac_try") 2>&5
13272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13273 (exit $ac_status); }; } &&
13274 { ac_try='test -s conftest$ac_exeext'
13275 { (case "(($ac_try" in
13276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_try") 2>&5
13282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13283 (exit $ac_status); }; }; then
13284 ac_cv_lib_psapi_main=yes
13286 echo "$as_me: failed program was:" >&5
13287 sed 's/^/| /' conftest.$ac_ext >&5
13289 ac_cv_lib_psapi_main=no
13292 rm -f core conftest.err conftest.$ac_objext \
13293 conftest$ac_exeext conftest.$ac_ext
13294 LIBS=$ac_check_lib_save_LIBS
13296 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13297 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13298 if test $ac_cv_lib_psapi_main = yes; then
13299 cat >>confdefs.h <<_ACEOF
13300 #define HAVE_LIBPSAPI 1
13303 LIBS="-lpsapi $LIBS"
13309 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13310 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13311 if test "${ac_cv_search_dlopen+set}" = set; then
13312 echo $ECHO_N "(cached) $ECHO_C" >&6
13314 ac_func_search_save_LIBS=$LIBS
13315 cat >conftest.$ac_ext <<_ACEOF
13318 cat confdefs.h >>conftest.$ac_ext
13319 cat >>conftest.$ac_ext <<_ACEOF
13320 /* end confdefs.h. */
13322 /* Override any GCC internal prototype to avoid an error.
13323 Use char because int might match the return type of a GCC
13324 builtin and then its argument prototype would still apply. */
13337 for ac_lib in '' dl; do
13338 if test -z "$ac_lib"; then
13339 ac_res="none required"
13342 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13344 rm -f conftest.$ac_objext conftest$ac_exeext
13345 if { (ac_try="$ac_link"
13346 case "(($ac_try" in
13347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13348 *) ac_try_echo=$ac_try;;
13350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13351 (eval "$ac_link") 2>conftest.er1
13353 grep -v '^ *+' conftest.er1 >conftest.err
13355 cat conftest.err >&5
13356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13357 (exit $ac_status); } &&
13358 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13359 { (case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_try") 2>&5
13366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13367 (exit $ac_status); }; } &&
13368 { ac_try='test -s conftest$ac_exeext'
13369 { (case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_try") 2>&5
13376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13377 (exit $ac_status); }; }; then
13378 ac_cv_search_dlopen=$ac_res
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.$ac_ext >&5
13386 rm -f core conftest.err conftest.$ac_objext \
13388 if test "${ac_cv_search_dlopen+set}" = set; then
13392 if test "${ac_cv_search_dlopen+set}" = set; then
13395 ac_cv_search_dlopen=no
13397 rm conftest.$ac_ext
13398 LIBS=$ac_func_search_save_LIBS
13400 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13401 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13402 ac_res=$ac_cv_search_dlopen
13403 if test "$ac_res" != no; then
13404 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13406 cat >>confdefs.h <<\_ACEOF
13407 #define HAVE_DLOPEN 1
13411 { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13412 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13416 if test "$llvm_cv_enable_libffi" = "yes" ; then
13417 { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13418 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13419 if test "${ac_cv_search_ffi_call+set}" = set; then
13420 echo $ECHO_N "(cached) $ECHO_C" >&6
13422 ac_func_search_save_LIBS=$LIBS
13423 cat >conftest.$ac_ext <<_ACEOF
13426 cat confdefs.h >>conftest.$ac_ext
13427 cat >>conftest.$ac_ext <<_ACEOF
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13440 return ffi_call ();
13445 for ac_lib in '' ffi; do
13446 if test -z "$ac_lib"; then
13447 ac_res="none required"
13450 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13452 rm -f conftest.$ac_objext conftest$ac_exeext
13453 if { (ac_try="$ac_link"
13454 case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_link") 2>conftest.er1
13461 grep -v '^ *+' conftest.er1 >conftest.err
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } &&
13466 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13467 { (case "(($ac_try" in
13468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13469 *) ac_try_echo=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_try") 2>&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); }; } &&
13476 { ac_try='test -s conftest$ac_exeext'
13477 { (case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_try") 2>&5
13484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13485 (exit $ac_status); }; }; then
13486 ac_cv_search_ffi_call=$ac_res
13488 echo "$as_me: failed program was:" >&5
13489 sed 's/^/| /' conftest.$ac_ext >&5
13494 rm -f core conftest.err conftest.$ac_objext \
13496 if test "${ac_cv_search_ffi_call+set}" = set; then
13500 if test "${ac_cv_search_ffi_call+set}" = set; then
13503 ac_cv_search_ffi_call=no
13505 rm conftest.$ac_ext
13506 LIBS=$ac_func_search_save_LIBS
13508 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13509 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13510 ac_res=$ac_cv_search_ffi_call
13511 if test "$ac_res" != no; then
13512 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13514 cat >>confdefs.h <<\_ACEOF
13515 #define HAVE_FFI_CALL 1
13519 { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13520 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13521 { (exit 1); exit 1; }; }
13526 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13527 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13528 if test "${ac_cv_search_mallinfo+set}" = set; then
13529 echo $ECHO_N "(cached) $ECHO_C" >&6
13531 ac_func_search_save_LIBS=$LIBS
13532 cat >conftest.$ac_ext <<_ACEOF
13535 cat confdefs.h >>conftest.$ac_ext
13536 cat >>conftest.$ac_ext <<_ACEOF
13537 /* end confdefs.h. */
13539 /* Override any GCC internal prototype to avoid an error.
13540 Use char because int might match the return type of a GCC
13541 builtin and then its argument prototype would still apply. */
13549 return mallinfo ();
13554 for ac_lib in '' malloc; do
13555 if test -z "$ac_lib"; then
13556 ac_res="none required"
13559 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13561 rm -f conftest.$ac_objext conftest$ac_exeext
13562 if { (ac_try="$ac_link"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_link") 2>conftest.er1
13570 grep -v '^ *+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } &&
13575 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13576 { (case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_try") 2>&5
13583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13584 (exit $ac_status); }; } &&
13585 { ac_try='test -s conftest$ac_exeext'
13586 { (case "(($ac_try" in
13587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13588 *) ac_try_echo=$ac_try;;
13590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13591 (eval "$ac_try") 2>&5
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); }; }; then
13595 ac_cv_search_mallinfo=$ac_res
13597 echo "$as_me: failed program was:" >&5
13598 sed 's/^/| /' conftest.$ac_ext >&5
13603 rm -f core conftest.err conftest.$ac_objext \
13605 if test "${ac_cv_search_mallinfo+set}" = set; then
13609 if test "${ac_cv_search_mallinfo+set}" = set; then
13612 ac_cv_search_mallinfo=no
13614 rm conftest.$ac_ext
13615 LIBS=$ac_func_search_save_LIBS
13617 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13618 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13619 ac_res=$ac_cv_search_mallinfo
13620 if test "$ac_res" != no; then
13621 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13623 cat >>confdefs.h <<\_ACEOF
13624 #define HAVE_MALLINFO 1
13630 if test "$ENABLE_THREADS" -eq 1 ; then
13632 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13633 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13634 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13635 echo $ECHO_N "(cached) $ECHO_C" >&6
13637 ac_check_lib_save_LIBS=$LIBS
13638 LIBS="-lpthread $LIBS"
13639 cat >conftest.$ac_ext <<_ACEOF
13642 cat confdefs.h >>conftest.$ac_ext
13643 cat >>conftest.$ac_ext <<_ACEOF
13644 /* end confdefs.h. */
13646 /* Override any GCC internal prototype to avoid an error.
13647 Use char because int might match the return type of a GCC
13648 builtin and then its argument prototype would still apply. */
13652 char pthread_mutex_init ();
13656 return pthread_mutex_init ();
13661 rm -f conftest.$ac_objext conftest$ac_exeext
13662 if { (ac_try="$ac_link"
13663 case "(($ac_try" in
13664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13665 *) ac_try_echo=$ac_try;;
13667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13668 (eval "$ac_link") 2>conftest.er1
13670 grep -v '^ *+' conftest.er1 >conftest.err
13672 cat conftest.err >&5
13673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13674 (exit $ac_status); } &&
13675 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13676 { (case "(($ac_try" in
13677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13678 *) ac_try_echo=$ac_try;;
13680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13681 (eval "$ac_try") 2>&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); }; } &&
13685 { ac_try='test -s conftest$ac_exeext'
13686 { (case "(($ac_try" in
13687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13688 *) ac_try_echo=$ac_try;;
13690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13691 (eval "$ac_try") 2>&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); }; }; then
13695 ac_cv_lib_pthread_pthread_mutex_init=yes
13697 echo "$as_me: failed program was:" >&5
13698 sed 's/^/| /' conftest.$ac_ext >&5
13700 ac_cv_lib_pthread_pthread_mutex_init=no
13703 rm -f core conftest.err conftest.$ac_objext \
13704 conftest$ac_exeext conftest.$ac_ext
13705 LIBS=$ac_check_lib_save_LIBS
13707 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
13708 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
13709 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
13710 cat >>confdefs.h <<_ACEOF
13711 #define HAVE_LIBPTHREAD 1
13714 LIBS="-lpthread $LIBS"
13718 { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
13719 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
13720 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13721 echo $ECHO_N "(cached) $ECHO_C" >&6
13723 ac_func_search_save_LIBS=$LIBS
13724 cat >conftest.$ac_ext <<_ACEOF
13727 cat confdefs.h >>conftest.$ac_ext
13728 cat >>conftest.$ac_ext <<_ACEOF
13729 /* end confdefs.h. */
13731 /* Override any GCC internal prototype to avoid an error.
13732 Use char because int might match the return type of a GCC
13733 builtin and then its argument prototype would still apply. */
13737 char pthread_mutex_lock ();
13741 return pthread_mutex_lock ();
13746 for ac_lib in '' pthread; do
13747 if test -z "$ac_lib"; then
13748 ac_res="none required"
13751 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13753 rm -f conftest.$ac_objext conftest$ac_exeext
13754 if { (ac_try="$ac_link"
13755 case "(($ac_try" in
13756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13757 *) ac_try_echo=$ac_try;;
13759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13760 (eval "$ac_link") 2>conftest.er1
13762 grep -v '^ *+' conftest.er1 >conftest.err
13764 cat conftest.err >&5
13765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13766 (exit $ac_status); } &&
13767 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13768 { (case "(($ac_try" in
13769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13770 *) ac_try_echo=$ac_try;;
13772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13773 (eval "$ac_try") 2>&5
13775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); }; } &&
13777 { ac_try='test -s conftest$ac_exeext'
13778 { (case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_try") 2>&5
13785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13786 (exit $ac_status); }; }; then
13787 ac_cv_search_pthread_mutex_lock=$ac_res
13789 echo "$as_me: failed program was:" >&5
13790 sed 's/^/| /' conftest.$ac_ext >&5
13795 rm -f core conftest.err conftest.$ac_objext \
13797 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13801 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
13804 ac_cv_search_pthread_mutex_lock=no
13806 rm conftest.$ac_ext
13807 LIBS=$ac_func_search_save_LIBS
13809 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
13810 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
13811 ac_res=$ac_cv_search_pthread_mutex_lock
13812 if test "$ac_res" != no; then
13813 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13815 cat >>confdefs.h <<\_ACEOF
13816 #define HAVE_PTHREAD_MUTEX_LOCK 1
13821 { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
13822 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
13823 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13824 echo $ECHO_N "(cached) $ECHO_C" >&6
13826 ac_func_search_save_LIBS=$LIBS
13827 cat >conftest.$ac_ext <<_ACEOF
13830 cat confdefs.h >>conftest.$ac_ext
13831 cat >>conftest.$ac_ext <<_ACEOF
13832 /* end confdefs.h. */
13834 /* Override any GCC internal prototype to avoid an error.
13835 Use char because int might match the return type of a GCC
13836 builtin and then its argument prototype would still apply. */
13840 char pthread_rwlock_init ();
13844 return pthread_rwlock_init ();
13849 for ac_lib in '' pthread; do
13850 if test -z "$ac_lib"; then
13851 ac_res="none required"
13854 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13856 rm -f conftest.$ac_objext conftest$ac_exeext
13857 if { (ac_try="$ac_link"
13858 case "(($ac_try" in
13859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13860 *) ac_try_echo=$ac_try;;
13862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13863 (eval "$ac_link") 2>conftest.er1
13865 grep -v '^ *+' conftest.er1 >conftest.err
13867 cat conftest.err >&5
13868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13869 (exit $ac_status); } &&
13870 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13871 { (case "(($ac_try" in
13872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_try") 2>&5
13878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13879 (exit $ac_status); }; } &&
13880 { ac_try='test -s conftest$ac_exeext'
13881 { (case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_try") 2>&5
13888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13889 (exit $ac_status); }; }; then
13890 ac_cv_search_pthread_rwlock_init=$ac_res
13892 echo "$as_me: failed program was:" >&5
13893 sed 's/^/| /' conftest.$ac_ext >&5
13898 rm -f core conftest.err conftest.$ac_objext \
13900 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13904 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
13907 ac_cv_search_pthread_rwlock_init=no
13909 rm conftest.$ac_ext
13910 LIBS=$ac_func_search_save_LIBS
13912 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
13913 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
13914 ac_res=$ac_cv_search_pthread_rwlock_init
13915 if test "$ac_res" != no; then
13916 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13918 cat >>confdefs.h <<\_ACEOF
13919 #define HAVE_PTHREAD_RWLOCK_INIT 1
13924 { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
13925 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
13926 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
13927 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 ac_func_search_save_LIBS=$LIBS
13930 cat >conftest.$ac_ext <<_ACEOF
13933 cat confdefs.h >>conftest.$ac_ext
13934 cat >>conftest.$ac_ext <<_ACEOF
13935 /* end confdefs.h. */
13937 /* Override any GCC internal prototype to avoid an error.
13938 Use char because int might match the return type of a GCC
13939 builtin and then its argument prototype would still apply. */
13943 char pthread_getspecific ();
13947 return pthread_getspecific ();
13952 for ac_lib in '' pthread; do
13953 if test -z "$ac_lib"; then
13954 ac_res="none required"
13957 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
13959 rm -f conftest.$ac_objext conftest$ac_exeext
13960 if { (ac_try="$ac_link"
13961 case "(($ac_try" in
13962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13963 *) ac_try_echo=$ac_try;;
13965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13966 (eval "$ac_link") 2>conftest.er1
13968 grep -v '^ *+' conftest.er1 >conftest.err
13970 cat conftest.err >&5
13971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13972 (exit $ac_status); } &&
13973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13974 { (case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_try") 2>&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); }; } &&
13983 { ac_try='test -s conftest$ac_exeext'
13984 { (case "(($ac_try" in
13985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13986 *) ac_try_echo=$ac_try;;
13988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13989 (eval "$ac_try") 2>&5
13991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13992 (exit $ac_status); }; }; then
13993 ac_cv_search_pthread_getspecific=$ac_res
13995 echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
14001 rm -f core conftest.err conftest.$ac_objext \
14003 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14007 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14010 ac_cv_search_pthread_getspecific=no
14012 rm conftest.$ac_ext
14013 LIBS=$ac_func_search_save_LIBS
14015 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14016 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14017 ac_res=$ac_cv_search_pthread_getspecific
14018 if test "$ac_res" != no; then
14019 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14021 cat >>confdefs.h <<\_ACEOF
14022 #define HAVE_PTHREAD_GETSPECIFIC 1
14030 # Check whether --with-udis86 was given.
14031 if test "${with_udis86+set}" = set; then
14032 withval=$with_udis86;
14037 *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14040 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14041 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14042 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14043 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 ac_check_lib_save_LIBS=$LIBS
14046 LIBS="-ludis86 $LIBS"
14047 cat >conftest.$ac_ext <<_ACEOF
14050 cat confdefs.h >>conftest.$ac_ext
14051 cat >>conftest.$ac_ext <<_ACEOF
14052 /* end confdefs.h. */
14054 /* Override any GCC internal prototype to avoid an error.
14055 Use char because int might match the return type of a GCC
14056 builtin and then its argument prototype would still apply. */
14069 rm -f conftest.$ac_objext conftest$ac_exeext
14070 if { (ac_try="$ac_link"
14071 case "(($ac_try" in
14072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073 *) ac_try_echo=$ac_try;;
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076 (eval "$ac_link") 2>conftest.er1
14078 grep -v '^ *+' conftest.er1 >conftest.err
14080 cat conftest.err >&5
14081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082 (exit $ac_status); } &&
14083 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084 { (case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089 (eval "$ac_try") 2>&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); }; } &&
14093 { ac_try='test -s conftest$ac_exeext'
14094 { (case "(($ac_try" in
14095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096 *) ac_try_echo=$ac_try;;
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099 (eval "$ac_try") 2>&5
14101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102 (exit $ac_status); }; }; then
14103 ac_cv_lib_udis86_ud_init=yes
14105 echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14108 ac_cv_lib_udis86_ud_init=no
14111 rm -f core conftest.err conftest.$ac_objext \
14112 conftest$ac_exeext conftest.$ac_ext
14113 LIBS=$ac_check_lib_save_LIBS
14115 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14116 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14117 if test $ac_cv_lib_udis86_ud_init = yes; then
14118 cat >>confdefs.h <<_ACEOF
14119 #define HAVE_LIBUDIS86 1
14122 LIBS="-ludis86 $LIBS"
14126 echo "Error! You need to have libudis86 around."
14138 cat >>confdefs.h <<_ACEOF
14139 #define USE_UDIS86 $USE_UDIS86
14144 # Check whether --with-oprofile was given.
14145 if test "${with_oprofile+set}" = set; then
14146 withval=$with_oprofile;
14150 /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14151 no) llvm_cv_oppath=
14154 *) llvm_cv_oppath="${withval}/lib/oprofile"
14155 CPPFLAGS="-I${withval}/include";;
14157 if test -n "$llvm_cv_oppath" ; then
14158 LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14159 { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14160 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14161 if test "${ac_cv_search_bfd_init+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 ac_func_search_save_LIBS=$LIBS
14165 cat >conftest.$ac_ext <<_ACEOF
14168 cat confdefs.h >>conftest.$ac_ext
14169 cat >>conftest.$ac_ext <<_ACEOF
14170 /* end confdefs.h. */
14172 /* Override any GCC internal prototype to avoid an error.
14173 Use char because int might match the return type of a GCC
14174 builtin and then its argument prototype would still apply. */
14182 return bfd_init ();
14187 for ac_lib in '' bfd; do
14188 if test -z "$ac_lib"; then
14189 ac_res="none required"
14192 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14194 rm -f conftest.$ac_objext conftest$ac_exeext
14195 if { (ac_try="$ac_link"
14196 case "(($ac_try" in
14197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14198 *) ac_try_echo=$ac_try;;
14200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14201 (eval "$ac_link") 2>conftest.er1
14203 grep -v '^ *+' conftest.er1 >conftest.err
14205 cat conftest.err >&5
14206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } &&
14208 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14209 { (case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_try") 2>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); }; } &&
14218 { ac_try='test -s conftest$ac_exeext'
14219 { (case "(($ac_try" in
14220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14221 *) ac_try_echo=$ac_try;;
14223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14224 (eval "$ac_try") 2>&5
14226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14227 (exit $ac_status); }; }; then
14228 ac_cv_search_bfd_init=$ac_res
14230 echo "$as_me: failed program was:" >&5
14231 sed 's/^/| /' conftest.$ac_ext >&5
14236 rm -f core conftest.err conftest.$ac_objext \
14238 if test "${ac_cv_search_bfd_init+set}" = set; then
14242 if test "${ac_cv_search_bfd_init+set}" = set; then
14245 ac_cv_search_bfd_init=no
14247 rm conftest.$ac_ext
14248 LIBS=$ac_func_search_save_LIBS
14250 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14251 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14252 ac_res=$ac_cv_search_bfd_init
14253 if test "$ac_res" != no; then
14254 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14258 { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14259 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14260 if test "${ac_cv_search_op_open_agent+set}" = set; then
14261 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 ac_func_search_save_LIBS=$LIBS
14264 cat >conftest.$ac_ext <<_ACEOF
14267 cat confdefs.h >>conftest.$ac_ext
14268 cat >>conftest.$ac_ext <<_ACEOF
14269 /* end confdefs.h. */
14271 /* Override any GCC internal prototype to avoid an error.
14272 Use char because int might match the return type of a GCC
14273 builtin and then its argument prototype would still apply. */
14277 char op_open_agent ();
14281 return op_open_agent ();
14286 for ac_lib in '' opagent; do
14287 if test -z "$ac_lib"; then
14288 ac_res="none required"
14291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14293 rm -f conftest.$ac_objext conftest$ac_exeext
14294 if { (ac_try="$ac_link"
14295 case "(($ac_try" in
14296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_link") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } &&
14307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14308 { (case "(($ac_try" in
14309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14310 *) ac_try_echo=$ac_try;;
14312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14313 (eval "$ac_try") 2>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); }; } &&
14317 { ac_try='test -s conftest$ac_exeext'
14318 { (case "(($ac_try" in
14319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14320 *) ac_try_echo=$ac_try;;
14322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14323 (eval "$ac_try") 2>&5
14325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14326 (exit $ac_status); }; }; then
14327 ac_cv_search_op_open_agent=$ac_res
14329 echo "$as_me: failed program was:" >&5
14330 sed 's/^/| /' conftest.$ac_ext >&5
14335 rm -f core conftest.err conftest.$ac_objext \
14337 if test "${ac_cv_search_op_open_agent+set}" = set; then
14341 if test "${ac_cv_search_op_open_agent+set}" = set; then
14344 ac_cv_search_op_open_agent=no
14346 rm conftest.$ac_ext
14347 LIBS=$ac_func_search_save_LIBS
14349 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14350 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14351 ac_res=$ac_cv_search_op_open_agent
14352 if test "$ac_res" != no; then
14353 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14357 echo "Error! You need to have libopagent around."
14362 if test "${ac_cv_header_opagent_h+set}" = set; then
14363 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14364 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14365 if test "${ac_cv_header_opagent_h+set}" = set; then
14366 echo $ECHO_N "(cached) $ECHO_C" >&6
14368 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14369 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14371 # Is the header compilable?
14372 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14373 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14374 cat >conftest.$ac_ext <<_ACEOF
14377 cat confdefs.h >>conftest.$ac_ext
14378 cat >>conftest.$ac_ext <<_ACEOF
14379 /* end confdefs.h. */
14380 $ac_includes_default
14381 #include <opagent.h>
14383 rm -f conftest.$ac_objext
14384 if { (ac_try="$ac_compile"
14385 case "(($ac_try" in
14386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14387 *) ac_try_echo=$ac_try;;
14389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14390 (eval "$ac_compile") 2>conftest.er1
14392 grep -v '^ *+' conftest.er1 >conftest.err
14394 cat conftest.err >&5
14395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14396 (exit $ac_status); } &&
14397 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14398 { (case "(($ac_try" in
14399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14400 *) ac_try_echo=$ac_try;;
14402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14403 (eval "$ac_try") 2>&5
14405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14406 (exit $ac_status); }; } &&
14407 { ac_try='test -s conftest.$ac_objext'
14408 { (case "(($ac_try" in
14409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14410 *) ac_try_echo=$ac_try;;
14412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14413 (eval "$ac_try") 2>&5
14415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14416 (exit $ac_status); }; }; then
14417 ac_header_compiler=yes
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_header_compiler=no
14425 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14426 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14427 echo "${ECHO_T}$ac_header_compiler" >&6; }
14429 # Is the header present?
14430 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14431 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14432 cat >conftest.$ac_ext <<_ACEOF
14435 cat confdefs.h >>conftest.$ac_ext
14436 cat >>conftest.$ac_ext <<_ACEOF
14437 /* end confdefs.h. */
14438 #include <opagent.h>
14440 if { (ac_try="$ac_cpp conftest.$ac_ext"
14441 case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14446 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14448 grep -v '^ *+' conftest.er1 >conftest.err
14450 cat conftest.err >&5
14451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14452 (exit $ac_status); } >/dev/null; then
14453 if test -s conftest.err; then
14454 ac_cpp_err=$ac_c_preproc_warn_flag
14455 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14462 if test -z "$ac_cpp_err"; then
14463 ac_header_preproc=yes
14465 echo "$as_me: failed program was:" >&5
14466 sed 's/^/| /' conftest.$ac_ext >&5
14468 ac_header_preproc=no
14471 rm -f conftest.err conftest.$ac_ext
14472 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14473 echo "${ECHO_T}$ac_header_preproc" >&6; }
14475 # So? What about this header?
14476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14478 { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14479 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14480 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14481 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14482 ac_header_preproc=yes
14485 { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14486 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: opagent.h: check for missing prerequisite headers?" >&5
14488 echo "$as_me: WARNING: opagent.h: check for missing prerequisite headers?" >&2;}
14489 { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14490 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14491 { echo "$as_me:$LINENO: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&5
14492 echo "$as_me: WARNING: opagent.h: section \"Present But Cannot Be Compiled\"" >&2;}
14493 { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14494 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14495 { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14496 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14498 ## ----------------------------------- ##
14499 ## Report this to llvmbugs@cs.uiuc.edu ##
14500 ## ----------------------------------- ##
14502 ) | sed "s/^/$as_me: WARNING: /" >&2
14505 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14506 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14507 if test "${ac_cv_header_opagent_h+set}" = set; then
14508 echo $ECHO_N "(cached) $ECHO_C" >&6
14510 ac_cv_header_opagent_h=$ac_header_preproc
14512 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14513 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14516 if test $ac_cv_header_opagent_h = yes; then
14520 echo "Error! You need to have opagent.h around."
14536 cat >>confdefs.h <<_ACEOF
14537 #define USE_OPROFILE $USE_OPROFILE
14547 ac_header_dirent=no
14548 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14549 as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14550 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14551 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14553 echo $ECHO_N "(cached) $ECHO_C" >&6
14555 cat >conftest.$ac_ext <<_ACEOF
14558 cat confdefs.h >>conftest.$ac_ext
14559 cat >>conftest.$ac_ext <<_ACEOF
14560 /* end confdefs.h. */
14561 #include <sys/types.h>
14573 rm -f conftest.$ac_objext
14574 if { (ac_try="$ac_compile"
14575 case "(($ac_try" in
14576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14577 *) ac_try_echo=$ac_try;;
14579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14580 (eval "$ac_compile") 2>conftest.er1
14582 grep -v '^ *+' conftest.er1 >conftest.err
14584 cat conftest.err >&5
14585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14586 (exit $ac_status); } &&
14587 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14588 { (case "(($ac_try" in
14589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14590 *) ac_try_echo=$ac_try;;
14592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14593 (eval "$ac_try") 2>&5
14595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14596 (exit $ac_status); }; } &&
14597 { ac_try='test -s conftest.$ac_objext'
14598 { (case "(($ac_try" in
14599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14600 *) ac_try_echo=$ac_try;;
14602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14603 (eval "$ac_try") 2>&5
14605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14606 (exit $ac_status); }; }; then
14607 eval "$as_ac_Header=yes"
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14612 eval "$as_ac_Header=no"
14615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14617 ac_res=`eval echo '${'$as_ac_Header'}'`
14618 { echo "$as_me:$LINENO: result: $ac_res" >&5
14619 echo "${ECHO_T}$ac_res" >&6; }
14620 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14621 cat >>confdefs.h <<_ACEOF
14622 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14625 ac_header_dirent=$ac_hdr; break
14629 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14630 if test $ac_header_dirent = dirent.h; then
14631 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14632 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14633 if test "${ac_cv_search_opendir+set}" = set; then
14634 echo $ECHO_N "(cached) $ECHO_C" >&6
14636 ac_func_search_save_LIBS=$LIBS
14637 cat >conftest.$ac_ext <<_ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14644 /* Override any GCC internal prototype to avoid an error.
14645 Use char because int might match the return type of a GCC
14646 builtin and then its argument prototype would still apply. */
14659 for ac_lib in '' dir; do
14660 if test -z "$ac_lib"; then
14661 ac_res="none required"
14664 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14666 rm -f conftest.$ac_objext conftest$ac_exeext
14667 if { (ac_try="$ac_link"
14668 case "(($ac_try" in
14669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14670 *) ac_try_echo=$ac_try;;
14672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14673 (eval "$ac_link") 2>conftest.er1
14675 grep -v '^ *+' conftest.er1 >conftest.err
14677 cat conftest.err >&5
14678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14679 (exit $ac_status); } &&
14680 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14681 { (case "(($ac_try" in
14682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14683 *) ac_try_echo=$ac_try;;
14685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14686 (eval "$ac_try") 2>&5
14688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14689 (exit $ac_status); }; } &&
14690 { ac_try='test -s conftest$ac_exeext'
14691 { (case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_try") 2>&5
14698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14699 (exit $ac_status); }; }; then
14700 ac_cv_search_opendir=$ac_res
14702 echo "$as_me: failed program was:" >&5
14703 sed 's/^/| /' conftest.$ac_ext >&5
14708 rm -f core conftest.err conftest.$ac_objext \
14710 if test "${ac_cv_search_opendir+set}" = set; then
14714 if test "${ac_cv_search_opendir+set}" = set; then
14717 ac_cv_search_opendir=no
14719 rm conftest.$ac_ext
14720 LIBS=$ac_func_search_save_LIBS
14722 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14723 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14724 ac_res=$ac_cv_search_opendir
14725 if test "$ac_res" != no; then
14726 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14731 { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14732 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14733 if test "${ac_cv_search_opendir+set}" = set; then
14734 echo $ECHO_N "(cached) $ECHO_C" >&6
14736 ac_func_search_save_LIBS=$LIBS
14737 cat >conftest.$ac_ext <<_ACEOF
14740 cat confdefs.h >>conftest.$ac_ext
14741 cat >>conftest.$ac_ext <<_ACEOF
14742 /* end confdefs.h. */
14744 /* Override any GCC internal prototype to avoid an error.
14745 Use char because int might match the return type of a GCC
14746 builtin and then its argument prototype would still apply. */
14759 for ac_lib in '' x; do
14760 if test -z "$ac_lib"; then
14761 ac_res="none required"
14764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
14766 rm -f conftest.$ac_objext conftest$ac_exeext
14767 if { (ac_try="$ac_link"
14768 case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14773 (eval "$ac_link") 2>conftest.er1
14775 grep -v '^ *+' conftest.er1 >conftest.err
14777 cat conftest.err >&5
14778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14779 (exit $ac_status); } &&
14780 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14781 { (case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_try") 2>&5
14788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14789 (exit $ac_status); }; } &&
14790 { ac_try='test -s conftest$ac_exeext'
14791 { (case "(($ac_try" in
14792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14793 *) ac_try_echo=$ac_try;;
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_try") 2>&5
14798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14799 (exit $ac_status); }; }; then
14800 ac_cv_search_opendir=$ac_res
14802 echo "$as_me: failed program was:" >&5
14803 sed 's/^/| /' conftest.$ac_ext >&5
14808 rm -f core conftest.err conftest.$ac_objext \
14810 if test "${ac_cv_search_opendir+set}" = set; then
14814 if test "${ac_cv_search_opendir+set}" = set; then
14817 ac_cv_search_opendir=no
14819 rm conftest.$ac_ext
14820 LIBS=$ac_func_search_save_LIBS
14822 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
14823 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
14824 ac_res=$ac_cv_search_opendir
14825 if test "$ac_res" != no; then
14826 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14832 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
14833 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
14834 if test "${ac_cv_header_mmap_anon+set}" = set; then
14835 echo $ECHO_N "(cached) $ECHO_C" >&6
14838 ac_cpp='$CPP $CPPFLAGS'
14839 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14840 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14841 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14843 cat >conftest.$ac_ext <<_ACEOF
14846 cat confdefs.h >>conftest.$ac_ext
14847 cat >>conftest.$ac_ext <<_ACEOF
14848 /* end confdefs.h. */
14849 #include <sys/mman.h>
14850 #include <unistd.h>
14855 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
14860 rm -f conftest.$ac_objext
14861 if { (ac_try="$ac_compile"
14862 case "(($ac_try" in
14863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14864 *) ac_try_echo=$ac_try;;
14866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14867 (eval "$ac_compile") 2>conftest.er1
14869 grep -v '^ *+' conftest.er1 >conftest.err
14871 cat conftest.err >&5
14872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14873 (exit $ac_status); } &&
14874 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14875 { (case "(($ac_try" in
14876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14877 *) ac_try_echo=$ac_try;;
14879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14880 (eval "$ac_try") 2>&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 (exit $ac_status); }; } &&
14884 { ac_try='test -s conftest.$ac_objext'
14885 { (case "(($ac_try" in
14886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14887 *) ac_try_echo=$ac_try;;
14889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14890 (eval "$ac_try") 2>&5
14892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14893 (exit $ac_status); }; }; then
14894 ac_cv_header_mmap_anon=yes
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_cv_header_mmap_anon=no
14902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14904 ac_cpp='$CPP $CPPFLAGS'
14905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14911 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
14912 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
14913 if test "$ac_cv_header_mmap_anon" = yes; then
14915 cat >>confdefs.h <<\_ACEOF
14916 #define HAVE_MMAP_ANONYMOUS 1
14921 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
14922 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
14923 if test "${ac_cv_header_stat_broken+set}" = set; then
14924 echo $ECHO_N "(cached) $ECHO_C" >&6
14926 cat >conftest.$ac_ext <<_ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 #include <sys/types.h>
14933 #include <sys/stat.h>
14935 #if defined S_ISBLK && defined S_IFDIR
14936 # if S_ISBLK (S_IFDIR)
14941 #if defined S_ISBLK && defined S_IFCHR
14942 # if S_ISBLK (S_IFCHR)
14947 #if defined S_ISLNK && defined S_IFREG
14948 # if S_ISLNK (S_IFREG)
14953 #if defined S_ISSOCK && defined S_IFREG
14954 # if S_ISSOCK (S_IFREG)
14960 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14961 $EGREP "You lose" >/dev/null 2>&1; then
14962 ac_cv_header_stat_broken=yes
14964 ac_cv_header_stat_broken=no
14969 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
14970 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
14971 if test $ac_cv_header_stat_broken = yes; then
14973 cat >>confdefs.h <<\_ACEOF
14974 #define STAT_MACROS_BROKEN 1
14979 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
14980 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
14981 if test "${ac_cv_header_stdc+set}" = set; then
14982 echo $ECHO_N "(cached) $ECHO_C" >&6
14984 cat >conftest.$ac_ext <<_ACEOF
14987 cat confdefs.h >>conftest.$ac_ext
14988 cat >>conftest.$ac_ext <<_ACEOF
14989 /* end confdefs.h. */
14990 #include <stdlib.h>
14991 #include <stdarg.h>
14992 #include <string.h>
15003 rm -f conftest.$ac_objext
15004 if { (ac_try="$ac_compile"
15005 case "(($ac_try" in
15006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15007 *) ac_try_echo=$ac_try;;
15009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15010 (eval "$ac_compile") 2>conftest.er1
15012 grep -v '^ *+' conftest.er1 >conftest.err
15014 cat conftest.err >&5
15015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15016 (exit $ac_status); } &&
15017 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15018 { (case "(($ac_try" in
15019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15020 *) ac_try_echo=$ac_try;;
15022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15023 (eval "$ac_try") 2>&5
15025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15026 (exit $ac_status); }; } &&
15027 { ac_try='test -s conftest.$ac_objext'
15028 { (case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_try") 2>&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 (exit $ac_status); }; }; then
15037 ac_cv_header_stdc=yes
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.$ac_ext >&5
15042 ac_cv_header_stdc=no
15045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15047 if test $ac_cv_header_stdc = yes; then
15048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15049 cat >conftest.$ac_ext <<_ACEOF
15052 cat confdefs.h >>conftest.$ac_ext
15053 cat >>conftest.$ac_ext <<_ACEOF
15054 /* end confdefs.h. */
15055 #include <string.h>
15058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15059 $EGREP "memchr" >/dev/null 2>&1; then
15062 ac_cv_header_stdc=no
15068 if test $ac_cv_header_stdc = yes; then
15069 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15070 cat >conftest.$ac_ext <<_ACEOF
15073 cat confdefs.h >>conftest.$ac_ext
15074 cat >>conftest.$ac_ext <<_ACEOF
15075 /* end confdefs.h. */
15076 #include <stdlib.h>
15079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15080 $EGREP "free" >/dev/null 2>&1; then
15083 ac_cv_header_stdc=no
15089 if test $ac_cv_header_stdc = yes; then
15090 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15091 if test "$cross_compiling" = yes; then
15094 cat >conftest.$ac_ext <<_ACEOF
15097 cat confdefs.h >>conftest.$ac_ext
15098 cat >>conftest.$ac_ext <<_ACEOF
15099 /* end confdefs.h. */
15101 #include <stdlib.h>
15102 #if ((' ' & 0x0FF) == 0x020)
15103 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15104 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15106 # define ISLOWER(c) \
15107 (('a' <= (c) && (c) <= 'i') \
15108 || ('j' <= (c) && (c) <= 'r') \
15109 || ('s' <= (c) && (c) <= 'z'))
15110 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15113 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15118 for (i = 0; i < 256; i++)
15119 if (XOR (islower (i), ISLOWER (i))
15120 || toupper (i) != TOUPPER (i))
15125 rm -f conftest$ac_exeext
15126 if { (ac_try="$ac_link"
15127 case "(($ac_try" in
15128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_link") 2>&5
15134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15136 { (case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15141 (eval "$ac_try") 2>&5
15143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15144 (exit $ac_status); }; }; then
15147 echo "$as_me: program exited with status $ac_status" >&5
15148 echo "$as_me: failed program was:" >&5
15149 sed 's/^/| /' conftest.$ac_ext >&5
15151 ( exit $ac_status )
15152 ac_cv_header_stdc=no
15154 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15160 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15161 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15162 if test $ac_cv_header_stdc = yes; then
15164 cat >>confdefs.h <<\_ACEOF
15165 #define STDC_HEADERS 1
15170 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15171 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15172 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15173 echo $ECHO_N "(cached) $ECHO_C" >&6
15175 cat >conftest.$ac_ext <<_ACEOF
15178 cat confdefs.h >>conftest.$ac_ext
15179 cat >>conftest.$ac_ext <<_ACEOF
15180 /* end confdefs.h. */
15181 #include <sys/types.h>
15182 #include <sys/wait.h>
15183 #ifndef WEXITSTATUS
15184 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15187 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15195 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15200 rm -f conftest.$ac_objext
15201 if { (ac_try="$ac_compile"
15202 case "(($ac_try" in
15203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15204 *) ac_try_echo=$ac_try;;
15206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15207 (eval "$ac_compile") 2>conftest.er1
15209 grep -v '^ *+' conftest.er1 >conftest.err
15211 cat conftest.err >&5
15212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15213 (exit $ac_status); } &&
15214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15215 { (case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15220 (eval "$ac_try") 2>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); }; } &&
15224 { ac_try='test -s conftest.$ac_objext'
15225 { (case "(($ac_try" in
15226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15227 *) ac_try_echo=$ac_try;;
15229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15230 (eval "$ac_try") 2>&5
15232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15233 (exit $ac_status); }; }; then
15234 ac_cv_header_sys_wait_h=yes
15236 echo "$as_me: failed program was:" >&5
15237 sed 's/^/| /' conftest.$ac_ext >&5
15239 ac_cv_header_sys_wait_h=no
15242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15244 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15245 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15246 if test $ac_cv_header_sys_wait_h = yes; then
15248 cat >>confdefs.h <<\_ACEOF
15249 #define HAVE_SYS_WAIT_H 1
15254 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15255 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15256 if test "${ac_cv_header_time+set}" = set; then
15257 echo $ECHO_N "(cached) $ECHO_C" >&6
15259 cat >conftest.$ac_ext <<_ACEOF
15262 cat confdefs.h >>conftest.$ac_ext
15263 cat >>conftest.$ac_ext <<_ACEOF
15264 /* end confdefs.h. */
15265 #include <sys/types.h>
15266 #include <sys/time.h>
15272 if ((struct tm *) 0)
15278 rm -f conftest.$ac_objext
15279 if { (ac_try="$ac_compile"
15280 case "(($ac_try" in
15281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15282 *) ac_try_echo=$ac_try;;
15284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15285 (eval "$ac_compile") 2>conftest.er1
15287 grep -v '^ *+' conftest.er1 >conftest.err
15289 cat conftest.err >&5
15290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15291 (exit $ac_status); } &&
15292 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15293 { (case "(($ac_try" in
15294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15295 *) ac_try_echo=$ac_try;;
15297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15298 (eval "$ac_try") 2>&5
15300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15301 (exit $ac_status); }; } &&
15302 { ac_try='test -s conftest.$ac_objext'
15303 { (case "(($ac_try" in
15304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15305 *) ac_try_echo=$ac_try;;
15307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15308 (eval "$ac_try") 2>&5
15310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15311 (exit $ac_status); }; }; then
15312 ac_cv_header_time=yes
15314 echo "$as_me: failed program was:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 ac_cv_header_time=no
15320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15322 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15323 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15324 if test $ac_cv_header_time = yes; then
15326 cat >>confdefs.h <<\_ACEOF
15327 #define TIME_WITH_SYS_TIME 1
15339 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15341 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15342 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15346 echo $ECHO_N "(cached) $ECHO_C" >&6
15348 ac_res=`eval echo '${'$as_ac_Header'}'`
15349 { echo "$as_me:$LINENO: result: $ac_res" >&5
15350 echo "${ECHO_T}$ac_res" >&6; }
15352 # Is the header compilable?
15353 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15355 cat >conftest.$ac_ext <<_ACEOF
15358 cat confdefs.h >>conftest.$ac_ext
15359 cat >>conftest.$ac_ext <<_ACEOF
15360 /* end confdefs.h. */
15361 $ac_includes_default
15362 #include <$ac_header>
15364 rm -f conftest.$ac_objext
15365 if { (ac_try="$ac_compile"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_compile") 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15377 (exit $ac_status); } &&
15378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15379 { (case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_try") 2>&5
15386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15387 (exit $ac_status); }; } &&
15388 { ac_try='test -s conftest.$ac_objext'
15389 { (case "(($ac_try" in
15390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15391 *) ac_try_echo=$ac_try;;
15393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15394 (eval "$ac_try") 2>&5
15396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15397 (exit $ac_status); }; }; then
15398 ac_header_compiler=yes
15400 echo "$as_me: failed program was:" >&5
15401 sed 's/^/| /' conftest.$ac_ext >&5
15403 ac_header_compiler=no
15406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15408 echo "${ECHO_T}$ac_header_compiler" >&6; }
15410 # Is the header present?
15411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15413 cat >conftest.$ac_ext <<_ACEOF
15416 cat confdefs.h >>conftest.$ac_ext
15417 cat >>conftest.$ac_ext <<_ACEOF
15418 /* end confdefs.h. */
15419 #include <$ac_header>
15421 if { (ac_try="$ac_cpp conftest.$ac_ext"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15429 grep -v '^ *+' conftest.er1 >conftest.err
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15433 (exit $ac_status); } >/dev/null; then
15434 if test -s conftest.err; then
15435 ac_cpp_err=$ac_c_preproc_warn_flag
15436 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15443 if test -z "$ac_cpp_err"; then
15444 ac_header_preproc=yes
15446 echo "$as_me: failed program was:" >&5
15447 sed 's/^/| /' conftest.$ac_ext >&5
15449 ac_header_preproc=no
15452 rm -f conftest.err conftest.$ac_ext
15453 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15454 echo "${ECHO_T}$ac_header_preproc" >&6; }
15456 # So? What about this header?
15457 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15459 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15460 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15462 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15463 ac_header_preproc=yes
15466 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15467 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15468 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15469 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15471 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15473 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15475 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15477 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15479 ## ----------------------------------- ##
15480 ## Report this to llvmbugs@cs.uiuc.edu ##
15481 ## ----------------------------------- ##
15483 ) | sed "s/^/$as_me: WARNING: /" >&2
15486 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15487 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15488 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15489 echo $ECHO_N "(cached) $ECHO_C" >&6
15491 eval "$as_ac_Header=\$ac_header_preproc"
15493 ac_res=`eval echo '${'$as_ac_Header'}'`
15494 { echo "$as_me:$LINENO: result: $ac_res" >&5
15495 echo "${ECHO_T}$ac_res" >&6; }
15498 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15499 cat >>confdefs.h <<_ACEOF
15500 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15513 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15515 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15516 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15522 ac_res=`eval echo '${'$as_ac_Header'}'`
15523 { echo "$as_me:$LINENO: result: $ac_res" >&5
15524 echo "${ECHO_T}$ac_res" >&6; }
15526 # Is the header compilable?
15527 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15528 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15529 cat >conftest.$ac_ext <<_ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h. */
15535 $ac_includes_default
15536 #include <$ac_header>
15538 rm -f conftest.$ac_objext
15539 if { (ac_try="$ac_compile"
15540 case "(($ac_try" in
15541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15542 *) ac_try_echo=$ac_try;;
15544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15545 (eval "$ac_compile") 2>conftest.er1
15547 grep -v '^ *+' conftest.er1 >conftest.err
15549 cat conftest.err >&5
15550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15551 (exit $ac_status); } &&
15552 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15553 { (case "(($ac_try" in
15554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15555 *) ac_try_echo=$ac_try;;
15557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15558 (eval "$ac_try") 2>&5
15560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); }; } &&
15562 { ac_try='test -s conftest.$ac_objext'
15563 { (case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_try") 2>&5
15570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15571 (exit $ac_status); }; }; then
15572 ac_header_compiler=yes
15574 echo "$as_me: failed program was:" >&5
15575 sed 's/^/| /' conftest.$ac_ext >&5
15577 ac_header_compiler=no
15580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15582 echo "${ECHO_T}$ac_header_compiler" >&6; }
15584 # Is the header present?
15585 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15586 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15587 cat >conftest.$ac_ext <<_ACEOF
15590 cat confdefs.h >>conftest.$ac_ext
15591 cat >>conftest.$ac_ext <<_ACEOF
15592 /* end confdefs.h. */
15593 #include <$ac_header>
15595 if { (ac_try="$ac_cpp conftest.$ac_ext"
15596 case "(($ac_try" in
15597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598 *) ac_try_echo=$ac_try;;
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15603 grep -v '^ *+' conftest.er1 >conftest.err
15605 cat conftest.err >&5
15606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607 (exit $ac_status); } >/dev/null; then
15608 if test -s conftest.err; then
15609 ac_cpp_err=$ac_c_preproc_warn_flag
15610 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15617 if test -z "$ac_cpp_err"; then
15618 ac_header_preproc=yes
15620 echo "$as_me: failed program was:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 ac_header_preproc=no
15626 rm -f conftest.err conftest.$ac_ext
15627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15628 echo "${ECHO_T}$ac_header_preproc" >&6; }
15630 # So? What about this header?
15631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15637 ac_header_preproc=yes
15640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15653 ## ----------------------------------- ##
15654 ## Report this to llvmbugs@cs.uiuc.edu ##
15655 ## ----------------------------------- ##
15657 ) | sed "s/^/$as_me: WARNING: /" >&2
15660 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15661 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15662 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15663 echo $ECHO_N "(cached) $ECHO_C" >&6
15665 eval "$as_ac_Header=\$ac_header_preproc"
15667 ac_res=`eval echo '${'$as_ac_Header'}'`
15668 { echo "$as_me:$LINENO: result: $ac_res" >&5
15669 echo "${ECHO_T}$ac_res" >&6; }
15672 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15673 cat >>confdefs.h <<_ACEOF
15674 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15683 for ac_header in utime.h windows.h
15685 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15686 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15690 echo $ECHO_N "(cached) $ECHO_C" >&6
15692 ac_res=`eval echo '${'$as_ac_Header'}'`
15693 { echo "$as_me:$LINENO: result: $ac_res" >&5
15694 echo "${ECHO_T}$ac_res" >&6; }
15696 # Is the header compilable?
15697 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15698 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15699 cat >conftest.$ac_ext <<_ACEOF
15702 cat confdefs.h >>conftest.$ac_ext
15703 cat >>conftest.$ac_ext <<_ACEOF
15704 /* end confdefs.h. */
15705 $ac_includes_default
15706 #include <$ac_header>
15708 rm -f conftest.$ac_objext
15709 if { (ac_try="$ac_compile"
15710 case "(($ac_try" in
15711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15712 *) ac_try_echo=$ac_try;;
15714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15715 (eval "$ac_compile") 2>conftest.er1
15717 grep -v '^ *+' conftest.er1 >conftest.err
15719 cat conftest.err >&5
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); } &&
15722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15723 { (case "(($ac_try" in
15724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15725 *) ac_try_echo=$ac_try;;
15727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15728 (eval "$ac_try") 2>&5
15730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); }; } &&
15732 { ac_try='test -s conftest.$ac_objext'
15733 { (case "(($ac_try" in
15734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15735 *) ac_try_echo=$ac_try;;
15737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15738 (eval "$ac_try") 2>&5
15740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); }; }; then
15742 ac_header_compiler=yes
15744 echo "$as_me: failed program was:" >&5
15745 sed 's/^/| /' conftest.$ac_ext >&5
15747 ac_header_compiler=no
15750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15752 echo "${ECHO_T}$ac_header_compiler" >&6; }
15754 # Is the header present?
15755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15757 cat >conftest.$ac_ext <<_ACEOF
15760 cat confdefs.h >>conftest.$ac_ext
15761 cat >>conftest.$ac_ext <<_ACEOF
15762 /* end confdefs.h. */
15763 #include <$ac_header>
15765 if { (ac_try="$ac_cpp conftest.$ac_ext"
15766 case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15773 grep -v '^ *+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15777 (exit $ac_status); } >/dev/null; then
15778 if test -s conftest.err; then
15779 ac_cpp_err=$ac_c_preproc_warn_flag
15780 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15787 if test -z "$ac_cpp_err"; then
15788 ac_header_preproc=yes
15790 echo "$as_me: failed program was:" >&5
15791 sed 's/^/| /' conftest.$ac_ext >&5
15793 ac_header_preproc=no
15796 rm -f conftest.err conftest.$ac_ext
15797 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15798 echo "${ECHO_T}$ac_header_preproc" >&6; }
15800 # So? What about this header?
15801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15804 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15806 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15807 ac_header_preproc=yes
15810 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15811 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15812 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15813 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15815 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15817 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15819 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15821 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15823 ## ----------------------------------- ##
15824 ## Report this to llvmbugs@cs.uiuc.edu ##
15825 ## ----------------------------------- ##
15827 ) | sed "s/^/$as_me: WARNING: /" >&2
15830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15833 echo $ECHO_N "(cached) $ECHO_C" >&6
15835 eval "$as_ac_Header=\$ac_header_preproc"
15837 ac_res=`eval echo '${'$as_ac_Header'}'`
15838 { echo "$as_me:$LINENO: result: $ac_res" >&5
15839 echo "${ECHO_T}$ac_res" >&6; }
15842 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15843 cat >>confdefs.h <<_ACEOF
15844 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15855 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
15857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15864 ac_res=`eval echo '${'$as_ac_Header'}'`
15865 { echo "$as_me:$LINENO: result: $ac_res" >&5
15866 echo "${ECHO_T}$ac_res" >&6; }
15868 # Is the header compilable?
15869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15871 cat >conftest.$ac_ext <<_ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15878 #include <$ac_header>
15880 rm -f conftest.$ac_objext
15881 if { (ac_try="$ac_compile"
15882 case "(($ac_try" in
15883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884 *) ac_try_echo=$ac_try;;
15886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15887 (eval "$ac_compile") 2>conftest.er1
15889 grep -v '^ *+' conftest.er1 >conftest.err
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } &&
15894 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15895 { (case "(($ac_try" in
15896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897 *) ac_try_echo=$ac_try;;
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900 (eval "$ac_try") 2>&5
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; } &&
15904 { ac_try='test -s conftest.$ac_objext'
15905 { (case "(($ac_try" in
15906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15907 *) ac_try_echo=$ac_try;;
15909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15910 (eval "$ac_try") 2>&5
15912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15913 (exit $ac_status); }; }; then
15914 ac_header_compiler=yes
15916 echo "$as_me: failed program was:" >&5
15917 sed 's/^/| /' conftest.$ac_ext >&5
15919 ac_header_compiler=no
15922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15924 echo "${ECHO_T}$ac_header_compiler" >&6; }
15926 # Is the header present?
15927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15929 cat >conftest.$ac_ext <<_ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 #include <$ac_header>
15937 if { (ac_try="$ac_cpp conftest.$ac_ext"
15938 case "(($ac_try" in
15939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15940 *) ac_try_echo=$ac_try;;
15942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15945 grep -v '^ *+' conftest.er1 >conftest.err
15947 cat conftest.err >&5
15948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15949 (exit $ac_status); } >/dev/null; then
15950 if test -s conftest.err; then
15951 ac_cpp_err=$ac_c_preproc_warn_flag
15952 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15959 if test -z "$ac_cpp_err"; then
15960 ac_header_preproc=yes
15962 echo "$as_me: failed program was:" >&5
15963 sed 's/^/| /' conftest.$ac_ext >&5
15965 ac_header_preproc=no
15968 rm -f conftest.err conftest.$ac_ext
15969 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15970 echo "${ECHO_T}$ac_header_preproc" >&6; }
15972 # So? What about this header?
15973 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15975 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15976 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15977 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15978 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15979 ac_header_preproc=yes
15982 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15983 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15984 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15985 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15986 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15987 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15988 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15989 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15990 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15991 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15992 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15993 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15995 ## ----------------------------------- ##
15996 ## Report this to llvmbugs@cs.uiuc.edu ##
15997 ## ----------------------------------- ##
15999 ) | sed "s/^/$as_me: WARNING: /" >&2
16002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16005 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 eval "$as_ac_Header=\$ac_header_preproc"
16009 ac_res=`eval echo '${'$as_ac_Header'}'`
16010 { echo "$as_me:$LINENO: result: $ac_res" >&5
16011 echo "${ECHO_T}$ac_res" >&6; }
16014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16015 cat >>confdefs.h <<_ACEOF
16016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16027 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16036 ac_res=`eval echo '${'$as_ac_Header'}'`
16037 { echo "$as_me:$LINENO: result: $ac_res" >&5
16038 echo "${ECHO_T}$ac_res" >&6; }
16040 # Is the header compilable?
16041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16043 cat >conftest.$ac_ext <<_ACEOF
16046 cat confdefs.h >>conftest.$ac_ext
16047 cat >>conftest.$ac_ext <<_ACEOF
16048 /* end confdefs.h. */
16049 $ac_includes_default
16050 #include <$ac_header>
16052 rm -f conftest.$ac_objext
16053 if { (ac_try="$ac_compile"
16054 case "(($ac_try" in
16055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16056 *) ac_try_echo=$ac_try;;
16058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16059 (eval "$ac_compile") 2>conftest.er1
16061 grep -v '^ *+' conftest.er1 >conftest.err
16063 cat conftest.err >&5
16064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16065 (exit $ac_status); } &&
16066 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16067 { (case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_try") 2>&5
16074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16075 (exit $ac_status); }; } &&
16076 { ac_try='test -s conftest.$ac_objext'
16077 { (case "(($ac_try" in
16078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16079 *) ac_try_echo=$ac_try;;
16081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16082 (eval "$ac_try") 2>&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }; }; then
16086 ac_header_compiler=yes
16088 echo "$as_me: failed program was:" >&5
16089 sed 's/^/| /' conftest.$ac_ext >&5
16091 ac_header_compiler=no
16094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16096 echo "${ECHO_T}$ac_header_compiler" >&6; }
16098 # Is the header present?
16099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16101 cat >conftest.$ac_ext <<_ACEOF
16104 cat confdefs.h >>conftest.$ac_ext
16105 cat >>conftest.$ac_ext <<_ACEOF
16106 /* end confdefs.h. */
16107 #include <$ac_header>
16109 if { (ac_try="$ac_cpp conftest.$ac_ext"
16110 case "(($ac_try" in
16111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16112 *) ac_try_echo=$ac_try;;
16114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16117 grep -v '^ *+' conftest.er1 >conftest.err
16119 cat conftest.err >&5
16120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16121 (exit $ac_status); } >/dev/null; then
16122 if test -s conftest.err; then
16123 ac_cpp_err=$ac_c_preproc_warn_flag
16124 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16131 if test -z "$ac_cpp_err"; then
16132 ac_header_preproc=yes
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16137 ac_header_preproc=no
16140 rm -f conftest.err conftest.$ac_ext
16141 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16142 echo "${ECHO_T}$ac_header_preproc" >&6; }
16144 # So? What about this header?
16145 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16147 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16148 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16149 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16150 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16151 ac_header_preproc=yes
16154 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16155 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16157 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16159 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16161 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16162 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16163 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16164 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16165 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16167 ## ----------------------------------- ##
16168 ## Report this to llvmbugs@cs.uiuc.edu ##
16169 ## ----------------------------------- ##
16171 ) | sed "s/^/$as_me: WARNING: /" >&2
16174 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16175 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16177 echo $ECHO_N "(cached) $ECHO_C" >&6
16179 eval "$as_ac_Header=\$ac_header_preproc"
16181 ac_res=`eval echo '${'$as_ac_Header'}'`
16182 { echo "$as_me:$LINENO: result: $ac_res" >&5
16183 echo "${ECHO_T}$ac_res" >&6; }
16186 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16187 cat >>confdefs.h <<_ACEOF
16188 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16196 for ac_header in valgrind/valgrind.h
16198 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16199 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16200 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16201 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16202 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16203 echo $ECHO_N "(cached) $ECHO_C" >&6
16205 ac_res=`eval echo '${'$as_ac_Header'}'`
16206 { echo "$as_me:$LINENO: result: $ac_res" >&5
16207 echo "${ECHO_T}$ac_res" >&6; }
16209 # Is the header compilable?
16210 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16211 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16212 cat >conftest.$ac_ext <<_ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 $ac_includes_default
16219 #include <$ac_header>
16221 rm -f conftest.$ac_objext
16222 if { (ac_try="$ac_compile"
16223 case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_compile") 2>conftest.er1
16230 grep -v '^ *+' conftest.er1 >conftest.err
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16234 (exit $ac_status); } &&
16235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16236 { (case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_try") 2>&5
16243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16244 (exit $ac_status); }; } &&
16245 { ac_try='test -s conftest.$ac_objext'
16246 { (case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16251 (eval "$ac_try") 2>&5
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_header_compiler=yes
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16260 ac_header_compiler=no
16263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16265 echo "${ECHO_T}$ac_header_compiler" >&6; }
16267 # Is the header present?
16268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16270 cat >conftest.$ac_ext <<_ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h. */
16276 #include <$ac_header>
16278 if { (ac_try="$ac_cpp conftest.$ac_ext"
16279 case "(($ac_try" in
16280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16281 *) ac_try_echo=$ac_try;;
16283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16286 grep -v '^ *+' conftest.er1 >conftest.err
16288 cat conftest.err >&5
16289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16290 (exit $ac_status); } >/dev/null; then
16291 if test -s conftest.err; then
16292 ac_cpp_err=$ac_c_preproc_warn_flag
16293 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16300 if test -z "$ac_cpp_err"; then
16301 ac_header_preproc=yes
16303 echo "$as_me: failed program was:" >&5
16304 sed 's/^/| /' conftest.$ac_ext >&5
16306 ac_header_preproc=no
16309 rm -f conftest.err conftest.$ac_ext
16310 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16311 echo "${ECHO_T}$ac_header_preproc" >&6; }
16313 # So? What about this header?
16314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16316 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16317 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16319 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16320 ac_header_preproc=yes
16323 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16324 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16325 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16326 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16327 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16328 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16329 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16330 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16332 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16334 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16336 ## ----------------------------------- ##
16337 ## Report this to llvmbugs@cs.uiuc.edu ##
16338 ## ----------------------------------- ##
16340 ) | sed "s/^/$as_me: WARNING: /" >&2
16343 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16344 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16345 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16348 eval "$as_ac_Header=\$ac_header_preproc"
16350 ac_res=`eval echo '${'$as_ac_Header'}'`
16351 { echo "$as_me:$LINENO: result: $ac_res" >&5
16352 echo "${ECHO_T}$ac_res" >&6; }
16355 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16356 cat >>confdefs.h <<_ACEOF
16357 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16364 if test "$ENABLE_THREADS" -eq 1 ; then
16366 for ac_header in pthread.h
16368 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16373 echo $ECHO_N "(cached) $ECHO_C" >&6
16375 ac_res=`eval echo '${'$as_ac_Header'}'`
16376 { echo "$as_me:$LINENO: result: $ac_res" >&5
16377 echo "${ECHO_T}$ac_res" >&6; }
16379 # Is the header compilable?
16380 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16382 cat >conftest.$ac_ext <<_ACEOF
16385 cat confdefs.h >>conftest.$ac_ext
16386 cat >>conftest.$ac_ext <<_ACEOF
16387 /* end confdefs.h. */
16388 $ac_includes_default
16389 #include <$ac_header>
16391 rm -f conftest.$ac_objext
16392 if { (ac_try="$ac_compile"
16393 case "(($ac_try" in
16394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395 *) ac_try_echo=$ac_try;;
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398 (eval "$ac_compile") 2>conftest.er1
16400 grep -v '^ *+' conftest.er1 >conftest.err
16402 cat conftest.err >&5
16403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16404 (exit $ac_status); } &&
16405 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16406 { (case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_try") 2>&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); }; } &&
16415 { ac_try='test -s conftest.$ac_objext'
16416 { (case "(($ac_try" in
16417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16418 *) ac_try_echo=$ac_try;;
16420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16421 (eval "$ac_try") 2>&5
16423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); }; }; then
16425 ac_header_compiler=yes
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16430 ac_header_compiler=no
16433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16434 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16435 echo "${ECHO_T}$ac_header_compiler" >&6; }
16437 # Is the header present?
16438 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16439 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16440 cat >conftest.$ac_ext <<_ACEOF
16443 cat confdefs.h >>conftest.$ac_ext
16444 cat >>conftest.$ac_ext <<_ACEOF
16445 /* end confdefs.h. */
16446 #include <$ac_header>
16448 if { (ac_try="$ac_cpp conftest.$ac_ext"
16449 case "(($ac_try" in
16450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16451 *) ac_try_echo=$ac_try;;
16453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16454 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16456 grep -v '^ *+' conftest.er1 >conftest.err
16458 cat conftest.err >&5
16459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16460 (exit $ac_status); } >/dev/null; then
16461 if test -s conftest.err; then
16462 ac_cpp_err=$ac_c_preproc_warn_flag
16463 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16470 if test -z "$ac_cpp_err"; then
16471 ac_header_preproc=yes
16473 echo "$as_me: failed program was:" >&5
16474 sed 's/^/| /' conftest.$ac_ext >&5
16476 ac_header_preproc=no
16479 rm -f conftest.err conftest.$ac_ext
16480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16481 echo "${ECHO_T}$ac_header_preproc" >&6; }
16483 # So? What about this header?
16484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16486 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16487 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16488 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16489 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16490 ac_header_preproc=yes
16493 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16494 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16496 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16498 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16500 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16502 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16503 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16504 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16506 ## ----------------------------------- ##
16507 ## Report this to llvmbugs@cs.uiuc.edu ##
16508 ## ----------------------------------- ##
16510 ) | sed "s/^/$as_me: WARNING: /" >&2
16513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16516 echo $ECHO_N "(cached) $ECHO_C" >&6
16518 eval "$as_ac_Header=\$ac_header_preproc"
16520 ac_res=`eval echo '${'$as_ac_Header'}'`
16521 { echo "$as_me:$LINENO: result: $ac_res" >&5
16522 echo "${ECHO_T}$ac_res" >&6; }
16525 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16526 cat >>confdefs.h <<_ACEOF
16527 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16543 if test "$llvm_cv_enable_libffi" = "yes" ; then
16546 for ac_header in ffi.h ffi/ffi.h
16548 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16553 echo $ECHO_N "(cached) $ECHO_C" >&6
16555 ac_res=`eval echo '${'$as_ac_Header'}'`
16556 { echo "$as_me:$LINENO: result: $ac_res" >&5
16557 echo "${ECHO_T}$ac_res" >&6; }
16559 # Is the header compilable?
16560 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16561 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16562 cat >conftest.$ac_ext <<_ACEOF
16565 cat confdefs.h >>conftest.$ac_ext
16566 cat >>conftest.$ac_ext <<_ACEOF
16567 /* end confdefs.h. */
16568 $ac_includes_default
16569 #include <$ac_header>
16571 rm -f conftest.$ac_objext
16572 if { (ac_try="$ac_compile"
16573 case "(($ac_try" in
16574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16575 *) ac_try_echo=$ac_try;;
16577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16578 (eval "$ac_compile") 2>conftest.er1
16580 grep -v '^ *+' conftest.er1 >conftest.err
16582 cat conftest.err >&5
16583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16584 (exit $ac_status); } &&
16585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16586 { (case "(($ac_try" in
16587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16588 *) ac_try_echo=$ac_try;;
16590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16591 (eval "$ac_try") 2>&5
16593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16594 (exit $ac_status); }; } &&
16595 { ac_try='test -s conftest.$ac_objext'
16596 { (case "(($ac_try" in
16597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16598 *) ac_try_echo=$ac_try;;
16600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16601 (eval "$ac_try") 2>&5
16603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16604 (exit $ac_status); }; }; then
16605 ac_header_compiler=yes
16607 echo "$as_me: failed program was:" >&5
16608 sed 's/^/| /' conftest.$ac_ext >&5
16610 ac_header_compiler=no
16613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16615 echo "${ECHO_T}$ac_header_compiler" >&6; }
16617 # Is the header present?
16618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16620 cat >conftest.$ac_ext <<_ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16626 #include <$ac_header>
16628 if { (ac_try="$ac_cpp conftest.$ac_ext"
16629 case "(($ac_try" in
16630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16631 *) ac_try_echo=$ac_try;;
16633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16636 grep -v '^ *+' conftest.er1 >conftest.err
16638 cat conftest.err >&5
16639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16640 (exit $ac_status); } >/dev/null; then
16641 if test -s conftest.err; then
16642 ac_cpp_err=$ac_c_preproc_warn_flag
16643 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16650 if test -z "$ac_cpp_err"; then
16651 ac_header_preproc=yes
16653 echo "$as_me: failed program was:" >&5
16654 sed 's/^/| /' conftest.$ac_ext >&5
16656 ac_header_preproc=no
16659 rm -f conftest.err conftest.$ac_ext
16660 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16661 echo "${ECHO_T}$ac_header_preproc" >&6; }
16663 # So? What about this header?
16664 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16666 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16667 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16669 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16670 ac_header_preproc=yes
16673 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16674 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16675 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16676 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16677 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16678 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16679 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16680 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16682 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16683 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16684 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16686 ## ----------------------------------- ##
16687 ## Report this to llvmbugs@cs.uiuc.edu ##
16688 ## ----------------------------------- ##
16690 ) | sed "s/^/$as_me: WARNING: /" >&2
16693 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16694 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16695 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16696 echo $ECHO_N "(cached) $ECHO_C" >&6
16698 eval "$as_ac_Header=\$ac_header_preproc"
16700 ac_res=`eval echo '${'$as_ac_Header'}'`
16701 { echo "$as_me:$LINENO: result: $ac_res" >&5
16702 echo "${ECHO_T}$ac_res" >&6; }
16705 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16706 cat >>confdefs.h <<_ACEOF
16707 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16719 { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
16720 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
16721 if test "${ac_cv_huge_val_sanity+set}" = set; then
16722 echo $ECHO_N "(cached) $ECHO_C" >&6
16726 ac_cpp='$CXXCPP $CPPFLAGS'
16727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16731 ac_save_CXXFLAGS=$CXXFLAGS
16733 if test "$cross_compiling" = yes; then
16734 ac_cv_huge_val_sanity=yes
16736 cat >conftest.$ac_ext <<_ACEOF
16739 cat confdefs.h >>conftest.$ac_ext
16740 cat >>conftest.$ac_ext <<_ACEOF
16741 /* end confdefs.h. */
16746 double x = HUGE_VAL; return x != x;
16751 rm -f conftest$ac_exeext
16752 if { (ac_try="$ac_link"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16758 (eval "$ac_link") 2>&5
16760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16761 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16762 { (case "(($ac_try" in
16763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16764 *) ac_try_echo=$ac_try;;
16766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16767 (eval "$ac_try") 2>&5
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); }; }; then
16771 ac_cv_huge_val_sanity=yes
16773 echo "$as_me: program exited with status $ac_status" >&5
16774 echo "$as_me: failed program was:" >&5
16775 sed 's/^/| /' conftest.$ac_ext >&5
16777 ( exit $ac_status )
16778 ac_cv_huge_val_sanity=no
16780 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16784 CXXFLAGS=$ac_save_CXXFLAGS
16786 ac_cpp='$CPP $CPPFLAGS'
16787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16793 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
16794 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
16795 HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
16798 { echo "$as_me:$LINENO: checking for pid_t" >&5
16799 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
16800 if test "${ac_cv_type_pid_t+set}" = set; then
16801 echo $ECHO_N "(cached) $ECHO_C" >&6
16803 cat >conftest.$ac_ext <<_ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 $ac_includes_default
16810 typedef pid_t ac__type_new_;
16814 if ((ac__type_new_ *) 0)
16816 if (sizeof (ac__type_new_))
16822 rm -f conftest.$ac_objext
16823 if { (ac_try="$ac_compile"
16824 case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_compile") 2>conftest.er1
16831 grep -v '^ *+' conftest.er1 >conftest.err
16833 cat conftest.err >&5
16834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16835 (exit $ac_status); } &&
16836 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16837 { (case "(($ac_try" in
16838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16839 *) ac_try_echo=$ac_try;;
16841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16842 (eval "$ac_try") 2>&5
16844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16845 (exit $ac_status); }; } &&
16846 { ac_try='test -s conftest.$ac_objext'
16847 { (case "(($ac_try" in
16848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16849 *) ac_try_echo=$ac_try;;
16851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16852 (eval "$ac_try") 2>&5
16854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16855 (exit $ac_status); }; }; then
16856 ac_cv_type_pid_t=yes
16858 echo "$as_me: failed program was:" >&5
16859 sed 's/^/| /' conftest.$ac_ext >&5
16861 ac_cv_type_pid_t=no
16864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16866 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
16867 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
16868 if test $ac_cv_type_pid_t = yes; then
16872 cat >>confdefs.h <<_ACEOF
16878 { echo "$as_me:$LINENO: checking for size_t" >&5
16879 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
16880 if test "${ac_cv_type_size_t+set}" = set; then
16881 echo $ECHO_N "(cached) $ECHO_C" >&6
16883 cat >conftest.$ac_ext <<_ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 $ac_includes_default
16890 typedef size_t ac__type_new_;
16894 if ((ac__type_new_ *) 0)
16896 if (sizeof (ac__type_new_))
16902 rm -f conftest.$ac_objext
16903 if { (ac_try="$ac_compile"
16904 case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_compile") 2>conftest.er1
16911 grep -v '^ *+' conftest.er1 >conftest.err
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } &&
16916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; } &&
16926 { ac_try='test -s conftest.$ac_objext'
16927 { (case "(($ac_try" in
16928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16929 *) ac_try_echo=$ac_try;;
16931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16932 (eval "$ac_try") 2>&5
16934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16935 (exit $ac_status); }; }; then
16936 ac_cv_type_size_t=yes
16938 echo "$as_me: failed program was:" >&5
16939 sed 's/^/| /' conftest.$ac_ext >&5
16941 ac_cv_type_size_t=no
16944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16946 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
16947 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
16948 if test $ac_cv_type_size_t = yes; then
16952 cat >>confdefs.h <<_ACEOF
16953 #define size_t unsigned int
16959 cat >>confdefs.h <<_ACEOF
16960 #define RETSIGTYPE void
16963 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
16964 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
16965 if test "${ac_cv_struct_tm+set}" = set; then
16966 echo $ECHO_N "(cached) $ECHO_C" >&6
16968 cat >conftest.$ac_ext <<_ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 #include <sys/types.h>
16980 struct tm *tp; tp->tm_sec;
16985 rm -f conftest.$ac_objext
16986 if { (ac_try="$ac_compile"
16987 case "(($ac_try" in
16988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16989 *) ac_try_echo=$ac_try;;
16991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16992 (eval "$ac_compile") 2>conftest.er1
16994 grep -v '^ *+' conftest.er1 >conftest.err
16996 cat conftest.err >&5
16997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } &&
16999 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17000 { (case "(($ac_try" in
17001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17002 *) ac_try_echo=$ac_try;;
17004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17005 (eval "$ac_try") 2>&5
17007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17008 (exit $ac_status); }; } &&
17009 { ac_try='test -s conftest.$ac_objext'
17010 { (case "(($ac_try" in
17011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17012 *) ac_try_echo=$ac_try;;
17014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17015 (eval "$ac_try") 2>&5
17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17018 (exit $ac_status); }; }; then
17019 ac_cv_struct_tm=time.h
17021 echo "$as_me: failed program was:" >&5
17022 sed 's/^/| /' conftest.$ac_ext >&5
17024 ac_cv_struct_tm=sys/time.h
17027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17029 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17030 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17031 if test $ac_cv_struct_tm = sys/time.h; then
17033 cat >>confdefs.h <<\_ACEOF
17034 #define TM_IN_SYS_TIME 1
17039 { echo "$as_me:$LINENO: checking for int64_t" >&5
17040 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17041 if test "${ac_cv_type_int64_t+set}" = set; then
17042 echo $ECHO_N "(cached) $ECHO_C" >&6
17044 cat >conftest.$ac_ext <<_ACEOF
17047 cat confdefs.h >>conftest.$ac_ext
17048 cat >>conftest.$ac_ext <<_ACEOF
17049 /* end confdefs.h. */
17050 $ac_includes_default
17051 typedef int64_t ac__type_new_;
17055 if ((ac__type_new_ *) 0)
17057 if (sizeof (ac__type_new_))
17063 rm -f conftest.$ac_objext
17064 if { (ac_try="$ac_compile"
17065 case "(($ac_try" in
17066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17067 *) ac_try_echo=$ac_try;;
17069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17070 (eval "$ac_compile") 2>conftest.er1
17072 grep -v '^ *+' conftest.er1 >conftest.err
17074 cat conftest.err >&5
17075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17076 (exit $ac_status); } &&
17077 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17078 { (case "(($ac_try" in
17079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17080 *) ac_try_echo=$ac_try;;
17082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17083 (eval "$ac_try") 2>&5
17085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17086 (exit $ac_status); }; } &&
17087 { ac_try='test -s conftest.$ac_objext'
17088 { (case "(($ac_try" in
17089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17090 *) ac_try_echo=$ac_try;;
17092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17093 (eval "$ac_try") 2>&5
17095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17096 (exit $ac_status); }; }; then
17097 ac_cv_type_int64_t=yes
17099 echo "$as_me: failed program was:" >&5
17100 sed 's/^/| /' conftest.$ac_ext >&5
17102 ac_cv_type_int64_t=no
17105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17107 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17108 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17109 if test $ac_cv_type_int64_t = yes; then
17111 cat >>confdefs.h <<_ACEOF
17112 #define HAVE_INT64_T 1
17117 { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17118 echo "$as_me: error: Type int64_t required but not found" >&2;}
17119 { (exit 1); exit 1; }; }
17122 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17123 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17124 if test "${ac_cv_type_uint64_t+set}" = set; then
17125 echo $ECHO_N "(cached) $ECHO_C" >&6
17127 cat >conftest.$ac_ext <<_ACEOF
17130 cat confdefs.h >>conftest.$ac_ext
17131 cat >>conftest.$ac_ext <<_ACEOF
17132 /* end confdefs.h. */
17133 $ac_includes_default
17134 typedef uint64_t ac__type_new_;
17138 if ((ac__type_new_ *) 0)
17140 if (sizeof (ac__type_new_))
17146 rm -f conftest.$ac_objext
17147 if { (ac_try="$ac_compile"
17148 case "(($ac_try" in
17149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17150 *) ac_try_echo=$ac_try;;
17152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17153 (eval "$ac_compile") 2>conftest.er1
17155 grep -v '^ *+' conftest.er1 >conftest.err
17157 cat conftest.err >&5
17158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17159 (exit $ac_status); } &&
17160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17161 { (case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_try") 2>&5
17168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17169 (exit $ac_status); }; } &&
17170 { ac_try='test -s conftest.$ac_objext'
17171 { (case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17176 (eval "$ac_try") 2>&5
17178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17179 (exit $ac_status); }; }; then
17180 ac_cv_type_uint64_t=yes
17182 echo "$as_me: failed program was:" >&5
17183 sed 's/^/| /' conftest.$ac_ext >&5
17185 ac_cv_type_uint64_t=no
17188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17190 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17191 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17192 if test $ac_cv_type_uint64_t = yes; then
17194 cat >>confdefs.h <<_ACEOF
17195 #define HAVE_UINT64_T 1
17200 { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17201 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17202 if test "${ac_cv_type_u_int64_t+set}" = set; then
17203 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 cat >conftest.$ac_ext <<_ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211 $ac_includes_default
17212 typedef u_int64_t ac__type_new_;
17216 if ((ac__type_new_ *) 0)
17218 if (sizeof (ac__type_new_))
17224 rm -f conftest.$ac_objext
17225 if { (ac_try="$ac_compile"
17226 case "(($ac_try" in
17227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17228 *) ac_try_echo=$ac_try;;
17230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17231 (eval "$ac_compile") 2>conftest.er1
17233 grep -v '^ *+' conftest.er1 >conftest.err
17235 cat conftest.err >&5
17236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17237 (exit $ac_status); } &&
17238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17239 { (case "(($ac_try" in
17240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17241 *) ac_try_echo=$ac_try;;
17243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17244 (eval "$ac_try") 2>&5
17246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17247 (exit $ac_status); }; } &&
17248 { ac_try='test -s conftest.$ac_objext'
17249 { (case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_try") 2>&5
17256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17257 (exit $ac_status); }; }; then
17258 ac_cv_type_u_int64_t=yes
17260 echo "$as_me: failed program was:" >&5
17261 sed 's/^/| /' conftest.$ac_ext >&5
17263 ac_cv_type_u_int64_t=no
17266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17268 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17269 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17270 if test $ac_cv_type_u_int64_t = yes; then
17272 cat >>confdefs.h <<_ACEOF
17273 #define HAVE_U_INT64_T 1
17278 { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17279 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17280 { (exit 1); exit 1; }; }
17294 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17296 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17297 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17298 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17299 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17300 echo $ECHO_N "(cached) $ECHO_C" >&6
17302 cat >conftest.$ac_ext <<_ACEOF
17305 cat confdefs.h >>conftest.$ac_ext
17306 cat >>conftest.$ac_ext <<_ACEOF
17307 /* end confdefs.h. */
17308 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17309 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17310 #define $ac_func innocuous_$ac_func
17312 /* System header to define __stub macros and hopefully few prototypes,
17313 which can conflict with char $ac_func (); below.
17314 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17315 <limits.h> exists even on freestanding compilers. */
17318 # include <limits.h>
17320 # include <assert.h>
17325 /* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17332 /* The GNU C library defines this for functions which it implements
17333 to always fail with ENOSYS. Some functions are actually named
17334 something starting with __ and the normal name is an alias. */
17335 #if defined __stub_$ac_func || defined __stub___$ac_func
17342 return $ac_func ();
17347 rm -f conftest.$ac_objext conftest$ac_exeext
17348 if { (ac_try="$ac_link"
17349 case "(($ac_try" in
17350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17351 *) ac_try_echo=$ac_try;;
17353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17354 (eval "$ac_link") 2>conftest.er1
17356 grep -v '^ *+' conftest.er1 >conftest.err
17358 cat conftest.err >&5
17359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17360 (exit $ac_status); } &&
17361 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17362 { (case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17367 (eval "$ac_try") 2>&5
17369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17370 (exit $ac_status); }; } &&
17371 { ac_try='test -s conftest$ac_exeext'
17372 { (case "(($ac_try" in
17373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17374 *) ac_try_echo=$ac_try;;
17376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17377 (eval "$ac_try") 2>&5
17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17380 (exit $ac_status); }; }; then
17381 eval "$as_ac_var=yes"
17383 echo "$as_me: failed program was:" >&5
17384 sed 's/^/| /' conftest.$ac_ext >&5
17386 eval "$as_ac_var=no"
17389 rm -f core conftest.err conftest.$ac_objext \
17390 conftest$ac_exeext conftest.$ac_ext
17392 ac_res=`eval echo '${'$as_ac_var'}'`
17393 { echo "$as_me:$LINENO: result: $ac_res" >&5
17394 echo "${ECHO_T}$ac_res" >&6; }
17395 if test `eval echo '${'$as_ac_var'}'` = yes; then
17396 cat >>confdefs.h <<_ACEOF
17397 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17407 for ac_func in powf fmodf strtof round
17409 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17410 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17411 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17412 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17413 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 cat >conftest.$ac_ext <<_ACEOF
17418 cat confdefs.h >>conftest.$ac_ext
17419 cat >>conftest.$ac_ext <<_ACEOF
17420 /* end confdefs.h. */
17421 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17422 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17423 #define $ac_func innocuous_$ac_func
17425 /* System header to define __stub macros and hopefully few prototypes,
17426 which can conflict with char $ac_func (); below.
17427 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17428 <limits.h> exists even on freestanding compilers. */
17431 # include <limits.h>
17433 # include <assert.h>
17438 /* Override any GCC internal prototype to avoid an error.
17439 Use char because int might match the return type of a GCC
17440 builtin and then its argument prototype would still apply. */
17445 /* The GNU C library defines this for functions which it implements
17446 to always fail with ENOSYS. Some functions are actually named
17447 something starting with __ and the normal name is an alias. */
17448 #if defined __stub_$ac_func || defined __stub___$ac_func
17455 return $ac_func ();
17460 rm -f conftest.$ac_objext conftest$ac_exeext
17461 if { (ac_try="$ac_link"
17462 case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_link") 2>conftest.er1
17469 grep -v '^ *+' conftest.er1 >conftest.err
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473 (exit $ac_status); } &&
17474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17475 { (case "(($ac_try" in
17476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477 *) ac_try_echo=$ac_try;;
17479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480 (eval "$ac_try") 2>&5
17482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483 (exit $ac_status); }; } &&
17484 { ac_try='test -s conftest$ac_exeext'
17485 { (case "(($ac_try" in
17486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487 *) ac_try_echo=$ac_try;;
17489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490 (eval "$ac_try") 2>&5
17492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493 (exit $ac_status); }; }; then
17494 eval "$as_ac_var=yes"
17496 echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17499 eval "$as_ac_var=no"
17502 rm -f core conftest.err conftest.$ac_objext \
17503 conftest$ac_exeext conftest.$ac_ext
17505 ac_res=`eval echo '${'$as_ac_var'}'`
17506 { echo "$as_me:$LINENO: result: $ac_res" >&5
17507 echo "${ECHO_T}$ac_res" >&6; }
17508 if test `eval echo '${'$as_ac_var'}'` = yes; then
17509 cat >>confdefs.h <<_ACEOF
17510 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17521 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
17523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17527 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 cat >conftest.$ac_ext <<_ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17537 #define $ac_func innocuous_$ac_func
17539 /* System header to define __stub macros and hopefully few prototypes,
17540 which can conflict with char $ac_func (); below.
17541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17542 <limits.h> exists even on freestanding compilers. */
17545 # include <limits.h>
17547 # include <assert.h>
17552 /* Override any GCC internal prototype to avoid an error.
17553 Use char because int might match the return type of a GCC
17554 builtin and then its argument prototype would still apply. */
17559 /* The GNU C library defines this for functions which it implements
17560 to always fail with ENOSYS. Some functions are actually named
17561 something starting with __ and the normal name is an alias. */
17562 #if defined __stub_$ac_func || defined __stub___$ac_func
17569 return $ac_func ();
17574 rm -f conftest.$ac_objext conftest$ac_exeext
17575 if { (ac_try="$ac_link"
17576 case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_link") 2>conftest.er1
17583 grep -v '^ *+' conftest.er1 >conftest.err
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } &&
17588 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17589 { (case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_try") 2>&5
17596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); }; } &&
17598 { ac_try='test -s conftest$ac_exeext'
17599 { (case "(($ac_try" in
17600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17601 *) ac_try_echo=$ac_try;;
17603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17604 (eval "$ac_try") 2>&5
17606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17607 (exit $ac_status); }; }; then
17608 eval "$as_ac_var=yes"
17610 echo "$as_me: failed program was:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 eval "$as_ac_var=no"
17616 rm -f core conftest.err conftest.$ac_objext \
17617 conftest$ac_exeext conftest.$ac_ext
17619 ac_res=`eval echo '${'$as_ac_var'}'`
17620 { echo "$as_me:$LINENO: result: $ac_res" >&5
17621 echo "${ECHO_T}$ac_res" >&6; }
17622 if test `eval echo '${'$as_ac_var'}'` = yes; then
17623 cat >>confdefs.h <<_ACEOF
17624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17633 for ac_func in isatty mkdtemp mkstemp
17635 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17636 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17637 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17638 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17639 echo $ECHO_N "(cached) $ECHO_C" >&6
17641 cat >conftest.$ac_ext <<_ACEOF
17644 cat confdefs.h >>conftest.$ac_ext
17645 cat >>conftest.$ac_ext <<_ACEOF
17646 /* end confdefs.h. */
17647 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17648 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17649 #define $ac_func innocuous_$ac_func
17651 /* System header to define __stub macros and hopefully few prototypes,
17652 which can conflict with char $ac_func (); below.
17653 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17654 <limits.h> exists even on freestanding compilers. */
17657 # include <limits.h>
17659 # include <assert.h>
17664 /* Override any GCC internal prototype to avoid an error.
17665 Use char because int might match the return type of a GCC
17666 builtin and then its argument prototype would still apply. */
17671 /* The GNU C library defines this for functions which it implements
17672 to always fail with ENOSYS. Some functions are actually named
17673 something starting with __ and the normal name is an alias. */
17674 #if defined __stub_$ac_func || defined __stub___$ac_func
17681 return $ac_func ();
17686 rm -f conftest.$ac_objext conftest$ac_exeext
17687 if { (ac_try="$ac_link"
17688 case "(($ac_try" in
17689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17690 *) ac_try_echo=$ac_try;;
17692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17693 (eval "$ac_link") 2>conftest.er1
17695 grep -v '^ *+' conftest.er1 >conftest.err
17697 cat conftest.err >&5
17698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } &&
17700 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17701 { (case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17706 (eval "$ac_try") 2>&5
17708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17709 (exit $ac_status); }; } &&
17710 { ac_try='test -s conftest$ac_exeext'
17711 { (case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_try") 2>&5
17718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17719 (exit $ac_status); }; }; then
17720 eval "$as_ac_var=yes"
17722 echo "$as_me: failed program was:" >&5
17723 sed 's/^/| /' conftest.$ac_ext >&5
17725 eval "$as_ac_var=no"
17728 rm -f core conftest.err conftest.$ac_objext \
17729 conftest$ac_exeext conftest.$ac_ext
17731 ac_res=`eval echo '${'$as_ac_var'}'`
17732 { echo "$as_me:$LINENO: result: $ac_res" >&5
17733 echo "${ECHO_T}$ac_res" >&6; }
17734 if test `eval echo '${'$as_ac_var'}'` = yes; then
17735 cat >>confdefs.h <<_ACEOF
17736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17747 for ac_func in mktemp realpath sbrk setrlimit strdup
17749 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17750 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17751 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17752 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17753 echo $ECHO_N "(cached) $ECHO_C" >&6
17755 cat >conftest.$ac_ext <<_ACEOF
17758 cat confdefs.h >>conftest.$ac_ext
17759 cat >>conftest.$ac_ext <<_ACEOF
17760 /* end confdefs.h. */
17761 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17762 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17763 #define $ac_func innocuous_$ac_func
17765 /* System header to define __stub macros and hopefully few prototypes,
17766 which can conflict with char $ac_func (); below.
17767 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17768 <limits.h> exists even on freestanding compilers. */
17771 # include <limits.h>
17773 # include <assert.h>
17778 /* Override any GCC internal prototype to avoid an error.
17779 Use char because int might match the return type of a GCC
17780 builtin and then its argument prototype would still apply. */
17785 /* The GNU C library defines this for functions which it implements
17786 to always fail with ENOSYS. Some functions are actually named
17787 something starting with __ and the normal name is an alias. */
17788 #if defined __stub_$ac_func || defined __stub___$ac_func
17795 return $ac_func ();
17800 rm -f conftest.$ac_objext conftest$ac_exeext
17801 if { (ac_try="$ac_link"
17802 case "(($ac_try" in
17803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17804 *) ac_try_echo=$ac_try;;
17806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17807 (eval "$ac_link") 2>conftest.er1
17809 grep -v '^ *+' conftest.er1 >conftest.err
17811 cat conftest.err >&5
17812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17813 (exit $ac_status); } &&
17814 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17815 { (case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_try") 2>&5
17822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17823 (exit $ac_status); }; } &&
17824 { ac_try='test -s conftest$ac_exeext'
17825 { (case "(($ac_try" in
17826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17827 *) ac_try_echo=$ac_try;;
17829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17830 (eval "$ac_try") 2>&5
17832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17833 (exit $ac_status); }; }; then
17834 eval "$as_ac_var=yes"
17836 echo "$as_me: failed program was:" >&5
17837 sed 's/^/| /' conftest.$ac_ext >&5
17839 eval "$as_ac_var=no"
17842 rm -f core conftest.err conftest.$ac_objext \
17843 conftest$ac_exeext conftest.$ac_ext
17845 ac_res=`eval echo '${'$as_ac_var'}'`
17846 { echo "$as_me:$LINENO: result: $ac_res" >&5
17847 echo "${ECHO_T}$ac_res" >&6; }
17848 if test `eval echo '${'$as_ac_var'}'` = yes; then
17849 cat >>confdefs.h <<_ACEOF
17850 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17860 for ac_func in strerror strerror_r strerror_s setenv
17862 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17863 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17864 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17865 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17866 echo $ECHO_N "(cached) $ECHO_C" >&6
17868 cat >conftest.$ac_ext <<_ACEOF
17871 cat confdefs.h >>conftest.$ac_ext
17872 cat >>conftest.$ac_ext <<_ACEOF
17873 /* end confdefs.h. */
17874 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17876 #define $ac_func innocuous_$ac_func
17878 /* System header to define __stub macros and hopefully few prototypes,
17879 which can conflict with char $ac_func (); below.
17880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17881 <limits.h> exists even on freestanding compilers. */
17884 # include <limits.h>
17886 # include <assert.h>
17891 /* Override any GCC internal prototype to avoid an error.
17892 Use char because int might match the return type of a GCC
17893 builtin and then its argument prototype would still apply. */
17898 /* The GNU C library defines this for functions which it implements
17899 to always fail with ENOSYS. Some functions are actually named
17900 something starting with __ and the normal name is an alias. */
17901 #if defined __stub_$ac_func || defined __stub___$ac_func
17908 return $ac_func ();
17913 rm -f conftest.$ac_objext conftest$ac_exeext
17914 if { (ac_try="$ac_link"
17915 case "(($ac_try" in
17916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17917 *) ac_try_echo=$ac_try;;
17919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17920 (eval "$ac_link") 2>conftest.er1
17922 grep -v '^ *+' conftest.er1 >conftest.err
17924 cat conftest.err >&5
17925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17926 (exit $ac_status); } &&
17927 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17928 { (case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17933 (eval "$ac_try") 2>&5
17935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); }; } &&
17937 { ac_try='test -s conftest$ac_exeext'
17938 { (case "(($ac_try" in
17939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17940 *) ac_try_echo=$ac_try;;
17942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17943 (eval "$ac_try") 2>&5
17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17946 (exit $ac_status); }; }; then
17947 eval "$as_ac_var=yes"
17949 echo "$as_me: failed program was:" >&5
17950 sed 's/^/| /' conftest.$ac_ext >&5
17952 eval "$as_ac_var=no"
17955 rm -f core conftest.err conftest.$ac_objext \
17956 conftest$ac_exeext conftest.$ac_ext
17958 ac_res=`eval echo '${'$as_ac_var'}'`
17959 { echo "$as_me:$LINENO: result: $ac_res" >&5
17960 echo "${ECHO_T}$ac_res" >&6; }
17961 if test `eval echo '${'$as_ac_var'}'` = yes; then
17962 cat >>confdefs.h <<_ACEOF
17963 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17973 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
17975 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17976 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17977 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17978 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17979 echo $ECHO_N "(cached) $ECHO_C" >&6
17981 cat >conftest.$ac_ext <<_ACEOF
17984 cat confdefs.h >>conftest.$ac_ext
17985 cat >>conftest.$ac_ext <<_ACEOF
17986 /* end confdefs.h. */
17987 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17988 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17989 #define $ac_func innocuous_$ac_func
17991 /* System header to define __stub macros and hopefully few prototypes,
17992 which can conflict with char $ac_func (); below.
17993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17994 <limits.h> exists even on freestanding compilers. */
17997 # include <limits.h>
17999 # include <assert.h>
18004 /* Override any GCC internal prototype to avoid an error.
18005 Use char because int might match the return type of a GCC
18006 builtin and then its argument prototype would still apply. */
18011 /* The GNU C library defines this for functions which it implements
18012 to always fail with ENOSYS. Some functions are actually named
18013 something starting with __ and the normal name is an alias. */
18014 #if defined __stub_$ac_func || defined __stub___$ac_func
18021 return $ac_func ();
18026 rm -f conftest.$ac_objext conftest$ac_exeext
18027 if { (ac_try="$ac_link"
18028 case "(($ac_try" in
18029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18030 *) ac_try_echo=$ac_try;;
18032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18033 (eval "$ac_link") 2>conftest.er1
18035 grep -v '^ *+' conftest.er1 >conftest.err
18037 cat conftest.err >&5
18038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18039 (exit $ac_status); } &&
18040 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18041 { (case "(($ac_try" in
18042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18043 *) ac_try_echo=$ac_try;;
18045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18046 (eval "$ac_try") 2>&5
18048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18049 (exit $ac_status); }; } &&
18050 { ac_try='test -s conftest$ac_exeext'
18051 { (case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_try") 2>&5
18058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18059 (exit $ac_status); }; }; then
18060 eval "$as_ac_var=yes"
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18065 eval "$as_ac_var=no"
18068 rm -f core conftest.err conftest.$ac_objext \
18069 conftest$ac_exeext conftest.$ac_ext
18071 ac_res=`eval echo '${'$as_ac_var'}'`
18072 { echo "$as_me:$LINENO: result: $ac_res" >&5
18073 echo "${ECHO_T}$ac_res" >&6; }
18074 if test `eval echo '${'$as_ac_var'}'` = yes; then
18075 cat >>confdefs.h <<_ACEOF
18076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18086 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18088 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18089 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18090 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18091 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18092 echo $ECHO_N "(cached) $ECHO_C" >&6
18094 cat >conftest.$ac_ext <<_ACEOF
18097 cat confdefs.h >>conftest.$ac_ext
18098 cat >>conftest.$ac_ext <<_ACEOF
18099 /* end confdefs.h. */
18100 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18102 #define $ac_func innocuous_$ac_func
18104 /* System header to define __stub macros and hopefully few prototypes,
18105 which can conflict with char $ac_func (); below.
18106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18107 <limits.h> exists even on freestanding compilers. */
18110 # include <limits.h>
18112 # include <assert.h>
18117 /* Override any GCC internal prototype to avoid an error.
18118 Use char because int might match the return type of a GCC
18119 builtin and then its argument prototype would still apply. */
18124 /* The GNU C library defines this for functions which it implements
18125 to always fail with ENOSYS. Some functions are actually named
18126 something starting with __ and the normal name is an alias. */
18127 #if defined __stub_$ac_func || defined __stub___$ac_func
18134 return $ac_func ();
18139 rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (ac_try="$ac_link"
18141 case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146 (eval "$ac_link") 2>conftest.er1
18148 grep -v '^ *+' conftest.er1 >conftest.err
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_try") 2>&5
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest$ac_exeext'
18164 { (case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_try") 2>&5
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 eval "$as_ac_var=yes"
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18178 eval "$as_ac_var=no"
18181 rm -f core conftest.err conftest.$ac_objext \
18182 conftest$ac_exeext conftest.$ac_ext
18184 ac_res=`eval echo '${'$as_ac_var'}'`
18185 { echo "$as_me:$LINENO: result: $ac_res" >&5
18186 echo "${ECHO_T}$ac_res" >&6; }
18187 if test `eval echo '${'$as_ac_var'}'` = yes; then
18188 cat >>confdefs.h <<_ACEOF
18189 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18195 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18196 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18197 if test "${llvm_cv_c_printf_a+set}" = set; then
18198 echo $ECHO_N "(cached) $ECHO_C" >&6
18201 ac_cpp='$CPP $CPPFLAGS'
18202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18206 if test "$cross_compiling" = yes; then
18207 llvmac_cv_c_printf_a=no
18209 cat >conftest.$ac_ext <<_ACEOF
18213 cat confdefs.h >>conftest.$ac_ext
18214 cat >>conftest.$ac_ext <<_ACEOF
18215 /* end confdefs.h. */
18218 #include <stdlib.h>
18224 volatile double A, B;
18228 sprintf(Buffer, "%a", A);
18232 if (A != 0x1.999999999999ap-4)
18239 rm -f conftest$ac_exeext
18240 if { (ac_try="$ac_link"
18241 case "(($ac_try" in
18242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18243 *) ac_try_echo=$ac_try;;
18245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18246 (eval "$ac_link") 2>&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18250 { (case "(($ac_try" in
18251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18252 *) ac_try_echo=$ac_try;;
18254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18255 (eval "$ac_try") 2>&5
18257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18258 (exit $ac_status); }; }; then
18259 llvm_cv_c_printf_a=yes
18261 echo "$as_me: program exited with status $ac_status" >&5
18262 echo "$as_me: failed program was:" >&5
18263 sed 's/^/| /' conftest.$ac_ext >&5
18265 ( exit $ac_status )
18266 llvmac_cv_c_printf_a=no
18268 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18273 ac_cpp='$CPP $CPPFLAGS'
18274 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18275 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18276 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18279 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18280 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18281 if test "$llvm_cv_c_printf_a" = "yes"; then
18283 cat >>confdefs.h <<\_ACEOF
18284 #define HAVE_PRINTF_A 1
18290 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18291 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18292 if test "${ac_cv_func_rand48+set}" = set; then
18293 echo $ECHO_N "(cached) $ECHO_C" >&6
18296 ac_cpp='$CXXCPP $CPPFLAGS'
18297 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18298 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18299 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18301 cat >conftest.$ac_ext <<_ACEOF
18304 cat confdefs.h >>conftest.$ac_ext
18305 cat >>conftest.$ac_ext <<_ACEOF
18306 /* end confdefs.h. */
18307 #include <stdlib.h>
18311 srand48(0);lrand48();drand48();
18316 rm -f conftest.$ac_objext
18317 if { (ac_try="$ac_compile"
18318 case "(($ac_try" in
18319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18320 *) ac_try_echo=$ac_try;;
18322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18323 (eval "$ac_compile") 2>conftest.er1
18325 grep -v '^ *+' conftest.er1 >conftest.err
18327 cat conftest.err >&5
18328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18329 (exit $ac_status); } &&
18330 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18331 { (case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_try") 2>&5
18338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); }; } &&
18340 { ac_try='test -s conftest.$ac_objext'
18341 { (case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_try") 2>&5
18348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18349 (exit $ac_status); }; }; then
18350 ac_cv_func_rand48=yes
18352 echo "$as_me: failed program was:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_cv_func_rand48=no
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18360 ac_cpp='$CPP $CPPFLAGS'
18361 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18362 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18363 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18366 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
18367 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
18369 if test "$ac_cv_func_rand48" = "yes" ; then
18371 cat >>confdefs.h <<\_ACEOF
18372 #define HAVE_RAND48 1
18379 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
18380 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
18381 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18385 ac_cpp='$CXXCPP $CPPFLAGS'
18386 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18387 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18388 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18390 cat >conftest.$ac_ext <<_ACEOF
18393 cat confdefs.h >>conftest.$ac_ext
18394 cat >>conftest.$ac_ext <<_ACEOF
18395 /* end confdefs.h. */
18405 rm -f conftest.$ac_objext
18406 if { (ac_try="$ac_compile"
18407 case "(($ac_try" in
18408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18409 *) ac_try_echo=$ac_try;;
18411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18412 (eval "$ac_compile") 2>conftest.er1
18414 grep -v '^ *+' conftest.er1 >conftest.err
18416 cat conftest.err >&5
18417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18418 (exit $ac_status); } &&
18419 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18420 { (case "(($ac_try" in
18421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18422 *) ac_try_echo=$ac_try;;
18424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18425 (eval "$ac_try") 2>&5
18427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18428 (exit $ac_status); }; } &&
18429 { ac_try='test -s conftest.$ac_objext'
18430 { (case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_try") 2>&5
18437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18438 (exit $ac_status); }; }; then
18439 ac_cv_func_isnan_in_math_h=yes
18441 echo "$as_me: failed program was:" >&5
18442 sed 's/^/| /' conftest.$ac_ext >&5
18444 ac_cv_func_isnan_in_math_h=no
18447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18449 ac_cpp='$CPP $CPPFLAGS'
18450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18455 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
18456 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
18459 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
18461 cat >>confdefs.h <<\_ACEOF
18462 #define HAVE_ISNAN_IN_MATH_H 1
18467 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
18468 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
18469 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
18470 echo $ECHO_N "(cached) $ECHO_C" >&6
18473 ac_cpp='$CXXCPP $CPPFLAGS'
18474 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18475 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18476 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18478 cat >conftest.$ac_ext <<_ACEOF
18481 cat confdefs.h >>conftest.$ac_ext
18482 cat >>conftest.$ac_ext <<_ACEOF
18483 /* end confdefs.h. */
18493 rm -f conftest.$ac_objext
18494 if { (ac_try="$ac_compile"
18495 case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18500 (eval "$ac_compile") 2>conftest.er1
18502 grep -v '^ *+' conftest.er1 >conftest.err
18504 cat conftest.err >&5
18505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18506 (exit $ac_status); } &&
18507 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18508 { (case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_try") 2>&5
18515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18516 (exit $ac_status); }; } &&
18517 { ac_try='test -s conftest.$ac_objext'
18518 { (case "(($ac_try" in
18519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18520 *) ac_try_echo=$ac_try;;
18522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18523 (eval "$ac_try") 2>&5
18525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18526 (exit $ac_status); }; }; then
18527 ac_cv_func_isnan_in_cmath=yes
18529 echo "$as_me: failed program was:" >&5
18530 sed 's/^/| /' conftest.$ac_ext >&5
18532 ac_cv_func_isnan_in_cmath=no
18535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18537 ac_cpp='$CPP $CPPFLAGS'
18538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18543 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
18544 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
18546 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
18548 cat >>confdefs.h <<\_ACEOF
18549 #define HAVE_ISNAN_IN_CMATH 1
18554 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
18555 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
18556 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
18557 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 ac_cpp='$CXXCPP $CPPFLAGS'
18561 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18562 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18563 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18565 cat >conftest.$ac_ext <<_ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18575 float f; std::isnan(f);
18580 rm -f conftest.$ac_objext
18581 if { (ac_try="$ac_compile"
18582 case "(($ac_try" in
18583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18584 *) ac_try_echo=$ac_try;;
18586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18587 (eval "$ac_compile") 2>conftest.er1
18589 grep -v '^ *+' conftest.er1 >conftest.err
18591 cat conftest.err >&5
18592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18593 (exit $ac_status); } &&
18594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18595 { (case "(($ac_try" in
18596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18597 *) ac_try_echo=$ac_try;;
18599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18600 (eval "$ac_try") 2>&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); }; } &&
18604 { ac_try='test -s conftest.$ac_objext'
18605 { (case "(($ac_try" in
18606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18607 *) ac_try_echo=$ac_try;;
18609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18610 (eval "$ac_try") 2>&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); }; }; then
18614 ac_cv_func_std_isnan_in_cmath=yes
18616 echo "$as_me: failed program was:" >&5
18617 sed 's/^/| /' conftest.$ac_ext >&5
18619 ac_cv_func_std_isnan_in_cmath=no
18622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18624 ac_cpp='$CPP $CPPFLAGS'
18625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18630 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
18631 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
18633 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
18635 cat >>confdefs.h <<\_ACEOF
18636 #define HAVE_STD_ISNAN_IN_CMATH 1
18642 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
18643 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
18644 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
18645 echo $ECHO_N "(cached) $ECHO_C" >&6
18648 ac_cpp='$CXXCPP $CPPFLAGS'
18649 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18650 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18651 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18653 cat >conftest.$ac_ext <<_ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18668 rm -f conftest.$ac_objext
18669 if { (ac_try="$ac_compile"
18670 case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18675 (eval "$ac_compile") 2>conftest.er1
18677 grep -v '^ *+' conftest.er1 >conftest.err
18679 cat conftest.err >&5
18680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18681 (exit $ac_status); } &&
18682 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18683 { (case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_try") 2>&5
18690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18691 (exit $ac_status); }; } &&
18692 { ac_try='test -s conftest.$ac_objext'
18693 { (case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_try") 2>&5
18700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18701 (exit $ac_status); }; }; then
18702 ac_cv_func_isinf_in_math_h=yes
18704 echo "$as_me: failed program was:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18707 ac_cv_func_isinf_in_math_h=no
18710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18712 ac_cpp='$CPP $CPPFLAGS'
18713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18718 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
18719 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
18721 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
18723 cat >>confdefs.h <<\_ACEOF
18724 #define HAVE_ISINF_IN_MATH_H 1
18729 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
18730 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
18731 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
18732 echo $ECHO_N "(cached) $ECHO_C" >&6
18735 ac_cpp='$CXXCPP $CPPFLAGS'
18736 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18737 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18738 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18740 cat >conftest.$ac_ext <<_ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18755 rm -f conftest.$ac_objext
18756 if { (ac_try="$ac_compile"
18757 case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18762 (eval "$ac_compile") 2>conftest.er1
18764 grep -v '^ *+' conftest.er1 >conftest.err
18766 cat conftest.err >&5
18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18768 (exit $ac_status); } &&
18769 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18770 { (case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_try") 2>&5
18777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18778 (exit $ac_status); }; } &&
18779 { ac_try='test -s conftest.$ac_objext'
18780 { (case "(($ac_try" in
18781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782 *) ac_try_echo=$ac_try;;
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785 (eval "$ac_try") 2>&5
18787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18788 (exit $ac_status); }; }; then
18789 ac_cv_func_isinf_in_cmath=yes
18791 echo "$as_me: failed program was:" >&5
18792 sed 's/^/| /' conftest.$ac_ext >&5
18794 ac_cv_func_isinf_in_cmath=no
18797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18799 ac_cpp='$CPP $CPPFLAGS'
18800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18805 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
18806 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
18808 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
18810 cat >>confdefs.h <<\_ACEOF
18811 #define HAVE_ISINF_IN_CMATH 1
18816 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
18817 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
18818 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
18819 echo $ECHO_N "(cached) $ECHO_C" >&6
18822 ac_cpp='$CXXCPP $CPPFLAGS'
18823 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18824 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18825 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18827 cat >conftest.$ac_ext <<_ACEOF
18830 cat confdefs.h >>conftest.$ac_ext
18831 cat >>conftest.$ac_ext <<_ACEOF
18832 /* end confdefs.h. */
18837 float f; std::isinf(f)}
18842 rm -f conftest.$ac_objext
18843 if { (ac_try="$ac_compile"
18844 case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_compile") 2>conftest.er1
18851 grep -v '^ *+' conftest.er1 >conftest.err
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } &&
18856 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18857 { (case "(($ac_try" in
18858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18859 *) ac_try_echo=$ac_try;;
18861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18862 (eval "$ac_try") 2>&5
18864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18865 (exit $ac_status); }; } &&
18866 { ac_try='test -s conftest.$ac_objext'
18867 { (case "(($ac_try" in
18868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18869 *) ac_try_echo=$ac_try;;
18871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18872 (eval "$ac_try") 2>&5
18874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18875 (exit $ac_status); }; }; then
18876 ac_cv_func_std_isinf_in_cmath=yes
18878 echo "$as_me: failed program was:" >&5
18879 sed 's/^/| /' conftest.$ac_ext >&5
18881 ac_cv_func_std_isinf_in_cmath=no
18884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18886 ac_cpp='$CPP $CPPFLAGS'
18887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18892 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
18893 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
18895 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
18897 cat >>confdefs.h <<\_ACEOF
18898 #define HAVE_STD_ISINF_IN_CMATH 1
18903 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
18904 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
18905 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
18906 echo $ECHO_N "(cached) $ECHO_C" >&6
18909 ac_cpp='$CXXCPP $CPPFLAGS'
18910 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18911 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18912 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18914 cat >conftest.$ac_ext <<_ACEOF
18917 cat confdefs.h >>conftest.$ac_ext
18918 cat >>conftest.$ac_ext <<_ACEOF
18919 /* end confdefs.h. */
18920 #include <ieeefp.h>
18924 float f; finite(f);
18929 rm -f conftest.$ac_objext
18930 if { (ac_try="$ac_compile"
18931 case "(($ac_try" in
18932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18933 *) ac_try_echo=$ac_try;;
18935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18936 (eval "$ac_compile") 2>conftest.er1
18938 grep -v '^ *+' conftest.er1 >conftest.err
18940 cat conftest.err >&5
18941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18942 (exit $ac_status); } &&
18943 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18944 { (case "(($ac_try" in
18945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18946 *) ac_try_echo=$ac_try;;
18948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18949 (eval "$ac_try") 2>&5
18951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18952 (exit $ac_status); }; } &&
18953 { ac_try='test -s conftest.$ac_objext'
18954 { (case "(($ac_try" in
18955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18956 *) ac_try_echo=$ac_try;;
18958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18959 (eval "$ac_try") 2>&5
18961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); }; }; then
18963 ac_cv_func_finite_in_ieeefp_h=yes
18965 echo "$as_me: failed program was:" >&5
18966 sed 's/^/| /' conftest.$ac_ext >&5
18968 ac_cv_func_finite_in_ieeefp_h=no
18971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18973 ac_cpp='$CPP $CPPFLAGS'
18974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18979 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
18980 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
18982 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
18984 cat >>confdefs.h <<\_ACEOF
18985 #define HAVE_FINITE_IN_IEEEFP_H 1
18992 if test "$llvm_cv_platform_type" = "Unix" ; then
18995 for ac_header in stdlib.h unistd.h
18997 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18998 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18999 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19000 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19002 echo $ECHO_N "(cached) $ECHO_C" >&6
19004 ac_res=`eval echo '${'$as_ac_Header'}'`
19005 { echo "$as_me:$LINENO: result: $ac_res" >&5
19006 echo "${ECHO_T}$ac_res" >&6; }
19008 # Is the header compilable?
19009 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19010 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19011 cat >conftest.$ac_ext <<_ACEOF
19014 cat confdefs.h >>conftest.$ac_ext
19015 cat >>conftest.$ac_ext <<_ACEOF
19016 /* end confdefs.h. */
19017 $ac_includes_default
19018 #include <$ac_header>
19020 rm -f conftest.$ac_objext
19021 if { (ac_try="$ac_compile"
19022 case "(($ac_try" in
19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024 *) ac_try_echo=$ac_try;;
19026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19027 (eval "$ac_compile") 2>conftest.er1
19029 grep -v '^ *+' conftest.er1 >conftest.err
19031 cat conftest.err >&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); } &&
19034 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19035 { (case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_try") 2>&5
19042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19043 (exit $ac_status); }; } &&
19044 { ac_try='test -s conftest.$ac_objext'
19045 { (case "(($ac_try" in
19046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19047 *) ac_try_echo=$ac_try;;
19049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19050 (eval "$ac_try") 2>&5
19052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19053 (exit $ac_status); }; }; then
19054 ac_header_compiler=yes
19056 echo "$as_me: failed program was:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19059 ac_header_compiler=no
19062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19063 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19064 echo "${ECHO_T}$ac_header_compiler" >&6; }
19066 # Is the header present?
19067 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19068 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19069 cat >conftest.$ac_ext <<_ACEOF
19072 cat confdefs.h >>conftest.$ac_ext
19073 cat >>conftest.$ac_ext <<_ACEOF
19074 /* end confdefs.h. */
19075 #include <$ac_header>
19077 if { (ac_try="$ac_cpp conftest.$ac_ext"
19078 case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19083 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19085 grep -v '^ *+' conftest.er1 >conftest.err
19087 cat conftest.err >&5
19088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19089 (exit $ac_status); } >/dev/null; then
19090 if test -s conftest.err; then
19091 ac_cpp_err=$ac_c_preproc_warn_flag
19092 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19099 if test -z "$ac_cpp_err"; then
19100 ac_header_preproc=yes
19102 echo "$as_me: failed program was:" >&5
19103 sed 's/^/| /' conftest.$ac_ext >&5
19105 ac_header_preproc=no
19108 rm -f conftest.err conftest.$ac_ext
19109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19110 echo "${ECHO_T}$ac_header_preproc" >&6; }
19112 # So? What about this header?
19113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19119 ac_header_preproc=yes
19122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19135 ## ----------------------------------- ##
19136 ## Report this to llvmbugs@cs.uiuc.edu ##
19137 ## ----------------------------------- ##
19139 ) | sed "s/^/$as_me: WARNING: /" >&2
19142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19145 echo $ECHO_N "(cached) $ECHO_C" >&6
19147 eval "$as_ac_Header=\$ac_header_preproc"
19149 ac_res=`eval echo '${'$as_ac_Header'}'`
19150 { echo "$as_me:$LINENO: result: $ac_res" >&5
19151 echo "${ECHO_T}$ac_res" >&6; }
19154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19155 cat >>confdefs.h <<_ACEOF
19156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19164 for ac_func in getpagesize
19166 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19167 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19168 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19169 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19170 echo $ECHO_N "(cached) $ECHO_C" >&6
19172 cat >conftest.$ac_ext <<_ACEOF
19175 cat confdefs.h >>conftest.$ac_ext
19176 cat >>conftest.$ac_ext <<_ACEOF
19177 /* end confdefs.h. */
19178 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19179 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19180 #define $ac_func innocuous_$ac_func
19182 /* System header to define __stub macros and hopefully few prototypes,
19183 which can conflict with char $ac_func (); below.
19184 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19185 <limits.h> exists even on freestanding compilers. */
19188 # include <limits.h>
19190 # include <assert.h>
19195 /* Override any GCC internal prototype to avoid an error.
19196 Use char because int might match the return type of a GCC
19197 builtin and then its argument prototype would still apply. */
19202 /* The GNU C library defines this for functions which it implements
19203 to always fail with ENOSYS. Some functions are actually named
19204 something starting with __ and the normal name is an alias. */
19205 #if defined __stub_$ac_func || defined __stub___$ac_func
19212 return $ac_func ();
19217 rm -f conftest.$ac_objext conftest$ac_exeext
19218 if { (ac_try="$ac_link"
19219 case "(($ac_try" in
19220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19221 *) ac_try_echo=$ac_try;;
19223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19224 (eval "$ac_link") 2>conftest.er1
19226 grep -v '^ *+' conftest.er1 >conftest.err
19228 cat conftest.err >&5
19229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19230 (exit $ac_status); } &&
19231 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19232 { (case "(($ac_try" in
19233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19234 *) ac_try_echo=$ac_try;;
19236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19237 (eval "$ac_try") 2>&5
19239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19240 (exit $ac_status); }; } &&
19241 { ac_try='test -s conftest$ac_exeext'
19242 { (case "(($ac_try" in
19243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19244 *) ac_try_echo=$ac_try;;
19246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19247 (eval "$ac_try") 2>&5
19249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19250 (exit $ac_status); }; }; then
19251 eval "$as_ac_var=yes"
19253 echo "$as_me: failed program was:" >&5
19254 sed 's/^/| /' conftest.$ac_ext >&5
19256 eval "$as_ac_var=no"
19259 rm -f core conftest.err conftest.$ac_objext \
19260 conftest$ac_exeext conftest.$ac_ext
19262 ac_res=`eval echo '${'$as_ac_var'}'`
19263 { echo "$as_me:$LINENO: result: $ac_res" >&5
19264 echo "${ECHO_T}$ac_res" >&6; }
19265 if test `eval echo '${'$as_ac_var'}'` = yes; then
19266 cat >>confdefs.h <<_ACEOF
19267 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19273 { echo "$as_me:$LINENO: checking for working mmap" >&5
19274 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19275 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19276 echo $ECHO_N "(cached) $ECHO_C" >&6
19278 if test "$cross_compiling" = yes; then
19279 ac_cv_func_mmap_fixed_mapped=no
19281 cat >conftest.$ac_ext <<_ACEOF
19284 cat confdefs.h >>conftest.$ac_ext
19285 cat >>conftest.$ac_ext <<_ACEOF
19286 /* end confdefs.h. */
19287 $ac_includes_default
19288 /* malloc might have been renamed as rpl_malloc. */
19291 /* Thanks to Mike Haertel and Jim Avera for this test.
19292 Here is a matrix of mmap possibilities:
19293 mmap private not fixed
19294 mmap private fixed at somewhere currently unmapped
19295 mmap private fixed at somewhere already mapped
19296 mmap shared not fixed
19297 mmap shared fixed at somewhere currently unmapped
19298 mmap shared fixed at somewhere already mapped
19299 For private mappings, we should verify that changes cannot be read()
19300 back from the file, nor mmap's back from the file at a different
19301 address. (There have been systems where private was not correctly
19302 implemented like the infamous i386 svr4.0, and systems where the
19303 VM page cache was not coherent with the file system buffer cache
19304 like early versions of FreeBSD and possibly contemporary NetBSD.)
19305 For shared mappings, we should conversely verify that changes get
19306 propagated back to all the places they're supposed to be.
19308 Grep wants private fixed already mapped.
19309 The main things grep needs to know about mmap are:
19310 * does it exist and is it safe to write into the mmap'd area
19311 * how to use it (BSD variants) */
19314 #include <sys/mman.h>
19316 #if !STDC_HEADERS && !HAVE_STDLIB_H
19320 /* This mess was copied from the GNU getpagesize.h. */
19321 #if !HAVE_GETPAGESIZE
19322 /* Assume that all systems that can run configure have sys/param.h. */
19323 # if !HAVE_SYS_PARAM_H
19324 # define HAVE_SYS_PARAM_H 1
19327 # ifdef _SC_PAGESIZE
19328 # define getpagesize() sysconf(_SC_PAGESIZE)
19329 # else /* no _SC_PAGESIZE */
19330 # if HAVE_SYS_PARAM_H
19331 # include <sys/param.h>
19332 # ifdef EXEC_PAGESIZE
19333 # define getpagesize() EXEC_PAGESIZE
19334 # else /* no EXEC_PAGESIZE */
19336 # define getpagesize() NBPG * CLSIZE
19339 # endif /* no CLSIZE */
19340 # else /* no NBPG */
19342 # define getpagesize() NBPC
19343 # else /* no NBPC */
19345 # define getpagesize() PAGESIZE
19346 # endif /* PAGESIZE */
19347 # endif /* no NBPC */
19348 # endif /* no NBPG */
19349 # endif /* no EXEC_PAGESIZE */
19350 # else /* no HAVE_SYS_PARAM_H */
19351 # define getpagesize() 8192 /* punt totally */
19352 # endif /* no HAVE_SYS_PARAM_H */
19353 # endif /* no _SC_PAGESIZE */
19355 #endif /* no HAVE_GETPAGESIZE */
19360 char *data, *data2, *data3;
19364 pagesize = getpagesize ();
19366 /* First, make a file with some known garbage in it. */
19367 data = (char *) malloc (pagesize);
19370 for (i = 0; i < pagesize; ++i)
19371 *(data + i) = rand ();
19373 fd = creat ("conftest.mmap", 0600);
19376 if (write (fd, data, pagesize) != pagesize)
19380 /* Next, try to mmap the file at a fixed address which already has
19381 something else allocated at it. If we can, also make sure that
19382 we see the same garbage. */
19383 fd = open ("conftest.mmap", O_RDWR);
19386 data2 = (char *) malloc (2 * pagesize);
19389 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
19390 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
19391 MAP_PRIVATE | MAP_FIXED, fd, 0L))
19393 for (i = 0; i < pagesize; ++i)
19394 if (*(data + i) != *(data2 + i))
19397 /* Finally, make sure that changes to the mapped area do not
19398 percolate back to the file as seen by read(). (This is a bug on
19399 some variants of i386 svr4.0.) */
19400 for (i = 0; i < pagesize; ++i)
19401 *(data2 + i) = *(data2 + i) + 1;
19402 data3 = (char *) malloc (pagesize);
19405 if (read (fd, data3, pagesize) != pagesize)
19407 for (i = 0; i < pagesize; ++i)
19408 if (*(data + i) != *(data3 + i))
19414 rm -f conftest$ac_exeext
19415 if { (ac_try="$ac_link"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_link") 2>&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19425 { (case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_try") 2>&5
19432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19433 (exit $ac_status); }; }; then
19434 ac_cv_func_mmap_fixed_mapped=yes
19436 echo "$as_me: program exited with status $ac_status" >&5
19437 echo "$as_me: failed program was:" >&5
19438 sed 's/^/| /' conftest.$ac_ext >&5
19440 ( exit $ac_status )
19441 ac_cv_func_mmap_fixed_mapped=no
19443 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19448 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
19449 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
19450 if test $ac_cv_func_mmap_fixed_mapped = yes; then
19452 cat >>confdefs.h <<\_ACEOF
19453 #define HAVE_MMAP 1
19457 rm -f conftest.mmap
19459 { echo "$as_me:$LINENO: checking for mmap of files" >&5
19460 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
19461 if test "${ac_cv_func_mmap_file+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19465 ac_cpp='$CPP $CPPFLAGS'
19466 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19467 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19468 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19470 if test "$cross_compiling" = yes; then
19471 ac_cv_func_mmap_file=no
19473 cat >conftest.$ac_ext <<_ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19481 #include <sys/types.h>
19482 #include <sys/mman.h>
19490 fd = creat ("foo",0777);
19491 fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
19493 return (fd != (int) MAP_FAILED);
19498 rm -f conftest$ac_exeext
19499 if { (ac_try="$ac_link"
19500 case "(($ac_try" in
19501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502 *) ac_try_echo=$ac_try;;
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505 (eval "$ac_link") 2>&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19509 { (case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_try") 2>&5
19516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19517 (exit $ac_status); }; }; then
19518 ac_cv_func_mmap_file=yes
19520 echo "$as_me: program exited with status $ac_status" >&5
19521 echo "$as_me: failed program was:" >&5
19522 sed 's/^/| /' conftest.$ac_ext >&5
19524 ( exit $ac_status )
19525 ac_cv_func_mmap_file=no
19527 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19532 ac_cpp='$CPP $CPPFLAGS'
19533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19539 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
19540 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
19541 if test "$ac_cv_func_mmap_file" = yes; then
19543 cat >>confdefs.h <<\_ACEOF
19544 #define HAVE_MMAP_FILE
19551 { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
19552 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
19553 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
19554 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 if test "$llvm_cv_os_type" = "Interix" ; then
19557 ac_cv_need_dev_zero_for_mmap=yes
19559 ac_cv_need_dev_zero_for_mmap=no
19563 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
19564 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
19565 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
19567 cat >>confdefs.h <<\_ACEOF
19568 #define NEED_DEV_ZERO_FOR_MMAP 1
19573 if test "$ac_cv_func_mmap_fixed_mapped" = "no"
19575 { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
19576 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
19578 if test "$ac_cv_func_mmap_file" = "no"
19580 { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
19581 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
19585 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
19586 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
19587 cat >conftest.$ac_ext <<_ACEOF
19590 cat confdefs.h >>conftest.$ac_ext
19591 cat >>conftest.$ac_ext <<_ACEOF
19592 /* end confdefs.h. */
19594 volatile unsigned long val = 1;
19595 __sync_synchronize();
19596 __sync_val_compare_and_swap(&val, 1, 0);
19597 __sync_add_and_fetch(&val, 1);
19598 __sync_sub_and_fetch(&val, 1);
19603 rm -f conftest.$ac_objext conftest$ac_exeext
19604 if { (ac_try="$ac_link"
19605 case "(($ac_try" in
19606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19607 *) ac_try_echo=$ac_try;;
19609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19610 (eval "$ac_link") 2>conftest.er1
19612 grep -v '^ *+' conftest.er1 >conftest.err
19614 cat conftest.err >&5
19615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19616 (exit $ac_status); } &&
19617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19618 { (case "(($ac_try" in
19619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19620 *) ac_try_echo=$ac_try;;
19622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19623 (eval "$ac_try") 2>&5
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest$ac_exeext'
19628 { (case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_try") 2>&5
19635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19636 (exit $ac_status); }; }; then
19637 { echo "$as_me:$LINENO: result: yes" >&5
19638 echo "${ECHO_T}yes" >&6; }
19640 cat >>confdefs.h <<\_ACEOF
19641 #define LLVM_MULTITHREADED 1
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 { echo "$as_me:$LINENO: result: no" >&5
19649 echo "${ECHO_T}no" >&6; }
19651 cat >>confdefs.h <<\_ACEOF
19652 #define LLVM_MULTITHREADED 0
19655 { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
19656 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
19659 rm -f core conftest.err conftest.$ac_objext \
19660 conftest$ac_exeext conftest.$ac_ext
19664 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
19665 { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
19666 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
19667 if test "${llvm_cv_linux_mixed+set}" = set; then
19668 echo $ECHO_N "(cached) $ECHO_C" >&6
19671 ac_cpp='$CPP $CPPFLAGS'
19672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19676 cat >conftest.$ac_ext <<_ACEOF
19679 cat confdefs.h >>conftest.$ac_ext
19680 cat >>conftest.$ac_ext <<_ACEOF
19681 /* end confdefs.h. */
19683 error: Not x86-64 even if uname says so!
19694 rm -f conftest.$ac_objext
19695 if { (ac_try="$ac_compile"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_compile") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } &&
19708 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19709 { (case "(($ac_try" in
19710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19711 *) ac_try_echo=$ac_try;;
19713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19714 (eval "$ac_try") 2>&5
19716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19717 (exit $ac_status); }; } &&
19718 { ac_try='test -s conftest.$ac_objext'
19719 { (case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_try") 2>&5
19726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19727 (exit $ac_status); }; }; then
19728 llvm_cv_linux_mixed=no
19730 echo "$as_me: failed program was:" >&5
19731 sed 's/^/| /' conftest.$ac_ext >&5
19733 llvm_cv_linux_mixed=yes
19736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19738 ac_cpp='$CPP $CPPFLAGS'
19739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19745 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
19746 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
19748 if test "$llvm_cv_linux_mixed" = "yes"; then
19749 llvm_cv_target_arch="x86"
19755 for ac_func in __dso_handle
19757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19761 echo $ECHO_N "(cached) $ECHO_C" >&6
19763 cat >conftest.$ac_ext <<_ACEOF
19766 cat confdefs.h >>conftest.$ac_ext
19767 cat >>conftest.$ac_ext <<_ACEOF
19768 /* end confdefs.h. */
19769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19771 #define $ac_func innocuous_$ac_func
19773 /* System header to define __stub macros and hopefully few prototypes,
19774 which can conflict with char $ac_func (); below.
19775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19776 <limits.h> exists even on freestanding compilers. */
19779 # include <limits.h>
19781 # include <assert.h>
19786 /* Override any GCC internal prototype to avoid an error.
19787 Use char because int might match the return type of a GCC
19788 builtin and then its argument prototype would still apply. */
19793 /* The GNU C library defines this for functions which it implements
19794 to always fail with ENOSYS. Some functions are actually named
19795 something starting with __ and the normal name is an alias. */
19796 #if defined __stub_$ac_func || defined __stub___$ac_func
19803 return $ac_func ();
19808 rm -f conftest.$ac_objext conftest$ac_exeext
19809 if { (ac_try="$ac_link"
19810 case "(($ac_try" in
19811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19812 *) ac_try_echo=$ac_try;;
19814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19815 (eval "$ac_link") 2>conftest.er1
19817 grep -v '^ *+' conftest.er1 >conftest.err
19819 cat conftest.err >&5
19820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19821 (exit $ac_status); } &&
19822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19823 { (case "(($ac_try" in
19824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19825 *) ac_try_echo=$ac_try;;
19827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19828 (eval "$ac_try") 2>&5
19830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19831 (exit $ac_status); }; } &&
19832 { ac_try='test -s conftest$ac_exeext'
19833 { (case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_try") 2>&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); }; }; then
19842 eval "$as_ac_var=yes"
19844 echo "$as_me: failed program was:" >&5
19845 sed 's/^/| /' conftest.$ac_ext >&5
19847 eval "$as_ac_var=no"
19850 rm -f core conftest.err conftest.$ac_objext \
19851 conftest$ac_exeext conftest.$ac_ext
19853 ac_res=`eval echo '${'$as_ac_var'}'`
19854 { echo "$as_me:$LINENO: result: $ac_res" >&5
19855 echo "${ECHO_T}$ac_res" >&6; }
19856 if test `eval echo '${'$as_ac_var'}'` = yes; then
19857 cat >>confdefs.h <<_ACEOF
19858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19865 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
19866 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
19867 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
19868 echo $ECHO_N "(cached) $ECHO_C" >&6
19870 llvm_cv_llvmgcc_sanity="no"
19871 if test -x "$LLVMGCC" ; then
19872 cp /dev/null conftest.c
19873 "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
19874 grep 'target datalayout =' > /dev/null 2>&1
19875 if test $? -eq 0 ; then
19876 llvm_cv_llvmgcc_sanity="yes"
19881 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
19882 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
19884 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
19885 { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
19886 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
19887 llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
19888 LLVMCC1=$llvmcc1path
19890 llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
19891 LLVMCC1PLUS=$llvmcc1pluspath
19893 llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
19894 LLVMGCCDIR=$llvmgccdir
19896 llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
19897 LLVMGCC_LANGS=$llvmgcclangs
19899 { echo "$as_me:$LINENO: result: ok" >&5
19900 echo "${ECHO_T}ok" >&6; }
19903 SHLIBEXT=$libltdl_cv_shlibext
19906 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
19909 # Translate the various configuration directories and other basic
19910 # information into substitutions that will end up in Makefile.config.in
19911 # that these configured values can be used by the makefiles
19912 if test "${prefix}" = "NONE" ; then
19913 prefix="/usr/local"
19915 eval LLVM_PREFIX="${prefix}";
19916 eval LLVM_BINDIR="${prefix}/bin";
19917 eval LLVM_LIBDIR="${prefix}/lib";
19918 eval LLVM_DATADIR="${prefix}/share/llvm";
19919 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
19920 eval LLVM_ETCDIR="${prefix}/etc/llvm";
19921 eval LLVM_INCLUDEDIR="${prefix}/include";
19922 eval LLVM_INFODIR="${prefix}/info";
19923 eval LLVM_MANDIR="${prefix}/man";
19924 LLVM_CONFIGTIME=`date`
19936 # Place the various directores into the config.h file as #defines so that we
19937 # can know about the installation paths within LLVM.
19939 cat >>confdefs.h <<_ACEOF
19940 #define LLVM_PREFIX "$LLVM_PREFIX"
19944 cat >>confdefs.h <<_ACEOF
19945 #define LLVM_BINDIR "$LLVM_BINDIR"
19949 cat >>confdefs.h <<_ACEOF
19950 #define LLVM_LIBDIR "$LLVM_LIBDIR"
19954 cat >>confdefs.h <<_ACEOF
19955 #define LLVM_DATADIR "$LLVM_DATADIR"
19959 cat >>confdefs.h <<_ACEOF
19960 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
19964 cat >>confdefs.h <<_ACEOF
19965 #define LLVM_ETCDIR "$LLVM_ETCDIR"
19969 cat >>confdefs.h <<_ACEOF
19970 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
19974 cat >>confdefs.h <<_ACEOF
19975 #define LLVM_INFODIR "$LLVM_INFODIR"
19979 cat >>confdefs.h <<_ACEOF
19980 #define LLVM_MANDIR "$LLVM_MANDIR"
19984 cat >>confdefs.h <<_ACEOF
19985 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
19989 cat >>confdefs.h <<_ACEOF
19990 #define LLVM_HOSTTRIPLE "$host"
19994 # Determine which bindings to build.
19995 if test "$BINDINGS_TO_BUILD" = auto ; then
19996 BINDINGS_TO_BUILD=""
19997 if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
19998 BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20001 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20004 # This isn't really configurey, but it avoids having to repeat the list in
20009 # Do any work necessary to ensure that bindings have what they need.
20010 binding_prereqs_failed=0
20011 for a_binding in $BINDINGS_TO_BUILD ; do
20012 case "$a_binding" in
20014 if test "x$OCAMLC" = x ; then
20015 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20016 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20017 binding_prereqs_failed=1
20019 if test "x$OCAMLDEP" = x ; then
20020 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20021 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20022 binding_prereqs_failed=1
20024 if test "x$OCAMLOPT" = x ; then
20025 { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20026 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20028 if test "x$with_ocaml_libdir" != xauto ; then
20029 OCAML_LIBDIR=$with_ocaml_libdir
20032 ocaml_stdlib="`"$OCAMLC" -where`"
20033 if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20035 # ocaml stdlib is beneath our prefix; use stdlib
20036 OCAML_LIBDIR=$ocaml_stdlib
20039 # ocaml stdlib is outside our prefix; use libdir/ocaml
20040 OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20047 if test "$binding_prereqs_failed" = 1 ; then
20048 { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20049 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20050 { (exit 1); exit 1; }; }
20053 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20054 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20055 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20056 echo $ECHO_N "(cached) $ECHO_C" >&6
20059 ac_cpp='$CXXCPP $CPPFLAGS'
20060 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20061 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20062 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20064 oldcxxflags="$CXXFLAGS"
20065 CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20066 cat >conftest.$ac_ext <<_ACEOF
20069 cat confdefs.h >>conftest.$ac_ext
20070 cat >>conftest.$ac_ext <<_ACEOF
20071 /* end confdefs.h. */
20081 rm -f conftest.$ac_objext
20082 if { (ac_try="$ac_compile"
20083 case "(($ac_try" in
20084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20085 *) ac_try_echo=$ac_try;;
20087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20088 (eval "$ac_compile") 2>conftest.er1
20090 grep -v '^ *+' conftest.er1 >conftest.err
20092 cat conftest.err >&5
20093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20094 (exit $ac_status); } &&
20095 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20096 { (case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_try") 2>&5
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; } &&
20105 { ac_try='test -s conftest.$ac_objext'
20106 { (case "(($ac_try" in
20107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20108 *) ac_try_echo=$ac_try;;
20110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20111 (eval "$ac_try") 2>&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); }; }; then
20115 llvm_cv_cxx_visibility_inlines_hidden=yes
20117 echo "$as_me: failed program was:" >&5
20118 sed 's/^/| /' conftest.$ac_ext >&5
20120 llvm_cv_cxx_visibility_inlines_hidden=no
20123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20124 CXXFLAGS="$oldcxxflags"
20126 ac_cpp='$CPP $CPPFLAGS'
20127 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20128 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20129 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20133 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20134 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20135 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20136 ENABLE_VISIBILITY_INLINES_HIDDEN=1
20139 ENABLE_VISIBILITY_INLINES_HIDDEN=0
20144 if test "$llvm_cv_link_use_r" = "yes" ; then
20151 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20152 RDYNAMIC="-Wl,-export-dynamic"
20159 ac_config_headers="$ac_config_headers include/llvm/Config/config.h"
20161 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20163 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20165 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20167 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20169 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20172 ac_config_files="$ac_config_files Makefile.config"
20175 ac_config_files="$ac_config_files llvm.spec"
20178 ac_config_files="$ac_config_files docs/doxygen.cfg"
20181 ac_config_files="$ac_config_files tools/llvmc/plugins/Base/Base.td"
20184 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20187 ac_config_commands="$ac_config_commands setup"
20189 ac_config_commands="$ac_config_commands Makefile"
20192 ac_config_commands="$ac_config_commands Makefile.common"
20195 ac_config_commands="$ac_config_commands examples/Makefile"
20198 ac_config_commands="$ac_config_commands lib/Makefile"
20201 ac_config_commands="$ac_config_commands runtime/Makefile"
20204 ac_config_commands="$ac_config_commands test/Makefile"
20207 ac_config_commands="$ac_config_commands test/Makefile.tests"
20210 ac_config_commands="$ac_config_commands unittests/Makefile"
20213 ac_config_commands="$ac_config_commands tools/Makefile"
20216 ac_config_commands="$ac_config_commands utils/Makefile"
20219 ac_config_commands="$ac_config_commands projects/Makefile"
20222 ac_config_commands="$ac_config_commands bindings/Makefile"
20225 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20229 cat >confcache <<\_ACEOF
20230 # This file is a shell script that caches the results of configure
20231 # tests run on this system so they can be shared between configure
20232 # scripts and configure runs, see configure's option --config-cache.
20233 # It is not useful on other systems. If it contains results you don't
20234 # want to keep, you may remove or edit it.
20236 # config.status only pays attention to the cache file if you give it
20237 # the --recheck option to rerun configure.
20239 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20240 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20241 # following values.
20245 # The following way of writing the cache mishandles newlines in values,
20246 # but we know of no workaround that is simple, portable, and efficient.
20247 # So, we kill variables containing newlines.
20248 # Ultrix sh set writes to stderr and can't be redirected directly,
20249 # and sets the high bit in the cache file unless we assign to the vars.
20251 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20252 eval ac_val=\$$ac_var
20256 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20257 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20260 _ | IFS | as_nl) ;; #(
20261 *) $as_unset $ac_var ;;
20267 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20268 *${as_nl}ac_space=\ *)
20269 # `set' does not quote correctly, so add quotes (double-quote
20270 # substitution turns \\\\ into \\, and sed turns \\ into \).
20273 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20276 # `set' quotes correctly as required by POSIX, so do not add quotes.
20277 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20286 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20288 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20290 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20291 if test -w "$cache_file"; then
20292 test "x$cache_file" != "x/dev/null" &&
20293 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20294 echo "$as_me: updating cache $cache_file" >&6;}
20295 cat confcache >$cache_file
20297 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20298 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20303 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20304 # Let make expand exec_prefix.
20305 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20307 DEFS=-DHAVE_CONFIG_H
20311 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20312 # 1. Remove the extension, and $U if already installed.
20313 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20314 ac_i=`echo "$ac_i" | sed "$ac_script"`
20315 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20316 # will be set to the directory where LIBOBJS objects are built.
20317 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20318 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20320 LIBOBJS=$ac_libobjs
20322 LTLIBOBJS=$ac_ltlibobjs
20325 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20326 { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20327 Usually this means the macro was only invoked conditionally." >&5
20328 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20329 Usually this means the macro was only invoked conditionally." >&2;}
20330 { (exit 1); exit 1; }; }
20332 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20333 { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20334 Usually this means the macro was only invoked conditionally." >&5
20335 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20336 Usually this means the macro was only invoked conditionally." >&2;}
20337 { (exit 1); exit 1; }; }
20340 : ${CONFIG_STATUS=./config.status}
20341 ac_clean_files_save=$ac_clean_files
20342 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20343 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20344 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20345 cat >$CONFIG_STATUS <<_ACEOF
20347 # Generated by $as_me.
20348 # Run this file to recreate the current configuration.
20349 # Compiler output produced by configure, useful for debugging
20350 # configure, is in config.log if it exists.
20353 ac_cs_recheck=false
20355 SHELL=\${CONFIG_SHELL-$SHELL}
20358 cat >>$CONFIG_STATUS <<\_ACEOF
20359 ## --------------------- ##
20360 ## M4sh Initialization. ##
20361 ## --------------------- ##
20363 # Be Bourne compatible
20364 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20367 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20368 # is contrary to our usage. Disable this feature.
20369 alias -g '${1+"$@"}'='"$@"'
20370 setopt NO_GLOB_SUBST
20372 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
20374 BIN_SH=xpg4; export BIN_SH # for Tru64
20375 DUALCASE=1; export DUALCASE # for MKS sh
20379 # Avoid depending upon Character Ranges.
20380 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20381 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20382 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20383 as_cr_digits='0123456789'
20384 as_cr_alnum=$as_cr_Letters$as_cr_digits
20386 # The user is always right.
20387 if test "${PATH_SEPARATOR+set}" != set; then
20388 echo "#! /bin/sh" >conf$$.sh
20389 echo "exit 0" >>conf$$.sh
20391 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20399 # Support unset when possible.
20400 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20408 # We need space, tab and new line, in precisely that order. Quoting is
20409 # there to prevent editors from complaining about space-tab.
20410 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20411 # splitting by setting IFS to empty value.)
20416 # Find who we are. Look in the path if we contain no directory separator.
20418 *[\\/]* ) as_myself=$0 ;;
20419 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20420 for as_dir in $PATH
20423 test -z "$as_dir" && as_dir=.
20424 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20430 # We did not find ourselves, most probably we were run as `sh COMMAND'
20431 # in which case we are not to be found in the path.
20432 if test "x$as_myself" = x; then
20435 if test ! -f "$as_myself"; then
20436 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20437 { (exit 1); exit 1; }
20440 # Work around bugs in pre-3.0 UWIN ksh.
20441 for as_var in ENV MAIL MAILPATH
20442 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20450 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20451 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20452 LC_TELEPHONE LC_TIME
20454 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20455 eval $as_var=C; export $as_var
20457 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20461 # Required to use basename.
20462 if expr a : '\(a\)' >/dev/null 2>&1 &&
20463 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20469 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20470 as_basename=basename
20476 # Name of the executable.
20477 as_me=`$as_basename -- "$0" ||
20478 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20479 X"$0" : 'X\(//\)$' \| \
20480 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20482 sed '/^.*\/\([^/][^/]*\)\/*$/{
20501 as_lineno_1=$LINENO
20502 as_lineno_2=$LINENO
20503 test "x$as_lineno_1" != "x$as_lineno_2" &&
20504 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20506 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20507 # uniformly replaced by the line number. The first 'sed' inserts a
20508 # line-number line after each line using $LINENO; the second 'sed'
20509 # does the real work. The second script uses 'N' to pair each
20510 # line-number line with the line containing $LINENO, and appends
20511 # trailing '-' during substitution so that $LINENO is not a special
20512 # case at line end.
20513 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20514 # scripts with optimization help from Paolo Bonzini. Blame Lee
20515 # E. McMahon (1931-1989) for sed's syntax. :-)
20527 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20530 ' >$as_me.lineno &&
20531 chmod +x "$as_me.lineno" ||
20532 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20533 { (exit 1); exit 1; }; }
20535 # Don't try to exec as it changes $[0], causing all sort of problems
20536 # (the dirname of $[0] is not the place where we might find the
20537 # original and so on. Autoconf is especially sensitive to this).
20538 . "./$as_me.lineno"
20539 # Exit status is that of the last command.
20544 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20550 ECHO_C= ECHO_N= ECHO_T=
20551 case `echo -n x` in
20553 case `echo 'x\c'` in
20554 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20561 if expr a : '\(a\)' >/dev/null 2>&1 &&
20562 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20568 rm -f conf$$ conf$$.exe conf$$.file
20569 if test -d conf$$.dir; then
20570 rm -f conf$$.dir/conf$$.file
20576 if ln -s conf$$.file conf$$ 2>/dev/null; then
20578 # ... but there are two gotchas:
20579 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20580 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20581 # In both cases, we have to default to `cp -p'.
20582 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20584 elif ln conf$$.file conf$$ 2>/dev/null; then
20589 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20590 rmdir conf$$.dir 2>/dev/null
20592 if mkdir -p . 2>/dev/null; then
20595 test -d ./-p && rmdir ./-p
20599 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
20600 # systems may use methods other than mode bits to determine executability.
20601 cat >conf$$.file <<_ASEOF
20605 chmod +x conf$$.file
20606 if test -x conf$$.file >/dev/null 2>&1; then
20607 as_executable_p="test -x"
20613 # Sed expression to map a string onto a valid CPP name.
20614 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20616 # Sed expression to map a string onto a valid variable name.
20617 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20622 # Save the log message, to keep $[0] and so on meaningful, and to
20623 # report actual input values of CONFIG_FILES etc. instead of their
20624 # values after options handling.
20626 This file was extended by llvm $as_me 2.8svn, which was
20627 generated by GNU Autoconf 2.60. Invocation command line was
20629 CONFIG_FILES = $CONFIG_FILES
20630 CONFIG_HEADERS = $CONFIG_HEADERS
20631 CONFIG_LINKS = $CONFIG_LINKS
20632 CONFIG_COMMANDS = $CONFIG_COMMANDS
20635 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20640 cat >>$CONFIG_STATUS <<_ACEOF
20641 # Files that config.status was made for.
20642 config_files="$ac_config_files"
20643 config_headers="$ac_config_headers"
20644 config_commands="$ac_config_commands"
20648 cat >>$CONFIG_STATUS <<\_ACEOF
20650 \`$as_me' instantiates files from templates according to the
20651 current configuration.
20653 Usage: $0 [OPTIONS] [FILE]...
20655 -h, --help print this help, then exit
20656 -V, --version print version number, then exit
20657 -q, --quiet do not print progress messages
20658 -d, --debug don't remove temporary files
20659 --recheck update $as_me by reconfiguring in the same conditions
20660 --file=FILE[:TEMPLATE]
20661 instantiate the configuration file FILE
20662 --header=FILE[:TEMPLATE]
20663 instantiate the configuration header FILE
20665 Configuration files:
20668 Configuration headers:
20671 Configuration commands:
20674 Report bugs to <bug-autoconf@gnu.org>."
20677 cat >>$CONFIG_STATUS <<_ACEOF
20679 llvm config.status 2.8svn
20680 configured by $0, generated by GNU Autoconf 2.60,
20681 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20683 Copyright (C) 2006 Free Software Foundation, Inc.
20684 This config.status script is free software; the Free Software Foundation
20685 gives unlimited permission to copy, distribute and modify it."
20692 cat >>$CONFIG_STATUS <<\_ACEOF
20693 # If no file are specified by the user, then we need to provide default
20694 # value. By we need to know if files were specified by the user.
20700 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20701 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20712 # Handling of the options.
20713 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20715 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20716 echo "$ac_cs_version"; exit ;;
20717 --debug | --debu | --deb | --de | --d | -d )
20719 --file | --fil | --fi | --f )
20721 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20722 ac_need_defaults=false;;
20723 --header | --heade | --head | --hea )
20725 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20726 ac_need_defaults=false;;
20728 # Conflict between --help and --header
20729 { echo "$as_me: error: ambiguous option: $1
20730 Try \`$0 --help' for more information." >&2
20731 { (exit 1); exit 1; }; };;
20732 --help | --hel | -h )
20733 echo "$ac_cs_usage"; exit ;;
20734 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20735 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20738 # This is an error.
20739 -*) { echo "$as_me: error: unrecognized option: $1
20740 Try \`$0 --help' for more information." >&2
20741 { (exit 1); exit 1; }; } ;;
20743 *) ac_config_targets="$ac_config_targets $1"
20744 ac_need_defaults=false ;;
20750 ac_configure_extra_args=
20752 if $ac_cs_silent; then
20754 ac_configure_extra_args="$ac_configure_extra_args --silent"
20758 cat >>$CONFIG_STATUS <<_ACEOF
20759 if \$ac_cs_recheck; then
20760 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20761 CONFIG_SHELL=$SHELL
20762 export CONFIG_SHELL
20763 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20767 cat >>$CONFIG_STATUS <<\_ACEOF
20771 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20772 ## Running $as_me. ##
20778 cat >>$CONFIG_STATUS <<_ACEOF
20782 llvm_src="${srcdir}"
20786 cat >>$CONFIG_STATUS <<\_ACEOF
20788 # Handling of arguments.
20789 for ac_config_target in $ac_config_targets
20791 case $ac_config_target in
20792 "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
20793 "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
20794 "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
20795 "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
20796 "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
20797 "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
20798 "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
20799 "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
20800 "docs/doxygen.cfg") CONFIG_FILES="$CONFIG_FILES docs/doxygen.cfg" ;;
20801 "tools/llvmc/plugins/Base/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/plugins/Base/Base.td" ;;
20802 "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
20803 "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
20804 "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
20805 "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
20806 "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
20807 "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
20808 "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
20809 "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
20810 "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
20811 "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
20812 "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
20813 "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
20814 "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
20815 "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
20816 "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
20818 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20819 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20820 { (exit 1); exit 1; }; };;
20825 # If the user did not use the arguments to specify the items to instantiate,
20826 # then the envvar interface is used. Set only those that are not.
20827 # We use the long form for the default assignment because of an extremely
20828 # bizarre bug on SunOS 4.1.3.
20829 if $ac_need_defaults; then
20830 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20831 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20832 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20835 # Have a temporary directory for convenience. Make it in the build tree
20836 # simply because there is no reason against having it here, and in addition,
20837 # creating and moving files from /tmp can sometimes cause problems.
20838 # Hook for its removal unless debugging.
20839 # Note that there is a small window in which the directory will not be cleaned:
20840 # after its creation but before its name has been assigned to `$tmp'.
20844 trap 'exit_status=$?
20845 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20847 trap '{ (exit 1); exit 1; }' 1 2 13 15
20849 # Create a (secure) tmp directory for tmp files.
20852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20853 test -n "$tmp" && test -d "$tmp"
20856 tmp=./conf$$-$RANDOM
20857 (umask 077 && mkdir "$tmp")
20860 echo "$me: cannot create a temporary directory in ." >&2
20861 { (exit 1); exit 1; }
20865 # Set up the sed scripts for CONFIG_FILES section.
20868 # No need to generate the scripts if there are no CONFIG_FILES.
20869 # This happens for instance when ./config.status config.h
20870 if test -n "$CONFIG_FILES"; then
20877 for ac_last_try in false false false false false :; do
20878 cat >conf$$subs.sed <<_ACEOF
20879 SHELL!$SHELL$ac_delim
20880 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20881 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20882 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20883 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20884 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20885 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20886 exec_prefix!$exec_prefix$ac_delim
20887 prefix!$prefix$ac_delim
20888 program_transform_name!$program_transform_name$ac_delim
20889 bindir!$bindir$ac_delim
20890 sbindir!$sbindir$ac_delim
20891 libexecdir!$libexecdir$ac_delim
20892 datarootdir!$datarootdir$ac_delim
20893 datadir!$datadir$ac_delim
20894 sysconfdir!$sysconfdir$ac_delim
20895 sharedstatedir!$sharedstatedir$ac_delim
20896 localstatedir!$localstatedir$ac_delim
20897 includedir!$includedir$ac_delim
20898 oldincludedir!$oldincludedir$ac_delim
20899 docdir!$docdir$ac_delim
20900 infodir!$infodir$ac_delim
20901 htmldir!$htmldir$ac_delim
20902 dvidir!$dvidir$ac_delim
20903 pdfdir!$pdfdir$ac_delim
20904 psdir!$psdir$ac_delim
20905 libdir!$libdir$ac_delim
20906 localedir!$localedir$ac_delim
20907 mandir!$mandir$ac_delim
20908 DEFS!$DEFS$ac_delim
20909 ECHO_C!$ECHO_C$ac_delim
20910 ECHO_N!$ECHO_N$ac_delim
20911 ECHO_T!$ECHO_T$ac_delim
20912 LIBS!$LIBS$ac_delim
20913 build_alias!$build_alias$ac_delim
20914 host_alias!$host_alias$ac_delim
20915 target_alias!$target_alias$ac_delim
20916 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
20917 subdirs!$subdirs$ac_delim
20918 build!$build$ac_delim
20919 build_cpu!$build_cpu$ac_delim
20920 build_vendor!$build_vendor$ac_delim
20921 build_os!$build_os$ac_delim
20922 host!$host$ac_delim
20923 host_cpu!$host_cpu$ac_delim
20924 host_vendor!$host_vendor$ac_delim
20925 host_os!$host_os$ac_delim
20926 target!$target$ac_delim
20927 target_cpu!$target_cpu$ac_delim
20928 target_vendor!$target_vendor$ac_delim
20929 target_os!$target_os$ac_delim
20931 HOST_OS!$HOST_OS$ac_delim
20932 TARGET_OS!$TARGET_OS$ac_delim
20933 LINKALL!$LINKALL$ac_delim
20934 NOLINKALL!$NOLINKALL$ac_delim
20935 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
20936 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
20937 ARCH!$ARCH$ac_delim
20938 ENDIAN!$ENDIAN$ac_delim
20940 CFLAGS!$CFLAGS$ac_delim
20941 LDFLAGS!$LDFLAGS$ac_delim
20942 CPPFLAGS!$CPPFLAGS$ac_delim
20943 ac_ct_CC!$ac_ct_CC$ac_delim
20944 EXEEXT!$EXEEXT$ac_delim
20945 OBJEXT!$OBJEXT$ac_delim
20947 GREP!$GREP$ac_delim
20948 EGREP!$EGREP$ac_delim
20949 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
20950 BUILD_CC!$BUILD_CC$ac_delim
20951 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
20952 BUILD_CXX!$BUILD_CXX$ac_delim
20953 CVSBUILD!$CVSBUILD$ac_delim
20954 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
20955 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
20956 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
20957 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
20958 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
20959 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
20960 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
20962 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
20963 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
20964 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
20965 ENABLE_PIC!$ENABLE_PIC$ac_delim
20966 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
20967 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
20968 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
20969 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
20970 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
20971 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
20972 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
20973 CLANGPATH!$CLANGPATH$ac_delim
20974 CLANGXXPATH!$CLANGXXPATH$ac_delim
20975 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
20978 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20980 elif $ac_last_try; then
20981 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20982 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20983 { (exit 1); exit 1; }; }
20985 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20989 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20990 if test -n "$ac_eof"; then
20991 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20992 ac_eof=`expr $ac_eof + 1`
20995 cat >>$CONFIG_STATUS <<_ACEOF
20996 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20997 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21000 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21001 s/^/s,@/; s/!/@,|#_!!_#|/
21004 s/'"$ac_delim"'$/,g/; t
21006 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21007 ' >>$CONFIG_STATUS <conf$$subs.sed
21008 rm -f conf$$subs.sed
21009 cat >>$CONFIG_STATUS <<_ACEOF
21015 for ac_last_try in false false false false false :; do
21016 cat >conf$$subs.sed <<_ACEOF
21017 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21018 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21019 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21020 ENABLE_LLVMC_DYNAMIC!$ENABLE_LLVMC_DYNAMIC$ac_delim
21021 ENABLE_LLVMC_DYNAMIC_PLUGINS!$ENABLE_LLVMC_DYNAMIC_PLUGINS$ac_delim
21023 CXXFLAGS!$CXXFLAGS$ac_delim
21024 ac_ct_CXX!$ac_ct_CXX$ac_delim
21026 ifGNUmake!$ifGNUmake$ac_delim
21027 LN_S!$LN_S$ac_delim
21030 DATE!$DATE$ac_delim
21031 FIND!$FIND$ac_delim
21032 MKDIR!$MKDIR$ac_delim
21034 RANLIB!$RANLIB$ac_delim
21039 BINPWD!$BINPWD$ac_delim
21040 GRAPHVIZ!$GRAPHVIZ$ac_delim
21043 NEATO!$NEATO$ac_delim
21044 TWOPI!$TWOPI$ac_delim
21045 CIRCO!$CIRCO$ac_delim
21047 DOTTY!$DOTTY$ac_delim
21048 PERL!$PERL$ac_delim
21049 HAVE_PERL!$HAVE_PERL$ac_delim
21050 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21051 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21052 INSTALL_DATA!$INSTALL_DATA$ac_delim
21053 BZIP2!$BZIP2$ac_delim
21054 DOXYGEN!$DOXYGEN$ac_delim
21055 GROFF!$GROFF$ac_delim
21056 GZIP!$GZIP$ac_delim
21057 POD2HTML!$POD2HTML$ac_delim
21058 POD2MAN!$POD2MAN$ac_delim
21059 RUNTEST!$RUNTEST$ac_delim
21060 TCLSH!$TCLSH$ac_delim
21062 OCAMLC!$OCAMLC$ac_delim
21063 OCAMLOPT!$OCAMLOPT$ac_delim
21064 OCAMLDEP!$OCAMLDEP$ac_delim
21065 OCAMLDOC!$OCAMLDOC$ac_delim
21067 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21068 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21069 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21070 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21071 LIBADD_DL!$LIBADD_DL$ac_delim
21072 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21073 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21074 LLVMGCC!$LLVMGCC$ac_delim
21075 LLVMGXX!$LLVMGXX$ac_delim
21076 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21077 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21078 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21079 USE_UDIS86!$USE_UDIS86$ac_delim
21080 USE_OPROFILE!$USE_OPROFILE$ac_delim
21081 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21082 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21083 MMAP_FILE!$MMAP_FILE$ac_delim
21084 LLVMCC1!$LLVMCC1$ac_delim
21085 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21086 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21087 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21088 SHLIBEXT!$SHLIBEXT$ac_delim
21089 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21090 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21091 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21092 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21093 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21094 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21095 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21096 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21097 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21098 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21099 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21100 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21101 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21102 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21103 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21104 RPATH!$RPATH$ac_delim
21105 RDYNAMIC!$RDYNAMIC$ac_delim
21106 LIBOBJS!$LIBOBJS$ac_delim
21107 LTLIBOBJS!$LTLIBOBJS$ac_delim
21110 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 91; then
21112 elif $ac_last_try; then
21113 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21114 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21115 { (exit 1); exit 1; }; }
21117 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21121 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21122 if test -n "$ac_eof"; then
21123 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21124 ac_eof=`expr $ac_eof + 1`
21127 cat >>$CONFIG_STATUS <<_ACEOF
21128 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21132 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21133 s/^/s,@/; s/!/@,|#_!!_#|/
21136 s/'"$ac_delim"'$/,g/; t
21138 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21139 ' >>$CONFIG_STATUS <conf$$subs.sed
21140 rm -f conf$$subs.sed
21141 cat >>$CONFIG_STATUS <<_ACEOF
21148 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21149 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21150 # trailing colons and then remove the whole line if VPATH becomes empty
21151 # (actually we leave an empty line to preserve line numbers).
21152 if test "x$srcdir" = x.; then
21153 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21154 s/:*\$(srcdir):*/:/
21155 s/:*\${srcdir}:*/:/
21157 s/^\([^=]*=[ ]*\):*/\1/
21163 cat >>$CONFIG_STATUS <<\_ACEOF
21164 fi # test -n "$CONFIG_FILES"
21167 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21170 :[FHLC]) ac_mode=$ac_tag; continue;;
21172 case $ac_mode$ac_tag in
21174 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21175 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21176 { (exit 1); exit 1; }; };;
21177 :[FH]-) ac_tag=-:-;;
21178 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21195 -) ac_f="$tmp/stdin";;
21196 *) # Look for the file first in the build tree, then in the source tree
21197 # (if the path is not absolute). The absolute path cannot be DOS-style,
21198 # because $ac_f cannot contain `:'.
21202 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21204 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21205 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21206 { (exit 1); exit 1; }; };;
21208 ac_file_inputs="$ac_file_inputs $ac_f"
21211 # Let's still pretend it is `configure' which instantiates (i.e., don't
21212 # use $as_me), people would be surprised to read:
21213 # /* config.h. Generated by config.status. */
21214 configure_input="Generated from "`IFS=:
21215 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21216 if test x"$ac_file" != x-; then
21217 configure_input="$ac_file. $configure_input"
21218 { echo "$as_me:$LINENO: creating $ac_file" >&5
21219 echo "$as_me: creating $ac_file" >&6;}
21223 *:-:* | *:-) cat >"$tmp/stdin";;
21228 ac_dir=`$as_dirname -- "$ac_file" ||
21229 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21230 X"$ac_file" : 'X\(//\)[^/]' \| \
21231 X"$ac_file" : 'X\(//\)$' \| \
21232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21238 /^X\(\/\/\)[^/].*/{
21253 -*) as_dir=./$as_dir;;
21255 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21259 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21260 *) as_qdir=$as_dir;;
21262 as_dirs="'$as_qdir' $as_dirs"
21263 as_dir=`$as_dirname -- "$as_dir" ||
21264 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21265 X"$as_dir" : 'X\(//\)[^/]' \| \
21266 X"$as_dir" : 'X\(//\)$' \| \
21267 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21269 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21273 /^X\(\/\/\)[^/].*/{
21286 test -d "$as_dir" && break
21288 test -z "$as_dirs" || eval "mkdir $as_dirs"
21289 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21290 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21291 { (exit 1); exit 1; }; }; }
21295 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21297 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21298 # A ".." for each directory in $ac_dir_suffix.
21299 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21300 case $ac_top_builddir_sub in
21301 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21302 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21305 ac_abs_top_builddir=$ac_pwd
21306 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21307 # for backward compatibility:
21308 ac_top_builddir=$ac_top_build_prefix
21311 .) # We are building in place.
21313 ac_top_srcdir=$ac_top_builddir_sub
21314 ac_abs_top_srcdir=$ac_pwd ;;
21315 [\\/]* | ?:[\\/]* ) # Absolute name.
21316 ac_srcdir=$srcdir$ac_dir_suffix;
21317 ac_top_srcdir=$srcdir
21318 ac_abs_top_srcdir=$srcdir ;;
21319 *) # Relative name.
21320 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21321 ac_top_srcdir=$ac_top_build_prefix$srcdir
21322 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21324 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21334 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21335 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21339 cat >>$CONFIG_STATUS <<\_ACEOF
21340 # If the template does not know about datarootdir, expand it.
21341 # FIXME: This hack should be removed a few years after 2.60.
21342 ac_datarootdir_hack=; ac_datarootdir_seen=
21344 case `sed -n '/datarootdir/ {
21353 ' $ac_file_inputs` in
21354 *datarootdir*) ac_datarootdir_seen=yes;;
21355 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21356 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21357 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21359 cat >>$CONFIG_STATUS <<_ACEOF
21360 ac_datarootdir_hack='
21361 s&@datadir@&$datadir&g
21362 s&@docdir@&$docdir&g
21363 s&@infodir@&$infodir&g
21364 s&@localedir@&$localedir&g
21365 s&@mandir@&$mandir&g
21366 s&\\\${datarootdir}&$datarootdir&g' ;;
21370 # Neutralize VPATH when `$srcdir' = `.'.
21371 # Shell code in configure.ac might set extrasub.
21372 # FIXME: do we really want to maintain this feature?
21373 cat >>$CONFIG_STATUS <<_ACEOF
21377 cat >>$CONFIG_STATUS <<\_ACEOF
21379 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21380 s&@configure_input@&$configure_input&;t t
21381 s&@top_builddir@&$ac_top_builddir_sub&;t t
21382 s&@srcdir@&$ac_srcdir&;t t
21383 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21384 s&@top_srcdir@&$ac_top_srcdir&;t t
21385 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21386 s&@builddir@&$ac_builddir&;t t
21387 s&@abs_builddir@&$ac_abs_builddir&;t t
21388 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21389 s&@INSTALL@&$ac_INSTALL&;t t
21390 $ac_datarootdir_hack
21391 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21393 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21394 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21395 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21396 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21397 which seems to be undefined. Please make sure it is defined." >&5
21398 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21399 which seems to be undefined. Please make sure it is defined." >&2;}
21403 -) cat "$tmp/out"; rm -f "$tmp/out";;
21404 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21413 # Transform confdefs.h into a sed script `conftest.defines', that
21414 # substitutes the proper values into config.h.in to produce config.h.
21415 rm -f conftest.defines conftest.tail
21416 # First, append a space to every undef/define line, to ease matching.
21417 echo 's/$/ /' >conftest.defines
21418 # Then, protect against being on the right side of a sed subst, or in
21419 # an unquoted here document, in config.status. If some macros were
21420 # called several times there might be several #defines for the same
21421 # symbol, which is useless. But do not sort them, since the last
21422 # AC_DEFINE must be honored.
21423 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21424 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21425 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21426 # PARAMS is the parameter list in the macro definition--in most cases, it's
21427 # just an empty string.
21428 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21429 ac_dB='\\)[ (].*,\\1define\\2'
21437 s/^[ ]*#[ ]*define[ ][ ]*//
21442 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21443 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21444 ' >>conftest.defines
21446 # Remove the space that was appended to ease matching.
21447 # Then replace #undef with comments. This is necessary, for
21448 # example, in the case of _POSIX_SOURCE, which is predefined and required
21449 # on some systems where configure will not decide to define it.
21450 # (The regexp can be short, since the line contains either #define or #undef.)
21452 s,^[ #]*u.*,/* & */,' >>conftest.defines
21454 # Break up conftest.defines:
21455 ac_max_sed_lines=50
21457 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21458 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21459 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21461 ac_in='$ac_file_inputs'
21462 ac_out='"$tmp/out1"'
21463 ac_nxt='"$tmp/out2"'
21467 # Write a here document:
21468 cat >>$CONFIG_STATUS <<_ACEOF
21469 # First, check the format of the line:
21470 cat >"\$tmp/defines.sed" <<\\CEOF
21471 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21472 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21476 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21478 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21479 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21480 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21481 grep . conftest.tail >/dev/null || break
21482 rm -f conftest.defines
21483 mv conftest.tail conftest.defines
21485 rm -f conftest.defines conftest.tail
21487 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21488 cat >>$CONFIG_STATUS <<\_ACEOF
21489 if test x"$ac_file" != x-; then
21490 echo "/* $configure_input */" >"$tmp/config.h"
21491 cat "$ac_result" >>"$tmp/config.h"
21492 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21493 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21494 echo "$as_me: $ac_file is unchanged" >&6;}
21497 mv "$tmp/config.h" $ac_file
21500 echo "/* $configure_input */"
21506 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21507 echo "$as_me: executing $ac_file commands" >&6;}
21512 case $ac_file$ac_mode in
21513 "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
21514 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
21515 "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
21516 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
21517 "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
21518 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
21519 "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
21520 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
21521 "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
21522 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
21523 "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
21524 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
21525 "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
21526 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
21527 "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
21528 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
21529 "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
21530 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
21531 "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
21532 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
21533 "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
21534 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
21535 "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
21536 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
21537 "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
21538 ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
21544 { (exit 0); exit 0; }
21546 chmod +x $CONFIG_STATUS
21547 ac_clean_files=$ac_clean_files_save
21550 # configure is writing to config.log, and then calls config.status.
21551 # config.status does its own redirection, appending to config.log.
21552 # Unfortunately, on DOS this fails, as config.log is still kept open
21553 # by configure, so config.status won't be able to write to it; its
21554 # output is simply discarded. So we exec the FD to /dev/null,
21555 # effectively closing config.log, so it can be properly (re)opened and
21556 # appended to by config.status. When coming back to configure, we
21557 # need to make the FD available again.
21558 if test "$no_create" != yes; then
21560 ac_config_status_args=
21561 test "$silent" = yes &&
21562 ac_config_status_args="$ac_config_status_args --quiet"
21564 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21566 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21567 # would make configure fail if this is the last instruction.
21568 $ac_cs_success || { (exit 1); exit 1; }
21572 # CONFIG_SUBDIRS section.
21574 if test "$no_recursion" != yes; then
21576 # Remove --cache-file and --srcdir arguments so they do not pile up.
21577 ac_sub_configure_args=
21579 eval "set x $ac_configure_args"
21583 if test -n "$ac_prev"; then
21588 -cache-file | --cache-file | --cache-fil | --cache-fi \
21589 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
21590 ac_prev=cache_file ;;
21591 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
21592 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
21595 --config-cache | -C)
21597 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
21599 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
21601 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
21603 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
21607 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21609 ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
21613 # Always prepend --prefix to ensure using the same prefix
21614 # in subdir configurations.
21615 ac_arg="--prefix=$prefix"
21617 *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
21619 ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
21622 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
21624 # Do not complain, so a configure script can configure whichever
21625 # parts of a large source tree are present.
21626 test -d "$srcdir/$ac_dir" || continue
21628 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
21629 echo "$as_me:$LINENO: $ac_msg" >&5
21633 -*) as_dir=./$as_dir;;
21635 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21639 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21640 *) as_qdir=$as_dir;;
21642 as_dirs="'$as_qdir' $as_dirs"
21643 as_dir=`$as_dirname -- "$as_dir" ||
21644 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21645 X"$as_dir" : 'X\(//\)[^/]' \| \
21646 X"$as_dir" : 'X\(//\)$' \| \
21647 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21649 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21653 /^X\(\/\/\)[^/].*/{
21666 test -d "$as_dir" && break
21668 test -z "$as_dirs" || eval "mkdir $as_dirs"
21669 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21670 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21671 { (exit 1); exit 1; }; }; }
21675 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21677 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21678 # A ".." for each directory in $ac_dir_suffix.
21679 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21680 case $ac_top_builddir_sub in
21681 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21682 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21685 ac_abs_top_builddir=$ac_pwd
21686 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21687 # for backward compatibility:
21688 ac_top_builddir=$ac_top_build_prefix
21691 .) # We are building in place.
21693 ac_top_srcdir=$ac_top_builddir_sub
21694 ac_abs_top_srcdir=$ac_pwd ;;
21695 [\\/]* | ?:[\\/]* ) # Absolute name.
21696 ac_srcdir=$srcdir$ac_dir_suffix;
21697 ac_top_srcdir=$srcdir
21698 ac_abs_top_srcdir=$srcdir ;;
21699 *) # Relative name.
21700 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21701 ac_top_srcdir=$ac_top_build_prefix$srcdir
21702 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21704 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21709 # Check for guested configure; otherwise get Cygnus style configure.
21710 if test -f "$ac_srcdir/configure.gnu"; then
21711 ac_sub_configure=$ac_srcdir/configure.gnu
21712 elif test -f "$ac_srcdir/configure"; then
21713 ac_sub_configure=$ac_srcdir/configure
21714 elif test -f "$ac_srcdir/configure.in"; then
21715 # This should be Cygnus configure.
21716 ac_sub_configure=$ac_aux_dir/configure
21718 { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
21719 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
21723 # The recursion is here.
21724 if test -n "$ac_sub_configure"; then
21725 # Make the cache file name correct relative to the subdirectory.
21726 case $cache_file in
21727 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
21728 *) # Relative name.
21729 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
21732 { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
21733 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
21734 # The eval makes quoting arguments work.
21735 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
21736 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
21737 { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
21738 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
21739 { (exit 1); exit 1; }; }